summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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, 56826 insertions, 64939 deletions
diff --git a/test/built-ins/Array/15.4.5-1.js b/test/built-ins/Array/15.4.5-1.js
index 6eb1ae127..d8a00abd4 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 d92747a32..945bf9ae4 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 27abd4c55..924c48f47 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 cbee1450c..95deeeeae 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 abdb5116d..424f8eb9b 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 0196ec039..89b2934f6 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 92f2c1d91..971ce382c 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 679db6fb4..383fefd73 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 cd3a2c13d..895ae2f4f 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 3992943a4..74ccc645e 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 de6c5a1d8..59b528f6a 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 e189774b0..97aaaa52b 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 05dbf789d..e4c088a91 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 493457eb9..eb722c4ab 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 b48f6d6c4..3006c94e7 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 45ebd19d6..b3000c1db 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 0c4c807db..90525f07f 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 56ef2426e..16e7904b8 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 6edcf113b..12dfb1943 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 39a8a330a..8f9ac5b8c 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 f29a2a9b1..5ab53b122 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 da278f12b..ddd357969 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 5b3f13f36..6d7eb6579 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 c2d6d3a75..95ab3851b 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 fa5dff3e1..74c053efc 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 7c5f20876..1a2a3e63b 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 7aaf2b628..8b0478706 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 de1f1cd0a..a7a3a3caf 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 349c592ee..3036b8acc 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 ec8acc45a..645a512ee 100644
--- a/test/built-ins/Array/S15.4_A1.1_T9.js
+++ b/test/built-ins/Array/S15.4_A1.1_T9.js
@@ -11,11 +11,7 @@ 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]"]));
@@ -23,29 +19,15 @@ 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]));
@@ -53,15 +35,8 @@ 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]));
@@ -77,11 +52,7 @@ 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]));
@@ -89,14 +60,7 @@ 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]));
@@ -105,39 +69,25 @@ 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 311bc7780..4718751cb 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,9 +28,7 @@ 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 eb0d24aa4..201736051 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 68abe0f44..8415045f7 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 139c9818c..50be8469c 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 a8ff21a0c..9aafe597a 100644
--- a/test/built-ins/Array/from/elements-added-after.js
+++ b/test/built-ins/Array/from/elements-added-after.js
@@ -10,24 +10,23 @@ 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];
}
@@ -35,5 +34,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 02f745329..d2d72e51e 100644
--- a/test/built-ins/Array/from/elements-deleted-after.js
+++ b/test/built-ins/Array/from/elements-deleted-after.js
@@ -9,18 +9,17 @@ 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;
}
@@ -29,5 +28,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 358e94b46..6c859e23a 100644
--- a/test/built-ins/Array/from/elements-updated-after.js
+++ b/test/built-ins/Array/from/elements-updated-after.js
@@ -7,22 +7,21 @@ 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 d9a137695..dfd64566f 100644
--- a/test/built-ins/Array/from/iter-cstm-ctor.js
+++ b/test/built-ins/Array/from/iter-cstm-ctor.js
@@ -27,9 +27,7 @@ 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 56097d708..f63fec612 100644
--- a/test/built-ins/Array/from/iter-map-fn-args.js
+++ b/test/built-ins/Array/from/iter-map-fn-args.js
@@ -26,14 +26,8 @@ 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);
};
@@ -46,9 +40,7 @@ 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 484ce7174..58e175048 100644
--- a/test/built-ins/Array/from/iter-map-fn-return.js
+++ b/test/built-ins/Array/from/iter-map-fn-return.js
@@ -25,14 +25,8 @@ 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) {
@@ -51,9 +45,7 @@ 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 d10e9f862..5e12157bb 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,14 +23,8 @@ 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);
};
@@ -42,9 +36,7 @@ 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 0bb30453e..81022307a 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,30 +24,20 @@ 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 d9a62dabc..cfe576a5b 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,14 +24,8 @@ 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);
};
@@ -42,9 +36,7 @@ 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 2f23b4f0c..07f2c5942 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,15 +18,11 @@ 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 {
@@ -36,9 +32,7 @@ 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 6f56116db..7658bdd13 100644
--- a/test/built-ins/Array/from/iter-set-elem-prop.js
+++ b/test/built-ins/Array/from/iter-set-elem-prop.js
@@ -16,18 +16,9 @@ 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 4cd0e0001..d15631db9 100644
--- a/test/built-ins/Array/from/iter-set-length-err.js
+++ b/test/built-ins/Array/from/iter-set-length-err.js
@@ -25,11 +25,7 @@ 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 c00ac5698..ab0e221bf 100644
--- a/test/built-ins/Array/from/iter-set-length.js
+++ b/test/built-ins/Array/from/iter-set-length.js
@@ -29,19 +29,13 @@ 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 a87898bf8..a65512672 100644
--- a/test/built-ins/Array/from/mapfn-throws-exception.js
+++ b/test/built-ins/Array/from/mapfn-throws-exception.js
@@ -7,12 +7,9 @@ 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 9dad81729..4c0587a32 100644
--- a/test/built-ins/Array/from/source-array-boundary.js
+++ b/test/built-ins/Array/from/source-array-boundary.js
@@ -7,15 +7,14 @@ 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 6ac364ac5..94834b5cf 100644
--- a/test/built-ins/Array/from/source-object-iterator-1.js
+++ b/test/built-ins/Array/from/source-object-iterator-1.js
@@ -8,25 +8,23 @@ 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 619405c34..9bcd57053 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]() {
- return {
- index: 0,
- next() {
+ [Symbol.iterator]() {
return {
- value: this.val,
- done: this.isDone
+ 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;
+ }
};
- },
- 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 4127f5ec0..75c46dfc4 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 3c55030da..ad5a6055d 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 fbb187782..96ec31c25 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 79302299f..f422cc144 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 cbc0721a6..9a55d9a0c 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 412226c33..6f807595c 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 d0a5ed7fc..302f9cbe8 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 d0bec2d46..84a6e929e 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 02da7c143..626e83720 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,8 +9,4 @@ 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 952585672..651cf5c11 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 2162edb4a..7e1dc6a25 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 7c03867da..38e354224 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 d0c216a96..0b659bf9b 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 3c117d19c..abe3b60e7 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 6cd213037..9822c925c 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 c09ba6e72..7435827c6 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 e8ac8faa9..55ce90487 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 24bccec08..d213067fe 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 f9800a66e..0594a6b6a 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 534484231..c9b7615f9 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,39 +10,21 @@ 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));
}
@@ -50,14 +32,7 @@ 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));
}
@@ -72,25 +47,14 @@ 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));
}
@@ -98,14 +62,7 @@ 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));
}
@@ -118,14 +75,7 @@ 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 afd9985b1..1bcbb6f97 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 3910be2f0..121bcd6df 100644
--- a/test/built-ins/Array/prototype/concat/15.4.4.4-5-b-iii-3-b-1.js
+++ b/test/built-ins/Array/prototype/concat/15.4.4.4-5-b-iii-3-b-1.js
@@ -9,33 +9,33 @@ description: >
(read-only) exists in Array.prototype (Step 5.b.iii.3.b)
---*/
-Object.defineProperty(Array.prototype, "0", {
- value: 100,
- writable: false,
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ value: 100,
+ writable: false,
+ configurable: true
+ });
-var oldArr = [101];
+ var oldArr = [101];
-var newArr = Array.prototype.concat.call(oldArr);
+ var newArr = Array.prototype.concat.call(oldArr);
-var verifyValue = false;
-verifyValue = newArr[0] === 101;
+ var verifyValue = false;
+ verifyValue = newArr[0] === 101;
-var verifyEnumerable = false;
-for (var p in newArr) {
- if (p === "0" && newArr.hasOwnProperty("0")) {
- verifyEnumerable = true;
- }
-}
+ var verifyEnumerable = false;
+ for (var p in newArr) {
+ if (p === "0" && newArr.hasOwnProperty("0")) {
+ verifyEnumerable = true;
+ }
+ }
-var verifyWritable = false;
-newArr[0] = 12;
-verifyWritable = newArr[0] === 12;
+ var verifyWritable = false;
+ newArr[0] = 12;
+ verifyWritable = newArr[0] === 12;
-var verifyConfigurable = false;
-delete newArr[0];
-verifyConfigurable = newArr.hasOwnProperty("0");
+ var verifyConfigurable = false;
+ delete newArr[0];
+ verifyConfigurable = newArr.hasOwnProperty("0");
assert(verifyValue, 'verifyValue !== true');
assert.sameValue(verifyConfigurable, false, 'verifyConfigurable');
diff --git a/test/built-ins/Array/prototype/concat/15.4.4.4-5-c-i-1.js b/test/built-ins/Array/prototype/concat/15.4.4.4-5-c-i-1.js
index 61ecb1a26..f51ca7107 100644
--- a/test/built-ins/Array/prototype/concat/15.4.4.4-5-c-i-1.js
+++ b/test/built-ins/Array/prototype/concat/15.4.4.4-5-c-i-1.js
@@ -9,35 +9,35 @@ description: >
(read-only) exists in Array.prototype (Step 5.c.i)
---*/
-Object.defineProperty(Array.prototype, "0", {
- value: 100,
- writable: false,
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ value: 100,
+ writable: false,
+ configurable: true
+ });
-var newArr = Array.prototype.concat.call(101);
+ var newArr = Array.prototype.concat.call(101);
-var hasProperty = newArr.hasOwnProperty("0");
+ var hasProperty = newArr.hasOwnProperty("0");
-var instanceOfVerify = typeof newArr[0] === "object";
+ var instanceOfVerify = typeof newArr[0]==="object";
-var verifyValue = false;
-verifyValue = newArr[0] == 101;
+ var verifyValue = false;
+ verifyValue = newArr[0] == 101;
-var verifyEnumerable = false;
-for (var p in newArr) {
- if (p === "0" && newArr.hasOwnProperty("0")) {
- verifyEnumerable = true;
- }
-}
+ var verifyEnumerable = false;
+ for (var p in newArr) {
+ if (p === "0" && newArr.hasOwnProperty("0")) {
+ verifyEnumerable = true;
+ }
+ }
-var verifyWritable = false;
-newArr[0] = 12;
-verifyWritable = newArr[0] === 12;
+ var verifyWritable = false;
+ newArr[0] = 12;
+ verifyWritable = newArr[0] === 12;
-var verifyConfigurable = false;
-delete newArr[0];
-verifyConfigurable = newArr.hasOwnProperty("0");
+ var verifyConfigurable = false;
+ delete newArr[0];
+ verifyConfigurable = newArr.hasOwnProperty("0");
assert(hasProperty, 'hasProperty !== true');
assert(instanceOfVerify, 'instanceOfVerify !== true');
diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-length-to-string-throws.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-length-to-string-throws.js
index 3baf72a4a..00fea1dd7 100644
--- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-length-to-string-throws.js
+++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-length-to-string-throws.js
@@ -10,11 +10,9 @@ features: [Symbol.isConcatSpreadable]
---*/
function MyError() {}
var obj = {
- "length": {
- toString: function() {
+ "length": { toString: function() {
throw new MyError();
- },
- valueOf: null
+ }, valueOf: null
},
"1": "A",
"3": "B",
diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-primitive-non-number-length.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-primitive-non-number-length.js
index 82cf5a767..14de922be 100644
--- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-primitive-non-number-length.js
+++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-primitive-non-number-length.js
@@ -15,17 +15,7 @@ var obj = {
"5": "C"
};
obj[Symbol.isConcatSpreadable] = true;
-obj.length = {
- toString: function() {
- return "SIX";
- },
- valueOf: null
-};
+obj.length = {toString: function() { return "SIX"; }, valueOf: null };
assert(compareArray([].concat(obj), []));
-obj.length = {
- toString: null,
- valueOf: function() {
- return "SIX";
- }
-};
+obj.length = {toString: null, valueOf: function() { return "SIX"; } };
assert(compareArray([].concat(obj), []));
diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-string-length.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-string-length.js
index 8b94d6594..1c63b62f4 100644
--- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-string-length.js
+++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-string-length.js
@@ -16,12 +16,7 @@ var obj = {
"5": "C"
};
obj[Symbol.isConcatSpreadable] = true;
-var obj2 = {
- length: 3,
- "0": "0",
- "1": "1",
- "2": "2"
-};
+var obj2 = { length: 3, "0": "0", "1": "1", "2": "2" };
var arr = ["X", "Y", "Z"];
var expected = [
diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-to-length-throws.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-to-length-throws.js
index 907a30b7b..0322eaf1e 100644
--- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-to-length-throws.js
+++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-to-length-throws.js
@@ -9,21 +9,13 @@ description: Array.prototype.concat array like to length throws
features: [Symbol.isConcatSpreadable]
---*/
var obj = {
- "length": {
- valueOf: null,
- toString: null
- },
+ "length": {valueOf: null, toString: null},
"1": "A",
"3": "B",
"5": "C"
};
obj[Symbol.isConcatSpreadable] = true;
-var obj2 = {
- length: 3,
- "0": "0",
- "1": "1",
- "2": "2"
-};
+var obj2 = { length: 3, "0": "0", "1": "1", "2": "2" };
var arr = ["X", "Y", "Z"];
assert.throws(TypeError, function() {
Array.prototype.concat.call(obj, obj2, arr);
diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like.js
index bfdf3c8e9..3b747f931 100644
--- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like.js
+++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like.js
@@ -17,12 +17,7 @@ var obj = {
"5": "C"
};
obj[Symbol.isConcatSpreadable] = true;
-var obj2 = {
- length: 3,
- "0": "0",
- "1": "1",
- "2": "2"
-};
+var obj2 = { length: 3, "0": "0", "1": "1", "2": "2" };
var arr = ["X", "Y", "Z"];
var expected = [
diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_holey-sloppy-arguments.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_holey-sloppy-arguments.js
index 44082769b..d8bab8d4a 100644
--- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_holey-sloppy-arguments.js
+++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_holey-sloppy-arguments.js
@@ -10,9 +10,7 @@ description: Array.prototype.concat holey sloppy arguments
includes: [compareArray.js]
features: [Symbol.isConcatSpreadable]
---*/
-var args = (function(a) {
- return arguments;
-})(1, 2, 3);
+var args = (function(a) { return arguments; })(1,2,3);
delete args[1];
args[Symbol.isConcatSpreadable] = true;
assert(compareArray([1, void 0, 3, 1, void 0, 3], [].concat(args, args)));
diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_large-typed-array.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_large-typed-array.js
index cb37746a2..dcf593907 100644
--- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_large-typed-array.js
+++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_large-typed-array.js
@@ -31,9 +31,7 @@ function concatTypedArray(type, elems, modulo) {
var expected = new Array(4000);
expected[0] = defValue;
- Object.defineProperty(ta, "length", {
- value: 4000
- });
+ Object.defineProperty(ta, "length", { value: 4000 });
ta[Symbol.isConcatSpreadable] = true;
assert(compareArray([].concat(ta), expected));
}
diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_length-throws.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_length-throws.js
index c040d94a1..3aef5b782 100644
--- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_length-throws.js
+++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_length-throws.js
@@ -13,9 +13,7 @@ function MyError() {}
var obj = {};
obj[Symbol.isConcatSpreadable] = true;
Object.defineProperty(obj, "length", {
- get: function() {
- throw new MyError();
- }
+ get: function() { throw new MyError(); }
});
assert.throws(MyError, function() {
diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_non-array.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_non-array.js
index bd080ee42..f6ed9cf11 100644
--- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_non-array.js
+++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_non-array.js
@@ -19,8 +19,8 @@ class NonArray {
}
}
-var obj = new NonArray(1, 2, 3);
+var obj = new NonArray(1,2,3);
var result = Array.prototype.concat.call(obj, 4, 5, 6);
assert.sameValue(Array, result.constructor);
assert.sameValue(result instanceof NonArray, false);
-assert(compareArray(result, [obj, 4, 5, 6]));
+assert(compareArray(result, [obj,4,5,6]));
diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments-throws.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments-throws.js
index 605330051..8aefe98da 100644
--- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments-throws.js
+++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments-throws.js
@@ -10,13 +10,9 @@ description: Array.prototype.concat sloppy arguments throws
features: [Symbol.isConcatSpreadable]
---*/
function MyError() {}
-var args = (function(a) {
- return arguments;
-})(1, 2, 3);
+var args = (function(a) { return arguments; })(1,2,3);
Object.defineProperty(args, 0, {
- get: function() {
- throw new MyError();
- }
+ get: function() { throw new MyError(); }
});
args[Symbol.isConcatSpreadable] = true;
assert.throws(MyError, function() {
diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments-with-dupes.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments-with-dupes.js
index a6bca8a0d..effb606b3 100644
--- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments-with-dupes.js
+++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments-with-dupes.js
@@ -11,13 +11,9 @@ flags: [noStrict]
includes: [compareArray.js]
features: [Symbol.isConcatSpreadable]
---*/
-var args = (function(a, a, a) {
- return arguments;
-})(1, 2, 3);
+var args = (function(a, a, a) { return arguments; })(1,2,3);
args[Symbol.isConcatSpreadable] = true;
assert(compareArray([].concat(args, args), [1, 2, 3, 1, 2, 3]));
-Object.defineProperty(args, "length", {
- value: 6
-});
+Object.defineProperty(args, "length", { value: 6 });
assert(compareArray([].concat(args), [1, 2, 3, void 0, void 0, void 0]));
diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments.js
index 54e80acef..d80545620 100644
--- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments.js
+++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments.js
@@ -10,13 +10,9 @@ description: Array.prototype.concat sloppy arguments
includes: [compareArray.js]
features: [Symbol.isConcatSpreadable]
---*/
-var args = (function(a, b, c) {
- return arguments;
-})(1, 2, 3);
+var args = (function(a, b, c) { return arguments; })(1,2,3);
args[Symbol.isConcatSpreadable] = true;
assert(compareArray([].concat(args, args), [1, 2, 3, 1, 2, 3]));
-Object.defineProperty(args, "length", {
- value: 6
-});
+Object.defineProperty(args, "length", { value: 6 });
assert(compareArray([].concat(args), [1, 2, 3, void 0, void 0, void 0]));
diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_small-typed-array.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_small-typed-array.js
index 1d5c1ecbb..09fc40e0b 100644
--- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_small-typed-array.js
+++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_small-typed-array.js
@@ -31,9 +31,7 @@ function concatTypedArray(type, elems, modulo) {
var expected = new Array(4000);
expected[0] = defValue;
- Object.defineProperty(ta, "length", {
- value: 4000
- });
+ Object.defineProperty(ta, "length", { value: 4000 });
ta[Symbol.isConcatSpreadable] = true;
assert(compareArray([].concat(ta), expected));
}
diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-boolean-wrapper.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-boolean-wrapper.js
index ed021358f..00ec7689b 100644
--- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-boolean-wrapper.js
+++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-boolean-wrapper.js
@@ -27,7 +27,7 @@ Boolean.prototype[0] = 1;
Boolean.prototype[1] = 2;
Boolean.prototype[2] = 3;
Boolean.prototype.length = 3;
-assert(compareArray([1, 2, 3], [].concat(new Boolean(true))));
+assert(compareArray([1,2,3], [].concat(new Boolean(true))));
// Boolean values are never concat-spreadable
assert(compareArray([true], [].concat(true)));
diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-function.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-function.js
index 8ed6bf21c..5b5b5aca4 100644
--- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-function.js
+++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-function.js
@@ -21,11 +21,11 @@ assert(compareArray([1, 2, 3], [].concat(fn)));
Function.prototype[Symbol.isConcatSpreadable] = true;
// Functions may be concat-spreadable
-assert(compareArray([void 0, void 0, void 0], [].concat(function(a, b, c) {})));
+assert(compareArray([void 0, void 0, void 0], [].concat(function(a,b,c) {})));
Function.prototype[0] = 1;
Function.prototype[1] = 2;
Function.prototype[2] = 3;
-assert(compareArray([1, 2, 3], [].concat(function(a, b, c) {})));
+assert(compareArray([1,2,3], [].concat(function(a, b, c) {})));
delete Function.prototype[Symbol.isConcatSpreadable];
delete Function.prototype[0];
diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-getter-throws.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-getter-throws.js
index 8a0b64dee..626f6d292 100644
--- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-getter-throws.js
+++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-getter-throws.js
@@ -12,9 +12,7 @@ features: [Symbol.isConcatSpreadable]
function MyError() {}
var obj = {};
Object.defineProperty(obj, Symbol.isConcatSpreadable, {
- get: function() {
- throw new MyError();
- }
+ get: function() { throw new MyError(); }
});
assert.throws(MyError, function() {
diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-number-wrapper.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-number-wrapper.js
index d28acb7d1..9ea803b4b 100644
--- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-number-wrapper.js
+++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-number-wrapper.js
@@ -27,7 +27,7 @@ Number.prototype[0] = 1;
Number.prototype[1] = 2;
Number.prototype[2] = 3;
Number.prototype.length = 3;
-assert(compareArray([1, 2, 3], [].concat(new Number(123))));
+assert(compareArray([1,2,3], [].concat(new Number(123))));
// Number values are never concat-spreadable
assert(compareArray([true], [].concat(true)));
diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-reg-exp.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-reg-exp.js
index 6a11c8eca..4003fe33c 100644
--- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-reg-exp.js
+++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-reg-exp.js
@@ -27,7 +27,7 @@ assert(compareArray([].concat(/abc/), [void 0, void 0, void 0]));
RegExp.prototype[0] = 1;
RegExp.prototype[1] = 2;
RegExp.prototype[2] = 3;
-assert(compareArray([].concat(/abc/), [1, 2, 3]));
+assert(compareArray([].concat(/abc/), [1,2,3]));
delete RegExp.prototype[Symbol.isConcatSpreadable];
delete RegExp.prototype[0];
diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-sparse-object.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-sparse-object.js
index 1c4aa7f2d..4b3f40d18 100644
--- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-sparse-object.js
+++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-sparse-object.js
@@ -10,9 +10,7 @@ description: Array.prototype.concat Symbol.isConcatSpreadable sparse object
includes: [compareArray.js]
features: [Symbol.isConcatSpreadable]
---*/
-var obj = {
- length: 5
-};
+var obj = { length: 5 };
obj[Symbol.isConcatSpreadable] = true;
assert(compareArray([void 0, void 0, void 0, void 0, void 0], [].concat(obj)));
diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_strict-arguments.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_strict-arguments.js
index 49dfc415c..2d8b5868a 100644
--- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_strict-arguments.js
+++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_strict-arguments.js
@@ -10,14 +10,9 @@ description: Array.prototype.concat strict arguments
includes: [compareArray.js]
features: [Symbol.isConcatSpreadable]
---*/
-var args = (function(a, b, c) {
- "use strict";
- return arguments;
-})(1, 2, 3);
+var args = (function(a, b, c) { "use strict"; return arguments; })(1,2,3);
args[Symbol.isConcatSpreadable] = true;
assert(compareArray([].concat(args, args), [1, 2, 3, 1, 2, 3]));
-Object.defineProperty(args, "length", {
- value: 6
-});
+Object.defineProperty(args, "length", { value: 6 });
assert(compareArray([].concat(args), [1, 2, 3, void 0, void 0, void 0]));
diff --git a/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T1.js b/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T1.js
index e06836b67..7a590596d 100644
--- a/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T1.js
+++ b/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T1.js
@@ -12,9 +12,9 @@ description: Checking this algorithm, items are Array object
---*/
var x = new Array();
-var y = new Array(0, 1);
-var z = new Array(2, 3, 4);
-var arr = x.concat(y, z);
+var y = new Array(0,1);
+var z = new Array(2,3,4);
+var arr = x.concat(y,z);
//CHECK#0
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T2.js b/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T2.js
index 100ecaa9d..4024275a2 100644
--- a/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T2.js
+++ b/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T2.js
@@ -13,8 +13,8 @@ description: Checking this algorithm, items are objects and primitives
var x = [0];
var y = new Object();
-var z = new Array(1, 2);
-var arr = x.concat(y, z, -1, true, "NaN");
+var z = new Array(1,2);
+var arr = x.concat(y,z, -1, true, "NaN");
//CHECK#0
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T3.js b/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T3.js
index 82a8d6f00..bb88eba5e 100644
--- a/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T3.js
+++ b/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T3.js
@@ -11,7 +11,7 @@ es5id: 15.4.4.4_A1_T3
description: Checking this algorithm with no items
---*/
-var x = [0, 1];
+var x = [0,1];
var arr = x.concat();
//CHECK#0
diff --git a/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T4.js b/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T4.js
index 44ca8f91f..028207051 100644
--- a/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T4.js
+++ b/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T4.js
@@ -11,8 +11,8 @@ es5id: 15.4.4.4_A1_T4
description: Checking this algorithm, items are [], [,]
---*/
-var x = [, 1];
-var arr = x.concat([], [, ]);
+var x = [,1];
+var arr = x.concat([], [,]);
//CHECK#0
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/concat/S15.4.4.4_A2_T1.js b/test/built-ins/Array/prototype/concat/S15.4.4.4_A2_T1.js
index a77b0e07c..ce825917a 100644
--- a/test/built-ins/Array/prototype/concat/S15.4.4.4_A2_T1.js
+++ b/test/built-ins/Array/prototype/concat/S15.4.4.4_A2_T1.js
@@ -13,8 +13,8 @@ description: Checking this for Object object, items are objects and primitives
var x = {};
x.concat = Array.prototype.concat;
var y = new Object();
-var z = new Array(1, 2);
-var arr = x.concat(y, z, -1, true, "NaN");
+var z = new Array(1,2);
+var arr = x.concat(y,z, -1, true, "NaN");
//CHECK#0
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T1.js b/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T1.js
index ed7c03c9f..e98d9e41d 100644
--- a/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T1.js
+++ b/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T1.js
@@ -33,9 +33,7 @@ if (arr.hasOwnProperty('1') !== true) {
Object.prototype[1] = 1;
Object.prototype.length = 2;
Object.prototype.concat = Array.prototype.concat;
-x = {
- 0: 0
-};
+x = {0:0};
var arr = x.concat();
//CHECK#4
diff --git a/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T2.js b/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T2.js
index 843410296..b58435329 100644
--- a/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T2.js
+++ b/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T2.js
@@ -62,3 +62,4 @@ if (b.hasOwnProperty('1') !== false) {
if (b.hasOwnProperty('2') !== true) {
$ERROR("expected b.hasOwnProperty('2') === true, actually " + b.hasOwnProperty('2'));
}
+
diff --git a/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T3.js b/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T3.js
index e1eacc545..c86f736cb 100644
--- a/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T3.js
+++ b/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T3.js
@@ -62,3 +62,4 @@ if (b.hasOwnProperty('1') !== false) {
if (b.hasOwnProperty('2') !== true) {
$ERROR("expected b.hasOwnProperty('2') === true, actually " + b.hasOwnProperty('2'));
}
+
diff --git a/test/built-ins/Array/prototype/concat/create-non-array.js b/test/built-ins/Array/prototype/concat/create-non-array.js
index b33667a9a..171e2baab 100644
--- a/test/built-ins/Array/prototype/concat/create-non-array.js
+++ b/test/built-ins/Array/prototype/concat/create-non-array.js
@@ -15,9 +15,7 @@ info: |
4. If isArray is false, return ? ArrayCreate(length).
---*/
-var obj = {
- length: 0
-};
+var obj = { length: 0 };
var callCount = 0;
var result;
Object.defineProperty(obj, 'constructor', {
diff --git a/test/built-ins/Array/prototype/copyWithin/coerced-values-end.js b/test/built-ins/Array/prototype/copyWithin/coerced-values-end.js
index a1d4e04a4..9cb416ae1 100644
--- a/test/built-ins/Array/prototype/copyWithin/coerced-values-end.js
+++ b/test/built-ins/Array/prototype/copyWithin/coerced-values-end.js
@@ -17,42 +17,48 @@ includes: [compareArray.js]
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(1, 0, null), [0, 1, 2, 3]
+ [0, 1, 2, 3].copyWithin(1, 0, null),
+ [0, 1, 2, 3]
),
'null value coerced to 0'
);
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(1, 0, NaN), [0, 1, 2, 3]
+ [0, 1, 2, 3].copyWithin(1, 0, NaN),
+ [0, 1, 2, 3]
),
'NaN value coerced to 0'
);
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(1, 0, false), [0, 1, 2, 3]
+ [0, 1, 2, 3].copyWithin(1, 0, false),
+ [0, 1, 2, 3]
),
'false value coerced to 0'
);
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(1, 0, true), [0, 0, 2, 3]
+ [0, 1, 2, 3].copyWithin(1, 0, true),
+ [0, 0, 2, 3]
),
'true value coerced to 1'
);
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(1, 0, '-2'), [0, 0, 1, 3]
+ [0, 1, 2, 3].copyWithin(1, 0, '-2'),
+ [0, 0, 1, 3]
),
'string "-2" value coerced to integer -2'
);
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(1, 0, -2.5), [0, 0, 1, 3]
+ [0, 1, 2, 3].copyWithin(1, 0, -2.5),
+ [0, 0, 1, 3]
),
'float -2.5 value coerced to integer -2'
);
diff --git a/test/built-ins/Array/prototype/copyWithin/coerced-values-start.js b/test/built-ins/Array/prototype/copyWithin/coerced-values-start.js
index 5789f7ede..182655bf5 100644
--- a/test/built-ins/Array/prototype/copyWithin/coerced-values-start.js
+++ b/test/built-ins/Array/prototype/copyWithin/coerced-values-start.js
@@ -16,28 +16,32 @@ includes: [compareArray.js]
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(1, undefined), [0, 0, 1, 2]
+ [0, 1, 2, 3].copyWithin(1, undefined),
+ [0, 0, 1, 2]
),
'undefined value coerced to 0'
);
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(1, false), [0, 0, 1, 2]
+ [0, 1, 2, 3].copyWithin(1, false),
+ [0, 0, 1, 2]
),
'false value coerced to 0'
);
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(1, NaN), [0, 0, 1, 2]
+ [0, 1, 2, 3].copyWithin(1, NaN),
+ [0, 0, 1, 2]
),
'NaN value coerced to 0'
);
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(1, null), [0, 0, 1, 2]
+ [0, 1, 2, 3].copyWithin(1, null),
+ [0, 0, 1, 2]
),
'null value coerced to 0'
);
@@ -45,7 +49,8 @@ assert(
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(0, true), [1, 2, 3, 3]
+ [0, 1, 2, 3].copyWithin(0, true),
+ [1, 2, 3, 3]
),
'true value coerced to 1'
);
@@ -53,21 +58,24 @@ assert(
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(0, '1'), [1, 2, 3, 3]
+ [0, 1, 2, 3].copyWithin(0, '1'),
+ [1, 2, 3, 3]
),
'string "1" value coerced to 1'
);
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(1, 0.5), [0, 0, 1, 2]
+ [0, 1, 2, 3].copyWithin(1, 0.5),
+ [0, 0, 1, 2]
),
'0.5 float value coerced to integer 0'
);
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(0, 1.5), [1, 2, 3, 3]
+ [0, 1, 2, 3].copyWithin(0, 1.5),
+ [1, 2, 3, 3]
),
'1.5 float value coerced to integer 1'
);
diff --git a/test/built-ins/Array/prototype/copyWithin/coerced-values-target.js b/test/built-ins/Array/prototype/copyWithin/coerced-values-target.js
index 54465b97a..2646b19f2 100644
--- a/test/built-ins/Array/prototype/copyWithin/coerced-values-target.js
+++ b/test/built-ins/Array/prototype/copyWithin/coerced-values-target.js
@@ -16,28 +16,32 @@ includes: [compareArray.js]
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(undefined, 1), [1, 2, 3, 3]
+ [0, 1, 2, 3].copyWithin(undefined, 1),
+ [1, 2, 3, 3]
),
'undefined value coerced to 0'
);
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(false, 1), [1, 2, 3, 3]
+ [0, 1, 2, 3].copyWithin(false, 1),
+ [1, 2, 3, 3]
),
'false value coerced to 0'
);
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(NaN, 1), [1, 2, 3, 3]
+ [0, 1, 2, 3].copyWithin(NaN, 1),
+ [1, 2, 3, 3]
),
'NaN value coerced to 0'
);
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(null, 1), [1, 2, 3, 3]
+ [0, 1, 2, 3].copyWithin(null, 1),
+ [1, 2, 3, 3]
),
'null value coerced to 0'
);
@@ -45,7 +49,8 @@ assert(
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(true, 0), [0, 0, 1, 2]
+ [0, 1, 2, 3].copyWithin(true, 0),
+ [0, 0, 1, 2]
),
'true value coerced to 1'
);
@@ -53,21 +58,24 @@ assert(
assert(
compareArray(
- [0, 1, 2, 3].copyWithin('1', 0), [0, 0, 1, 2]
+ [0, 1, 2, 3].copyWithin('1', 0),
+ [0, 0, 1, 2]
),
'string "1" value coerced to 1'
);
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(0.5, 1), [1, 2, 3, 3]
+ [0, 1, 2, 3].copyWithin(0.5, 1),
+ [1, 2, 3, 3]
),
'0.5 float value coerced to integer 0'
);
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(1.5, 0), [0, 0, 1, 2]
+ [0, 1, 2, 3].copyWithin(1.5, 0),
+ [0, 0, 1, 2]
),
'1.5 float value coerced to integer 1'
);
diff --git a/test/built-ins/Array/prototype/copyWithin/negative-end.js b/test/built-ins/Array/prototype/copyWithin/negative-end.js
index 81e97abfd..70aa0e0e2 100644
--- a/test/built-ins/Array/prototype/copyWithin/negative-end.js
+++ b/test/built-ins/Array/prototype/copyWithin/negative-end.js
@@ -20,56 +20,64 @@ includes: [compareArray.js]
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(0, 1, -1), [1, 2, 2, 3]
+ [0, 1, 2, 3].copyWithin(0, 1, -1),
+ [1, 2, 2, 3]
),
'[0, 1, 2, 3].copyWithin(0, 1, -1) -> [1, 2, 2, 3]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4].copyWithin(2, 0, -1), [0, 1, 0, 1, 2]
+ [0, 1, 2, 3, 4].copyWithin(2, 0, -1),
+ [0, 1, 0, 1, 2]
),
'[0, 1, 2, 3, 4].copyWithin(2, 0, -1) -> [0, 1, 0, 1, 2]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4].copyWithin(1, 2, -2), [0, 2, 2, 3, 4]
+ [0, 1, 2, 3, 4].copyWithin(1, 2, -2),
+ [0, 2, 2, 3, 4]
),
'[0, 1, 2, 3, 4].copyWithin(1, 2, -2) -> [0, 2, 2, 3, 4]'
);
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(0, -2, -1), [2, 1, 2, 3]
+ [0, 1, 2, 3].copyWithin(0, -2, -1),
+ [2, 1, 2, 3]
),
'[0, 1, 2, 3].copyWithin(0, -2, -1) -> [2, 1, 2, 3]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4].copyWithin(2, -2, -1), [0, 1, 3, 3, 4]
+ [0, 1, 2, 3, 4].copyWithin(2, -2, -1),
+ [0, 1, 3, 3, 4]
),
'[0, 1, 2, 3, 4].copyWithin(2, -2, 1) -> [0, 1, 3, 3, 4]'
);
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(-3, -2, -1), [0, 2, 2, 3]
+ [0, 1, 2, 3].copyWithin(-3, -2, -1),
+ [0, 2, 2, 3]
),
'[0, 1, 2, 3].copyWithin(-3, -2, -1) -> [0, 2, 2, 3]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4].copyWithin(-2, -3, -1), [0, 1, 2, 2, 3]
+ [0, 1, 2, 3, 4].copyWithin(-2, -3, -1),
+ [0, 1, 2, 2, 3]
),
'[0, 1, 2, 3, 4].copyWithin(-2, -3, -1) -> [0, 1, 2, 2, 3]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4].copyWithin(-5, -2, -1), [3, 1, 2, 3, 4]
+ [0, 1, 2, 3, 4].copyWithin(-5, -2, -1),
+ [3, 1, 2, 3, 4]
),
'[0, 1, 2, 3, 4].copyWithin(-5, -2, -1) -> [3, 1, 2, 3, 4]'
);
diff --git a/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-end.js b/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-end.js
index 34b837461..072d03e70 100644
--- a/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-end.js
+++ b/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-end.js
@@ -20,70 +20,80 @@ includes: [compareArray.js]
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(0, 1, -10), [0, 1, 2, 3]
+ [0, 1, 2, 3].copyWithin(0, 1, -10),
+ [0, 1, 2, 3]
),
'[0, 1, 2, 3].copyWithin(0, 1, -10) -> [0, 1, 2, 3]'
);
assert(
compareArray(
- [1, 2, 3, 4, 5].copyWithin(0, 1, -Infinity), [1, 2, 3, 4, 5]
+ [1, 2, 3, 4, 5].copyWithin(0, 1, -Infinity),
+ [1, 2, 3, 4, 5]
),
'[1, 2, 3, 4, 5].copyWithin(0, 1, -Infinity) -> [1, 2, 3, 4, 5]'
);
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(0, -2, -10), [0, 1, 2, 3]
+ [0, 1, 2, 3].copyWithin(0, -2, -10),
+ [0, 1, 2, 3]
),
'[0, 1, 2, 3].copyWithin(0, -2, -10) -> [0, 1, 2, 3]'
);
assert(
compareArray(
- [1, 2, 3, 4, 5].copyWithin(0, -2, -Infinity), [1, 2, 3, 4, 5]
+ [1, 2, 3, 4, 5].copyWithin(0, -2, -Infinity),
+ [1, 2, 3, 4, 5]
),
'[1, 2, 3, 4, 5].copyWithin(0, -2, -Infinity) -> [1, 2, 3, 4, 5]'
);
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(0, -9, -10), [0, 1, 2, 3]
+ [0, 1, 2, 3].copyWithin(0, -9, -10),
+ [0, 1, 2, 3]
),
'[0, 1, 2, 3].copyWithin(0, -9, -10) -> [0, 1, 2, 3]'
);
assert(
compareArray(
- [1, 2, 3, 4, 5].copyWithin(0, -9, -Infinity), [1, 2, 3, 4, 5]
+ [1, 2, 3, 4, 5].copyWithin(0, -9, -Infinity),
+ [1, 2, 3, 4, 5]
),
'[1, 2, 3, 4, 5].copyWithin(0, -9, -Infinity) -> [1, 2, 3, 4, 5]'
);
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(-3, -2, -10), [0, 1, 2, 3]
+ [0, 1, 2, 3].copyWithin(-3, -2, -10),
+ [0, 1, 2, 3]
),
'[0, 1, 2, 3].copyWithin(-3, -2, -10) -> [0, 1, 2, 3]'
);
assert(
compareArray(
- [1, 2, 3, 4, 5].copyWithin(-3, -2, -Infinity), [1, 2, 3, 4, 5]
+ [1, 2, 3, 4, 5].copyWithin(-3, -2, -Infinity),
+ [1, 2, 3, 4, 5]
),
'[1, 2, 3, 4, 5].copyWithin(-3, -2, -Infinity) -> [1, 2, 3, 4, 5]'
);
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(-7, -8, -9), [0, 1, 2, 3]
+ [0, 1, 2, 3].copyWithin(-7, -8, -9),
+ [0, 1, 2, 3]
),
'[0, 1, 2, 3].copyWithin(-7, -8, -9) -> [0, 1, 2, 3]'
);
assert(
compareArray(
- [1, 2, 3, 4, 5].copyWithin(-7, -8, -Infinity), [1, 2, 3, 4, 5]
+ [1, 2, 3, 4, 5].copyWithin(-7, -8, -Infinity),
+ [1, 2, 3, 4, 5]
),
'[1, 2, 3, 4, 5].copyWithin(-7, -8, -Infinity) -> [1, 2, 3, 4, 5]'
);
diff --git a/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-start.js b/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-start.js
index e3002b70f..1f31fc9eb 100644
--- a/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-start.js
+++ b/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-start.js
@@ -17,28 +17,32 @@ includes: [compareArray.js]
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(0, -10), [0, 1, 2, 3]
+ [0, 1, 2, 3].copyWithin(0, -10),
+ [0, 1, 2, 3]
),
'[0, 1, 2, 3].copyWithin(0, -10) -> [0, 1, 2, 3]'
);
assert(
compareArray(
- [1, 2, 3, 4, 5].copyWithin(0, -Infinity), [1, 2, 3, 4, 5]
+ [1, 2, 3, 4, 5].copyWithin(0, -Infinity),
+ [1, 2, 3, 4, 5]
),
'[1, 2, 3, 4, 5].copyWithin(0, -Infinity) -> [1, 2, 3, 4, 5]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4].copyWithin(2, -10), [0, 1, 0, 1, 2]
+ [0, 1, 2, 3, 4].copyWithin(2, -10),
+ [0, 1, 0, 1, 2]
),
'[0, 1, 2, 3, 4].copyWithin(2, -2) -> [0, 1, 0, 1, 2]'
);
assert(
compareArray(
- [1, 2, 3, 4, 5].copyWithin(2, -Infinity), [1, 2, 1, 2, 3]
+ [1, 2, 3, 4, 5].copyWithin(2, -Infinity),
+ [1, 2, 1, 2, 3]
),
'[1, 2, 3, 4, 5].copyWithin(2, -Infinity) -> [1, 2, 1, 2, 3]'
);
@@ -46,14 +50,16 @@ assert(
assert(
compareArray(
- [0, 1, 2, 3, 4].copyWithin(10, -10), [0, 1, 2, 3, 4]
+ [0, 1, 2, 3, 4].copyWithin(10, -10),
+ [0, 1, 2, 3, 4]
),
'[0, 1, 2, 3, 4].copyWithin(10, -10) -> [0, 1, 2, 3, 4]'
);
assert(
compareArray(
- [1, 2, 3, 4, 5].copyWithin(10, -Infinity), [1, 2, 3, 4, 5]
+ [1, 2, 3, 4, 5].copyWithin(10, -Infinity),
+ [1, 2, 3, 4, 5]
),
'[1, 2, 3, 4, 5].copyWithin(10, -Infinity) -> [1, 2, 3, 4, 5]'
);
@@ -61,14 +67,16 @@ assert(
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(-9, -10), [0, 1, 2, 3]
+ [0, 1, 2, 3].copyWithin(-9, -10),
+ [0, 1, 2, 3]
),
'[0, 1, 2, 3].copyWithin(-9, -10) -> [0, 1, 2, 3]'
);
assert(
compareArray(
- [1, 2, 3, 4, 5].copyWithin(-9, -Infinity), [1, 2, 3, 4, 5]
+ [1, 2, 3, 4, 5].copyWithin(-9, -Infinity),
+ [1, 2, 3, 4, 5]
),
'[1, 2, 3, 4, 5].copyWithin(-9, -Infinity) -> [1, 2, 3, 4, 5]'
);
diff --git a/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-target.js b/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-target.js
index f17ab8a8a..72b95dcac 100644
--- a/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-target.js
+++ b/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-target.js
@@ -17,28 +17,32 @@ includes: [compareArray.js]
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(-10, 0), [0, 1, 2, 3]
+ [0, 1, 2, 3].copyWithin(-10, 0),
+ [0, 1, 2, 3]
),
'[0, 1, 2, 3].copyWithin(-10, 0) -> [0, 1, 2, 3]'
);
assert(
compareArray(
- [1, 2, 3, 4, 5].copyWithin(-Infinity, 0), [1, 2, 3, 4, 5]
+ [1, 2, 3, 4, 5].copyWithin(-Infinity, 0),
+ [1, 2, 3, 4, 5]
),
'[1, 2, 3, 4, 5].copyWithin(-Infinity, 0) -> [1, 2, 3, 4, 5]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4].copyWithin(-10, 2), [2, 3, 4, 3, 4]
+ [0, 1, 2, 3, 4].copyWithin(-10, 2),
+ [2, 3, 4, 3, 4]
),
'[0, 1, 2, 3, 4].copyWithin(-10, 2) -> [2, 3, 4, 3, 4]'
);
assert(
compareArray(
- [1, 2, 3, 4, 5].copyWithin(-Infinity, 2), [3, 4, 5, 4, 5]
+ [1, 2, 3, 4, 5].copyWithin(-Infinity, 2),
+ [3, 4, 5, 4, 5]
),
'[1, 2, 3, 4, 5].copyWithin(-Infinity, 2) -> [3, 4, 5, 4, 5]'
);
diff --git a/test/built-ins/Array/prototype/copyWithin/negative-start.js b/test/built-ins/Array/prototype/copyWithin/negative-start.js
index 3989b288d..4cec365ad 100644
--- a/test/built-ins/Array/prototype/copyWithin/negative-start.js
+++ b/test/built-ins/Array/prototype/copyWithin/negative-start.js
@@ -17,42 +17,48 @@ includes: [compareArray.js]
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(0, -1), [3, 1, 2, 3]
+ [0, 1, 2, 3].copyWithin(0, -1),
+ [3, 1, 2, 3]
),
'[0, 1, 2, 3].copyWithin(0, -1) -> [3, 1, 2, 3]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4].copyWithin(2, -2), [0, 1, 3, 4, 4]
+ [0, 1, 2, 3, 4].copyWithin(2, -2),
+ [0, 1, 3, 4, 4]
),
'[0, 1, 2, 3, 4].copyWithin(2, -2) -> [0, 1, 3, 4, 4]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4].copyWithin(1, -2), [0, 3, 4, 3, 4]
+ [0, 1, 2, 3, 4].copyWithin(1, -2),
+ [0, 3, 4, 3, 4]
),
'[0, 1, 2, 3, 4].copyWithin(1, -2) -> [0, 3, 4, 3, 4]'
);
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(-1, -2), [0, 1, 2, 2]
+ [0, 1, 2, 3].copyWithin(-1, -2),
+ [0, 1, 2, 2]
),
'[0, 1, 2, 3].copyWithin(-1, -2) -> [ 0, 1, 2, 2 ]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4].copyWithin(-2, -3), [0, 1, 2, 2, 3]
+ [0, 1, 2, 3, 4].copyWithin(-2, -3),
+ [0, 1, 2, 2, 3]
),
'[0, 1, 2, 3, 4].copyWithin(-2, -3) -> [0, 1, 2, 2, 3]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4].copyWithin(-5, -2), [3, 4, 2, 3, 4]
+ [0, 1, 2, 3, 4].copyWithin(-5, -2),
+ [3, 4, 2, 3, 4]
),
'[0, 1, 2, 3, 4].copyWithin(-5, -2) -> [3, 4, 2, 3, 4]'
);
diff --git a/test/built-ins/Array/prototype/copyWithin/negative-target.js b/test/built-ins/Array/prototype/copyWithin/negative-target.js
index 99844a4b8..29fd24975 100644
--- a/test/built-ins/Array/prototype/copyWithin/negative-target.js
+++ b/test/built-ins/Array/prototype/copyWithin/negative-target.js
@@ -17,21 +17,24 @@ includes: [compareArray.js]
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(-1, 0), [0, 1, 2, 0]
+ [0, 1, 2, 3].copyWithin(-1, 0),
+ [0, 1, 2, 0]
),
'[0, 1, 2, 3].copyWithin(-1, 0) -> [0, 1, 2, 0]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4].copyWithin(-2, 2), [0, 1, 2, 2, 3]
+ [0, 1, 2, 3, 4].copyWithin(-2, 2),
+ [0, 1, 2, 2, 3]
),
'[0, 1, 2, 3, 4].copyWithin(-2, 2) -> [0, 1, 2, 2, 3]'
);
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(-1, 2), [0, 1, 2, 2]
+ [0, 1, 2, 3].copyWithin(-1, 2),
+ [0, 1, 2, 2]
),
'[0, 1, 2, 3].copyWithin(-1, 2) -> [0, 1, 2, 2]'
);
diff --git a/test/built-ins/Array/prototype/copyWithin/non-negative-out-of-bounds-end.js b/test/built-ins/Array/prototype/copyWithin/non-negative-out-of-bounds-end.js
index d20bc64c2..6af95e724 100644
--- a/test/built-ins/Array/prototype/copyWithin/non-negative-out-of-bounds-end.js
+++ b/test/built-ins/Array/prototype/copyWithin/non-negative-out-of-bounds-end.js
@@ -36,28 +36,32 @@ includes: [compareArray.js]
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(0, 1, 6), [1, 2, 3, 3]
+ [0, 1, 2, 3].copyWithin(0, 1, 6),
+ [1, 2, 3, 3]
),
'[0, 1, 2, 3].copyWithin(0, 1, 6) -> [1, 2, 3, 3]'
);
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(0, 1, Infinity), [1, 2, 3, 3]
+ [0, 1, 2, 3].copyWithin(0, 1, Infinity),
+ [1, 2, 3, 3]
),
'[0, 1, 2, 3].copyWithin(0, 1, Infinity) -> [1, 2, 3, 3]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4, 5].copyWithin(1, 3, 6), [0, 3, 4, 5, 4, 5]
+ [0, 1, 2, 3, 4, 5].copyWithin(1, 3, 6),
+ [0, 3, 4, 5, 4, 5]
),
'[0, 1, 2, 3, 4, 5].copyWithin(1, 3, 6) -> [0, 3, 4, 5, 4, 5]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4, 5].copyWithin(1, 3, Infinity), [0, 3, 4, 5, 4, 5]
+ [0, 1, 2, 3, 4, 5].copyWithin(1, 3, Infinity),
+ [0, 3, 4, 5, 4, 5]
),
'[0, 1, 2, 3, 4, 5].copyWithin(1, 3, Infinity) -> [0, 3, 4, 5, 4, 5]'
);
diff --git a/test/built-ins/Array/prototype/copyWithin/non-negative-out-of-bounds-target-and-start.js b/test/built-ins/Array/prototype/copyWithin/non-negative-out-of-bounds-target-and-start.js
index 64f3c5854..e38edecd7 100644
--- a/test/built-ins/Array/prototype/copyWithin/non-negative-out-of-bounds-target-and-start.js
+++ b/test/built-ins/Array/prototype/copyWithin/non-negative-out-of-bounds-target-and-start.js
@@ -30,56 +30,64 @@ includes: [compareArray.js]
assert(
compareArray(
- [0, 1, 2, 3, 4, 5].copyWithin(6, 0), [0, 1, 2, 3, 4, 5]
+ [0, 1, 2, 3, 4, 5].copyWithin(6, 0),
+ [0, 1, 2, 3, 4, 5]
),
'[0, 1, 2, 3, 4, 5].copyWithin(6, 0) => [0, 1, 2, 3, 4, 5]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4, 5].copyWithin(7, 0), [0, 1, 2, 3, 4, 5]
+ [0, 1, 2, 3, 4, 5].copyWithin(7, 0),
+ [0, 1, 2, 3, 4, 5]
),
'[0, 1, 2, 3, 4, 5].copyWithin(6, 0) => [0, 1, 2, 3, 4, 5]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4, 5].copyWithin(Infinity, 0), [0, 1, 2, 3, 4, 5]
+ [0, 1, 2, 3, 4, 5].copyWithin(Infinity, 0),
+ [0, 1, 2, 3, 4, 5]
),
'[0, 1, 2, 3, 4, 5].copyWithin(Infinity, 0) => [0, 1, 2, 3, 4, 5]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4, 5].copyWithin(6, 2), [0, 1, 2, 3, 4, 5]
+ [0, 1, 2, 3, 4, 5].copyWithin(6, 2),
+ [0, 1, 2, 3, 4, 5]
),
'[0, 1, 2, 3, 4, 5].copyWithin(6, 2) => [0, 1, 2, 3, 4, 5]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4, 5].copyWithin(7, 2), [0, 1, 2, 3, 4, 5]
+ [0, 1, 2, 3, 4, 5].copyWithin(7, 2),
+ [0, 1, 2, 3, 4, 5]
),
'[0, 1, 2, 3, 4, 5].copyWithin(7, 2) => [0, 1, 2, 3, 4, 5]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4, 5].copyWithin(Infinity, 2), [0, 1, 2, 3, 4, 5]
+ [0, 1, 2, 3, 4, 5].copyWithin(Infinity, 2),
+ [0, 1, 2, 3, 4, 5]
),
'[0, 1, 2, 3, 4, 5].copyWithin(Infinity, 2) => [0, 1, 2, 3, 4, 5]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4, 5].copyWithin(0, 6), [0, 1, 2, 3, 4, 5]
+ [0, 1, 2, 3, 4, 5].copyWithin(0, 6),
+ [0, 1, 2, 3, 4, 5]
),
'[0, 1, 2, 3, 4, 5].copyWithin(0, 6) => [0, 1, 2, 3, 4, 5]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4, 5].copyWithin(0, 7), [0, 1, 2, 3, 4, 5]
+ [0, 1, 2, 3, 4, 5].copyWithin(0, 7),
+ [0, 1, 2, 3, 4, 5]
),
'[0, 1, 2, 3, 4, 5].copyWithin(0, 7) => [0, 1, 2, 3, 4, 5]'
);
@@ -87,21 +95,24 @@ assert(
assert(
compareArray(
- [0, 1, 2, 3, 4, 5].copyWithin(0, Infinity), [0, 1, 2, 3, 4, 5]
+ [0, 1, 2, 3, 4, 5].copyWithin(0, Infinity),
+ [0, 1, 2, 3, 4, 5]
),
'[0, 1, 2, 3, 4, 5].copyWithin(0, Infinity) => [0, 1, 2, 3, 4, 5]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4, 5].copyWithin(2, 6), [0, 1, 2, 3, 4, 5]
+ [0, 1, 2, 3, 4, 5].copyWithin(2, 6),
+ [0, 1, 2, 3, 4, 5]
),
'[0, 1, 2, 3, 4, 5].copyWithin(2, 6) => [0, 1, 2, 3, 4, 5]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4, 5].copyWithin(1, 7), [0, 1, 2, 3, 4, 5]
+ [0, 1, 2, 3, 4, 5].copyWithin(1, 7),
+ [0, 1, 2, 3, 4, 5]
),
'[0, 1, 2, 3, 4, 5].copyWithin(1, 7) => [0, 1, 2, 3, 4, 5]'
);
@@ -109,28 +120,32 @@ assert(
assert(
compareArray(
- [0, 1, 2, 3, 4, 5].copyWithin(3, Infinity), [0, 1, 2, 3, 4, 5]
+ [0, 1, 2, 3, 4, 5].copyWithin(3, Infinity),
+ [0, 1, 2, 3, 4, 5]
),
'[0, 1, 2, 3, 4, 5].copyWithin(3, Infinity) => [0, 1, 2, 3, 4, 5]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4, 5].copyWithin(6, 6), [0, 1, 2, 3, 4, 5]
+ [0, 1, 2, 3, 4, 5].copyWithin(6, 6),
+ [0, 1, 2, 3, 4, 5]
),
'[0, 1, 2, 3, 4, 5].copyWithin(6, 6) => [0, 1, 2, 3, 4, 5]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4, 5].copyWithin(10, 10), [0, 1, 2, 3, 4, 5]
+ [0, 1, 2, 3, 4, 5].copyWithin(10, 10),
+ [0, 1, 2, 3, 4, 5]
),
'[0, 1, 2, 3, 4, 5].copyWithin(10, 10) => [0, 1, 2, 3, 4, 5]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4, 5].copyWithin(Infinity, Infinity), [0, 1, 2, 3, 4, 5]
+ [0, 1, 2, 3, 4, 5].copyWithin(Infinity, Infinity),
+ [0, 1, 2, 3, 4, 5]
),
'[0, 1, 2, 3, 4, 5].copyWithin(Infinity, Infinity) => [0, 1, 2, 3, 4, 5]'
);
diff --git a/test/built-ins/Array/prototype/copyWithin/non-negative-target-and-start.js b/test/built-ins/Array/prototype/copyWithin/non-negative-target-and-start.js
index 02a6bc4e7..9704fcc62 100644
--- a/test/built-ins/Array/prototype/copyWithin/non-negative-target-and-start.js
+++ b/test/built-ins/Array/prototype/copyWithin/non-negative-target-and-start.js
@@ -34,24 +34,28 @@ includes: [compareArray.js]
assert(
compareArray(
- ['a', 'b', 'c', 'd', 'e', 'f'].copyWithin(0, 0), ['a', 'b', 'c', 'd', 'e', 'f']
+ ['a', 'b', 'c', 'd', 'e', 'f'].copyWithin(0, 0),
+ ['a', 'b', 'c', 'd', 'e', 'f']
)
);
assert(
compareArray(
- ['a', 'b', 'c', 'd', 'e', 'f'].copyWithin(0, 2), ['c', 'd', 'e', 'f', 'e', 'f']
+ ['a', 'b', 'c', 'd', 'e', 'f'].copyWithin(0, 2),
+ ['c', 'd', 'e', 'f', 'e', 'f']
)
);
assert(
compareArray(
- ['a', 'b', 'c', 'd', 'e', 'f'].copyWithin(3, 0), ['a', 'b', 'c', 'a', 'b', 'c']
+ ['a', 'b', 'c', 'd', 'e', 'f'].copyWithin(3, 0),
+ ['a', 'b', 'c', 'a', 'b', 'c']
)
);
assert(
compareArray(
- [0, 1, 2, 3, 4, 5].copyWithin(1, 4), [0, 4, 5, 3, 4, 5]
+ [0, 1, 2, 3, 4, 5].copyWithin(1, 4),
+ [0, 4, 5, 3, 4, 5]
)
);
diff --git a/test/built-ins/Array/prototype/copyWithin/non-negative-target-start-and-end.js b/test/built-ins/Array/prototype/copyWithin/non-negative-target-start-and-end.js
index 4dbc5479c..89a665ad5 100644
--- a/test/built-ins/Array/prototype/copyWithin/non-negative-target-start-and-end.js
+++ b/test/built-ins/Array/prototype/copyWithin/non-negative-target-start-and-end.js
@@ -36,21 +36,24 @@ includes: [compareArray.js]
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(0, 0, 0), [0, 1, 2, 3]
+ [0, 1, 2, 3].copyWithin(0, 0, 0),
+ [0, 1, 2, 3]
),
'[0, 1, 2, 3].copyWithin(0, 0, 0) -> [0, 1, 2, 3]'
);
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(0, 0, 2), [0, 1, 2, 3]
+ [0, 1, 2, 3].copyWithin(0, 0, 2),
+ [0, 1, 2, 3]
),
'[0, 1, 2, 3].copyWithin(0, 0, 2) -> [0, 1, 2, 3]'
);
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(0, 1, 2), [1, 1, 2, 3]
+ [0, 1, 2, 3].copyWithin(0, 1, 2),
+ [1, 1, 2, 3]
),
'[0, 1, 2, 3].copyWithin(0, 1, 2) -> [1, 1, 2, 3]'
);
@@ -68,14 +71,16 @@ assert(
*/
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(1, 0, 2), [0, 0, 1, 3]
+ [0, 1, 2, 3].copyWithin(1, 0, 2),
+ [0, 0, 1, 3]
),
'[0, 1, 2, 3].copyWithin(1, 0, 2) -> [0, 0, 1, 3]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4, 5].copyWithin(1, 3, 5), [0, 3, 4, 3, 4, 5]
+ [0, 1, 2, 3, 4, 5].copyWithin(1, 3, 5),
+ [0, 3, 4, 3, 4, 5]
),
'[0, 1, 2, 3, 4, 5].copyWithin(1, 3, 5) -> [0, 3, 4, 3, 4, 5]'
);
diff --git a/test/built-ins/Array/prototype/copyWithin/return-abrupt-from-end.js b/test/built-ins/Array/prototype/copyWithin/return-abrupt-from-end.js
index a81b4ac32..6d69262ff 100644
--- a/test/built-ins/Array/prototype/copyWithin/return-abrupt-from-end.js
+++ b/test/built-ins/Array/prototype/copyWithin/return-abrupt-from-end.js
@@ -23,3 +23,4 @@ var o1 = {
assert.throws(Test262Error, function() {
[].copyWithin(0, 0, o1);
});
+
diff --git a/test/built-ins/Array/prototype/copyWithin/return-abrupt-from-start.js b/test/built-ins/Array/prototype/copyWithin/return-abrupt-from-start.js
index 669404441..37768729c 100644
--- a/test/built-ins/Array/prototype/copyWithin/return-abrupt-from-start.js
+++ b/test/built-ins/Array/prototype/copyWithin/return-abrupt-from-start.js
@@ -22,3 +22,4 @@ var o1 = {
assert.throws(Test262Error, function() {
[].copyWithin(0, o1);
});
+
diff --git a/test/built-ins/Array/prototype/copyWithin/undefined-end.js b/test/built-ins/Array/prototype/copyWithin/undefined-end.js
index 6ef024c75..93c75620e 100644
--- a/test/built-ins/Array/prototype/copyWithin/undefined-end.js
+++ b/test/built-ins/Array/prototype/copyWithin/undefined-end.js
@@ -17,14 +17,16 @@ includes: [compareArray.js]
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(0, 1, undefined), [1, 2, 3, 3]
+ [0, 1, 2, 3].copyWithin(0, 1, undefined),
+ [1, 2, 3, 3]
),
'[0, 1, 2, 3].copyWithin(0, 1, undefined) -> [1, 2, 3]'
);
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(0, 1), [1, 2, 3, 3]
+ [0, 1, 2, 3].copyWithin(0, 1),
+ [1, 2, 3, 3]
),
'[0, 1, 2, 3].copyWithin(0, 1) -> [1, 2, 3, 3]'
);
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-1-4.js b/test/built-ins/Array/prototype/every/15.4.4.16-1-4.js
index 0d88f961e..32c5b4f6a 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-1-4.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-1-4.js
@@ -8,7 +8,6 @@ description: Array.prototype.every applied to Boolean object
---*/
var accessed = false;
-
function callbackfn(val, idx, obj) {
accessed = true;
return obj instanceof Boolean;
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-1-5.js b/test/built-ins/Array/prototype/every/15.4.4.16-1-5.js
index 7bd133c74..91827adfc 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-1-5.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-1-5.js
@@ -8,7 +8,6 @@ description: Array.prototype.every applied to number primitive
---*/
var accessed = false;
-
function callbackfn(val, idx, obj) {
accessed = true;
return obj instanceof Number;
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-1-6.js b/test/built-ins/Array/prototype/every/15.4.4.16-1-6.js
index 255a5afc2..09439db09 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-1-6.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-1-6.js
@@ -8,7 +8,6 @@ description: Array.prototype.every applied to Number object
---*/
var accessed = false;
-
function callbackfn(val, idx, obj) {
accessed = true;
return obj instanceof Number;
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-1-9.js b/test/built-ins/Array/prototype/every/15.4.4.16-1-9.js
index bf6992cf1..f33885b89 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-1-9.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-1-9.js
@@ -11,7 +11,7 @@ function callbackfn(val, idx, obj) {
return !(obj instanceof Function);
}
-var obj = function(a, b) {
+var obj = function (a, b) {
return a + b;
};
obj[0] = 11;
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-2-10.js b/test/built-ins/Array/prototype/every/15.4.4.16-2-10.js
index c895c286c..88dc9700a 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-2-10.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-2-10.js
@@ -17,16 +17,16 @@ function callbackfn2(val, idx, obj) {
return val > 11;
}
-var proto = {};
+var proto = { };
Object.defineProperty(proto, "length", {
- get: function() {
- return 2;
+ get: function () {
+ return 2;
},
configurable: true
});
-var Con = function() {};
+var Con = function () { };
Con.prototype = proto;
var child = new Con();
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-2-11.js b/test/built-ins/Array/prototype/every/15.4.4.16-2-11.js
index 9f2497b6a..135cc936d 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-2-11.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-2-11.js
@@ -21,7 +21,7 @@ var obj = {
1: 8
};
Object.defineProperty(obj, "length", {
- set: function() {},
+ set: function () { },
configurable: true
});
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-2-12.js b/test/built-ins/Array/prototype/every/15.4.4.16-2-12.js
index 4cc13deab..2f71539f4 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-2-12.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-2-12.js
@@ -17,19 +17,16 @@ function callbackfn(val, idx, obj) {
}
Object.defineProperty(Object.prototype, "length", {
- get: function() {
- return 2;
- },
- configurable: true
+ get: function () {
+ return 2;
+ },
+ configurable: true
});
-var obj = {
- 0: 9,
- 1: 8
-};
+var obj = { 0: 9, 1: 8 };
Object.defineProperty(obj, "length", {
- set: function() {},
- configurable: true
+ set: function () { },
+ configurable: true
});
assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-2-13.js b/test/built-ins/Array/prototype/every/15.4.4.16-2-13.js
index 0c03deb22..07dc5015e 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-2-13.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-2-13.js
@@ -12,17 +12,17 @@ description: >
var accessed = false;
function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
+ accessed = true;
+ return val > 10;
}
var proto = {};
Object.defineProperty(proto, "length", {
- set: function() {},
- configurable: true
+ set: function () { },
+ configurable: true
});
-var Con = function() {};
+var Con = function () { };
Con.prototype = proto;
var child = new Con();
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-2-14.js b/test/built-ins/Array/prototype/every/15.4.4.16-2-14.js
index eb91b3e56..f88589524 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-2-14.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-2-14.js
@@ -16,10 +16,7 @@ function callbackfn(val, idx, obj) {
return val > 10;
}
-var obj = {
- 0: 11,
- 1: 12
-};
+var obj = { 0: 11, 1: 12 };
assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-2-17.js b/test/built-ins/Array/prototype/every/15.4.4.16-2-17.js
index 7d4e3200c..bf6fcd0c8 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-2-17.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-2-17.js
@@ -17,10 +17,10 @@ function callbackfn2(val, idx, obj) {
return val > 11;
}
-var func = function(a, b) {
+var func = function (a, b) {
arguments[2] = 9;
return Array.prototype.every.call(arguments, callbackfn1) &&
- !Array.prototype.every.call(arguments, callbackfn2);
+ !Array.prototype.every.call(arguments, callbackfn2);
};
assert(func(12, 11), 'func(12, 11) !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-2-19.js b/test/built-ins/Array/prototype/every/15.4.4.16-2-19.js
index c7c951235..89977f222 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-2-19.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-2-19.js
@@ -17,7 +17,7 @@ function callbackfn2(val, idx, obj) {
return val > 11;
}
-var fun = function(a, b) {
+var fun = function (a, b) {
return a + b;
};
fun[0] = 12;
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-2-3.js b/test/built-ins/Array/prototype/every/15.4.4.16-2-3.js
index 203eaee8a..57c559260 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-2-3.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-2-3.js
@@ -17,11 +17,9 @@ function callbackfn2(val, idx, obj) {
return val > 11;
}
-var proto = {
- length: 3
-};
+var proto = { length: 3 };
-var Con = function() {};
+var Con = function () { };
Con.prototype = proto;
var child = new Con();
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-2-4.js b/test/built-ins/Array/prototype/every/15.4.4.16-2-4.js
index cebdab087..c071a8875 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-2-4.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-2-4.js
@@ -10,7 +10,6 @@ description: >
---*/
var arrProtoLen = 0;
-
function callbackfn1(val, idx, obj) {
return val > 10;
}
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-2-5.js b/test/built-ins/Array/prototype/every/15.4.4.16-2-5.js
index 1f4ffc7a8..6cd638bdb 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-2-5.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-2-5.js
@@ -17,16 +17,16 @@ function callbackfn2(val, idx, obj) {
return val > 11;
}
-var proto = {};
+var proto = { };
Object.defineProperty(proto, "length", {
- get: function() {
- return 3;
+ get: function () {
+ return 3;
},
configurable: true
});
-var Con = function() {};
+var Con = function () { };
Con.prototype = proto;
var child = new Con();
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-2-6.js b/test/built-ins/Array/prototype/every/15.4.4.16-2-6.js
index 264d43dd2..b464e4151 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-2-6.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-2-6.js
@@ -17,11 +17,9 @@ function callbackfn2(val, idx, obj) {
return val > 11;
}
-var proto = {
- length: 2
-};
+var proto = { length: 2 };
-var Con = function() {};
+var Con = function () { };
Con.prototype = proto;
var child = new Con();
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-2-7.js b/test/built-ins/Array/prototype/every/15.4.4.16-2-7.js
index 9e29cd715..bcc252a2b 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-2-7.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-2-7.js
@@ -17,11 +17,11 @@ function callbackfn2(val, idx, obj) {
return val > 11;
}
-var obj = {};
+var obj = { };
Object.defineProperty(obj, "length", {
- get: function() {
- return 2;
+ get: function () {
+ return 2;
},
configurable: true
});
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-2-8.js b/test/built-ins/Array/prototype/every/15.4.4.16-2-8.js
index d3a3e96ab..298e148b0 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-2-8.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-2-8.js
@@ -17,18 +17,16 @@ function callbackfn2(val, idx, obj) {
return val > 11;
}
-var proto = {
- length: 3
-};
+var proto = { length: 3 };
-var Con = function() {};
+var Con = function () { };
Con.prototype = proto;
var child = new Con();
Object.defineProperty(child, "length", {
- get: function() {
- return 2;
+ get: function () {
+ return 2;
},
configurable: true
});
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-2-9.js b/test/built-ins/Array/prototype/every/15.4.4.16-2-9.js
index 4dd430d1b..48387126b 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-2-9.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-2-9.js
@@ -20,20 +20,20 @@ function callbackfn2(val, idx, obj) {
var proto = {};
Object.defineProperty(proto, "length", {
- get: function() {
- return 3;
+ get: function () {
+ return 3;
},
configurable: true
});
-var Con = function() {};
+var Con = function () { };
Con.prototype = proto;
var child = new Con();
Object.defineProperty(child, "length", {
- get: function() {
- return 2;
+ get: function () {
+ return 2;
},
configurable: true
});
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-1.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-1.js
index a72ca6863..b745f20c1 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-3-1.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-1.js
@@ -14,10 +14,7 @@ function callbackfn(val, idx, obj) {
return val > 10;
}
-var obj = {
- 0: 9,
- length: undefined
-};
+var obj = { 0: 9, length: undefined };
assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-10.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-10.js
index b381ef7d2..c8029d4a0 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-3-10.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-10.js
@@ -16,10 +16,7 @@ function callbackfn(val, idx, obj) {
return val > 10;
}
-var obj = {
- 0: 9,
- length: NaN
-};
+var obj = { 0: 9, length: NaN };
assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-11.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-11.js
index ab5fa5744..9b27d025a 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-3-11.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-11.js
@@ -17,12 +17,7 @@ function callbackfn2(val, idx, obj) {
return val > 11;
}
-var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: "2"
-};
+var obj = { 0: 12, 1: 11, 2: 9, length: "2" };
assert(Array.prototype.every.call(obj, callbackfn1), 'Array.prototype.every.call(obj, callbackfn1) !== true');
assert.sameValue(Array.prototype.every.call(obj, callbackfn2), false, 'Array.prototype.every.call(obj, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-12.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-12.js
index bdf1ee93e..0c2a3f97e 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-3-12.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-12.js
@@ -17,12 +17,7 @@ function callbackfn2(val, idx, obj) {
return val > 11;
}
-var obj = {
- 0: 11,
- 1: 12,
- 2: 9,
- length: "-4294967294"
-};
+var obj = { 0: 11, 1: 12, 2: 9, length: "-4294967294" };
assert(Array.prototype.every.call(obj, callbackfn1), 'Array.prototype.every.call(obj, callbackfn1) !== true');
assert(Array.prototype.every.call(obj, callbackfn2), 'Array.prototype.every.call(obj, callbackfn2) !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-13.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-13.js
index 23c734251..0043f34ee 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-3-13.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-13.js
@@ -17,12 +17,7 @@ function callbackfn2(val, idx, obj) {
return val > 11;
}
-var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: "2.5"
-};
+var obj = { 0: 12, 1: 11, 2: 9, length: "2.5" };
assert(Array.prototype.every.call(obj, callbackfn1), 'Array.prototype.every.call(obj, callbackfn1) !== true');
assert.sameValue(Array.prototype.every.call(obj, callbackfn2), false, 'Array.prototype.every.call(obj, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-14.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-14.js
index c20b8194a..1d99f1e2e 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-3-14.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-14.js
@@ -10,22 +10,13 @@ description: Array.prototype.every - 'length' is a string containing +/-Infinity
var accessed = false;
function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
+ accessed = true;
+ return val > 10;
}
-var objOne = {
- 0: 9,
- length: "Infinity"
-};
-var objTwo = {
- 0: 9,
- length: "+Infinity"
-};
-var objThree = {
- 0: 9,
- length: "-Infinity"
-};
+var objOne = { 0: 9, length: "Infinity" };
+var objTwo = { 0: 9, length: "+Infinity" };
+var objThree = { 0: 9, length: "-Infinity" };
assert.sameValue(Array.prototype.every.call(objOne, callbackfn), false, 'Array.prototype.every.call(objOne, callbackfn)');
assert.sameValue(Array.prototype.every.call(objTwo, callbackfn), false, 'Array.prototype.every.call(objTwo, callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-15.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-15.js
index 63ceb586e..dcdda5fae 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-3-15.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-15.js
@@ -17,12 +17,7 @@ function callbackfn2(val, idx, obj) {
return val > 11;
}
-var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: "2E0"
-};
+var obj = { 0: 12, 1: 11, 2: 9, length: "2E0" };
assert(Array.prototype.every.call(obj, callbackfn1), 'Array.prototype.every.call(obj, callbackfn1) !== true');
assert.sameValue(Array.prototype.every.call(obj, callbackfn2), false, 'Array.prototype.every.call(obj, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-16.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-16.js
index ea0e8386c..4e7f6f97c 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-3-16.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-16.js
@@ -17,12 +17,7 @@ function callbackfn2(val, idx, obj) {
return val > 11;
}
-var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: "0x0002"
-};
+var obj = { 0: 12, 1: 11, 2: 9, length: "0x0002" };
assert(Array.prototype.every.call(obj, callbackfn1), 'Array.prototype.every.call(obj, callbackfn1) !== true');
assert.sameValue(Array.prototype.every.call(obj, callbackfn2), false, 'Array.prototype.every.call(obj, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-17.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-17.js
index 0125b2b77..eb35d70b1 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-3-17.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-17.js
@@ -17,12 +17,7 @@ function callbackfn2(val, idx, obj) {
return val > 11;
}
-var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: "0002.00"
-};
+var obj = { 0: 12, 1: 11, 2: 9, length: "0002.00" };
assert(Array.prototype.every.call(obj, callbackfn1), 'Array.prototype.every.call(obj, callbackfn1) !== true');
assert.sameValue(Array.prototype.every.call(obj, callbackfn2), false, 'Array.prototype.every.call(obj, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-18.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-18.js
index c06bc6c27..96846f106 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-3-18.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-18.js
@@ -16,11 +16,7 @@ function callbackfn(val, idx, obj) {
return val > 10;
}
-var obj = {
- 0: 9,
- 1: 8,
- length: "two"
-};
+var obj = { 0: 9, 1: 8, length: "two" };
assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-19.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-19.js
index a2bc1211f..15d3f5af9 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-3-19.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-19.js
@@ -10,25 +10,25 @@ description: >
---*/
function callbackfn1(val, idx, obj) {
- return val > 10;
+ return val > 10;
}
function callbackfn2(val, idx, obj) {
- return val > 11;
+ return val > 11;
}
var toStringAccessed = false;
var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
+ 0: 12,
+ 1: 11,
+ 2: 9,
- length: {
- toString: function() {
- toStringAccessed = true;
- return '2';
+ length: {
+ toString: function () {
+ toStringAccessed = true;
+ return '2';
+ }
}
- }
};
// objects inherit the default valueOf() method from Object
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-2.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-2.js
index fb8444d54..bb2431acb 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-3-2.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-2.js
@@ -17,11 +17,7 @@ function callbackfn2(val, idx, obj) {
return val > 11;
}
-var obj = {
- 0: 11,
- 1: 9,
- length: true
-};
+var obj = { 0: 11, 1: 9, length: true };
assert(Array.prototype.every.call(obj, callbackfn1), 'Array.prototype.every.call(obj, callbackfn1) !== true');
assert.sameValue(Array.prototype.every.call(obj, callbackfn2), false, 'Array.prototype.every.call(obj, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-20.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-20.js
index a642c0ad1..4f12b7bd7 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-3-20.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-20.js
@@ -24,10 +24,10 @@ var obj = {
1: 11,
2: 9,
length: {
- valueOf: function() {
- valueOfAccessed = true;
- return 2;
- }
+ valueOf: function () {
+ valueOfAccessed = true;
+ return 2;
+ }
}
};
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-21.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-21.js
index 7f57fb9f2..cc8359790 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-3-21.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-21.js
@@ -11,30 +11,30 @@ description: >
---*/
function callbackfn1(val, idx, obj) {
- return val > 10;
+ return val > 10;
}
function callbackfn2(val, idx, obj) {
- return val > 11;
+ return val > 11;
}
var toStringAccessed = false;
var valueOfAccessed = false;
var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: {
- valueOf: function() {
- valueOfAccessed = true;
- return {};
- },
- toString: function() {
- toStringAccessed = true;
- return '2';
+ 0: 12,
+ 1: 11,
+ 2: 9,
+ length: {
+ valueOf: function () {
+ valueOfAccessed = true;
+ return {};
+ },
+ toString: function () {
+ toStringAccessed = true;
+ return '2';
+ }
}
- }
};
assert(Array.prototype.every.call(obj, callbackfn1), 'Array.prototype.every.call(obj, callbackfn1) !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-22.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-22.js
index a0f549b95..44c8deb75 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-3-22.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-22.js
@@ -10,32 +10,32 @@ description: >
primitive values
---*/
-var callbackfnAccessed = false;
-var toStringAccessed = false;
-var valueOfAccessed = false;
+ var callbackfnAccessed = false;
+ var toStringAccessed = false;
+ var valueOfAccessed = false;
-function callbackfn(val, idx, obj) {
- callbackfnAccessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ callbackfnAccessed = true;
+ return val > 10;
+ }
-var obj = {
- 0: 11,
- 1: 12,
+ var obj = {
+ 0: 11,
+ 1: 12,
- length: {
- valueOf: function() {
- valueOfAccessed = true;
- return {};
- },
- toString: function() {
- toStringAccessed = true;
- return {};
- }
- }
-};
+ length: {
+ valueOf: function () {
+ valueOfAccessed = true;
+ return {};
+ },
+ toString: function () {
+ toStringAccessed = true;
+ return {};
+ }
+ }
+ };
assert.throws(TypeError, function() {
- Array.prototype.every.call(obj, callbackfn);
+ Array.prototype.every.call(obj, callbackfn);
});
assert(toStringAccessed, 'toStringAccessed !== true');
assert(valueOfAccessed, 'valueOfAccessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-23.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-23.js
index 19f4be0b2..e282dd269 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-3-23.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-23.js
@@ -9,40 +9,40 @@ description: >
is an object with an own toString and inherited valueOf methods
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
-
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
-
-var valueOfAccessed = false;
-var toStringAccessed = false;
-
-var proto = {
- valueOf: function() {
- valueOfAccessed = true;
- return 2;
- }
-};
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-
-child.toString = function() {
- toStringAccessed = true;
- return '1';
-};
-
-var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: child
-};
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
+
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
+
+ var valueOfAccessed = false;
+ var toStringAccessed = false;
+
+ var proto = {
+ valueOf: function () {
+ valueOfAccessed = true;
+ return 2;
+ }
+ };
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+
+ child.toString = function () {
+ toStringAccessed = true;
+ return '1';
+ };
+
+ var obj = {
+ 0: 12,
+ 1: 11,
+ 2: 9,
+ length: child
+ };
assert(Array.prototype.every.call(obj, callbackfn1), 'Array.prototype.every.call(obj, callbackfn1) !== true');
assert.sameValue(Array.prototype.every.call(obj, callbackfn2), false, 'Array.prototype.every.call(obj, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-24.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-24.js
index 88db17559..61c2e627b 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-3-24.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-24.js
@@ -9,20 +9,15 @@ description: >
non-integer, ensure truncation occurs in the proper direction
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: 2.685
-};
+ var obj = { 0: 12, 1: 11, 2: 9, length: 2.685 };
assert(Array.prototype.every.call(obj, callbackfn1), 'Array.prototype.every.call(obj, callbackfn1) !== true');
assert.sameValue(Array.prototype.every.call(obj, callbackfn2), false, 'Array.prototype.every.call(obj, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-25.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-25.js
index d6a174f87..3d052320a 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-3-25.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-25.js
@@ -7,20 +7,20 @@ es5id: 15.4.4.16-3-25
description: Array.prototype.every - value of 'length' is a negative non-integer
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: -4294967294.5
-};
+ var obj = {
+ 0: 12,
+ 1: 11,
+ 2: 9,
+ length: -4294967294.5
+ };
assert(Array.prototype.every.call(obj, callbackfn1), 'Array.prototype.every.call(obj, callbackfn1) !== true');
assert(Array.prototype.every.call(obj, callbackfn2), 'Array.prototype.every.call(obj, callbackfn2) !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-29.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-29.js
index eaf990b5b..9abe0e936 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-3-29.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-29.js
@@ -9,19 +9,19 @@ description: >
+ 1)
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-var obj = {
- 0: 11,
- 1: 9,
- length: 4294967297
-};
+ var obj = {
+ 0: 11,
+ 1: 9,
+ length: 4294967297
+ };
assert.sameValue(Array.prototype.every.call(obj, callbackfn1), false, 'Array.prototype.every.call(obj, callbackfn1)');
assert.sameValue(Array.prototype.every.call(obj, callbackfn2), false, 'Array.prototype.every.call(obj, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-3.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-3.js
index 4636ccf3e..c792c27c6 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-3-3.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-3.js
@@ -7,17 +7,14 @@ es5id: 15.4.4.16-3-3
description: Array.prototype.every - value of 'length' is a number (value is 0)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+ }
-var obj = {
- 0: 9,
- length: 0
-};
+ var obj = { 0: 9, length: 0 };
assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-4.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-4.js
index 68a0bf50a..c17e335a4 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-3-4.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-4.js
@@ -7,17 +7,14 @@ es5id: 15.4.4.16-3-4
description: Array.prototype.every - value of 'length' is a number (value is +0)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+ }
-var obj = {
- 0: 9,
- length: +0
-};
+ var obj = { 0: 9, length: +0 };
assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-5.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-5.js
index d041e7add..eb9f48ba3 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-3-5.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-5.js
@@ -7,17 +7,14 @@ es5id: 15.4.4.16-3-5
description: Array.prototype.every - value of 'length' is a number (value is -0)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+ }
-var obj = {
- 0: 9,
- length: -0
-};
+ var obj = { 0: 9, length: -0 };
assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-6.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-6.js
index 0ea6839cb..1d1b15ef1 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-3-6.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-6.js
@@ -9,20 +9,15 @@ description: >
positive)
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: 2
-};
+ var obj = { 0: 12, 1: 11, 2: 9, length: 2 };
assert(Array.prototype.every.call(obj, callbackfn1), 'Array.prototype.every.call(obj, callbackfn1) !== true');
assert.sameValue(Array.prototype.every.call(obj, callbackfn2), false, 'Array.prototype.every.call(obj, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-7.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-7.js
index 880c26aab..977bb65f9 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-3-7.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-7.js
@@ -9,20 +9,15 @@ description: >
negative)
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: -4294967294
-}; //length used to exec while loop is 0
+ var obj = { 0: 12, 1: 11, 2: 9, length: -4294967294 }; //length used to exec while loop is 0
assert(Array.prototype.every.call(obj, callbackfn1), 'Array.prototype.every.call(obj, callbackfn1) !== true');
assert(Array.prototype.every.call(obj, callbackfn2), 'Array.prototype.every.call(obj, callbackfn2) !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-8.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-8.js
index 47a09300d..6496da4f0 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-3-8.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-8.js
@@ -9,17 +9,14 @@ description: >
Infinity)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+ }
-var obj = {
- 0: 9,
- length: Infinity
-};
+ var obj = { 0: 9, length: Infinity };
assert.sameValue(Array.prototype.every.call(obj, callbackfn), false, 'Array.prototype.every.call(obj, callbackfn)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-9.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-9.js
index 7166e98b8..9499801b8 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-3-9.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-9.js
@@ -9,17 +9,14 @@ description: >
-Infinity)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+ }
-var obj = {
- 0: 9,
- length: -Infinity
-};
+ var obj = { 0: 9, length: -Infinity };
assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-4-1.js b/test/built-ins/Array/prototype/every/15.4.4.16-4-1.js
index c0d6ba0cb..8cefedbe0 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-4-1.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-4-1.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.16-4-1
description: Array.prototype.every throws TypeError if callbackfn is undefined
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.every();
+ arr.every();
});
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-4-10.js b/test/built-ins/Array/prototype/every/15.4.4.16-4-10.js
index 2f458442b..abbff39d2 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-4-10.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-4-10.js
@@ -9,18 +9,15 @@ description: >
was thrown by step 2
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-Object.defineProperty(obj, "length", {
- get: function() {
- throw new Test262Error();
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ throw new Test262Error();
+ },
+ configurable: true
+ });
assert.throws(Test262Error, function() {
- Array.prototype.every.call(obj, undefined);
+ Array.prototype.every.call(obj, undefined);
});
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-4-11.js b/test/built-ins/Array/prototype/every/15.4.4.16-4-11.js
index 2cd9bba54..4e4b09b69 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-4-11.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-4-11.js
@@ -9,22 +9,19 @@ description: >
was thrown by step 3
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-Object.defineProperty(obj, "length", {
- get: function() {
- return {
- toString: function() {
- throw new Test262Error();
- }
- };
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ toString: function () {
+ throw new Test262Error();
+ }
+ };
+ },
+ configurable: true
+ });
assert.throws(Test262Error, function() {
- Array.prototype.every.call(obj, undefined);
+ Array.prototype.every.call(obj, undefined);
});
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-4-12.js b/test/built-ins/Array/prototype/every/15.4.4.16-4-12.js
index a137acbc3..ded81c8a4 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-4-12.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-4-12.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.16-4-12
description: Array.prototype.every - 'callbackfn' is a function
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
assert.sameValue([11, 9].every(callbackfn), false, '[11, 9].every(callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-4-15.js b/test/built-ins/Array/prototype/every/15.4.4.16-4-15.js
index 207a615ff..2f4fa8f8c 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-4-15.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-4-15.js
@@ -9,29 +9,27 @@ description: >
passing undefined for callbackfn
---*/
-var obj = {
- 10: 10
-};
-var lengthAccessed = false;
-var loopAccessed = false;
+ var obj = { 10: 10 };
+ var lengthAccessed = false;
+ var loopAccessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- lengthAccessed = true;
- return 20;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ lengthAccessed = true;
+ return 20;
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "0", {
- get: function() {
- loopAccessed = true;
- return 10;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ loopAccessed = true;
+ return 10;
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.every.call(obj);
+ Array.prototype.every.call(obj);
});
assert(lengthAccessed, 'lengthAccessed !== true');
assert.sameValue(loopAccessed, false, 'loopAccessed');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-4-3.js b/test/built-ins/Array/prototype/every/15.4.4.16-4-3.js
index 2613f1cf3..103f22d6a 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-4-3.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-4-3.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.16-4-3
description: Array.prototype.every throws TypeError if callbackfn is null
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.every(null);
+ arr.every(null);
});
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-4-4.js b/test/built-ins/Array/prototype/every/15.4.4.16-4-4.js
index 6a1c03772..1b7631332 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-4-4.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-4-4.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.16-4-4
description: Array.prototype.every throws TypeError if callbackfn is boolean
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.every(true);
+ arr.every(true);
});
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-4-5.js b/test/built-ins/Array/prototype/every/15.4.4.16-4-5.js
index a2d5c7aef..deb04c6f2 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-4-5.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-4-5.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.16-4-5
description: Array.prototype.every throws TypeError if callbackfn is number
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.every(5);
+ arr.every(5);
});
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-4-6.js b/test/built-ins/Array/prototype/every/15.4.4.16-4-6.js
index eb07314b1..6597e4599 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-4-6.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-4-6.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.16-4-6
description: Array.prototype.every throws TypeError if callbackfn is string
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.every("abc");
+ arr.every("abc");
});
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-4-7.js b/test/built-ins/Array/prototype/every/15.4.4.16-4-7.js
index 51e13d6d1..f512f2151 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-4-7.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-4-7.js
@@ -9,7 +9,7 @@ description: >
without a Call internal method
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.every({});
+ arr.every( {} );
});
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-4-8.js b/test/built-ins/Array/prototype/every/15.4.4.16-4-8.js
index cb6ef73b1..a3e75ff59 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-4-8.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-4-8.js
@@ -9,21 +9,18 @@ description: >
visible when an exception occurs
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-var accessed = false;
+ var accessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- accessed = true;
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ accessed = true;
+ return 2;
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.every.call(obj, null);
+ Array.prototype.every.call(obj, null);
});
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-4-9.js b/test/built-ins/Array/prototype/every/15.4.4.16-4-9.js
index efe205eb4..fc1acaa02 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-4-9.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-4-9.js
@@ -9,25 +9,22 @@ description: >
visible when an exception occurs
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-var accessed = false;
+ var accessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- return {
- toString: function() {
- accessed = true;
- return "2";
- }
- };
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ toString: function () {
+ accessed = true;
+ return "2";
+ }
+ };
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.every.call(obj, null);
+ Array.prototype.every.call(obj, null);
});
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-1-s.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-1-s.js
index 2d906315f..989a6ee20 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-5-1-s.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-1-s.js
@@ -8,14 +8,14 @@ description: Array.prototype.every - thisArg not passed to strict callbackfn
flags: [noStrict]
---*/
-var innerThisCorrect = false;
+ var innerThisCorrect = false;
-function callbackfn(val, idx, obj) {
- "use strict";
- innerThisCorrect = this === undefined;
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ "use strict";
+ innerThisCorrect = this===undefined;
+ return true;
+ }
-[1].every(callbackfn);
+ [1].every(callbackfn);
assert(innerThisCorrect, 'innerThisCorrect !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-1.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-1.js
index a3bdbc170..360f9850f 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-5-1.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-1.js
@@ -10,11 +10,11 @@ flags: [noStrict]
var global = this;
-function callbackfn(val, idx, obj)
-{
- return this === global;
-}
+ function callbackfn(val, idx, obj)
+ {
+ return this === global;
+ }
-var arr = [1];
+ var arr = [1];
assert.sameValue(arr.every(callbackfn), true, 'arr.every(callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-10.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-10.js
index 087f9c2a3..5d7c8a6e9 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-5-10.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-10.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.16-5-10
description: Array.prototype.every - Array Object can be used as thisArg
---*/
-var accessed = false;
-var objArray = [];
+ var accessed = false;
+ var objArray = [];
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this === objArray;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this === objArray;
+ }
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-11.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-11.js
index dce15d0f4..41792ec1d 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-5-11.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-11.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.16-5-11
description: Array.prototype.every - String Object can be used as thisArg
---*/
-var accessed = false;
-var objString = new String();
+ var accessed = false;
+ var objString = new String();
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this === objString;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this === objString;
+ }
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-12.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-12.js
index 97b5771b3..cbb7ddf8b 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-5-12.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-12.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.16-5-12
description: Array.prototype.every - Boolean Object can be used as thisArg
---*/
-var accessed = false;
-var objBoolean = new Boolean();
+ var accessed = false;
+ var objBoolean = new Boolean();
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this === objBoolean;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this === objBoolean;
+ }
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-13.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-13.js
index da8f79938..34e73df32 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-5-13.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-13.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.16-5-13
description: Array.prototype.every - Number Object can be used as thisArg
---*/
-var accessed = false;
-var objNumber = new Number();
+ var accessed = false;
+ var objNumber = new Number();
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this === objNumber;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this === objNumber;
+ }
assert([11].every(callbackfn, objNumber), '[11].every(callbackfn, objNumber) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-14.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-14.js
index a5cc48fbf..697ef848e 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-5-14.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-14.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.16-5-14
description: Array.prototype.every - the Math object can be used as thisArg
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this === Math;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this === Math;
+ }
assert([11].every(callbackfn, Math), '[11].every(callbackfn, Math) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-15.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-15.js
index 7133cd487..66a64d987 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-5-15.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-15.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.16-5-15
description: Array.prototype.every - Date Object can be used as thisArg
---*/
-var accessed = false;
-var objDate = new Date();
+ var accessed = false;
+ var objDate = new Date();
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this === objDate;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this === objDate;
+ }
assert([11].every(callbackfn, objDate), '[11].every(callbackfn, objDate) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-16.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-16.js
index 1edd76714..091caa14c 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-5-16.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-16.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.16-5-16
description: Array.prototype.every - RegExp Object can be used as thisArg
---*/
-var accessed = false;
-var objRegExp = new RegExp();
+ var accessed = false;
+ var objRegExp = new RegExp();
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this === objRegExp;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this === objRegExp;
+ }
assert([11].every(callbackfn, objRegExp), '[11].every(callbackfn, objRegExp) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-17.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-17.js
index 2a5162a9c..9e9bd18e8 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-5-17.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-17.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.16-5-17
description: Array.prototype.every - the JSON object can be used as thisArg
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this === JSON;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this === JSON;
+ }
assert([11].every(callbackfn, JSON), '[11].every(callbackfn, JSON) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-18.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-18.js
index bae882c7c..a944bff81 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-5-18.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-18.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.16-5-18
description: Array.prototype.every - Error Object can be used as thisArg
---*/
-var accessed = false;
-var objError = new RangeError();
+ var accessed = false;
+ var objError = new RangeError();
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this === objError;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this === objError;
+ }
assert([11].every(callbackfn, objError), '[11].every(callbackfn, objError) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-19.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-19.js
index 3b39e1826..7a3e06e09 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-5-19.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-19.js
@@ -7,17 +7,17 @@ es5id: 15.4.4.16-5-19
description: Array.prototype.every - the Arguments object can be used as thisArg
---*/
-var accessed = false;
-var arg;
+ var accessed = false;
+ var arg;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this === arg;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this === arg;
+ }
-(function fun() {
- arg = arguments;
-}(1, 2, 3));
+ (function fun() {
+ arg = arguments;
+ }(1, 2, 3));
assert([11].every(callbackfn, arg), '[11].every(callbackfn, arg) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-2.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-2.js
index 96c0d39a4..f15102c64 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-5-2.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-2.js
@@ -7,15 +7,14 @@ es5id: 15.4.4.16-5-2
description: Array.prototype.every - thisArg is Object
---*/
-var res = false;
-var o = new Object();
-o.res = true;
+ var res = false;
+ var o = new Object();
+ o.res = true;
+ function callbackfn(val, idx, obj)
+ {
+ return this.res;
+ }
-function callbackfn(val, idx, obj)
-{
- return this.res;
-}
-
-var arr = [1];
+ var arr = [1];
assert.sameValue(arr.every(callbackfn, o), true, 'arr.every(callbackfn, o)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-21.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-21.js
index 50d36ddce..7da5e8193 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-5-21.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-21.js
@@ -8,12 +8,12 @@ description: Array.prototype.every - the global object can be used as thisArg
---*/
var global = this;
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this === global;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this === global;
+ }
assert([11].every(callbackfn, global), '[11].every(callbackfn, global) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-22.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-22.js
index 90dcfb2df..d580818a6 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-5-22.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-22.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.16-5-22
description: Array.prototype.every - boolean primitive can be used as thisArg
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this.valueOf() === false;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this.valueOf() === false;
+ }
assert([11].every(callbackfn, false), '[11].every(callbackfn, false) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-23.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-23.js
index ba19fd209..7953a7006 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-5-23.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-23.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.16-5-23
description: Array.prototype.every - number primitive can be used as thisArg
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this.valueOf() === 101;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this.valueOf() === 101;
+ }
assert([11].every(callbackfn, 101), '[11].every(callbackfn, 101) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-24.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-24.js
index 4439dca25..c9da3d991 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-5-24.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-24.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.16-5-24
description: Array.prototype.every - string primitive can be used as thisArg
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this.valueOf() === "abc";
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this.valueOf() === "abc";
+ }
assert([11].every(callbackfn, "abc"), '[11].every(callbackfn, "abc") !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-3.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-3.js
index 1a1bb9b7d..69f614ff8 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-5-3.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-3.js
@@ -7,15 +7,14 @@ es5id: 15.4.4.16-5-3
description: Array.prototype.every - thisArg is Array
---*/
-var res = false;
-var a = new Array();
-a.res = true;
+ var res = false;
+ var a = new Array();
+ a.res = true;
+ function callbackfn(val, idx, obj)
+ {
+ return this.res;
+ }
-function callbackfn(val, idx, obj)
-{
- return this.res;
-}
-
-var arr = [1];
+ var arr = [1];
assert.sameValue(arr.every(callbackfn, a), true, 'arr.every(callbackfn, a)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-4.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-4.js
index b3e03058a..45ee186d1 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-5-4.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-4.js
@@ -9,16 +9,15 @@ description: >
template(prototype)
---*/
-var res = false;
+ var res = false;
+ function callbackfn(val, idx, obj)
+ {
+ return this.res;
+ }
-function callbackfn(val, idx, obj)
-{
- return this.res;
-}
+ function foo(){}
+ foo.prototype.res = true;
+ var f = new foo();
+ var arr = [1];
-function foo() {}
-foo.prototype.res = true;
-var f = new foo();
-var arr = [1];
-
-assert.sameValue(arr.every(callbackfn, f), true, 'arr.every(callbackfn,f)');
+assert.sameValue(arr.every(callbackfn,f), true, 'arr.every(callbackfn,f)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-5.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-5.js
index 47ce23ac6..c0447933f 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-5-5.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-5.js
@@ -7,16 +7,15 @@ es5id: 15.4.4.16-5-5
description: Array.prototype.every - thisArg is object from object template
---*/
-var res = false;
+ var res = false;
+ function callbackfn(val, idx, obj)
+ {
+ return this.res;
+ }
-function callbackfn(val, idx, obj)
-{
- return this.res;
-}
+ function foo(){}
+ var f = new foo();
+ f.res = true;
+ var arr = [1];
-function foo() {}
-var f = new foo();
-f.res = true;
-var arr = [1];
-
-assert.sameValue(arr.every(callbackfn, f), true, 'arr.every(callbackfn,f)');
+assert.sameValue(arr.every(callbackfn,f), true, 'arr.every(callbackfn,f)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-6.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-6.js
index a71c98ee2..f871e3a43 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-5-6.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-6.js
@@ -7,15 +7,14 @@ es5id: 15.4.4.16-5-6
description: Array.prototype.every - thisArg is function
---*/
-var res = false;
+ var res = false;
+ function callbackfn(val, idx, obj)
+ {
+ return this.res;
+ }
-function callbackfn(val, idx, obj)
-{
- return this.res;
-}
+ function foo(){}
+ foo.res = true;
+ var arr = [1];
-function foo() {}
-foo.res = true;
-var arr = [1];
-
-assert.sameValue(arr.every(callbackfn, foo), true, 'arr.every(callbackfn,foo)');
+assert.sameValue(arr.every(callbackfn,foo), true, 'arr.every(callbackfn,foo)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-7.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-7.js
index ff38fcdc4..3fa6fc9e7 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-5-7.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-7.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.16-5-7
description: Array.prototype.every - built-in functions can be used as thisArg
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this === eval;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this === eval;
+ }
assert([11].every(callbackfn, eval), '[11].every(callbackfn, eval) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-9.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-9.js
index 275789142..400c0ca84 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-5-9.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-9.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.16-5-9
description: Array.prototype.every - Function Object can be used as thisArg
---*/
-var accessed = false;
-var objFunction = function() {};
+ var accessed = false;
+ var objFunction = function () { };
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this === objFunction;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this === objFunction;
+ }
assert([11].every(callbackfn, objFunction), '[11].every(callbackfn, objFunction) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-1.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-1.js
index 22bcfaff6..e8d6745dd 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-1.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-1.js
@@ -9,18 +9,18 @@ description: >
the call
---*/
-var calledForThree = false;
+ var calledForThree = false;
-function callbackfn(val, Idx, obj)
-{
- arr[2] = 3;
- if (val == 3)
- calledForThree = true;
- return true;
-}
+ function callbackfn(val, Idx, obj)
+ {
+ arr[2] = 3;
+ if(val == 3)
+ calledForThree = true;
+ return true;
+ }
-var arr = [1, 2, , 4, 5];
+ var arr = [1,2,,4,5];
-var res = arr.every(callbackfn);
+ var res = arr.every(callbackfn);
assert(calledForThree, 'calledForThree !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-2.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-2.js
index 47d3ed4e5..fcb91af17 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-2.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-2.js
@@ -9,16 +9,16 @@ description: >
after the call
---*/
-function callbackfn(val, Idx, obj)
-{
- arr[4] = 6;
- if (val < 6)
- return true;
- else
- return false;
-}
+ function callbackfn(val, Idx, obj)
+ {
+ arr[4] = 6;
+ if(val < 6)
+ return true;
+ else
+ return false;
+ }
-var arr = [1, 2, 3, 4, 5];
+ var arr = [1,2,3,4,5];
assert.sameValue(arr.every(callbackfn), false, 'arr.every(callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-3.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-3.js
index 08531fe61..214575295 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-3.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-3.js
@@ -9,16 +9,16 @@ description: >
after the call
---*/
-function callbackfn(val, Idx, obj)
-{
- delete arr[2];
- if (val == 3)
- return false;
- else
- return true;
-}
+ function callbackfn(val, Idx, obj)
+ {
+ delete arr[2];
+ if(val == 3)
+ return false;
+ else
+ return true;
+ }
-var arr = [1, 2, 3, 4, 5];
+ var arr = [1,2,3,4,5];
assert.sameValue(arr.every(callbackfn), true, 'arr.every(callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-4.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-4.js
index 9cbb2eda0..0cfdd4ebc 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-4.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-4.js
@@ -9,16 +9,16 @@ description: >
Array.length is decreased
---*/
-function callbackfn(val, Idx, obj)
-{
- arr.length = 3;
- if (val < 4)
- return true;
- else
- return false;
-}
+ function callbackfn(val, Idx, obj)
+ {
+ arr.length = 3;
+ if(val < 4)
+ return true;
+ else
+ return false;
+ }
-var arr = [1, 2, 3, 4, 6];
+ var arr = [1,2,3,4,6];
assert.sameValue(arr.every(callbackfn), true, 'arr.every(callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-5.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-5.js
index c4c062bdf..c7cfcd23e 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-5.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-5.js
@@ -9,18 +9,18 @@ description: >
sparse array
---*/
-function callbackfn(val, Idx, obj)
-{
- arr[1000] = 3;
- if (val < 3)
- return true;
- else
- return false;
-}
+ function callbackfn(val, Idx, obj)
+ {
+ arr[1000] = 3;
+ if(val < 3)
+ return true;
+ else
+ return false;
+ }
-var arr = new Array(10);
-arr[1] = 1;
-arr[2] = 2;
+ var arr = new Array(10);
+ arr[1] = 1;
+ arr[2] = 2;
assert.sameValue(arr.every(callbackfn), true, 'arr.every(callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-6.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-6.js
index 45bcdd29a..1cf937c7c 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-6.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-6.js
@@ -9,19 +9,19 @@ description: >
call when same index is also present in prototype
---*/
-function callbackfn(val, Idx, obj)
-{
- delete arr[2];
- if (val == 3)
- return false;
- else
- return true;
-}
+ function callbackfn(val, Idx, obj)
+ {
+ delete arr[2];
+ if(val == 3)
+ return false;
+ else
+ return true;
+ }
-Array.prototype[2] = 3;
-var arr = [1, 2, 3, 4, 5];
+ Array.prototype[2] = 3;
+ var arr = [1,2,3,4,5];
-var res = arr.every(callbackfn);
-delete Array.prototype[2];
+ var res = arr.every(callbackfn);
+ delete Array.prototype[2];
assert.sameValue(res, false, 'res');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-7.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-7.js
index d25bd744d..7eaab5078 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-7.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-7.js
@@ -10,16 +10,16 @@ description: >
Array.prototype.every is called for all elements
---*/
-var o = new Object();
-o.arr = [1, 2, 3, 4, 5];
+ var o = new Object();
+ o.arr = [1, 2, 3, 4, 5];
-function callbackfn(val, Idx, obj) {
- delete o.arr;
- if (val === Idx + 1)
- return true;
- else
- return false;
-}
+ function callbackfn(val, Idx, obj) {
+ delete o.arr;
+ if (val === Idx + 1)
+ return true;
+ else
+ return false;
+ }
assert(o.arr.every(callbackfn), 'o.arr.every(callbackfn) !== true');
assert.sameValue(o.hasOwnProperty("arr"), false, 'o.hasOwnProperty("arr")');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-8.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-8.js
index ff2f0f8be..079db7b2d 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-8.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-8.js
@@ -7,18 +7,14 @@ es5id: 15.4.4.16-7-8
description: Array.prototype.every - no observable effects occur if len is 0
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+ }
-var obj = {
- 0: 11,
- 1: 12,
- length: 0
-};
+ var obj = { 0: 11, 1: 12, length: 0 };
assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-9.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-9.js
index c1bbdfc1b..ded5d48e2 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-9.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-9.js
@@ -9,26 +9,22 @@ description: >
number of iterations
---*/
-var called = 0;
+ var called = 0;
-function callbackfn(val, idx, obj) {
- called++;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ called++;
+ return val > 10;
+ }
-var obj = {
- 1: 12,
- 2: 9,
- length: 2
-};
+ var obj = { 1: 12, 2: 9, length: 2 };
-Object.defineProperty(obj, "0", {
- get: function() {
- obj.length = 3;
- return 11;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ obj.length = 3;
+ return 11;
+ },
+ configurable: true
+ });
assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true');
assert.sameValue(called, 2, 'called');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-1.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-1.js
index abcf91365..e0f07ee54 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-1.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-1.js
@@ -9,16 +9,15 @@ description: >
been assigned values
---*/
-var callCnt = 0.;
+ var callCnt = 0.;
+ function callbackfn(val, Idx, obj)
+ {
+ callCnt++;
+ return true;
+ }
-function callbackfn(val, Idx, obj)
-{
- callCnt++;
- return true;
-}
-
-var arr = new Array(10);
-arr[1] = undefined;
-arr.every(callbackfn);
+ var arr = new Array(10);
+ arr[1] = undefined;
+ arr.every(callbackfn);
assert.sameValue(callCnt, 1, 'callCnt');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-10.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-10.js
index 913796b1f..e27ff642f 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-10.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-10.js
@@ -9,26 +9,22 @@ description: >
prototype index property not to be visited on an Array-like Object
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return idx !== 1;
+ }
+ var arr = { 2: 2, length: 20 };
-function callbackfn(val, idx, obj) {
- accessed = true;
- return idx !== 1;
-}
-var arr = {
- 2: 2,
- length: 20
-};
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete Object.prototype[1];
+ return 0;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "0", {
- get: function() {
- delete Object.prototype[1];
- return 0;
- },
- configurable: true
-});
-
-Object.prototype[1] = 1;
+ Object.prototype[1] = 1;
assert(Array.prototype.every.call(arr, callbackfn), 'Array.prototype.every.call(arr, callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-11.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-11.js
index c9ff957cb..54c86d50e 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-11.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-11.js
@@ -9,23 +9,22 @@ description: >
prototype index property not to be visited on an Array
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return idx !== 1;
+ }
+ var arr = [0, , 2];
-function callbackfn(val, idx, obj) {
- accessed = true;
- return idx !== 1;
-}
-var arr = [0, , 2];
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete Array.prototype[1];
+ return 0;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "0", {
- get: function() {
- delete Array.prototype[1];
- return 0;
- },
- configurable: true
-});
-
-Array.prototype[1] = 1;
+ Array.prototype[1] = 1;
assert(arr.every(callbackfn), 'arr.every(callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-12.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-12.js
index 63282ca55..fda1fe2a7 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-12.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-12.js
@@ -10,28 +10,23 @@ description: >
Array-like object
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1 && val === 1) {
- return false;
- } else {
- return true;
- }
-}
-var arr = {
- 0: 0,
- 1: 111,
- 2: 2,
- length: 10
-};
+ function callbackfn(val, idx, obj) {
+ if (idx === 1 && val === 1) {
+ return false;
+ } else {
+ return true;
+ }
+ }
+ var arr = { 0: 0, 1: 111, 2: 2, length: 10 };
-Object.defineProperty(arr, "0", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
-Object.prototype[1] = 1;
+ Object.prototype[1] = 1;
assert.sameValue(Array.prototype.every.call(arr, callbackfn), false, 'Array.prototype.every.call(arr, callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-13.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-13.js
index 26f3f17d1..4032502e5 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-13.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-13.js
@@ -9,23 +9,23 @@ description: >
property causes prototype index property to be visited on an Array
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1 && val === 1) {
- return false;
- } else {
- return true;
- }
-}
-var arr = [0, 111, 2];
+ function callbackfn(val, idx, obj) {
+ if (idx === 1 && val === 1) {
+ return false;
+ } else {
+ return true;
+ }
+ }
+ var arr = [0, 111, 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype[1] = 1;
+ Array.prototype[1] = 1;
assert.sameValue(arr.every(callbackfn), false, 'arr.every(callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-14.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-14.js
index a017ff964..5115a27a3 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-14.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-14.js
@@ -9,21 +9,20 @@ description: >
property not to be visited
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return idx !== 3;
+ }
+ var arr = [0, 1, 2, "last"];
-function callbackfn(val, idx, obj) {
- accessed = true;
- return idx !== 3;
-}
-var arr = [0, 1, 2, "last"];
-
-Object.defineProperty(arr, "0", {
- get: function() {
- arr.length = 3;
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ arr.length = 3;
+ return 0;
+ },
+ configurable: true
+ });
assert(arr.every(callbackfn), 'arr.every(callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-15.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-15.js
index eeb2786e3..03fa5344f 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-15.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-15.js
@@ -9,28 +9,28 @@ description: >
property causes prototype index property to be visited
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 2 && val === "prototype") {
- return false;
- } else {
- return true;
- }
-}
-var arr = [0, 1, 2];
+ function callbackfn(val, idx, obj) {
+ if (idx === 2 && val === "prototype") {
+ return false;
+ } else {
+ return true;
+ }
+ }
+ var arr = [0, 1, 2];
-Object.defineProperty(Array.prototype, "2", {
- get: function() {
- return "prototype";
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "2", {
+ get: function () {
+ return "prototype";
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- arr.length = 2;
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ arr.length = 2;
+ return 1;
+ },
+ configurable: true
+ });
assert.sameValue(arr.every(callbackfn), false, 'arr.every(callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-16.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-16.js
index 2bd39ef0a..602b4b80c 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-16.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-16.js
@@ -10,29 +10,29 @@ description: >
flags: [noStrict]
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 2 && val === "unconfigurable") {
- return false;
- } else {
- return true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 2 && val === "unconfigurable") {
+ return false;
+ } else {
+ return true;
+ }
+ }
-var arr = [0, 1, 2];
+ var arr = [0, 1, 2];
-Object.defineProperty(arr, "2", {
- get: function() {
- return "unconfigurable";
- },
- configurable: false
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ return "unconfigurable";
+ },
+ configurable: false
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- arr.length = 2;
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ arr.length = 2;
+ return 1;
+ },
+ configurable: true
+ });
assert.sameValue(arr.every(callbackfn), false, 'arr.every(callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-2.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-2.js
index 56c5b404f..fca306466 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-2.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-2.js
@@ -7,22 +7,22 @@ es5id: 15.4.4.16-7-b-2
description: Array.prototype.every - added properties in step 2 are visible here
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 2 && val === "length") {
- return false;
- } else {
- return true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 2 && val === "length") {
+ return false;
+ } else {
+ return true;
+ }
+ }
-var arr = {};
+ var arr = { };
-Object.defineProperty(arr, "length", {
- get: function() {
- arr[2] = "length";
- return 3;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "length", {
+ get: function () {
+ arr[2] = "length";
+ return 3;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.every.call(arr, callbackfn), false, 'Array.prototype.every.call(arr, callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-3.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-3.js
index ca526b8ca..9c7afe89a 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-3.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-3.js
@@ -9,24 +9,20 @@ description: >
here
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return idx !== 2;
+ }
+ var arr = { 2: 6.99, 8: 19};
-function callbackfn(val, idx, obj) {
- accessed = true;
- return idx !== 2;
-}
-var arr = {
- 2: 6.99,
- 8: 19
-};
-
-Object.defineProperty(arr, "length", {
- get: function() {
- delete arr[2];
- return 10;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "length", {
+ get: function () {
+ delete arr[2];
+ return 10;
+ },
+ configurable: true
+ });
assert(Array.prototype.every.call(arr, callbackfn), 'Array.prototype.every.call(arr, callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-4.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-4.js
index 691affd2c..dbcbe21dd 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-4.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-4.js
@@ -9,29 +9,27 @@ description: >
current position are visited on an Array-like object
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1 && val === 1) {
- return false;
- } else {
- return true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1 && val === 1) {
+ return false;
+ } else {
+ return true;
+ }
+ }
-var arr = {
- length: 2
-};
+ var arr = { length: 2 };
-Object.defineProperty(arr, "0", {
- get: function() {
- Object.defineProperty(arr, "1", {
- get: function() {
- return 1;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.every.call(arr, callbackfn), false, 'Array.prototype.every.call(arr, callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-5.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-5.js
index 75cff0bfe..5fd08b67e 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-5.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-5.js
@@ -9,27 +9,27 @@ description: >
current position are visited on an Array
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1 && val === 1) {
- return false;
- } else {
- return true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1 && val === 1) {
+ return false;
+ } else {
+ return true;
+ }
+ }
-var arr = [0, , 2];
+ var arr = [0, , 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- Object.defineProperty(arr, "1", {
- get: function() {
- return 1;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
assert.sameValue(arr.every(callbackfn), false, 'arr.every(callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-6.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-6.js
index 27663980c..4a71a8389 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-6.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-6.js
@@ -9,28 +9,26 @@ description: >
current position are visited on an Array-like object
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1 && val === 6.99) {
- return false;
- } else {
- return true;
- }
-}
-var arr = {
- length: 2
-};
+ function callbackfn(val, idx, obj) {
+ if (idx === 1 && val === 6.99) {
+ return false;
+ } else {
+ return true;
+ }
+ }
+ var arr = { length: 2 };
-Object.defineProperty(arr, "0", {
- get: function() {
- Object.defineProperty(Object.prototype, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ Object.defineProperty(Object.prototype, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.every.call(arr, callbackfn), false, 'Array.prototype.every.call(arr, callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-7.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-7.js
index 92daa04a1..692c399de 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-7.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-7.js
@@ -9,26 +9,26 @@ description: >
current position are visited on an Array
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1 && val === 6.99) {
- return false;
- } else {
- return true;
- }
-}
-var arr = [0, , 2];
+ function callbackfn(val, idx, obj) {
+ if (idx === 1 && val === 6.99) {
+ return false;
+ } else {
+ return true;
+ }
+ }
+ var arr = [0, , 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- Object.defineProperty(Array.prototype, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ Object.defineProperty(Array.prototype, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
assert.sameValue(arr.every(callbackfn), false, 'arr.every(callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-8.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-8.js
index 76f5f1cc0..4bb911375 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-8.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-8.js
@@ -9,30 +9,27 @@ description: >
property not to be visited on an Array-like object
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return idx !== 1;
+ }
+ var obj = { length: 2 };
-function callbackfn(val, idx, obj) {
- accessed = true;
- return idx !== 1;
-}
-var obj = {
- length: 2
-};
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
-});
-
-Object.defineProperty(obj, "0", {
- get: function() {
- delete obj[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ delete obj[1];
+ return 0;
+ },
+ configurable: true
+ });
assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-9.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-9.js
index 9159db986..2c340f8d6 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-9.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-9.js
@@ -9,28 +9,27 @@ description: >
property not to be visited on an Array
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return idx !== 1;
+ }
+ var arr = [1, 2];
-function callbackfn(val, idx, obj) {
- accessed = true;
- return idx !== 1;
-}
-var arr = [1, 2];
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return "6.99";
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- return "6.99";
- },
- configurable: true
-});
-
-Object.defineProperty(arr, "0", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
assert(arr.every(callbackfn), 'arr.every(callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-1.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-1.js
index fd1e28b5f..579deb13d 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-1.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-1.js
@@ -9,19 +9,15 @@ description: >
property on an Array-like object
---*/
-var kValue = {};
+ var kValue = { };
+ function callbackfn(val, idx, obj) {
+ if (idx === 5) {
+ return val !== kValue;
+ } else {
+ return true;
+ }
+ }
-function callbackfn(val, idx, obj) {
- if (idx === 5) {
- return val !== kValue;
- } else {
- return true;
- }
-}
-
-var obj = {
- 5: kValue,
- length: 100
-};
+ var obj = { 5: kValue, length: 100 };
assert.sameValue(Array.prototype.every.call(obj, callbackfn), false, 'Array.prototype.every.call(obj, callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-10.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-10.js
index 653e5e244..1357bbb23 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-10.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-10.js
@@ -9,21 +9,21 @@ description: >
property on an Array
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 2) {
- return val !== 12;
- } else {
- return true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 2) {
+ return val !== 12;
+ } else {
+ return true;
+ }
+ }
-var arr = [];
+ var arr = [];
-Object.defineProperty(arr, "2", {
- get: function() {
- return 12;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ return 12;
+ },
+ configurable: true
+ });
assert.sameValue(arr.every(callbackfn), false, 'arr.every(callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-11.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-11.js
index 4168c98f9..9527daf83 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-11.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-11.js
@@ -10,30 +10,27 @@ description: >
Array-like object
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === 5;
- } else {
- return true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === 5;
+ } else {
+ return true;
+ }
+ }
-var proto = {
- 0: 5,
- 1: 6
-};
+ var proto = { 0: 5, 1: 6 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child.length = 10;
+ var child = new Con();
+ child.length = 10;
-Object.defineProperty(child, "0", {
- get: function() {
- return 11;
- },
- configurable: true
-});
+ Object.defineProperty(child, "0", {
+ get: function () {
+ return 11;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.every.call(child, callbackfn), false, 'Array.prototype.every.call(child, callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-12.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-12.js
index c1f29b18b..54751e566 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-12.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-12.js
@@ -9,23 +9,23 @@ description: >
property that overrides an inherited data property on an Array
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === 10;
- } else {
- return true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === 10;
+ } else {
+ return true;
+ }
+ }
-var arr = [];
+ var arr = [];
-Array.prototype[0] = 10;
+ Array.prototype[0] = 10;
-Object.defineProperty(arr, "0", {
- get: function() {
- return 111;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ return 111;
+ },
+ configurable: true
+ });
assert.sameValue(arr.every(callbackfn), false, 'arr.every(callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-13.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-13.js
index 5ffb1d544..aff2f0b0e 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-13.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-13.js
@@ -10,35 +10,35 @@ description: >
Array-like object
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- return val === 6;
- } else {
- return true;
- }
-}
-
-var proto = {};
-
-Object.defineProperty(proto, "1", {
- get: function() {
- return 6;
- },
- configurable: true
-});
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-child.length = 10;
-
-Object.defineProperty(child, "1", {
- get: function() {
- return 12;
- },
- configurable: true
-});
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ return val === 6;
+ } else {
+ return true;
+ }
+ }
+
+ var proto = {};
+
+ Object.defineProperty(proto, "1", {
+ get: function () {
+ return 6;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 10;
+
+ Object.defineProperty(child, "1", {
+ get: function () {
+ return 12;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.every.call(child, callbackfn), false, 'Array.prototype.every.call(child, callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-14.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-14.js
index 1cf1f75a2..544ef938b 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-14.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-14.js
@@ -9,28 +9,28 @@ description: >
property that overrides an inherited accessor property on an Array
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === 5;
- } else {
- return true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === 5;
+ } else {
+ return true;
+ }
+ }
-var arr = [];
+ var arr = [];
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return 5;
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return 5;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "0", {
- get: function() {
- return 11;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ return 11;
+ },
+ configurable: true
+ });
assert.sameValue(arr.every(callbackfn), false, 'arr.every(callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-15.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-15.js
index aab698397..bc8906dfc 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-15.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-15.js
@@ -9,27 +9,27 @@ description: >
accessor property on an Array-like object
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- return val !== 11;
- } else {
- return true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ return val !== 11;
+ } else {
+ return true;
+ }
+ }
-var proto = {};
+ var proto = {};
-Object.defineProperty(proto, "1", {
- get: function() {
- return 11;
- },
- configurable: true
-});
+ Object.defineProperty(proto, "1", {
+ get: function () {
+ return 11;
+ },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child.length = 20;
+ var child = new Con();
+ child.length = 20;
assert.sameValue(Array.prototype.every.call(child, callbackfn), false, 'Array.prototype.every.call(child, callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-16.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-16.js
index c249d76b1..20a274180 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-16.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-16.js
@@ -9,19 +9,19 @@ description: >
accessor property on an Array
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val !== 11;
- } else {
- return true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val !== 11;
+ } else {
+ return true;
+ }
+ }
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return 11;
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return 11;
+ },
+ configurable: true
+ });
assert.sameValue([, , , ].every(callbackfn), false, '[, , , ].every(callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-17.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-17.js
index 9b52fef8f..948c741bd 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-17.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-17.js
@@ -9,20 +9,18 @@ description: >
property without a get function on an Array-like object
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return typeof val === "undefined";
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return typeof val === "undefined";
+ }
-var obj = {
- length: 2
-};
-Object.defineProperty(obj, "1", {
- set: function() {},
- configurable: true
-});
+ var obj = { length: 2 };
+ Object.defineProperty(obj, "1", {
+ set: function () { },
+ configurable: true
+ });
assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-18.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-18.js
index 300d32b82..7911ea384 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-18.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-18.js
@@ -9,19 +9,19 @@ description: >
property without a get function on an Array
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return typeof val === "undefined";
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return typeof val === "undefined";
+ }
-var arr = [];
+ var arr = [];
-Object.defineProperty(arr, "0", {
- set: function() {},
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ set: function () { },
+ configurable: true
+ });
assert(arr.every(callbackfn), 'arr.every(callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-19.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-19.js
index cc150375a..26ae16c5a 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-19.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-19.js
@@ -10,22 +10,20 @@ description: >
accessor property on an Array-like object
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return typeof val === "undefined";
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return typeof val === "undefined";
+ }
-var obj = {
- length: 2
-};
-Object.defineProperty(obj, "1", {
- set: function() {},
- configurable: true
-});
+ var obj = { length: 2 };
+ Object.defineProperty(obj, "1", {
+ set: function () { },
+ configurable: true
+ });
-Object.prototype[1] = 10;
+ Object.prototype[1] = 10;
assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-2.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-2.js
index 5afcd1e0b..5a201fde8 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-2.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-2.js
@@ -9,12 +9,12 @@ description: >
property on an Array
---*/
-var called = 0;
+ var called = 0;
-function callbackfn(val, idx, obj) {
- called++;
- return val === 11;
-}
+ function callbackfn(val, idx, obj) {
+ called++;
+ return val === 11;
+ }
assert([11].every(callbackfn), '[11].every(callbackfn) !== true');
assert.sameValue(called, 1, 'called');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-20.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-20.js
index 8a5fa3139..38e384bb2 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-20.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-20.js
@@ -10,21 +10,21 @@ description: >
accessor property on an Array
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return typeof val === "undefined";
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return typeof val === "undefined";
+ }
-var arr = [];
+ var arr = [];
-Object.defineProperty(arr, "0", {
- set: function() {},
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ set: function () { },
+ configurable: true
+ });
-Array.prototype[0] = 100;
+ Array.prototype[0] = 100;
assert(arr.every(callbackfn), 'arr.every(callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-21.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-21.js
index b6d06142e..c905856ef 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-21.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-21.js
@@ -9,24 +9,24 @@ description: >
accessor property without a get function on an Array-like object
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return typeof val === "undefined";
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return typeof val === "undefined";
+ }
-var proto = {};
-Object.defineProperty(proto, "1", {
- set: function() {},
- configurable: true
-});
+ var proto = {};
+ Object.defineProperty(proto, "1", {
+ set: function () { },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child.length = 2;
+ var child = new Con();
+ child.length = 2;
assert(Array.prototype.every.call(child, callbackfn), 'Array.prototype.every.call(child, callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-22.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-22.js
index 9477b201f..aaa682d44 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-22.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-22.js
@@ -9,17 +9,17 @@ description: >
accessor property without a get function on an Array
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return typeof val === "undefined";
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return typeof val === "undefined";
+ }
-Object.defineProperty(Array.prototype, "0", {
- set: function() {},
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ set: function () { },
+ configurable: true
+ });
assert([, ].every(callbackfn), '[, ].every(callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-25.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-25.js
index c39d50664..2900f5033 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-25.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-25.js
@@ -10,16 +10,16 @@ description: >
less than number of parameters)
---*/
-var called = 0;
+ var called = 0;
-function callbackfn(val, idx, obj) {
- called++;
- return val === 11;
-}
+ function callbackfn(val, idx, obj) {
+ called++;
+ return val === 11;
+ }
-var func = function(a, b) {
- return Array.prototype.every.call(arguments, callbackfn);
-};
+ var func = function (a, b) {
+ return Array.prototype.every.call(arguments, callbackfn);
+ };
assert(func(11), 'func(11) !== true');
assert.sameValue(called, 1, 'called');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-26.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-26.js
index 3e1c7da80..6e636fbb9 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-26.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-26.js
@@ -10,22 +10,22 @@ description: >
number of parameters)
---*/
-var called = 0;
+ var called = 0;
-function callbackfn(val, idx, obj) {
- called++;
- if (idx === 0) {
- return val === 11;
- } else if (idx === 1) {
- return val === 9;
- } else {
- return false;
- }
-}
+ function callbackfn(val, idx, obj) {
+ called++;
+ if (idx === 0) {
+ return val === 11;
+ } else if (idx === 1) {
+ return val === 9;
+ } else {
+ return false;
+ }
+ }
-var func = function(a, b) {
- return Array.prototype.every.call(arguments, callbackfn);
-};
+ var func = function (a, b) {
+ return Array.prototype.every.call(arguments, callbackfn);
+ };
assert(func(11, 9), 'func(11, 9) !== true');
assert.sameValue(called, 2, 'called');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-27.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-27.js
index 2002d812a..c1c2719de 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-27.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-27.js
@@ -10,22 +10,22 @@ description: >
greater than number of parameters)
---*/
-var called = 0;
+ var called = 0;
-function callbackfn(val, idx, obj) {
- called++;
- if (idx < 2) {
- return val > 10;
- } else if (idx === 2) {
- return val < 10;
- } else {
- return false;
- }
-}
+ function callbackfn(val, idx, obj) {
+ called++;
+ if (idx < 2) {
+ return val > 10;
+ } else if (idx === 2) {
+ return val < 10;
+ } else {
+ return false;
+ }
+ }
-var func = function(a, b) {
- return Array.prototype.every.call(arguments, callbackfn);
-};
+ var func = function (a, b) {
+ return Array.prototype.every.call(arguments, callbackfn);
+ };
assert(func(11, 12, 9), 'func(11, 12, 9) !== true');
assert.sameValue(called, 3, 'called');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-28.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-28.js
index 425efe589..d39ed23c0 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-28.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-28.js
@@ -9,30 +9,30 @@ description: >
iterations is observed on an Array
---*/
-var preIterVisible = false;
-var arr = [];
+ var preIterVisible = false;
+ var arr = [];
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-Object.defineProperty(arr, "0", {
- get: function() {
- preIterVisible = true;
- return 11;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ preIterVisible = true;
+ return 11;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- if (preIterVisible) {
- return 9;
- } else {
- return 11;
- }
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ if (preIterVisible) {
+ return 9;
+ } else {
+ return 11;
+ }
+ },
+ configurable: true
+ });
assert.sameValue(arr.every(callbackfn), false, 'arr.every(callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-29.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-29.js
index 90c121c97..dbc91eb15 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-29.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-29.js
@@ -9,32 +9,30 @@ description: >
iterations is observed on an Array-like object
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var preIterVisible = false;
-var obj = {
- length: 2
-};
+ var preIterVisible = false;
+ var obj = { length: 2 };
-Object.defineProperty(obj, "0", {
- get: function() {
- preIterVisible = true;
- return 11;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ preIterVisible = true;
+ return 11;
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "1", {
- get: function() {
- if (preIterVisible) {
- return 9;
- } else {
- return 13;
- }
- },
- configurable: true
-});
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ if (preIterVisible) {
+ return 9;
+ } else {
+ return 13;
+ }
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.every.call(obj, callbackfn), false, 'Array.prototype.every.call(obj, callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-3.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-3.js
index d0eac70c0..c4fe3a814 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-3.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-3.js
@@ -9,24 +9,21 @@ description: >
property that overrides an inherited data property on an Array
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 5) {
- return val === 100;
- } else {
- return true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 5) {
+ return val === 100;
+ } else {
+ return true;
+ }
+ }
-var proto = {
- 0: 11,
- 5: 100
-};
+ var proto = { 0: 11, 5: 100 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child[5] = "abc";
-child.length = 10;
+ var child = new Con();
+ child[5] = "abc";
+ child.length = 10;
assert.sameValue(Array.prototype.every.call(child, callbackfn), false, 'Array.prototype.every.call(child, callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-30.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-30.js
index 04f0d5138..3bd5fd649 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-30.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-30.js
@@ -9,28 +9,22 @@ description: >
terminate iteration on an Array-like object
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ if (idx > 1) {
+ accessed = true;
+ }
+ return true;
+ }
-function callbackfn(val, idx, obj) {
- if (idx > 1) {
- accessed = true;
- }
- return true;
-}
-
-var obj = {
- 0: 11,
- 5: 10,
- 10: 8,
- length: 20
-};
-Object.defineProperty(obj, "1", {
- get: function() {
- throw new RangeError("unhandle exception happened in getter");
- },
- configurable: true
-});
+ var obj = { 0: 11, 5: 10, 10: 8, length: 20 };
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ throw new RangeError("unhandle exception happened in getter");
+ },
+ configurable: true
+ });
assert.throws(RangeError, function() {
- Array.prototype.every.call(obj, callbackfn);
+ Array.prototype.every.call(obj, callbackfn);
});
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-31.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-31.js
index b28796ac8..3214e3376 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-31.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-31.js
@@ -9,26 +9,25 @@ description: >
terminate iteration on an Array
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ if (idx > 1) {
+ accessed = true;
+ }
+ return true;
+ }
-function callbackfn(val, idx, obj) {
- if (idx > 1) {
- accessed = true;
- }
- return true;
-}
+ var arr = [];
+ arr[5] = 10;
+ arr[10] = 100;
-var arr = [];
-arr[5] = 10;
-arr[10] = 100;
-
-Object.defineProperty(arr, "1", {
- get: function() {
- throw new RangeError("unhandle exception happened in getter");
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ throw new RangeError("unhandle exception happened in getter");
+ },
+ configurable: true
+ });
assert.throws(RangeError, function() {
- arr.every(callbackfn);
+ arr.every(callbackfn);
});
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-4.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-4.js
index d9e81c6df..9c598c783 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-4.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-4.js
@@ -9,15 +9,14 @@ description: >
property that overrides an inherited data property on an Array
---*/
-var called = 0;
+ var called = 0;
+ function callbackfn(val, idx, obj) {
+ called++;
+ return val === 12;
+ }
-function callbackfn(val, idx, obj) {
- called++;
- return val === 12;
-}
-
-Array.prototype[0] = 11;
-Array.prototype[1] = 11;
+ Array.prototype[0] = 11;
+ Array.prototype[1] = 11;
assert([12, 12].every(callbackfn), '[12, 12].every(callbackfn) !== true');
assert.sameValue(called, 2, 'called');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-5.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-5.js
index 25c267078..988ac8f6e 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-5.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-5.js
@@ -10,32 +10,32 @@ description: >
Array-like object
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === 5;
- } else {
- return true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === 5;
+ } else {
+ return true;
+ }
+ }
-var proto = {};
+ var proto = {};
-Object.defineProperty(proto, "0", {
- get: function() {
- return 5;
- },
- configurable: true
-});
+ Object.defineProperty(proto, "0", {
+ get: function () {
+ return 5;
+ },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child.length = 2;
-Object.defineProperty(child, "0", {
- value: 11,
- configurable: true
-});
-child[1] = 12;
+ var child = new Con();
+ child.length = 2;
+ Object.defineProperty(child, "0", {
+ value: 11,
+ configurable: true
+ });
+ child[1] = 12;
assert.sameValue(Array.prototype.every.call(child, callbackfn), false, 'Array.prototype.every.call(child, callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-6.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-6.js
index 9575fe8ad..da98350be 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-6.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-6.js
@@ -9,19 +9,19 @@ description: >
property that overrides an inherited accessor property on an Array
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val === 11;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val === 11;
+ }
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return 9;
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return 9;
+ },
+ configurable: true
+ });
assert([11].every(callbackfn), '[11].every(callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-7.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-7.js
index 10d9ab7db..f0d11eb5b 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-7.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-7.js
@@ -9,24 +9,22 @@ description: >
property on an Array-like object
---*/
-var kValue = 'abc';
+ var kValue = 'abc';
-function callbackfn(val, idx, obj) {
- if (idx === 5) {
- return val !== kValue;
- } else {
- return true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 5) {
+ return val !== kValue;
+ } else {
+ return true;
+ }
+ }
-var proto = {
- 5: kValue
-};
+ var proto = { 5: kValue };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child.length = 10;
+ var child = new Con();
+ child.length = 10;
assert.sameValue(Array.prototype.every.call(child, callbackfn), false, 'Array.prototype.every.call(child, callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-8.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-8.js
index 507af757a..f36b54236 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-8.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-8.js
@@ -9,14 +9,14 @@ description: >
property on an Array
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- return val !== 13;
- } else {
- return true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ return val !== 13;
+ } else {
+ return true;
+ }
+ }
-Array.prototype[1] = 13;
+ Array.prototype[1] = 13;
assert.sameValue([, , , ].every(callbackfn), false, '[, , , ].every(callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-9.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-9.js
index 49392cb8a..5b37f8ab4 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-9.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-9.js
@@ -9,25 +9,22 @@ description: >
property on an Array-like object
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val !== 11;
- } else {
- return true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val !== 11;
+ } else {
+ return true;
+ }
+ }
-var obj = {
- 10: 10,
- length: 20
-};
+ var obj = { 10: 10, length: 20 };
-Object.defineProperty(obj, "0", {
- get: function() {
- return 11;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ return 11;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.every.call(obj, callbackfn), false, 'Array.prototype.every.call(obj, callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-1.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-1.js
index fff7c361c..559925a69 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-1.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-1.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.16-7-c-ii-1
description: Array.prototype.every - callbackfn called with correct parameters
---*/
-function callbackfn(val, Idx, obj)
-{
- if (obj[Idx] === val)
- return true;
-}
+ function callbackfn(val, Idx, obj)
+ {
+ if(obj[Idx] === val)
+ return true;
+ }
-var arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
+ var arr = [0,1,2,3,4,5,6,7,8,9];
assert.sameValue(arr.every(callbackfn), true, 'arr.every(callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-10.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-10.js
index 118130921..3a67002bf 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-10.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-10.js
@@ -9,12 +9,12 @@ description: >
parameter
---*/
-var called = 0;
+ var called = 0;
-function callbackfn(val) {
- called++;
- return val > 10;
-}
+ function callbackfn(val) {
+ called++;
+ return val > 10;
+ }
assert([11, 12].every(callbackfn), '[11, 12].every(callbackfn) !== true');
assert.sameValue(called, 2, 'called');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-11.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-11.js
index 1ed6ecb0d..41797d60c 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-11.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-11.js
@@ -9,12 +9,12 @@ description: >
parameter
---*/
-var called = 0;
+ var called = 0;
-function callbackfn(val, idx) {
- called++;
- return val > 10 && arguments[2][idx] === val;
-}
+ function callbackfn(val, idx) {
+ called++;
+ return val > 10 && arguments[2][idx] === val;
+ }
assert([11, 12].every(callbackfn), '[11, 12].every(callbackfn) !== true');
assert.sameValue(called, 2, 'called');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-12.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-12.js
index 62eefe55b..0724d0b3f 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-12.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-12.js
@@ -9,12 +9,12 @@ description: >
parameter
---*/
-var called = 0;
+ var called = 0;
-function callbackfn(val, idx, obj) {
- called++;
- return val > 10 && obj[idx] === val;
-}
+ function callbackfn(val, idx, obj) {
+ called++;
+ return val > 10 && obj[idx] === val;
+ }
assert([11, 12, 13].every(callbackfn), '[11, 12, 13].every(callbackfn) !== true');
assert.sameValue(called, 3, 'called');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-13.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-13.js
index 8f30c0a8c..340b49aff 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-13.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-13.js
@@ -9,12 +9,12 @@ description: >
get parameter value
---*/
-var called = 0;
+ var called = 0;
-function callbackfn() {
- called++;
- return arguments[2][arguments[1]] === arguments[0];
-}
+ function callbackfn() {
+ called++;
+ return arguments[2][arguments[1]] === arguments[0];
+ }
assert([11, 12].every(callbackfn), '[11, 12].every(callbackfn) !== true');
assert.sameValue(called, 2, 'called');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-16.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-16.js
index 379efe765..f9a5dc890 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-16.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-16.js
@@ -9,17 +9,14 @@ description: >
when T is not an object (T is a boolean primitive)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this.valueOf() !== false;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this.valueOf() !== false;
+ }
-var obj = {
- 0: 11,
- length: 2
-};
+ var obj = { 0: 11, length: 2 };
assert.sameValue(Array.prototype.every.call(obj, callbackfn, false), false, 'Array.prototype.every.call(obj, callbackfn, false)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-17.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-17.js
index f9d83678e..3732ea441 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-17.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-17.js
@@ -9,17 +9,14 @@ description: >
when T is not an object (T is a number primitive)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, o) {
- accessed = true;
- return 5 === this.valueOf();
-}
+ function callbackfn(val, idx, o) {
+ accessed = true;
+ return 5 === this.valueOf();
+ }
-var obj = {
- 0: 11,
- length: 2
-};
+ var obj = { 0: 11, length: 2 };
assert(Array.prototype.every.call(obj, callbackfn, 5), 'Array.prototype.every.call(obj, callbackfn, 5) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-18.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-18.js
index 17c1668bc..3392433cb 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-18.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-18.js
@@ -9,17 +9,14 @@ description: >
when T is not an object (T is a string primitive)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return 'hello' === this.valueOf();
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return 'hello' === this.valueOf();
+ }
-var obj = {
- 0: 11,
- length: 2
-};
+ var obj = { 0: 11, length: 2 };
assert(Array.prototype.every.call(obj, callbackfn, "hello"), 'Array.prototype.every.call(obj, callbackfn, "hello") !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-19.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-19.js
index cc7626465..f861f38e6 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-19.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-19.js
@@ -7,19 +7,14 @@ es5id: 15.4.4.16-7-c-ii-19
description: Array.prototype.every - non-indexed properties are not called
---*/
-var called = 0;
+ var called = 0;
-function callbackfn(val, idx, obj) {
- called++;
- return val !== 8;
-}
+ function callbackfn(val, idx, obj) {
+ called++;
+ return val !== 8;
+ }
-var obj = {
- 0: 11,
- 10: 12,
- non_index_property: 8,
- length: 20
-};
+ var obj = { 0: 11, 10: 12, non_index_property: 8, length: 20 };
assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true');
assert.sameValue(called, 2, 'called');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-2.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-2.js
index daacdfda4..0194ce387 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-2.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-2.js
@@ -7,14 +7,14 @@ es5id: 15.4.4.16-7-c-ii-2
description: Array.prototype.every - callbackfn takes 3 arguments
---*/
-function callbackfn(val, Idx, obj)
-{
- if (arguments.length === 3) //verify if callbackfn was called with 3 parameters
- return true;
-}
+ function callbackfn(val, Idx, obj)
+ {
+ if(arguments.length === 3) //verify if callbackfn was called with 3 parameters
+ return true;
+ }
-var arr = [0, 1, true, null, new Object(), "five"];
-arr[999999] = -6.6;
+ var arr = [0,1,true,null,new Object(),"five"];
+ arr[999999] = -6.6;
assert.sameValue(arr.every(callbackfn), true, 'arr.every(callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-20.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-20.js
index 23fe1f4c1..9cb001e0c 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-20.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-20.js
@@ -9,20 +9,15 @@ description: >
(thisArg is correct)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return 10 === this.threshold;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return 10 === this.threshold;
+ }
-var thisArg = {
- threshold: 10
-};
+ var thisArg = { threshold: 10 };
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert(Array.prototype.every.call(obj, callbackfn, thisArg), 'Array.prototype.every.call(obj, callbackfn, thisArg) !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-21.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-21.js
index 415365713..2d193c698 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-21.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-21.js
@@ -9,25 +9,21 @@ description: >
(kValue is correct)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- if (idx === 0) {
- return val === 11;
- }
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ if (idx === 0) {
+ return val === 11;
+ }
- if (idx === 1) {
- return val === 12;
- }
+ if (idx === 1) {
+ return val === 12;
+ }
-}
+ }
-var obj = {
- 0: 11,
- 1: 12,
- length: 2
-};
+ var obj = { 0: 11, 1: 12, length: 2 };
assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-22.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-22.js
index bd56fc0a9..524d61965 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-22.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-22.js
@@ -9,25 +9,21 @@ description: >
(the index k is correct)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- if (val === 11) {
- return idx === 0;
- }
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ if (val === 11) {
+ return idx === 0;
+ }
- if (val === 12) {
- return idx === 1;
- }
+ if (val === 12) {
+ return idx === 1;
+ }
-}
+ }
-var obj = {
- 0: 11,
- 1: 12,
- length: 2
-};
+ var obj = { 0: 11, 1: 12, length: 2 };
assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-23.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-23.js
index 59a1e5566..e5567884b 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-23.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-23.js
@@ -9,17 +9,13 @@ description: >
(this object O is correct)
---*/
-var called = 0;
-var obj = {
- 0: 11,
- 1: 12,
- length: 2
-};
+ var called = 0;
+ var obj = { 0: 11, 1: 12, length: 2 };
-function callbackfn(val, idx, o) {
- called++;
- return obj === o;
-}
+ function callbackfn(val, idx, o) {
+ called++;
+ return obj === o;
+ }
assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true');
assert.sameValue(called, 2, 'called');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-3.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-3.js
index f35df8913..39da9d01f 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-3.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-3.js
@@ -9,18 +9,17 @@ description: >
returns false
---*/
-var callCnt = 0;
+ var callCnt = 0;
+ function callbackfn(val, idx, obj)
+ {
+ callCnt++;
+ if(idx > 5)
+ return false;
+ else
+ return true;
+ }
-function callbackfn(val, idx, obj)
-{
- callCnt++;
- if (idx > 5)
- return false;
- else
- return true;
-}
-
-var arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
+ var arr = [0,1,2,3,4,5,6,7,8,9];
assert.sameValue(arr.every(callbackfn), false, 'arr.every(callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-4.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-4.js
index 07a4d691a..9a4216a67 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-4.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-4.js
@@ -9,19 +9,18 @@ description: >
order
---*/
-var arr = [0, 1, 2, 3, 4, 5];
-var lastIdx = 0;
-var called = 0;
-
-function callbackfn(val, idx, o) {
- called++;
- if (lastIdx !== idx) {
- return false;
- } else {
- lastIdx++;
- return true;
- }
-}
+ var arr = [0, 1, 2, 3, 4, 5];
+ var lastIdx = 0;
+ var called = 0;
+ function callbackfn(val, idx, o) {
+ called++;
+ if (lastIdx !== idx) {
+ return false;
+ } else {
+ lastIdx++;
+ return true;
+ }
+ }
assert(arr.every(callbackfn), 'arr.every(callbackfn) !== true');
assert.sameValue(arr.length, called, 'arr.length');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-5.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-5.js
index f604f9672..edd62427f 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-5.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-5.js
@@ -9,24 +9,24 @@ description: >
iteration and not prior to starting the loop on an Array
---*/
-var called = 0;
-var kIndex = [];
+ var called = 0;
+ var kIndex = [];
-//By below way, we could verify that k would be setted as 0, 1, ..., length - 1 in order, and each value will be setted one time.
-function callbackfn(val, idx, obj) {
- called++;
- //Each position should be visited one time, which means k is accessed one time during iterations.
- if (typeof kIndex[idx] === "undefined") {
- //when current position is visited, its previous index should has been visited.
- if (idx !== 0 && typeof kIndex[idx - 1] === "undefined") {
- return false;
- }
- kIndex[idx] = 1;
- return true;
- } else {
- return false;
- }
-}
+ //By below way, we could verify that k would be setted as 0, 1, ..., length - 1 in order, and each value will be setted one time.
+ function callbackfn(val, idx, obj) {
+ called++;
+ //Each position should be visited one time, which means k is accessed one time during iterations.
+ if (typeof kIndex[idx] === "undefined") {
+ //when current position is visited, its previous index should has been visited.
+ if (idx !== 0 && typeof kIndex[idx - 1] === "undefined") {
+ return false;
+ }
+ kIndex[idx] = 1;
+ return true;
+ } else {
+ return false;
+ }
+ }
assert([11, 12, 13, 14].every(callbackfn, undefined), '[11, 12, 13, 14].every(callbackfn, undefined) !== true');
assert.sameValue(called, 4, 'called');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-6.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-6.js
index df9f83143..d1c33e967 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-6.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-6.js
@@ -7,20 +7,17 @@ es5id: 15.4.4.16-7-c-ii-6
description: Array.prototype.every - arguments to callbackfn are self consistent
---*/
-var accessed = false;
-var thisArg = {};
-var obj = {
- 0: 11,
- length: 1
-};
+ var accessed = false;
+ var thisArg = {};
+ var obj = { 0: 11, length: 1 };
-function callbackfn() {
- accessed = true;
- return this === thisArg &&
- arguments[0] === 11 &&
- arguments[1] === 0 &&
- arguments[2] === obj;
-}
+ function callbackfn() {
+ accessed = true;
+ return this === thisArg &&
+ arguments[0] === 11 &&
+ arguments[1] === 0 &&
+ arguments[2] === obj;
+ }
assert(Array.prototype.every.call(obj, callbackfn, thisArg), 'Array.prototype.every.call(obj, callbackfn, thisArg) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-7.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-7.js
index c1a6345d8..d3f0f8eff 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-7.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-7.js
@@ -9,25 +9,20 @@ description: >
callbackfn terminate iteration
---*/
-var called = 0;
+ var called = 0;
-function callbackfn(val, idx, obj) {
- called++;
- if (called === 1) {
- throw new Test262Error("Exception occurred in callbackfn");
- }
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ called++;
+ if (called === 1) {
+ throw new Test262Error("Exception occurred in callbackfn");
+ }
+ return true;
+ }
-var obj = {
- 0: 11,
- 4: 10,
- 10: 8,
- length: 20
-};
+ var obj = { 0: 11, 4: 10, 10: 8, length: 20 };
assert.throws(Test262Error, function() {
- Array.prototype.every.call(obj, callbackfn);
+ Array.prototype.every.call(obj, callbackfn);
});
assert.sameValue(called, 1, 'called');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-8.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-8.js
index 6f015b207..26fb2b97a 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-8.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-8.js
@@ -9,18 +9,14 @@ description: >
iterations is observed
---*/
-var obj = {
- 0: 11,
- 1: 12,
- length: 2
-};
+ var obj = { 0: 11, 1: 12, length: 2 };
-function callbackfn(val, idx, o) {
- if (idx === 0) {
- obj[idx + 1] = 8;
- }
- return val > 10;
-}
+ function callbackfn(val, idx, o) {
+ if (idx === 0) {
+ obj[idx + 1] = 8;
+ }
+ return val > 10;
+ }
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-9.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-9.js
index b03364275..dfc3894db 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-9.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-9.js
@@ -9,12 +9,12 @@ description: >
parameter
---*/
-var called = 0;
+ var called = 0;
-function callbackfn() {
- called++;
- return true;
-}
+ function callbackfn() {
+ called++;
+ return true;
+ }
assert([11, 12].every(callbackfn), '[11, 12].every(callbackfn) !== true');
assert.sameValue(called, 2, 'called');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-1.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-1.js
index bafc7b841..f29e4f155 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-1.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-1.js
@@ -7,16 +7,13 @@ es5id: 15.4.4.16-7-c-iii-1
description: Array.prototype.every - return value of callbackfn is undefined
---*/
-var accessed = false;
-var obj = {
- 0: 11,
- length: 1
-};
+ var accessed = false;
+ var obj = { 0: 11, length: 1 };
-function callbackfn(val, idx, o) {
- accessed = true;
- return undefined;
-}
+ function callbackfn(val, idx, o) {
+ accessed = true;
+ return undefined;
+ }
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-10.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-10.js
index f495dd02c..6f806273d 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-10.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-10.js
@@ -9,12 +9,12 @@ description: >
(value is Infinity)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return Infinity;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return Infinity;
+ }
assert([11].every(callbackfn), '[11].every(callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-11.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-11.js
index b761964ae..923f6e28b 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-11.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-11.js
@@ -9,12 +9,12 @@ description: >
(value is -Infinity)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return -Infinity;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return -Infinity;
+ }
assert([11].every(callbackfn), '[11].every(callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-12.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-12.js
index 0ac2e5536..a8ee187e3 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-12.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-12.js
@@ -9,12 +9,12 @@ description: >
(value is NaN)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return NaN;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return NaN;
+ }
assert.sameValue([11].every(callbackfn), false, '[11].every(callbackfn)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-13.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-13.js
index 931cb99ca..4185bfa74 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-13.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-13.js
@@ -9,12 +9,12 @@ description: >
string
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return "";
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return "";
+ }
assert.sameValue([11].every(callbackfn), false, '[11].every(callbackfn)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-14.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-14.js
index ce75448e9..5e7cbea1c 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-14.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-14.js
@@ -9,12 +9,12 @@ description: >
string
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return "non-empty string";
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return "non-empty string";
+ }
assert([11].every(callbackfn), '[11].every(callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-15.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-15.js
index 0ab89ec09..2b577983b 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-15.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-15.js
@@ -9,12 +9,12 @@ description: >
object
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return function() {};
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return function () { };
+ }
assert([11].every(callbackfn), '[11].every(callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-16.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-16.js
index f7f6f6873..eec81ccd6 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-16.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-16.js
@@ -9,12 +9,12 @@ description: >
object
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return [];
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return [];
+ }
assert([11].every(callbackfn), '[11].every(callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-17.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-17.js
index 273fb64fd..bdf6d7314 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-17.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-17.js
@@ -9,12 +9,12 @@ description: >
object
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return new String();
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return new String();
+ }
assert([11].every(callbackfn), '[11].every(callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-18.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-18.js
index 7cde6eabf..37d3ecc27 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-18.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-18.js
@@ -9,12 +9,12 @@ description: >
object
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return new Boolean();
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return new Boolean();
+ }
assert([11].every(callbackfn), '[11].every(callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-19.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-19.js
index 7306e5e45..f9ef17f28 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-19.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-19.js
@@ -9,12 +9,12 @@ description: >
object
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return new Number();
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return new Number();
+ }
assert([11].every(callbackfn), '[11].every(callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-2.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-2.js
index 62e4d0589..7084a3776 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-2.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-2.js
@@ -7,16 +7,13 @@ es5id: 15.4.4.16-7-c-iii-2
description: Array.prototype.every - return value of callbackfn is null
---*/
-var accessed = false;
-var obj = {
- 0: 11,
- length: 1
-};
+ var accessed = false;
+ var obj = { 0: 11, length: 1 };
-function callbackfn(val, idx, obj) {
- accessed = true;
- return null;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return null;
+ }
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-20.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-20.js
index 2026f6357..7a68faf9f 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-20.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-20.js
@@ -9,12 +9,12 @@ description: >
object
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return Math;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return Math;
+ }
assert([11].every(callbackfn), '[11].every(callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-21.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-21.js
index 3b16afa42..ef6432c3d 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-21.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-21.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.16-7-c-iii-21
description: Array.prototype.every - return value of callbackfn is a Date object
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return new Date();
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return new Date();
+ }
assert([11].every(callbackfn), '[11].every(callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-22.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-22.js
index 3616be141..b7b1437a8 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-22.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-22.js
@@ -9,12 +9,12 @@ description: >
object
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return new RegExp();
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return new RegExp();
+ }
assert([11].every(callbackfn), '[11].every(callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-23.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-23.js
index 87151094b..80b30b5f6 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-23.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-23.js
@@ -9,12 +9,12 @@ description: >
object
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return JSON;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return JSON;
+ }
assert([11].every(callbackfn), '[11].every(callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-24.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-24.js
index 7141b6a71..3075fcdb6 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-24.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-24.js
@@ -9,12 +9,12 @@ description: >
object
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return new EvalError();
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return new EvalError();
+ }
assert([11].every(callbackfn), '[11].every(callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-25.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-25.js
index 8efc3f174..fcfc6b35c 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-25.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-25.js
@@ -9,12 +9,12 @@ description: >
Arguments object
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return arguments;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return arguments;
+ }
assert([11].every(callbackfn), '[11].every(callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-27.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-27.js
index 2b650660b..5f962f32f 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-27.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-27.js
@@ -10,12 +10,12 @@ description: >
---*/
var global = this;
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return global;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return global;
+ }
assert([11].every(callbackfn), '[11].every(callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-28.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-28.js
index 0475c7ff5..7c1df38b4 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-28.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-28.js
@@ -7,39 +7,37 @@ es5id: 15.4.4.16-7-c-iii-28
description: Array.prototype.every - false prevents further side effects
---*/
-var result = false;
-var obj = {
- length: 20
-};
+ var result = false;
+ var obj = { length: 20 };
-function callbackfn(val, idx, obj) {
- if (idx > 1) {
- result = true;
- }
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx > 1) {
+ result = true;
+ }
+ return val > 10;
+ }
-Object.defineProperty(obj, "0", {
- get: function() {
- return 11;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ return 11;
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "1", {
- get: function() {
- return 8;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ return 8;
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "2", {
- get: function() {
- result = true;
- return 8;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "2", {
+ get: function () {
+ result = true;
+ return 8;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.every.call(obj, callbackfn), false, 'Array.prototype.every.call(obj, callbackfn)');
assert.sameValue(result, false, 'result');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-29.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-29.js
index 7571d0ec3..796bd2ea5 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-29.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-29.js
@@ -9,12 +9,12 @@ description: >
callbackfn is treated as true value
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return new Boolean(false);
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return new Boolean(false);
+ }
assert([11].every(callbackfn), '[11].every(callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-3.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-3.js
index bcd7891c7..c8583c061 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-3.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-3.js
@@ -9,16 +9,13 @@ description: >
(value is false)
---*/
-var accessed = false;
-var obj = {
- 0: 11,
- length: 1
-};
+ var accessed = false;
+ var obj = { 0: 11, length: 1 };
-function callbackfn(val, idx, obj) {
- accessed = true;
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return false;
+ }
assert.sameValue(Array.prototype.every.call(obj, callbackfn), false, 'Array.prototype.every.call(obj, callbackfn)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-4.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-4.js
index 34469360c..31b4185b9 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-4.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-4.js
@@ -9,16 +9,13 @@ description: >
(value is true)
---*/
-var accessed = false;
-var obj = {
- 0: 11,
- length: 1
-};
+ var accessed = false;
+ var obj = { 0: 11, length: 1 };
-function callbackfn(val, idx, obj) {
- accessed = true;
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return true;
+ }
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-5.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-5.js
index b1ce805ac..93790b433 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-5.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-5.js
@@ -9,12 +9,12 @@ description: >
(value is 0)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return 0;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return 0;
+ }
assert.sameValue([11].every(callbackfn), false, '[11].every(callbackfn)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-6.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-6.js
index 5ca005865..fc0eaa069 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-6.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-6.js
@@ -9,12 +9,12 @@ description: >
(value is +0)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return +0;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return +0;
+ }
assert.sameValue([11].every(callbackfn), false, '[11].every(callbackfn)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-7.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-7.js
index 3b152c86b..4ec5e4a5e 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-7.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-7.js
@@ -9,12 +9,12 @@ description: >
(value is -0)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return -0;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return -0;
+ }
assert.sameValue([11].every(callbackfn), false, '[11].every(callbackfn)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-8.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-8.js
index 0c2b63f00..59a89680e 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-8.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-8.js
@@ -9,12 +9,12 @@ description: >
(value is positive number)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return 5;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return 5;
+ }
assert([11].every(callbackfn), '[11].every(callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-9.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-9.js
index 1830a7d9a..18ff44cc4 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-9.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-9.js
@@ -9,12 +9,12 @@ description: >
(value is negative number)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return -5;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return -5;
+ }
assert([11].every(callbackfn), '[11].every(callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-8-1.js b/test/built-ins/Array/prototype/every/15.4.4.16-8-1.js
index e5fb2db83..d074dbf34 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-8-1.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-8-1.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.16-8-1
description: Array.prototype.every returns true if 'length' is 0 (empty array)
---*/
-function cb() {}
-var i = [].every(cb);
+ function cb() {}
+ var i = [].every(cb);
assert.sameValue(i, true, 'i');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-8-10.js b/test/built-ins/Array/prototype/every/15.4.4.16-8-10.js
index a865a6c4b..e69633f91 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-8-10.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-8-10.js
@@ -7,20 +7,19 @@ es5id: 15.4.4.16-8-10
description: Array.prototype.every - subclassed array when length is reduced
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = 2;
-function foo() {}
-var f = new foo();
-f.length = 2;
-
-function cb(val)
-{
- if (val > 2)
- return false;
- else
- return true;
-}
-var i = f.every(cb);
+ function cb(val)
+ {
+ if(val>2)
+ return false;
+ else
+ return true;
+ }
+ var i = f.every(cb);
assert.sameValue(i, true, 'i');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-8-11.js b/test/built-ins/Array/prototype/every/15.4.4.16-8-11.js
index b407fe4e7..9403b2acd 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-8-11.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-8-11.js
@@ -9,15 +9,14 @@ description: >
return true
---*/
-var callCnt = 0;
+ var callCnt = 0;
+ function callbackfn(val, idx, obj)
+ {
+ callCnt++;
+ return true;
+ }
-function callbackfn(val, idx, obj)
-{
- callCnt++;
- return true;
-}
-
-var arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
+ var arr = [0,1,2,3,4,5,6,7,8,9];
assert.sameValue(arr.every(callbackfn), true, 'arr.every(callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-8-12.js b/test/built-ins/Array/prototype/every/15.4.4.16-8-12.js
index 7100aecd5..844e0bf62 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-8-12.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-8-12.js
@@ -9,12 +9,12 @@ description: >
called on
---*/
-function callbackfn(val, idx, obj)
-{
- return true;
-}
-var arr = [1, 2, 3, 4, 5];
-arr.every(callbackfn);
+ function callbackfn(val, idx, obj)
+ {
+ return true;
+ }
+ var arr = [1,2,3,4,5];
+ arr.every(callbackfn);
assert.sameValue(arr[0], 1, 'arr[0]');
assert.sameValue(arr[1], 2, 'arr[1]');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-8-13.js b/test/built-ins/Array/prototype/every/15.4.4.16-8-13.js
index 66b56af96..3a41b2c36 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-8-13.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-8-13.js
@@ -7,17 +7,16 @@ es5id: 15.4.4.16-8-13
description: Array.prototype.every doesn't visit expandos
---*/
-var callCnt = 0;
+ var callCnt = 0;
+ function callbackfn(val, idx, obj)
+ {
+ callCnt++;
+ return true;
+ }
-function callbackfn(val, idx, obj)
-{
- callCnt++;
- return true;
-}
-
-var arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
-arr["i"] = 10;
-arr[true] = 11;
+ var arr = [0,1,2,3,4,5,6,7,8,9];
+ arr["i"] = 10;
+ arr[true] = 11;
assert.sameValue(arr.every(callbackfn), true, 'arr.every(callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-8-2.js b/test/built-ins/Array/prototype/every/15.4.4.16-8-2.js
index 90ef805f6..9d9d694b1 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-8-2.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-8-2.js
@@ -9,14 +9,13 @@ description: >
Array, length overridden to null (type conversion))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = null;
-function foo() {}
-var f = new foo();
-f.length = null;
-
-function cb() {}
-var i = f.every(cb);
+ function cb(){}
+ var i = f.every(cb);
assert.sameValue(i, true, 'i');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-8-3.js b/test/built-ins/Array/prototype/every/15.4.4.16-8-3.js
index 746ea3c4d..6cf241998 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-8-3.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-8-3.js
@@ -9,14 +9,13 @@ description: >
Array, length overridden to false (type conversion))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = false;
-function foo() {}
-var f = new foo();
-f.length = false;
-
-function cb() {}
-var i = f.every(cb);
+ function cb(){}
+ var i = f.every(cb);
assert.sameValue(i, true, 'i');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-8-4.js b/test/built-ins/Array/prototype/every/15.4.4.16-8-4.js
index 802f85d32..f296ed79c 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-8-4.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-8-4.js
@@ -9,14 +9,13 @@ description: >
Array, length overridden to 0 (type conversion))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = 0;
-function foo() {}
-var f = new foo();
-f.length = 0;
-
-function cb() {}
-var i = f.every(cb);
+ function cb(){}
+ var i = f.every(cb);
assert.sameValue(i, true, 'i');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-8-5.js b/test/built-ins/Array/prototype/every/15.4.4.16-8-5.js
index cd8513fb4..49d510f6b 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-8-5.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-8-5.js
@@ -9,14 +9,13 @@ description: >
Array, length overridden to '0' (type conversion))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = '0';
-function foo() {}
-var f = new foo();
-f.length = '0';
-
-function cb() {}
-var i = f.every(cb);
+ function cb(){}
+ var i = f.every(cb);
assert.sameValue(i, true, 'i');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-8-6.js b/test/built-ins/Array/prototype/every/15.4.4.16-8-6.js
index 17d0d8834..de58615e3 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-8-6.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-8-6.js
@@ -9,20 +9,15 @@ description: >
Array, length overridden with obj with valueOf)
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ var o = { valueOf: function () { return 0;}};
+ f.length = o;
-var o = {
- valueOf: function() {
- return 0;
- }
-};
-f.length = o;
-
-function cb() {}
-var i = f.every(cb);
+ function cb(){}
+ var i = f.every(cb);
assert.sameValue(i, true, 'i');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-8-7.js b/test/built-ins/Array/prototype/every/15.4.4.16-8-7.js
index f23dc8cff..170831065 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-8-7.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-8-7.js
@@ -9,25 +9,20 @@ description: >
Array, length overridden with obj w/o valueOf (toString))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ var o = { toString: function () { return '0';}};
+ f.length = o;
-var o = {
- toString: function() {
- return '0';
- }
-};
-f.length = o;
-
-// objects inherit the default valueOf method of the Object object;
-// that simply returns the itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-function cb() {}
-var i = f.every(cb);
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
+ function cb(){}
+ var i = f.every(cb);
assert.sameValue(i, true, 'i');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-8-8.js b/test/built-ins/Array/prototype/every/15.4.4.16-8-8.js
index 75f2878c3..8d1854e45 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-8-8.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-8-8.js
@@ -9,29 +9,28 @@ description: >
Array, length overridden with []
---*/
-foo.prototype = new Array(1, 2, 3);
-
-function foo() {}
-var f = new foo();
-
-f.length = [];
-
-// objects inherit the default valueOf method of the Object object;
-// that simply returns the itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-//
-// The toString( ) method on Array converts the array elements to strings,
-// then returns the result of concatenating these strings, with commas in
-// between. An array with no elements converts to the empty string, which
-// converts to the number 0. If an array has a single element that is a
-// number n, the array converts to a string representation of n, which is
-// then converted back to n itself. If an array contains more than one element,
-// or if its one element is not a number, the array converts to NaN.
-
-function cb() {}
-var i = f.every(cb);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+
+ f.length = [];
+
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
+ //
+ // The toString( ) method on Array converts the array elements to strings,
+ // then returns the result of concatenating these strings, with commas in
+ // between. An array with no elements converts to the empty string, which
+ // converts to the number 0. If an array has a single element that is a
+ // number n, the array converts to a string representation of n, which is
+ // then converted back to n itself. If an array contains more than one element,
+ // or if its one element is not a number, the array converts to NaN.
+
+ function cb(){}
+ var i = f.every(cb);
assert.sameValue(i, true, 'i');
diff --git a/test/built-ins/Array/prototype/fill/fill-values-custom-start-and-end.js b/test/built-ins/Array/prototype/fill/fill-values-custom-start-and-end.js
index ce34f42d8..d445b9304 100644
--- a/test/built-ins/Array/prototype/fill/fill-values-custom-start-and-end.js
+++ b/test/built-ins/Array/prototype/fill/fill-values-custom-start-and-end.js
@@ -24,4 +24,4 @@ assert(compareArray([0, 0, 0].fill(8, 1, 2), [0, 8, 0]));
assert(compareArray([0, 0, 0, 0, 0].fill(8, -3, 4), [0, 0, 8, 8, 0]));
assert(compareArray([0, 0, 0, 0, 0].fill(8, -2, -1), [0, 0, 0, 8, 0]));
assert(compareArray([0, 0, 0, 0, 0].fill(8, -1, -3), [0, 0, 0, 0, 0]));
-assert(compareArray([, , , , 0].fill(8, 1, 3), [, 8, 8, , 0]));
+assert(compareArray([ , , , , 0].fill(8, 1, 3), [, 8, 8, , 0]));
diff --git a/test/built-ins/Array/prototype/fill/fill-values.js b/test/built-ins/Array/prototype/fill/fill-values.js
index 43f119f27..ab2cf19d0 100644
--- a/test/built-ins/Array/prototype/fill/fill-values.js
+++ b/test/built-ins/Array/prototype/fill/fill-values.js
@@ -28,7 +28,8 @@ includes: [compareArray.js]
assert(compareArray([].fill(8), []));
assert(compareArray(
- [0, 0].fill(), [undefined, undefined]
+ [0, 0].fill(),
+ [undefined, undefined]
));
assert(
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-1-1.js b/test/built-ins/Array/prototype/filter/15.4.4.20-1-1.js
index c9b561676..c9d811439 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-1-1.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-1-1.js
@@ -9,5 +9,5 @@ description: Array.prototype.filter applied to undefined throws a TypeError
assert.throws(TypeError, function() {
- Array.prototype.filter.call(undefined); // TypeError is thrown if value is undefined
+ Array.prototype.filter.call(undefined); // TypeError is thrown if value is undefined
});
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-1-10.js b/test/built-ins/Array/prototype/filter/15.4.4.20-1-10.js
index 9fa42cba0..f56c19437 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-1-10.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-1-10.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.20-1-10
description: Array.prototype.filter applied to the Math object
---*/
-function callbackfn(val, idx, obj) {
- return '[object Math]' === Object.prototype.toString.call(obj);
-}
+ function callbackfn(val, idx, obj) {
+ return '[object Math]' === Object.prototype.toString.call(obj);
+ }
-Math.length = 1;
-Math[0] = 1;
-var newArr = Array.prototype.filter.call(Math, callbackfn);
+ Math.length = 1;
+ Math[0] = 1;
+ var newArr = Array.prototype.filter.call(Math, callbackfn);
assert.sameValue(newArr[0], 1, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-1-11.js b/test/built-ins/Array/prototype/filter/15.4.4.20-1-11.js
index 19703f190..d9e730234 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-1-11.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-1-11.js
@@ -7,14 +7,14 @@ es5id: 15.4.4.20-1-11
description: Array.prototype.filter applied to Date object
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof Date;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof Date;
+ }
-var obj = new Date();
-obj.length = 1;
-obj[0] = 1;
+ var obj = new Date();
+ obj.length = 1;
+ obj[0] = 1;
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr[0], 1, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-1-12.js b/test/built-ins/Array/prototype/filter/15.4.4.20-1-12.js
index 09a5dbb37..9a7404b58 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-1-12.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-1-12.js
@@ -7,14 +7,14 @@ es5id: 15.4.4.20-1-12
description: Array.prototype.filter applied to RegExp object
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof RegExp;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof RegExp;
+ }
-var obj = new RegExp();
-obj.length = 2;
-obj[1] = true;
+ var obj = new RegExp();
+ obj.length = 2;
+ obj[1] = true;
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr[0], true, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-1-13.js b/test/built-ins/Array/prototype/filter/15.4.4.20-1-13.js
index fbeaacc89..b5e440512 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-1-13.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-1-13.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.20-1-13
description: Array.prototype.filter applied to the JSON object
---*/
-function callbackfn(val, idx, obj) {
- return '[object JSON]' === Object.prototype.toString.call(JSON);
-}
+ function callbackfn(val, idx, obj) {
+ return '[object JSON]' === Object.prototype.toString.call(JSON);
+ }
-JSON.length = 1;
-JSON[0] = 1;
-var newArr = Array.prototype.filter.call(JSON, callbackfn);
+ JSON.length = 1;
+ JSON[0] = 1;
+ var newArr = Array.prototype.filter.call(JSON, callbackfn);
assert.sameValue(newArr[0], 1, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-1-14.js b/test/built-ins/Array/prototype/filter/15.4.4.20-1-14.js
index 0b9f3060a..7e77b5403 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-1-14.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-1-14.js
@@ -7,14 +7,14 @@ es5id: 15.4.4.20-1-14
description: Array.prototype.filter applied to Error object
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof Error;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof Error;
+ }
-var obj = new Error();
-obj.length = 1;
-obj[0] = 1;
+ var obj = new Error();
+ obj.length = 1;
+ obj[0] = 1;
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr[0], 1, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-1-15.js b/test/built-ins/Array/prototype/filter/15.4.4.20-1-15.js
index 0be84b256..314f8cf65 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-1-15.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-1-15.js
@@ -7,15 +7,15 @@ es5id: 15.4.4.20-1-15
description: Array.prototype.filter applied to the Arguments object
---*/
-function callbackfn(val, idx, obj) {
- return '[object Arguments]' === Object.prototype.toString.call(obj);
-}
+ function callbackfn(val, idx, obj) {
+ return '[object Arguments]' === Object.prototype.toString.call(obj);
+ }
-var obj = (function() {
- return arguments;
-}("a", "b"));
+ var obj = (function () {
+ return arguments;
+ }("a", "b"));
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr[0], "a", 'newArr[0]');
assert.sameValue(newArr[1], "b", 'newArr[1]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-1-2.js b/test/built-ins/Array/prototype/filter/15.4.4.20-1-2.js
index 70e775afe..3c4abb006 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-1-2.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-1-2.js
@@ -9,5 +9,5 @@ description: Array.prototype.filter applied to null throws a TypeError
assert.throws(TypeError, function() {
- Array.prototype.filter.call(null);
+ Array.prototype.filter.call(null);
});
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-1-3.js b/test/built-ins/Array/prototype/filter/15.4.4.20-1-3.js
index 95aaebd9e..c8ed73db1 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-1-3.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-1-3.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.20-1-3
description: Array.prototype.filter applied to boolean primitive
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof Boolean;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof Boolean;
+ }
-Boolean.prototype[0] = true;
-Boolean.prototype.length = 1;
+ Boolean.prototype[0] = true;
+ Boolean.prototype.length = 1;
-var newArr = Array.prototype.filter.call(false, callbackfn);
+ var newArr = Array.prototype.filter.call(false, callbackfn);
assert.sameValue(newArr[0], true, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-1-4.js b/test/built-ins/Array/prototype/filter/15.4.4.20-1-4.js
index e7b7d2fdc..17517c532 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-1-4.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-1-4.js
@@ -7,16 +7,16 @@ es5id: 15.4.4.20-1-4
description: Array.prototype.filter applied to Boolean Object
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof Boolean;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof Boolean;
+ }
-var obj = new Boolean(true);
-obj.length = 2;
-obj[0] = 11;
-obj[1] = 12;
+ var obj = new Boolean(true);
+ obj.length = 2;
+ obj[0] = 11;
+ obj[1] = 12;
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr[0], 11, 'newArr[0]');
assert.sameValue(newArr[1], 12, 'newArr[1]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-1-5.js b/test/built-ins/Array/prototype/filter/15.4.4.20-1-5.js
index 4e8c4ffd5..114e360ab 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-1-5.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-1-5.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.20-1-5
description: Array.prototype.filter applied to number primitive
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof Number;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof Number;
+ }
-Number.prototype[0] = 1;
-Number.prototype.length = 1;
+ Number.prototype[0] = 1;
+ Number.prototype.length = 1;
-var newArr = Array.prototype.filter.call(2.5, callbackfn);
+ var newArr = Array.prototype.filter.call(2.5, callbackfn);
assert.sameValue(newArr[0], 1, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-1-6.js b/test/built-ins/Array/prototype/filter/15.4.4.20-1-6.js
index 6f4bb4eb2..d73da1d91 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-1-6.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-1-6.js
@@ -7,16 +7,16 @@ es5id: 15.4.4.20-1-6
description: Array.prototype.filter applied to Number object
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof Number;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof Number;
+ }
-var obj = new Number(-128);
-obj.length = 2;
-obj[0] = 11;
-obj[1] = 12;
+ var obj = new Number(-128);
+ obj.length = 2;
+ obj[0] = 11;
+ obj[1] = 12;
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr[0], 11, 'newArr[0]');
assert.sameValue(newArr[1], 12, 'newArr[1]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-1-7.js b/test/built-ins/Array/prototype/filter/15.4.4.20-1-7.js
index c7a70ad25..8e85e3a8d 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-1-7.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-1-7.js
@@ -7,10 +7,10 @@ es5id: 15.4.4.20-1-7
description: Array.prototype.filter applied to string primitive
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof String;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof String;
+ }
-var newArr = Array.prototype.filter.call("abc", callbackfn);
+ var newArr = Array.prototype.filter.call("abc", callbackfn);
assert.sameValue(newArr[0], "a", 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-1-8.js b/test/built-ins/Array/prototype/filter/15.4.4.20-1-8.js
index 35438987c..84df1f7aa 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-1-8.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-1-8.js
@@ -7,11 +7,11 @@ es5id: 15.4.4.20-1-8
description: Array.prototype.filter applied to String object
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof String;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof String;
+ }
-var obj = new String("abc");
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var obj = new String("abc");
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr[0], "a", 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-1-9.js b/test/built-ins/Array/prototype/filter/15.4.4.20-1-9.js
index 01e194a56..b64de3811 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-1-9.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-1-9.js
@@ -7,17 +7,17 @@ es5id: 15.4.4.20-1-9
description: Array.prototype.filter applied to Function object
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof Function;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof Function;
+ }
-var obj = function(a, b) {
- return a + b;
-};
-obj[0] = 11;
-obj[1] = 9;
+ var obj = function (a, b) {
+ return a + b;
+ };
+ obj[0] = 11;
+ obj[1] = 9;
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr[0], 11, 'newArr[0]');
assert.sameValue(newArr[1], 9, 'newArr[1]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-10-1.js b/test/built-ins/Array/prototype/filter/15.4.4.20-10-1.js
index 803469954..d554b6850 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-10-1.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-10-1.js
@@ -9,12 +9,12 @@ description: >
called on
---*/
-function callbackfn(val, idx, obj)
-{
- return true;
-}
-var srcArr = [1, 2, 3, 4, 5];
-srcArr.filter(callbackfn);
+ function callbackfn(val, idx, obj)
+ {
+ return true;
+ }
+ var srcArr = [1,2,3,4,5];
+ srcArr.filter(callbackfn);
assert.sameValue(srcArr[0], 1, 'srcArr[0]');
assert.sameValue(srcArr[1], 2, 'srcArr[1]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-10-2.js b/test/built-ins/Array/prototype/filter/15.4.4.20-10-2.js
index 5bd456a8e..4ef4c19ab 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-10-2.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-10-2.js
@@ -9,15 +9,15 @@ description: >
number of true returned by callbackfn
---*/
-function callbackfn(val, idx, obj)
-{
- if (val % 2)
- return true;
- else
- return false;
-}
-var srcArr = [1, 2, 3, 4, 5];
-var resArr = srcArr.filter(callbackfn);
+ function callbackfn(val, idx, obj)
+ {
+ if(val % 2)
+ return true;
+ else
+ return false;
+ }
+ var srcArr = [1,2,3,4,5];
+ var resArr = srcArr.filter(callbackfn);
assert.sameValue(resArr.length, 3, 'resArr.length');
assert.sameValue(resArr[0], 1, 'resArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-10-3.js b/test/built-ins/Array/prototype/filter/15.4.4.20-10-3.js
index a20ae4f18..6d278d962 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-10-3.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-10-3.js
@@ -7,16 +7,13 @@ es5id: 15.4.4.20-10-3
description: Array.prototype.filter - subclassed array when length is reduced
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = 1;
-function foo() {}
-var f = new foo();
-f.length = 1;
-
-function cb() {
- return true;
-}
-var a = f.filter(cb);
+ function cb(){return true;}
+ var a = f.filter(cb);
assert(Array.isArray(a), 'Array.isArray(a) !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-10-4.js b/test/built-ins/Array/prototype/filter/15.4.4.20-10-4.js
index 10e8fa029..fa6b6603f 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-10-4.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-10-4.js
@@ -7,16 +7,15 @@ es5id: 15.4.4.20-10-4
description: Array.prototype.filter doesn't visit expandos
---*/
-var callCnt = 0;
+ var callCnt = 0;
+ function callbackfn(val, idx, obj)
+ {
+ callCnt++;
+ }
+ var srcArr = [1,2,3,4,5];
+ srcArr["i"] = 10;
+ srcArr[true] = 11;
-function callbackfn(val, idx, obj)
-{
- callCnt++;
-}
-var srcArr = [1, 2, 3, 4, 5];
-srcArr["i"] = 10;
-srcArr[true] = 11;
-
-var resArr = srcArr.filter(callbackfn);
+ var resArr = srcArr.filter(callbackfn);
assert.sameValue(callCnt, 5, 'callCnt');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-1.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-1.js
index 68c19c6a6..ef11a8172 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-1.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-1.js
@@ -9,17 +9,17 @@ description: >
own data property
---*/
-function callbackfn(val, idx, obj) {
- return obj.length === 2;
-}
+ function callbackfn(val, idx, obj) {
+ return obj.length === 2;
+ }
-var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: 2
-};
+ var obj = {
+ 0: 12,
+ 1: 11,
+ 2: 9,
+ length: 2
+ };
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-10.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-10.js
index 683217637..7ef499298 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-10.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-10.js
@@ -9,27 +9,27 @@ description: >
inherited accessor property
---*/
-function callbackfn(val, idx, obj) {
- return obj.length === 2;
-}
+ function callbackfn(val, idx, obj) {
+ return obj.length === 2;
+ }
-var proto = {};
+ var proto = {};
-Object.defineProperty(proto, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
+ var child = new Con();
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
-var newArr = Array.prototype.filter.call(child, callbackfn);
+ var newArr = Array.prototype.filter.call(child, callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-11.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-11.js
index 8a55f62fb..b707e5159 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-11.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-11.js
@@ -9,23 +9,22 @@ description: >
own accessor property without a get function
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return true;
+ }
-function callbackfn(val, idx, obj) {
- accessed = true;
- return true;
-}
+ var obj = {
+ 0: 11,
+ 1: 12
+ };
+ Object.defineProperty(obj, "length", {
+ set: function () { },
+ configurable: true
+ });
-var obj = {
- 0: 11,
- 1: 12
-};
-Object.defineProperty(obj, "length", {
- set: function() {},
- configurable: true
-});
-
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-12.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-12.js
index b5983c280..40c49cf05 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-12.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-12.js
@@ -9,30 +9,26 @@ description: >
a get function that overrides an inherited accessor property
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return true;
+ }
-function callbackfn(val, idx, obj) {
- accessed = true;
- return true;
-}
+ Object.defineProperty(Object.prototype, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-Object.defineProperty(Object.prototype, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ var obj = { 0: 12, 1: 11 };
+ Object.defineProperty(obj, "length", {
+ set: function () { },
+ configurable: true
+ });
-var obj = {
- 0: 12,
- 1: 11
-};
-Object.defineProperty(obj, "length", {
- set: function() {},
- configurable: true
-});
-
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-13.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-13.js
index 25652960d..b35a71c92 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-13.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-13.js
@@ -9,27 +9,26 @@ description: >
'length' is inherited accessor property without a get function
---*/
-var accessed = false;
-
-function callbackfn(val, idx, obj) {
- accessed = true;
- return true;
-}
-
-var proto = {};
-Object.defineProperty(proto, "length", {
- set: function() {},
- configurable: true
-});
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-child[0] = 11;
-child[1] = 12;
-
-var newArr = Array.prototype.filter.call(child, callbackfn);
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return true;
+ }
+
+ var proto = {};
+ Object.defineProperty(proto, "length", {
+ set: function () { },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child[0] = 11;
+ child[1] = 12;
+
+ var newArr = Array.prototype.filter.call(child, callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-14.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-14.js
index 545d914e6..64b7059d8 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-14.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-14.js
@@ -9,19 +9,15 @@ description: >
'length property doesn't exist
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return true;
+ }
-function callbackfn(val, idx, obj) {
- accessed = true;
- return true;
-}
+ var obj = { 0: 11, 1: 12 };
-var obj = {
- 0: 11,
- 1: 12
-};
-
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-17.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-17.js
index 34c579c77..e2ff3af64 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-17.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-17.js
@@ -9,13 +9,13 @@ description: >
implements its own property get method
---*/
-function callbackfn(val, idx, obj) {
- return obj.length === 2;
-}
+ function callbackfn(val, idx, obj) {
+ return obj.length === 2;
+ }
-var func = function(a, b) {
- var newArr = Array.prototype.filter.call(arguments, callbackfn);
- return newArr.length === 2;
-};
+ var func = function (a, b) {
+ var newArr = Array.prototype.filter.call(arguments, callbackfn);
+ return newArr.length === 2;
+ };
assert(func(12, 11), 'func(12, 11) !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-18.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-18.js
index c13206d98..6850f6d21 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-18.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-18.js
@@ -9,12 +9,12 @@ description: >
its own property get method
---*/
-function callbackfn(val, idx, obj) {
- return obj.length === 3;
-}
+ function callbackfn(val, idx, obj) {
+ return obj.length === 3;
+ }
-var str = new String("012");
+ var str = new String("012");
-var newArr = Array.prototype.filter.call(str, callbackfn);
+ var newArr = Array.prototype.filter.call(str, callbackfn);
assert.sameValue(newArr.length, 3, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-19.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-19.js
index 9bd2ef1c6..5f12746ae 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-19.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-19.js
@@ -9,17 +9,17 @@ description: >
implements its own property get method
---*/
-function callbackfn(val, idx, obj) {
- return obj.length === 2;
-}
+ function callbackfn(val, idx, obj) {
+ return obj.length === 2;
+ }
-var fun = function(a, b) {
- return a + b;
-};
-fun[0] = 12;
-fun[1] = 11;
-fun[2] = 9;
+ var fun = function (a, b) {
+ return a + b;
+ };
+ fun[0] = 12;
+ fun[1] = 11;
+ fun[2] = 9;
-var newArr = Array.prototype.filter.call(fun, callbackfn);
+ var newArr = Array.prototype.filter.call(fun, callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-2.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-2.js
index 8e071501c..f8f1b84d4 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-2.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-2.js
@@ -7,10 +7,10 @@ es5id: 15.4.4.20-2-2
description: Array.prototype.filter - 'length' is own data property on an Array
---*/
-function callbackfn(val, idx, obj) {
- return obj.length === 2;
-}
+ function callbackfn(val, idx, obj) {
+ return obj.length === 2;
+ }
-var newArr = [12, 11].filter(callbackfn);
+ var newArr = [12, 11].filter(callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-3.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-3.js
index 4d9c4e414..5e74fafc6 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-3.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-3.js
@@ -9,23 +9,21 @@ description: >
an own data property that overrides an inherited data property
---*/
-function callbackfn(val, idx, obj) {
- return obj.length === 2;
-}
+ function callbackfn(val, idx, obj) {
+ return obj.length === 2;
+ }
-var proto = {
- length: 3
-};
+ var proto = { length: 3 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child.length = 2;
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
+ var child = new Con();
+ child.length = 2;
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
-var newArr = Array.prototype.filter.call(child, callbackfn);
+ var newArr = Array.prototype.filter.call(child, callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-4.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-4.js
index 73ecc9ed1..563ef3bfc 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-4.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-4.js
@@ -9,14 +9,14 @@ description: >
overrides an inherited data property on an Array
---*/
-var arrProtoLen;
+ var arrProtoLen;
-function callbackfn(val, idx, obj) {
- return obj.length === 2;
-}
+ function callbackfn(val, idx, obj) {
+ return obj.length === 2;
+ }
-arrProtoLen = Array.prototype.length;
-Array.prototype.length = 0;
-var newArr = [12, 11].filter(callbackfn);
+ arrProtoLen = Array.prototype.length;
+ Array.prototype.length = 0;
+ var newArr = [12, 11].filter(callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-5.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-5.js
index e165dbc06..ca4c2d21e 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-5.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-5.js
@@ -9,31 +9,31 @@ description: >
data property that overrides an inherited accessor property
---*/
-function callbackfn(val, idx, obj) {
- return obj.length === 2;
-}
-
-var proto = {};
-
-Object.defineProperty(proto, "length", {
- get: function() {
- return 3;
- },
- configurable: true
-});
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-Object.defineProperty(child, "length", {
- value: 2,
- configurable: true
-});
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
-
-var newArr = Array.prototype.filter.call(child, callbackfn);
+ function callbackfn(val, idx, obj) {
+ return obj.length === 2;
+ }
+
+ var proto = {};
+
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 3;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ Object.defineProperty(child, "length", {
+ value: 2,
+ configurable: true
+ });
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
+
+ var newArr = Array.prototype.filter.call(child, callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-6.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-6.js
index 9a8144cfc..6c754b15b 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-6.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-6.js
@@ -9,22 +9,20 @@ description: >
an inherited data property
---*/
-function callbackfn(val, idx, obj) {
- return obj.length === 2;
-}
+ function callbackfn(val, idx, obj) {
+ return obj.length === 2;
+ }
-var proto = {
- length: 2
-};
+ var proto = { length: 2 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
+ var child = new Con();
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
-var newArr = Array.prototype.filter.call(child, callbackfn);
+ var newArr = Array.prototype.filter.call(child, callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-7.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-7.js
index ba40ddd23..103cdc888 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-7.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-7.js
@@ -9,23 +9,23 @@ description: >
an own accessor property
---*/
-function callbackfn(val, idx, obj) {
- return obj.length === 2;
-}
+ function callbackfn(val, idx, obj) {
+ return obj.length === 2;
+ }
-var obj = {};
+ var obj = {};
-Object.defineProperty(obj, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-obj[0] = 12;
-obj[1] = 11;
-obj[2] = 9;
+ obj[0] = 12;
+ obj[1] = 11;
+ obj[2] = 9;
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-8.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-8.js
index e57b21228..25b022b3a 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-8.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-8.js
@@ -9,30 +9,28 @@ description: >
own accessor property that overrides an inherited data property
---*/
-function callbackfn(val, idx, obj) {
- return obj.length === 2;
-}
+ function callbackfn(val, idx, obj) {
+ return obj.length === 2;
+ }
-var proto = {
- length: 3
-};
+ var proto = { length: 3 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
+ var child = new Con();
-Object.defineProperty(child, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(child, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
-var newArr = Array.prototype.filter.call(child, callbackfn);
+ var newArr = Array.prototype.filter.call(child, callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-9.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-9.js
index 684b01b09..4c37454ba 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-9.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-9.js
@@ -10,35 +10,35 @@ description: >
property
---*/
-function callbackfn(val, idx, obj) {
- return obj.length === 2;
-}
+ function callbackfn(val, idx, obj) {
+ return obj.length === 2;
+ }
-var proto = {};
+ var proto = {};
-Object.defineProperty(proto, "length", {
- get: function() {
- return 3;
- },
- configurable: true
-});
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 3;
+ },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
+ var child = new Con();
-Object.defineProperty(child, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(child, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
-var newArr = Array.prototype.filter.call(child, callbackfn);
+ var newArr = Array.prototype.filter.call(child, callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-1.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-1.js
index be48ea578..17cdc5f73 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-1.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-1.js
@@ -7,19 +7,14 @@ es5id: 15.4.4.20-3-1
description: Array.prototype.filter - value of 'length' is undefined
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return true;
+ }
-function callbackfn(val, idx, obj) {
- accessed = true;
- return true;
-}
-
-var obj = {
- 0: 0,
- 1: 1,
- length: undefined
-};
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var obj = { 0: 0, 1: 1, length: undefined };
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-10.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-10.js
index 8ef7f0477..63b2c4a18 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-10.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-10.js
@@ -9,19 +9,15 @@ description: >
NaN)
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return true;
+ }
-function callbackfn(val, idx, obj) {
- accessed = true;
- return true;
-}
+ var obj = { 0: 9, length: NaN };
-var obj = {
- 0: 9,
- length: NaN
-};
-
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-11.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-11.js
index 3bedc20ed..e495a64db 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-11.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-11.js
@@ -9,17 +9,13 @@ description: >
positive number
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: "2"
-};
+ var obj = { 1: 11, 2: 9, length: "2" };
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-12.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-12.js
index bab103450..c66292a88 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-12.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-12.js
@@ -9,17 +9,13 @@ description: >
negative number
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: "-4294967294"
-};
+ var obj = { 1: 11, 2: 9, length: "-4294967294" };
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
assert.sameValue(newArr[0], undefined, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-13.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-13.js
index 01d01c256..859ef4667 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-13.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-13.js
@@ -9,17 +9,13 @@ description: >
number
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: "2.5"
-};
+ var obj = { 1: 11, 2: 9, length: "2.5" };
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-14.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-14.js
index 03bcf8a29..03193102f 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-14.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-14.js
@@ -7,19 +7,16 @@ es5id: 15.4.4.20-3-14
description: Array.prototype.filter - 'length' is a string containing -Infinity
---*/
-var accessed2 = false;
+ var accessed2 = false;
-function callbackfn2(val, idx, obj) {
- accessed2 = true;
- return true;
-}
+ function callbackfn2(val, idx, obj) {
+ accessed2 = true;
+ return true;
+ }
-var obj2 = {
- 0: 9,
- length: "-Infinity"
-};
+ var obj2 = { 0: 9, length: "-Infinity" };
-var newArr2 = Array.prototype.filter.call(obj2, callbackfn2);
+ var newArr2 = Array.prototype.filter.call(obj2, callbackfn2);
assert.sameValue(accessed2, false, 'accessed2');
assert.sameValue(newArr2.length, 0, 'newArr2.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-15.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-15.js
index 7cc2cb5f8..e5be122e8 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-15.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-15.js
@@ -9,17 +9,13 @@ description: >
exponential number
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: "2E0"
-};
+ var obj = { 1: 11, 2: 9, length: "2E0" };
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-16.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-16.js
index 1e447f105..286093b8b 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-16.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-16.js
@@ -9,17 +9,13 @@ description: >
number
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: "0x0002"
-};
+ var obj = { 1: 11, 2: 9, length: "0x0002" };
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-17.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-17.js
index a3c2bf7fa..84b64d402 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-17.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-17.js
@@ -9,17 +9,13 @@ description: >
with leading zeros
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: "0002.00"
-};
+ var obj = { 1: 11, 2: 9, length: "0002.00" };
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-18.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-18.js
index b42c4c5af..de3c43f57 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-18.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-18.js
@@ -9,19 +9,15 @@ description: >
convert to a number
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return true;
+ }
-function callbackfn(val, idx, obj) {
- accessed = true;
- return true;
-}
+ var obj = { 0: 9, length: "asdf!_" };
-var obj = {
- 0: 9,
- length: "asdf!_"
-};
-
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(accessed, false, 'accessed');
assert.sameValue(newArr.length, 0, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-19.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-19.js
index 11ba06792..f1ac554ec 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-19.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-19.js
@@ -9,21 +9,21 @@ description: >
an own toString method.
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: {
- toString: function() {
- return '2';
- }
- }
-};
+ var obj = {
+ 1: 11,
+ 2: 9,
+ length: {
+ toString: function () {
+ return '2';
+ }
+ }
+ };
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-2.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-2.js
index 4c87b6e3d..3e348991d 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-2.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-2.js
@@ -9,16 +9,12 @@ description: >
is 1 (length overridden to true(type conversion))
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var obj = {
- 0: 11,
- 1: 9,
- length: true
-};
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var obj = { 0: 11, 1: 9, length: true };
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-20.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-20.js
index 7b7b93e5b..c8e77de72 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-20.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-20.js
@@ -9,21 +9,21 @@ description: >
an own valueOf method.
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: {
- valueOf: function() {
- return 2;
- }
- }
-};
+ var obj = {
+ 1: 11,
+ 2: 9,
+ length: {
+ valueOf: function () {
+ return 2;
+ }
+ }
+ };
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-21.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-21.js
index c65ba9ca5..01fc372d5 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-21.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-21.js
@@ -10,29 +10,29 @@ description: >
returns a string
---*/
-var firstStepOccured = false;
-var secondStepOccured = false;
+ var firstStepOccured = false;
+ var secondStepOccured = false;
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: {
- valueOf: function() {
- firstStepOccured = true;
- return {};
- },
- toString: function() {
- secondStepOccured = true;
- return '2';
- }
- }
-};
+ var obj = {
+ 1: 11,
+ 2: 9,
+ length: {
+ valueOf: function () {
+ firstStepOccured = true;
+ return {};
+ },
+ toString: function () {
+ secondStepOccured = true;
+ return '2';
+ }
+ }
+ };
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-22.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-22.js
index 0e4bf3671..a6463ad6a 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-22.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-22.js
@@ -10,32 +10,32 @@ description: >
primitive values
---*/
-var accessed = false;
-var firstStepOccured = false;
-var secondStepOccured = false;
+ var accessed = false;
+ var firstStepOccured = false;
+ var secondStepOccured = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return true;
+ }
-var obj = {
- 1: 11,
- 2: 12,
+ var obj = {
+ 1: 11,
+ 2: 12,
- length: {
- valueOf: function() {
- firstStepOccured = true;
- return {};
- },
- toString: function() {
- secondStepOccured = true;
- return {};
- }
- }
-};
+ length: {
+ valueOf: function () {
+ firstStepOccured = true;
+ return {};
+ },
+ toString: function () {
+ secondStepOccured = true;
+ return {};
+ }
+ }
+ };
assert.throws(TypeError, function() {
- Array.prototype.filter.call(obj, callbackfn);
+ Array.prototype.filter.call(obj, callbackfn);
});
assert.sameValue(accessed, false, 'accessed');
assert(firstStepOccured, 'firstStepOccured !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-23.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-23.js
index c02b3f301..f2e7b2e45 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-23.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-23.js
@@ -9,37 +9,37 @@ description: >
is an object with an own toString and inherited valueOf methods
---*/
-var valueOfAccessed = false;
-var toStringAccessed = false;
+ var valueOfAccessed = false;
+ var toStringAccessed = false;
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var proto = {
- valueOf: function() {
- valueOfAccessed = true;
- return 2;
- }
-};
+ var proto = {
+ valueOf: function () {
+ valueOfAccessed = true;
+ return 2;
+ }
+ };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
+ var child = new Con();
-child.toString = function() {
- toStringAccessed = true;
- return '1';
-};
+ child.toString = function () {
+ toStringAccessed = true;
+ return '1';
+ };
-var obj = {
- 1: 11,
- 2: 9,
- length: child
-};
+ var obj = {
+ 1: 11,
+ 2: 9,
+ length: child
+ };
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-24.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-24.js
index a2cc49a04..31b87b47d 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-24.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-24.js
@@ -9,17 +9,17 @@ description: >
non-integer, ensure truncation occurs in the proper direction
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: 2.685
-};
+ var obj = {
+ 1: 11,
+ 2: 9,
+ length: 2.685
+ };
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-25.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-25.js
index f32cac694..3f8b1ffd8 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-25.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-25.js
@@ -9,17 +9,17 @@ description: >
non-integer
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: -4294967294.5
-};
+ var obj = {
+ 1: 11,
+ 2: 9,
+ length: -4294967294.5
+ };
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
assert.sameValue(newArr[0], undefined, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-3.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-3.js
index 53fd3ab2c..9b1250407 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-3.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-3.js
@@ -7,18 +7,14 @@ es5id: 15.4.4.20-3-3
description: Array.prototype.filter - value of 'length' is a number (value is 0)
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return true;
+ }
-function callbackfn(val, idx, obj) {
- accessed = true;
- return true;
-}
-
-var obj = {
- 0: 11,
- length: 0
-};
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var obj = { 0: 11, length: 0 };
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-4.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-4.js
index d0afc2288..a2a73f274 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-4.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-4.js
@@ -9,18 +9,14 @@ description: >
+0)
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return true;
+ }
-function callbackfn(val, idx, obj) {
- accessed = true;
- return true;
-}
-
-var obj = {
- 0: 11,
- length: +0
-};
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var obj = { 0: 11, length: +0 };
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-5.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-5.js
index 675a41cb2..2fa9d19cf 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-5.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-5.js
@@ -9,18 +9,14 @@ description: >
-0)
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return true;
+ }
-function callbackfn(val, idx, obj) {
- accessed = true;
- return true;
-}
-
-var obj = {
- 0: 11,
- length: -0
-};
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var obj = { 0: 11, length: -0 };
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-6.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-6.js
index 44e5a2aa1..dd9b8839b 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-6.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-6.js
@@ -9,17 +9,13 @@ description: >
positive)
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: 2
-};
+ var obj = { 1: 11, 2: 9, length: 2 };
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-7.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-7.js
index b9003218f..28d540592 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-7.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-7.js
@@ -9,16 +9,12 @@ description: >
negative)
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: -4294967294
-};
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var obj = { 1: 11, 2: 9, length: -4294967294 };
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
assert.sameValue(newArr[0], undefined, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-9.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-9.js
index 149c2011a..a31259a2e 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-9.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-9.js
@@ -9,19 +9,15 @@ description: >
-Infinity)
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return true;
+ }
-function callbackfn(val, idx, obj) {
- accessed = true;
- return true;
-}
+ var obj = { 0: 9, length: -Infinity };
-var obj = {
- 0: 9,
- length: -Infinity
-};
-
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-4-1.js b/test/built-ins/Array/prototype/filter/15.4.4.20-4-1.js
index ac03e0fc9..5db65663d 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-4-1.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-4-1.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.20-4-1
description: Array.prototype.filter throws TypeError if callbackfn is undefined
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.filter();
+ arr.filter();
});
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-4-10.js b/test/built-ins/Array/prototype/filter/15.4.4.20-4-10.js
index bf2dabe14..39f1abd7b 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-4-10.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-4-10.js
@@ -9,18 +9,15 @@ description: >
was thrown by step 2
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-Object.defineProperty(obj, "length", {
- get: function() {
- throw new Test262Error();
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ throw new Test262Error();
+ },
+ configurable: true
+ });
assert.throws(Test262Error, function() {
- Array.prototype.filter.call(obj, undefined);
+ Array.prototype.filter.call(obj, undefined);
});
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-4-11.js b/test/built-ins/Array/prototype/filter/15.4.4.20-4-11.js
index 6cefc8ce1..0eabd02ec 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-4-11.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-4-11.js
@@ -9,22 +9,19 @@ description: >
was thrown by step 3
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-Object.defineProperty(obj, "length", {
- get: function() {
- return {
- toString: function() {
- throw new Test262Error();
- }
- };
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ toString: function () {
+ throw new Test262Error();
+ }
+ };
+ },
+ configurable: true
+ });
assert.throws(Test262Error, function() {
- Array.prototype.filter.call(obj, undefined);
+ Array.prototype.filter.call(obj, undefined);
});
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-4-12.js b/test/built-ins/Array/prototype/filter/15.4.4.20-4-12.js
index dce334c24..de1ad7023 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-4-12.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-4-12.js
@@ -7,14 +7,14 @@ es5id: 15.4.4.20-4-12
description: Array.prototype.filter - 'callbackfn' is a function
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- return val === 9;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ return val === 9;
+ }
+ return false;
+ }
-var newArr = [11, 9].filter(callbackfn);
+ var newArr = [11, 9].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 9, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-4-15.js b/test/built-ins/Array/prototype/filter/15.4.4.20-4-15.js
index 70d48daa7..af35f5776 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-4-15.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-4-15.js
@@ -9,27 +9,25 @@ description: >
passing undefined for callbackfn
---*/
-var obj = {
- 10: 10
-};
-var lengthAccessed = false;
-var loopAccessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- lengthAccessed = true;
- return 20;
- },
- configurable: true
-});
-Object.defineProperty(obj, "0", {
- get: function() {
- loopAccessed = true;
- return 10;
- },
- configurable: true
-});
+ var obj = { 10: 10 };
+ var lengthAccessed = false;
+ var loopAccessed = false;
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ lengthAccessed = true;
+ return 20;
+ },
+ configurable: true
+ });
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ loopAccessed = true;
+ return 10;
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.filter.call(obj);
+ Array.prototype.filter.call(obj);
});
assert(lengthAccessed, 'lengthAccessed !== true');
assert.sameValue(loopAccessed, false, 'loopAccessed');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-4-2.js b/test/built-ins/Array/prototype/filter/15.4.4.20-4-2.js
index 511003bbf..07add5f00 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-4-2.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-4-2.js
@@ -9,7 +9,7 @@ description: >
unreferenced
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(ReferenceError, function() {
- arr.filter(foo);
+ arr.filter(foo);
});
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-4-3.js b/test/built-ins/Array/prototype/filter/15.4.4.20-4-3.js
index 0e557696d..a56dd4e8d 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-4-3.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-4-3.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.20-4-3
description: Array.prototype.filter throws TypeError if callbackfn is null
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.filter(null);
+ arr.filter(null);
});
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-4-4.js b/test/built-ins/Array/prototype/filter/15.4.4.20-4-4.js
index d49c8355c..6e9370835 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-4-4.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-4-4.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.20-4-4
description: Array.prototype.filter throws TypeError if callbackfn is boolean
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.filter(true);
+ arr.filter(true);
});
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-4-5.js b/test/built-ins/Array/prototype/filter/15.4.4.20-4-5.js
index d5a3b5289..6fedc6587 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-4-5.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-4-5.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.20-4-5
description: Array.prototype.filter throws TypeError if callbackfn is number
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.filter(5);
+ arr.filter(5);
});
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-4-6.js b/test/built-ins/Array/prototype/filter/15.4.4.20-4-6.js
index 5f9d1386b..cef7251b1 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-4-6.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-4-6.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.20-4-6
description: Array.prototype.filter throws TypeError if callbackfn is string
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.filter("abc");
+ arr.filter("abc");
});
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-4-7.js b/test/built-ins/Array/prototype/filter/15.4.4.20-4-7.js
index f9e425427..aa1240371 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-4-7.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-4-7.js
@@ -9,7 +9,7 @@ description: >
without [[Call]] internal method
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.filter(new Object());
+ arr.filter(new Object());
});
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-4-8.js b/test/built-ins/Array/prototype/filter/15.4.4.20-4-8.js
index cde11fbf2..fbd5396d8 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-4-8.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-4-8.js
@@ -9,21 +9,18 @@ description: >
visible when an exception occurs
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-var accessed = false;
+ var accessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- accessed = true;
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ accessed = true;
+ return 2;
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.filter.call(obj, null);
+ Array.prototype.filter.call(obj, null);
});
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-4-9.js b/test/built-ins/Array/prototype/filter/15.4.4.20-4-9.js
index 45ba29f89..c2e729577 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-4-9.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-4-9.js
@@ -9,25 +9,22 @@ description: >
visible when an exception occurs
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-var accessed = false;
+ var accessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- return {
- toString: function() {
- accessed = true;
- return "2";
- }
- };
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ toString: function () {
+ accessed = true;
+ return "2";
+ }
+ };
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.filter.call(obj, null);
+ Array.prototype.filter.call(obj, null);
});
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-1-s.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-1-s.js
index ebbd6c1a4..ce1ad3c7e 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-1-s.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-1-s.js
@@ -8,14 +8,14 @@ description: Array.prototype.filter - thisArg not passed to strict callbackfn
flags: [noStrict]
---*/
-var innerThisCorrect = false;
+ var innerThisCorrect = false;
-function callbackfn(val, idx, obj) {
- "use strict";
- innerThisCorrect = this === undefined;
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ "use strict";
+ innerThisCorrect = this===undefined;
+ return true;
+ }
-[1].filter(callbackfn);
+ [1].filter(callbackfn);
assert(innerThisCorrect, 'innerThisCorrect !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-1.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-1.js
index fe1b29057..96063ef48 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-1.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-1.js
@@ -9,14 +9,14 @@ flags: [noStrict]
---*/
(function() {
- this._15_4_4_20_5_1 = false;
- var _15_4_4_20_5_1 = true;
+ this._15_4_4_20_5_1 = false;
+ var _15_4_4_20_5_1 = true;
- function callbackfn(val, idx, obj) {
- return this._15_4_4_20_5_1;
- }
- var srcArr = [1];
- var resArr = srcArr.filter(callbackfn);
+ function callbackfn(val, idx, obj) {
+ return this._15_4_4_20_5_1;
+ }
+ var srcArr = [1];
+ var resArr = srcArr.filter(callbackfn);
- assert.sameValue(resArr.length, 0, 'resArr.length');
+assert.sameValue(resArr.length, 0, 'resArr.length');
})();
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-10.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-10.js
index a5afd4682..dff16966b 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-10.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-10.js
@@ -7,16 +7,16 @@ es5id: 15.4.4.20-5-10
description: Array.prototype.filter - Array Object can be used as thisArg
---*/
-var accessed = false;
-var objArray = new Array(10);
+ var accessed = false;
+ var objArray = new Array(10);
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this === objArray;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this === objArray;
+ }
-var newArr = [11].filter(callbackfn, objArray);
+ var newArr = [11].filter(callbackfn, objArray);
assert.sameValue(newArr[0], 11, 'newArr[0]');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-11.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-11.js
index 0ca6f9f66..93cc528d0 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-11.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-11.js
@@ -7,15 +7,15 @@ es5id: 15.4.4.20-5-11
description: Array.prototype.filter - String Object can be used as thisArg
---*/
-var accessed = false;
-var objString = new String();
+ var accessed = false;
+ var objString = new String();
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this === objString;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this === objString;
+ }
-var newArr = [11].filter(callbackfn, objString);
+ var newArr = [11].filter(callbackfn, objString);
assert.sameValue(newArr[0], 11, 'newArr[0]');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-12.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-12.js
index 2d7cef46d..d4dc45bda 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-12.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-12.js
@@ -7,15 +7,15 @@ es5id: 15.4.4.20-5-12
description: Array.prototype.filter - Boolean Object can be used as thisArg
---*/
-var accessed = false;
-var objBoolean = new Boolean();
+ var accessed = false;
+ var objBoolean = new Boolean();
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this === objBoolean;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this === objBoolean;
+ }
-var newArr = [11].filter(callbackfn, objBoolean);
+ var newArr = [11].filter(callbackfn, objBoolean);
assert.sameValue(newArr[0], 11, 'newArr[0]');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-13.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-13.js
index d5cb60c89..621f2def0 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-13.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-13.js
@@ -7,15 +7,15 @@ es5id: 15.4.4.20-5-13
description: Array.prototype.filter - Number Object can be used as thisArg
---*/
-var accessed = false;
-var objNumber = new Number();
+ var accessed = false;
+ var objNumber = new Number();
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this === objNumber;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this === objNumber;
+ }
-var newArr = [11].filter(callbackfn, objNumber);
+ var newArr = [11].filter(callbackfn, objNumber);
assert.sameValue(newArr[0], 11, 'newArr[0]');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-14.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-14.js
index e455d8d4c..195f95d29 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-14.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-14.js
@@ -7,14 +7,14 @@ es5id: 15.4.4.20-5-14
description: Array.prototype.filter - the Math object can be used as thisArg
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this === Math;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this === Math;
+ }
-var newArr = [11].filter(callbackfn, Math);
+ var newArr = [11].filter(callbackfn, Math);
assert.sameValue(newArr[0], 11, 'newArr[0]');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-15.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-15.js
index 596addb58..61cb77e50 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-15.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-15.js
@@ -7,16 +7,16 @@ es5id: 15.4.4.20-5-15
description: Array.prototype.filter - Date Object can be used as thisArg
---*/
-var accessed = false;
+ var accessed = false;
-var objDate = new Date();
+ var objDate = new Date();
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this === objDate;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this === objDate;
+ }
-var newArr = [11].filter(callbackfn, objDate);
+ var newArr = [11].filter(callbackfn, objDate);
assert.sameValue(newArr[0], 11, 'newArr[0]');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-16.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-16.js
index beafca6fd..d7b6b9e23 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-16.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-16.js
@@ -7,16 +7,16 @@ es5id: 15.4.4.20-5-16
description: Array.prototype.filter - RegExp Object can be used as thisArg
---*/
-var accessed = false;
+ var accessed = false;
-var objRegExp = new RegExp();
+ var objRegExp = new RegExp();
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this === objRegExp;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this === objRegExp;
+ }
-var newArr = [11].filter(callbackfn, objRegExp);
+ var newArr = [11].filter(callbackfn, objRegExp);
assert.sameValue(newArr[0], 11, 'newArr[0]');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-17.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-17.js
index 569a7d691..b326d202c 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-17.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-17.js
@@ -7,14 +7,14 @@ es5id: 15.4.4.20-5-17
description: Array.prototype.filter - the JSON object can be used as thisArg
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this === JSON;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this === JSON;
+ }
-var newArr = [11].filter(callbackfn, JSON);
+ var newArr = [11].filter(callbackfn, JSON);
assert.sameValue(newArr[0], 11, 'newArr[0]');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-18.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-18.js
index 03516a935..98b455631 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-18.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-18.js
@@ -7,15 +7,15 @@ es5id: 15.4.4.20-5-18
description: Array.prototype.filter - Error Object can be used as thisArg
---*/
-var accessed = false;
-var objError = new RangeError();
+ var accessed = false;
+ var objError = new RangeError();
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this === objError;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this === objError;
+ }
-var newArr = [11].filter(callbackfn, objError);
+ var newArr = [11].filter(callbackfn, objError);
assert.sameValue(newArr[0], 11, 'newArr[0]');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-19.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-19.js
index 16869222c..0c69ec037 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-19.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-19.js
@@ -9,19 +9,19 @@ description: >
thisArg
---*/
-var accessed = false;
-var arg;
+ var accessed = false;
+ var arg;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this === arg;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this === arg;
+ }
-(function fun() {
- arg = arguments;
-}(1, 2, 3));
+ (function fun() {
+ arg = arguments;
+ }(1, 2, 3));
-var newArr = [11].filter(callbackfn, arg);
+ var newArr = [11].filter(callbackfn, arg);
assert.sameValue(newArr[0], 11, 'newArr[0]');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-2.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-2.js
index 01a3a94d6..0ef3ca82e 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-2.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-2.js
@@ -7,16 +7,15 @@ es5id: 15.4.4.20-5-2
description: Array.prototype.filter - thisArg is Object
---*/
-var res = false;
-var o = new Object();
-o.res = true;
+ var res = false;
+ var o = new Object();
+ o.res = true;
+ function callbackfn(val, idx, obj)
+ {
+ return this.res;
+ }
-function callbackfn(val, idx, obj)
-{
- return this.res;
-}
-
-var srcArr = [1];
-var resArr = srcArr.filter(callbackfn, o);
+ var srcArr = [1];
+ var resArr = srcArr.filter(callbackfn,o);
assert.sameValue(resArr.length, 1, 'resArr.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-21.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-21.js
index 1e1230bc4..bbb9911ac 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-21.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-21.js
@@ -9,14 +9,14 @@ description: Array.prototype.filter - the global object can be used as thisArg
var global = this;
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this === global;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this === global;
+ }
-var newArr = [11].filter(callbackfn, global);
+ var newArr = [11].filter(callbackfn, global);
assert.sameValue(newArr[0], 11, 'newArr[0]');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-22.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-22.js
index b228ea16c..61e3644cf 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-22.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-22.js
@@ -7,14 +7,14 @@ es5id: 15.4.4.20-5-22
description: Array.prototype.filter - boolean primitive can be used as thisArg
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this.valueOf() === false;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this.valueOf() === false;
+ }
-var newArr = [11].filter(callbackfn, false);
+ var newArr = [11].filter(callbackfn, false);
assert.sameValue(newArr[0], 11, 'newArr[0]');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-23.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-23.js
index b7435cbf2..d07c4c603 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-23.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-23.js
@@ -7,14 +7,14 @@ es5id: 15.4.4.20-5-23
description: Array.prototype.filter - number primitive can be used as thisArg
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this.valueOf() === 101;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this.valueOf() === 101;
+ }
-var newArr = [11].filter(callbackfn, 101);
+ var newArr = [11].filter(callbackfn, 101);
assert.sameValue(newArr[0], 11, 'newArr[0]');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-24.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-24.js
index ec99f9b2b..ac195d2b1 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-24.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-24.js
@@ -7,14 +7,14 @@ es5id: 15.4.4.20-5-24
description: Array.prototype.filter - string primitive can be used as thisArg
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this.valueOf() === "abc";
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this.valueOf() === "abc";
+ }
-var newArr = [11].filter(callbackfn, "abc");
+ var newArr = [11].filter(callbackfn, "abc");
assert.sameValue(newArr[0], 11, 'newArr[0]');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-27.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-27.js
index 691c695e7..06ea3908d 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-27.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-27.js
@@ -9,6 +9,6 @@ description: >
is the returned array
---*/
-var newArr = [11].filter(function() {});
+ var newArr = [11].filter(function () { });
assert(Array.isArray(newArr), 'Array.isArray(newArr) !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-28.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-28.js
index 676b5f39b..0f41a07e4 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-28.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-28.js
@@ -7,6 +7,6 @@ es5id: 15.4.4.20-5-28
description: Array.prototype.filter - the returned array is instanceof Array
---*/
-var newArr = [11].filter(function() {});
+ var newArr = [11].filter(function () { });
assert(newArr instanceof Array, 'newArr instanceof Array !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-29.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-29.js
index 88656b813..49b049b6f 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-29.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-29.js
@@ -7,6 +7,6 @@ es5id: 15.4.4.20-5-29
description: Array.prototype.filter - returns an array whose length is 0
---*/
-var newArr = [11].filter(function() {});
+ var newArr = [11].filter(function () { });
assert.sameValue(newArr.length, 0, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-3.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-3.js
index 4ab8cdc1c..a9eb5bdd9 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-3.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-3.js
@@ -7,16 +7,15 @@ es5id: 15.4.4.20-5-3
description: Array.prototype.filter - thisArg is Array
---*/
-var res = false;
-var a = new Array();
-a.res = true;
+ var res = false;
+ var a = new Array();
+ a.res = true;
+ function callbackfn(val, idx, obj)
+ {
+ return this.res;
+ }
-function callbackfn(val, idx, obj)
-{
- return this.res;
-}
-
-var srcArr = [1];
-var resArr = srcArr.filter(callbackfn, a);
+ var srcArr = [1];
+ var resArr = srcArr.filter(callbackfn,a);
assert.sameValue(resArr.length, 1, 'resArr.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-30.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-30.js
index 8a3fb876f..19311b2ae 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-30.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-30.js
@@ -8,16 +8,16 @@ description: Array.prototype.filter - thisArg not passed
flags: [noStrict]
---*/
-function innerObj() {
- this._15_4_4_20_5_30 = true;
- var _15_4_4_20_5_30 = false;
+ function innerObj() {
+ this._15_4_4_20_5_30 = true;
+ var _15_4_4_20_5_30 = false;
- function callbackfn(val, idx, obj) {
- return this._15_4_4_20_5_30;
- }
- var srcArr = [1];
- var resArr = srcArr.filter(callbackfn);
- this.retVal = resArr.length === 0;
-}
+ function callbackfn(val, idx, obj) {
+ return this._15_4_4_20_5_30;
+ }
+ var srcArr = [1];
+ var resArr = srcArr.filter(callbackfn);
+ this.retVal = resArr.length === 0;
+ }
assert(new innerObj().retVal, 'new innerObj().retVal !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-4.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-4.js
index 08789d8e3..e4c6b1b24 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-4.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-4.js
@@ -9,18 +9,17 @@ description: >
template(prototype)
---*/
-var res = false;
+ var res = false;
+ function callbackfn(val, idx, obj)
+ {
+ return this.res;
+ }
-function callbackfn(val, idx, obj)
-{
- return this.res;
-}
+ function foo(){}
+ foo.prototype.res = true;
+ var f = new foo();
-function foo() {}
-foo.prototype.res = true;
-var f = new foo();
-
-var srcArr = [1];
-var resArr = srcArr.filter(callbackfn, f);
+ var srcArr = [1];
+ var resArr = srcArr.filter(callbackfn,f);
assert.sameValue(resArr.length, 1, 'resArr.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-5.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-5.js
index a024bdc32..a46d82882 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-5.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-5.js
@@ -7,18 +7,17 @@ es5id: 15.4.4.20-5-5
description: Array.prototype.filter - thisArg is object from object template
---*/
-var res = false;
+ var res = false;
+ function callbackfn(val, idx, obj)
+ {
+ return this.res;
+ }
-function callbackfn(val, idx, obj)
-{
- return this.res;
-}
+ function foo(){}
+ var f = new foo();
+ f.res = true;
-function foo() {}
-var f = new foo();
-f.res = true;
-
-var srcArr = [1];
-var resArr = srcArr.filter(callbackfn, f);
+ var srcArr = [1];
+ var resArr = srcArr.filter(callbackfn,f);
assert.sameValue(resArr.length, 1, 'resArr.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-6.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-6.js
index 25fa96c97..a76f146d6 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-6.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-6.js
@@ -7,17 +7,16 @@ es5id: 15.4.4.20-5-6
description: Array.prototype.filter - thisArg is function
---*/
-var res = false;
+ var res = false;
+ function callbackfn(val, idx, obj)
+ {
+ return this.res;
+ }
-function callbackfn(val, idx, obj)
-{
- return this.res;
-}
+ function foo(){}
+ foo.res = true;
-function foo() {}
-foo.res = true;
-
-var srcArr = [1];
-var resArr = srcArr.filter(callbackfn, foo);
+ var srcArr = [1];
+ var resArr = srcArr.filter(callbackfn,foo);
assert.sameValue(resArr.length, 1, 'resArr.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-7.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-7.js
index 7429c85bc..7563712c2 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-7.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-7.js
@@ -7,14 +7,14 @@ es5id: 15.4.4.20-5-7
description: Array.prototype.filter - built-in functions can be used as thisArg
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this === eval;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this === eval;
+ }
-var newArr = [11].filter(callbackfn, eval);
+ var newArr = [11].filter(callbackfn, eval);
assert.sameValue(newArr[0], 11, 'newArr[0]');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-9.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-9.js
index 9ab52aa3e..154d0bbdb 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-9.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-9.js
@@ -7,15 +7,15 @@ es5id: 15.4.4.20-5-9
description: Array.prototype.filter - Function Object can be used as thisArg
---*/
-var accessed = false;
-var objFunction = function() {};
+ var accessed = false;
+ var objFunction = function () { };
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this === objFunction;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this === objFunction;
+ }
-var newArr = [11].filter(callbackfn, objFunction);
+ var newArr = [11].filter(callbackfn, objFunction);
assert.sameValue(newArr[0], 11, 'newArr[0]');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-6-1.js b/test/built-ins/Array/prototype/filter/15.4.4.20-6-1.js
index 719c1490e..aa434d235 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-6-1.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-6-1.js
@@ -9,8 +9,8 @@ description: >
(empty array)
---*/
-function cb() {}
-var a = [].filter(cb);
+ function cb(){}
+ var a = [].filter(cb);
assert(Array.isArray(a), 'Array.isArray(a) !== true');
assert.sameValue(a.length, 0, 'a.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-6-2.js b/test/built-ins/Array/prototype/filter/15.4.4.20-6-2.js
index 65a07c7a8..a2deb91e5 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-6-2.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-6-2.js
@@ -9,14 +9,13 @@ description: >
(subclassed Array, length overridden to null (type conversion))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = null;
-function foo() {}
-var f = new foo();
-f.length = null;
-
-function cb() {}
-var a = f.filter(cb);
+ function cb(){}
+ var a = f.filter(cb);
assert(Array.isArray(a), 'Array.isArray(a) !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-6-3.js b/test/built-ins/Array/prototype/filter/15.4.4.20-6-3.js
index 4e1742878..5da697fe2 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-6-3.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-6-3.js
@@ -9,14 +9,13 @@ description: >
(subclassed Array, length overridden to false (type conversion))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = false;
-function foo() {}
-var f = new foo();
-f.length = false;
-
-function cb() {}
-var a = f.filter(cb);
+ function cb(){}
+ var a = f.filter(cb);
assert(Array.isArray(a), 'Array.isArray(a) !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-6-4.js b/test/built-ins/Array/prototype/filter/15.4.4.20-6-4.js
index 72579c85e..88d755df8 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-6-4.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-6-4.js
@@ -9,14 +9,13 @@ description: >
(subclassed Array, length overridden to 0 (type conversion))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = 0;
-function foo() {}
-var f = new foo();
-f.length = 0;
-
-function cb() {}
-var a = f.filter(cb);
+ function cb(){}
+ var a = f.filter(cb);
assert(Array.isArray(a), 'Array.isArray(a) !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-6-5.js b/test/built-ins/Array/prototype/filter/15.4.4.20-6-5.js
index 6209e7107..71f4dc489 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-6-5.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-6-5.js
@@ -9,14 +9,13 @@ description: >
(subclassed Array, length overridden to '0' (type conversion))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = '0';
-function foo() {}
-var f = new foo();
-f.length = '0';
-
-function cb() {}
-var a = f.filter(cb);
+ function cb(){}
+ var a = f.filter(cb);
assert(Array.isArray(a), 'Array.isArray(a) !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-6-6.js b/test/built-ins/Array/prototype/filter/15.4.4.20-6-6.js
index 0d40729d1..dad709203 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-6-6.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-6-6.js
@@ -9,20 +9,15 @@ description: >
(subclassed Array, length overridden with obj with valueOf)
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ var o = { valueOf: function () { return 0;}};
+ f.length = o;
-var o = {
- valueOf: function() {
- return 0;
- }
-};
-f.length = o;
-
-function cb() {}
-var a = f.filter(cb);
+ function cb(){}
+ var a = f.filter(cb);
assert(Array.isArray(a), 'Array.isArray(a) !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-6-7.js b/test/built-ins/Array/prototype/filter/15.4.4.20-6-7.js
index b212e2511..a778ad888 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-6-7.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-6-7.js
@@ -10,26 +10,21 @@ description: >
(toString))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ var o = { toString: function () { return '0';}};
+ f.length = o;
-var o = {
- toString: function() {
- return '0';
- }
-};
-f.length = o;
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
-// objects inherit the default valueOf method of the Object object;
-// that simply returns the itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-
-function cb() {}
-var a = f.filter(cb);
+ function cb(){}
+ var a = f.filter(cb);
assert(Array.isArray(a), 'Array.isArray(a) !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-6-8.js b/test/built-ins/Array/prototype/filter/15.4.4.20-6-8.js
index 851aa7a75..1fd2bb792 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-6-8.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-6-8.js
@@ -9,29 +9,28 @@ description: >
(subclassed Array, length overridden with []
---*/
-foo.prototype = new Array(1, 2, 3);
-
-function foo() {}
-var f = new foo();
-
-f.length = [];
-
-// objects inherit the default valueOf method of the Object object;
-// that simply returns the itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-//
-// The toString( ) method on Array converts the array elements to strings,
-// then returns the result of concatenating these strings, with commas in
-// between. An array with no elements converts to the empty string, which
-// converts to the number 0. If an array has a single element that is a
-// number n, the array converts to a string representation of n, which is
-// then converted back to n itself. If an array contains more than one element,
-// or if its one element is not a number, the array converts to NaN.
-
-function cb() {}
-var a = f.filter(cb);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+
+ f.length = [];
+
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
+ //
+ // The toString( ) method on Array converts the array elements to strings,
+ // then returns the result of concatenating these strings, with commas in
+ // between. An array with no elements converts to the empty string, which
+ // converts to the number 0. If an array has a single element that is a
+ // number n, the array converts to a string representation of n, which is
+ // then converted back to n itself. If an array contains more than one element,
+ // or if its one element is not a number, the array converts to NaN.
+
+ function cb(){}
+ var a = f.filter(cb);
assert(Array.isArray(a), 'Array.isArray(a) !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-1.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-1.js
index 265b9632b..97a92c2de 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-1.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-1.js
@@ -9,13 +9,13 @@ description: >
array after it is called
---*/
-function callbackfn(val, idx, obj) {
- srcArr[2] = 3;
- srcArr[5] = 6;
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ srcArr[2] = 3;
+ srcArr[5] = 6;
+ return true;
+ }
-var srcArr = [1, 2, , 4, 5];
-var resArr = srcArr.filter(callbackfn);
+ var srcArr = [1, 2, , 4, 5];
+ var resArr = srcArr.filter(callbackfn);
assert.sameValue(resArr.length, 5, 'resArr.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-2.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-2.js
index 34e27ba56..866e363fc 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-2.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-2.js
@@ -9,18 +9,18 @@ description: >
after it is called
---*/
-function callbackfn(val, idx, obj)
-{
- srcArr[2] = -1;
- srcArr[4] = -1;
- if (val > 0)
- return true;
- else
- return false;
-}
+ function callbackfn(val, idx, obj)
+ {
+ srcArr[2] = -1;
+ srcArr[4] = -1;
+ if(val > 0)
+ return true;
+ else
+ return false;
+ }
-var srcArr = [1, 2, 3, 4, 5];
-var resArr = srcArr.filter(callbackfn);
+ var srcArr = [1,2,3,4,5];
+ var resArr = srcArr.filter(callbackfn);
assert.sameValue(resArr.length, 3, 'resArr.length');
assert.sameValue(resArr[0], 1, 'resArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-3.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-3.js
index 5f14532d2..23cf770ca 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-3.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-3.js
@@ -9,18 +9,18 @@ description: >
after the call
---*/
-function callbackfn(val, idx, obj)
-{
- delete srcArr[2];
- delete srcArr[4];
- if (val > 0)
- return true;
- else
- return false;
-}
+ function callbackfn(val, idx, obj)
+ {
+ delete srcArr[2];
+ delete srcArr[4];
+ if(val > 0)
+ return true;
+ else
+ return false;
+ }
-var srcArr = [1, 2, 3, 4, 5];
-var resArr = srcArr.filter(callbackfn);
+ var srcArr = [1,2,3,4,5];
+ var resArr = srcArr.filter(callbackfn);
// two elements deleted
assert.sameValue(resArr.length, 3, 'resArr.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-4.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-4.js
index d3018ec04..9e817d779 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-4.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-4.js
@@ -9,13 +9,13 @@ description: >
Array.length is decreased
---*/
-function callbackfn(val, idx, obj)
-{
- srcArr.length = 2;
- return true;
-}
+ function callbackfn(val, idx, obj)
+ {
+ srcArr.length = 2;
+ return true;
+ }
-var srcArr = [1, 2, 3, 4, 6];
-var resArr = srcArr.filter(callbackfn);
+ var srcArr = [1,2,3,4,6];
+ var resArr = srcArr.filter(callbackfn);
assert.sameValue(resArr.length, 2, 'resArr.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-5.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-5.js
index 396126ea1..3165b934c 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-5.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-5.js
@@ -9,15 +9,15 @@ description: >
sparse array
---*/
-function callbackfn(val, idx, obj)
-{
- srcArr[1000] = 3;
- return true;
-}
+ function callbackfn(val, idx, obj)
+ {
+ srcArr[1000] = 3;
+ return true;
+ }
-var srcArr = new Array(10);
-srcArr[1] = 1;
-srcArr[2] = 2;
-var resArr = srcArr.filter(callbackfn);
+ var srcArr = new Array(10);
+ srcArr[1] = 1;
+ srcArr[2] = 2;
+ var resArr = srcArr.filter(callbackfn);
assert.sameValue(resArr.length, 2, 'resArr.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-6.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-6.js
index 0ef2af055..6bbe73b49 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-6.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-6.js
@@ -9,20 +9,20 @@ description: >
call when same index is also present in prototype
---*/
-function callbackfn(val, idx, obj)
-{
- delete srcArr[2];
- delete srcArr[4];
- if (val > 0)
- return true;
- else
- return false;
-}
+ function callbackfn(val, idx, obj)
+ {
+ delete srcArr[2];
+ delete srcArr[4];
+ if(val > 0)
+ return true;
+ else
+ return false;
+ }
-Array.prototype[4] = 5;
-var srcArr = [1, 2, 3, 4, 5];
-var resArr = srcArr.filter(callbackfn);
-delete Array.prototype[4];
+ Array.prototype[4] = 5;
+ var srcArr = [1,2,3,4,5];
+ var resArr = srcArr.filter(callbackfn);
+ delete Array.prototype[4];
// only one element deleted
assert.sameValue(resArr.length, 4, 'resArr.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-7.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-7.js
index accd42a60..6733d095d 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-7.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-7.js
@@ -9,18 +9,18 @@ description: >
deleted during the call
---*/
-var o = new Object();
-o.srcArr = [1, 2, 3, 4, 5];
+ var o = new Object();
+ o.srcArr = [1, 2, 3, 4, 5];
-function callbackfn(val, idx, obj) {
- delete o.srcArr;
- if (val > 0)
- return true;
- else
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ delete o.srcArr;
+ if (val > 0)
+ return true;
+ else
+ return false;
+ }
-var resArr = o.srcArr.filter(callbackfn);
+ var resArr = o.srcArr.filter(callbackfn);
assert.sameValue(resArr.length, 5, 'resArr.length');
assert.sameValue(typeof o.srcArr, "undefined", 'typeof o.srcArr');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-8.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-8.js
index c7fa048ef..6b119020e 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-8.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-8.js
@@ -7,20 +7,16 @@ es5id: 15.4.4.20-9-8
description: Array.prototype.filter - no observable effects occur if len is 0
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+ }
-var obj = {
- 0: 11,
- 1: 12,
- length: 0
-};
+ var obj = { 0: 11, 1: 12, length: 0 };
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(accessed, false, 'accessed');
assert.sameValue(obj.length, 0, 'obj.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-9.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-9.js
index e0bd841bf..bab2effd5 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-9.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-9.js
@@ -9,28 +9,24 @@ description: >
number of iterations
---*/
-var called = 0;
+ var called = 0;
-function callbackfn(val, idx, obj) {
- called++;
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ called++;
+ return true;
+ }
-var obj = {
- 1: 12,
- 2: 9,
- length: 2
-};
+ var obj = { 1: 12, 2: 9, length: 2 };
-Object.defineProperty(obj, "0", {
- get: function() {
- obj.length = 3;
- return 11;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ obj.length = 3;
+ return 11;
+ },
+ configurable: true
+ });
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
assert.sameValue(called, 2, 'called');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-1.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-1.js
index 899156930..db984c4cc 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-1.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-1.js
@@ -9,17 +9,16 @@ description: >
been assigned values
---*/
-var callCnt = 0;
+ var callCnt = 0;
+ function callbackfn(val, idx, obj)
+ {
+ callCnt++;
+ return false;
+ }
-function callbackfn(val, idx, obj)
-{
- callCnt++;
- return false;
-}
-
-var srcArr = new Array(10);
-srcArr[1] = undefined; //explicitly assigning a value
-var resArr = srcArr.filter(callbackfn);
+ var srcArr = new Array(10);
+ srcArr[1] = undefined; //explicitly assigning a value
+ var resArr = srcArr.filter(callbackfn);
assert.sameValue(resArr.length, 0, 'resArr.length');
assert.sameValue(callCnt, 1, 'callCnt');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-10.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-10.js
index d4724b924..c2c66ae19 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-10.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-10.js
@@ -9,24 +9,21 @@ description: >
prototype index property not to be visited on an Array-like Object
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
-var obj = {
- 2: 2,
- length: 20
-};
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
+ var obj = { 2: 2, length: 20 };
-Object.defineProperty(obj, "0", {
- get: function() {
- delete Object.prototype[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ delete Object.prototype[1];
+ return 0;
+ },
+ configurable: true
+ });
-Object.prototype[1] = 1;
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ Object.prototype[1] = 1;
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
assert.notSameValue(newArr[1], 1, 'newArr[1]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-11.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-11.js
index 39ea8f0a1..643554ab8 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-11.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-11.js
@@ -9,21 +9,21 @@ description: >
prototype index property not to be visited on an Array
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
-var arr = [0, , 2];
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
+ var arr = [0, , 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- delete Array.prototype[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete Array.prototype[1];
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype[1] = 1;
-var newArr = arr.filter(callbackfn);
+ Array.prototype[1] = 1;
+ var newArr = arr.filter(callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
assert.notSameValue(newArr[1], 1, 'newArr[1]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-12.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-12.js
index 7b914a1ee..18e21b40e 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-12.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-12.js
@@ -10,26 +10,21 @@ description: >
Array-like object
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
-var obj = {
- 0: 0,
- 1: 111,
- 2: 2,
- length: 10
-};
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
+ var obj = { 0: 0, 1: 111, 2: 2, length: 10 };
-Object.defineProperty(obj, "0", {
- get: function() {
- delete obj[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ delete obj[1];
+ return 0;
+ },
+ configurable: true
+ });
-Object.prototype[1] = 1;
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ Object.prototype[1] = 1;
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 3, 'newArr.length');
assert.sameValue(newArr[1], 1, 'newArr[1]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-13.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-13.js
index 204e94c66..c023e3735 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-13.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-13.js
@@ -9,21 +9,21 @@ description: >
property causes prototype index property to be visited on an Array
---*/
-function callbackfn(val, idx, obj) {
- return val < 3 ? true : false;
-}
-var arr = [0, 111, 2];
+ function callbackfn(val, idx, obj) {
+ return val < 3 ? true : false;
+ }
+ var arr = [0, 111, 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype[1] = 1;
-var newArr = arr.filter(callbackfn);
+ Array.prototype[1] = 1;
+ var newArr = arr.filter(callbackfn);
assert.sameValue(newArr.length, 3, 'newArr.length');
assert.sameValue(newArr[1], 1, 'newArr[1]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-14.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-14.js
index 00b6a41af..6147fab67 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-14.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-14.js
@@ -9,20 +9,20 @@ description: >
property not to be visited
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
-var arr = [0, 1, 2, "last"];
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
+ var arr = [0, 1, 2, "last"];
-Object.defineProperty(arr, "0", {
- get: function() {
- arr.length = 3;
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ arr.length = 3;
+ return 0;
+ },
+ configurable: true
+ });
-var newArr = arr.filter(callbackfn);
+ var newArr = arr.filter(callbackfn);
assert.sameValue(newArr.length, 3, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-15.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-15.js
index 1f87dab30..4e253c64e 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-15.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-15.js
@@ -9,27 +9,27 @@ description: >
property causes prototype index property to be visited
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
-var arr = [0, 1, 2];
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
+ var arr = [0, 1, 2];
-Object.defineProperty(Array.prototype, "2", {
- get: function() {
- return "prototype";
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "2", {
+ get: function () {
+ return "prototype";
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- arr.length = 2;
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ arr.length = 2;
+ return 1;
+ },
+ configurable: true
+ });
-var newArr = arr.filter(callbackfn);
+ var newArr = arr.filter(callbackfn);
assert.sameValue(newArr.length, 3, 'newArr.length');
assert.sameValue(newArr[2], "prototype", 'newArr[2]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-16.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-16.js
index b92fde3af..c81608958 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-16.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-16.js
@@ -10,28 +10,28 @@ description: >
flags: [noStrict]
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var arr = [0, 1, 2];
+ var arr = [0, 1, 2];
-Object.defineProperty(arr, "2", {
- get: function() {
- return "unconfigurable";
- },
- configurable: false
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ return "unconfigurable";
+ },
+ configurable: false
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- arr.length = 2;
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ arr.length = 2;
+ return 1;
+ },
+ configurable: true
+ });
-var newArr = arr.filter(callbackfn);
+ var newArr = arr.filter(callbackfn);
assert.sameValue(newArr.length, 3, 'newArr.length');
assert.sameValue(newArr[2], "unconfigurable", 'newArr[2]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-2.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-2.js
index a9b8cdae4..63ffe45b5 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-2.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-2.js
@@ -9,21 +9,21 @@ description: >
here
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var obj = {};
+ var obj = {};
-Object.defineProperty(obj, "length", {
- get: function() {
- obj[2] = "length";
- return 3;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ obj[2] = "length";
+ return 3;
+ },
+ configurable: true
+ });
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], "length", 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-3.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-3.js
index fd2a2612e..9201770ac 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-3.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-3.js
@@ -9,23 +9,20 @@ description: >
here
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
-var obj = {
- 2: 6.99,
- 8: 19
-};
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
+ var obj = { 2: 6.99, 8: 19 };
-Object.defineProperty(obj, "length", {
- get: function() {
- delete obj[2];
- return 10;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ delete obj[2];
+ return 10;
+ },
+ configurable: true
+ });
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.notSameValue(newArr[0], 6.99, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-4.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-4.js
index 61ad18595..81a5e3d11 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-4.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-4.js
@@ -9,28 +9,26 @@ description: >
current position are visited on an Array-like object
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var obj = {
- length: 2
-};
+ var obj = { length: 2 };
-Object.defineProperty(obj, "0", {
- get: function() {
- Object.defineProperty(obj, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
assert.sameValue(newArr[1], 6.99, 'newArr[1]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-5.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-5.js
index d2d1fd70c..150eda57c 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-5.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-5.js
@@ -9,26 +9,26 @@ description: >
current position are visited on an Array
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var arr = [0, , 2];
+ var arr = [0, , 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- Object.defineProperty(arr, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
-var newArr = arr.filter(callbackfn);
+ var newArr = arr.filter(callbackfn);
assert.sameValue(newArr.length, 3, 'newArr.length');
assert.sameValue(newArr[1], 6.99, 'newArr[1]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-6.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-6.js
index d0bc0fb1e..0932eb334 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-6.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-6.js
@@ -9,27 +9,25 @@ description: >
after current position are visited on an Array-like object
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
-var obj = {
- length: 2
-};
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
+ var obj = { length: 2 };
-Object.defineProperty(obj, "0", {
- get: function() {
- Object.defineProperty(Object.prototype, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ Object.defineProperty(Object.prototype, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
assert.sameValue(Array[1], 6.99, 'Array[1]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-7.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-7.js
index 1fea78746..677e3106f 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-7.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-7.js
@@ -9,25 +9,25 @@ description: >
after current position are visited on an Array
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
-var arr = [0, , 2];
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
+ var arr = [0, , 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- Object.defineProperty(Array.prototype, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ Object.defineProperty(Array.prototype, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
-var newArr = arr.filter(callbackfn);
+ var newArr = arr.filter(callbackfn);
assert.sameValue(newArr.length, 3, 'newArr.length');
assert.sameValue(newArr[1], 6.99, 'newArr[1]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-8.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-8.js
index 0593df24f..00d064e23 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-8.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-8.js
@@ -9,32 +9,30 @@ description: >
property not to be visited on an Array-like object
---*/
-var accessed = false;
-var obj = {
- length: 2
-};
+ var accessed = false;
+ var obj = { length: 2 };
-function callbackfn(val, idx, o) {
- accessed = true;
- return true;
-}
+ function callbackfn(val, idx, o) {
+ accessed = true;
+ return true;
+ }
-Object.defineProperty(obj, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "0", {
- get: function() {
- delete obj[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ delete obj[1];
+ return 0;
+ },
+ configurable: true
+ });
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 0, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-9.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-9.js
index 1221c8864..8f1588765 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-9.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-9.js
@@ -9,27 +9,27 @@ description: >
property not to be visited on an Array
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
-var arr = [1, 2];
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
+ var arr = [1, 2];
-Object.defineProperty(arr, "1", {
- get: function() {
- return "6.99";
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return "6.99";
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "0", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
-var newArr = arr.filter(callbackfn);
+ var newArr = arr.filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 0, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-1.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-1.js
index de7e415f3..cdfc98323 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-1.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-1.js
@@ -9,18 +9,14 @@ description: >
property on an Array-like object
---*/
-var kValue = {};
+ var kValue = {};
+ function callbackfn(val, idx, obj) {
+ return (idx === 5) && (val === kValue);
+ }
-function callbackfn(val, idx, obj) {
- return (idx === 5) && (val === kValue);
-}
+ var obj = { 5: kValue, length: 100 };
-var obj = {
- 5: kValue,
- length: 100
-};
-
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], kValue, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-10.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-10.js
index 394268152..b44cba1e3 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-10.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-10.js
@@ -9,19 +9,19 @@ description: >
property on an Array
---*/
-function callbackfn(val, idx, obj) {
- return idx === 2 && val === 12;
-}
+ function callbackfn(val, idx, obj) {
+ return idx === 2 && val === 12;
+ }
-var arr = [];
+ var arr = [];
-Object.defineProperty(arr, "2", {
- get: function() {
- return 12;
- },
- configurable: true
-});
-var newArr = arr.filter(callbackfn);
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ return 12;
+ },
+ configurable: true
+ });
+ var newArr = arr.filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 12, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-11.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-11.js
index a713e1953..dc089ead8 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-11.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-11.js
@@ -10,28 +10,25 @@ description: >
Array-like object
---*/
-function callbackfn(val, idx, obj) {
- return idx === 0 && val === 11;
-}
+ function callbackfn(val, idx, obj) {
+ return idx === 0 && val === 11;
+ }
-var proto = {
- 0: 5,
- 1: 6
-};
+ var proto = { 0: 5, 1: 6 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child.length = 10;
+ var child = new Con();
+ child.length = 10;
-Object.defineProperty(child, "0", {
- get: function() {
- return 11;
- },
- configurable: true
-});
-var newArr = Array.prototype.filter.call(child, callbackfn);
+ Object.defineProperty(child, "0", {
+ get: function () {
+ return 11;
+ },
+ configurable: true
+ });
+ var newArr = Array.prototype.filter.call(child, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-12.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-12.js
index 7dc94d210..bcd3b4287 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-12.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-12.js
@@ -9,21 +9,21 @@ description: >
property that overrides an inherited data property on an Array
---*/
-function callbackfn(val, idx, obj) {
- return val === 111 && idx === 0;
-}
+ function callbackfn(val, idx, obj) {
+ return val === 111 && idx === 0;
+ }
-var arr = [];
+ var arr = [];
-Array.prototype[0] = 10;
+ Array.prototype[0] = 10;
-Object.defineProperty(arr, "0", {
- get: function() {
- return 111;
- },
- configurable: true
-});
-var newArr = arr.filter(callbackfn);
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ return 111;
+ },
+ configurable: true
+ });
+ var newArr = arr.filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 111, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-13.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-13.js
index 4a692475a..32d9fa6f4 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-13.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-13.js
@@ -10,32 +10,32 @@ description: >
Array-like object
---*/
-function callbackfn(val, idx, obj) {
- return idx === 1 && val === 12;
-}
-
-var proto = {};
-
-Object.defineProperty(proto, "1", {
- get: function() {
- return 6;
- },
- configurable: true
-});
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-child.length = 10;
-
-Object.defineProperty(child, "1", {
- get: function() {
- return 12;
- },
- configurable: true
-});
-var newArr = Array.prototype.filter.call(child, callbackfn);
+ function callbackfn(val, idx, obj) {
+ return idx === 1 && val === 12;
+ }
+
+ var proto = {};
+
+ Object.defineProperty(proto, "1", {
+ get: function () {
+ return 6;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 10;
+
+ Object.defineProperty(child, "1", {
+ get: function () {
+ return 12;
+ },
+ configurable: true
+ });
+ var newArr = Array.prototype.filter.call(child, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 12, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-14.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-14.js
index e6f2a95c6..1ccf426ac 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-14.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-14.js
@@ -9,26 +9,26 @@ description: >
property that overrides an inherited accessor property on an Array
---*/
-function callbackfn(val, idx, obj) {
- return idx === 0 && val === 11;
-}
+ function callbackfn(val, idx, obj) {
+ return idx === 0 && val === 11;
+ }
-var arr = [];
+ var arr = [];
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return 5;
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return 5;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "0", {
- get: function() {
- return 11;
- },
- configurable: true
-});
-var newArr = arr.filter(callbackfn);
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ return 11;
+ },
+ configurable: true
+ });
+ var newArr = arr.filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-15.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-15.js
index 4a7122ea1..d97746c2d 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-15.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-15.js
@@ -9,25 +9,25 @@ description: >
accessor property on an Array-like object
---*/
-function callbackfn(val, idx, obj) {
- return val === 11 && idx === 1;
-}
+ function callbackfn(val, idx, obj) {
+ return val === 11 && idx === 1;
+ }
-var proto = {};
+ var proto = {};
-Object.defineProperty(proto, "1", {
- get: function() {
- return 11;
- },
- configurable: true
-});
+ Object.defineProperty(proto, "1", {
+ get: function () {
+ return 11;
+ },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child.length = 20;
-var newArr = Array.prototype.filter.call(child, callbackfn);
+ var child = new Con();
+ child.length = 20;
+ var newArr = Array.prototype.filter.call(child, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-16.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-16.js
index 9a04bb487..82834ff12 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-16.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-16.js
@@ -9,17 +9,17 @@ description: >
accessor property on an Array
---*/
-function callbackfn(val, idx, obj) {
- return idx === 0 && val === 11;
-}
+ function callbackfn(val, idx, obj) {
+ return idx === 0 && val === 11;
+ }
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return 11;
- },
- configurable: true
-});
-var newArr = [, , , ].filter(callbackfn);
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return 11;
+ },
+ configurable: true
+ });
+ var newArr = [, , , ].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-17.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-17.js
index 17bd3f8a7..3b01f8f4c 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-17.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-17.js
@@ -9,19 +9,17 @@ description: >
property without a get function on an Array-like object
---*/
-function callbackfn(val, idx, obj) {
- return undefined === val && idx === 1;
-}
+ function callbackfn(val, idx, obj) {
+ return undefined === val && idx === 1;
+ }
-var obj = {
- length: 2
-};
-Object.defineProperty(obj, "1", {
- set: function() {},
- configurable: true
-});
+ var obj = { length: 2 };
+ Object.defineProperty(obj, "1", {
+ set: function () { },
+ configurable: true
+ });
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], undefined, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-18.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-18.js
index b139b96a6..3cfc401b9 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-18.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-18.js
@@ -9,18 +9,18 @@ description: >
property without a get function on an Array
---*/
-function callbackfn(val, idx, obj) {
- return undefined === val && idx === 0;
-}
+ function callbackfn(val, idx, obj) {
+ return undefined === val && idx === 0;
+ }
-var arr = [];
+ var arr = [];
-Object.defineProperty(arr, "0", {
- set: function() {},
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ set: function () { },
+ configurable: true
+ });
-var newArr = arr.filter(callbackfn);
+ var newArr = arr.filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], undefined, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-19.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-19.js
index af8b5d615..4ff5f9589 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-19.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-19.js
@@ -10,20 +10,18 @@ description: >
accessor property on an Array-like object
---*/
-function callbackfn(val, idx, obj) {
- return undefined === val && idx === 1;
-}
+ function callbackfn(val, idx, obj) {
+ return undefined === val && idx === 1;
+ }
-var obj = {
- length: 2
-};
-Object.defineProperty(obj, "1", {
- set: function() {},
- configurable: true
-});
+ var obj = { length: 2 };
+ Object.defineProperty(obj, "1", {
+ set: function () { },
+ configurable: true
+ });
-Object.prototype[1] = 10;
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ Object.prototype[1] = 10;
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], undefined, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-2.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-2.js
index a129174e7..b2ea87479 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-2.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-2.js
@@ -9,13 +9,13 @@ description: >
property on an Array
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === 11;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === 11;
+ }
+ }
-var newArr = [11].filter(callbackfn);
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-20.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-20.js
index fa5905c96..83958a877 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-20.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-20.js
@@ -10,19 +10,19 @@ description: >
accessor property on an Array
---*/
-function callbackfn(val, idx, obj) {
- return undefined === val && idx === 0;
-}
+ function callbackfn(val, idx, obj) {
+ return undefined === val && idx === 0;
+ }
-var arr = [];
+ var arr = [];
-Object.defineProperty(arr, "0", {
- set: function() {},
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ set: function () { },
+ configurable: true
+ });
-Array.prototype[0] = 100;
-var newArr = arr.filter(callbackfn);
+ Array.prototype[0] = 100;
+ var newArr = arr.filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], undefined, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-21.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-21.js
index 87bc30149..e4c19177b 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-21.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-21.js
@@ -9,22 +9,22 @@ description: >
accessor property without a get function on an Array-like object
---*/
-function callbackfn(val, idx, obj) {
- return val === undefined && idx === 1;
-}
+ function callbackfn(val, idx, obj) {
+ return val === undefined && idx === 1;
+ }
-var proto = {};
-Object.defineProperty(proto, "1", {
- set: function() {},
- configurable: true
-});
+ var proto = {};
+ Object.defineProperty(proto, "1", {
+ set: function () { },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child.length = 2;
-var newArr = Array.prototype.filter.call(child, callbackfn);
+ var child = new Con();
+ child.length = 2;
+ var newArr = Array.prototype.filter.call(child, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], undefined, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-22.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-22.js
index ce088257b..5093adca4 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-22.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-22.js
@@ -9,15 +9,15 @@ description: >
accessor property without a get function on an Array
---*/
-function callbackfn(val, idx, obj) {
- return undefined === val && idx === 0;
-}
+ function callbackfn(val, idx, obj) {
+ return undefined === val && idx === 0;
+ }
-Object.defineProperty(Array.prototype, "0", {
- set: function() {},
- configurable: true
-});
-var newArr = [, ].filter(callbackfn);
+ Object.defineProperty(Array.prototype, "0", {
+ set: function () { },
+ configurable: true
+ });
+ var newArr = [, ].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], undefined, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-25.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-25.js
index f2288892e..f050065ed 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-25.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-25.js
@@ -10,15 +10,15 @@ description: >
less than number of parameters)
---*/
-function callbackfn(val, idx, obj) {
- return val === 11 && idx === 0;
-}
+ function callbackfn(val, idx, obj) {
+ return val === 11 && idx === 0;
+ }
-var func = function(a, b) {
- return Array.prototype.filter.call(arguments, callbackfn);
-};
+ var func = function (a, b) {
+ return Array.prototype.filter.call(arguments, callbackfn);
+ };
-var newArr = func(11);
+ var newArr = func(11);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-26.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-26.js
index 13eabc564..4c5719f15 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-26.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-26.js
@@ -10,20 +10,20 @@ description: >
number of parameters)
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === 11;
- } else if (idx === 1) {
- return val === 9;
- } else {
- return false;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === 11;
+ } else if (idx === 1) {
+ return val === 9;
+ } else {
+ return false;
+ }
+ }
-var func = function(a, b) {
- return Array.prototype.filter.call(arguments, callbackfn);
-};
-var newArr = func(11, 9);
+ var func = function (a, b) {
+ return Array.prototype.filter.call(arguments, callbackfn);
+ };
+ var newArr = func(11, 9);
assert.sameValue(newArr.length, 2, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-27.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-27.js
index 117cbb39b..96927339a 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-27.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-27.js
@@ -10,22 +10,22 @@ description: >
greater than number of parameters)
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === 11;
- } else if (idx === 1) {
- return val === 12;
- } else if (idx === 2) {
- return val === 9;
- } else {
- return false;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === 11;
+ } else if (idx === 1) {
+ return val === 12;
+ } else if (idx === 2) {
+ return val === 9;
+ } else {
+ return false;
+ }
+ }
-var func = function(a, b) {
- return Array.prototype.filter.call(arguments, callbackfn);
-};
-var newArr = func(11, 12, 9);
+ var func = function (a, b) {
+ return Array.prototype.filter.call(arguments, callbackfn);
+ };
+ var newArr = func(11, 12, 9);
assert.sameValue(newArr.length, 3, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-28.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-28.js
index 28a3290dc..266d3eb37 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-28.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-28.js
@@ -9,32 +9,32 @@ description: >
iterations is observed on an Array
---*/
-var preIterVisible = false;
-var arr = [];
+ var preIterVisible = false;
+ var arr = [];
-function callbackfn(val, idx, obj) {
- return idx === 1 && val === 9;
-}
+ function callbackfn(val, idx, obj) {
+ return idx === 1 && val === 9;
+ }
-Object.defineProperty(arr, "0", {
- get: function() {
- preIterVisible = true;
- return 11;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ preIterVisible = true;
+ return 11;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- if (preIterVisible) {
- return 9;
- } else {
- return 11;
- }
- },
- configurable: true
-});
-var newArr = arr.filter(callbackfn);
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ if (preIterVisible) {
+ return 9;
+ } else {
+ return 11;
+ }
+ },
+ configurable: true
+ });
+ var newArr = arr.filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 9, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-29.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-29.js
index f3cce11d7..502971701 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-29.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-29.js
@@ -9,34 +9,32 @@ description: >
iterations is observed on an Array-like object
---*/
-function callbackfn(val, idx, obj) {
- return val === 9 && idx === 1;
-}
+ function callbackfn(val, idx, obj) {
+ return val === 9 && idx === 1;
+ }
-var preIterVisible = false;
-var obj = {
- length: 2
-};
+ var preIterVisible = false;
+ var obj = { length: 2 };
-Object.defineProperty(obj, "0", {
- get: function() {
- preIterVisible = true;
- return 11;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ preIterVisible = true;
+ return 11;
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "1", {
- get: function() {
- if (preIterVisible) {
- return 9;
- } else {
- return 13;
- }
- },
- configurable: true
-});
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ if (preIterVisible) {
+ return 9;
+ } else {
+ return 13;
+ }
+ },
+ configurable: true
+ });
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 9, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-3.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-3.js
index 1f6b1b8c1..ce761b38f 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-3.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-3.js
@@ -10,23 +10,20 @@ description: >
Array-like object
---*/
-function callbackfn(val, idx, obj) {
- return (idx === 5) && (val === "abc");
-}
+ function callbackfn(val, idx, obj) {
+ return (idx === 5) && (val === "abc");
+ }
-var proto = {
- 0: 11,
- 5: 100
-};
+ var proto = { 0: 11, 5: 100 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child[5] = "abc";
-child.length = 10;
+ var child = new Con();
+ child[5] = "abc";
+ child.length = 10;
-var newArr = Array.prototype.filter.call(child, callbackfn);
+ var newArr = Array.prototype.filter.call(child, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], "abc", 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-30.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-30.js
index 01ffb99e0..150a4e013 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-30.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-30.js
@@ -9,28 +9,22 @@ description: >
terminate iteration on an Array-like object
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ if (idx > 1) {
+ accessed = true;
+ }
+ return true;
+ }
-function callbackfn(val, idx, obj) {
- if (idx > 1) {
- accessed = true;
- }
- return true;
-}
-
-var obj = {
- 0: 11,
- 5: 10,
- 10: 8,
- length: 20
-};
-Object.defineProperty(obj, "1", {
- get: function() {
- throw new RangeError("unhandle exception happened in getter");
- },
- configurable: true
-});
+ var obj = { 0: 11, 5: 10, 10: 8, length: 20 };
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ throw new RangeError("unhandle exception happened in getter");
+ },
+ configurable: true
+ });
assert.throws(RangeError, function() {
- Array.prototype.filter.call(obj, callbackfn);
+ Array.prototype.filter.call(obj, callbackfn);
});
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-31.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-31.js
index dc86f0848..0eb4d2ecd 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-31.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-31.js
@@ -9,26 +9,25 @@ description: >
terminate iteration on an Array
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ if (idx > 1) {
+ accessed = true;
+ }
+ return true;
+ }
-function callbackfn(val, idx, obj) {
- if (idx > 1) {
- accessed = true;
- }
- return true;
-}
+ var arr = [];
+ arr[5] = 10;
+ arr[10] = 100;
-var arr = [];
-arr[5] = 10;
-arr[10] = 100;
-
-Object.defineProperty(arr, "1", {
- get: function() {
- throw new RangeError("unhandle exception happened in getter");
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ throw new RangeError("unhandle exception happened in getter");
+ },
+ configurable: true
+ });
assert.throws(RangeError, function() {
- arr.filter(callbackfn);
+ arr.filter(callbackfn);
});
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-4.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-4.js
index 62273cdb9..39f5a2af2 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-4.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-4.js
@@ -9,12 +9,12 @@ description: >
property that overrides an inherited data property on an Array
---*/
-function callbackfn(val, idx, obj) {
- return (idx === 0) && (val === 12);
-}
+ function callbackfn(val, idx, obj) {
+ return (idx === 0) && (val === 12);
+ }
-Array.prototype[0] = 11;
-var newArr = [12].filter(callbackfn);
+ Array.prototype[0] = 11;
+ var newArr = [12].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 12, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-5.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-5.js
index 7f694e993..43000dca2 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-5.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-5.js
@@ -10,31 +10,31 @@ description: >
Array-like object
---*/
-function callbackfn(val, idx, obj) {
- return idx === 0 && val === 11;
-}
-
-var proto = {};
-
-Object.defineProperty(proto, "0", {
- get: function() {
- return 5;
- },
- configurable: true
-});
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-child.length = 2;
-Object.defineProperty(child, "0", {
- value: 11,
- configurable: true
-});
-child[1] = 12;
-
-var newArr = Array.prototype.filter.call(child, callbackfn);
+ function callbackfn(val, idx, obj) {
+ return idx === 0 && val === 11;
+ }
+
+ var proto = {};
+
+ Object.defineProperty(proto, "0", {
+ get: function () {
+ return 5;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 2;
+ Object.defineProperty(child, "0", {
+ value: 11,
+ configurable: true
+ });
+ child[1] = 12;
+
+ var newArr = Array.prototype.filter.call(child, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-6.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-6.js
index 17ead0e57..18af4d7ac 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-6.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-6.js
@@ -9,17 +9,17 @@ description: >
property that overrides an inherited accessor property on an Array
---*/
-function callbackfn(val, idx, obj) {
- return val === 11;
-}
+ function callbackfn(val, idx, obj) {
+ return val === 11;
+ }
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return 9;
- },
- configurable: true
-});
-var newArr = [11].filter(callbackfn);
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return 9;
+ },
+ configurable: true
+ });
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-7.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-7.js
index 2f92dcd61..ec3284966 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-7.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-7.js
@@ -9,23 +9,21 @@ description: >
property on an Array-like object
---*/
-var kValue = 'abc';
+ var kValue = 'abc';
-function callbackfn(val, idx, obj) {
- return (idx === 5) && (val === kValue);
-}
+ function callbackfn(val, idx, obj) {
+ return (idx === 5) && (val === kValue);
+ }
-var proto = {
- 5: kValue
-};
+ var proto = { 5: kValue };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child.length = 10;
+ var child = new Con();
+ child.length = 10;
-var newArr = Array.prototype.filter.call(child, callbackfn);
+ var newArr = Array.prototype.filter.call(child, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], kValue, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-8.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-8.js
index a263ceb34..3de54b2b2 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-8.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-8.js
@@ -9,12 +9,12 @@ description: >
property on an Array
---*/
-function callbackfn(val, idx, obj) {
- return (idx === 1) && (val === 13);
-}
+ function callbackfn(val, idx, obj) {
+ return (idx === 1) && (val === 13);
+ }
-Array.prototype[1] = 13;
-var newArr = [, , , ].filter(callbackfn);
+ Array.prototype[1] = 13;
+ var newArr = [, , , ].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 13, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-9.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-9.js
index 57aae1177..3e7299486 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-9.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-9.js
@@ -9,23 +9,20 @@ description: >
property on an Array-like object
---*/
-function callbackfn(val, idx, obj) {
- return (idx === 0) && (val === 11);
-}
+ function callbackfn(val, idx, obj) {
+ return (idx === 0) && (val === 11);
+ }
-var obj = {
- 10: 10,
- length: 20
-};
+ var obj = { 10: 10, length: 20 };
-Object.defineProperty(obj, "0", {
- get: function() {
- return 11;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ return 11;
+ },
+ configurable: true
+ });
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-1.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-1.js
index e29bab335..f635e683c 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-1.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-1.js
@@ -7,19 +7,18 @@ es5id: 15.4.4.20-9-c-ii-1
description: Array.prototype.filter - callbackfn called with correct parameters
---*/
-var bPar = true;
-var bCalled = false;
+ var bPar = true;
+ var bCalled = false;
+ function callbackfn(val, idx, obj)
+ {
+ bCalled = true;
+ if(obj[idx] !== val)
+ bPar = false;
+ }
-function callbackfn(val, idx, obj)
-{
- bCalled = true;
- if (obj[idx] !== val)
- bPar = false;
-}
-
-var srcArr = [0, 1, true, null, new Object(), "five"];
-srcArr[999999] = -6.6;
-var resArr = srcArr.filter(callbackfn);
+ var srcArr = [0,1,true,null,new Object(),"five"];
+ srcArr[999999] = -6.6;
+ var resArr = srcArr.filter(callbackfn);
assert.sameValue(bCalled, true, 'bCalled');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-10.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-10.js
index 67884f9e5..b7a6a8e0e 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-10.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-10.js
@@ -9,10 +9,10 @@ description: >
parameter
---*/
-function callbackfn(val) {
- return val > 10;
-}
-var newArr = [12].filter(callbackfn);
+ function callbackfn(val) {
+ return val > 10;
+ }
+ var newArr = [12].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 12, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-11.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-11.js
index ca8ee6554..4f5cd0714 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-11.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-11.js
@@ -9,10 +9,10 @@ description: >
parameter
---*/
-function callbackfn(val, idx) {
- return val > 10 && arguments[2][idx] === val;
-}
-var newArr = [11].filter(callbackfn);
+ function callbackfn(val, idx) {
+ return val > 10 && arguments[2][idx] === val;
+ }
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-12.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-12.js
index 8ef2009e4..400d6ae8a 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-12.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-12.js
@@ -9,10 +9,10 @@ description: >
parameter
---*/
-function callbackfn(val, idx, obj) {
- return val > 10 && obj[idx] === val;
-}
-var newArr = [11].filter(callbackfn);
+ function callbackfn(val, idx, obj) {
+ return val > 10 && obj[idx] === val;
+ }
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-13.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-13.js
index 59087549b..a51466ee6 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-13.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-13.js
@@ -9,10 +9,10 @@ description: >
get parameter value
---*/
-function callbackfn() {
- return arguments[2][arguments[1]] === arguments[0];
-}
-var newArr = [11].filter(callbackfn);
+ function callbackfn() {
+ return arguments[2][arguments[1]] === arguments[0];
+ }
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-16.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-16.js
index 44dab4449..6b1ed0278 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-16.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-16.js
@@ -9,15 +9,12 @@ description: >
object when T is not an object (T is a boolean)
---*/
-function callbackfn(val, idx, obj) {
- return this.valueOf() === false;
-}
+ function callbackfn(val, idx, obj) {
+ return this.valueOf() === false;
+ }
-var obj = {
- 0: 11,
- length: 2
-};
-var newArr = Array.prototype.filter.call(obj, callbackfn, false);
+ var obj = { 0: 11, length: 2 };
+ var newArr = Array.prototype.filter.call(obj, callbackfn, false);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-17.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-17.js
index 99a2bb143..17022d9b2 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-17.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-17.js
@@ -9,15 +9,12 @@ description: >
when T is not an object (T is a number)
---*/
-function callbackfn(val, idx, o) {
- return 5 === this.valueOf();
-}
+ function callbackfn(val, idx, o) {
+ return 5 === this.valueOf();
+ }
-var obj = {
- 0: 11,
- length: 2
-};
-var newArr = Array.prototype.filter.call(obj, callbackfn, 5);
+ var obj = { 0: 11, length: 2 };
+ var newArr = Array.prototype.filter.call(obj, callbackfn, 5);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-18.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-18.js
index 73ccf1d5f..bc7ae0099 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-18.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-18.js
@@ -9,15 +9,12 @@ description: >
object when T is not an object (T is a string)
---*/
-function callbackfn(val, idx, obj) {
- return 'hello' === this.valueOf();
-}
+ function callbackfn(val, idx, obj) {
+ return 'hello' === this.valueOf();
+ }
-var obj = {
- 0: 11,
- length: 2
-};
-var newArr = Array.prototype.filter.call(obj, callbackfn, "hello");
+ var obj = { 0: 11, length: 2 };
+ var newArr = Array.prototype.filter.call(obj, callbackfn, "hello");
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-19.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-19.js
index b2ba6df2b..235694b23 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-19.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-19.js
@@ -7,20 +7,15 @@ es5id: 15.4.4.20-9-c-ii-19
description: Array.prototype.filter - non-indexed properties are not called
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val === 8;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val === 8;
+ }
-var obj = {
- 0: 11,
- non_index_property: 8,
- 2: 5,
- length: 20
-};
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var obj = { 0: 11, non_index_property: 8, 2: 5, length: 20 };
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-2.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-2.js
index 208ff7aac..52910ae39 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-2.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-2.js
@@ -7,18 +7,17 @@ es5id: 15.4.4.20-9-c-ii-2
description: Array.prototype.filter - callbackfn takes 3 arguments
---*/
-var parCnt = 3;
-var bCalled = false
+ var parCnt = 3;
+ var bCalled = false
+ function callbackfn(val, idx, obj)
+ {
+ bCalled = true;
+ if(arguments.length !== 3)
+ parCnt = arguments.length; //verify if callbackfn was called with 3 parameters
+ }
-function callbackfn(val, idx, obj)
-{
- bCalled = true;
- if (arguments.length !== 3)
- parCnt = arguments.length; //verify if callbackfn was called with 3 parameters
-}
-
-var srcArr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
-var resArr = srcArr.filter(callbackfn);
+ var srcArr = [0,1,2,3,4,5,6,7,8,9];
+ var resArr = srcArr.filter(callbackfn);
assert.sameValue(bCalled, true, 'bCalled');
assert.sameValue(parCnt, 3, 'parCnt');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-20.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-20.js
index 645621f7e..fc145e234 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-20.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-20.js
@@ -9,19 +9,14 @@ description: >
(thisArg is correct)
---*/
-var thisArg = {
- threshold: 10
-};
+ var thisArg = { threshold: 10 };
-function callbackfn(val, idx, obj) {
- return this === thisArg;
-}
+ function callbackfn(val, idx, obj) {
+ return this === thisArg;
+ }
-var obj = {
- 0: 11,
- length: 1
-};
-var newArr = Array.prototype.filter.call(obj, callbackfn, thisArg);
+ var obj = { 0: 11, length: 1 };
+ var newArr = Array.prototype.filter.call(obj, callbackfn, thisArg);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-21.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-21.js
index 8c2b37645..1dd9e0853 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-21.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-21.js
@@ -9,24 +9,20 @@ description: >
(kValue is correct)
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === 11;
- }
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === 11;
+ }
- if (idx === 1) {
- return val === 12;
- }
+ if (idx === 1) {
+ return val === 12;
+ }
- return false;
-}
+ return false;
+ }
-var obj = {
- 0: 11,
- 1: 12,
- length: 2
-};
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var obj = { 0: 11, 1: 12, length: 2 };
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-22.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-22.js
index d8f90cbda..1976d0ab9 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-22.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-22.js
@@ -9,24 +9,20 @@ description: >
(the index k is correct)
---*/
-function callbackfn(val, idx, obj) {
- if (val === 11) {
- return idx === 0;
- }
+ function callbackfn(val, idx, obj) {
+ if (val === 11) {
+ return idx === 0;
+ }
- if (val === 12) {
- return idx === 1;
- }
+ if (val === 12) {
+ return idx === 1;
+ }
- return false;
-}
+ return false;
+ }
-var obj = {
- 0: 11,
- 1: 12,
- length: 2
-};
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var obj = { 0: 11, 1: 12, length: 2 };
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-23.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-23.js
index 54813293c..cdb465ca3 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-23.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-23.js
@@ -9,16 +9,13 @@ description: >
(this object O is correct)
---*/
-var obj = {
- 0: 11,
- length: 2
-};
+ var obj = { 0: 11, length: 2 };
-function callbackfn(val, idx, o) {
- return obj === o;
-}
+ function callbackfn(val, idx, o) {
+ return obj === o;
+ }
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-4.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-4.js
index 5b8e78643..c9a7de747 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-4.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-4.js
@@ -9,19 +9,18 @@ description: >
order
---*/
-var arr = [0, 1, 2, 3, 4, 5];
-var lastIdx = 0;
-var called = 0;
-
-function callbackfn(val, idx, o) {
- called++;
- if (lastIdx !== idx) {
- return false;
- } else {
- lastIdx++;
- return true;
- }
-}
-var newArr = arr.filter(callbackfn);
+ var arr = [0, 1, 2, 3, 4, 5];
+ var lastIdx = 0;
+ var called = 0;
+ function callbackfn(val, idx, o) {
+ called++;
+ if (lastIdx !== idx) {
+ return false;
+ } else {
+ lastIdx++;
+ return true;
+ }
+ }
+ var newArr = arr.filter(callbackfn);
assert.sameValue(newArr.length, called, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-5.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-5.js
index f0f5e5df9..dbf9d0d54 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-5.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-5.js
@@ -9,25 +9,25 @@ description: >
iteration and not prior to starting the loop on an Array
---*/
-var kIndex = [];
-var called = 0;
+ var kIndex = [];
+ var called = 0;
-//By below way, we could verify that k would be setted as 0, 1, ..., length - 1 in order, and each value will be setted one time.
-function callbackfn(val, idx, obj) {
- called++;
- //Each position should be visited one time, which means k is accessed one time during iterations.
- if (kIndex[idx] === undefined) {
- //when current position is visited, its previous index should has been visited.
- if (idx !== 0 && kIndex[idx - 1] === undefined) {
- return true;
- }
- kIndex[idx] = 1;
- return false;
- } else {
- return true;
- }
-}
-var newArr = [11, 12, 13, 14].filter(callbackfn, undefined);
+ //By below way, we could verify that k would be setted as 0, 1, ..., length - 1 in order, and each value will be setted one time.
+ function callbackfn(val, idx, obj) {
+ called++;
+ //Each position should be visited one time, which means k is accessed one time during iterations.
+ if (kIndex[idx] === undefined) {
+ //when current position is visited, its previous index should has been visited.
+ if (idx !== 0 && kIndex[idx - 1] === undefined) {
+ return true;
+ }
+ kIndex[idx] = 1;
+ return false;
+ } else {
+ return true;
+ }
+ }
+ var newArr = [11, 12, 13, 14].filter(callbackfn, undefined);
assert.sameValue(newArr.length, 0, 'newArr.length');
assert.sameValue(called, 4, 'called');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-6.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-6.js
index ea27bcafe..6390d908c 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-6.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-6.js
@@ -9,20 +9,17 @@ description: >
consistent
---*/
-var obj = {
- 0: 11,
- length: 1
-};
-var thisArg = {};
+ var obj = { 0: 11, length: 1 };
+ var thisArg = {};
-function callbackfn() {
- return this === thisArg &&
- arguments[0] === 11 &&
- arguments[1] === 0 &&
- arguments[2] === obj;
-}
+ function callbackfn() {
+ return this === thisArg &&
+ arguments[0] === 11 &&
+ arguments[1] === 0 &&
+ arguments[2] === obj;
+ }
-var newArr = Array.prototype.filter.call(obj, callbackfn, thisArg);
+ var newArr = Array.prototype.filter.call(obj, callbackfn, thisArg);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-7.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-7.js
index 68d53c92c..97dfb262b 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-7.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-7.js
@@ -9,23 +9,18 @@ description: >
callbackfn terminate iteration
---*/
-var called = 0;
+ var called = 0;
-function callbackfn(val, idx, obj) {
- called++;
- if (called === 1) {
- throw new Error("Exception occurred in callbackfn");
- }
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ called++;
+ if (called === 1) {
+ throw new Error("Exception occurred in callbackfn");
+ }
+ return true;
+ }
-var obj = {
- 0: 11,
- 4: 10,
- 10: 8,
- length: 20
-};
+ var obj = { 0: 11, 4: 10, 10: 8, length: 20 };
assert.throws(Error, function() {
- Array.prototype.filter.call(obj, callbackfn);
+ Array.prototype.filter.call(obj, callbackfn);
});
assert.sameValue(called, 1, 'called');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-8.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-8.js
index 6f93d5fee..6551c71df 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-8.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-8.js
@@ -9,20 +9,16 @@ description: >
iterations is observed
---*/
-var obj = {
- 0: 11,
- 1: 12,
- length: 2
-};
+ var obj = { 0: 11, 1: 12, length: 2 };
-function callbackfn(val, idx, o) {
- if (idx === 0) {
- obj[idx + 1] = 8;
- }
- return val > 10;
-}
+ function callbackfn(val, idx, o) {
+ if (idx === 0) {
+ obj[idx + 1] = 8;
+ }
+ return val > 10;
+ }
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-9.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-9.js
index 382633547..0d6beb147 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-9.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-9.js
@@ -9,10 +9,10 @@ description: >
parameter
---*/
-function callbackfn() {
- return true;
-}
-var newArr = [11].filter(callbackfn);
+ function callbackfn() {
+ return true;
+ }
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-1.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-1.js
index 32568ef97..cf811e4dd 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-1.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-1.js
@@ -9,16 +9,12 @@ description: >
'kValue'
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var obj = {
- 0: 11,
- 1: 9,
- length: 2
-};
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var obj = { 0: 11, 1: 9, length: 2 };
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr[0], obj[0], 'newArr[0]');
assert.sameValue(newArr[1], obj[1], 'newArr[1]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-2.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-2.js
index 3a9a1dfc0..8acc541e3 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-2.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-2.js
@@ -9,18 +9,14 @@ description: >
overwritten
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var obj = {
- 0: 11,
- 1: 9,
- length: 2
-};
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var obj = { 0: 11, 1: 9, length: 2 };
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
-var tempVal = newArr[1];
-newArr[1] += 1;
+ var tempVal = newArr[1];
+ newArr[1] += 1;
assert.notSameValue(newArr[1], tempVal, 'newArr[1]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-3.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-3.js
index 1b641737e..c3d2d718d 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-3.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-3.js
@@ -9,24 +9,21 @@ description: >
enumerated
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var obj = {
- 0: 11,
- length: 2
-};
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var obj = { 0: 11, length: 2 };
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
-var prop;
-var enumerable = false;
-for (prop in newArr) {
- if (newArr.hasOwnProperty(prop)) {
- if (prop === "0") {
- enumerable = true;
- }
- }
-}
+ var prop;
+ var enumerable = false;
+ for (prop in newArr) {
+ if (newArr.hasOwnProperty(prop)) {
+ if (prop === "0") {
+ enumerable = true;
+ }
+ }
+ }
assert(enumerable, 'enumerable !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-4.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-4.js
index 18f72dd4c..43d859cc4 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-4.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-4.js
@@ -9,19 +9,15 @@ description: >
changed or deleted
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var obj = {
- 0: 11,
- 1: 9,
- length: 2
-};
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var obj = { 0: 11, 1: 9, length: 2 };
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
-var tempVal = newArr[1];
-delete newArr[1];
+ var tempVal = newArr[1];
+ delete newArr[1];
assert.notSameValue(tempVal, undefined, 'tempVal');
assert.sameValue(newArr[1], undefined, 'newArr[1]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-5.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-5.js
index b5a88eb4b..010699ccf 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-5.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-5.js
@@ -9,20 +9,19 @@ description: >
numeric order
---*/
-var arr = [0, 1, 2, 3, 4];
-var lastToIdx = 0;
-var called = 0;
-
-function callbackfn(val, idx, obj) {
- called++;
- if (lastToIdx !== idx) {
- return false;
- } else {
- lastToIdx++;
- return true;
- }
-}
-var newArr = arr.filter(callbackfn);
+ var arr = [0, 1, 2, 3, 4];
+ var lastToIdx = 0;
+ var called = 0;
+ function callbackfn(val, idx, obj) {
+ called++;
+ if (lastToIdx !== idx) {
+ return false;
+ } else {
+ lastToIdx++;
+ return true;
+ }
+ }
+ var newArr = arr.filter(callbackfn);
assert.sameValue(newArr.length, 5, 'newArr.length');
assert.sameValue(called, 5, 'called');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-6.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-6.js
index 8e9d64fc6..aaad13206 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-6.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-6.js
@@ -10,25 +10,25 @@ description: >
starting the loop
---*/
-var toIndex = [];
-var called = 0;
+ var toIndex = [];
+ var called = 0;
-//By below way, we could verify that 'to' would be setted as 0, 1, ..., length - 1 in order, and each value will be setted one time.
-function callbackfn(val, idx, obj) {
- called++;
- //Each position should be visited one time, which means 'to' is accessed one time during iterations.
- if (toIndex[idx] === undefined) {
- //when current position is visited, its previous index should has been visited.
- if (idx !== 0 && toIndex[idx - 1] === undefined) {
- return false;
- }
- toIndex[idx] = 1;
- return true;
- } else {
- return false;
- }
-}
-var newArr = [11, 12, 13, 14].filter(callbackfn, undefined);
+ //By below way, we could verify that 'to' would be setted as 0, 1, ..., length - 1 in order, and each value will be setted one time.
+ function callbackfn(val, idx, obj) {
+ called++;
+ //Each position should be visited one time, which means 'to' is accessed one time during iterations.
+ if (toIndex[idx] === undefined) {
+ //when current position is visited, its previous index should has been visited.
+ if (idx !== 0 && toIndex[idx - 1] === undefined) {
+ return false;
+ }
+ toIndex[idx] = 1;
+ return true;
+ } else {
+ return false;
+ }
+ }
+ var newArr = [11, 12, 13, 14].filter(callbackfn, undefined);
assert.sameValue(newArr.length, 4, 'newArr.length');
assert.sameValue(called, 4, 'called');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1.js
index b4090e61d..b6c6e6a61 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1.js
@@ -9,14 +9,14 @@ description: >
returned array element
---*/
-function callbackfn(val, idx, obj) {
- if (val % 2)
- return true;
- else
- return false;
-}
-var srcArr = [0, 1, 2, 3, 4];
-var resArr = srcArr.filter(callbackfn);
+ function callbackfn(val, idx, obj){
+ if(val % 2)
+ return true;
+ else
+ return false;
+ }
+ var srcArr = [0,1,2,3,4];
+ var resArr = srcArr.filter(callbackfn);
assert(resArr.length > 0, 'resArr.length > 0');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-10.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-10.js
index e0095481f..38b9c166b 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-10.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-10.js
@@ -9,11 +9,11 @@ description: >
(value is negative number)
---*/
-function callbackfn(val, idx, obj) {
- return -5;
-}
+ function callbackfn(val, idx, obj) {
+ return -5;
+ }
-var newArr = [11].filter(callbackfn);
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-11.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-11.js
index f1458a7ec..afdb35685 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-11.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-11.js
@@ -9,11 +9,11 @@ description: >
(value is Infinity)
---*/
-function callbackfn(val, idx, obj) {
- return Infinity;
-}
+ function callbackfn(val, idx, obj) {
+ return Infinity;
+ }
-var newArr = [11].filter(callbackfn);
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-12.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-12.js
index 3187b31ed..719ee9bc9 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-12.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-12.js
@@ -9,11 +9,11 @@ description: >
(value is -Infinity)
---*/
-function callbackfn(val, idx, obj) {
- return -Infinity;
-}
+ function callbackfn(val, idx, obj) {
+ return -Infinity;
+ }
-var newArr = [11].filter(callbackfn);
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-13.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-13.js
index 3af7abd32..e78a98f13 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-13.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-13.js
@@ -9,14 +9,14 @@ description: >
(value is NaN)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return NaN;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return NaN;
+ }
-var newArr = [11].filter(callbackfn);
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-14.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-14.js
index 976eb524d..a9df829af 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-14.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-14.js
@@ -9,14 +9,14 @@ description: >
string
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return "";
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return "";
+ }
-var newArr = [11].filter(callbackfn);
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-15.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-15.js
index 46d3a541d..c6cac3c3c 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-15.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-15.js
@@ -9,11 +9,11 @@ description: >
string
---*/
-function callbackfn(val, idx, obj) {
- return "non-empty string";
-}
+ function callbackfn(val, idx, obj) {
+ return "non-empty string";
+ }
-var newArr = [11].filter(callbackfn);
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-16.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-16.js
index 9d61f23cf..15d6f4194 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-16.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-16.js
@@ -9,11 +9,11 @@ description: >
object
---*/
-function callbackfn(val, idx, obj) {
- return function() {};
-}
+ function callbackfn(val, idx, obj) {
+ return function () { };
+ }
-var newArr = [11].filter(callbackfn);
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-17.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-17.js
index e897b21bc..4fa7e5e1e 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-17.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-17.js
@@ -9,11 +9,11 @@ description: >
object
---*/
-function callbackfn(val, idx, obj) {
- return new Array(10);
-}
+ function callbackfn(val, idx, obj) {
+ return new Array(10);
+ }
-var newArr = [11].filter(callbackfn);
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-18.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-18.js
index 71f79ca9e..46dad6dd0 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-18.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-18.js
@@ -9,11 +9,11 @@ description: >
object
---*/
-function callbackfn(val, idx, obj) {
- return new String();
-}
+ function callbackfn(val, idx, obj) {
+ return new String();
+ }
-var newArr = [11].filter(callbackfn);
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-19.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-19.js
index 0570144e9..bd35cfb69 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-19.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-19.js
@@ -9,11 +9,11 @@ description: >
object
---*/
-function callbackfn(val, idx, obj) {
- return new Boolean();
-}
+ function callbackfn(val, idx, obj) {
+ return new Boolean();
+ }
-var newArr = [11].filter(callbackfn);
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-2.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-2.js
index 892a96c6b..b0681bb10 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-2.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-2.js
@@ -7,19 +7,16 @@ es5id: 15.4.4.20-9-c-iii-2
description: Array.prototype.filter - return value of callbackfn is undefined
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, o) {
- accessed = true;
- return undefined;
-}
+ function callbackfn(val, idx, o) {
+ accessed = true;
+ return undefined;
+ }
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-20.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-20.js
index c5409a87e..8f3f5e55f 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-20.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-20.js
@@ -9,11 +9,11 @@ description: >
object
---*/
-function callbackfn(val, idx, obj) {
- return new Number();
-}
+ function callbackfn(val, idx, obj) {
+ return new Number();
+ }
-var newArr = [11].filter(callbackfn);
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-21.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-21.js
index 80c3876c6..5d91b294f 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-21.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-21.js
@@ -9,11 +9,11 @@ description: >
object
---*/
-function callbackfn(val, idx, obj) {
- return Math;
-}
+ function callbackfn(val, idx, obj) {
+ return Math;
+ }
-var newArr = [11].filter(callbackfn);
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-22.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-22.js
index b9e29f24b..7825fe47f 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-22.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-22.js
@@ -9,11 +9,11 @@ description: >
object
---*/
-function callbackfn(val, idx, obj) {
- return new Date();
-}
+ function callbackfn(val, idx, obj) {
+ return new Date();
+ }
-var newArr = [11].filter(callbackfn);
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-23.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-23.js
index 69b2c2c72..7fca3c93d 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-23.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-23.js
@@ -9,11 +9,11 @@ description: >
object
---*/
-function callbackfn(val, idx, obj) {
- return new RegExp();
-}
+ function callbackfn(val, idx, obj) {
+ return new RegExp();
+ }
-var newArr = [11].filter(callbackfn);
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-24.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-24.js
index afd5e2234..8f0a030c3 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-24.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-24.js
@@ -9,11 +9,11 @@ description: >
object
---*/
-function callbackfn(val, idx, obj) {
- return JSON;
-}
+ function callbackfn(val, idx, obj) {
+ return JSON;
+ }
-var newArr = [11].filter(callbackfn);
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-25.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-25.js
index 279fb2a4b..57be04e13 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-25.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-25.js
@@ -9,11 +9,11 @@ description: >
object
---*/
-function callbackfn(val, idx, obj) {
- return new EvalError();
-}
+ function callbackfn(val, idx, obj) {
+ return new EvalError();
+ }
-var newArr = [11].filter(callbackfn);
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-26.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-26.js
index 25ec2c9fe..332a4c3a3 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-26.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-26.js
@@ -9,11 +9,11 @@ description: >
Arguments object
---*/
-function callbackfn(val, idx, obj) {
- return arguments;
-}
+ function callbackfn(val, idx, obj) {
+ return arguments;
+ }
-var newArr = [11].filter(callbackfn);
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-28.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-28.js
index 7d02e8a47..a8d86ae22 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-28.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-28.js
@@ -10,12 +10,11 @@ description: >
---*/
var global = this;
+ function callbackfn(val, idx, obj) {
+ return global;
+ }
-function callbackfn(val, idx, obj) {
- return global;
-}
-
-var newArr = [11].filter(callbackfn);
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-29.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-29.js
index 4184c13cf..a16c1a2dd 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-29.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-29.js
@@ -9,20 +9,16 @@ description: >
Array
---*/
-var called = 0;
+ var called = 0;
-function callbackfn(val, idx, obj) {
- called++;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ called++;
+ return val > 10;
+ }
-var obj = {
- 0: 11,
- 1: 8,
- length: 20
-};
+ var obj = { 0: 11, 1: 8, length: 20 };
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.notSameValue(newArr[0], 8, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-3.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-3.js
index f5d032d1c..8c3fa9315 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-3.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-3.js
@@ -7,19 +7,16 @@ es5id: 15.4.4.20-9-c-iii-3
description: Array.prototype.filter - return value of callbackfn is null
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return null;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return null;
+ }
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-30.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-30.js
index e21b710d6..603c07567 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-30.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-30.js
@@ -9,11 +9,11 @@ description: >
callbackfn is treated as true value
---*/
-function callbackfn(val, idx, obj) {
- return new Boolean(false);
-}
+ function callbackfn(val, idx, obj) {
+ return new Boolean(false);
+ }
-var newArr = [11].filter(callbackfn);
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-4.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-4.js
index 400819dc7..957e1b506 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-4.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-4.js
@@ -9,19 +9,16 @@ description: >
(value is false)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return false;
+ }
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-5.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-5.js
index d33c906f2..3b3959c4f 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-5.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-5.js
@@ -9,16 +9,13 @@ description: >
(value is true)
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-6.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-6.js
index 8cfdbcbfd..59e225bab 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-6.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-6.js
@@ -9,14 +9,14 @@ description: >
(value is 0)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return 0;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return 0;
+ }
-var newArr = [11].filter(callbackfn);
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-7.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-7.js
index 766eb4034..8b1efafcd 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-7.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-7.js
@@ -9,14 +9,14 @@ description: >
(value is +0)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return +0;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return +0;
+ }
-var newArr = [11].filter(callbackfn);
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-8.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-8.js
index ae10c8998..3711ff9ef 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-8.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-8.js
@@ -9,14 +9,14 @@ description: >
(value is -0)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return -0;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return -0;
+ }
-var newArr = [11].filter(callbackfn);
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-9.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-9.js
index c9f2d5772..33bd28e86 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-9.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-9.js
@@ -9,11 +9,11 @@ description: >
(value is positive number)
---*/
-function callbackfn(val, idx, obj) {
- return 5;
-}
+ function callbackfn(val, idx, obj) {
+ return 5;
+ }
-var newArr = [11].filter(callbackfn);
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/create-ctor-non-object.js b/test/built-ins/Array/prototype/filter/create-ctor-non-object.js
index e4f50c1cf..988fed039 100644
--- a/test/built-ins/Array/prototype/filter/create-ctor-non-object.js
+++ b/test/built-ins/Array/prototype/filter/create-ctor-non-object.js
@@ -20,9 +20,7 @@ info: |
var a = [];
var callCount = 0;
-var cb = function() {
- callCount += 0;
-};
+var cb = function() { callCount += 0; };
a.constructor = null;
assert.throws(TypeError, function() {
diff --git a/test/built-ins/Array/prototype/filter/create-ctor-poisoned.js b/test/built-ins/Array/prototype/filter/create-ctor-poisoned.js
index 8dec316a7..a766e6896 100644
--- a/test/built-ins/Array/prototype/filter/create-ctor-poisoned.js
+++ b/test/built-ins/Array/prototype/filter/create-ctor-poisoned.js
@@ -17,9 +17,7 @@ info: |
var a = [];
var callCount = 0;
-var cb = function() {
- callCount += 1;
-};
+var cb = function() { callCount += 1; };
Object.defineProperty(a, 'constructor', {
get: function() {
diff --git a/test/built-ins/Array/prototype/filter/create-non-array.js b/test/built-ins/Array/prototype/filter/create-non-array.js
index 34c2a56a0..32ef7736f 100644
--- a/test/built-ins/Array/prototype/filter/create-non-array.js
+++ b/test/built-ins/Array/prototype/filter/create-non-array.js
@@ -16,9 +16,7 @@ info: |
4. If isArray is false, return ? ArrayCreate(length).
---*/
-var obj = {
- length: 0
-};
+var obj = { length: 0 };
var callCount = 0;
var result;
Object.defineProperty(obj, 'constructor', {
diff --git a/test/built-ins/Array/prototype/filter/create-revoked-proxy.js b/test/built-ins/Array/prototype/filter/create-revoked-proxy.js
index 3bdee5cd6..aecf766f9 100644
--- a/test/built-ins/Array/prototype/filter/create-revoked-proxy.js
+++ b/test/built-ins/Array/prototype/filter/create-revoked-proxy.js
@@ -26,9 +26,7 @@ features: [Proxy]
var o = Proxy.revocable([], {});
var ctorCount = 0;
var cbCount = 0;
-var cb = function() {
- cbCount += 1;
-};
+var cb = function() { cbCount += 1; };
Object.defineProperty(o.proxy, 'constructor', {
get: function() {
diff --git a/test/built-ins/Array/prototype/filter/create-species-abrupt.js b/test/built-ins/Array/prototype/filter/create-species-abrupt.js
index 4c461dd30..42a4f2eda 100644
--- a/test/built-ins/Array/prototype/filter/create-species-abrupt.js
+++ b/test/built-ins/Array/prototype/filter/create-species-abrupt.js
@@ -26,9 +26,7 @@ var Ctor = function() {
throw new Test262Error();
};
var callCount = 0;
-var cb = function() {
- callCount += 1;
-};
+var cb = function() { callCount += 1; };
var a = [];
a.constructor = {};
a.constructor[Symbol.species] = Ctor;
diff --git a/test/built-ins/Array/prototype/filter/create-species-non-ctor.js b/test/built-ins/Array/prototype/filter/create-species-non-ctor.js
index 890bf4d52..cf5fba2ce 100644
--- a/test/built-ins/Array/prototype/filter/create-species-non-ctor.js
+++ b/test/built-ins/Array/prototype/filter/create-species-non-ctor.js
@@ -25,9 +25,7 @@ features: [Symbol.species]
var a = [];
var callCount = 0;
-var cb = function() {
- callCount += 1;
-};
+var cb = function() { callCount += 1; };
a.constructor = {};
a.constructor[Symbol.species] = parseInt;
diff --git a/test/built-ins/Array/prototype/filter/create-species-poisoned.js b/test/built-ins/Array/prototype/filter/create-species-poisoned.js
index 947e8f870..9edd338af 100644
--- a/test/built-ins/Array/prototype/filter/create-species-poisoned.js
+++ b/test/built-ins/Array/prototype/filter/create-species-poisoned.js
@@ -21,9 +21,7 @@ features: [Symbol.species]
var a = [];
var callCount = 0;
-var cb = function() {
- callCount += 1;
-};
+var cb = function() { callCount += 1; };
a.constructor = {};
Object.defineProperty(a.constructor, Symbol.species, {
diff --git a/test/built-ins/Array/prototype/find/return-found-value-predicate-result-is-true.js b/test/built-ins/Array/prototype/find/return-found-value-predicate-result-is-true.js
index 16afbdf35..073201a27 100644
--- a/test/built-ins/Array/prototype/find/return-found-value-predicate-result-is-true.js
+++ b/test/built-ins/Array/prototype/find/return-found-value-predicate-result-is-true.js
@@ -38,27 +38,17 @@ result = arr.find(function(val) {
assert.sameValue(called, 3, 'predicate was called three times');
assert.sameValue(result, 'Bike');
-result = arr.find(function(val) {
- return 'string';
-});
+result = arr.find(function(val) { return 'string'; });
assert.sameValue(result, 'Shoes', 'coerced string');
-result = arr.find(function(val) {
- return {};
-});
+result = arr.find(function(val) { return {}; });
assert.sameValue(result, 'Shoes', 'coerced object');
-result = arr.find(function(val) {
- return Symbol('');
-});
+result = arr.find(function(val) { return Symbol(''); });
assert.sameValue(result, 'Shoes', 'coerced Symbol');
-result = arr.find(function(val) {
- return 1;
-});
+result = arr.find(function(val) { return 1; });
assert.sameValue(result, 'Shoes', 'coerced number');
-result = arr.find(function(val) {
- return -1;
-});
+result = arr.find(function(val) { return -1; });
assert.sameValue(result, 'Shoes', 'coerced negative number');
diff --git a/test/built-ins/Array/prototype/find/return-undefined-if-predicate-returns-false-value.js b/test/built-ins/Array/prototype/find/return-undefined-if-predicate-returns-false-value.js
index 0eb576508..65d471bac 100644
--- a/test/built-ins/Array/prototype/find/return-undefined-if-predicate-returns-false-value.js
+++ b/test/built-ins/Array/prototype/find/return-undefined-if-predicate-returns-false-value.js
@@ -28,27 +28,17 @@ var result = arr.find(function(val) {
assert.sameValue(called, 3, 'predicate was called three times');
assert.sameValue(result, undefined);
-result = arr.find(function(val) {
- return '';
-});
+result = arr.find(function(val) { return ''; });
assert.sameValue(result, undefined, 'coerced string');
-result = arr.find(function(val) {
- return undefined;
-});
+result = arr.find(function(val) { return undefined; });
assert.sameValue(result, undefined, 'coerced undefined');
-result = arr.find(function(val) {
- return null;
-});
+result = arr.find(function(val) { return null; });
assert.sameValue(result, undefined, 'coerced null');
-result = arr.find(function(val) {
- return 0;
-});
+result = arr.find(function(val) { return 0; });
assert.sameValue(result, undefined, 'coerced 0');
-result = arr.find(function(val) {
- return NaN;
-});
+result = arr.find(function(val) { return NaN; });
assert.sameValue(result, undefined, 'coerced NaN');
diff --git a/test/built-ins/Array/prototype/findIndex/return-index-predicate-result-is-true.js b/test/built-ins/Array/prototype/findIndex/return-index-predicate-result-is-true.js
index bddf1e3e4..f57d47aeb 100644
--- a/test/built-ins/Array/prototype/findIndex/return-index-predicate-result-is-true.js
+++ b/test/built-ins/Array/prototype/findIndex/return-index-predicate-result-is-true.js
@@ -38,27 +38,17 @@ result = arr.findIndex(function(val) {
assert.sameValue(called, 3, 'predicate was called three times');
assert.sameValue(result, 2);
-result = arr.findIndex(function(val) {
- return 'string';
-});
+result = arr.findIndex(function(val) { return 'string'; });
assert.sameValue(result, 0, 'coerced string');
-result = arr.findIndex(function(val) {
- return {};
-});
+result = arr.findIndex(function(val) { return {}; });
assert.sameValue(result, 0, 'coerced object');
-result = arr.findIndex(function(val) {
- return Symbol('');
-});
+result = arr.findIndex(function(val) { return Symbol(''); });
assert.sameValue(result, 0, 'coerced Symbol');
-result = arr.findIndex(function(val) {
- return 1;
-});
+result = arr.findIndex(function(val) { return 1; });
assert.sameValue(result, 0, 'coerced number');
-result = arr.findIndex(function(val) {
- return -1;
-});
+result = arr.findIndex(function(val) { return -1; });
assert.sameValue(result, 0, 'coerced negative number');
diff --git a/test/built-ins/Array/prototype/findIndex/return-negative-one-if-predicate-returns-false-value.js b/test/built-ins/Array/prototype/findIndex/return-negative-one-if-predicate-returns-false-value.js
index b1e6eb76b..f5348ea59 100644
--- a/test/built-ins/Array/prototype/findIndex/return-negative-one-if-predicate-returns-false-value.js
+++ b/test/built-ins/Array/prototype/findIndex/return-negative-one-if-predicate-returns-false-value.js
@@ -28,27 +28,17 @@ var result = arr.findIndex(function(val) {
assert.sameValue(called, 3, 'predicate was called three times');
assert.sameValue(result, -1);
-result = arr.findIndex(function(val) {
- return '';
-});
+result = arr.findIndex(function(val) { return ''; });
assert.sameValue(result, -1, 'coerced string');
-result = arr.findIndex(function(val) {
- return undefined;
-});
+result = arr.findIndex(function(val) { return undefined; });
assert.sameValue(result, -1, 'coerced undefined');
-result = arr.findIndex(function(val) {
- return null;
-});
+result = arr.findIndex(function(val) { return null; });
assert.sameValue(result, -1, 'coerced null');
-result = arr.findIndex(function(val) {
- return 0;
-});
+result = arr.findIndex(function(val) { return 0; });
assert.sameValue(result, -1, 'coerced 0');
-result = arr.findIndex(function(val) {
- return NaN;
-});
+result = arr.findIndex(function(val) { return NaN; });
assert.sameValue(result, -1, 'coerced NaN');
diff --git a/test/built-ins/Array/prototype/flatMap/bound-function-argument.js b/test/built-ins/Array/prototype/flatMap/bound-function-argument.js
index daa314115..95f5aeffe 100644
--- a/test/built-ins/Array/prototype/flatMap/bound-function-argument.js
+++ b/test/built-ins/Array/prototype/flatMap/bound-function-argument.js
@@ -9,6 +9,4 @@ features: [Array.prototype.flatMap]
---*/
var a = [0, 0];
-assert.compareArray(a.flatMap(function() {
- return this;
-}.bind([1, 2])), [1, 2, 1, 2]);
+assert.compareArray(a.flatMap(function(){ return this; }.bind([1, 2])), [1, 2, 1, 2]);
diff --git a/test/built-ins/Array/prototype/flatMap/depth-always-one.js b/test/built-ins/Array/prototype/flatMap/depth-always-one.js
index 4f5f672b4..851a9a744 100644
--- a/test/built-ins/Array/prototype/flatMap/depth-always-one.js
+++ b/test/built-ins/Array/prototype/flatMap/depth-always-one.js
@@ -13,9 +13,7 @@ assert.compareArray([1, 2].flatMap(function(e) {
}), [1, 2, 2, 4], 'array depth is 1');
var result = [1, 2, 3].flatMap(function(ele) {
- return [
- [ele * 2]
- ];
+ return [[ele * 2]];
});
assert.sameValue(result.length, 3, 'array depth is more than 1 - length');
assert.compareArray(result[0], [2], 'array depth is more than 1 - 1st element');
diff --git a/test/built-ins/Array/prototype/flatMap/non-callable-argument-throws.js b/test/built-ins/Array/prototype/flatMap/non-callable-argument-throws.js
index ab0f8ca86..6d47d0233 100644
--- a/test/built-ins/Array/prototype/flatMap/non-callable-argument-throws.js
+++ b/test/built-ins/Array/prototype/flatMap/non-callable-argument-throws.js
@@ -7,6 +7,6 @@ description: >
features: [Array.prototype.flatMap]
---*/
-assert.throws(TypeError, function() {
+assert.throws(TypeError, function () {
[].flatMap({});
}, 'non callable argument');
diff --git a/test/built-ins/Array/prototype/flatMap/non-object-ctor-throws.js b/test/built-ins/Array/prototype/flatMap/non-object-ctor-throws.js
index 65767d2ce..21e44b681 100644
--- a/test/built-ins/Array/prototype/flatMap/non-object-ctor-throws.js
+++ b/test/built-ins/Array/prototype/flatMap/non-object-ctor-throws.js
@@ -31,3 +31,4 @@ a.constructor = true;
assert.throws(TypeError, function() {
a.flatMap();
}, 'boolean value');
+
diff --git a/test/built-ins/Array/prototype/flatMap/null-undefined-input-throws.js b/test/built-ins/Array/prototype/flatMap/null-undefined-input-throws.js
index dcfe81aaf..5a4e966e2 100644
--- a/test/built-ins/Array/prototype/flatMap/null-undefined-input-throws.js
+++ b/test/built-ins/Array/prototype/flatMap/null-undefined-input-throws.js
@@ -18,3 +18,4 @@ assert.throws(TypeError, function() {
assert.throws(TypeError, function() {
[].flatMap.call(void 0);
}, 'undefined');
+
diff --git a/test/built-ins/Array/prototype/flatMap/thisArg-argument.js b/test/built-ins/Array/prototype/flatMap/thisArg-argument.js
index 34db60abd..95b95ca7a 100644
--- a/test/built-ins/Array/prototype/flatMap/thisArg-argument.js
+++ b/test/built-ins/Array/prototype/flatMap/thisArg-argument.js
@@ -12,21 +12,9 @@ features: [Array.prototype.flatMap]
var a = {};
-assert(compareArray([1].flatMap(function() {
- return [this];
-}, "TestString"), ["TestString"]));
-assert(compareArray([1].flatMap(function() {
- return [this];
-}, 1), [1]));
-assert(compareArray([1].flatMap(function() {
- return [this];
-}, null), [null]));
-assert(compareArray([1].flatMap(function() {
- return [this];
-}, true), [true]));
-assert(compareArray([1].flatMap(function() {
- return [this];
-}, a), [a]));
-assert(compareArray([1].flatMap(function() {
- return [this];
-}, void 0), [undefined]));
+assert(compareArray([1].flatMap(function() { return [this]; }, "TestString"), ["TestString"]));
+assert(compareArray([1].flatMap(function() { return [this]; }, 1), [1]));
+assert(compareArray([1].flatMap(function() { return [this]; }, null), [null]));
+assert(compareArray([1].flatMap(function() { return [this]; }, true), [true]));
+assert(compareArray([1].flatMap(function() { return [this]; }, a), [a]));
+assert(compareArray([1].flatMap(function() { return [this]; }, void 0), [undefined]));
diff --git a/test/built-ins/Array/prototype/flatten/bound-function-call.js b/test/built-ins/Array/prototype/flatten/bound-function-call.js
index fd35f0975..ce4153b87 100644
--- a/test/built-ins/Array/prototype/flatten/bound-function-call.js
+++ b/test/built-ins/Array/prototype/flatten/bound-function-call.js
@@ -8,10 +8,7 @@ includes: [compareArray.js]
features: [Array.prototype.flatten]
---*/
-var a = [
- [0],
- [1]
-];
+var a = [[0],[1]];
var actual = [].flatten.bind(a)();
assert.compareArray(actual, [0, 1], 'bound flatten');
diff --git a/test/built-ins/Array/prototype/flatten/empty-array-elements.js b/test/built-ins/Array/prototype/flatten/empty-array-elements.js
index 379b1e48c..cbf2ae4b0 100644
--- a/test/built-ins/Array/prototype/flatten/empty-array-elements.js
+++ b/test/built-ins/Array/prototype/flatten/empty-array-elements.js
@@ -10,15 +10,6 @@ features: [Array.prototype.flatten]
var a = {};
assert.compareArray([].flatten(), []);
-assert.compareArray([
- [],
- []
-].flatten(), []);
-assert.compareArray([
- [],
- [1]
-].flatten(), [1]);
-assert.compareArray([
- [],
- [1, a]
-].flatten(), [1, a]);
+assert.compareArray([[], []].flatten(), []);
+assert.compareArray([[], [1]].flatten(), [1]);
+assert.compareArray([[], [1, a]].flatten(), [1, a]);
diff --git a/test/built-ins/Array/prototype/flatten/empty-object-elements.js b/test/built-ins/Array/prototype/flatten/empty-object-elements.js
index e1fcb18d3..356cab660 100644
--- a/test/built-ins/Array/prototype/flatten/empty-object-elements.js
+++ b/test/built-ins/Array/prototype/flatten/empty-object-elements.js
@@ -8,15 +8,9 @@ includes: [compareArray.js]
features: [Array.prototype.flatten]
---*/
-var a = {},
- b = {};
+var a = {}, b = {};
assert.compareArray([a].flatten(), [a]);
assert.compareArray([a, [b]].flatten(), [a, b]);
-assert.compareArray([
- [a], b
-].flatten(), [a, b]);
-assert.compareArray([
- [a],
- [b]
-].flatten(), [a, b]);
+assert.compareArray([[a], b].flatten(), [a, b]);
+assert.compareArray([[a], [b]].flatten(), [a, b]);
diff --git a/test/built-ins/Array/prototype/flatten/name.js b/test/built-ins/Array/prototype/flatten/name.js
index 6d89ae6b7..365c7e11c 100644
--- a/test/built-ins/Array/prototype/flatten/name.js
+++ b/test/built-ins/Array/prototype/flatten/name.js
@@ -18,3 +18,4 @@ assert.sameValue(
verifyNotEnumerable(Array.prototype.flatten, 'name');
verifyNotWritable(Array.prototype.flatten, 'name');
verifyConfigurable(Array.prototype.flatten, 'name');
+
diff --git a/test/built-ins/Array/prototype/flatten/null-undefined-elements.js b/test/built-ins/Array/prototype/flatten/null-undefined-elements.js
index 8211fdcc2..ef8fb3a53 100644
--- a/test/built-ins/Array/prototype/flatten/null-undefined-elements.js
+++ b/test/built-ins/Array/prototype/flatten/null-undefined-elements.js
@@ -11,10 +11,7 @@ features: [Array.prototype.flatten]
var a = [void 0];
assert(compareArray([1, null, void 0].flatten(), [1, null, undefined]));
-assert(compareArray([1, [null, void 0]].flatten(), [1, null, undefined]));
-assert(compareArray([
- [null, void 0],
- [null, void 0]
-].flatten(), [null, undefined, null, undefined]));
-assert(compareArray([1, [null, a]].flatten(1), [1, null, a]));
-assert(compareArray([1, [null, a]].flatten(2), [1, null, undefined]));
+assert(compareArray([1,[null, void 0]].flatten(), [1, null, undefined]));
+assert(compareArray([[null, void 0], [null, void 0]].flatten(), [null, undefined, null, undefined]));
+assert(compareArray([1,[null, a]].flatten(1), [1, null, a]));
+assert(compareArray([1,[null, a]].flatten(2), [1, null, undefined]));
diff --git a/test/built-ins/Array/prototype/flatten/null-undefined-input-throws.js b/test/built-ins/Array/prototype/flatten/null-undefined-input-throws.js
index d3a5a59ad..3e711223f 100644
--- a/test/built-ins/Array/prototype/flatten/null-undefined-input-throws.js
+++ b/test/built-ins/Array/prototype/flatten/null-undefined-input-throws.js
@@ -18,3 +18,4 @@ assert.throws(TypeError, function() {
assert.throws(TypeError, function() {
[].flatten.call(void 0);
}, 'undefined');
+
diff --git a/test/built-ins/Array/prototype/flatten/symbol-object-create-null-depth-throws.js b/test/built-ins/Array/prototype/flatten/symbol-object-create-null-depth-throws.js
index af58ce6b7..9bcf98ae0 100644
--- a/test/built-ins/Array/prototype/flatten/symbol-object-create-null-depth-throws.js
+++ b/test/built-ins/Array/prototype/flatten/symbol-object-create-null-depth-throws.js
@@ -14,3 +14,4 @@ assert.throws(TypeError, function() {
assert.throws(TypeError, function() {
[].flatten(Object.create(null));
}, 'object create null');
+
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-1.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-1.js
index 8e8bb7003..1f7f8df82 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-1.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-1.js
@@ -9,5 +9,5 @@ description: Array.prototype.forEach applied to undefined
assert.throws(TypeError, function() {
- Array.prototype.forEach.call(undefined); // TypeError is thrown if value is undefined
+ Array.prototype.forEach.call(undefined); // TypeError is thrown if value is undefined
});
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-10.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-10.js
index 7ba92b973..e751161d6 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-10.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-10.js
@@ -7,14 +7,14 @@ es5id: 15.4.4.18-1-10
description: Array.prototype.forEach applied to the Math object
---*/
-var result = false;
+ var result = false;
-function callbackfn(val, idx, obj) {
- result = ('[object Math]' === Object.prototype.toString.call(obj));
-}
+ function callbackfn(val, idx, obj) {
+ result = ('[object Math]' === Object.prototype.toString.call(obj));
+ }
-Math.length = 1;
-Math[0] = 1;
-Array.prototype.forEach.call(Math, callbackfn);
+ Math.length = 1;
+ Math[0] = 1;
+ Array.prototype.forEach.call(Math, callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-11.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-11.js
index 8d30c99da..2ec98784d 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-11.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-11.js
@@ -7,16 +7,15 @@ es5id: 15.4.4.18-1-11
description: Array.prototype.forEach applied to Date object
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = obj instanceof Date;
+ }
-function callbackfn(val, idx, obj) {
- result = obj instanceof Date;
-}
+ var obj = new Date();
+ obj.length = 1;
+ obj[0] = 1;
-var obj = new Date();
-obj.length = 1;
-obj[0] = 1;
-
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-12.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-12.js
index c360a8771..5e54175c6 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-12.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-12.js
@@ -7,16 +7,15 @@ es5id: 15.4.4.18-1-12
description: Array.prototype.forEach applied to RegExp object
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = obj instanceof RegExp;
+ }
-function callbackfn(val, idx, obj) {
- result = obj instanceof RegExp;
-}
+ var obj = new RegExp();
+ obj.length = 1;
+ obj[0] = 1;
-var obj = new RegExp();
-obj.length = 1;
-obj[0] = 1;
-
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-13.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-13.js
index 9759f019a..70fc43629 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-13.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-13.js
@@ -7,14 +7,13 @@ es5id: 15.4.4.18-1-13
description: Array.prototype.forEach applied to the JSON object
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = ('[object JSON]' === Object.prototype.toString.call(obj));
+ }
-function callbackfn(val, idx, obj) {
- result = ('[object JSON]' === Object.prototype.toString.call(obj));
-}
-
-JSON.length = 1;
-JSON[0] = 1;
-Array.prototype.forEach.call(JSON, callbackfn);
+ JSON.length = 1;
+ JSON[0] = 1;
+ Array.prototype.forEach.call(JSON, callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-14.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-14.js
index e6c5caa10..b7a59755a 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-14.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-14.js
@@ -7,16 +7,15 @@ es5id: 15.4.4.18-1-14
description: Array.prototype.forEach applied to Error object
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = obj instanceof Error;
+ }
-function callbackfn(val, idx, obj) {
- result = obj instanceof Error;
-}
+ var obj = new Error();
+ obj.length = 1;
+ obj[0] = 1;
-var obj = new Error();
-obj.length = 1;
-obj[0] = 1;
-
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-15.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-15.js
index 2ea3f1e44..6b9762524 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-15.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-15.js
@@ -7,16 +7,15 @@ es5id: 15.4.4.18-1-15
description: Array.prototype.forEach applied to the Arguments object
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = ('[object Arguments]' === Object.prototype.toString.call(obj));
+ }
-function callbackfn(val, idx, obj) {
- result = ('[object Arguments]' === Object.prototype.toString.call(obj));
-}
+ var obj = (function () {
+ return arguments;
+ }("a", "b"));
-var obj = (function() {
- return arguments;
-}("a", "b"));
-
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-2.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-2.js
index bce24cc3f..49ee29fb4 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-2.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-2.js
@@ -9,5 +9,5 @@ description: Array.prototype.forEach applied to null
assert.throws(TypeError, function() {
- Array.prototype.forEach.call(null); // TypeError is thrown if value is null
+ Array.prototype.forEach.call(null); // TypeError is thrown if value is null
});
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-3.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-3.js
index 6434a1a5d..fde036022 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-3.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-3.js
@@ -7,15 +7,15 @@ es5id: 15.4.4.18-1-3
description: Array.prototype.forEach applied to boolean primitive
---*/
-var result = false;
+ var result = false;
-function callbackfn(val, idx, obj) {
- result = obj instanceof Boolean;
-}
+ function callbackfn(val, idx, obj) {
+ result = obj instanceof Boolean;
+ }
-Boolean.prototype[0] = true;
-Boolean.prototype.length = 1;
+ Boolean.prototype[0] = true;
+ Boolean.prototype.length = 1;
-Array.prototype.forEach.call(false, callbackfn);
+ Array.prototype.forEach.call(false, callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-4.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-4.js
index 87304f79b..899d60a7d 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-4.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-4.js
@@ -7,17 +7,16 @@ es5id: 15.4.4.18-1-4
description: Array.prototype.forEach applied to Boolean object
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = obj instanceof Boolean;
+ }
-function callbackfn(val, idx, obj) {
- result = obj instanceof Boolean;
-}
+ var obj = new Boolean(true);
+ obj.length = 2;
+ obj[0] = 11;
+ obj[1] = 12;
-var obj = new Boolean(true);
-obj.length = 2;
-obj[0] = 11;
-obj[1] = 12;
-
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-5.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-5.js
index 7afae81ba..dbfdba7f9 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-5.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-5.js
@@ -7,15 +7,14 @@ es5id: 15.4.4.18-1-5
description: Array.prototype.forEach applied to number primitive
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = obj instanceof Number;
+ }
-function callbackfn(val, idx, obj) {
- result = obj instanceof Number;
-}
+ Number.prototype[0] = 1;
+ Number.prototype.length = 1;
-Number.prototype[0] = 1;
-Number.prototype.length = 1;
-
-Array.prototype.forEach.call(2.5, callbackfn);
+ Array.prototype.forEach.call(2.5, callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-6.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-6.js
index 8e33905df..a4417bace 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-6.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-6.js
@@ -7,17 +7,16 @@ es5id: 15.4.4.18-1-6
description: Array.prototype.forEach applied to Number object
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = obj instanceof Number;
+ }
-function callbackfn(val, idx, obj) {
- result = obj instanceof Number;
-}
+ var obj = new Number(-128);
+ obj.length = 2;
+ obj[0] = 11;
+ obj[1] = 12;
-var obj = new Number(-128);
-obj.length = 2;
-obj[0] = 11;
-obj[1] = 12;
-
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-7.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-7.js
index 7160b1c04..c85736e35 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-7.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-7.js
@@ -7,12 +7,11 @@ es5id: 15.4.4.18-1-7
description: Array.prototype.forEach applied to string primitive
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = obj instanceof String;
+ }
-function callbackfn(val, idx, obj) {
- result = obj instanceof String;
-}
-
-Array.prototype.forEach.call("abc", callbackfn);
+ Array.prototype.forEach.call("abc", callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-8.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-8.js
index 3f2027f77..6aa6ade20 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-8.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-8.js
@@ -7,13 +7,12 @@ es5id: 15.4.4.18-1-8
description: Array.prototype.forEach applied to String object
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = obj instanceof String;
+ }
-function callbackfn(val, idx, obj) {
- result = obj instanceof String;
-}
-
-var obj = new String("abc");
-Array.prototype.forEach.call(obj, callbackfn);
+ var obj = new String("abc");
+ Array.prototype.forEach.call(obj, callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-9.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-9.js
index 38cd91443..24024487f 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-9.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-9.js
@@ -7,18 +7,17 @@ es5id: 15.4.4.18-1-9
description: Array.prototype.forEach applied to Function object
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = obj instanceof Function;
+ }
-function callbackfn(val, idx, obj) {
- result = obj instanceof Function;
-}
+ var obj = function (a, b) {
+ return a + b;
+ };
+ obj[0] = 11;
+ obj[1] = 9;
-var obj = function(a, b) {
- return a + b;
-};
-obj[0] = 11;
-obj[1] = 9;
-
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-1.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-1.js
index f6d82711c..a8cacea2b 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-1.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-1.js
@@ -9,19 +9,18 @@ description: >
Array-like object
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = (obj.length === 2);
+ }
-function callbackfn(val, idx, obj) {
- result = (obj.length === 2);
-}
+ var obj = {
+ 0: 12,
+ 1: 11,
+ 2: 9,
+ length: 2
+ };
-var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: 2
-};
-
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-10.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-10.js
index a4b5e78bb..b62dda53c 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-10.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-10.js
@@ -9,29 +9,28 @@ description: >
an inherited accessor property
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = (obj.length === 2);
+ }
-function callbackfn(val, idx, obj) {
- result = (obj.length === 2);
-}
+ var proto = {};
-var proto = {};
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-Object.defineProperty(proto, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ var Con = function () { };
+ Con.prototype = proto;
-var Con = function() {};
-Con.prototype = proto;
+ var child = new Con();
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
-var child = new Con();
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
-
-Array.prototype.forEach.call(child, callbackfn);
+ Array.prototype.forEach.call(child, callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-11.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-11.js
index e9e36719e..c28736d45 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-11.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-11.js
@@ -9,21 +9,20 @@ description: >
an own accessor property without a get function
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ }
-function callbackfn(val, idx, obj) {
- accessed = true;
-}
+ var obj = {
+ 0: 11,
+ 1: 12
+ };
+ Object.defineProperty(obj, "length", {
+ set: function () { },
+ configurable: true
+ });
-var obj = {
- 0: 11,
- 1: 12
-};
-Object.defineProperty(obj, "length", {
- set: function() {},
- configurable: true
-});
-
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-12.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-12.js
index 6bb1b8f12..c8649b335 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-12.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-12.js
@@ -10,28 +10,24 @@ description: >
property on an Array
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ }
-function callbackfn(val, idx, obj) {
- accessed = true;
-}
+ Object.defineProperty(Object.prototype, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-Object.defineProperty(Object.prototype, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ var obj = { 0: 12, 1: 11 };
+ Object.defineProperty(obj, "length", {
+ set: function () { },
+ configurable: true
+ });
-var obj = {
- 0: 12,
- 1: 11
-};
-Object.defineProperty(obj, "length", {
- set: function() {},
- configurable: true
-});
-
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-13.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-13.js
index 9dac1f4a2..200cd401c 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-13.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-13.js
@@ -9,25 +9,25 @@ description: >
'length' is inherited accessor property without a get function
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ }
-var proto = {};
-Object.defineProperty(proto, "length", {
- set: function() {},
- configurable: true
-});
+ var proto = {};
+ Object.defineProperty(proto, "length", {
+ set: function () { },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child[0] = 11;
-child[1] = 12;
+ var child = new Con();
+ child[0] = 11;
+ child[1] = 12;
-Array.prototype.forEach.call(child, callbackfn);
+ Array.prototype.forEach.call(child, callbackfn);
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-14.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-14.js
index 297cdf482..a78c2fbdc 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-14.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-14.js
@@ -9,17 +9,14 @@ description: >
'length' property doesn't exist
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ }
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-17.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-17.js
index 9f2cd87c7..57e36efaa 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-17.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-17.js
@@ -9,16 +9,15 @@ description: >
implements its own property get method
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = (obj.length === 2);
+ }
-function callbackfn(val, idx, obj) {
- result = (obj.length === 2);
-}
-
-var func = function(a, b) {
- arguments[2] = 9;
- Array.prototype.forEach.call(arguments, callbackfn);
- return result;
-};
+ var func = function (a, b) {
+ arguments[2] = 9;
+ Array.prototype.forEach.call(arguments, callbackfn);
+ return result;
+ };
assert(func(12, 11), 'func(12, 11) !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-18.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-18.js
index 717904329..8089c6836 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-18.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-18.js
@@ -9,14 +9,13 @@ description: >
its own property get method
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = (obj.length === 3);
+ }
-function callbackfn(val, idx, obj) {
- result = (obj.length === 3);
-}
+ var str = new String("012");
-var str = new String("012");
-
-Array.prototype.forEach.call(str, callbackfn);
+ Array.prototype.forEach.call(str, callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-19.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-19.js
index 200ad5818..da202f158 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-19.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-19.js
@@ -9,19 +9,18 @@ description: >
implements its own property get method
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = (obj.length === 2);
+ }
-function callbackfn(val, idx, obj) {
- result = (obj.length === 2);
-}
+ var fun = function (a, b) {
+ return a + b;
+ };
+ fun[0] = 12;
+ fun[1] = 11;
+ fun[2] = 9;
-var fun = function(a, b) {
- return a + b;
-};
-fun[0] = 12;
-fun[1] = 11;
-fun[2] = 9;
-
-Array.prototype.forEach.call(fun, callbackfn);
+ Array.prototype.forEach.call(fun, callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-2.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-2.js
index 4f3c8f8c3..1f3da7255 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-2.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-2.js
@@ -7,12 +7,11 @@ es5id: 15.4.4.18-2-2
description: Array.prototype.forEach - 'length' is own data property on an Array
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = (obj.length === 2);
+ }
-function callbackfn(val, idx, obj) {
- result = (obj.length === 2);
-}
-
-[12, 11].forEach(callbackfn);
+ [12, 11].forEach(callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-3.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-3.js
index 05c761a4f..3a70a3fa1 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-3.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-3.js
@@ -9,25 +9,22 @@ description: >
overrides an inherited data property on an Array-like object
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = (obj.length === 2);
+ }
-function callbackfn(val, idx, obj) {
- result = (obj.length === 2);
-}
+ var proto = { length: 3 };
-var proto = {
- length: 3
-};
+ var Con = function () { };
+ Con.prototype = proto;
-var Con = function() {};
-Con.prototype = proto;
+ var child = new Con();
+ child.length = 2;
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
-var child = new Con();
-child.length = 2;
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
-
-Array.prototype.forEach.call(child, callbackfn);
+ Array.prototype.forEach.call(child, callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-4.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-4.js
index 9d5224333..4a5be1425 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-4.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-4.js
@@ -9,15 +9,14 @@ description: >
overrides an inherited data property on an Array
---*/
-var result = false;
-var arrProtoLen;
+ var result = false;
+ var arrProtoLen;
+ function callbackfn(val, idx, obj) {
+ result = (obj.length === 2);
+ }
-function callbackfn(val, idx, obj) {
- result = (obj.length === 2);
-}
-
-arrProtoLen = Array.prototype.length;
-Array.prototype.length = 0;
-[12, 11].forEach(callbackfn);
+ arrProtoLen = Array.prototype.length;
+ Array.prototype.length = 0;
+ [12, 11].forEach(callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-5.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-5.js
index 21fd3b12c..c261643e5 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-5.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-5.js
@@ -9,33 +9,32 @@ description: >
an own data property that overrides an inherited accessor property
---*/
-var result = false;
-
-function callbackfn(val, idx, obj) {
- result = (obj.length === 2);
-}
-
-var proto = {};
-
-Object.defineProperty(proto, "length", {
- get: function() {
- return 3;
- },
- configurable: true
-});
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-Object.defineProperty(child, "length", {
- value: 2,
- configurable: true
-});
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
-
-Array.prototype.forEach.call(child, callbackfn);
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = (obj.length === 2);
+ }
+
+ var proto = {};
+
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 3;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ Object.defineProperty(child, "length", {
+ value: 2,
+ configurable: true
+ });
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
+
+ Array.prototype.forEach.call(child, callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-6.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-6.js
index 23627c89a..e0ee2a2ed 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-6.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-6.js
@@ -9,24 +9,21 @@ description: >
an inherited data property
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = (obj.length === 2);
+ }
-function callbackfn(val, idx, obj) {
- result = (obj.length === 2);
-}
+ var proto = { length: 2 };
-var proto = {
- length: 2
-};
+ var Con = function () { };
+ Con.prototype = proto;
-var Con = function() {};
-Con.prototype = proto;
+ var child = new Con();
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
-var child = new Con();
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
-
-Array.prototype.forEach.call(child, callbackfn);
+ Array.prototype.forEach.call(child, callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-7.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-7.js
index 2fb7ebdc3..e1fc969f4 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-7.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-7.js
@@ -9,25 +9,24 @@ description: >
an own accessor property
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = (obj.length === 2);
+ }
-function callbackfn(val, idx, obj) {
- result = (obj.length === 2);
-}
+ var obj = {};
-var obj = {};
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ obj[0] = 12;
+ obj[1] = 11;
+ obj[2] = 9;
-obj[0] = 12;
-obj[1] = 11;
-obj[2] = 9;
-
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-8.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-8.js
index ee2588cd2..e1da52282 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-8.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-8.js
@@ -9,32 +9,29 @@ description: >
an own accessor property that overrides an inherited data property
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = (obj.length === 2);
+ }
-function callbackfn(val, idx, obj) {
- result = (obj.length === 2);
-}
+ var proto = { length: 3 };
-var proto = {
- length: 3
-};
+ var Con = function () { };
+ Con.prototype = proto;
-var Con = function() {};
-Con.prototype = proto;
+ var child = new Con();
-var child = new Con();
+ Object.defineProperty(child, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-Object.defineProperty(child, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
-
-Array.prototype.forEach.call(child, callbackfn);
+ Array.prototype.forEach.call(child, callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-9.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-9.js
index 98f607595..0b8017b05 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-9.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-9.js
@@ -10,37 +10,36 @@ description: >
property
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = (obj.length === 2);
+ }
-function callbackfn(val, idx, obj) {
- result = (obj.length === 2);
-}
+ var proto = {};
-var proto = {};
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 3;
+ },
+ configurable: true
+ });
-Object.defineProperty(proto, "length", {
- get: function() {
- return 3;
- },
- configurable: true
-});
+ var Con = function () { };
+ Con.prototype = proto;
-var Con = function() {};
-Con.prototype = proto;
+ var child = new Con();
-var child = new Con();
+ Object.defineProperty(child, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-Object.defineProperty(child, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
-
-Array.prototype.forEach.call(child, callbackfn);
+ Array.prototype.forEach.call(child, callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-1.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-1.js
index 61853f5ca..29126acb2 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-1.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-1.js
@@ -7,18 +7,14 @@ es5id: 15.4.4.18-3-1
description: Array.prototype.forEach - value of 'length' is undefined
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ }
-var obj = {
- 0: 0,
- 1: 1,
- length: undefined
-};
+ var obj = { 0: 0, 1: 1, length: undefined };
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-10.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-10.js
index b82073f6a..1b5fdbcfc 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-10.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-10.js
@@ -9,17 +9,14 @@ description: >
NaN)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ }
-var obj = {
- 0: 9,
- length: NaN
-};
+ var obj = { 0: 9, length: NaN };
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-11.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-11.js
index cc8e8892c..5244023de 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-11.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-11.js
@@ -9,18 +9,14 @@ description: >
positive number
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- testResult = (val > 10);
-}
+ function callbackfn(val, idx, obj) {
+ testResult = (val > 10);
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: "2"
-};
+ var obj = { 1: 11, 2: 9, length: "2" };
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-12.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-12.js
index f08f896a2..f50bbdc55 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-12.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-12.js
@@ -9,18 +9,14 @@ description: >
negative number
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- testResult = (val > 10);
-}
+ function callbackfn(val, idx, obj) {
+ testResult = (val > 10);
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: "-4294967294"
-};
+ var obj = { 1: 11, 2: 9, length: "-4294967294" };
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert.sameValue(testResult, false, 'testResult');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-13.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-13.js
index a5816b0ce..80e34f716 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-13.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-13.js
@@ -9,17 +9,13 @@ description: >
decimal number
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- testResult = (val > 10);
-}
-var obj = {
- 1: 11,
- 2: 9,
- length: "2.5"
-};
+ function callbackfn(val, idx, obj) {
+ testResult = (val > 10);
+ }
+ var obj = { 1: 11, 2: 9, length: "2.5" };
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-14.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-14.js
index a3583896a..482c69d42 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-14.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-14.js
@@ -7,17 +7,14 @@ es5id: 15.4.4.18-3-14
description: Array.prototype.forEach - 'length' is a string containing -Infinity
---*/
-var accessed2 = false;
+ var accessed2 = false;
-function callbackfn2(val, idx, obj) {
- accessed2 = true;
-}
+ function callbackfn2(val, idx, obj) {
+ accessed2 = true;
+ }
-var obj2 = {
- 0: 9,
- length: "-Infinity"
-};
+ var obj2 = { 0: 9, length: "-Infinity" };
-Array.prototype.forEach.call(obj2, callbackfn2);
+ Array.prototype.forEach.call(obj2, callbackfn2);
assert.sameValue(accessed2, false, 'accessed2');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-15.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-15.js
index 2fb4ad6e9..09b71e391 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-15.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-15.js
@@ -9,18 +9,14 @@ description: >
exponential number
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- testResult = (val > 10);
-}
+ function callbackfn(val, idx, obj) {
+ testResult = (val > 10);
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: "2E0"
-};
+ var obj = { 1: 11, 2: 9, length: "2E0" };
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-16.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-16.js
index 439583682..e6f77c16a 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-16.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-16.js
@@ -9,18 +9,14 @@ description: >
number
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- testResult = (val > 10);
-}
+ function callbackfn(val, idx, obj) {
+ testResult = (val > 10);
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: "0x0002"
-};
+ var obj = { 1: 11, 2: 9, length: "0x0002" };
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-17.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-17.js
index acf6a235d..e8ca4bd50 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-17.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-17.js
@@ -9,18 +9,14 @@ description: >
with leading zeros
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- testResult = (val > 10);
-}
+ function callbackfn(val, idx, obj) {
+ testResult = (val > 10);
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: "0002.00"
-};
+ var obj = { 1: 11, 2: 9, length: "0002.00" };
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-18.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-18.js
index 070a95aa4..7b47f80ba 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-18.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-18.js
@@ -9,17 +9,14 @@ description: >
convert to a number
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ }
-var obj = {
- 0: 9,
- length: "asdf!_"
-};
+ var obj = { 0: 9, length: "asdf!_" };
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-19.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-19.js
index 1c162f9f2..953f8ef8b 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-19.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-19.js
@@ -9,22 +9,22 @@ description: >
an own toString method.
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- testResult = (val > 10);
-}
+ function callbackfn(val, idx, obj) {
+ testResult = (val > 10);
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: {
- toString: function() {
- return '2';
- }
- }
-};
+ var obj = {
+ 1: 11,
+ 2: 9,
+ length: {
+ toString: function () {
+ return '2';
+ }
+ }
+ };
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-2.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-2.js
index 5dfb9e782..03e951271 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-2.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-2.js
@@ -9,18 +9,13 @@ description: >
true)
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(val, idx, obj) {
+ testResult = (val > 10);
+ }
-function callbackfn(val, idx, obj) {
- testResult = (val > 10);
-}
+ var obj = { 0: 11, 1: 9, length: true };
-var obj = {
- 0: 11,
- 1: 9,
- length: true
-};
-
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-20.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-20.js
index 64304dc3f..6a1fed479 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-20.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-20.js
@@ -9,22 +9,22 @@ description: >
an own valueOf method.
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- testResult = (val > 10);
-}
+ function callbackfn(val, idx, obj) {
+ testResult = (val > 10);
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: {
- valueOf: function() {
- return 2;
- }
- }
-};
+ var obj = {
+ 1: 11,
+ 2: 9,
+ length: {
+ valueOf: function () {
+ return 2;
+ }
+ }
+ };
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-21.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-21.js
index 94681a140..e2be7cdb6 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-21.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-21.js
@@ -10,30 +10,30 @@ description: >
returns a string
---*/
-var testResult = false;
-var firstStepOccured = false;
-var secondStepOccured = false;
+ var testResult = false;
+ var firstStepOccured = false;
+ var secondStepOccured = false;
-function callbackfn(val, idx, obj) {
- testResult = (val > 10);
-}
+ function callbackfn(val, idx, obj) {
+ testResult = (val > 10);
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: {
- valueOf: function() {
- firstStepOccured = true;
- return {};
- },
- toString: function() {
- secondStepOccured = true;
- return '2';
- }
- }
-};
+ var obj = {
+ 1: 11,
+ 2: 9,
+ length: {
+ valueOf: function () {
+ firstStepOccured = true;
+ return {};
+ },
+ toString: function () {
+ secondStepOccured = true;
+ return '2';
+ }
+ }
+ };
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
assert(firstStepOccured, 'firstStepOccured !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-22.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-22.js
index 1dada0650..6298b50ef 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-22.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-22.js
@@ -10,30 +10,30 @@ description: >
primitive values
---*/
-var accessed = false;
-var firstStepOccured = false;
-var secondStepOccured = false;
+ var accessed = false;
+ var firstStepOccured = false;
+ var secondStepOccured = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ }
-var obj = {
- 1: 11,
- 2: 12,
+ var obj = {
+ 1: 11,
+ 2: 12,
- length: {
- valueOf: function() {
- firstStepOccured = true;
- return {};
- },
- toString: function() {
- secondStepOccured = true;
- return {};
- }
- }
-};
+ length: {
+ valueOf: function () {
+ firstStepOccured = true;
+ return {};
+ },
+ toString: function () {
+ secondStepOccured = true;
+ return {};
+ }
+ }
+ };
assert.throws(TypeError, function() {
- Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
});
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-23.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-23.js
index d8cc31d6c..cf7cb7b30 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-23.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-23.js
@@ -10,38 +10,38 @@ description: >
methods
---*/
-var testResult = false;
-var valueOfAccessed = false;
-var toStringAccessed = false;
-
-function callbackfn(val, idx, obj) {
- testResult = (val > 10);
-}
-
-var proto = {
- valueOf: function() {
- valueOfAccessed = true;
- return 2;
- }
-};
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-
-child.toString = function() {
- toStringAccessed = true;
- return '1';
-};
-
-var obj = {
- 1: 11,
- 2: 9,
- length: child
-};
-
-Array.prototype.forEach.call(obj, callbackfn);
+ var testResult = false;
+ var valueOfAccessed = false;
+ var toStringAccessed = false;
+
+ function callbackfn(val, idx, obj) {
+ testResult = (val > 10);
+ }
+
+ var proto = {
+ valueOf: function () {
+ valueOfAccessed = true;
+ return 2;
+ }
+ };
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+
+ child.toString = function () {
+ toStringAccessed = true;
+ return '1';
+ };
+
+ var obj = {
+ 1: 11,
+ 2: 9,
+ length: child
+ };
+
+ Array.prototype.forEach.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
assert(valueOfAccessed, 'valueOfAccessed !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-24.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-24.js
index fb2da44e1..770f80e02 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-24.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-24.js
@@ -9,18 +9,18 @@ description: >
non-integer, ensure truncation occurs in the proper direction
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- testResult = (val > 10);
-}
+ function callbackfn(val, idx, obj) {
+ testResult = (val > 10);
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: 2.685
-};
+ var obj = {
+ 1: 11,
+ 2: 9,
+ length: 2.685
+ };
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-25.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-25.js
index c9e1809c7..e855f28d6 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-25.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-25.js
@@ -9,18 +9,18 @@ description: >
non-integer
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- testResult = (val > 10);
-}
+ function callbackfn(val, idx, obj) {
+ testResult = (val > 10);
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: -4294967294.5
-};
+ var obj = {
+ 1: 11,
+ 2: 9,
+ length: -4294967294.5
+ };
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert.sameValue(testResult, false, 'testResult');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-3.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-3.js
index 467960654..a98ea6176 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-3.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-3.js
@@ -9,18 +9,14 @@ description: >
0)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ }
-var obj = {
- 0: 1,
- 1: 1,
- length: 0
-};
+ var obj = { 0: 1, 1: 1, length: 0 };
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-4.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-4.js
index 1ac3e8c0b..dc457c42a 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-4.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-4.js
@@ -9,17 +9,14 @@ description: >
+0)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ }
-var obj = {
- 0: 11,
- length: +0
-};
+ var obj = { 0: 11, length: +0 };
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-5.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-5.js
index d8caecc2e..50348c00a 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-5.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-5.js
@@ -9,17 +9,14 @@ description: >
-0)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ }
-var obj = {
- 0: 11,
- length: -0
-};
+ var obj = { 0: 11, length: -0 };
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-6.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-6.js
index 1197b4816..41701e6e5 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-6.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-6.js
@@ -9,18 +9,14 @@ description: >
positive)
---*/
-var testResult1 = false;
+ var testResult1 = false;
-function callbackfn(val, idx, obj) {
- testResult1 = (val > 10);
-}
+ function callbackfn(val, idx, obj) {
+ testResult1 = (val > 10);
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: 2
-};
+ var obj = { 1: 11, 2: 9, length: 2 };
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(testResult1, 'testResult1 !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-7.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-7.js
index f3b859b9b..05ffaedf4 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-7.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-7.js
@@ -9,18 +9,14 @@ description: >
negative)
---*/
-var testResult1 = false;
+ var testResult1 = false;
-function callbackfn(val, idx, obj) {
- testResult1 = (val > 10);
-}
+ function callbackfn(val, idx, obj) {
+ testResult1 = (val > 10);
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: -4294967294
-};
+ var obj = { 1: 11, 2: 9, length: -4294967294 };
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert.sameValue(testResult1, false, 'testResult1');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-9.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-9.js
index 3d3468809..300fd705d 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-9.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-9.js
@@ -9,17 +9,14 @@ description: >
-Infinity)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ }
-var obj = {
- 0: 9,
- length: -Infinity
-};
+ var obj = { 0: 9, length: -Infinity };
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-1.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-1.js
index 81f4d15b6..0c1e6e517 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-1.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-1.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.18-4-1
description: Array.prototype.forEach throws TypeError if callbackfn is undefined
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.forEach();
+ arr.forEach();
});
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-10.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-10.js
index 0dad22c77..d9ef1c808 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-10.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-10.js
@@ -9,18 +9,15 @@ description: >
was thrown by step 2
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-Object.defineProperty(obj, "length", {
- get: function() {
- throw new Test262Error();
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ throw new Test262Error();
+ },
+ configurable: true
+ });
assert.throws(Test262Error, function() {
- Array.prototype.forEach.call(obj, undefined);
+ Array.prototype.forEach.call(obj, undefined);
});
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-11.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-11.js
index 0a9bca012..2ae6d3461 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-11.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-11.js
@@ -9,22 +9,19 @@ description: >
was thrown by step 3
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-Object.defineProperty(obj, "length", {
- get: function() {
- return {
- toString: function() {
- throw new Test262Error();
- }
- };
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ toString: function () {
+ throw new Test262Error();
+ }
+ };
+ },
+ configurable: true
+ });
assert.throws(Test262Error, function() {
- Array.prototype.forEach.call(obj, undefined);
+ Array.prototype.forEach.call(obj, undefined);
});
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-12.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-12.js
index 8bc18df1e..69581f68e 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-12.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-12.js
@@ -7,12 +7,11 @@ es5id: 15.4.4.18-4-12
description: Array.prototype.forEach - 'callbackfn' is a function
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ }
-function callbackfn(val, idx, obj) {
- accessed = true;
-}
-
-[11, 9].forEach(callbackfn);
+ [11, 9].forEach(callbackfn);
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-15.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-15.js
index 09b8a247d..1d94ede8a 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-15.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-15.js
@@ -9,29 +9,27 @@ description: >
as passing undefined for callbackfn
---*/
-var obj = {
- 10: 10
-};
-var lengthAccessed = false;
-var loopAccessed = false;
+ var obj = { 10: 10 };
+ var lengthAccessed = false;
+ var loopAccessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- lengthAccessed = true;
- return 20;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ lengthAccessed = true;
+ return 20;
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "0", {
- get: function() {
- loopAccessed = true;
- return 10;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ loopAccessed = true;
+ return 10;
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.forEach.call(obj);
+ Array.prototype.forEach.call(obj);
});
assert(lengthAccessed, 'lengthAccessed !== true');
assert.sameValue(loopAccessed, false, 'loopAccessed');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-2.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-2.js
index a26b2ea39..b3f465b79 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-2.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-2.js
@@ -9,7 +9,7 @@ description: >
unreferenced
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(ReferenceError, function() {
- arr.forEach(foo);
+ arr.forEach(foo);
});
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-3.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-3.js
index 81934e7ea..b04887033 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-3.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-3.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.18-4-3
description: Array.prototype.forEach throws TypeError if callbackfn is null
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.forEach(null);
+ arr.forEach(null);
});
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-4.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-4.js
index 399cdbf5b..b9a1d8952 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-4.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-4.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.18-4-4
description: Array.prototype.forEach throws TypeError if callbackfn is boolean
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.forEach(true);
+ arr.forEach(true);
});
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-5.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-5.js
index 866d6fdda..1ffe8b094 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-5.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-5.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.18-4-5
description: Array.prototype.forEach throws TypeError if callbackfn is number
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.forEach(5);
+ arr.forEach(5);
});
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-6.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-6.js
index 4cf36be98..146bb7df2 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-6.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-6.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.18-4-6
description: Array.prototype.forEach throws TypeError if callbackfn is string
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.forEach("abc");
+ arr.forEach("abc");
});
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-7.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-7.js
index 3379dbe02..93d142b9b 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-7.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-7.js
@@ -9,7 +9,7 @@ description: >
without Call internal method
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.forEach(new Object());
+ arr.forEach(new Object());
});
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-8.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-8.js
index 09f9862fe..9ea17000a 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-8.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-8.js
@@ -9,21 +9,18 @@ description: >
visible when an exception occurs
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-var accessed = false;
+ var accessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- accessed = true;
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ accessed = true;
+ return 2;
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.forEach.call(obj, null);
+ Array.prototype.forEach.call(obj, null);
});
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-9.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-9.js
index 75b0065b3..8600794dd 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-9.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-9.js
@@ -9,25 +9,22 @@ description: >
visible when an exception occurs
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-var accessed = false;
+ var accessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- return {
- toString: function() {
- accessed = true;
- return "2";
- }
- };
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ toString: function () {
+ accessed = true;
+ return "2";
+ }
+ };
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.forEach.call(obj, null);
+ Array.prototype.forEach.call(obj, null);
});
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-1-s.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-1-s.js
index c4b4c0df4..540b38d09 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-1-s.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-1-s.js
@@ -8,14 +8,14 @@ description: Array.prototype.forEach - thisArg not passed to strict callbackfn
flags: [noStrict]
---*/
-var innerThisCorrect = false;
+ var innerThisCorrect = false;
-function callbackfn(val, idx, obj) {
- "use strict";
- innerThisCorrect = this === undefined;
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ "use strict";
+ innerThisCorrect = this===undefined;
+ return true;
+ }
-[1].forEach(callbackfn);
+ [1].forEach(callbackfn);
assert(innerThisCorrect, 'innerThisCorrect !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-1.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-1.js
index 6dd49f78f..ae937bd6e 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-1.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-1.js
@@ -9,15 +9,14 @@ flags: [noStrict]
---*/
(function() {
- this._15_4_4_18_5_1 = false;
- var _15_4_4_18_5_1 = true;
- var result;
+ this._15_4_4_18_5_1 = false;
+ var _15_4_4_18_5_1 = true;
+ var result;
+ function callbackfn(val, idx, obj) {
+ result = this._15_4_4_18_5_1;
+ }
+ var arr = [1];
+ arr.forEach(callbackfn)
- function callbackfn(val, idx, obj) {
- result = this._15_4_4_18_5_1;
- }
- var arr = [1];
- arr.forEach(callbackfn)
-
- assert.sameValue(result, false, 'result');
+assert.sameValue(result, false, 'result');
})();
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-10.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-10.js
index 771626914..914cfafae 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-10.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-10.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.18-5-10
description: Array.prototype.forEach - Array Object can be used as thisArg
---*/
-var result = false;
-var objArray = [];
+ var result = false;
+ var objArray = [];
-function callbackfn(val, idx, obj) {
- result = (this === objArray);
-}
+ function callbackfn(val, idx, obj) {
+ result = (this === objArray);
+ }
-[11].forEach(callbackfn, objArray);
+ [11].forEach(callbackfn, objArray);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-11.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-11.js
index 9975fe11c..0f0e203b3 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-11.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-11.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.18-5-11
description: Array.prototype.forEach - String Object can be used as thisArg
---*/
-var result = false;
-var objString = new String();
+ var result = false;
+ var objString = new String();
-function callbackfn(val, idx, obj) {
- result = (this === objString);
-}
+ function callbackfn(val, idx, obj) {
+ result = (this === objString);
+ }
-[11].forEach(callbackfn, objString);
+ [11].forEach(callbackfn, objString);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-12.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-12.js
index 4aa627ea0..76e1b9567 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-12.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-12.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.18-5-12
description: Array.prototype.forEach - Boolean Object can be used as thisArg
---*/
-var result = false;
-var objBoolean = new Boolean();
+ var result = false;
+ var objBoolean = new Boolean();
-function callbackfn(val, idx, obj) {
- result = (this === objBoolean);
-}
+ function callbackfn(val, idx, obj) {
+ result = (this === objBoolean);
+ }
-[11].forEach(callbackfn, objBoolean);
+ [11].forEach(callbackfn, objBoolean);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-13.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-13.js
index 0ca2d8c48..765776976 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-13.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-13.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.18-5-13
description: Array.prototype.forEach - Number Object can be used as thisArg
---*/
-var result = false;
-var objNumber = new Number();
+ var result = false;
+ var objNumber = new Number();
-function callbackfn(val, idx, obj) {
- result = (this === objNumber);
-}
+ function callbackfn(val, idx, obj) {
+ result = (this === objNumber);
+ }
-[11].forEach(callbackfn, objNumber);
+ [11].forEach(callbackfn, objNumber);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-14.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-14.js
index 8c1b7fcd5..903355378 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-14.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-14.js
@@ -7,12 +7,11 @@ es5id: 15.4.4.18-5-14
description: Array.prototype.forEach - the Math object can be used as thisArg
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = (this === Math);
+ }
-function callbackfn(val, idx, obj) {
- result = (this === Math);
-}
-
-[11].forEach(callbackfn, Math);
+ [11].forEach(callbackfn, Math);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-15.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-15.js
index 8835b6bdc..d4154fead 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-15.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-15.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.18-5-15
description: Array.prototype.forEach - Date Object can be used as thisArg
---*/
-var result = false;
-var objDate = new Date();
+ var result = false;
+ var objDate = new Date();
-function callbackfn(val, idx, obj) {
- result = (this === objDate);
-}
+ function callbackfn(val, idx, obj) {
+ result = (this === objDate);
+ }
-[11].forEach(callbackfn, objDate);
+ [11].forEach(callbackfn, objDate);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-16.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-16.js
index a0f3cb83d..67f48ac06 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-16.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-16.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.18-5-16
description: Array.prototype.forEach - RegExp Object can be used as thisArg
---*/
-var result = false;
-var objRegExp = new RegExp();
+ var result = false;
+ var objRegExp = new RegExp();
-function callbackfn(val, idx, obj) {
- result = (this === objRegExp);
-}
+ function callbackfn(val, idx, obj) {
+ result = (this === objRegExp);
+ }
-[11].forEach(callbackfn, objRegExp);
+ [11].forEach(callbackfn, objRegExp);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-17.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-17.js
index 2aea48e64..5d9ec5130 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-17.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-17.js
@@ -7,12 +7,11 @@ es5id: 15.4.4.18-5-17
description: Array.prototype.forEach - the JSON object can be used as thisArg
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = (this === JSON);
+ }
-function callbackfn(val, idx, obj) {
- result = (this === JSON);
-}
-
-[11].forEach(callbackfn, JSON);
+ [11].forEach(callbackfn, JSON);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-18.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-18.js
index 84480af75..237bd7b38 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-18.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-18.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.18-5-18
description: Array.prototype.forEach - Error Object can be used as thisArg
---*/
-var result = false;
-var objError = new RangeError();
+ var result = false;
+ var objError = new RangeError();
-function callbackfn(val, idx, obj) {
- result = (this === objError);
-}
+ function callbackfn(val, idx, obj) {
+ result = (this === objError);
+ }
-[11].forEach(callbackfn, objError);
+ [11].forEach(callbackfn, objError);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-19.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-19.js
index cf428f440..0ffb3591d 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-19.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-19.js
@@ -9,17 +9,17 @@ description: >
thisArg
---*/
-var result = false;
-var arg;
+ var result = false;
+ var arg;
-function callbackfn(val, idx, obj) {
- result = (this === arg);
-}
+ function callbackfn(val, idx, obj) {
+ result = (this === arg);
+ }
-(function fun() {
- arg = arguments;
-}(1, 2, 3));
+ (function fun() {
+ arg = arguments;
+ }(1, 2, 3));
-[11].forEach(callbackfn, arg);
+ [11].forEach(callbackfn, arg);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-2.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-2.js
index 7c62ee13d..194c4ed48 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-2.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-2.js
@@ -7,17 +7,16 @@ es5id: 15.4.4.18-5-2
description: Array.prototype.forEach - thisArg is Object
---*/
-var res = false;
-var o = new Object();
-o.res = true;
-var result;
+ var res = false;
+ var o = new Object();
+ o.res = true;
+ var result;
+ function callbackfn(val, idx, obj)
+ {
+ result = this.res;
+ }
-function callbackfn(val, idx, obj)
-{
- result = this.res;
-}
-
-var arr = [1];
-arr.forEach(callbackfn, o)
+ var arr = [1];
+ arr.forEach(callbackfn,o)
assert.sameValue(result, true, 'result');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-21.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-21.js
index 19b8de2fa..3a3e5c962 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-21.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-21.js
@@ -8,12 +8,11 @@ description: Array.prototype.forEach - the global object can be used as thisArg
---*/
var global = this;
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = (this === global);
+ }
-function callbackfn(val, idx, obj) {
- result = (this === global);
-}
-
-[11].forEach(callbackfn, this);
+ [11].forEach(callbackfn, this);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-22.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-22.js
index 22fe09f8e..ae22b88b0 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-22.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-22.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.18-5-22
description: Array.prototype.forEach - boolean primitive can be used as thisArg
---*/
-var result = false;
+ var result = false;
-function callbackfn(val, idx, obj) {
- result = (this.valueOf() === false);
-}
+ function callbackfn(val, idx, obj) {
+ result = (this.valueOf() === false);
+ }
-[11].forEach(callbackfn, false);
+ [11].forEach(callbackfn, false);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-23.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-23.js
index c74f302aa..5fc0674f0 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-23.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-23.js
@@ -7,12 +7,11 @@ es5id: 15.4.4.18-5-23
description: Array.prototype.forEach - number primitive can be used as thisArg
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = (this.valueOf() === 101);
+ }
-function callbackfn(val, idx, obj) {
- result = (this.valueOf() === 101);
-}
-
-[11].forEach(callbackfn, 101);
+ [11].forEach(callbackfn, 101);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-24.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-24.js
index fc1c4fa6f..6b774576b 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-24.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-24.js
@@ -7,12 +7,11 @@ es5id: 15.4.4.18-5-24
description: Array.prototype.forEach - string primitive can be used as thisArg
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = (this.valueOf() === "abc");
+ }
-function callbackfn(val, idx, obj) {
- result = (this.valueOf() === "abc");
-}
-
-[11].forEach(callbackfn, "abc");
+ [11].forEach(callbackfn, "abc");
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-25.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-25.js
index af345a918..f32dd6f81 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-25.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-25.js
@@ -8,17 +8,16 @@ description: Array.prototype.forEach - thisArg not passed
flags: [noStrict]
---*/
-function innerObj() {
- this._15_4_4_18_5_25 = true;
- var _15_4_4_18_5_25 = false;
- var result;
-
- function callbackfn(val, idx, obj) {
- result = this._15_4_4_18_5_25;
- }
- var arr = [1];
- arr.forEach(callbackfn)
- this.retVal = !result;
-}
+ function innerObj() {
+ this._15_4_4_18_5_25 = true;
+ var _15_4_4_18_5_25 = false;
+ var result;
+ function callbackfn(val, idx, obj) {
+ result = this._15_4_4_18_5_25;
+ }
+ var arr = [1];
+ arr.forEach(callbackfn)
+ this.retVal = !result;
+ }
assert(new innerObj().retVal, 'new innerObj().retVal !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-3.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-3.js
index 738c6624f..7ce819a4f 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-3.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-3.js
@@ -7,17 +7,16 @@ es5id: 15.4.4.18-5-3
description: Array.prototype.forEach - thisArg is Array
---*/
-var res = false;
-var a = new Array();
-a.res = true;
-var result;
+ var res = false;
+ var a = new Array();
+ a.res = true;
+ var result;
+ function callbackfn(val, idx, obj)
+ {
+ result = this.res;
+ }
-function callbackfn(val, idx, obj)
-{
- result = this.res;
-}
-
-var arr = [1];
-arr.forEach(callbackfn, a)
+ var arr = [1];
+ arr.forEach(callbackfn,a)
assert.sameValue(result, true, 'result');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-4.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-4.js
index 6a88eded2..211bafd48 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-4.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-4.js
@@ -9,18 +9,17 @@ description: >
template(prototype)
---*/
-var res = false;
-var result;
+ var res = false;
+ var result;
+ function callbackfn(val, idx, obj)
+ {
+ result = this.res;
+ }
-function callbackfn(val, idx, obj)
-{
- result = this.res;
-}
-
-function foo() {}
-foo.prototype.res = true;
-var f = new foo();
-var arr = [1];
-arr.forEach(callbackfn, f)
+ function foo(){}
+ foo.prototype.res = true;
+ var f = new foo();
+ var arr = [1];
+ arr.forEach(callbackfn,f)
assert.sameValue(result, true, 'result');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-5.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-5.js
index eedf65b79..3f3d7ba8c 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-5.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-5.js
@@ -7,19 +7,18 @@ es5id: 15.4.4.18-5-5
description: Array.prototype.forEach - thisArg is object from object template
---*/
-var res = false;
-var result;
+ var res = false;
+ var result;
+ function callbackfn(val, idx, obj)
+ {
+ result = this.res;
+ }
-function callbackfn(val, idx, obj)
-{
- result = this.res;
-}
+ function foo(){}
+ var f = new foo();
+ f.res = true;
-function foo() {}
-var f = new foo();
-f.res = true;
-
-var arr = [1];
-arr.forEach(callbackfn, f)
+ var arr = [1];
+ arr.forEach(callbackfn,f)
assert.sameValue(result, true, 'result');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-6.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-6.js
index 00e62309b..bcbb7bb55 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-6.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-6.js
@@ -7,18 +7,17 @@ es5id: 15.4.4.18-5-6
description: Array.prototype.forEach - thisArg is function
---*/
-var res = false;
-var result;
+ var res = false;
+ var result;
+ function callbackfn(val, idx, obj)
+ {
+ result = this.res;
+ }
-function callbackfn(val, idx, obj)
-{
- result = this.res;
-}
+ function foo(){}
+ foo.res = true;
-function foo() {}
-foo.res = true;
-
-var arr = [1];
-arr.forEach(callbackfn, foo)
+ var arr = [1];
+ arr.forEach(callbackfn,foo)
assert.sameValue(result, true, 'result');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-7.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-7.js
index c5db1a536..d75504027 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-7.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-7.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.18-5-7
description: Array.prototype.forEach - built-in functions can be used as thisArg
---*/
-var result = false;
+ var result = false;
-function callbackfn(val, idx, obj) {
- result = (this === eval);
-}
+ function callbackfn(val, idx, obj) {
+ result = (this === eval);
+ }
-[11].forEach(callbackfn, eval);
+ [11].forEach(callbackfn, eval);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-9.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-9.js
index 9dede756a..81097bd2f 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-9.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-9.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.18-5-9
description: Array.prototype.forEach - Function Object can be used as thisArg
---*/
-var result = false;
-var objString = function() {};
+ var result = false;
+ var objString = function () { };
-function callbackfn(val, idx, obj) {
- result = (this === objString);
-}
+ function callbackfn(val, idx, obj) {
+ result = (this === objString);
+ }
-[11].forEach(callbackfn, objString);
+ [11].forEach(callbackfn, objString);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-1.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-1.js
index 0ee2556d6..304a95683 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-1.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-1.js
@@ -9,16 +9,15 @@ description: >
array after the call
---*/
-var callCnt = 0;
+ var callCnt = 0;
+ function callbackfn(val, idx, obj)
+ {
+ callCnt++;
+ arr[2] = 3;
+ arr[5] = 6;
+ }
-function callbackfn(val, idx, obj)
-{
- callCnt++;
- arr[2] = 3;
- arr[5] = 6;
-}
-
-var arr = [1, 2, , 4, 5];
-arr.forEach(callbackfn);
+ var arr = [1,2,,4,5];
+ arr.forEach(callbackfn);
assert.sameValue(callCnt, 5, 'callCnt');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-2.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-2.js
index 240795f06..427fee6c8 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-2.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-2.js
@@ -9,16 +9,15 @@ description: >
after the call
---*/
-var callCnt = 0;
+ var callCnt = 0;
+ function callbackfn(val, idx, obj)
+ {
+ if(callCnt == 0)
+ delete arr[3];
+ callCnt++;
+ }
-function callbackfn(val, idx, obj)
-{
- if (callCnt == 0)
- delete arr[3];
- callCnt++;
-}
-
-var arr = [1, 2, 3, 4, 5];
-arr.forEach(callbackfn)
+ var arr = [1,2,3,4,5];
+ arr.forEach(callbackfn)
assert.sameValue(callCnt, 4, 'callCnt');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-3.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-3.js
index d81ed613f..c45a36fc0 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-3.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-3.js
@@ -9,15 +9,14 @@ description: >
Array.length is decreased
---*/
-var callCnt = 0;
+ var callCnt = 0;
+ function callbackfn(val, idx, obj)
+ {
+ arr.length=3;
+ callCnt++;
+ }
-function callbackfn(val, idx, obj)
-{
- arr.length = 3;
- callCnt++;
-}
-
-var arr = [1, 2, 3, 4, 5];
-arr.forEach(callbackfn);
+ var arr = [1,2,3,4,5];
+ arr.forEach(callbackfn);
assert.sameValue(callCnt, 3, 'callCnt');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-4.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-4.js
index 96180c3ab..c178ead68 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-4.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-4.js
@@ -9,17 +9,16 @@ description: >
sparse array
---*/
-var callCnt = 0;
+ var callCnt = 0;
+ function callbackfn(val, idx, obj)
+ {
+ arr[1000] = 3;
+ callCnt++;
+ }
-function callbackfn(val, idx, obj)
-{
- arr[1000] = 3;
- callCnt++;
-}
-
-var arr = new Array(10);
-arr[1] = 1;
-arr[2] = 2;
-arr.forEach(callbackfn);
+ var arr = new Array(10);
+ arr[1] = 1;
+ arr[2] = 2;
+ arr.forEach(callbackfn);
assert.sameValue(callCnt, 2, 'callCnt');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-5.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-5.js
index 9c56fa65c..71a7d7b93 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-5.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-5.js
@@ -9,18 +9,17 @@ description: >
call when same index is also present in prototype
---*/
-var callCnt = 0;
+ var callCnt = 0;
+ function callbackfn(val, idx, obj)
+ {
+ delete arr[4];
+ callCnt++;
+ }
-function callbackfn(val, idx, obj)
-{
- delete arr[4];
- callCnt++;
-}
+ Array.prototype[4] = 5;
-Array.prototype[4] = 5;
-
-var arr = [1, 2, 3, 4, 5];
-arr.forEach(callbackfn)
-delete Array.prototype[4];
+ var arr = [1,2,3,4,5];
+ arr.forEach(callbackfn)
+ delete Array.prototype[4];
assert.sameValue(callCnt, 5, 'callCnt');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-7.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-7.js
index eb8ad48c6..ba0994154 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-7.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-7.js
@@ -9,16 +9,16 @@ description: >
after the call
---*/
-var result = false;
-var arr = [1, 2, 3, 4, 5];
+ var result = false;
+ var arr = [1, 2, 3, 4, 5];
-function callbackfn(val, Idx, obj) {
- arr[4] = 6;
- if (val >= 6) {
- result = true;
- }
-}
+ function callbackfn(val, Idx, obj) {
+ arr[4] = 6;
+ if (val >= 6) {
+ result = true;
+ }
+ }
-arr.forEach(callbackfn);
+ arr.forEach(callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-8.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-8.js
index 8a2065833..df0a1c9bc 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-8.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-8.js
@@ -7,18 +7,14 @@ es5id: 15.4.4.18-7-8
description: Array.prototype.forEach - no observable effects occur if len is 0
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ }
-var obj = {
- 0: 11,
- 1: 12,
- length: 0
-};
+ var obj = { 0: 11, 1: 12, length: 0 };
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-9.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-9.js
index 361e22528..1c9ab1037 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-9.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-9.js
@@ -9,26 +9,21 @@ description: >
number of iterations
---*/
-var called = 0;
+ var called = 0;
+ function callbackfn(val, idx, obj) {
+ called++;
+ }
-function callbackfn(val, idx, obj) {
- called++;
-}
+ var obj = { 1: 12, 2: 9, length: 2 };
-var obj = {
- 1: 12,
- 2: 9,
- length: 2
-};
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ obj.length = 3;
+ return 11;
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "0", {
- get: function() {
- obj.length = 3;
- return 11;
- },
- configurable: true
-});
-
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert.sameValue(called, 2, 'called');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-1.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-1.js
index ad7133ffb..647090637 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-1.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-1.js
@@ -9,15 +9,14 @@ description: >
been assigned values
---*/
-var callCnt = 0;
+ var callCnt = 0;
+ function callbackfn(val, idx, obj)
+ {
+ callCnt++;
+ }
-function callbackfn(val, idx, obj)
-{
- callCnt++;
-}
-
-var arr = new Array(10);
-arr[1] = undefined;
-arr.forEach(callbackfn);
+ var arr = new Array(10);
+ arr[1] = undefined;
+ arr.forEach(callbackfn);
assert.sameValue(callCnt, 1, 'callCnt');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-10.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-10.js
index b3e6e5cc3..716fc69ff 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-10.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-10.js
@@ -9,31 +9,28 @@ description: >
prototype index property not to be visited on an Array-like Object
---*/
-var accessed = false;
-var testResult = true;
+ var accessed = false;
+ var testResult = true;
-function callbackfn(val, idx, obj) {
- accessed = true;
- if (idx === 3) {
- testResult = false;
- }
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ if (idx === 3) {
+ testResult = false;
+ }
+ }
-var obj = {
- 2: 2,
- length: 20
-};
+ var obj = { 2: 2, length: 20 };
-Object.defineProperty(obj, "0", {
- get: function() {
- delete Object.prototype[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ delete Object.prototype[1];
+ return 0;
+ },
+ configurable: true
+ });
-Object.prototype[1] = 1;
-Array.prototype.forEach.call(obj, callbackfn);
+ Object.prototype[1] = 1;
+ Array.prototype.forEach.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-11.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-11.js
index 5c7ee84f7..e505e3d4d 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-11.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-11.js
@@ -9,28 +9,28 @@ description: >
prototype index property not to be visited on an Array
---*/
-var accessed = false;
-var testResult = true;
+ var accessed = false;
+ var testResult = true;
-function callbackfn(val, idx, obj) {
- accessed = true;
- if (idx === 1) {
- testResult = false;
- }
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ if (idx === 1) {
+ testResult = false;
+ }
+ }
-var arr = [0, , ];
+ var arr = [0, , ];
-Object.defineProperty(arr, "0", {
- get: function() {
- delete Array.prototype[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete Array.prototype[1];
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype[1] = 1;
-arr.forEach(callbackfn);
+ Array.prototype[1] = 1;
+ arr.forEach(callbackfn);
assert(testResult, 'testResult !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-12.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-12.js
index a7de152f1..a9350d299 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-12.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-12.js
@@ -10,29 +10,25 @@ description: >
Array-like object
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 1 && val === 1) {
- testResult = true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1 && val === 1) {
+ testResult = true;
+ }
+ }
-var obj = {
- 0: 0,
- 1: 111,
- length: 10
-};
+ var obj = { 0: 0, 1: 111, length: 10 };
-Object.defineProperty(obj, "0", {
- get: function() {
- delete obj[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ delete obj[1];
+ return 0;
+ },
+ configurable: true
+ });
-Object.prototype[1] = 1;
-Array.prototype.forEach.call(obj, callbackfn);
+ Object.prototype[1] = 1;
+ Array.prototype.forEach.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-13.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-13.js
index ecc5607a5..b0b704f1a 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-13.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-13.js
@@ -9,24 +9,24 @@ description: >
property causes prototype index property to be visited on an Array
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 1 && val === 1) {
- testResult = true;
- }
-}
-var arr = [0, 111];
+ function callbackfn(val, idx, obj) {
+ if (idx === 1 && val === 1) {
+ testResult = true;
+ }
+ }
+ var arr = [0, 111];
-Object.defineProperty(arr, "0", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype[1] = 1;
-arr.forEach(callbackfn);
+ Array.prototype[1] = 1;
+ arr.forEach(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-14.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-14.js
index 8a09839a5..8106ac8ed 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-14.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-14.js
@@ -9,27 +9,27 @@ description: >
property not to be visited
---*/
-var accessed = false;
-var testResult = true;
+ var accessed = false;
+ var testResult = true;
-function callbackfn(val, idx, obj) {
- accessed = true;
- if (idx === 3) {
- testResult = false;
- }
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ if (idx === 3) {
+ testResult = false;
+ }
+ }
-var arr = [0, 1, 2, "last"];
+ var arr = [0, 1, 2, "last"];
-Object.defineProperty(arr, "0", {
- get: function() {
- arr.length = 3;
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ arr.length = 3;
+ return 0;
+ },
+ configurable: true
+ });
-arr.forEach(callbackfn);
+ arr.forEach(callbackfn);
assert(testResult, 'testResult !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-15.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-15.js
index d92cf600a..57a7cb646 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-15.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-15.js
@@ -9,30 +9,30 @@ description: >
prototype property causes prototype index property to be visited
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 2 && val === "prototype") {
- testResult = true;
- }
-}
-var arr = [0, 1, 2];
+ function callbackfn(val, idx, obj) {
+ if (idx === 2 && val === "prototype") {
+ testResult = true;
+ }
+ }
+ var arr = [0, 1, 2];
-Object.defineProperty(Array.prototype, "2", {
- get: function() {
- return "prototype";
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "2", {
+ get: function () {
+ return "prototype";
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- arr.length = 2;
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ arr.length = 2;
+ return 1;
+ },
+ configurable: true
+ });
-arr.forEach(callbackfn);
+ arr.forEach(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-16.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-16.js
index 864b5aac6..c337ed6a7 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-16.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-16.js
@@ -10,31 +10,31 @@ description: >
flags: [noStrict]
---*/
-var testResult = false;
-
-function callbackfn(val, idx, obj) {
- if (idx === 2 && val === "unconfigurable") {
- testResult = true;
- }
-}
-
-var arr = [0, 1, 2];
-
-Object.defineProperty(arr, "2", {
- get: function() {
- return "unconfigurable";
- },
- configurable: false
-});
-
-Object.defineProperty(arr, "1", {
- get: function() {
- arr.length = 2;
- return 1;
- },
- configurable: true
-});
-
-arr.forEach(callbackfn);
+ var testResult = false;
+
+ function callbackfn(val, idx, obj) {
+ if (idx === 2 && val === "unconfigurable") {
+ testResult = true;
+ }
+ }
+
+ var arr = [0, 1, 2];
+
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ return "unconfigurable";
+ },
+ configurable: false
+ });
+
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ arr.length = 2;
+ return 1;
+ },
+ configurable: true
+ });
+
+ arr.forEach(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-2.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-2.js
index abc78638b..4d1ba1c19 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-2.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-2.js
@@ -9,24 +9,24 @@ description: >
here
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 2 && val === "length") {
- testResult = true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 2 && val === "length") {
+ testResult = true;
+ }
+ }
-var obj = {};
+ var obj = {};
-Object.defineProperty(obj, "length", {
- get: function() {
- obj[2] = "length";
- return 3;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ obj[2] = "length";
+ return 3;
+ },
+ configurable: true
+ });
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-3.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-3.js
index d949efd18..71abd46a0 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-3.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-3.js
@@ -9,29 +9,26 @@ description: >
here
---*/
-var accessed = false;
-var testResult = true;
+ var accessed = false;
+ var testResult = true;
-function callbackfn(val, idx, obj) {
- accessed = true;
- if (idx === 8) {
- testResult = false;
- }
-}
-var obj = {
- 2: 6.99,
- 8: 19
-};
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ if (idx === 8) {
+ testResult = false;
+ }
+ }
+ var obj = { 2: 6.99, 8: 19 };
-Object.defineProperty(obj, "length", {
- get: function() {
- delete obj[8];
- return 10;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ delete obj[8];
+ return 10;
+ },
+ configurable: true
+ });
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-4.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-4.js
index af22a0219..d9315e91d 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-4.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-4.js
@@ -9,31 +9,29 @@ description: >
current position are visited on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 1 && val === 1) {
- testResult = true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1 && val === 1) {
+ testResult = true;
+ }
+ }
-var obj = {
- length: 2
-};
+ var obj = { length: 2 };
-Object.defineProperty(obj, "0", {
- get: function() {
- Object.defineProperty(obj, "1", {
- get: function() {
- return 1;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-5.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-5.js
index fda33ef75..0afda4bd3 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-5.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-5.js
@@ -9,29 +9,29 @@ description: >
current position are visited on an Array
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 1 && val === 1) {
- testResult = true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1 && val === 1) {
+ testResult = true;
+ }
+ }
-var arr = [0, , 2];
+ var arr = [0, , 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- Object.defineProperty(arr, "1", {
- get: function() {
- return 1;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
-arr.forEach(callbackfn);
+ arr.forEach(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-6.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-6.js
index 8e5262582..a26a16afe 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-6.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-6.js
@@ -9,31 +9,29 @@ description: >
after current position are visited on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 1 && val === 6.99) {
- testResult = true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1 && val === 6.99) {
+ testResult = true;
+ }
+ }
-var obj = {
- length: 2
-};
+ var obj = { length: 2 };
-Object.defineProperty(obj, "0", {
- get: function() {
- Object.defineProperty(Object.prototype, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ Object.defineProperty(Object.prototype, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-7.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-7.js
index 11d9bd6ec..48619ba10 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-7.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-7.js
@@ -9,29 +9,29 @@ description: >
after current position are visited on an Array
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 1 && val === 6.99) {
- testResult = true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1 && val === 6.99) {
+ testResult = true;
+ }
+ }
-var arr = [0, , 2];
+ var arr = [0, , 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- Object.defineProperty(Array.prototype, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ Object.defineProperty(Array.prototype, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
-arr.forEach(callbackfn);
+ arr.forEach(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-8.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-8.js
index 0e7f8c308..d850238c6 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-8.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-8.js
@@ -9,36 +9,34 @@ description: >
property not to be visited on an Array-like object
---*/
-var accessed = false;
-var testResult = true;
-
-function callbackfn(val, idx, obj) {
- accessed = true;
- if (idx === 1) {
- testResult = false;
- }
-}
-
-var obj = {
- length: 2
-};
-
-Object.defineProperty(obj, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
-});
-
-Object.defineProperty(obj, "0", {
- get: function() {
- delete obj[1];
- return 0;
- },
- configurable: true
-});
-
-Array.prototype.forEach.call(obj, callbackfn);
+ var accessed = false;
+ var testResult = true;
+
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ if (idx === 1) {
+ testResult = false;
+ }
+ }
+
+ var obj = { length: 2 };
+
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ delete obj[1];
+ return 0;
+ },
+ configurable: true
+ });
+
+ Array.prototype.forEach.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-9.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-9.js
index aa579d22b..b9fda4c35 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-9.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-9.js
@@ -9,34 +9,34 @@ description: >
property not to be visited on an Array
---*/
-var accessed = false;
-var testResult = true;
-
-function callbackfn(val, idx, obj) {
- accessed = true;
- if (idx === 1) {
- testResult = false;
- }
-}
-
-var arr = [1, 2];
-
-Object.defineProperty(arr, "1", {
- get: function() {
- return "6.99";
- },
- configurable: true
-});
-
-Object.defineProperty(arr, "0", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
-
-arr.forEach(callbackfn);
+ var accessed = false;
+ var testResult = true;
+
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ if (idx === 1) {
+ testResult = false;
+ }
+ }
+
+ var arr = [1, 2];
+
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return "6.99";
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
+
+ arr.forEach(callbackfn);
assert(testResult, 'testResult !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-1.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-1.js
index 4261196fb..8983f724e 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-1.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-1.js
@@ -9,20 +9,17 @@ description: >
property on an Array-like object
---*/
-var kValue = {};
-var testResult = false;
+ var kValue = { };
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 5) {
- testResult = (val === kValue);
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 5) {
+ testResult = (val === kValue);
+ }
+ }
-var obj = {
- 5: kValue,
- length: 100
-};
+ var obj = { 5: kValue, length: 100 };
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-10.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-10.js
index 1411c10bd..4b6a3b8aa 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-10.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-10.js
@@ -9,23 +9,23 @@ description: >
property on an Array
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 2) {
- testResult = (val === 12);
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 2) {
+ testResult = (val === 12);
+ }
+ }
-var arr = [];
+ var arr = [];
-Object.defineProperty(arr, "2", {
- get: function() {
- return 12;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ return 12;
+ },
+ configurable: true
+ });
-arr.forEach(callbackfn);
+ arr.forEach(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-11.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-11.js
index b313ad7c6..d886a548f 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-11.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-11.js
@@ -10,31 +10,29 @@ description: >
Array-like object
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- testResult = (val === 11);
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ testResult = (val === 11);
+ }
+ }
-var proto = {
- 0: 5
-};
+ var proto = { 0: 5 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child.length = 10;
+ var child = new Con();
+ child.length = 10;
-Object.defineProperty(child, "0", {
- get: function() {
- return 11;
- },
- configurable: true
-});
+ Object.defineProperty(child, "0", {
+ get: function () {
+ return 11;
+ },
+ configurable: true
+ });
-Array.prototype.forEach.call(child, callbackfn);
+ Array.prototype.forEach.call(child, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-12.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-12.js
index 493e9632c..8c97ccda4 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-12.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-12.js
@@ -9,25 +9,25 @@ description: >
property that overrides an inherited data property on an Array
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- testResult = (val === 111);
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ testResult = (val === 111);
+ }
+ }
-var arr = [];
+ var arr = [];
-Array.prototype[0] = 10;
+ Array.prototype[0] = 10;
-Object.defineProperty(arr, "0", {
- get: function() {
- return 111;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ return 111;
+ },
+ configurable: true
+ });
-arr.forEach(callbackfn);
+ arr.forEach(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-13.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-13.js
index c3d66f5f4..5b5966bd8 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-13.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-13.js
@@ -10,37 +10,37 @@ description: >
Array-like object
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- testResult = (val === 12);
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ testResult = (val === 12);
+ }
+ }
-var proto = {};
+ var proto = {};
-Object.defineProperty(proto, "1", {
- get: function() {
- return 6;
- },
- configurable: true
-});
+ Object.defineProperty(proto, "1", {
+ get: function () {
+ return 6;
+ },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child.length = 10;
+ var child = new Con();
+ child.length = 10;
-Object.defineProperty(child, "1", {
- get: function() {
- return 12;
- },
- configurable: true
-});
+ Object.defineProperty(child, "1", {
+ get: function () {
+ return 12;
+ },
+ configurable: true
+ });
-Array.prototype.forEach.call(child, callbackfn);
+ Array.prototype.forEach.call(child, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-14.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-14.js
index e87ed433e..8222ec722 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-14.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-14.js
@@ -9,30 +9,30 @@ description: >
property that overrides an inherited accessor property on an Array
---*/
-var testResult = false;
-
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- testResult = (val === 11);
- }
-}
-
-var arr = [];
-
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return 5;
- },
- configurable: true
-});
-
-Object.defineProperty(arr, "0", {
- get: function() {
- return 11;
- },
- configurable: true
-});
-
-arr.forEach(callbackfn);
+ var testResult = false;
+
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ testResult = (val === 11);
+ }
+ }
+
+ var arr = [];
+
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return 5;
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ return 11;
+ },
+ configurable: true
+ });
+
+ arr.forEach(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-15.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-15.js
index 5eebc81ea..4782e16db 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-15.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-15.js
@@ -9,29 +9,29 @@ description: >
accessor property on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- testResult = (val === 11);
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ testResult = (val === 11);
+ }
+ }
-var proto = {};
+ var proto = {};
-Object.defineProperty(proto, "1", {
- get: function() {
- return 11;
- },
- configurable: true
-});
+ Object.defineProperty(proto, "1", {
+ get: function () {
+ return 11;
+ },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child.length = 20;
+ var child = new Con();
+ child.length = 20;
-Array.prototype.forEach.call(child, callbackfn);
+ Array.prototype.forEach.call(child, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-16.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-16.js
index bf0c514cc..5abba48e7 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-16.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-16.js
@@ -9,21 +9,21 @@ description: >
accessor property on an Array
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- testResult = (val === 11);
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ testResult = (val === 11);
+ }
+ }
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return 11;
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return 11;
+ },
+ configurable: true
+ });
-[, , , ].forEach(callbackfn);
+ [, , , ].forEach(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-17.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-17.js
index c63d80321..a3258cbd5 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-17.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-17.js
@@ -9,22 +9,20 @@ description: >
property without a get function on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- testResult = (typeof val === "undefined");
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ testResult = (typeof val === "undefined");
+ }
+ }
-var obj = {
- length: 2
-};
-Object.defineProperty(obj, "1", {
- set: function() {},
- configurable: true
-});
+ var obj = { length: 2 };
+ Object.defineProperty(obj, "1", {
+ set: function () { },
+ configurable: true
+ });
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-18.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-18.js
index ae7114850..a6a8df077 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-18.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-18.js
@@ -9,21 +9,21 @@ description: >
property without a get function on an Array
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- testResult = (typeof val === "undefined");
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ testResult = (typeof val === "undefined");
+ }
+ }
-var arr = [];
+ var arr = [];
-Object.defineProperty(arr, "0", {
- set: function() {},
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ set: function () { },
+ configurable: true
+ });
-arr.forEach(callbackfn);
+ arr.forEach(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-19.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-19.js
index 2c1a00be6..12b0e0f29 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-19.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-19.js
@@ -10,30 +10,28 @@ description: >
accessor property on an Array-like object
---*/
-var testResult = false;
-
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- testResult = (typeof val === "undefined");
- }
-}
-
-var obj = {
- length: 2
-};
-
-Object.defineProperty(obj, "1", {
- set: function() {},
- configurable: true
-});
-
-Object.defineProperty(Object.prototype, "1", {
- get: function() {
- return 10;
- },
- configurable: true
-});
-
-Array.prototype.forEach.call(obj, callbackfn);
+ var testResult = false;
+
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ testResult = (typeof val === "undefined");
+ }
+ }
+
+ var obj = { length: 2 };
+
+ Object.defineProperty(obj, "1", {
+ set: function () { },
+ configurable: true
+ });
+
+ Object.defineProperty(Object.prototype, "1", {
+ get: function () {
+ return 10;
+ },
+ configurable: true
+ });
+
+ Array.prototype.forEach.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-2.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-2.js
index c5c0e5942..03ba5f4a1 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-2.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-2.js
@@ -9,14 +9,14 @@ description: >
property on an Array
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- testResult = (val === 11);
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ testResult = (val === 11);
+ }
+ }
-[11].forEach(callbackfn);
+ [11].forEach(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-20.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-20.js
index 3d12eb668..6bd5c5402 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-20.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-20.js
@@ -10,28 +10,28 @@ description: >
accessor property on an Array
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- testResult = (typeof val === "undefined");
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ testResult = (typeof val === "undefined");
+ }
+ }
-var arr = [];
+ var arr = [];
-Object.defineProperty(arr, "0", {
- set: function() {},
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ set: function () { },
+ configurable: true
+ });
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return 100;
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return 100;
+ },
+ configurable: true
+ });
-arr.forEach(callbackfn);
+ arr.forEach(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-21.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-21.js
index a185cb0a0..d952c57dc 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-21.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-21.js
@@ -9,26 +9,26 @@ description: >
accessor property without a get function on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- testResult = (typeof val === "undefined");
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ testResult = (typeof val === "undefined");
+ }
+ }
-var proto = {};
-Object.defineProperty(proto, "1", {
- set: function() {},
- configurable: true
-});
+ var proto = {};
+ Object.defineProperty(proto, "1", {
+ set: function () { },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child.length = 2;
+ var child = new Con();
+ child.length = 2;
-Array.prototype.forEach.call(child, callbackfn);
+ Array.prototype.forEach.call(child, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-22.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-22.js
index c3ccfca7b..baf2b2bcf 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-22.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-22.js
@@ -9,19 +9,19 @@ description: >
accessor property without a get function on an Array
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- testResult = (typeof val === "undefined");
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ testResult = (typeof val === "undefined");
+ }
+ }
-Object.defineProperty(Array.prototype, "0", {
- set: function() {},
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ set: function () { },
+ configurable: true
+ });
-[, 1].forEach(callbackfn);
+ [, 1].forEach(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-25.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-25.js
index 7f192e129..51930b840 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-25.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-25.js
@@ -10,18 +10,18 @@ description: >
is less than number of parameters)
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- testResult = (val === 11);
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ testResult = (val === 11);
+ }
+ }
-var func = function(a, b) {
- return Array.prototype.forEach.call(arguments, callbackfn);
-};
+ var func = function (a, b) {
+ return Array.prototype.forEach.call(arguments, callbackfn);
+ };
-func(11);
+ func(11);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-26.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-26.js
index 22775361f..51aefae34 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-26.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-26.js
@@ -10,27 +10,27 @@ description: >
equals number of parameters)
---*/
-var called = 0;
-var testResult = false;
+ var called = 0;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- called++;
- if (called !== 1 && !testResult) {
- return;
- }
- if (idx === 0) {
- testResult = (val === 11);
- } else if (idx === 1) {
- testResult = (val === 9);
- } else {
- testResult = false;
- }
-}
+ function callbackfn(val, idx, obj) {
+ called++;
+ if (called !== 1 && !testResult) {
+ return;
+ }
+ if (idx === 0) {
+ testResult = (val === 11);
+ } else if (idx === 1) {
+ testResult = (val === 9);
+ } else {
+ testResult = false;
+ }
+ }
-var func = function(a, b) {
- Array.prototype.forEach.call(arguments, callbackfn);
-};
+ var func = function (a, b) {
+ Array.prototype.forEach.call(arguments, callbackfn);
+ };
-func(11, 9);
+ func(11, 9);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-27.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-27.js
index 8ae05bc5a..21734ecca 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-27.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-27.js
@@ -10,29 +10,29 @@ description: >
is greater than number of parameters)
---*/
-var called = 0;
-var testResult = false;
+ var called = 0;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- called++;
- if (called !== 1 && !testResult) {
- return;
- }
- if (idx === 0) {
- testResult = (val === 11);
- } else if (idx === 1) {
- testResult = (val === 12);
- } else if (idx === 2) {
- testResult = (val === 9);
- } else {
- testResult = false;
- }
-}
+ function callbackfn(val, idx, obj) {
+ called++;
+ if (called !== 1 && !testResult) {
+ return;
+ }
+ if (idx === 0) {
+ testResult = (val === 11);
+ } else if (idx === 1) {
+ testResult = (val === 12);
+ } else if (idx === 2) {
+ testResult = (val === 9);
+ } else {
+ testResult = false;
+ }
+ }
-var func = function(a, b) {
- return Array.prototype.forEach.call(arguments, callbackfn);
-};
+ var func = function (a, b) {
+ return Array.prototype.forEach.call(arguments, callbackfn);
+ };
-func(11, 12, 9);
+ func(11, 12, 9);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-28.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-28.js
index ca2a6f902..7bf828719 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-28.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-28.js
@@ -9,35 +9,35 @@ description: >
iterations is observed on an Array
---*/
-var preIterVisible = false;
-var arr = [];
-var testResult = false;
+ var preIterVisible = false;
+ var arr = [];
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- testResult = (val === 9);
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ testResult = (val === 9);
+ }
+ }
-Object.defineProperty(arr, "0", {
- get: function() {
- preIterVisible = true;
- return 11;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ preIterVisible = true;
+ return 11;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- if (preIterVisible) {
- return 9;
- } else {
- return 13;
- }
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ if (preIterVisible) {
+ return 9;
+ } else {
+ return 13;
+ }
+ },
+ configurable: true
+ });
-arr.forEach(callbackfn);
+ arr.forEach(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-29.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-29.js
index 12f468ac7..9d9da525a 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-29.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-29.js
@@ -9,37 +9,35 @@ description: >
iterations is observed on an Array-like object
---*/
-var preIterVisible = false;
-var obj = {
- length: 2
-};
-var testResult = false;
+ var preIterVisible = false;
+ var obj = { length: 2 };
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- testResult = (val === 9);
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ testResult = (val === 9);
+ }
+ }
-Object.defineProperty(obj, "0", {
- get: function() {
- preIterVisible = true;
- return 11;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ preIterVisible = true;
+ return 11;
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "1", {
- get: function() {
- if (preIterVisible) {
- return 9;
- } else {
- return 13;
- }
- },
- configurable: true
-});
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ if (preIterVisible) {
+ return 9;
+ } else {
+ return 13;
+ }
+ },
+ configurable: true
+ });
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-3.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-3.js
index 7ee64853f..c7abc31d7 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-3.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-3.js
@@ -9,26 +9,24 @@ description: >
property that overrides an inherited data property on an Array
---*/
-var kValue = "abc";
-var testResult = false;
+ var kValue = "abc";
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 5) {
- testResult = (val === kValue);
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 5) {
+ testResult = (val === kValue);
+ }
+ }
-var proto = {
- 5: 100
-};
+ var proto = { 5: 100 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child[5] = kValue;
-child.length = 10;
+ var child = new Con();
+ child[5] = kValue;
+ child.length = 10;
-Array.prototype.forEach.call(child, callbackfn);
+ Array.prototype.forEach.call(child, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-30.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-30.js
index 2ded257f9..0787f9b95 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-30.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-30.js
@@ -9,35 +9,30 @@ description: >
terminate iteration on an Array-like object
---*/
-var obj = {
- 0: 11,
- 5: 10,
- 10: 8,
- length: 20
-};
-var accessed = false;
+ var obj = { 0: 11, 5: 10, 10: 8, length: 20 };
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- if (idx > 1) {
- accessed = true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx > 1) {
+ accessed = true;
+ }
+ }
-Object.defineProperty(obj, "1", {
- get: function() {
- throw new RangeError("unhandle exception happened in getter");
- },
- configurable: true
-});
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ throw new RangeError("unhandle exception happened in getter");
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "2", {
- get: function() {
- accessed = true;
- return 100;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "2", {
+ get: function () {
+ accessed = true;
+ return 100;
+ },
+ configurable: true
+ });
assert.throws(RangeError, function() {
- Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
});
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-31.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-31.js
index b6745f6d1..e8da569a8 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-31.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-31.js
@@ -9,33 +9,33 @@ description: >
terminate iteration on an Array-like object
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- if (idx > 1) {
- accessed = true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx > 1) {
+ accessed = true;
+ }
+ }
-var arr = [];
-arr[5] = 10;
-arr[10] = 100;
+ var arr = [];
+ arr[5] = 10;
+ arr[10] = 100;
-Object.defineProperty(arr, "1", {
- get: function() {
- throw new RangeError("unhandle exception happened in getter");
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ throw new RangeError("unhandle exception happened in getter");
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "2", {
- get: function() {
- accessed = true;
- return 100;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ accessed = true;
+ return 100;
+ },
+ configurable: true
+ });
assert.throws(RangeError, function() {
- arr.forEach(callbackfn);
+ arr.forEach(callbackfn);
});
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-4.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-4.js
index 3aa9c4573..ed8fffe01 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-4.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-4.js
@@ -9,16 +9,16 @@ description: >
property that overrides an inherited data property on an Array
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- testResult = (val === 12);
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ testResult = (val === 12);
+ }
+ }
-Array.prototype[0] = 11;
+ Array.prototype[0] = 11;
-[12].forEach(callbackfn);
+ [12].forEach(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-5.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-5.js
index 0cba85375..4ddef569a 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-5.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-5.js
@@ -10,33 +10,33 @@ description: >
Array-like object
---*/
-var testResult = false;
-
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- testResult = (val === 11);
- }
-}
-
-var proto = {};
-
-Object.defineProperty(proto, "0", {
- get: function() {
- return 5;
- },
- configurable: true
-});
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-child.length = 2;
-Object.defineProperty(child, "0", {
- value: 11,
- configurable: true
-});
-
-Array.prototype.forEach.call(child, callbackfn);
+ var testResult = false;
+
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ testResult = (val === 11);
+ }
+ }
+
+ var proto = {};
+
+ Object.defineProperty(proto, "0", {
+ get: function () {
+ return 5;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 2;
+ Object.defineProperty(child, "0", {
+ value: 11,
+ configurable: true
+ });
+
+ Array.prototype.forEach.call(child, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-6.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-6.js
index 213de16bd..691feab76 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-6.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-6.js
@@ -9,21 +9,21 @@ description: >
property that overrides an inherited accessor property on an Array
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- testResult = (val === 11);
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ testResult = (val === 11);
+ }
+ }
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return 9;
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return 9;
+ },
+ configurable: true
+ });
-[11].forEach(callbackfn);
+ [11].forEach(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-7.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-7.js
index 28f747e83..75d5890f8 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-7.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-7.js
@@ -9,25 +9,23 @@ description: >
data property on an Array-like object
---*/
-var kValue = 'abc';
-var testResult = false;
+ var kValue = 'abc';
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 5) {
- testResult = (val === kValue);
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 5) {
+ testResult = (val === kValue);
+ }
+ }
-var proto = {
- 5: kValue
-};
+ var proto = { 5: kValue };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child.length = 10;
+ var child = new Con();
+ child.length = 10;
-Array.prototype.forEach.call(child, callbackfn);
+ Array.prototype.forEach.call(child, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-8.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-8.js
index 9ede560ba..8943de818 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-8.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-8.js
@@ -9,16 +9,16 @@ description: >
data property on an Array
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- testResult = (val === 13);
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ testResult = (val === 13);
+ }
+ }
-Array.prototype[1] = 13;
+ Array.prototype[1] = 13;
-[, , , ].forEach(callbackfn);
+ [, , , ].forEach(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-9.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-9.js
index 51c77ca23..d2fc330af 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-9.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-9.js
@@ -9,26 +9,23 @@ description: >
property on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- testResult = (val === 11);
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ testResult = (val === 11);
+ }
+ }
-var obj = {
- 10: 10,
- length: 20
-};
+ var obj = { 10: 10, length: 20 };
-Object.defineProperty(obj, "0", {
- get: function() {
- return 11;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ return 11;
+ },
+ configurable: true
+ });
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-1.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-1.js
index e0eb47829..189dc1a57 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-1.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-1.js
@@ -7,19 +7,18 @@ es5id: 15.4.4.18-7-c-ii-1
description: Array.prototype.forEach - callbackfn called with correct parameters
---*/
-var bPar = true;
-var bCalled = false;
+ var bPar = true;
+ var bCalled = false;
+ function callbackfn(val, idx, obj)
+ {
+ bCalled = true;
+ if(obj[idx] !== val)
+ bPar = false;
+ }
-function callbackfn(val, idx, obj)
-{
- bCalled = true;
- if (obj[idx] !== val)
- bPar = false;
-}
-
-var arr = [0, 1, true, null, new Object(), "five"];
-arr[999999] = -6.6;
-arr.forEach(callbackfn);
+ var arr = [0,1,true,null,new Object(),"five"];
+ arr[999999] = -6.6;
+ arr.forEach(callbackfn);
assert.sameValue(bCalled, true, 'bCalled');
assert.sameValue(bPar, true, 'bPar');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-10.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-10.js
index 1f6e4baa3..4e44bb713 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-10.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-10.js
@@ -9,12 +9,11 @@ description: >
parameter
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val) {
+ result = (val > 10);
+ }
-function callbackfn(val) {
- result = (val > 10);
-}
-
-[11].forEach(callbackfn);
+ [11].forEach(callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-11.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-11.js
index a2991bb19..f0a81a871 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-11.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-11.js
@@ -9,12 +9,11 @@ description: >
parameter
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx) {
+ result = (val > 10 && arguments[2][idx] === val);
+ }
-function callbackfn(val, idx) {
- result = (val > 10 && arguments[2][idx] === val);
-}
-
-[11].forEach(callbackfn);
+ [11].forEach(callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-12.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-12.js
index 667bec227..af31ca180 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-12.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-12.js
@@ -9,12 +9,11 @@ description: >
parameter
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = (val > 10 && obj[idx] === val);
+ }
-function callbackfn(val, idx, obj) {
- result = (val > 10 && obj[idx] === val);
-}
-
-[11].forEach(callbackfn);
+ [11].forEach(callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-13.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-13.js
index 46a0ec317..80df8a419 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-13.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-13.js
@@ -7,12 +7,11 @@ es5id: 15.4.4.18-7-c-ii-13
description: Array.prototype.forEach - callbackfn that uses arguments
---*/
-var result = false;
+ var result = false;
+ function callbackfn() {
+ result = (arguments[2][arguments[1]] === arguments[0]);
+ }
-function callbackfn() {
- result = (arguments[2][arguments[1]] === arguments[0]);
-}
-
-[11].forEach(callbackfn);
+ [11].forEach(callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-16.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-16.js
index 739bae5f3..ef9ff8c4f 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-16.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-16.js
@@ -9,17 +9,13 @@ description: >
object when T is not an object (T is a boolean)
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = (this.valueOf() !== false);
+ }
-function callbackfn(val, idx, obj) {
- result = (this.valueOf() !== false);
-}
+ var obj = { 0: 11, length: 2 };
-var obj = {
- 0: 11,
- length: 2
-};
-
-Array.prototype.forEach.call(obj, callbackfn, false);
+ Array.prototype.forEach.call(obj, callbackfn, false);
assert.sameValue(result, false, 'result');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-17.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-17.js
index 44e2e9bac..8967922b2 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-17.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-17.js
@@ -9,17 +9,13 @@ description: >
object when T is not an object (T is a number)
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, o) {
+ result = (5 === this.valueOf());
+ }
-function callbackfn(val, idx, o) {
- result = (5 === this.valueOf());
-}
+ var obj = { 0: 11, length: 2 };
-var obj = {
- 0: 11,
- length: 2
-};
-
-Array.prototype.forEach.call(obj, callbackfn, 5);
+ Array.prototype.forEach.call(obj, callbackfn, 5);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-18.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-18.js
index 3cf057a31..3b073f019 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-18.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-18.js
@@ -9,17 +9,13 @@ description: >
object when T is not an object (T is a string)
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = ('hello' === this.valueOf());
+ }
-function callbackfn(val, idx, obj) {
- result = ('hello' === this.valueOf());
-}
+ var obj = { 0: 11, length: 2 };
-var obj = {
- 0: 11,
- length: 2
-};
-
-Array.prototype.forEach.call(obj, callbackfn, "hello");
+ Array.prototype.forEach.call(obj, callbackfn, "hello");
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-19.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-19.js
index df0f1401e..677a50236 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-19.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-19.js
@@ -7,24 +7,18 @@ es5id: 15.4.4.18-7-c-ii-19
description: Array.prototype.forEach - non-indexed properties are not called
---*/
-var accessed = false;
-var result = true;
+ var accessed = false;
+ var result = true;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ if (val === 8) {
+ result = false;
+ }
+ }
-function callbackfn(val, idx, obj) {
- accessed = true;
- if (val === 8) {
- result = false;
- }
-}
+ var obj = { 0: 11, 10: 12, non_index_property: 8, length: 20 };
-var obj = {
- 0: 11,
- 10: 12,
- non_index_property: 8,
- length: 20
-};
-
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(result, 'result !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-2.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-2.js
index 6dcd31b13..4140f28cb 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-2.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-2.js
@@ -7,18 +7,17 @@ es5id: 15.4.4.18-7-c-ii-2
description: Array.prototype.forEach - callbackfn takes 3 arguments
---*/
-var parCnt = 3;
-var bCalled = false
+ var parCnt = 3;
+ var bCalled = false
+ function callbackfn(val, idx, obj)
+ {
+ bCalled = true;
+ if(arguments.length !== 3)
+ parCnt = arguments.length; //verify if callbackfn was called with 3 parameters
+ }
-function callbackfn(val, idx, obj)
-{
- bCalled = true;
- if (arguments.length !== 3)
- parCnt = arguments.length; //verify if callbackfn was called with 3 parameters
-}
-
-var arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
-arr.forEach(callbackfn);
+ var arr = [0,1,2,3,4,5,6,7,8,9];
+ arr.forEach(callbackfn);
assert.sameValue(bCalled, true, 'bCalled');
assert.sameValue(parCnt, 3, 'parCnt');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-20.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-20.js
index d0a6f846d..cf6b3fe8b 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-20.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-20.js
@@ -9,21 +9,15 @@ description: >
parameters (thisArg is correct)
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = (10 === this.threshold);
+ }
-function callbackfn(val, idx, obj) {
- result = (10 === this.threshold);
-}
+ var thisArg = { threshold: 10 };
-var thisArg = {
- threshold: 10
-};
+ var obj = { 0: 11, length: 1 };
-var obj = {
- 0: 11,
- length: 1
-};
-
-Array.prototype.forEach.call(obj, callbackfn, thisArg);
+ Array.prototype.forEach.call(obj, callbackfn, thisArg);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-21.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-21.js
index a165b4820..987960625 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-21.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-21.js
@@ -9,27 +9,23 @@ description: >
parameters (kValue is correct)
---*/
-var resultOne = false;
-var resultTwo = false;
+ var resultOne = false;
+ var resultTwo = false;
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- resultOne = (val === 11);
- }
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ resultOne = (val === 11);
+ }
- if (idx === 1) {
- resultTwo = (val === 12);
- }
+ if (idx === 1) {
+ resultTwo = (val === 12);
+ }
-}
+ }
-var obj = {
- 0: 11,
- 1: 12,
- length: 2
-};
+ var obj = { 0: 11, 1: 12, length: 2 };
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(resultOne, 'resultOne !== true');
assert(resultTwo, 'resultTwo !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-22.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-22.js
index 8b29f06da..3f7fa9349 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-22.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-22.js
@@ -9,27 +9,23 @@ description: >
parameters (the index k is correct)
---*/
-var resultOne = false;
-var resultTwo = false;
+ var resultOne = false;
+ var resultTwo = false;
-function callbackfn(val, idx, obj) {
- if (val === 11) {
- resultOne = (idx === 0);
- }
+ function callbackfn(val, idx, obj) {
+ if (val === 11) {
+ resultOne = (idx === 0);
+ }
- if (val === 12) {
- resultTwo = (idx === 1);
- }
+ if (val === 12) {
+ resultTwo = (idx === 1);
+ }
-}
+ }
-var obj = {
- 0: 11,
- 1: 12,
- length: 2
-};
+ var obj = { 0: 11, 1: 12, length: 2 };
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(resultOne, 'resultOne !== true');
assert(resultTwo, 'resultTwo !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-23.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-23.js
index 24ae74378..559f0ea68 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-23.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-23.js
@@ -9,16 +9,13 @@ description: >
parameters (this object O is correct)
---*/
-var result = false;
-var obj = {
- 0: 11,
- length: 2
-};
+ var result = false;
+ var obj = { 0: 11, length: 2 };
-function callbackfn(val, idx, o) {
- result = (obj === o);
-}
+ function callbackfn(val, idx, o) {
+ result = (obj === o);
+ }
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-4.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-4.js
index 89d2da4a0..aafb439dd 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-4.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-4.js
@@ -9,21 +9,20 @@ description: >
order
---*/
-var arr = [0, 1, 2, 3, 4, 5];
-var lastIdx = 0;
-var called = 0;
-var result = true;
+ var arr = [0, 1, 2, 3, 4, 5];
+ var lastIdx = 0;
+ var called = 0;
+ var result = true;
+ function callbackfn(val, idx, o) {
+ called++;
+ if (lastIdx !== idx) {
+ result = false;
+ } else {
+ lastIdx++;
+ }
+ }
-function callbackfn(val, idx, o) {
- called++;
- if (lastIdx !== idx) {
- result = false;
- } else {
- lastIdx++;
- }
-}
-
-arr.forEach(callbackfn);
+ arr.forEach(callbackfn);
assert(result, 'result !== true');
assert.sameValue(arr.length, called, 'arr.length');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-5.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-5.js
index 1b597b8ed..11159ba6f 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-5.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-5.js
@@ -9,23 +9,23 @@ description: >
iteration and not prior to starting the loop on an Array
---*/
-var result = true;
-var kIndex = [];
+ var result = true;
+ var kIndex = [];
-//By below way, we could verify that k would be setted as 0, 1, ..., length - 1 in order, and each value will be setted one time.
-function callbackfn(val, idx, obj) {
- //Each position should be visited one time, which means k is accessed one time during iterations.
- if (typeof kIndex[idx] === "undefined") {
- //when current position is visited, its previous index should has been visited.
- if (idx !== 0 && typeof kIndex[idx - 1] === "undefined") {
- result = false;
- }
- kIndex[idx] = 1;
- } else {
- result = false;
- }
-}
+ //By below way, we could verify that k would be setted as 0, 1, ..., length - 1 in order, and each value will be setted one time.
+ function callbackfn(val, idx, obj) {
+ //Each position should be visited one time, which means k is accessed one time during iterations.
+ if (typeof kIndex[idx] === "undefined") {
+ //when current position is visited, its previous index should has been visited.
+ if (idx !== 0 && typeof kIndex[idx - 1] === "undefined") {
+ result = false;
+ }
+ kIndex[idx] = 1;
+ } else {
+ result = false;
+ }
+ }
-[11, 12, 13, 14].forEach(callbackfn, undefined);
+ [11, 12, 13, 14].forEach(callbackfn, undefined);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-6.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-6.js
index 22d73e78b..b1474e751 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-6.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-6.js
@@ -9,20 +9,17 @@ description: >
consistent
---*/
-var result = false;
-var obj = {
- 0: 11,
- length: 1
-};
-var thisArg = {};
+ var result = false;
+ var obj = { 0: 11, length: 1 };
+ var thisArg = {};
-function callbackfn() {
- result = (this === thisArg &&
- arguments[0] === 11 &&
- arguments[1] === 0 &&
- arguments[2] === obj);
-}
+ function callbackfn() {
+ result = (this === thisArg &&
+ arguments[0] === 11 &&
+ arguments[1] === 0 &&
+ arguments[2] === obj);
+ }
-Array.prototype.forEach.call(obj, callbackfn, thisArg);
+ Array.prototype.forEach.call(obj, callbackfn, thisArg);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-7.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-7.js
index c7f28a11f..0941fe49b 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-7.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-7.js
@@ -9,24 +9,19 @@ description: >
callbackfn terminate iteration
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- if (idx > 0) {
- accessed = true;
- }
- if (idx === 0) {
- throw new Error("Exception occurred in callbackfn");
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx > 0) {
+ accessed = true;
+ }
+ if (idx === 0) {
+ throw new Error("Exception occurred in callbackfn");
+ }
+ }
-var obj = {
- 0: 11,
- 4: 10,
- 10: 8,
- length: 20
-};
+ var obj = { 0: 11, 4: 10, 10: 8, length: 20 };
assert.throws(Error, function() {
- Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
});
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-8.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-8.js
index 452044f84..c1b460cc3 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-8.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-8.js
@@ -9,23 +9,19 @@ description: >
previous iterations is observed
---*/
-var result = false;
-var obj = {
- 0: 11,
- 1: 12,
- length: 2
-};
+ var result = false;
+ var obj = { 0: 11, 1: 12, length: 2 };
-function callbackfn(val, idx, o) {
- if (idx === 0) {
- obj[idx + 1] = 8;
- }
+ function callbackfn(val, idx, o) {
+ if (idx === 0) {
+ obj[idx + 1] = 8;
+ }
- if (idx === 1) {
- result = (val === 8);
- }
-}
+ if (idx === 1) {
+ result = (val === 8);
+ }
+ }
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-9.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-9.js
index 5f6aa9cfd..b8396ea60 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-9.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-9.js
@@ -9,12 +9,11 @@ description: >
parameter
---*/
-var called = 0;
+ var called = 0;
+ function callbackfn() {
+ called++;
+ }
-function callbackfn() {
- called++;
-}
-
-[11, 12].forEach(callbackfn);
+ [11, 12].forEach(callbackfn);
assert.sameValue(called, 2, 'called');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-1.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-1.js
index cf592c1e4..4716477c7 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-1.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-1.js
@@ -9,11 +9,8 @@ description: >
(empty array)
---*/
-var callCnt = 0;
-
-function cb() {
- callCnt++
-}
-var i = [].forEach(cb);
+ var callCnt = 0;
+ function cb(){callCnt++}
+ var i = [].forEach(cb);
assert.sameValue(callCnt, 0, 'callCnt');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-10.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-10.js
index 373440748..ef289af43 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-10.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-10.js
@@ -7,17 +7,13 @@ es5id: 15.4.4.18-8-10
description: Array.prototype.forEach - subclassed array when length is reduced
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = 1;
-function foo() {}
-var f = new foo();
-f.length = 1;
-
-var callCnt = 0;
-
-function cb() {
- callCnt++
-}
-var i = f.forEach(cb);
+ var callCnt = 0;
+ function cb(){callCnt++}
+ var i = f.forEach(cb);
assert.sameValue(callCnt, 1, 'callCnt');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-11.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-11.js
index d594b58a2..9c70a3a05 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-11.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-11.js
@@ -9,12 +9,12 @@ description: >
called on
---*/
-function callbackfn(val, idx, obj)
-{
- return true;
-}
-var arr = [1, 2, 3, 4, 5];
-arr.forEach(callbackfn);
+ function callbackfn(val, idx, obj)
+ {
+ return true;
+ }
+ var arr = [1,2,3,4,5];
+ arr.forEach(callbackfn);
assert.sameValue(arr[0], 1, 'arr[0]');
assert.sameValue(arr[1], 2, 'arr[1]');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-12.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-12.js
index 3b92ddb24..74e0eef2c 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-12.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-12.js
@@ -7,16 +7,15 @@ es5id: 15.4.4.18-8-12
description: Array.prototype.forEach doesn't visit expandos
---*/
-var callCnt = 0;
+ var callCnt = 0;
+ function callbackfn(val, idx, obj)
+ {
+ callCnt++;
+ }
+ var arr = [1,2,3,4,5];
+ arr["i"] = 10;
+ arr[true] = 11;
-function callbackfn(val, idx, obj)
-{
- callCnt++;
-}
-var arr = [1, 2, 3, 4, 5];
-arr["i"] = 10;
-arr[true] = 11;
-
-arr.forEach(callbackfn);
+ arr.forEach(callbackfn);
assert.sameValue(callCnt, 5, 'callCnt');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-13.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-13.js
index de40f14e3..8137d9b4a 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-13.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-13.js
@@ -9,13 +9,12 @@ description: >
0
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ }
-function callbackfn(val, idx, obj) {
- accessed = true;
-}
-
-var result = [].forEach(callbackfn);
+ var result = [].forEach(callbackfn);
assert.sameValue(typeof result, "undefined", 'typeof result');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-2.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-2.js
index 96c4cdc45..24a5efda0 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-2.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-2.js
@@ -9,17 +9,13 @@ description: >
(subclassed Array, length overridden to null (type conversion))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = null;
-function foo() {}
-var f = new foo();
-f.length = null;
-
-var callCnt = 0;
-
-function cb() {
- callCnt++
-}
-var i = f.forEach(cb);
+ var callCnt = 0;
+ function cb(){callCnt++}
+ var i = f.forEach(cb);
assert.sameValue(callCnt, 0, 'callCnt');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-3.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-3.js
index 9dbf01bec..ad6d2c88d 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-3.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-3.js
@@ -9,17 +9,13 @@ description: >
(subclassed Array, length overridden to false (type conversion))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = false;
-function foo() {}
-var f = new foo();
-f.length = false;
-
-var callCnt = 0;
-
-function cb() {
- callCnt++
-}
-var i = f.forEach(cb);
+ var callCnt = 0;
+ function cb(){callCnt++}
+ var i = f.forEach(cb);
assert.sameValue(callCnt, 0, 'callCnt');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-4.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-4.js
index fd9bfba94..eca6eb28c 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-4.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-4.js
@@ -9,17 +9,13 @@ description: >
(subclassed Array, length overridden to 0 (type conversion))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = 0;
-function foo() {}
-var f = new foo();
-f.length = 0;
-
-var callCnt = 0;
-
-function cb() {
- callCnt++
-}
-var i = f.forEach(cb);
+ var callCnt = 0;
+ function cb(){callCnt++}
+ var i = f.forEach(cb);
assert.sameValue(callCnt, 0, 'callCnt');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-5.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-5.js
index 6e3ce9bee..89ef96a1d 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-5.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-5.js
@@ -9,17 +9,13 @@ description: >
(subclassed Array, length overridden to '0' (type conversion))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = '0';
-function foo() {}
-var f = new foo();
-f.length = '0';
-
-var callCnt = 0;
-
-function cb() {
- callCnt++
-}
-var i = f.forEach(cb);
+ var callCnt = 0;
+ function cb(){callCnt++}
+ var i = f.forEach(cb);
assert.sameValue(callCnt, 0, 'callCnt');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-6.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-6.js
index 0e26ea86f..57bf3415d 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-6.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-6.js
@@ -9,23 +9,15 @@ description: >
(subclassed Array, length overridden with obj with valueOf)
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ var o = { valueOf: function () { return 0;}};
+ f.length = o;
-var o = {
- valueOf: function() {
- return 0;
- }
-};
-f.length = o;
-
-var callCnt = 0;
-
-function cb() {
- callCnt++
-}
-var i = f.forEach(cb);
+ var callCnt = 0;
+ function cb(){callCnt++}
+ var i = f.forEach(cb);
assert.sameValue(callCnt, 0, 'callCnt');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-7.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-7.js
index d08dadd7a..941c6ee3f 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-7.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-7.js
@@ -10,28 +10,20 @@ description: >
(toString))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ var o = { toString: function () { return '0';}};
+ f.length = o;
-var o = {
- toString: function() {
- return '0';
- }
-};
-f.length = o;
-
-// objects inherit the default valueOf method of the Object object;
-// that simply returns the itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-var callCnt = 0;
-
-function cb() {
- callCnt++
-}
-var i = f.forEach(cb);
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
+ var callCnt = 0;
+ function cb(){callCnt++}
+ var i = f.forEach(cb);
assert.sameValue(callCnt, 0, 'callCnt');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-8.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-8.js
index dee5abda6..acfa321f4 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-8.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-8.js
@@ -9,31 +9,27 @@ description: >
(subclassed Array, length overridden with []
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ f.length = [];
-f.length = [];
-
-// objects inherit the default valueOf method of the Object object;
-// that simply returns the itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-//
-// The toString( ) method on Array converts the array elements to strings,
-// then returns the result of concatenating these strings, with commas in
-// between. An array with no elements converts to the empty string, which
-// converts to the number 0. If an array has a single element that is a
-// number n, the array converts to a string representation of n, which is
-// then converted back to n itself. If an array contains more than one element,
-// or if its one element is not a number, the array converts to NaN.
-var callCnt = 0;
-
-function cb() {
- callCnt++
-}
-var i = f.forEach(cb);
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
+ //
+ // The toString( ) method on Array converts the array elements to strings,
+ // then returns the result of concatenating these strings, with commas in
+ // between. An array with no elements converts to the empty string, which
+ // converts to the number 0. If an array has a single element that is a
+ // number n, the array converts to a string representation of n, which is
+ // then converted back to n itself. If an array contains more than one element,
+ // or if its one element is not a number, the array converts to NaN.
+ var callCnt = 0;
+ function cb(){callCnt++}
+ var i = f.forEach(cb);
assert.sameValue(callCnt, 0, 'callCnt');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-9.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-9.js
index 2ce7678bf..3e36453a4 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-9.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-9.js
@@ -9,32 +9,28 @@ description: >
(subclassed Array, length overridden with [0]
---*/
-foo.prototype = new Array(1, 2, 3);
-
-function foo() {}
-var f = new foo();
-
-f.length = [0];
-
-// objects inherit the default valueOf method of the Object object;
-// that simply returns the itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-//
-// The toString( ) method on Array converts the array elements to strings,
-// then returns the result of concatenating these strings, with commas in
-// between. An array with no elements converts to the empty string, which
-// converts to the number 0. If an array has a single element that is a
-// number n, the array converts to a string representation of n, which is
-// then converted back to n itself. If an array contains more than one element,
-// or if its one element is not a number, the array converts to NaN.
-
-var callCnt = 0;
-
-function cb() {
- callCnt++
-}
-var i = f.forEach(cb);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+
+ f.length = [0];
+
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
+ //
+ // The toString( ) method on Array converts the array elements to strings,
+ // then returns the result of concatenating these strings, with commas in
+ // between. An array with no elements converts to the empty string, which
+ // converts to the number 0. If an array has a single element that is a
+ // number n, the array converts to a string representation of n, which is
+ // then converted back to n itself. If an array contains more than one element,
+ // or if its one element is not a number, the array converts to NaN.
+
+ var callCnt = 0;
+ function cb(){callCnt++}
+ var i = f.forEach(cb);
assert.sameValue(callCnt, 0, 'callCnt');
diff --git a/test/built-ins/Array/prototype/forEach/S15.4.4.18_A1.js b/test/built-ins/Array/prototype/forEach/S15.4.4.18_A1.js
index 0cfaf6ea8..bdaef0503 100644
--- a/test/built-ins/Array/prototype/forEach/S15.4.4.18_A1.js
+++ b/test/built-ins/Array/prototype/forEach/S15.4.4.18_A1.js
@@ -8,6 +8,4 @@ es5id: 15.4.4.18_A1
description: Freezes array.forEach during a forEach to see if it works
---*/
-['z'].forEach(function() {
- Object.freeze(Array.prototype.forEach);
-});
+['z'].forEach(function(){ Object.freeze(Array.prototype.forEach); });
diff --git a/test/built-ins/Array/prototype/forEach/S15.4.4.18_A2.js b/test/built-ins/Array/prototype/forEach/S15.4.4.18_A2.js
index c743d247e..a95da06dd 100644
--- a/test/built-ins/Array/prototype/forEach/S15.4.4.18_A2.js
+++ b/test/built-ins/Array/prototype/forEach/S15.4.4.18_A2.js
@@ -9,8 +9,6 @@ description: Freezes array.forEach during a forEach to see if it works
---*/
function foo() {
- ['z'].forEach(function() {
- Object.freeze(Array.prototype.forEach);
- });
+ ['z'].forEach(function(){ Object.freeze(Array.prototype.forEach); });
}
foo();
diff --git a/test/built-ins/Array/prototype/includes/fromIndex-equal-or-greater-length-returns-false.js b/test/built-ins/Array/prototype/includes/fromIndex-equal-or-greater-length-returns-false.js
index 84bb4526d..ebca5a043 100644
--- a/test/built-ins/Array/prototype/includes/fromIndex-equal-or-greater-length-returns-false.js
+++ b/test/built-ins/Array/prototype/includes/fromIndex-equal-or-greater-length-returns-false.js
@@ -18,6 +18,6 @@ info: |
8. Return false.
---*/
-var sample = [7, 7, 7, 7];
+var sample = [ 7, 7, 7, 7 ];
assert.sameValue(sample.includes(7, 4), false, "length");
assert.sameValue(sample.includes(7, 5), false, "length + 1");
diff --git a/test/built-ins/Array/prototype/includes/search-not-found-returns-false.js b/test/built-ins/Array/prototype/includes/search-not-found-returns-false.js
index 7d98d2a68..6d5393dbb 100644
--- a/test/built-ins/Array/prototype/includes/search-not-found-returns-false.js
+++ b/test/built-ins/Array/prototype/includes/search-not-found-returns-false.js
@@ -35,9 +35,7 @@ assert.sameValue([null].includes(undefined), false, "undefined");
assert.sameValue([Symbol("1")].includes(Symbol("1")), false, "symbol");
assert.sameValue([{}].includes({}), false, "object");
-assert.sameValue([
- []
-].includes([]), false, "array");
+assert.sameValue([[]].includes([]), false, "array");
var sample = [42];
assert.sameValue(sample.includes(sample), false, "this");
diff --git a/test/built-ins/Array/prototype/includes/sparse.js b/test/built-ins/Array/prototype/includes/sparse.js
index 751c2c928..bd272fe93 100644
--- a/test/built-ins/Array/prototype/includes/sparse.js
+++ b/test/built-ins/Array/prototype/includes/sparse.js
@@ -21,18 +21,18 @@ info: |
---*/
assert.sameValue(
- [, , , ].includes(undefined),
+ [ , , , ].includes(undefined),
true,
"[ , , , ].includes(undefined)"
);
assert.sameValue(
- [, , , 42, ].includes(undefined, 4),
+ [ , , , 42, ].includes(undefined, 4),
false,
"[ , , , 42, ].includes(undefined, 4)"
);
-var sample = [, , , 42, , ];
+var sample = [ , , , 42, , ];
assert.sameValue(
sample.includes(undefined),
diff --git a/test/built-ins/Array/prototype/includes/tolength-length.js b/test/built-ins/Array/prototype/includes/tolength-length.js
index c1e82b9da..a3c868474 100644
--- a/test/built-ins/Array/prototype/includes/tolength-length.js
+++ b/test/built-ins/Array/prototype/includes/tolength-length.js
@@ -72,16 +72,8 @@ assert.sameValue([].includes.call(obj, "a"), false, "false");
obj.length = true;
assert.sameValue([].includes.call(obj, "a"), true, "true");
-obj.length = {
- valueOf: function() {
- return 2;
- }
-};
+obj.length = { valueOf: function() { return 2; } };
assert.sameValue([].includes.call(obj, "b"), true, "ordinary object.valueOf");
-obj.length = {
- toString: function() {
- return 2;
- }
-};
+obj.length = { toString: function() { return 2; } };
assert.sameValue([].includes.call(obj, "b"), true, "ordinary object.toString");
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-1.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-1.js
index ea9ca6068..1eb9ef72e 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-1.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-1.js
@@ -9,5 +9,5 @@ description: Array.prototype.indexOf applied to undefined throws a TypeError
assert.throws(TypeError, function() {
- Array.prototype.indexOf.call(undefined);
+ Array.prototype.indexOf.call(undefined);
});
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-10.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-10.js
index 4622e10a0..1a5520218 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-10.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-10.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.14-1-10
description: Array.prototype.indexOf applied to the Math object
---*/
-Math[1] = true;
-Math.length = 2;
+ Math[1] = true;
+ Math.length = 2;
assert.sameValue(Array.prototype.indexOf.call(Math, true), 1, 'Array.prototype.indexOf.call(Math, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-11.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-11.js
index 51d4a331e..bcb3b21ea 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-11.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-11.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.14-1-11
description: Array.prototype.indexOf applied to Date object
---*/
-var obj = new Date();
-obj.length = 2;
-obj[1] = true;
+ var obj = new Date();
+ obj.length = 2;
+ obj[1] = true;
assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-12.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-12.js
index 4c23949e9..c416b6e1b 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-12.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-12.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.14-1-12
description: Array.prototype.indexOf applied to RegExp object
---*/
-var obj = new RegExp();
-obj.length = 2;
-obj[1] = true;
+ var obj = new RegExp();
+ obj.length = 2;
+ obj[1] = true;
assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-13.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-13.js
index b339869a0..c1ca78731 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-13.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-13.js
@@ -7,9 +7,9 @@ es5id: 15.4.4.14-1-13
description: Array.prototype.indexOf applied to the JSON object
---*/
-var targetObj = {};
+ var targetObj = {};
-JSON[3] = targetObj;
-JSON.length = 5;
+ JSON[3] = targetObj;
+ JSON.length = 5;
assert.sameValue(Array.prototype.indexOf.call(JSON, targetObj), 3, 'Array.prototype.indexOf.call(JSON, targetObj)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-14.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-14.js
index 06c02d8f1..6f116d5ce 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-14.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-14.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.14-1-14
description: Array.prototype.indexOf applied to Error object
---*/
-var obj = new SyntaxError();
-obj[1] = true;
-obj.length = 2;
+ var obj = new SyntaxError();
+ obj[1] = true;
+ obj.length = 2;
assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-15.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-15.js
index 598ba594e..7a6c9b7ca 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-15.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-15.js
@@ -7,9 +7,9 @@ es5id: 15.4.4.14-1-15
description: Array.prototype.indexOf applied to Arguments object
---*/
-function fun() {
- return arguments;
-}
-var obj = fun(1, true, 3);
+ function fun() {
+ return arguments;
+ }
+ var obj = fun(1, true, 3);
assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-2.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-2.js
index 5e348a54e..5584d5f68 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-2.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-2.js
@@ -9,5 +9,5 @@ description: Array.prototype.indexOf applied to null throws a TypeError
assert.throws(TypeError, function() {
- Array.prototype.indexOf.call(null);
+ Array.prototype.indexOf.call(null);
});
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-3.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-3.js
index 3bfe5e7a6..510a693ed 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-3.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-3.js
@@ -7,9 +7,9 @@ es5id: 15.4.4.14-1-3
description: Array.prototype.indexOf applied to boolean primitive
---*/
-var targetObj = {};
+ var targetObj = {};
-Boolean.prototype[1] = targetObj;
-Boolean.prototype.length = 2;
+ Boolean.prototype[1] = targetObj;
+ Boolean.prototype.length = 2;
assert.sameValue(Array.prototype.indexOf.call(true, targetObj), 1, 'Array.prototype.indexOf.call(true, targetObj)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-4.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-4.js
index 5f0dd9ed5..844e34af4 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-4.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-4.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.14-1-4
description: Array.prototype.indexOf applied to Boolean Object
---*/
-var obj = new Boolean(false);
-obj.length = 2;
-obj[1] = true;
+ var obj = new Boolean(false);
+ obj.length = 2;
+ obj[1] = true;
assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-5.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-5.js
index 4fa661c8b..ccca65776 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-5.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-5.js
@@ -7,9 +7,9 @@ es5id: 15.4.4.14-1-5
description: Array.prototype.indexOf applied to number primitive
---*/
-var targetObj = {};
+ var targetObj = {};
-Number.prototype[1] = targetObj;
-Number.prototype.length = 2;
+ Number.prototype[1] = targetObj;
+ Number.prototype.length = 2;
assert.sameValue(Array.prototype.indexOf.call(5, targetObj), 1, 'Array.prototype.indexOf.call(5, targetObj)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-6.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-6.js
index 928377959..c6416ebe4 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-6.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-6.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.14-1-6
description: Array.prototype.indexOf applied to Number object
---*/
-var obj = new Number(-3);
-obj.length = 2;
-obj[1] = true;
+ var obj = new Number(-3);
+ obj.length = 2;
+ obj[1] = true;
assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-8.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-8.js
index eaa29361e..46575fb68 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-8.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-8.js
@@ -7,6 +7,6 @@ es5id: 15.4.4.14-1-8
description: Array.prototype.indexOf applied to String object
---*/
-var obj = new String("null");
+ var obj = new String("null");
assert.sameValue(Array.prototype.indexOf.call(obj, 'l'), 2, 'Array.prototype.indexOf.call(obj, "l")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-9.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-9.js
index 065d31bc7..76d8e87c0 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-9.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-9.js
@@ -7,9 +7,9 @@ es5id: 15.4.4.14-1-9
description: Array.prototype.indexOf applied to Function object
---*/
-var obj = function(a, b) {
- return a + b;
-};
-obj[1] = true;
+ var obj = function (a, b) {
+ return a + b;
+ };
+ obj[1] = true;
assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-10-1.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-10-1.js
index 8a77b86f5..c0d6c537a 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-10-1.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-10-1.js
@@ -9,13 +9,13 @@ description: >
array
---*/
-var a = new Array();
-a[100] = 1;
-a[99999] = "";
-a[10] = new Object();
-a[5555] = 5.5;
-a[123456] = "str";
-a[5] = 1E+309;
+ var a = new Array();
+ a[100] = 1;
+ a[99999] = "";
+ a[10] = new Object();
+ a[5555] = 5.5;
+ a[123456] = "str";
+ a[5] = 1E+309;
assert.sameValue(a.indexOf(1), 100, 'a.indexOf(1)');
assert.sameValue(a.indexOf(""), 99999, 'a.indexOf("")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-10-2.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-10-2.js
index fbb926888..124043c97 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-10-2.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-10-2.js
@@ -9,19 +9,12 @@ description: >
access any other properties
---*/
-var accessed = false;
-var f = {
- length: 0
-};
-Object.defineProperty(f, "0", {
- get: function() {
- accessed = true;
- return 1;
- }
-});
+ var accessed = false;
+ var f = {length: 0};
+ Object.defineProperty(f,"0",{get: function () {accessed = true; return 1;}});
-var i = Array.prototype.indexOf.call(f, 1);
+ var i = Array.prototype.indexOf.call(f,1);
assert.sameValue(i, -1, 'i');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-1.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-1.js
index e14c28ba3..61dd7f294 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-1.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-1.js
@@ -9,14 +9,8 @@ description: >
Array-like object
---*/
-var objOne = {
- 1: true,
- length: 2
-};
-var objTwo = {
- 2: true,
- length: 2
-};
+ var objOne = { 1: true, length: 2 };
+ var objTwo = { 2: true, length: 2 };
assert.sameValue(Array.prototype.indexOf.call(objOne, true), 1, 'Array.prototype.indexOf.call(objOne, true)');
assert.sameValue(Array.prototype.indexOf.call(objTwo, true), -1, 'Array.prototype.indexOf.call(objTwo, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-10.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-10.js
index bde4a7b79..f4c6f0b83 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-10.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-10.js
@@ -7,21 +7,21 @@ es5id: 15.4.4.14-2-10
description: Array.prototype.indexOf - 'length' is inherited accessor property
---*/
-var proto = {};
-Object.defineProperty(proto, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ var proto = {};
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () {};
+ Con.prototype = proto;
-var childOne = new Con();
-childOne[1] = true;
-var childTwo = new Con();
-childTwo[2] = true;
+ var childOne = new Con();
+ childOne[1] = true;
+ var childTwo = new Con();
+ childTwo[2] = true;
assert.sameValue(Array.prototype.indexOf.call(childOne, true), 1, 'Array.prototype.indexOf.call(childOne, true)');
assert.sameValue(Array.prototype.indexOf.call(childTwo, true), -1, 'Array.prototype.indexOf.call(childTwo, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-11.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-11.js
index d5d473e99..bb89914e0 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-11.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-11.js
@@ -9,12 +9,10 @@ description: >
without a get function
---*/
-var obj = {
- 1: true
-};
-Object.defineProperty(obj, "length", {
- set: function() {},
- configurable: true
-});
+ var obj = { 1: true };
+ Object.defineProperty(obj, "length", {
+ set: function () { },
+ configurable: true
+ });
assert.sameValue(Array.prototype.indexOf.call(obj, true), -1, 'Array.prototype.indexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-12.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-12.js
index 205d52fbe..ff9ac06df 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-12.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-12.js
@@ -10,19 +10,17 @@ description: >
property
---*/
-Object.defineProperty(Object.prototype, "length", {
- get: function() {
- return 20;
- },
- configurable: true
-});
+ Object.defineProperty(Object.prototype, "length", {
+ get: function () {
+ return 20;
+ },
+ configurable: true
+ });
-var obj = {
- 1: 1
-};
-Object.defineProperty(obj, "length", {
- set: function() {},
- configurable: true
-});
+ var obj = { 1: 1 };
+ Object.defineProperty(obj, "length", {
+ set: function () { },
+ configurable: true
+ });
assert.sameValue(Array.prototype.indexOf.call(obj, 1), -1, 'Array.prototype.indexOf.call(obj, 1)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-13.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-13.js
index 833c45d70..6aa17ff1e 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-13.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-13.js
@@ -9,16 +9,16 @@ description: >
without a get function
---*/
-var proto = {};
-Object.defineProperty(proto, "length", {
- set: function() {},
- configurable: true
-});
+ var proto = {};
+ Object.defineProperty(proto, "length", {
+ set: function () { },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () {};
+ Con.prototype = proto;
-var child = new Con();
-child[1] = true;
+ var child = new Con();
+ child[1] = true;
assert.sameValue(Array.prototype.indexOf.call(child, true), -1, 'Array.prototype.indexOf.call(child, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-14.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-14.js
index 8807657e8..6ffd345db 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-14.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-14.js
@@ -7,9 +7,6 @@ es5id: 15.4.4.14-2-14
description: Array.prototype.indexOf - 'length' is undefined property
---*/
-var obj = {
- 0: true,
- 1: true
-};
+ var obj = { 0: true, 1: true };
assert.sameValue(Array.prototype.indexOf.call(obj, true), -1, 'Array.prototype.indexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-17.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-17.js
index cce214933..2df759495 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-17.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-17.js
@@ -9,10 +9,10 @@ description: >
implements its own property get method
---*/
-var func = function(a, b) {
- arguments[2] = false;
- return Array.prototype.indexOf.call(arguments, true) === 1 &&
- Array.prototype.indexOf.call(arguments, false) === -1;
-};
+ var func = function (a, b) {
+ arguments[2] = false;
+ return Array.prototype.indexOf.call(arguments, true) === 1 &&
+ Array.prototype.indexOf.call(arguments, false) === -1;
+ };
assert(func(0, true), 'func(0, true) !== true');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-18.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-18.js
index e739dd81a..e48cb33de 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-18.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-18.js
@@ -9,9 +9,9 @@ description: >
its own property get method
---*/
-var str = new String("012");
+ var str = new String("012");
-String.prototype[3] = "3";
+ String.prototype[3] = "3";
assert.sameValue(Array.prototype.indexOf.call(str, "2"), 2, 'Array.prototype.indexOf.call(str, "2")');
assert.sameValue(Array.prototype.indexOf.call(str, "3"), -1, 'Array.prototype.indexOf.call(str, "3")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-19.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-19.js
index b5735739f..09bb09dd3 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-19.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-19.js
@@ -9,11 +9,11 @@ description: >
implements its own property get method
---*/
-var obj = function(a, b) {
- return a + b;
-};
-obj[1] = "b";
-obj[2] = "c";
+ var obj = function (a, b) {
+ return a + b;
+ };
+ obj[1] = "b";
+ obj[2] = "c";
assert.sameValue(Array.prototype.indexOf.call(obj, obj[1]), 1, 'Array.prototype.indexOf.call(obj, obj[1])');
assert.sameValue(Array.prototype.indexOf.call(obj, obj[2]), -1, 'Array.prototype.indexOf.call(obj, obj[2])');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-2.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-2.js
index 9fba71821..d1fb4b7bb 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-2.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-2.js
@@ -7,9 +7,9 @@ es5id: 15.4.4.14-2-2
description: Array.prototype.indexOf - 'length' is own data property on an Array
---*/
-var targetObj = {};
+ var targetObj = {};
-Array.prototype[2] = targetObj;
+ Array.prototype[2] = targetObj;
assert.sameValue([0, targetObj].indexOf(targetObj), 1, '[0, targetObj].indexOf(targetObj)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-3.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-3.js
index db7ecfe83..c0c72be3b 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-3.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-3.js
@@ -9,15 +9,13 @@ description: >
overrides an inherited data property on an Array-like object
---*/
-var proto = {
- length: 0
-};
+ var proto = { length: 0 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () {};
+ Con.prototype = proto;
-var child = new Con();
-child.length = 2;
-child[1] = true;
+ var child = new Con();
+ child.length = 2;
+ child[1] = true;
assert.sameValue(Array.prototype.indexOf.call(child, true), 1, 'Array.prototype.indexOf.call(child, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-4.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-4.js
index dfc01cd8d..5a4f6f238 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-4.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-4.js
@@ -9,10 +9,10 @@ description: >
overrides an inherited data property on an Array
---*/
-var targetObj = {};
-var arrProtoLen;
+ var targetObj = {};
+ var arrProtoLen;
-arrProtoLen = Array.prototype.length;
-Array.prototype.length = 0;
+ arrProtoLen = Array.prototype.length;
+ Array.prototype.length = 0;
assert.sameValue([0, targetObj].indexOf(targetObj), 1, '[0, targetObj].indexOf(targetObj)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-5.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-5.js
index 0f3909236..8c5523964 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-5.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-5.js
@@ -9,23 +9,23 @@ description: >
overrides an inherited accessor property on an Array-like object
---*/
-var proto = {};
-Object.defineProperty(proto, "length", {
- get: function() {
- return 0;
- },
- configurable: true
-});
+ var proto = {};
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 0;
+ },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () {};
+ Con.prototype = proto;
-var child = new Con();
+ var child = new Con();
-Object.defineProperty(child, "length", {
- value: 2,
- configurable: true
-});
-child[1] = true;
+ Object.defineProperty(child, "length", {
+ value: 2,
+ configurable: true
+ });
+ child[1] = true;
assert.sameValue(Array.prototype.indexOf.call(child, true), 1, 'Array.prototype.indexOf.call(child, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-6.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-6.js
index 79269969a..39788558a 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-6.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-6.js
@@ -7,17 +7,15 @@ es5id: 15.4.4.14-2-6
description: Array.prototype.indexOf - 'length' is an inherited data property
---*/
-var proto = {
- length: 2
-};
+ var proto = { length: 2 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () {};
+ Con.prototype = proto;
-var childOne = new Con();
-childOne[1] = true;
-var childTwo = new Con();
-childTwo[2] = true;
+ var childOne = new Con();
+ childOne[1] = true;
+ var childTwo = new Con();
+ childTwo[2] = true;
assert.sameValue(Array.prototype.indexOf.call(childOne, true), 1, 'Array.prototype.indexOf.call(childOne, true)');
assert.sameValue(Array.prototype.indexOf.call(childTwo, true), -1, 'Array.prototype.indexOf.call(childTwo, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-7.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-7.js
index 6a0ec2587..975a8673a 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-7.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-7.js
@@ -7,24 +7,20 @@ es5id: 15.4.4.14-2-7
description: Array.prototype.indexOf - 'length' is own accessor property
---*/
-var objOne = {
- 1: true
-};
-var objTwo = {
- 2: true
-};
-Object.defineProperty(objOne, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
-Object.defineProperty(objTwo, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ var objOne = { 1: true };
+ var objTwo = { 2: true };
+ Object.defineProperty(objOne, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
+ Object.defineProperty(objTwo, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.indexOf.call(objOne, true), 1, 'Array.prototype.indexOf.call(objOne, true)');
assert.sameValue(Array.prototype.indexOf.call(objTwo, true), -1, 'Array.prototype.indexOf.call(objTwo, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-8.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-8.js
index 8ad55630e..92bf58f7a 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-8.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-8.js
@@ -9,21 +9,19 @@ description: >
overrides an inherited data property
---*/
-var proto = {
- length: 0
-};
+ var proto = { length: 0 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () {};
+ Con.prototype = proto;
-var child = new Con();
-child[1] = true;
+ var child = new Con();
+ child[1] = true;
-Object.defineProperty(child, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(child, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.indexOf.call(child, true), 1, 'Array.prototype.indexOf.call(child, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-9.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-9.js
index 2bf8c82ef..5ec60e058 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-9.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-9.js
@@ -9,25 +9,25 @@ description: >
overrides an inherited accessor property
---*/
-var proto = {};
-Object.defineProperty(proto, "length", {
- get: function() {
- return 0;
- },
- configurable: true
-});
+ var proto = {};
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 0;
+ },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () {};
+ Con.prototype = proto;
-var child = new Con();
-child[1] = true;
+ var child = new Con();
+ child[1] = true;
-Object.defineProperty(child, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(child, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.indexOf.call(child, true), 1, 'Array.prototype.indexOf.call(child, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-1.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-1.js
index 0787c3a9c..528bb1f48 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-1.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-1.js
@@ -7,10 +7,6 @@ es5id: 15.4.4.14-3-1
description: Array.prototype.indexOf - value of 'length' is undefined
---*/
-var obj = {
- 0: 1,
- 1: 1,
- length: undefined
-};
+ var obj = { 0: 1, 1: 1, length: undefined };
assert.sameValue(Array.prototype.indexOf.call(obj, 1), -1, 'Array.prototype.indexOf.call(obj, 1)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-10.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-10.js
index 503c2206d..2d422228c 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-10.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-10.js
@@ -9,9 +9,6 @@ description: >
(value is NaN)
---*/
-var obj = {
- 0: 0,
- length: NaN
-};
+ var obj = { 0: 0, length: NaN };
assert.sameValue(Array.prototype.indexOf.call(obj, 0), -1, 'Array.prototype.indexOf.call(obj, 0)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-11.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-11.js
index 9914d8d78..dbccc238b 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-11.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-11.js
@@ -9,11 +9,7 @@ description: >
positive number
---*/
-var obj = {
- 1: 1,
- 2: 2,
- length: "2"
-};
+ var obj = { 1: 1, 2: 2, length: "2" };
assert.sameValue(Array.prototype.indexOf.call(obj, 1), 1, 'Array.prototype.indexOf.call(obj, 1)');
assert.sameValue(Array.prototype.indexOf.call(obj, 2), -1, 'Array.prototype.indexOf.call(obj, 2)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-12.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-12.js
index edc04e60c..c147d9355 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-12.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-12.js
@@ -9,11 +9,7 @@ description: >
negative number
---*/
-var obj = {
- 1: "true",
- 2: "2",
- length: "-4294967294"
-};
+ var obj = { 1: "true", 2: "2", length: "-4294967294" };
assert.sameValue(Array.prototype.indexOf.call(obj, "true"), -1, 'Array.prototype.indexOf.call(obj, "true")');
assert.sameValue(Array.prototype.indexOf.call(obj, "2"), -1, 'Array.prototype.indexOf.call(obj, "2")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-13.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-13.js
index 0b2ea6bb6..d2ff4af50 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-13.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-13.js
@@ -9,11 +9,7 @@ description: >
decimal number
---*/
-var obj = {
- 199: true,
- 200: "200.59",
- length: "200.59"
-};
+ var obj = { 199: true, 200: "200.59", length: "200.59" };
assert.sameValue(Array.prototype.indexOf.call(obj, true), 199, 'Array.prototype.indexOf.call(obj, true)');
assert.sameValue(Array.prototype.indexOf.call(obj, "200.59"), -1, 'Array.prototype.indexOf.call(obj, "200.59")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-14.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-14.js
index ec4c578d2..f37712cf3 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-14.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-14.js
@@ -9,21 +9,9 @@ description: >
+/-Infinity
---*/
-var objOne = {
- 0: true,
- 1: true,
- length: "Infinity"
-};
-var objTwo = {
- 0: true,
- 1: true,
- length: "+Infinity"
-};
-var objThree = {
- 0: true,
- 1: true,
- length: "-Infinity"
-};
+ var objOne = { 0: true, 1: true, length: "Infinity" };
+ var objTwo = { 0: true, 1: true, length: "+Infinity" };
+ var objThree = { 0: true, 1: true, length: "-Infinity" };
assert.sameValue(Array.prototype.indexOf.call(objOne, true), 0, 'Array.prototype.indexOf.call(objOne, true)');
assert.sameValue(Array.prototype.indexOf.call(objTwo, true), 0, 'Array.prototype.indexOf.call(objTwo, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-15.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-15.js
index 2bf0dd8b2..e35a97c2c 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-15.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-15.js
@@ -9,11 +9,7 @@ description: >
exponential number
---*/
-var obj = {
- 1: true,
- 2: "2E0",
- length: "2E0"
-};
+ var obj = { 1: true, 2: "2E0", length: "2E0" };
assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)');
assert.sameValue(Array.prototype.indexOf.call(obj, "2E0"), -1, 'Array.prototype.indexOf.call(obj, "2E0")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-16.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-16.js
index c3cd2c458..adc6ff83a 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-16.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-16.js
@@ -9,11 +9,7 @@ description: >
number
---*/
-var obj = {
- 10: true,
- 11: "0x00B",
- length: "0x00B"
-};
+ var obj = { 10: true, 11: "0x00B", length: "0x00B" };
assert.sameValue(Array.prototype.indexOf.call(obj, true), 10, 'Array.prototype.indexOf.call(obj, true)');
assert.sameValue(Array.prototype.indexOf.call(obj, "0x00B"), -1, 'Array.prototype.indexOf.call(obj, "0x00B")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-17.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-17.js
index 66bb812c3..3f5d9a173 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-17.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-17.js
@@ -9,11 +9,7 @@ description: >
with leading zeros
---*/
-var obj = {
- 1: true,
- 2: "0002.0",
- length: "0002.0"
-};
+ var obj = { 1: true, 2: "0002.0", length: "0002.0" };
assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)');
assert.sameValue(Array.prototype.indexOf.call(obj, "0002.0"), -1, 'Array.prototype.indexOf.call(obj, "0002.0")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-18.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-18.js
index 382df40af..71c052c5b 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-18.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-18.js
@@ -9,10 +9,6 @@ description: >
convert to a number
---*/
-var obj = {
- 0: true,
- 100: true,
- length: "one"
-};
+ var obj = { 0: true, 100: true, length: "one" };
assert.sameValue(Array.prototype.indexOf.call(obj, true), -1, 'Array.prototype.indexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-19.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-19.js
index b770f0577..17a3c545a 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-19.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-19.js
@@ -9,22 +9,22 @@ description: >
an own toString method.
---*/
-// objects inherit the default valueOf() method from Object
-// that simply returns itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
+ // objects inherit the default valueOf() method from Object
+ // that simply returns itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
-var obj = {
- 1: true,
- 2: 2,
+ var obj = {
+ 1: true,
+ 2: 2,
- length: {
- toString: function() {
- return '2';
- }
- }
-};
+ length: {
+ toString: function () {
+ return '2';
+ }
+ }
+ };
assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)');
assert.sameValue(Array.prototype.indexOf.call(obj, 2), -1, 'Array.prototype.indexOf.call(obj, 2)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-2.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-2.js
index a645ce3b0..8cfa825b8 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-2.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-2.js
@@ -9,11 +9,7 @@ description: >
(value is true)
---*/
-var obj = {
- 0: 0,
- 1: 1,
- length: true
-};
+ var obj = { 0: 0, 1: 1, length: true };
assert.sameValue(Array.prototype.indexOf.call(obj, 0), 0, 'Array.prototype.indexOf.call(obj, 0)');
assert.sameValue(Array.prototype.indexOf.call(obj, 1), -1, 'Array.prototype.indexOf.call(obj, 1)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-20.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-20.js
index 6c9c56ff2..3479154f0 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-20.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-20.js
@@ -9,16 +9,16 @@ description: >
an own valueOf method.
---*/
-//valueOf method will be invoked first, since hint is Number
-var obj = {
- 1: true,
- 2: 2,
- length: {
- valueOf: function() {
- return 2;
- }
- }
-};
+ //valueOf method will be invoked first, since hint is Number
+ var obj = {
+ 1: true,
+ 2: 2,
+ length: {
+ valueOf: function () {
+ return 2;
+ }
+ }
+ };
assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)');
assert.sameValue(Array.prototype.indexOf.call(obj, 2), -1, 'Array.prototype.indexOf.call(obj, 2)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-21.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-21.js
index f1de649c8..a9ad676ad 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-21.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-21.js
@@ -10,23 +10,23 @@ description: >
returns a string
---*/
-var toStringAccessed = false;
-var valueOfAccessed = false;
+ var toStringAccessed = false;
+ var valueOfAccessed = false;
-var obj = {
- 1: true,
- length: {
- toString: function() {
- toStringAccessed = true;
- return '2';
- },
+ var obj = {
+ 1: true,
+ length: {
+ toString: function () {
+ toStringAccessed = true;
+ return '2';
+ },
- valueOf: function() {
- valueOfAccessed = true;
- return {};
- }
- }
-};
+ valueOf: function () {
+ valueOfAccessed = true;
+ return {};
+ }
+ }
+ };
assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)');
assert(toStringAccessed, 'toStringAccessed !== true');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-22.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-22.js
index ad4324128..5cb92837c 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-22.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-22.js
@@ -10,25 +10,25 @@ description: >
primitive values
---*/
-var toStringAccessed = false;
-var valueOfAccessed = false;
+ var toStringAccessed = false;
+ var valueOfAccessed = false;
-var obj = {
- length: {
- toString: function() {
- toStringAccessed = true;
- return {};
- },
+ var obj = {
+ length: {
+ toString: function () {
+ toStringAccessed = true;
+ return {};
+ },
- valueOf: function() {
- valueOfAccessed = true;
- return {};
- }
- }
-};
+ valueOf: function () {
+ valueOfAccessed = true;
+ return {};
+ }
+ }
+ };
assert.throws(TypeError, function() {
- Array.prototype.indexOf.call(obj);
+ Array.prototype.indexOf.call(obj);
});
assert(toStringAccessed, 'toStringAccessed');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-23.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-23.js
index a87a044d5..5b30d00cf 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-23.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-23.js
@@ -10,29 +10,29 @@ description: >
methods
---*/
-var toStringAccessed = false;
-var valueOfAccessed = false;
+ var toStringAccessed = false;
+ var valueOfAccessed = false;
-var proto = {
- valueOf: function() {
- valueOfAccessed = true;
- return 2;
- }
-};
+ var proto = {
+ valueOf: function () {
+ valueOfAccessed = true;
+ return 2;
+ }
+ };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () {};
+ Con.prototype = proto;
-var child = new Con();
-child.toString = function() {
- toStringAccessed = true;
- return 2;
-};
+ var child = new Con();
+ child.toString = function () {
+ toStringAccessed = true;
+ return 2;
+ };
-var obj = {
- 1: true,
- length: child
-};
+ var obj = {
+ 1: true,
+ length: child
+ };
assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)');
assert(valueOfAccessed, 'valueOfAccessed !== true');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-24.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-24.js
index 109eca9ec..539f8d669 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-24.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-24.js
@@ -9,11 +9,7 @@ description: >
non-integer, ensure truncation occurs in the proper direction
---*/
-var obj = {
- 122: true,
- 123: false,
- length: 123.321
-}; //length will be 123 finally
+ var obj = { 122: true, 123: false, length: 123.321 }; //length will be 123 finally
assert.sameValue(Array.prototype.indexOf.call(obj, true), 122, 'Array.prototype.indexOf.call(obj, true)');
assert.sameValue(Array.prototype.indexOf.call(obj, false), -1, 'Array.prototype.indexOf.call(obj, false)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-25.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-25.js
index d1c35a485..4e275b17f 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-25.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-25.js
@@ -9,11 +9,7 @@ description: >
non-integer
---*/
-var obj = {
- 1: true,
- 2: false,
- length: -4294967294.5
-}; //length will be 0 finally
+ var obj = { 1: true, 2: false, length: -4294967294.5 }; //length will be 0 finally
assert.sameValue(Array.prototype.indexOf.call(obj, true), -1, 'Array.prototype.indexOf.call(obj, true)');
assert.sameValue(Array.prototype.indexOf.call(obj, false), -1, 'Array.prototype.indexOf.call(obj, false)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-28.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-28.js
index b6f651f69..62702eed7 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-28.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-28.js
@@ -9,12 +9,12 @@ description: >
(2^32)
---*/
-var targetObj = {};
-var obj = {
- 0: targetObj,
- 4294967294: targetObj,
- 4294967295: targetObj,
- length: 4294967296
-};
+ var targetObj = {};
+ var obj = {
+ 0: targetObj,
+ 4294967294: targetObj,
+ 4294967295: targetObj,
+ length: 4294967296
+ };
assert.sameValue(Array.prototype.indexOf.call(obj, targetObj), 0, 'Array.prototype.indexOf.call(obj, targetObj)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-29.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-29.js
index 41298b8a3..23bb38ae7 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-29.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-29.js
@@ -9,12 +9,12 @@ description: >
(2^32 + 1)
---*/
-var targetObj = {};
-var obj = {
- 0: targetObj,
- 1: 4294967297,
- length: 4294967297
-};
+ var targetObj = {};
+ var obj = {
+ 0: targetObj,
+ 1: 4294967297,
+ length: 4294967297
+ };
assert.sameValue(Array.prototype.indexOf.call(obj, targetObj), 0, 'Array.prototype.indexOf.call(obj, targetObj)');
assert.sameValue(Array.prototype.indexOf.call(obj, 4294967297), 1, 'Array.prototype.indexOf.call(obj, 4294967297)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-3.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-3.js
index 2db8c77fc..83c239e17 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-3.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-3.js
@@ -9,9 +9,6 @@ description: >
0)
---*/
-var obj = {
- 0: true,
- length: 0
-};
+ var obj = { 0: true, length: 0 };
assert.sameValue(Array.prototype.indexOf.call(obj, true), -1, 'Array.prototype.indexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-4.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-4.js
index c2f4f22c8..e2dc4190f 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-4.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-4.js
@@ -9,9 +9,6 @@ description: >
+0)
---*/
-var obj = {
- 0: true,
- length: +0
-};
+ var obj = { 0: true, length: +0 };
assert.sameValue(Array.prototype.indexOf.call(obj, true), -1, 'Array.prototype.indexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-5.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-5.js
index 4ca356c5f..6fccac875 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-5.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-5.js
@@ -9,9 +9,6 @@ description: >
-0)
---*/
-var obj = {
- 0: true,
- length: -0
-};
+ var obj = { 0: true, length: -0 };
assert.sameValue(Array.prototype.indexOf.call(obj, true), -1, 'Array.prototype.indexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-6.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-6.js
index 841c6b02e..50cc7c262 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-6.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-6.js
@@ -9,11 +9,7 @@ description: >
positive)
---*/
-var obj = {
- 3: true,
- 4: false,
- length: 4
-};
+ var obj = { 3: true, 4: false, length: 4 };
assert.sameValue(Array.prototype.indexOf.call(obj, true), 3, 'Array.prototype.indexOf.call(obj, true)');
assert.sameValue(Array.prototype.indexOf.call(obj, false), -1, 'Array.prototype.indexOf.call(obj, false)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-7.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-7.js
index bbc47c981..1ff3602c0 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-7.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-7.js
@@ -9,11 +9,7 @@ description: >
negative)
---*/
-var obj = {
- 4: true,
- 5: false,
- length: 5 - Math.pow(2, 32)
-};
+ var obj = { 4: true, 5: false, length: 5 - Math.pow(2, 32) };
assert.sameValue(Array.prototype.indexOf.call(obj, true), -1, 'Array.prototype.indexOf.call(obj, true)');
assert.sameValue(Array.prototype.indexOf.call(obj, false), -1, 'Array.prototype.indexOf.call(obj, false)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-8.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-8.js
index b7ffedc0c..c7873e9ee 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-8.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-8.js
@@ -9,9 +9,6 @@ description: >
Infinity)
---*/
-var obj = {
- 0: 0,
- length: Infinity
-};
+ var obj = { 0: 0, length: Infinity };
assert.sameValue(Array.prototype.indexOf.call(obj, 0), 0, 'Array.prototype.indexOf.call(obj, 0)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-9.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-9.js
index 00fafbc74..faf4a227c 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-9.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-9.js
@@ -9,9 +9,6 @@ description: >
-Infinity)
---*/
-var obj = {
- 0: 0,
- length: -Infinity
-};
+ var obj = { 0: 0, length: -Infinity };
assert.sameValue(Array.prototype.indexOf.call(obj, 0), -1, 'Array.prototype.indexOf.call(obj, 0)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-1.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-1.js
index 7f753d785..5b6a62eb9 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-1.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-1.js
@@ -7,6 +7,6 @@ es5id: 15.4.4.14-4-1
description: Array.prototype.indexOf returns -1 if 'length' is 0 (empty array)
---*/
-var i = [].indexOf(42);
+ var i = [].indexOf(42);
assert.sameValue(i, -1, 'i');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-10.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-10.js
index 47a90a228..6af3e10a8 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-10.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-10.js
@@ -7,11 +7,7 @@ es5id: 15.4.4.14-4-10
description: Array.prototype.indexOf - 'length' is a number of value -6e-1
---*/
-var targetObj = [];
-var obj = {
- 0: targetObj,
- 100: targetObj,
- length: -6e-1
-};
+ var targetObj = [];
+ var obj = { 0: targetObj, 100: targetObj, length: -6e-1 };
assert.sameValue(Array.prototype.indexOf.call(obj, targetObj), -1, 'Array.prototype.indexOf.call(obj, targetObj)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-11.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-11.js
index 94da77848..3410cb85c 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-11.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-11.js
@@ -7,11 +7,7 @@ es5id: 15.4.4.14-4-11
description: Array.prototype.indexOf - 'length' is an empty string
---*/
-var targetObj = [];
-var obj = {
- 0: targetObj,
- 100: targetObj,
- length: ""
-};
+ var targetObj = [];
+ var obj = { 0: targetObj, 100: targetObj, length: "" };
assert.sameValue(Array.prototype.indexOf.call(obj, targetObj), -1, 'Array.prototype.indexOf.call(obj, targetObj)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-2.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-2.js
index e39faf7b1..485bcf04e 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-2.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-2.js
@@ -9,9 +9,7 @@ description: >
overridden to null (type conversion))
---*/
-var i = Array.prototype.indexOf.call({
- length: null
-}, 1);
+ var i = Array.prototype.indexOf.call({length: null}, 1);
assert.sameValue(i, -1, 'i');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-3.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-3.js
index ccca42340..535a46c8e 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-3.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-3.js
@@ -9,9 +9,7 @@ description: >
overridden to false (type conversion))
---*/
-var i = Array.prototype.indexOf.call({
- length: false
-}, 1);
+ var i = Array.prototype.indexOf.call({length: false}, 1);
assert.sameValue(i, -1, 'i');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-4.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-4.js
index d665e97c1..c614ca938 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-4.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-4.js
@@ -9,9 +9,7 @@ description: >
'array' with length 0 )
---*/
-var i = Array.prototype.lastIndexOf.call({
- length: 0
-}, 1);
+ var i = Array.prototype.lastIndexOf.call({length: 0}, 1);
assert.sameValue(i, -1, 'i');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-5.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-5.js
index 7cd825ba8..595122579 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-5.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-5.js
@@ -9,9 +9,7 @@ description: >
overridden to '0' (type conversion))
---*/
-var i = Array.prototype.indexOf.call({
- length: '0'
-}, 1);
+ var i = Array.prototype.indexOf.call({length: '0'}, 1);
assert.sameValue(i, -1, 'i');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-6.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-6.js
index bdb5f01fa..365da0c37 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-6.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-6.js
@@ -9,13 +9,7 @@ description: >
Array, length overridden with obj with valueOf)
---*/
-var i = Array.prototype.indexOf.call({
- length: {
- valueOf: function() {
- return 0;
- }
- }
-}, 1);
+ var i = Array.prototype.indexOf.call({length: { valueOf: function () { return 0;}}}, 1);
assert.sameValue(i, -1, 'i');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-7.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-7.js
index c6c14d773..ed4cf9894 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-7.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-7.js
@@ -9,18 +9,12 @@ description: >
object overridden with obj w/o valueOf (toString))
---*/
-// objects inherit the default valueOf method of the Object object;
-// that simply returns the itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-var i = Array.prototype.indexOf.call({
- length: {
- toString: function() {
- return '0';
- }
- }
-}, 1);
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
+ var i = Array.prototype.indexOf.call({length: { toString: function () { return '0';}}}, 1);
assert.sameValue(i, -1, 'i');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-8.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-8.js
index 2c863ea49..04ad4c7fb 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-8.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-8.js
@@ -9,22 +9,20 @@ description: >
empty array)
---*/
-// objects inherit the default valueOf method of the Object object;
-// that simply returns the itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-//
-// The toString( ) method on Array converts the array elements to strings,
-// then returns the result of concatenating these strings, with commas in
-// between. An array with no elements converts to the empty string, which
-// converts to the number 0. If an array has a single element that is a
-// number n, the array converts to a string representation of n, which is
-// then converted back to n itself. If an array contains more than one element,
-// or if its one element is not a number, the array converts to NaN.
-var i = Array.prototype.indexOf.call({
- length: []
-}, 1);
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
+ //
+ // The toString( ) method on Array converts the array elements to strings,
+ // then returns the result of concatenating these strings, with commas in
+ // between. An array with no elements converts to the empty string, which
+ // converts to the number 0. If an array has a single element that is a
+ // number n, the array converts to a string representation of n, which is
+ // then converted back to n itself. If an array contains more than one element,
+ // or if its one element is not a number, the array converts to NaN.
+ var i = Array.prototype.indexOf.call({length: [ ]}, 1);
assert.sameValue(i, -1, 'i');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-9.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-9.js
index b64c1213a..e90ce2e4c 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-9.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-9.js
@@ -7,11 +7,7 @@ es5id: 15.4.4.14-4-9
description: Array.prototype.indexOf - 'length' is a number of value 0.1
---*/
-var targetObj = [];
-var obj = {
- 0: targetObj,
- 100: targetObj,
- length: 0.1
-};
+ var targetObj = [];
+ var obj = { 0: targetObj, 100: targetObj, length: 0.1 };
assert.sameValue(Array.prototype.indexOf.call(obj, targetObj), -1, 'Array.prototype.indexOf.call(obj, targetObj)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-1.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-1.js
index bfb7c07cd..146456dba 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-1.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-1.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.14-5-1
description: Array.prototype.indexOf when fromIndex is string
---*/
-var a = [1, 2, 1, 2, 1, 2];
+ var a = [1,2,1,2,1,2];
-assert.sameValue(a.indexOf(2, "2"), 3, '"2" resolves to 2');
-assert.sameValue(a.indexOf(2, "one"), 1, '"one" resolves to 0');
+assert.sameValue(a.indexOf(2,"2"), 3, '"2" resolves to 2');
+assert.sameValue(a.indexOf(2,"one"), 1, '"one" resolves to 0');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-10.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-10.js
index 4ec2ce2a0..7c006a5d0 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-10.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-10.js
@@ -9,7 +9,7 @@ description: >
is positive number)
---*/
-var targetObj = {};
+ var targetObj = {};
assert.sameValue([0, targetObj, 2].indexOf(targetObj, 2), -1, '[0, targetObj, 2].indexOf(targetObj, 2)');
assert.sameValue([0, 1, targetObj].indexOf(targetObj, 2), 2, '[0, 1, targetObj].indexOf(targetObj, 2)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-11.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-11.js
index 873dcea19..e8dccbd1d 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-11.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-11.js
@@ -9,7 +9,7 @@ description: >
is negative number)
---*/
-var targetObj = {};
+ var targetObj = {};
assert.sameValue([0, targetObj, 2].indexOf(targetObj, -1), -1, '[0, targetObj, 2].indexOf(targetObj, -1)');
assert.sameValue([0, 1, targetObj].indexOf(targetObj, -1), 2, '[0, 1, targetObj].indexOf(targetObj, -1)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-12.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-12.js
index ef4baf22e..dbdc234eb 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-12.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-12.js
@@ -9,7 +9,7 @@ description: >
is Infinity)
---*/
-var arr = [];
-arr[Math.pow(2, 32) - 2] = true; //length is the max value of Uint type
+ var arr = [];
+ arr[Math.pow(2, 32) - 2] = true; //length is the max value of Uint type
assert.sameValue(arr.indexOf(true, Infinity), -1, 'arr.indexOf(true, Infinity)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-16.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-16.js
index 6f9afde36..68e8cbe5f 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-16.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-16.js
@@ -9,7 +9,7 @@ description: >
containing Infinity
---*/
-var arr = [];
-arr[Math.pow(2, 32) - 2] = true; //length is the max value of Uint type
+ var arr = [];
+ arr[Math.pow(2, 32) - 2] = true; //length is the max value of Uint type
assert.sameValue(arr.indexOf(true, "Infinity"), -1, 'arr.indexOf(true, "Infinity")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-18.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-18.js
index 66bfabd2f..7729f74b5 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-18.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-18.js
@@ -9,7 +9,7 @@ description: >
containing an exponential number
---*/
-var targetObj = {};
+ var targetObj = {};
assert.sameValue([0, 1, targetObj, 3, 4].indexOf(targetObj, "3E0"), -1, '[0, 1, targetObj, 3, 4].indexOf(targetObj, "3E0")');
assert.sameValue([0, 1, 2, targetObj, 4].indexOf(targetObj, "3E0"), 3, '[0, 1, 2, targetObj, 4].indexOf(targetObj, "3E0")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-19.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-19.js
index 123b1304f..ef2936fb7 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-19.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-19.js
@@ -9,7 +9,7 @@ description: >
containing a hex number
---*/
-var targetObj = {};
+ var targetObj = {};
assert.sameValue([0, 1, targetObj, 3, 4].indexOf(targetObj, "0x0003"), -1, '[0, 1, targetObj, 3, 4].indexOf(targetObj, "0x0003")');
assert.sameValue([0, 1, 2, targetObj, 4].indexOf(targetObj, "0x0003"), 3, '[0, 1, 2, targetObj, 4].indexOf(targetObj, "0x0003")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-2.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-2.js
index 092e4127f..6fbcc5ced 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-2.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-2.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.14-5-2
description: Array.prototype.indexOf when fromIndex is floating point number
---*/
-var a = new Array(1, 2, 3);
+ var a = new Array(1,2,3);
-assert.sameValue(a.indexOf(3, 0.49), 2, '0.49 resolves to 0');
-assert.sameValue(a.indexOf(1, 0.51), 0, '0.51 resolves to 0');
-assert.sameValue(a.indexOf(1, 1.51), -1, '1.51 resolves to 1');
+assert.sameValue(a.indexOf(3,0.49), 2, '0.49 resolves to 0');
+assert.sameValue(a.indexOf(1,0.51), 0, '0.51 resolves to 0');
+assert.sameValue(a.indexOf(1,1.51), -1, '1.51 resolves to 1');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-20.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-20.js
index 106b630ba..0471343e2 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-20.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-20.js
@@ -9,7 +9,7 @@ description: >
containing a number with leading zeros
---*/
-var targetObj = {};
+ var targetObj = {};
assert.sameValue([0, 1, targetObj, 3, 4].indexOf(targetObj, "0003.10"), -1, '[0, 1, targetObj, 3, 4].indexOf(targetObj, "0003.10")');
assert.sameValue([0, 1, 2, targetObj, 4].indexOf(targetObj, "0003.10"), 3, '[0, 1, 2, targetObj, 4].indexOf(targetObj, "0003.10")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-21.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-21.js
index 887de235a..05fbacd4d 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-21.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-21.js
@@ -9,15 +9,15 @@ description: >
has an own toString method
---*/
-// objects inherit the default valueOf() method from Object
-// that simply returns itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-var fromIndex = {
- toString: function() {
- return '1';
- }
-};
+ // objects inherit the default valueOf() method from Object
+ // that simply returns itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
+ var fromIndex = {
+ toString: function () {
+ return '1';
+ }
+ };
assert.sameValue([0, true].indexOf(true, fromIndex), 1, '[0, true].indexOf(true, fromIndex)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-22.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-22.js
index e1ed13197..21bb6b03a 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-22.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-22.js
@@ -9,11 +9,11 @@ description: >
has an own valueOf method
---*/
-var fromIndex = {
- valueOf: function() {
- return 1;
- }
-};
+ var fromIndex = {
+ valueOf: function () {
+ return 1;
+ }
+ };
assert.sameValue([0, true].indexOf(true, fromIndex), 1, '[0, true].indexOf(true, fromIndex)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-23.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-23.js
index 8bfad2363..64f186fc8 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-23.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-23.js
@@ -10,20 +10,20 @@ description: >
method that returns a string
---*/
-var toStringAccessed = false;
-var valueOfAccessed = false;
+ var toStringAccessed = false;
+ var valueOfAccessed = false;
-var fromIndex = {
- toString: function() {
- toStringAccessed = true;
- return '1';
- },
+ var fromIndex = {
+ toString: function () {
+ toStringAccessed = true;
+ return '1';
+ },
- valueOf: function() {
- valueOfAccessed = true;
- return {};
- }
-};
+ valueOf: function () {
+ valueOfAccessed = true;
+ return {};
+ }
+ };
assert.sameValue([0, true].indexOf(true, fromIndex), 1, '[0, true].indexOf(true, fromIndex)');
assert(toStringAccessed, 'toStringAccessed !== true');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-24.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-24.js
index 881197259..3f83428a2 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-24.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-24.js
@@ -10,22 +10,22 @@ description: >
don�t return primitive values
---*/
-var toStringAccessed = false;
-var valueOfAccessed = false;
-var fromIndex = {
- toString: function() {
- toStringAccessed = true;
- return {};
- },
+ var toStringAccessed = false;
+ var valueOfAccessed = false;
+ var fromIndex = {
+ toString: function () {
+ toStringAccessed = true;
+ return {};
+ },
- valueOf: function() {
- valueOfAccessed = true;
- return {};
- }
-};
+ valueOf: function () {
+ valueOfAccessed = true;
+ return {};
+ }
+ };
assert.throws(TypeError, function() {
- [0, true].indexOf(true, fromIndex);
+ [0, true].indexOf(true, fromIndex);
});
assert(toStringAccessed, 'toStringAccessed');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-25.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-25.js
index f3943fc49..a8139b751 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-25.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-25.js
@@ -10,24 +10,24 @@ description: >
valueOf methods
---*/
-var toStringAccessed = false;
-var valueOfAccessed = false;
+ var toStringAccessed = false;
+ var valueOfAccessed = false;
-var proto = {
- valueOf: function() {
- valueOfAccessed = true;
- return 1;
- }
-};
+ var proto = {
+ valueOf: function () {
+ valueOfAccessed = true;
+ return 1;
+ }
+ };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () {};
+ Con.prototype = proto;
-var child = new Con();
-child.toString = function() {
- toStringAccessed = true;
- return 2;
-};
+ var child = new Con();
+ child.toString = function () {
+ toStringAccessed = true;
+ return 2;
+ };
assert.sameValue([0, true].indexOf(true, child), 1, '[0, true].indexOf(true, child)');
assert(valueOfAccessed, 'valueOfAccessed !== true');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-26.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-26.js
index 43307ad73..6c66928ce 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-26.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-26.js
@@ -9,30 +9,30 @@ description: >
visible when an exception occurs
---*/
-var stepTwoOccurs = false;
-var stepFiveOccurs = false;
+ var stepTwoOccurs = false;
+ var stepFiveOccurs = false;
-var obj = {};
+ var obj = {};
-Object.defineProperty(obj, "length", {
- get: function() {
- stepTwoOccurs = true;
- if (stepFiveOccurs) {
- throw new Error("Step 5 occurred out of order");
- }
- return 20;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ stepTwoOccurs = true;
+ if (stepFiveOccurs) {
+ throw new Error("Step 5 occurred out of order");
+ }
+ return 20;
+ },
+ configurable: true
+ });
-var fromIndex = {
- valueOf: function() {
- stepFiveOccurs = true;
- return 0;
- }
-};
+ var fromIndex = {
+ valueOf: function () {
+ stepFiveOccurs = true;
+ return 0;
+ }
+ };
-Array.prototype.indexOf.call(obj, undefined, fromIndex);
+ Array.prototype.indexOf.call(obj, undefined, fromIndex);
assert(stepTwoOccurs, 'stepTwoOccurs !== true');
assert(stepFiveOccurs, 'stepFiveOccurs !== true');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-27.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-27.js
index ec03ca839..0207afac1 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-27.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-27.js
@@ -9,34 +9,34 @@ description: >
visible when an exception occurs
---*/
-var stepThreeOccurs = false;
-var stepFiveOccurs = false;
+ var stepThreeOccurs = false;
+ var stepFiveOccurs = false;
-var obj = {};
+ var obj = {};
-Object.defineProperty(obj, "length", {
- get: function() {
- return {
- valueOf: function() {
- stepThreeOccurs = true;
- if (stepFiveOccurs) {
- throw new Error("Step 5 occurred out of order");
- }
- return 20;
- }
- };
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ valueOf: function () {
+ stepThreeOccurs = true;
+ if (stepFiveOccurs) {
+ throw new Error("Step 5 occurred out of order");
+ }
+ return 20;
+ }
+ };
+ },
+ configurable: true
+ });
-var fromIndex = {
- valueOf: function() {
- stepFiveOccurs = true;
- return 0;
- }
-};
+ var fromIndex = {
+ valueOf: function () {
+ stepFiveOccurs = true;
+ return 0;
+ }
+ };
-Array.prototype.indexOf.call(obj, undefined, fromIndex);
+ Array.prototype.indexOf.call(obj, undefined, fromIndex);
assert(stepThreeOccurs, 'stepThreeOccurs !== true');
assert(stepFiveOccurs, 'stepFiveOccurs !== true');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-28.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-28.js
index 71adbb347..9e8383545 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-28.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-28.js
@@ -9,14 +9,14 @@ description: >
visible when an exception occurs
---*/
-var stepFiveOccurs = false;
-var fromIndex = {
- valueOf: function() {
- stepFiveOccurs = true;
- return 0;
- }
-};
+ var stepFiveOccurs = false;
+ var fromIndex = {
+ valueOf: function () {
+ stepFiveOccurs = true;
+ return 0;
+ }
+ };
assert.throws(TypeError, function() {
- Array.prototype.indexOf.call(undefined, undefined, fromIndex);
+ Array.prototype.indexOf.call(undefined, undefined, fromIndex);
});
assert.sameValue(stepFiveOccurs, false, 'stepFiveOccurs');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-29.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-29.js
index 373bbc7e5..30381433b 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-29.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-29.js
@@ -9,23 +9,23 @@ description: >
visible when an exception occurs
---*/
-var stepFiveOccurs = false;
+ var stepFiveOccurs = false;
-var obj = {};
-Object.defineProperty(obj, "length", {
- get: function() {
- throw new RangeError();
- },
- configurable: true
-});
+ var obj = {};
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ throw new RangeError();
+ },
+ configurable: true
+ });
-var fromIndex = {
- valueOf: function() {
- stepFiveOccurs = true;
- return 0;
- }
-};
+ var fromIndex = {
+ valueOf: function () {
+ stepFiveOccurs = true;
+ return 0;
+ }
+ };
assert.throws(RangeError, function() {
- Array.prototype.indexOf.call(obj, undefined, fromIndex);
+ Array.prototype.indexOf.call(obj, undefined, fromIndex);
});
assert.sameValue(stepFiveOccurs, false, 'stepFiveOccurs');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-3.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-3.js
index f9ec42cc8..9030d5314 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-3.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-3.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.14-5-3
description: Array.prototype.indexOf when fromIndex is boolean
---*/
-var a = [1, 2, 3];
+ var a = [1,2,3];
-assert.sameValue(a.indexOf(1, true), -1, 'true resolves to 1');
-assert.sameValue(a.indexOf(1, false), 0, 'false resolves to 0');
+assert.sameValue(a.indexOf(1,true), -1, 'true resolves to 1');
+assert.sameValue(a.indexOf(1,false), 0, 'false resolves to 0');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-30.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-30.js
index d3eac966c..9a229e976 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-30.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-30.js
@@ -9,27 +9,27 @@ description: >
visible when an exception occurs
---*/
-var stepFiveOccurs = false;
+ var stepFiveOccurs = false;
-var obj = {};
-Object.defineProperty(obj, "length", {
- get: function() {
- return {
- valueOf: function() {
- throw new TypeError();
- }
- };
- },
- configurable: true
-});
+ var obj = {};
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ valueOf: function () {
+ throw new TypeError();
+ }
+ };
+ },
+ configurable: true
+ });
-var fromIndex = {
- valueOf: function() {
- stepFiveOccurs = true;
- return 0;
- }
-};
+ var fromIndex = {
+ valueOf: function () {
+ stepFiveOccurs = true;
+ return 0;
+ }
+ };
assert.throws(TypeError, function() {
- Array.prototype.indexOf.call(obj, undefined, fromIndex);
+ Array.prototype.indexOf.call(obj, undefined, fromIndex);
});
assert.sameValue(stepFiveOccurs, false, 'stepFiveOccurs');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-31.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-31.js
index 64442d0db..9a7f1d3ff 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-31.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-31.js
@@ -9,7 +9,7 @@ description: >
verify truncation occurs in the proper direction
---*/
-var targetObj = {};
+ var targetObj = {};
assert.sameValue([0, targetObj, 2].indexOf(targetObj, 2.5), -1, '[0, targetObj, 2].indexOf(targetObj, 2.5)');
assert.sameValue([0, 1, targetObj].indexOf(targetObj, 2.5), 2, '[0, 1, targetObj].indexOf(targetObj, 2.5)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-32.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-32.js
index a11186d51..df4812b78 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-32.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-32.js
@@ -9,7 +9,7 @@ description: >
verify truncation occurs in the proper direction
---*/
-var targetObj = {};
+ var targetObj = {};
assert.sameValue([0, targetObj, 2].indexOf(targetObj, -1.5), -1, '[0, targetObj, 2].indexOf(targetObj, -1.5)');
assert.sameValue([0, 1, targetObj].indexOf(targetObj, -1.5), 2, '[0, 1, targetObj].indexOf(targetObj, -1.5)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-4.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-4.js
index 4230ef2bc..3611b1799 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-4.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-4.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.14-5-4
description: Array.prototype.indexOf returns 0 if fromIndex is 'undefined'
---*/
-var a = [1, 2, 3];
+ var a = [1,2,3];
// undefined resolves to 0
-assert.sameValue(a.indexOf(1, undefined), 0, 'a.indexOf(1,undefined)');
+assert.sameValue(a.indexOf(1,undefined), 0, 'a.indexOf(1,undefined)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-5.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-5.js
index 4cd4418d5..9056a5fe9 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-5.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-5.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.14-5-5
description: Array.prototype.indexOf returns 0 if fromIndex is null
---*/
-var a = [1, 2, 3];
+ var a = [1,2,3];
// null resolves to 0
-assert.sameValue(a.indexOf(1, null), 0, 'a.indexOf(1,null)');
+assert.sameValue(a.indexOf(1,null), 0, 'a.indexOf(1,null)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-6.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-6.js
index 2ea05b825..69610b347 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-6.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-6.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.14-5-6
description: Array.prototype.indexOf - 'fromIndex' isn't passed
---*/
-var arr = [0, 1, 2, 3, 4];
-//'fromIndex' will be set as 0 if not passed by default
+ var arr = [0, 1, 2, 3, 4];
+ //'fromIndex' will be set as 0 if not passed by default
assert.sameValue(arr.indexOf(0), arr.indexOf(0, 0), 'arr.indexOf(0)');
assert.sameValue(arr.indexOf(2), arr.indexOf(2, 0), 'arr.indexOf(2)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-6-1.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-6-1.js
index 1309ad967..f2da76943 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-6-1.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-6-1.js
@@ -9,8 +9,8 @@ description: >
Array length
---*/
-var a = [1, 2, 3];
+ var a = [1,2,3];
-assert.sameValue(a.indexOf(1, 5), -1, 'a.indexOf(1,5)');
-assert.sameValue(a.indexOf(1, 3), -1, 'a.indexOf(1,3)');
-assert.sameValue([].indexOf(1, 0), -1, '[ ].indexOf(1,0)');
+assert.sameValue(a.indexOf(1,5), -1, 'a.indexOf(1,5)');
+assert.sameValue(a.indexOf(1,3), -1, 'a.indexOf(1,3)');
+assert.sameValue([ ].indexOf(1,0), -1, '[ ].indexOf(1,0)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-8-1.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-8-1.js
index 4531f8051..57d4f191d 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-8-1.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-8-1.js
@@ -7,10 +7,10 @@ es5id: 15.4.4.14-8-1
description: Array.prototype.indexOf with negative fromIndex
---*/
-var a = new Array(1, 2, 3);
+ var a = new Array(1,2,3);
-assert.sameValue(a.indexOf(2, -1), -1, 'a.indexOf(2,-1)');
-assert.sameValue(a.indexOf(2, -2), 1, 'a.indexOf(2,-2)');
-assert.sameValue(a.indexOf(1, -3), 0, 'a.indexOf(1,-3)');
-assert.sameValue(a.indexOf(1, -5.3), 0, 'a.indexOf(1,-5.3)');
+assert.sameValue(a.indexOf(2,-1), -1, 'a.indexOf(2,-1)');
+assert.sameValue(a.indexOf(2,-2), 1, 'a.indexOf(2,-2)');
+assert.sameValue(a.indexOf(1,-3), 0, 'a.indexOf(1,-3)');
+assert.sameValue(a.indexOf(1,-5.3), 0, 'a.indexOf(1,-5.3)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-1.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-1.js
index 91a596078..94125fa81 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-1.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-1.js
@@ -7,13 +7,9 @@ es5id: 15.4.4.14-9-1
description: Array.prototype.indexOf must return correct index (boolean)
---*/
-var obj = {
- toString: function() {
- return true
- }
-};
-var _false = false;
-var a = [obj, "true", undefined, 0, _false, null, 1, "str", 0, 1, true, false, true, false];
+ var obj = {toString:function (){return true}};
+ var _false = false;
+ var a = [obj,"true", undefined,0,_false,null,1,"str",0,1,true,false,true,false];
-assert.sameValue(a.indexOf(true), 10, 'a[10]=true');
-assert.sameValue(a.indexOf(false), 4, 'a[4] =_false');
+ assert.sameValue(a.indexOf(true), 10, 'a[10]=true');
+ assert.sameValue(a.indexOf(false), 4, 'a[4] =_false');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-10.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-10.js
index 92ebaa80a..4b3ec82c6 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-10.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-10.js
@@ -10,11 +10,7 @@ es5id: 15.4.4.14-9-10
description: Array.prototype.indexOf must return correct index (NaN)
---*/
-var _NaN = NaN;
-var a = new Array("NaN", undefined, 0, false, null, {
- toString: function() {
- return NaN
- }
-}, "false", _NaN, NaN);
+ var _NaN = NaN;
+ var a = new Array("NaN",undefined,0,false,null,{toString:function (){return NaN}},"false",_NaN,NaN);
assert.sameValue(a.indexOf(NaN), -1, 'NaN is equal to nothing, including itself.');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-11.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-11.js
index 77108424d..cf1aac541 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-11.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-11.js
@@ -9,14 +9,14 @@ description: >
adding elements to the array during iteration
---*/
-var arr = [20];
+ var arr = [20];
-Object.defineProperty(arr, "0", {
- get: function() {
- arr[1] = 1;
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ arr[1] = 1;
+ return 0;
+ },
+ configurable: true
+ });
assert.sameValue(arr.indexOf(1), -1, 'arr.indexOf(1)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-2.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-2.js
index 410a7c0ef..fcce013d2 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-2.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-2.js
@@ -7,16 +7,12 @@ es5id: 15.4.4.14-9-2
description: Array.prototype.indexOf must return correct index (Number)
---*/
-var obj = {
- toString: function() {
- return 0
- }
-};
-var one = 1;
-var _float = -(4 / 3);
-var a = new Array(false, undefined, null, "0", obj, -1.3333333333333, "str", -0, true, +0, one, 1, 0, false, _float, -(4 / 3));
+ var obj = {toString:function (){return 0}};
+ var one = 1;
+ var _float = -(4/3);
+ var a = new Array(false,undefined,null,"0",obj,-1.3333333333333, "str",-0,true,+0, one, 1,0, false, _float, -(4/3));
-assert.sameValue(a.indexOf(-(4 / 3)), 14, 'a[14]=_float===-(4/3)');
+assert.sameValue(a.indexOf(-(4/3)), 14, 'a[14]=_float===-(4/3)');
assert.sameValue(a.indexOf(0), 7, 'a[7] = +0, 0===+0');
assert.sameValue(a.indexOf(-0), 7, 'a[7] = +0, -0===+0');
assert.sameValue(a.indexOf(1), 10, 'a[10] =one=== 1');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-3.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-3.js
index 8b4ff007c..3c83a98d9 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-3.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-3.js
@@ -7,12 +7,8 @@ es5id: 15.4.4.14-9-3
description: Array.prototype.indexOf must return correct index(string)
---*/
-var obj = {
- toString: function() {
- return "false"
- }
-};
-var szFalse = "false";
-var a = new Array("false1", undefined, 0, false, null, 1, obj, 0, szFalse, "false");
+ var obj = {toString:function (){return "false"}};
+ var szFalse = "false";
+ var a = new Array("false1",undefined,0,false,null,1,obj,0,szFalse, "false");
assert.sameValue(a.indexOf("false"), 8, 'a[8]=szFalse');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-4.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-4.js
index 697f91967..d0b3a3a3e 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-4.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-4.js
@@ -7,13 +7,9 @@ es5id: 15.4.4.14-9-4
description: Array.prototype.indexOf must return correct index(undefined)
---*/
-var obj = {
- toString: function() {
- return undefined;
- }
-};
-var _undefined1 = undefined;
-var _undefined2;
-var a = new Array(true, 0, false, null, 1, "undefined", obj, 1, _undefined2, _undefined1, undefined);
+ var obj = {toString:function (){return undefined;}};
+ var _undefined1 = undefined;
+ var _undefined2;
+ var a = new Array(true,0,false,null,1,"undefined",obj,1,_undefined2,_undefined1,undefined);
assert.sameValue(a.indexOf(undefined), 8, 'a[8]=_undefined2');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-5.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-5.js
index 8537c3ac3..3a31b1477 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-5.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-5.js
@@ -7,21 +7,9 @@ es5id: 15.4.4.14-9-5
description: Array.prototype.indexOf must return correct index (Object)
---*/
-var obj1 = {
- toString: function() {
- return "false"
- }
-};
-var obj2 = {
- toString: function() {
- return "false"
- }
-};
-var obj3 = obj1;
-var a = new Array(false, undefined, 0, false, null, {
- toString: function() {
- return "false"
- }
-}, "false", obj2, obj1, obj3);
+ var obj1 = {toString:function (){return "false"}};
+ var obj2 = {toString:function (){return "false"}};
+ var obj3 = obj1;
+ var a = new Array(false,undefined,0,false,null,{toString:function (){return "false"}},"false",obj2,obj1,obj3);
assert.sameValue(a.indexOf(obj3), 8, 'a[8] = obj1');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-6.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-6.js
index cb657505b..adb3280e8 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-6.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-6.js
@@ -7,12 +7,8 @@ es5id: 15.4.4.14-9-6
description: Array.prototype.indexOf must return correct index(null)
---*/
-var obj = {
- toString: function() {
- return null
- }
-};
-var _null = null;
-var a = new Array(true, undefined, 0, false, _null, 1, "str", 0, 1, obj, true, false, null);
+ var obj = {toString:function (){return null}};
+ var _null = null;
+ var a = new Array(true,undefined,0,false,_null,1,"str",0,1,obj,true,false,null);
assert.sameValue(a.indexOf(null), 4, 'a[4]=_null');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-7.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-7.js
index 0a8028b4e..33bf64933 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-7.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-7.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.14-9-7
description: Array.prototype.indexOf must return correct index (self reference)
---*/
-var a = new Array(0, 1, 2, 3);
-a[2] = a;
+ var a = new Array(0,1,2,3);
+ a[2] = a;
assert.sameValue(a.indexOf(a), 2, 'a.indexOf(a)');
assert.sameValue(a.indexOf(3), 3, 'a.indexOf(3)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-8.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-8.js
index 7e07ce058..86889e437 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-8.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-8.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.14-9-8
description: Array.prototype.indexOf must return correct index (Array)
---*/
-var b = new Array("0,1");
-var a = new Array(0, b, "0,1", 3);
+ var b = new Array("0,1");
+ var a = new Array(0,b,"0,1",3);
assert.sameValue(a.indexOf(b.toString()), 2, 'a.indexOf(b.toString())');
assert.sameValue(a.indexOf("0,1"), 2, 'a.indexOf("0,1")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-9.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-9.js
index 800f568bf..82fc8113c 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-9.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-9.js
@@ -7,15 +7,15 @@ es5id: 15.4.4.14-9-9
description: Array.prototype.indexOf must return correct index (Sparse Array)
---*/
-var a = new Array(0, 1);
-a[4294967294] = 2; // 2^32-2 - is max array element
-a[4294967295] = 3; // 2^32-1 added as non-array element property
-a[4294967296] = 4; // 2^32 added as non-array element property
-a[4294967297] = 5; // 2^32+1 added as non-array element property
+ var a = new Array(0,1);
+ a[4294967294] = 2; // 2^32-2 - is max array element
+ a[4294967295] = 3; // 2^32-1 added as non-array element property
+ a[4294967296] = 4; // 2^32 added as non-array element property
+ a[4294967297] = 5; // 2^32+1 added as non-array element property
-// start searching near the end so in case implementation actually tries to test all missing elements!!
+ // start searching near the end so in case implementation actually tries to test all missing elements!!
-assert.sameValue(a.indexOf(2, 4294967290), 4294967294, 'a.indexOf(2,4294967290 )');
-assert.sameValue(a.indexOf(3, 4294967290), -1, 'a.indexOf(3,4294967290)');
-assert.sameValue(a.indexOf(4, 4294967290), -1, 'a.indexOf(4,4294967290)');
-assert.sameValue(a.indexOf(5, 4294967290), -1, 'a.indexOf(5,4294967290)');
+assert.sameValue(a.indexOf(2,4294967290 ), 4294967294, 'a.indexOf(2,4294967290 )');
+assert.sameValue(a.indexOf(3,4294967290), -1, 'a.indexOf(3,4294967290)');
+assert.sameValue(a.indexOf(4,4294967290), -1, 'a.indexOf(4,4294967290)');
+assert.sameValue(a.indexOf(5,4294967290), -1, 'a.indexOf(5,4294967290)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-1.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-1.js
index 043314c60..0d17a2be4 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-1.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-1.js
@@ -9,14 +9,14 @@ description: >
here
---*/
-var arr = {};
+ var arr = { };
-Object.defineProperty(arr, "length", {
- get: function() {
- arr[2] = "length";
- return 3;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "length", {
+ get: function () {
+ arr[2] = "length";
+ return 3;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.indexOf.call(arr, "length"), 2, 'Array.prototype.indexOf.call(arr, "length")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-10.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-10.js
index 4a2797e62..ff6b0a9c8 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-10.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-10.js
@@ -9,19 +9,19 @@ description: >
after current position are visited on an Array
---*/
-var arr = [0, , 2];
+ var arr = [0, , 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- Object.defineProperty(Array.prototype, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ Object.defineProperty(Array.prototype, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
assert.sameValue(arr.indexOf(6.99), 1, 'arr.indexOf(6.99)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-11.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-11.js
index 65e504325..6e9587d5a 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-11.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-11.js
@@ -9,23 +9,21 @@ description: >
property not to be visited on an Array-like object
---*/
-var arr = {
- length: 2
-};
+ var arr = { length: 2 };
-Object.defineProperty(arr, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "0", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.indexOf.call(arr, 6.99), -1, 'Array.prototype.indexOf.call(arr, 6.99)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-12.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-12.js
index d07f4a710..172dd1133 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-12.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-12.js
@@ -9,21 +9,21 @@ description: >
property not to be visited on an Array
---*/
-var arr = [1, 2];
+ var arr = [1, 2];
-Object.defineProperty(arr, "1", {
- get: function() {
- return "6.99";
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return "6.99";
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "0", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
assert.sameValue(arr.indexOf("6.99"), -1, 'arr.indexOf("6.99")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-13.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-13.js
index f45f555cf..2390e6e7f 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-13.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-13.js
@@ -9,19 +9,16 @@ description: >
prototype index property not to be visited on an Array-like Object
---*/
-var arr = {
- 2: 2,
- length: 20
-};
+ var arr = { 2: 2, length: 20 };
-Object.defineProperty(arr, "0", {
- get: function() {
- delete Object.prototype[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete Object.prototype[1];
+ return 0;
+ },
+ configurable: true
+ });
-Object.prototype[1] = 1;
+ Object.prototype[1] = 1;
assert.sameValue(Array.prototype.indexOf.call(arr, 1), -1, 'Array.prototype.indexOf.call(arr, 1)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-14.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-14.js
index 216e4da0b..81cbe7b98 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-14.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-14.js
@@ -9,16 +9,16 @@ description: >
prototype index property not to be visited on an Array
---*/
-var arr = [0, , 2];
+ var arr = [0, , 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- delete Array.prototype[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete Array.prototype[1];
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype[1] = 1;
+ Array.prototype[1] = 1;
assert.sameValue(arr.indexOf(1), -1, 'arr.indexOf(1)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-15.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-15.js
index 5c5be6dc9..c7c60d7c4 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-15.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-15.js
@@ -10,21 +10,16 @@ description: >
Array-like object
---*/
-var arr = {
- 0: 0,
- 1: 111,
- 2: 2,
- length: 10
-};
+ var arr = { 0: 0, 1: 111, 2: 2, length: 10 };
-Object.defineProperty(arr, "0", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
-Object.prototype[1] = 1;
+ Object.prototype[1] = 1;
assert.sameValue(Array.prototype.indexOf.call(arr, 1), 1, 'Array.prototype.indexOf.call(arr, 1)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-16.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-16.js
index ed4072719..707207440 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-16.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-16.js
@@ -9,16 +9,16 @@ description: >
property causes prototype index property to be visited on an Array
---*/
-var arr = [0, 111, 2];
+ var arr = [0, 111, 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype[1] = 1;
+ Array.prototype[1] = 1;
assert.sameValue(arr.indexOf(1), 1, 'arr.indexOf(1)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-17.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-17.js
index 8309a3b86..74a6eddb4 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-17.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-17.js
@@ -9,14 +9,14 @@ description: >
property not to be visited
---*/
-var arr = [0, 1, 2, "last"];
+ var arr = [0, 1, 2, "last"];
-Object.defineProperty(arr, "0", {
- get: function() {
- arr.length = 3;
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ arr.length = 3;
+ return 0;
+ },
+ configurable: true
+ });
assert.sameValue(arr.indexOf("last"), -1, 'arr.indexOf("last")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-18.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-18.js
index 1d728bce1..f1e2fa4f4 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-18.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-18.js
@@ -9,21 +9,21 @@ description: >
prototype property causes prototype index property to be visited
---*/
-var arr = [0, 1, 2];
+ var arr = [0, 1, 2];
-Object.defineProperty(Array.prototype, "2", {
- get: function() {
- return "prototype";
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "2", {
+ get: function () {
+ return "prototype";
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- arr.length = 2;
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ arr.length = 2;
+ return 1;
+ },
+ configurable: true
+ });
assert.sameValue(arr.indexOf("prototype"), 2, 'arr.indexOf("prototype")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-19.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-19.js
index 0fab8d12b..b30be5fda 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-19.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-19.js
@@ -10,22 +10,22 @@ description: >
flags: [noStrict]
---*/
-var arr = [0, 1, 2];
+ var arr = [0, 1, 2];
-Object.defineProperty(arr, "2", {
- get: function() {
- return "unconfigurable";
- },
- configurable: false
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ return "unconfigurable";
+ },
+ configurable: false
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- arr.length = 2;
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ arr.length = 2;
+ return 1;
+ },
+ configurable: true
+ });
assert.sameValue(arr.indexOf("unconfigurable"), 2, 'arr.indexOf("unconfigurable")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-2.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-2.js
index fac0434b9..a0e8b8295 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-2.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-2.js
@@ -9,17 +9,15 @@ description: >
here on an Array-like object
---*/
-var arr = {
- length: 30
-};
-var targetObj = function() {};
+ var arr = { length: 30 };
+ var targetObj = function () { };
-var fromIndex = {
- valueOf: function() {
- arr[4] = targetObj;
- return 3;
- }
-};
+ var fromIndex = {
+ valueOf: function () {
+ arr[4] = targetObj;
+ return 3;
+ }
+ };
assert.sameValue(Array.prototype.indexOf.call(arr, targetObj, fromIndex), 4, 'Array.prototype.indexOf.call(arr, targetObj, fromIndex)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-3.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-3.js
index d7954ea90..5ac6827ee 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-3.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-3.js
@@ -9,15 +9,15 @@ description: >
here on an Array
---*/
-var arr = [];
-arr.length = 30;
-var targetObj = function() {};
+ var arr = [];
+ arr.length = 30;
+ var targetObj = function () { };
-var fromIndex = {
- valueOf: function() {
- arr[4] = targetObj;
- return 3;
- }
-};
+ var fromIndex = {
+ valueOf: function () {
+ arr[4] = targetObj;
+ return 3;
+ }
+ };
assert.sameValue(arr.indexOf(targetObj, fromIndex), 4, 'arr.indexOf(targetObj, fromIndex)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-4.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-4.js
index 1340a1d67..8a5e756c5 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-4.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-4.js
@@ -9,16 +9,14 @@ description: >
here
---*/
-var arr = {
- 2: 6.99
-};
+ var arr = { 2: 6.99 };
-Object.defineProperty(arr, "length", {
- get: function() {
- delete arr[2];
- return 3;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "length", {
+ get: function () {
+ delete arr[2];
+ return 3;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.indexOf.call(arr, 6.99), -1, 'Array.prototype.indexOf.call(arr, 6.99)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-5.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-5.js
index 926a37aeb..255c327a3 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-5.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-5.js
@@ -9,16 +9,13 @@ description: >
here on an Array-like object
---*/
-var arr = {
- 10: false,
- length: 30
-};
+ var arr = { 10: false, length: 30 };
-var fromIndex = {
- valueOf: function() {
- delete arr[10];
- return 3;
- }
-};
+ var fromIndex = {
+ valueOf: function () {
+ delete arr[10];
+ return 3;
+ }
+ };
assert.sameValue(Array.prototype.indexOf.call(arr, false, fromIndex), -1, 'Array.prototype.indexOf.call(arr, false, fromIndex)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-6.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-6.js
index 41e275c6c..e78f717c3 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-6.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-6.js
@@ -9,15 +9,15 @@ description: >
here on an Array
---*/
-var arr = [];
-arr[10] = "10";
-arr.length = 20;
+ var arr = [];
+ arr[10] = "10";
+ arr.length = 20;
-var fromIndex = {
- valueOf: function() {
- delete arr[10];
- return 3;
- }
-};
+ var fromIndex = {
+ valueOf: function () {
+ delete arr[10];
+ return 3;
+ }
+ };
assert.sameValue(arr.indexOf("10", fromIndex), -1, 'arr.indexOf("10", fromIndex)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-7.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-7.js
index 317816ab6..58e38614c 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-7.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-7.js
@@ -9,21 +9,19 @@ description: >
current position are visited on an Array-like object
---*/
-var arr = {
- length: 2
-};
+ var arr = { length: 2 };
-Object.defineProperty(arr, "0", {
- get: function() {
- Object.defineProperty(arr, "1", {
- get: function() {
- return 1;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.indexOf.call(arr, 1), 1, 'Array.prototype.indexOf.call(arr, 1)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-8.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-8.js
index af3577d7d..aa43ed573 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-8.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-8.js
@@ -9,19 +9,19 @@ description: >
current position are visited on an Array
---*/
-var arr = [0, , 2];
+ var arr = [0, , 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- Object.defineProperty(arr, "1", {
- get: function() {
- return 1;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
assert.sameValue(arr.indexOf(1), 1, 'arr.indexOf(1)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-9.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-9.js
index 22ea6154a..e36af343d 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-9.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-9.js
@@ -9,21 +9,19 @@ description: >
after current position are visited on an Array-like object
---*/
-var arr = {
- length: 2
-};
+ var arr = { length: 2 };
-Object.defineProperty(arr, "0", {
- get: function() {
- Object.defineProperty(Object.prototype, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ Object.defineProperty(Object.prototype, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.indexOf.call(arr, 6.99), 1, 'Array.prototype.indexOf.call(arr, 6.99)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-1.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-1.js
index 211c212cc..dc8bba867 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-1.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-1.js
@@ -9,12 +9,7 @@ description: >
property on an Array-like object
---*/
-var obj = {
- 0: 0,
- 1: 1,
- 2: 2,
- length: 3
-};
+ var obj = { 0: 0, 1: 1, 2: 2, length: 3 };
assert.sameValue(Array.prototype.indexOf.call(obj, 0), 0, 'Array.prototype.indexOf.call(obj, 0)');
assert.sameValue(Array.prototype.indexOf.call(obj, 1), 1, 'Array.prototype.indexOf.call(obj, 1)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-10.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-10.js
index af735dd41..8cf69e48d 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-10.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-10.js
@@ -9,29 +9,27 @@ description: >
property on an Array-like object
---*/
-var obj = {
- length: 3
-};
-Object.defineProperty(obj, "0", {
- get: function() {
- return 0;
- },
- configurable: true
-});
+ var obj = { length: 3 };
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ return 0;
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "1", {
- get: function() {
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "2", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "2", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.indexOf.call(obj, 0), 0, 'Array.prototype.indexOf.call(obj, 0)');
assert.sameValue(Array.prototype.indexOf.call(obj, 1), 1, 'Array.prototype.indexOf.call(obj, 1)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-11.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-11.js
index d744fec56..0d1ca8e70 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-11.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-11.js
@@ -9,14 +9,14 @@ description: >
property that overrides an inherited data property on an Array
---*/
-var arr = [];
+ var arr = [];
-Array.prototype[0] = false;
-Object.defineProperty(arr, "0", {
- get: function() {
- return true;
- },
- configurable: true
-});
+ Array.prototype[0] = false;
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ return true;
+ },
+ configurable: true
+ });
assert.sameValue(arr.indexOf(true), 0, 'arr.indexOf(true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-12.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-12.js
index 77f337f6b..de13d9f38 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-12.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-12.js
@@ -10,16 +10,14 @@ description: >
Array-like object
---*/
-var obj = {
- length: 1
-};
+ var obj = { length: 1 };
-Object.prototype[0] = false;
-Object.defineProperty(obj, "0", {
- get: function() {
- return true;
- },
- configurable: true
-});
+ Object.prototype[0] = false;
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ return true;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.indexOf.call(obj, true), 0, 'Array.prototype.indexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-13.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-13.js
index f260b91bf..27be95dc6 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-13.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-13.js
@@ -9,20 +9,20 @@ description: >
property that overrides an inherited accessor property on an Array
---*/
-var arr = [];
+ var arr = [];
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return false;
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return false;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "0", {
- get: function() {
- return true;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ return true;
+ },
+ configurable: true
+ });
assert.sameValue(arr.indexOf(true), 0, 'arr.indexOf(true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-14.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-14.js
index b3133a5bc..265667e71 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-14.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-14.js
@@ -10,22 +10,20 @@ description: >
Array-like object
---*/
-var obj = {
- length: 1
-};
+ var obj = { length: 1 };
-Object.defineProperty(Object.prototype, "0", {
- get: function() {
- return false;
- },
- configurable: true
-});
+ Object.defineProperty(Object.prototype, "0", {
+ get: function () {
+ return false;
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "0", {
- get: function() {
- return true;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ return true;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.indexOf.call(obj, true), 0, 'Array.prototype.indexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-15.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-15.js
index e9f5b47b7..44b2da7af 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-15.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-15.js
@@ -9,26 +9,26 @@ description: >
accessor property on an Array
---*/
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return 10;
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return 10;
+ },
+ configurable: true
+ });
-Object.defineProperty(Array.prototype, "1", {
- get: function() {
- return 20;
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "1", {
+ get: function () {
+ return 20;
+ },
+ configurable: true
+ });
-Object.defineProperty(Array.prototype, "2", {
- get: function() {
- return 30;
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "2", {
+ get: function () {
+ return 30;
+ },
+ configurable: true
+ });
assert.sameValue([, , , ].indexOf(10), 0, '[, , , ].indexOf(10)');
assert.sameValue([, , , ].indexOf(20), 1, '[, , , ].indexOf(20)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-16.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-16.js
index 8a8057ee9..754db8aad 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-16.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-16.js
@@ -9,33 +9,27 @@ description: >
accessor property on an Array-like object
---*/
-Object.defineProperty(Object.prototype, "0", {
- get: function() {
- return 10;
- },
- configurable: true
-});
+ Object.defineProperty(Object.prototype, "0", {
+ get: function () {
+ return 10;
+ },
+ configurable: true
+ });
-Object.defineProperty(Object.prototype, "1", {
- get: function() {
- return 20;
- },
- configurable: true
-});
+ Object.defineProperty(Object.prototype, "1", {
+ get: function () {
+ return 20;
+ },
+ configurable: true
+ });
-Object.defineProperty(Object.prototype, "2", {
- get: function() {
- return 30;
- },
- configurable: true
-});
+ Object.defineProperty(Object.prototype, "2", {
+ get: function () {
+ return 30;
+ },
+ configurable: true
+ });
-assert.sameValue(Array.prototype.indexOf.call({
- length: 3
-}, 10), 0, 'Array.prototype.indexOf.call({ length: 3 }, 10)');
-assert.sameValue(Array.prototype.indexOf.call({
- length: 3
-}, 20), 1, 'Array.prototype.indexOf.call({ length: 3 }, 20)');
-assert.sameValue(Array.prototype.indexOf.call({
- length: 3
-}, 30), 2, 'Array.prototype.indexOf.call({ length: 3 }, 30)');
+assert.sameValue(Array.prototype.indexOf.call({ length: 3 }, 10), 0, 'Array.prototype.indexOf.call({ length: 3 }, 10)');
+assert.sameValue(Array.prototype.indexOf.call({ length: 3 }, 20), 1, 'Array.prototype.indexOf.call({ length: 3 }, 20)');
+assert.sameValue(Array.prototype.indexOf.call({ length: 3 }, 30), 2, 'Array.prototype.indexOf.call({ length: 3 }, 30)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-17.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-17.js
index 9ffbbe16c..551e2a30e 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-17.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-17.js
@@ -9,10 +9,10 @@ description: >
property without a get function on an Array
---*/
-var arr = [];
-Object.defineProperty(arr, "0", {
- set: function() {},
- configurable: true
-});
+ var arr = [];
+ Object.defineProperty(arr, "0", {
+ set: function () { },
+ configurable: true
+ });
assert.sameValue(arr.indexOf(undefined), 0, 'arr.indexOf(undefined)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-18.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-18.js
index e79db90e3..4701e3fd8 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-18.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-18.js
@@ -9,12 +9,10 @@ description: >
property without a get function on an Array-like object
---*/
-var obj = {
- length: 1
-};
-Object.defineProperty(obj, "0", {
- set: function() {},
- configurable: true
-});
+ var obj = { length: 1 };
+ Object.defineProperty(obj, "0", {
+ set: function () { },
+ configurable: true
+ });
assert.sameValue(Array.prototype.indexOf.call(obj, undefined), 0, 'Array.prototype.indexOf.call(obj, undefined)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-19.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-19.js
index 2ded8363e..b640d8965 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-19.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-19.js
@@ -10,18 +10,18 @@ description: >
accessor property on an Array
---*/
-var arr = [];
+ var arr = [];
-Object.defineProperty(arr, "0", {
- set: function() {},
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ set: function () { },
+ configurable: true
+ });
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
assert.sameValue(arr.indexOf(undefined), 0, 'arr.indexOf(undefined)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-20.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-20.js
index 793084e9e..56508fe50 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-20.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-20.js
@@ -10,23 +10,23 @@ description: >
accessor property on an Array-like object
---*/
-var proto = {};
-Object.defineProperty(proto, "0", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ var proto = {};
+ Object.defineProperty(proto, "0", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child.length = 1;
+ var child = new Con();
+ child.length = 1;
-Object.defineProperty(child, "0", {
- set: function() {},
- configurable: true
-});
+ Object.defineProperty(child, "0", {
+ set: function () { },
+ configurable: true
+ });
assert.sameValue(Array.prototype.indexOf.call(child, undefined), 0, 'Array.prototype.indexOf.call(child, undefined)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-21.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-21.js
index ffc933148..24144df08 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-21.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-21.js
@@ -9,9 +9,9 @@ description: >
accessor property without a get function on an Array
---*/
-Object.defineProperty(Array.prototype, "0", {
- set: function() {},
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ set: function () { },
+ configurable: true
+ });
assert.sameValue([, ].indexOf(undefined), 0, '[, ].indexOf(undefined)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-22.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-22.js
index f9fa4d41a..922d2e7ce 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-22.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-22.js
@@ -9,11 +9,9 @@ description: >
accessor property without a get function on an Array-like object
---*/
-Object.defineProperty(Object.prototype, "0", {
- set: function() {},
- configurable: true
-});
+ Object.defineProperty(Object.prototype, "0", {
+ set: function () { },
+ configurable: true
+ });
-assert.sameValue(Array.prototype.indexOf.call({
- length: 1
-}, undefined), 0, 'Array.prototype.indexOf.call({ length: 1 }, undefined)');
+assert.sameValue(Array.prototype.indexOf.call({ length: 1 }, undefined), 0, 'Array.prototype.indexOf.call({ length: 1 }, undefined)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-25.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-25.js
index 4e5bb8b13..b2f3bc442 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-25.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-25.js
@@ -10,9 +10,9 @@ description: >
less than number of parameters)
---*/
-var func = function(a, b) {
- return 0 === Array.prototype.indexOf.call(arguments, arguments[0]) &&
- -1 === Array.prototype.indexOf.call(arguments, arguments[1]);
-};
+ var func = function (a, b) {
+ return 0 === Array.prototype.indexOf.call(arguments, arguments[0]) &&
+ -1 === Array.prototype.indexOf.call(arguments, arguments[1]);
+ };
assert(func(true), 'func(true) !== true');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-26.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-26.js
index caa167d9d..330ea1966 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-26.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-26.js
@@ -10,10 +10,10 @@ description: >
to number of parameters)
---*/
-var func = function(a, b) {
- return 0 === Array.prototype.indexOf.call(arguments, arguments[0]) &&
- 1 === Array.prototype.indexOf.call(arguments, arguments[1]) &&
- -1 === Array.prototype.indexOf.call(arguments, arguments[2]);
-};
+ var func = function (a, b) {
+ return 0 === Array.prototype.indexOf.call(arguments, arguments[0]) &&
+ 1 === Array.prototype.indexOf.call(arguments, arguments[1]) &&
+ -1 === Array.prototype.indexOf.call(arguments, arguments[2]);
+ };
assert(func(0, true), 'func(0, true) !== true');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-27.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-27.js
index 02017a929..5935f22ba 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-27.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-27.js
@@ -10,10 +10,10 @@ description: >
greater than number of parameters)
---*/
-var func = function(a, b) {
- return 0 === Array.prototype.indexOf.call(arguments, arguments[0]) &&
- 3 === Array.prototype.indexOf.call(arguments, arguments[3]) &&
- -1 === Array.prototype.indexOf.call(arguments, arguments[4]);
-};
+ var func = function (a, b) {
+ return 0 === Array.prototype.indexOf.call(arguments, arguments[0]) &&
+ 3 === Array.prototype.indexOf.call(arguments, arguments[3]) &&
+ -1 === Array.prototype.indexOf.call(arguments, arguments[4]);
+ };
assert(func(0, false, 0, true), 'func(0, false, 0, true) !== true');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-28.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-28.js
index 2a13283be..dc9119d68 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-28.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-28.js
@@ -9,26 +9,26 @@ description: >
iterations on an Array
---*/
-var preIterVisible = false;
-var arr = [];
+ var preIterVisible = false;
+ var arr = [];
-Object.defineProperty(arr, "0", {
- get: function() {
- preIterVisible = true;
- return false;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ preIterVisible = true;
+ return false;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- if (preIterVisible) {
- return true;
- } else {
- return false;
- }
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ if (preIterVisible) {
+ return true;
+ } else {
+ return false;
+ }
+ },
+ configurable: true
+ });
assert.sameValue(arr.indexOf(true), 1, 'arr.indexOf(true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-29.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-29.js
index 475817a8e..1c941586e 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-29.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-29.js
@@ -9,28 +9,26 @@ description: >
iterations on an Array-like object
---*/
-var preIterVisible = false;
-var obj = {
- length: 2
-};
+ var preIterVisible = false;
+ var obj = { length: 2 };
-Object.defineProperty(obj, "0", {
- get: function() {
- preIterVisible = true;
- return false;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ preIterVisible = true;
+ return false;
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "1", {
- get: function() {
- if (preIterVisible) {
- return true;
- } else {
- return false;
- }
- },
- configurable: true
-});
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ if (preIterVisible) {
+ return true;
+ } else {
+ return false;
+ }
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-3.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-3.js
index 84006e81e..1df5d9eb9 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-3.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-3.js
@@ -9,6 +9,6 @@ description: >
property that overrides an inherited data property on an Array
---*/
-Array.prototype[0] = false;
+ Array.prototype[0] = false;
assert.sameValue([true].indexOf(true), 0, '[true].indexOf(true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-30.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-30.js
index c2c8d1350..440a31448 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-30.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-30.js
@@ -9,24 +9,24 @@ description: >
exception on an Array
---*/
-var accessed = false;
-var arr = [];
+ var accessed = false;
+ var arr = [];
-Object.defineProperty(arr, "0", {
- get: function() {
- throw new TypeError();
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ throw new TypeError();
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- accessed = true;
- return true;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ accessed = true;
+ return true;
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- arr.indexOf(true);
+ arr.indexOf(true);
});
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-31.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-31.js
index 8977a9893..9cae879bc 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-31.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-31.js
@@ -9,26 +9,24 @@ description: >
exception on an Array-like object
---*/
-var accessed = false;
-var obj = {
- length: 2
-};
+ var accessed = false;
+ var obj = { length: 2 };
-Object.defineProperty(obj, "0", {
- get: function() {
- throw new TypeError();
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ throw new TypeError();
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "1", {
- get: function() {
- accessed = true;
- return true;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ accessed = true;
+ return true;
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.indexOf.call(obj, true);
+ Array.prototype.indexOf.call(obj, true);
});
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-4.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-4.js
index 892068426..171ced904 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-4.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-4.js
@@ -10,10 +10,6 @@ description: >
Array-like object
---*/
-Object.prototype[0] = false;
+ Object.prototype[0] = false;
-assert.sameValue(Array.prototype.indexOf.call({
- 0: true,
- 1: 1,
- length: 2
-}, true), 0, 'Array.prototype.indexOf.call({ 0: true, 1: 1, length: 2 }, true)');
+assert.sameValue(Array.prototype.indexOf.call({ 0: true, 1: 1, length: 2 }, true), 0, 'Array.prototype.indexOf.call({ 0: true, 1: 1, length: 2 }, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-5.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-5.js
index 1d4332e74..24a407691 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-5.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-5.js
@@ -9,11 +9,11 @@ description: >
property that overrides an inherited accessor property on an Array
---*/
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return false;
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return false;
+ },
+ configurable: true
+ });
assert.sameValue([true].indexOf(true), 0, '[true].indexOf(true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-6.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-6.js
index 4661515c4..22e410e7d 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-6.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-6.js
@@ -10,15 +10,11 @@ description: >
Array-like object
---*/
-Object.defineProperty(Object.prototype, "0", {
- get: function() {
- return false;
- },
- configurable: true
-});
+ Object.defineProperty(Object.prototype, "0", {
+ get: function () {
+ return false;
+ },
+ configurable: true
+ });
-assert.sameValue(Array.prototype.indexOf.call({
- 0: true,
- 1: 1,
- length: 2
-}, true), 0, 'Array.prototype.indexOf.call({ 0: true, 1: 1, length: 2 }, true)');
+assert.sameValue(Array.prototype.indexOf.call({ 0: true, 1: 1, length: 2 }, true), 0, 'Array.prototype.indexOf.call({ 0: true, 1: 1, length: 2 }, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-7.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-7.js
index 6344f1784..9382abf00 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-7.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-7.js
@@ -9,9 +9,9 @@ description: >
data property on an Array
---*/
-Array.prototype[0] = true;
-Array.prototype[1] = false;
-Array.prototype[2] = "true";
+ Array.prototype[0] = true;
+ Array.prototype[1] = false;
+ Array.prototype[2] = "true";
assert.sameValue([, , , ].indexOf(true), 0, '[, , , ].indexOf(true)');
assert.sameValue([, , , ].indexOf(false), 1, '[, , , ].indexOf(false)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-8.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-8.js
index 7ac1d9810..52e280f1c 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-8.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-8.js
@@ -9,16 +9,10 @@ description: >
data property on an Array-like object
---*/
-Object.prototype[0] = true;
-Object.prototype[1] = false;
-Object.prototype[2] = "true";
+ Object.prototype[0] = true;
+ Object.prototype[1] = false;
+ Object.prototype[2] = "true";
-assert.sameValue(Array.prototype.indexOf.call({
- length: 3
-}, true), 0, 'Array.prototype.indexOf.call({ length: 3 }, true)');
-assert.sameValue(Array.prototype.indexOf.call({
- length: 3
-}, false), 1, 'Array.prototype.indexOf.call({ length: 3 }, false)');
-assert.sameValue(Array.prototype.indexOf.call({
- length: 3
-}, "true"), 2, 'Array.prototype.indexOf.call({ length: 3 }, "true")');
+assert.sameValue(Array.prototype.indexOf.call({ length: 3 }, true), 0, 'Array.prototype.indexOf.call({ length: 3 }, true)');
+assert.sameValue(Array.prototype.indexOf.call({ length: 3 }, false), 1, 'Array.prototype.indexOf.call({ length: 3 }, false)');
+assert.sameValue(Array.prototype.indexOf.call({ length: 3 }, "true"), 2, 'Array.prototype.indexOf.call({ length: 3 }, "true")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-9.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-9.js
index 007bbcc02..ed295d201 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-9.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-9.js
@@ -9,27 +9,27 @@ description: >
property on an Array
---*/
-var arr = [, , , ];
-Object.defineProperty(arr, "0", {
- get: function() {
- return 0;
- },
- configurable: true
-});
+ var arr = [, , , ];
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ return 0;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "2", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
assert.sameValue(arr.indexOf(0), 0, 'arr.indexOf(0)');
assert.sameValue(arr.indexOf(1), 1, 'arr.indexOf(1)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-ii-1.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-ii-1.js
index 9402b5c03..8c2c6d709 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-ii-1.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-ii-1.js
@@ -14,6 +14,4 @@ assert.sameValue(["0"].indexOf(0), -1, '["0"].indexOf(0)');
assert.sameValue([false].indexOf(0), -1, '[false].indexOf(0)');
assert.sameValue([undefined].indexOf(0), -1, '[undefined].indexOf(0)');
assert.sameValue([null].indexOf(0), -1, '[null].indexOf(0)');
-assert.sameValue([
- []
-].indexOf(0), -1, '[[]].indexOf(0)');
+assert.sameValue([[]].indexOf(0), -1, '[[]].indexOf(0)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-ii-11.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-ii-11.js
index dcce4f017..8aad97866 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-ii-11.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-ii-11.js
@@ -9,8 +9,8 @@ description: >
are Object type, and they refer to the same object
---*/
-var obj1 = {};
-var obj2 = {};
-var obj3 = obj2;
+ var obj1 = {};
+ var obj2 = {};
+ var obj3 = obj2;
assert.sameValue([{}, obj1, obj2].indexOf(obj3), 2, '[{}, obj1, obj2].indexOf(obj3)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-iii-2.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-iii-2.js
index 94a30fd4a..a593c8ce4 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-iii-2.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-iii-2.js
@@ -9,26 +9,26 @@ description: >
element once search value is found
---*/
-var arr = [1, 2, , 1, 2];
-var elementThirdAccessed = false;
-var elementFifthAccessed = false;
+ var arr = [1, 2, , 1, 2];
+ var elementThirdAccessed = false;
+ var elementFifthAccessed = false;
-Object.defineProperty(arr, "2", {
- get: function() {
- elementThirdAccessed = true;
- return 2;
- },
- configurable: true
-});
-Object.defineProperty(arr, "4", {
- get: function() {
- elementFifthAccessed = true;
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ elementThirdAccessed = true;
+ return 2;
+ },
+ configurable: true
+ });
+ Object.defineProperty(arr, "4", {
+ get: function () {
+ elementFifthAccessed = true;
+ return 2;
+ },
+ configurable: true
+ });
-arr.indexOf(2);
+ arr.indexOf(2);
assert.sameValue(elementThirdAccessed, false, 'elementThirdAccessed');
assert.sameValue(elementFifthAccessed, false, 'elementFifthAccessed');
diff --git a/test/built-ins/Array/prototype/join/S15.4.4.5_A1.2_T1.js b/test/built-ins/Array/prototype/join/S15.4.4.5_A1.2_T1.js
index 002775eac..1953684e5 100644
--- a/test/built-ins/Array/prototype/join/S15.4.4.5_A1.2_T1.js
+++ b/test/built-ins/Array/prototype/join/S15.4.4.5_A1.2_T1.js
@@ -9,7 +9,7 @@ description: Checking this use new Array() and []
---*/
//CHECK#1
-var x = new Array(0, 1, 2, 3);
+var x = new Array(0,1,2,3);
if (x.join() !== "0,1,2,3") {
$ERROR('#1: x = new Array(0,1,2,3); x.join() === "0,1,2,3". Actual: ' + (x.join()));
}
diff --git a/test/built-ins/Array/prototype/join/S15.4.4.5_A1.2_T2.js b/test/built-ins/Array/prototype/join/S15.4.4.5_A1.2_T2.js
index 9ec63f6c7..abb176f63 100644
--- a/test/built-ins/Array/prototype/join/S15.4.4.5_A1.2_T2.js
+++ b/test/built-ins/Array/prototype/join/S15.4.4.5_A1.2_T2.js
@@ -9,7 +9,7 @@ description: Checking this use new Array() and []
---*/
//CHECK#1
-var x = new Array(0, 1, 2, 3);
+var x = new Array(0,1,2,3);
if (x.join(undefined) !== "0,1,2,3") {
$ERROR('#1: x = new Array(0,1,2,3); x.join(undefined) === "0,1,2,3". Actual: ' + (x.join(undefined)));
}
diff --git a/test/built-ins/Array/prototype/join/S15.4.4.5_A1.3_T1.js b/test/built-ins/Array/prototype/join/S15.4.4.5_A1.3_T1.js
index bbe9801e5..8d8a730b0 100644
--- a/test/built-ins/Array/prototype/join/S15.4.4.5_A1.3_T1.js
+++ b/test/built-ins/Array/prototype/join/S15.4.4.5_A1.3_T1.js
@@ -23,7 +23,7 @@ if (x.join() !== "") {
}
//CHECK#3
-x = Array(undefined, 1, null, 3);
+x = Array(undefined,1,null,3);
if (x.join() !== ",1,,3") {
$ERROR('#3: x = Array(undefined,1,null,3); x.join() === ",1,,3". Actual: ' + (x.join()));
}
diff --git a/test/built-ins/Array/prototype/join/S15.4.4.5_A2_T1.js b/test/built-ins/Array/prototype/join/S15.4.4.5_A2_T1.js
index e9b56c053..0b9c69bf8 100644
--- a/test/built-ins/Array/prototype/join/S15.4.4.5_A2_T1.js
+++ b/test/built-ins/Array/prototype/join/S15.4.4.5_A2_T1.js
@@ -16,14 +16,14 @@ obj.join = Array.prototype.join;
if (obj.length !== undefined) {
$ERROR('#0: var obj = {}; obj.length === undefined. Actual: ' + (obj.length));
} else {
- //CHECK#1
- if (obj.join() !== "") {
- $ERROR('#1: var obj = {}; obj.join = Array.prototype.join; obj.join() === "". Actual: ' + (obj.join()));
- }
- //CHECK#2
- if (obj.length !== undefined) {
- $ERROR('#2: var obj = {}; obj.join = Array.prototype.join; obj.join(); obj.length === undefined. Actual: ' + (obj.length));
- }
+ //CHECK#1
+ if (obj.join() !== "") {
+ $ERROR('#1: var obj = {}; obj.join = Array.prototype.join; obj.join() === "". Actual: ' + (obj.join()));
+ }
+ //CHECK#2
+ if (obj.length !== undefined) {
+ $ERROR('#2: var obj = {}; obj.join = Array.prototype.join; obj.join(); obj.length === undefined. Actual: ' + (obj.length));
+ }
}
//CHECK#3
diff --git a/test/built-ins/Array/prototype/join/S15.4.4.5_A2_T2.js b/test/built-ins/Array/prototype/join/S15.4.4.5_A2_T2.js
index 8a6fbb980..3cd42a832 100644
--- a/test/built-ins/Array/prototype/join/S15.4.4.5_A2_T2.js
+++ b/test/built-ins/Array/prototype/join/S15.4.4.5_A2_T2.js
@@ -43,7 +43,7 @@ if (obj.join() !== "") {
if (obj.length !== -0) {
$ERROR('#8: var obj = {}; obj.length = -0; obj.join = Array.prototype.join; obj.join(); obj.length === 0. Actual: ' + (obj.length));
} else {
- if (1 / obj.length !== Number.NEGATIVE_INFINITY) {
+ if (1/obj.length !== Number.NEGATIVE_INFINITY) {
$ERROR('#8: var obj = {}; obj.length = -0; obj.join = Array.prototype.join; obj.join(); obj.length === -0. Actual: ' + (obj.length));
}
}
diff --git a/test/built-ins/Array/prototype/join/S15.4.4.5_A2_T4.js b/test/built-ins/Array/prototype/join/S15.4.4.5_A2_T4.js
index 729580e04..ac019fb79 100644
--- a/test/built-ins/Array/prototype/join/S15.4.4.5_A2_T4.js
+++ b/test/built-ins/Array/prototype/join/S15.4.4.5_A2_T4.js
@@ -16,51 +16,26 @@ var obj = {};
obj.join = Array.prototype.join;
//CHECK#1
-obj.length = {
- valueOf: function() {
- return 3
- }
-};
+obj.length = {valueOf: function() {return 3}};
if (obj.join() !== ",,") {
$ERROR('#1: obj.length = {valueOf: function() {return 3}} obj.join() === ",,". Actual: ' + (obj.join()));
}
//CHECK#2
-obj.length = {
- valueOf: function() {
- return 3
- },
- toString: function() {
- return 2
- }
-};
+obj.length = {valueOf: function() {return 3}, toString: function() {return 2}};
if (obj.join() !== ",,") {
$ERROR('#2: obj.length = {valueOf: function() {return 3}, toString: function() {return 2}} obj.join() === ",,". Actual: ' + (obj.join()));
}
//CHECK#3
-obj.length = {
- valueOf: function() {
- return 3
- },
- toString: function() {
- return {}
- }
-};
+obj.length = {valueOf: function() {return 3}, toString: function() {return {}}};
if (obj.join() !== ",,") {
$ERROR('#3: obj.length = {valueOf: function() {return 3}, toString: function() {return {}}} obj.join() === ",,". Actual: ' + (obj.join()));
}
//CHECK#4
try {
- obj.length = {
- valueOf: function() {
- return 3
- },
- toString: function() {
- throw "error"
- }
- };
+ obj.length = {valueOf: function() {return 3}, toString: function() {throw "error"}};
if (obj.join() !== ",,") {
$ERROR('#4.1: obj.length = {valueOf: function() {return 3}, toString: function() {throw "error"}}; obj.join() === ",". Actual: ' + (obj.join()));
}
@@ -74,38 +49,20 @@ catch (e) {
}
//CHECK#5
-obj.length = {
- toString: function() {
- return 2
- }
-};
+obj.length = {toString: function() {return 2}};
if (obj.join() !== ",") {
$ERROR('#5: obj.length = {toString: function() {return 2}} obj.join() === ",". Actual: ' + (obj.join()));
}
//CHECK#6
-obj.length = {
- valueOf: function() {
- return {}
- },
- toString: function() {
- return 2
- }
-}
+obj.length = {valueOf: function() {return {}}, toString: function() {return 2}}
if (obj.join() !== ",") {
$ERROR('#6: obj.length = {valueOf: function() {return {}}, toString: function() {return 2}} obj.join() === ",". Actual: ' + (obj.join()));
}
//CHECK#7
try {
- obj.length = {
- valueOf: function() {
- throw "error"
- },
- toString: function() {
- return 2
- }
- };
+ obj.length = {valueOf: function() {throw "error"}, toString: function() {return 2}};
obj.join();
$ERROR('#7.1: obj.length = {valueOf: function() {throw "error"}, toString: function() {return 2}}; obj.join() throw "error". Actual: ' + (obj.join()));
}
@@ -117,14 +74,7 @@ catch (e) {
//CHECK#8
try {
- obj.length = {
- valueOf: function() {
- return {}
- },
- toString: function() {
- return {}
- }
- };
+ obj.length = {valueOf: function() {return {}}, toString: function() {return {}}};
obj.join();
$ERROR('#8.1: obj.length = {valueOf: function() {return {}}, toString: function() {return {}}} obj.join() throw TypeError. Actual: ' + (obj.join()));
}
diff --git a/test/built-ins/Array/prototype/join/S15.4.4.5_A3.1_T1.js b/test/built-ins/Array/prototype/join/S15.4.4.5_A3.1_T1.js
index a76e7ba02..2bcd9eead 100644
--- a/test/built-ins/Array/prototype/join/S15.4.4.5_A3.1_T1.js
+++ b/test/built-ins/Array/prototype/join/S15.4.4.5_A3.1_T1.js
@@ -11,13 +11,13 @@ description: >
---*/
//CHECK#0
-var x = new Array(0, 1, 2, 3);
+var x = new Array(0,1,2,3);
if (x.join("") !== "0123") {
$ERROR('#0: x = new Array(0,1,2,3); x.join("") === "0123". Actual: ' + (x.join("")));
}
//CHECK#1
-x = new Array(0, 1, 2, 3);
+x = new Array(0,1,2,3);
if (x.join("\\") !== "0\\1\\2\\3") {
$ERROR('#1: x = new Array(0,1,2,3); x.join("\\") === "0\\1\\2\\3". Actual: ' + (x.join("\\")));
}
diff --git a/test/built-ins/Array/prototype/join/S15.4.4.5_A3.1_T2.js b/test/built-ins/Array/prototype/join/S15.4.4.5_A3.1_T2.js
index 28925d93e..70efad97b 100644
--- a/test/built-ins/Array/prototype/join/S15.4.4.5_A3.1_T2.js
+++ b/test/built-ins/Array/prototype/join/S15.4.4.5_A3.1_T2.js
@@ -10,53 +10,28 @@ description: >
String)
---*/
-var x = new Array(0, 1, 2, 3);
+var x = new Array(0,1,2,3);
//CHECK#1
-var object = {
- valueOf: function() {
- return "+"
- }
-};
+var object = {valueOf: function() {return "+"}};
if (x.join(object) !== "0[object Object]1[object Object]2[object Object]3") {
$ERROR('#1: var object = {valueOf: function() {return "+"}}; x.join(object) === "0[object Object]1[object Object]2[object Object]3". Actual: ' + (x.join(object)));
}
//CHECK#2
-var object = {
- valueOf: function() {
- return "+"
- },
- toString: function() {
- return "*"
- }
-};
+var object = {valueOf: function() {return "+"}, toString: function() {return "*"}};
if (x.join(object) !== "0*1*2*3") {
$ERROR('#2: var object = {valueOf: function() {return "+"}, toString: function() {return "*"}}; x.join(object) === "0*1*2*3". Actual: ' + (x.join(object)));
}
//CHECK#3
-var object = {
- valueOf: function() {
- return "+"
- },
- toString: function() {
- return {}
- }
-};
+var object = {valueOf: function() {return "+"}, toString: function() {return {}}};
if (x.join(object) !== "0+1+2+3") {
$ERROR('#3: var object = {valueOf: function() {return "+"}, toString: function() {return {}}}; x.join(object) === "0+1+2+3". Actual: ' + (x.join(object)));
}
//CHECK#4
try {
- var object = {
- valueOf: function() {
- throw "error"
- },
- toString: function() {
- return "*"
- }
- };
+ var object = {valueOf: function() {throw "error"}, toString: function() {return "*"}};
if (x.join(object) !== "0*1*2*3") {
$ERROR('#4.1: var object = {valueOf: function() {throw "error"}, toString: function() {return "*"}}; x.join(object) === "0*1*2*3". Actual: ' + (x.join(object)));
}
@@ -70,38 +45,20 @@ catch (e) {
}
//CHECK#5
-var object = {
- toString: function() {
- return "*"
- }
-};
+var object = {toString: function() {return "*"}};
if (x.join(object) !== "0*1*2*3") {
$ERROR('#5: var object = {toString: function() {return "*"}}; x.join(object) === "0*1*2*3". Actual: ' + (x.join(object)));
}
//CHECK#6
-var object = {
- valueOf: function() {
- return {}
- },
- toString: function() {
- return "*"
- }
-}
+var object = {valueOf: function() {return {}}, toString: function() {return "*"}}
if (x.join(object) !== "0*1*2*3") {
$ERROR('#6: var object = {valueOf: function() {return {}}, toString: function() {return "*"}}; x.join(object) === "0*1*2*3". Actual: ' + (x.join(object)));
}
//CHECK#7
try {
- var object = {
- valueOf: function() {
- return "+"
- },
- toString: function() {
- throw "error"
- }
- };
+ var object = {valueOf: function() {return "+"}, toString: function() {throw "error"}};
x.join(object);
$ERROR('#7.1: var object = {valueOf: function() {return "+"}, toString: function() {throw "error"}}; x.join(object) throw "error". Actual: ' + (x.join(object)));
}
@@ -113,14 +70,7 @@ catch (e) {
//CHECK#8
try {
- var object = {
- valueOf: function() {
- return {}
- },
- toString: function() {
- return {}
- }
- };
+ var object = {valueOf: function() {return {}}, toString: function() {return {}}};
x.join(object);
$ERROR('#8.1: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; x.join(object) throw TypeError. Actual: ' + (x.join(object)));
}
@@ -132,16 +82,12 @@ catch (e) {
//CHECK#9
try {
- var object = {
- toString: function() {
- throw "error"
- }
- };
- [].join(object);
- $ERROR('#9.1: var object = {toString: function() {throw "error"}}; [].join(object) throw "error". Actual: ' + ([].join(object)));
+ var object = {toString: function() {throw "error"}};
+ [].join(object);
+ $ERROR('#9.1: var object = {toString: function() {throw "error"}}; [].join(object) throw "error". Actual: ' + ([].join(object)));
}
catch (e) {
- if (e !== "error") {
- $ERROR('#9.2: var object = {toString: function() {throw "error"}}; [].join(object) throw "error". Actual: ' + (e));
- }
+ if (e !== "error") {
+ $ERROR('#9.2: var object = {toString: function() {throw "error"}}; [].join(object) throw "error". Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/Array/prototype/join/S15.4.4.5_A3.2_T1.js b/test/built-ins/Array/prototype/join/S15.4.4.5_A3.2_T1.js
index e90ed6ffe..f6a496655 100644
--- a/test/built-ins/Array/prototype/join/S15.4.4.5_A3.2_T1.js
+++ b/test/built-ins/Array/prototype/join/S15.4.4.5_A3.2_T1.js
@@ -11,13 +11,13 @@ description: >
---*/
//CHECK#0
-var x = new Array("", "", "");
+var x = new Array("","","");
if (x.join("") !== "") {
$ERROR('#0: var x = new Array("","",""); x.join("") === "". Actual: ' + (x.join("")));
}
//CHECK#1
-var x = new Array("\\", "\\", "\\");
+var x = new Array("\\","\\","\\");
if (x.join("\\") !== "\\\\\\\\\\") {
$ERROR('#1: var x = new Array("\\","\\","\\"); x.join("\\") === "\\\\\\\\\\". Actual: ' + (x.join("\\")));
}
@@ -29,31 +29,31 @@ if (x.join("&") !== "&&&&&") {
}
//CHECK#3
-var x = new Array(true, true, true);
+var x = new Array(true,true,true);
if (x.join() !== "true,true,true") {
- $ERROR('#3: var x = new Array(true,true,true); x.join(true,true,true) === "true,true,true". Actual: ' + (x.join(true, true, true)));
+ $ERROR('#3: var x = new Array(true,true,true); x.join(true,true,true) === "true,true,true". Actual: ' + (x.join(true,true,true)));
}
//CHECK#4
-var x = new Array(null, null, null);
+var x = new Array(null,null,null);
if (x.join() !== ",,") {
- $ERROR('#4: var x = new Array(null,null,null); x.join(null,null,null) === ",,". Actual: ' + (x.join(null, null, null)));
+ $ERROR('#4: var x = new Array(null,null,null); x.join(null,null,null) === ",,". Actual: ' + (x.join(null,null,null)));
}
//CHECK#5
-var x = new Array(undefined, undefined, undefined);
+var x = new Array(undefined,undefined,undefined);
if (x.join() !== ",,") {
- $ERROR('#5: var x = new Array(undefined,undefined,undefined); x.join(undefined,undefined,undefined) === ",,". Actual: ' + (x.join(undefined, undefined, undefined)));
+ $ERROR('#5: var x = new Array(undefined,undefined,undefined); x.join(undefined,undefined,undefined) === ",,". Actual: ' + (x.join(undefined,undefined,undefined)));
}
//CHECK#6
-var x = new Array(Infinity, Infinity, Infinity);
+var x = new Array(Infinity,Infinity,Infinity);
if (x.join() !== "Infinity,Infinity,Infinity") {
- $ERROR('#6: var x = new Array(Infinity,Infinity,Infinity); x.join(Infinity,Infinity,Infinity) === "Infinity,Infinity,Infinity". Actual: ' + (x.join(Infinity, Infinity, Infinity)));
+ $ERROR('#6: var x = new Array(Infinity,Infinity,Infinity); x.join(Infinity,Infinity,Infinity) === "Infinity,Infinity,Infinity". Actual: ' + (x.join(Infinity,Infinity,Infinity)));
}
//CHECK#7
-var x = new Array(NaN, NaN, NaN);
+var x = new Array(NaN,NaN,NaN);
if (x.join() !== "NaN,NaN,NaN") {
- $ERROR('#7: var x = new Array(NaN,NaN,NaN); x.join(NaN,NaN,NaN) === "NaN,NaN,NaN". Actual: ' + (x.join(NaN, NaN, NaN)));
+ $ERROR('#7: var x = new Array(NaN,NaN,NaN); x.join(NaN,NaN,NaN) === "NaN,NaN,NaN". Actual: ' + (x.join(NaN,NaN,NaN)));
}
diff --git a/test/built-ins/Array/prototype/join/S15.4.4.5_A3.2_T2.js b/test/built-ins/Array/prototype/join/S15.4.4.5_A3.2_T2.js
index 4dc0ff12a..863cead86 100644
--- a/test/built-ins/Array/prototype/join/S15.4.4.5_A3.2_T2.js
+++ b/test/built-ins/Array/prototype/join/S15.4.4.5_A3.2_T2.js
@@ -9,39 +9,21 @@ description: If Type(argument) is Object, evaluate ToPrimitive(argument, String)
---*/
//CHECK#1
-var object = {
- valueOf: function() {
- return "+"
- }
-};
+var object = {valueOf: function() {return "+"}};
var x = new Array(object);
if (x.join() !== "[object Object]") {
$ERROR('#1: var object = {valueOf: function() {return "+"}} var x = new Array(object); x.join() === "[object Object]". Actual: ' + (x.join()));
}
//CHECK#2
-var object = {
- valueOf: function() {
- return "+"
- },
- toString: function() {
- return "*"
- }
-};
+var object = {valueOf: function() {return "+"}, toString: function() {return "*"}};
var x = new Array(object);
if (x.join() !== "*") {
$ERROR('#2: var object = {valueOf: function() {return "+"}, toString: function() {return "*"}} var x = new Array(object); x.join() === "*". Actual: ' + (x.join()));
}
//CHECK#3
-var object = {
- valueOf: function() {
- return "+"
- },
- toString: function() {
- return {}
- }
-};
+var object = {valueOf: function() {return "+"}, toString: function() {return {}}};
var x = new Array(object);
if (x.join() !== "+") {
$ERROR('#3: var object = {valueOf: function() {return "+"}, toString: function() {return {}}} var x = new Array(object); x.join() === "+". Actual: ' + (x.join()));
@@ -49,14 +31,7 @@ if (x.join() !== "+") {
//CHECK#4
try {
- var object = {
- valueOf: function() {
- throw "error"
- },
- toString: function() {
- return "*"
- }
- };
+ var object = {valueOf: function() {throw "error"}, toString: function() {return "*"}};
var x = new Array(object);
if (x.join() !== "*") {
$ERROR('#4.1: var object = {valueOf: function() {throw "error"}, toString: function() {return "*"}} var x = new Array(object); x.join() === "*". Actual: ' + (x.join()));
@@ -71,25 +46,14 @@ catch (e) {
}
//CHECK#5
-var object = {
- toString: function() {
- return "*"
- }
-};
+var object = {toString: function() {return "*"}};
var x = new Array(object);
if (x.join() !== "*") {
$ERROR('#5: var object = {toString: function() {return "*"}} var x = new Array(object); x.join() === "*". Actual: ' + (x.join()));
}
//CHECK#6
-var object = {
- valueOf: function() {
- return {}
- },
- toString: function() {
- return "*"
- }
-}
+var object = {valueOf: function() {return {}}, toString: function() {return "*"}}
var x = new Array(object);
if (x.join() !== "*") {
$ERROR('#6: var object = {valueOf: function() {return {}}, toString: function() {return "*"}} var x = new Array(object); x.join() === "*". Actual: ' + (x.join()));
@@ -97,14 +61,7 @@ if (x.join() !== "*") {
//CHECK#7
try {
- var object = {
- valueOf: function() {
- return "+"
- },
- toString: function() {
- throw "error"
- }
- };
+ var object = {valueOf: function() {return "+"}, toString: function() {throw "error"}};
var x = new Array(object);
x.join();
$ERROR('#7.1: var object = {valueOf: function() {return "+"}, toString: function() {throw "error"}} var x = new Array(object); x.join() throw "error". Actual: ' + (x.join()));
@@ -117,14 +74,7 @@ catch (e) {
//CHECK#8
try {
- var object = {
- valueOf: function() {
- return {}
- },
- toString: function() {
- return {}
- }
- };
+ var object = {valueOf: function() {return {}}, toString: function() {return {}}};
var x = new Array(object);
x.join();
$ERROR('#8.1: var object = {valueOf: function() {return {}}, toString: function() {return {}}} var x = new Array(object); x.join() throw TypeError. Actual: ' + (x.join()));
diff --git a/test/built-ins/Array/prototype/join/S15.4.4.5_A5_T1.js b/test/built-ins/Array/prototype/join/S15.4.4.5_A5_T1.js
index 90ecc5cff..e8e781793 100644
--- a/test/built-ins/Array/prototype/join/S15.4.4.5_A5_T1.js
+++ b/test/built-ins/Array/prototype/join/S15.4.4.5_A5_T1.js
@@ -22,9 +22,7 @@ if (x.join() !== "0,1") {
Object.prototype[1] = 1;
Object.prototype.length = 2;
Object.prototype.join = Array.prototype.join;
-x = {
- 0: 0
-};
+x = {0:0};
if (x.join() !== "0,1") {
$ERROR('#2: Object.prototype[1] = 1; Object.prototype.length = 2; Object.prototype.join = Array.prototype.join; x = {0:0}; x.join() === "0,1". Actual: ' + (x.join()));
}
diff --git a/test/built-ins/Array/prototype/keys/iteration-mutable.js b/test/built-ins/Array/prototype/keys/iteration-mutable.js
index d2a2ecdbb..c20b26ee9 100644
--- a/test/built-ins/Array/prototype/keys/iteration-mutable.js
+++ b/test/built-ins/Array/prototype/keys/iteration-mutable.js
@@ -20,7 +20,7 @@ var result;
array.push('a');
result = iterator.next();
-assert.sameValue(result.done, false, 'First result `done` flag');
+assert.sameValue(result.done, false , 'First result `done` flag');
assert.sameValue(result.value, 0, 'First result `value`');
result = iterator.next();
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-1.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-1.js
index a1048adc8..39fc4df94 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-1.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-1.js
@@ -9,5 +9,5 @@ description: Array.prototype.lastIndexOf applied to undefined throws a TypeError
assert.throws(TypeError, function() {
- Array.prototype.lastIndexOf.call(undefined);
+ Array.prototype.lastIndexOf.call(undefined);
});
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-10.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-10.js
index ba6aec098..f2f1afb8b 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-10.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-10.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.15-1-10
description: Array.prototype.lastIndexOf applied to the Math object
---*/
-Math.length = 2;
-Math[1] = 100;
+ Math.length = 2;
+ Math[1] = 100;
assert.sameValue(Array.prototype.lastIndexOf.call(Math, 100), 1, 'Array.prototype.lastIndexOf.call(Math, 100)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-11.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-11.js
index ed42913de..acfcd13a2 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-11.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-11.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.15-1-11
description: Array.prototype.lastIndexOf applied to Date object
---*/
-var obj = new Date();
-obj.length = 2;
-obj[1] = true;
+ var obj = new Date();
+ obj.length = 2;
+ obj[1] = true;
assert.sameValue(Array.prototype.lastIndexOf.call(obj, true), 1, 'Array.prototype.lastIndexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-12.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-12.js
index 26b2c1492..54d128eb5 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-12.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-12.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.15-1-12
description: Array.prototype.lastIndexOf applied to RegExp object
---*/
-var obj = new RegExp("afdasf");
-obj.length = 100;
-obj[1] = "afdasf";
+ var obj = new RegExp("afdasf");
+ obj.length = 100;
+ obj[1] = "afdasf";
assert.sameValue(Array.prototype.lastIndexOf.call(obj, "afdasf"), 1, 'Array.prototype.lastIndexOf.call(obj, "afdasf")');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-13.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-13.js
index 8ac92c385..e6a2d8166 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-13.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-13.js
@@ -7,9 +7,9 @@ es5id: 15.4.4.15-1-13
description: Array.prototype.lastIndexOf applied to the JSON object
---*/
-var targetObj = {};
+ var targetObj = {};
-JSON[3] = targetObj;
-JSON.length = 5;
+ JSON[3] = targetObj;
+ JSON.length = 5;
assert.sameValue(Array.prototype.lastIndexOf.call(JSON, targetObj), 3, 'Array.prototype.lastIndexOf.call(JSON, targetObj)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-14.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-14.js
index 13cd33284..258d52b25 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-14.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-14.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.15-1-14
description: Array.prototype.lastIndexOf applied to Error object
---*/
-var obj = new SyntaxError();
-obj.length = 2;
-obj[1] = Infinity;
+ var obj = new SyntaxError();
+ obj.length = 2;
+ obj[1] = Infinity;
assert.sameValue(Array.prototype.lastIndexOf.call(obj, Infinity), 1, 'Array.prototype.lastIndexOf.call(obj, Infinity)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-15.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-15.js
index 4d0dcb42a..717e839b3 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-15.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-15.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.15-1-15
description: Array.prototype.lastIndexOf applied to the Arguments object
---*/
-var obj = (function fun() {
- return arguments;
-}(1, 2, 3));
+ var obj = (function fun() {
+ return arguments;
+ }(1, 2, 3));
assert.sameValue(Array.prototype.lastIndexOf.call(obj, 2), 1, 'Array.prototype.lastIndexOf.call(obj, 2)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-2.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-2.js
index ee2d9c1dc..d09b72ba6 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-2.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-2.js
@@ -9,5 +9,5 @@ description: Array.prototype.lastIndexOf applied to null throws a TypeError
assert.throws(TypeError, function() {
- Array.prototype.lastIndexOf.call(null);
+ Array.prototype.lastIndexOf.call(null);
});
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-3.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-3.js
index 80339e81e..07823a743 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-3.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-3.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.15-1-3
description: Array.prototype.lastIndexOf applied to boolean primitive
---*/
-Boolean.prototype[1] = true;
-Boolean.prototype.length = 2;
+ Boolean.prototype[1] = true;
+ Boolean.prototype.length = 2;
assert.sameValue(Array.prototype.lastIndexOf.call(true, true), 1, 'Array.prototype.lastIndexOf.call(true, true)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-4.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-4.js
index 6a71084ce..d04aef167 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-4.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-4.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.15-1-4
description: Array.prototype.lastIndexOf applied to Boolean object
---*/
-var obj = new Boolean(false);
-obj.length = 2;
-obj[1] = true;
+ var obj = new Boolean(false);
+ obj.length = 2;
+ obj[1] = true;
assert.sameValue(Array.prototype.lastIndexOf.call(obj, true), 1, 'Array.prototype.lastIndexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-5.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-5.js
index 840ae225c..1119ac1aa 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-5.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-5.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.15-1-5
description: Array.prototype.lastIndexOf applied to number primitive
---*/
-Number.prototype[1] = isNaN;
-Number.prototype.length = 2;
+ Number.prototype[1] = isNaN;
+ Number.prototype.length = 2;
assert.sameValue(Array.prototype.lastIndexOf.call(5, isNaN), 1, 'Array.prototype.lastIndexOf.call(5, isNaN)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-6.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-6.js
index e35973cd8..5e96b816e 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-6.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-6.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.15-1-6
description: Array.prototype.lastIndexOf applied to Number object
---*/
-var obj = new Number(-3);
-obj.length = 2;
-obj[1] = true;
+ var obj = new Number(-3);
+ obj.length = 2;
+ obj[1] = true;
assert.sameValue(Array.prototype.lastIndexOf.call(obj, true), 1, 'Array.prototype.lastIndexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-8.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-8.js
index 998396995..d623c9bea 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-8.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-8.js
@@ -7,6 +7,6 @@ es5id: 15.4.4.15-1-8
description: Array.prototype.lastIndexOf applied to String object
---*/
-var obj = new String("undefined");
+ var obj = new String("undefined");
assert.sameValue(Array.prototype.lastIndexOf.call(obj, "f"), 4, 'Array.prototype.lastIndexOf.call(obj, "f")');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-9.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-9.js
index 6d69baa7c..7372b6b1f 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-9.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-9.js
@@ -7,9 +7,9 @@ es5id: 15.4.4.15-1-9
description: Array.prototype.lastIndexOf applied to Function object
---*/
-var obj = function(a, b) {
- return a + b;
-};
-obj[1] = true;
+ var obj = function (a, b) {
+ return a + b;
+ };
+ obj[1] = true;
assert.sameValue(Array.prototype.lastIndexOf.call(obj, true), 1, 'Array.prototype.lastIndexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-1.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-1.js
index 09c37e87c..5da3312da 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-1.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-1.js
@@ -9,11 +9,7 @@ description: >
Array-like object
---*/
-var obj = {
- 1: null,
- 2: undefined,
- length: 2
-};
+ var obj = { 1: null, 2: undefined, length: 2 };
assert.sameValue(Array.prototype.lastIndexOf.call(obj, null), 1, 'Array.prototype.lastIndexOf.call(obj, null)');
assert.sameValue(Array.prototype.lastIndexOf.call(obj, undefined), -1, 'Array.prototype.lastIndexOf.call(obj, undefined)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-10.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-10.js
index 8a17af9c0..a77b62b12 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-10.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-10.js
@@ -9,20 +9,20 @@ description: >
property on an Array-like object
---*/
-var proto = {};
-Object.defineProperty(proto, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ var proto = {};
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () {};
+ Con.prototype = proto;
-var child = new Con();
-child[1] = 1;
-child[2] = 2;
+ var child = new Con();
+ child[1] = 1;
+ child[2] = 2;
assert.sameValue(Array.prototype.lastIndexOf.call(child, 1), 1, 'Array.prototype.lastIndexOf.call(child, 1)');
assert.sameValue(Array.prototype.lastIndexOf.call(child, 2), -1, 'Array.prototype.lastIndexOf.call(child, 2)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-11.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-11.js
index ab2b9fdd7..0ae767b6f 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-11.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-11.js
@@ -9,12 +9,10 @@ description: >
without a get function on an Array-like object
---*/
-var obj = {
- 0: 1
-};
-Object.defineProperty(obj, "length", {
- set: function() {},
- configurable: true
-});
+ var obj = { 0: 1 };
+ Object.defineProperty(obj, "length", {
+ set: function () { },
+ configurable: true
+ });
assert.sameValue(Array.prototype.lastIndexOf.call(obj, 1), -1, 'Array.prototype.lastIndexOf.call(obj, 1)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-12.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-12.js
index fcd9b41d1..98cf2147a 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-12.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-12.js
@@ -10,19 +10,17 @@ description: >
property on an Array-like object
---*/
-Object.defineProperty(Object.prototype, "length", {
- get: function() {
- return 20;
- },
- configurable: true
-});
+ Object.defineProperty(Object.prototype, "length", {
+ get: function () {
+ return 20;
+ },
+ configurable: true
+ });
-var obj = {
- 1: 1
-};
-Object.defineProperty(obj, "length", {
- set: function() {},
- configurable: true
-});
+ var obj = { 1: 1 };
+ Object.defineProperty(obj, "length", {
+ set: function () { },
+ configurable: true
+ });
assert.sameValue(Array.prototype.lastIndexOf.call(obj, 1), -1, 'Array.prototype.lastIndexOf.call(obj, 1)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-13.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-13.js
index 6f379e886..59045d59d 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-13.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-13.js
@@ -9,16 +9,16 @@ description: >
property without a get function on an Array-like object
---*/
-var proto = {};
-Object.defineProperty(proto, "length", {
- set: function() {},
- configurable: true
-});
+ var proto = {};
+ Object.defineProperty(proto, "length", {
+ set: function () { },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () {};
+ Con.prototype = proto;
-var child = new Con();
-child[0] = true;
+ var child = new Con();
+ child[0] = true;
assert.sameValue(Array.prototype.lastIndexOf.call(child, true), -1, 'Array.prototype.lastIndexOf.call(child, true)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-14.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-14.js
index f47f32dc7..f88b2b3c8 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-14.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-14.js
@@ -9,9 +9,6 @@ description: >
Array-like object
---*/
-var obj = {
- 0: null,
- 1: undefined
-};
+ var obj = { 0: null, 1: undefined };
assert.sameValue(Array.prototype.lastIndexOf.call(obj, null), -1, 'Array.prototype.lastIndexOf.call(obj, null)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-17.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-17.js
index 62532d79a..02ea04ddd 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-17.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-17.js
@@ -9,11 +9,11 @@ description: >
implements its own property get method
---*/
-var targetObj = function() {};
-var func = function(a, b) {
- arguments[2] = function() {};
- return Array.prototype.lastIndexOf.call(arguments, targetObj) === 1 &&
- Array.prototype.lastIndexOf.call(arguments, arguments[2]) === -1;
-};
+ var targetObj = function () { };
+ var func = function (a, b) {
+ arguments[2] = function () { };
+ return Array.prototype.lastIndexOf.call(arguments, targetObj) === 1 &&
+ Array.prototype.lastIndexOf.call(arguments, arguments[2]) === -1;
+ };
assert(func(0, targetObj), 'func(0, targetObj) !== true');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-18.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-18.js
index f2a6682fe..6cf87f644 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-18.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-18.js
@@ -9,9 +9,9 @@ description: >
implements its own property get method
---*/
-var str = new String("012");
+ var str = new String("012");
-String.prototype[3] = "3";
+ String.prototype[3] = "3";
assert.sameValue(Array.prototype.lastIndexOf.call(str, "2"), 2, 'Array.prototype.lastIndexOf.call(str, "2")');
assert.sameValue(Array.prototype.lastIndexOf.call(str, "3"), -1, 'Array.prototype.lastIndexOf.call(str, "3")');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-19.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-19.js
index e5542f0ed..89565918b 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-19.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-19.js
@@ -9,11 +9,11 @@ description: >
implements its own property get method
---*/
-var obj = function(a, b) {
- return a + b;
-};
-obj[1] = "b";
-obj[2] = "c";
+ var obj = function (a, b) {
+ return a + b;
+ };
+ obj[1] = "b";
+ obj[2] = "c";
assert.sameValue(Array.prototype.lastIndexOf.call(obj, obj[1]), 1, 'Array.prototype.lastIndexOf.call(obj, obj[1])');
assert.sameValue(Array.prototype.lastIndexOf.call(obj, obj[2]), -1, 'Array.prototype.lastIndexOf.call(obj, obj[2])');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-2.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-2.js
index 134cd566a..651492954 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-2.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-2.js
@@ -9,9 +9,9 @@ description: >
Array
---*/
-var targetObj = {};
+ var targetObj = {};
-Array.prototype[2] = targetObj;
+ Array.prototype[2] = targetObj;
assert.sameValue([0, targetObj].lastIndexOf(targetObj), 1, '[0, targetObj].lastIndexOf(targetObj)');
assert.sameValue([0, 1].lastIndexOf(targetObj), -1, '[0, 1].lastIndexOf(targetObj)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-3.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-3.js
index 5d2a8bbf1..b500b9f10 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-3.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-3.js
@@ -9,15 +9,13 @@ description: >
overrides an inherited data property on an Array-like object
---*/
-var proto = {
- length: 0
-};
+ var proto = {length: 0};
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () {};
+ Con.prototype = proto;
-var child = new Con();
-child.length = 2;
-child[1] = child;
+ var child = new Con();
+ child.length = 2;
+ child[1] = child;
assert.sameValue(Array.prototype.lastIndexOf.call(child, child), 1, 'Array.prototype.lastIndexOf.call(child, child)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-4.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-4.js
index 0a8f124f3..a13cc99a9 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-4.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-4.js
@@ -9,10 +9,10 @@ description: >
that overrides an inherited data property on an Array
---*/
-var targetObj = {};
-var arrProtoLen;
+ var targetObj = {};
+ var arrProtoLen;
-arrProtoLen = Array.prototype.length;
-Array.prototype.length = 0;
+ arrProtoLen = Array.prototype.length;
+ Array.prototype.length = 0;
assert.sameValue([0, targetObj, 2].lastIndexOf(targetObj), 1, '[0, targetObj, 2].lastIndexOf(targetObj)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-5.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-5.js
index 33e9075e6..fa2987510 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-5.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-5.js
@@ -9,23 +9,23 @@ description: >
overrides an inherited accessor property on an Array-like object
---*/
-var proto = {};
-Object.defineProperty(proto, "length", {
- get: function() {
- return 0;
- },
- configurable: true
-});
+ var proto = {};
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 0;
+ },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () {};
+ Con.prototype = proto;
-var child = new Con();
+ var child = new Con();
-Object.defineProperty(child, "length", {
- value: 2,
- configurable: true
-});
-child[1] = null;
+ Object.defineProperty(child, "length", {
+ value: 2,
+ configurable: true
+ });
+ child[1] = null;
assert.sameValue(Array.prototype.lastIndexOf.call(child, null), 1, 'Array.prototype.lastIndexOf.call(child, null)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-6.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-6.js
index 05900f832..bfe82a3ac 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-6.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-6.js
@@ -9,16 +9,14 @@ description: >
property on an Array-like object
---*/
-var proto = {
- length: 2
-};
+ var proto = { length: 2 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () {};
+ Con.prototype = proto;
-var child = new Con();
-child[1] = "x";
-child[2] = "y";
+ var child = new Con();
+ child[1] = "x";
+ child[2] = "y";
assert.sameValue(Array.prototype.lastIndexOf.call(child, "x"), 1, 'Array.prototype.lastIndexOf.call(child, "x")');
assert.sameValue(Array.prototype.lastIndexOf.call(child, "y"), -1, 'Array.prototype.lastIndexOf.call(child, "y")');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-7.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-7.js
index 4c38da5be..d5b443115 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-7.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-7.js
@@ -9,17 +9,14 @@ description: >
an Array-like object
---*/
-var obj = {
- 1: true,
- 2: false
-};
+ var obj = { 1: true, 2: false };
-Object.defineProperty(obj, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.lastIndexOf.call(obj, true), 1, 'Array.prototype.lastIndexOf.call(obj, true)');
assert.sameValue(Array.prototype.lastIndexOf.call(obj, false), -1, 'Array.prototype.lastIndexOf.call(obj, false)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-8.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-8.js
index ef7ea0a51..61f659a69 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-8.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-8.js
@@ -9,21 +9,19 @@ description: >
that overrides an inherited data property on an Array-like object
---*/
-var proto = {
- length: 0
-};
+ var proto = { length: 0 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () {};
+ Con.prototype = proto;
-var child = new Con();
-child[1] = eval;
+ var child = new Con();
+ child[1] = eval;
-Object.defineProperty(child, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(child, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.lastIndexOf.call(child, eval), 1, 'Array.prototype.lastIndexOf.call(child, eval)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-9.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-9.js
index 9bc7a8b5b..3e0695eb8 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-9.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-9.js
@@ -10,25 +10,25 @@ description: >
object
---*/
-var proto = {};
-Object.defineProperty(proto, "length", {
- get: function() {
- return 0;
- },
- configurable: true
-});
+ var proto = {};
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 0;
+ },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () {};
+ Con.prototype = proto;
-var child = new Con();
-child[1] = true;
+ var child = new Con();
+ child[1] = true;
-Object.defineProperty(child, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(child, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.lastIndexOf.call(child, true), 1, 'Array.prototype.lastIndexOf.call(child, true)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-1.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-1.js
index 1141fd90a..374141ad0 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-1.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-1.js
@@ -7,10 +7,6 @@ es5id: 15.4.4.15-3-1
description: Array.prototype.lastIndexOf - value of 'length' is undefined
---*/
-var obj = {
- 0: 1,
- 1: 1,
- length: undefined
-};
+ var obj = { 0: 1, 1: 1, length: undefined };
assert.sameValue(Array.prototype.lastIndexOf.call(obj, 1), -1, 'Array.prototype.lastIndexOf.call(obj, 1)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-10.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-10.js
index 761fd85c1..c6da76339 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-10.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-10.js
@@ -9,9 +9,6 @@ description: >
is NaN)
---*/
-var obj = {
- 0: 0,
- length: NaN
-};
+ var obj = { 0: 0, length: NaN };
assert.sameValue(Array.prototype.lastIndexOf.call(obj, 0), -1, 'Array.prototype.lastIndexOf.call(obj, 0)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-11.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-11.js
index dae527da9..f0838068e 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-11.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-11.js
@@ -9,11 +9,7 @@ description: >
containing positive number
---*/
-var obj = {
- 1: true,
- 2: false,
- length: "2"
-};
+ var obj = {1: true, 2: false, length: "2"};
assert.sameValue(Array.prototype.lastIndexOf.call(obj, true), 1, 'Array.prototype.lastIndexOf.call(obj, true)');
assert.sameValue(Array.prototype.lastIndexOf.call(obj, false), -1, 'Array.prototype.lastIndexOf.call(obj, false)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-12.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-12.js
index 99df97b76..6811ff35d 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-12.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-12.js
@@ -9,11 +9,7 @@ description: >
containing negative number
---*/
-var obj = {
- 1: null,
- 2: undefined,
- length: "-4294967294"
-};
+ var obj = {1: null, 2: undefined, length: "-4294967294"};
assert.sameValue(Array.prototype.lastIndexOf.call(obj, null), -1, 'Array.prototype.lastIndexOf.call(obj, null)');
assert.sameValue(Array.prototype.lastIndexOf.call(obj, undefined), -1, 'Array.prototype.lastIndexOf.call(obj, undefined)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-13.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-13.js
index 394744d69..afdcf21df 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-13.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-13.js
@@ -9,11 +9,7 @@ description: >
containing a decimal number
---*/
-var obj = {
- 4: 4,
- 5: 5,
- length: "5.512345"
-};
+ var obj = { 4: 4, 5: 5, length: "5.512345" };
assert.sameValue(Array.prototype.lastIndexOf.call(obj, 4), 4, 'Array.prototype.lastIndexOf.call(obj, 4)');
assert.sameValue(Array.prototype.lastIndexOf.call(obj, 5), -1, 'Array.prototype.lastIndexOf.call(obj, 5)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-14.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-14.js
index 3751aeb80..a49316794 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-14.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-14.js
@@ -9,10 +9,6 @@ description: >
containing -Infinity
---*/
-var objThree = {
- 0: true,
- 1: true,
- length: "-Infinity"
-};
+ var objThree = { 0: true, 1: true, length: "-Infinity" };
assert.sameValue(Array.prototype.lastIndexOf.call(objThree, true), -1, 'Array.prototype.lastIndexOf.call(objThree, true)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-15.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-15.js
index cb669fc01..281305e13 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-15.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-15.js
@@ -9,11 +9,7 @@ description: >
containing an exponential number
---*/
-var obj = {
- 229: 229,
- 230: 2.3E2,
- length: "2.3E2"
-};
+ var obj = {229: 229, 230: 2.3E2, length: "2.3E2"};
assert.sameValue(Array.prototype.lastIndexOf.call(obj, 229), 229, 'Array.prototype.lastIndexOf.call(obj, 229)');
assert.sameValue(Array.prototype.lastIndexOf.call(obj, 2.3E2), -1, 'Array.prototype.lastIndexOf.call(obj, 2.3E2)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-16.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-16.js
index 653a8ea36..6c0e5e388 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-16.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-16.js
@@ -9,11 +9,7 @@ description: >
is able to be converted into hex number
---*/
-var obj = {
- 2573: 2573,
- 2574: 0x000A0E,
- length: "0x000A0E"
-};
+ var obj = { 2573: 2573, 2574: 0x000A0E, length: "0x000A0E" };
assert.sameValue(Array.prototype.lastIndexOf.call(obj, 2573), 2573, 'Array.prototype.lastIndexOf.call(obj, 2573)');
assert.sameValue(Array.prototype.lastIndexOf.call(obj, 0x000A0E), -1, 'Array.prototype.lastIndexOf.call(obj, 0x000A0E)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-17.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-17.js
index 345e54e14..c60323158 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-17.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-17.js
@@ -9,11 +9,7 @@ description: >
containing a number with leading zeros
---*/
-var obj = {
- 1: 1,
- 2: 2,
- length: "0002.0"
-};
+ var obj = { 1: 1, 2: 2, length: "0002.0" };
assert.sameValue(Array.prototype.lastIndexOf.call(obj, 1), 1, 'Array.prototype.lastIndexOf.call(obj, 1)');
assert.sameValue(Array.prototype.lastIndexOf.call(obj, 2), -1, 'Array.prototype.lastIndexOf.call(obj, 2)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-18.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-18.js
index 76161d8da..a56ab67a7 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-18.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-18.js
@@ -9,10 +9,7 @@ description: >
can't convert to a number
---*/
-var targetObj = new String("123abc123");
-var obj = {
- 0: targetObj,
- length: "123abc123"
-};
+ var targetObj = new String("123abc123");
+ var obj = { 0: targetObj, length: "123abc123" };
assert.sameValue(Array.prototype.lastIndexOf.call(obj, targetObj), -1, 'Array.prototype.lastIndexOf.call(obj, targetObj)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-19.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-19.js
index bbbf635c8..419be4856 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-19.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-19.js
@@ -9,23 +9,23 @@ description: >
has an own toString method
---*/
-// objects inherit the default valueOf() method from Object
-// that simply returns itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
+ // objects inherit the default valueOf() method from Object
+ // that simply returns itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
-var targetObj = this;
-var obj = {
- 1: targetObj,
- 2: 2,
+ var targetObj = this;
+ var obj = {
+ 1: targetObj,
+ 2: 2,
- length: {
- toString: function() {
- return '2';
- }
- }
-};
+ length: {
+ toString: function () {
+ return '2';
+ }
+ }
+ };
assert.sameValue(Array.prototype.lastIndexOf.call(obj, targetObj), 1, 'Array.prototype.lastIndexOf.call(obj, targetObj)');
assert.sameValue(Array.prototype.lastIndexOf.call(obj, 2), -1, 'Array.prototype.lastIndexOf.call(obj, 2)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-2.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-2.js
index 1f603c380..16314cad2 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-2.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-2.js
@@ -9,11 +9,7 @@ description: >
boolean (value is true)
---*/
-var obj = {
- 0: 0,
- 1: 1,
- length: true
-};
+ var obj = { 0: 0, 1: 1, length: true };
assert.sameValue(Array.prototype.lastIndexOf.call(obj, 0), 0, 'Array.prototype.lastIndexOf.call(obj, 0)');
assert.sameValue(Array.prototype.lastIndexOf.call(obj, 1), -1, 'Array.prototype.lastIndexOf.call(obj, 1)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-20.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-20.js
index 51df32323..56d05e1a1 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-20.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-20.js
@@ -9,17 +9,17 @@ description: >
has an own valueOf method
---*/
-//valueOf method will be invoked first, since hint is Number
-var obj = {
- 1: true,
- 2: 2,
+ //valueOf method will be invoked first, since hint is Number
+ var obj = {
+ 1: true,
+ 2: 2,
- length: {
- valueOf: function() {
- return 2;
- }
- }
-};
+ length: {
+ valueOf: function () {
+ return 2;
+ }
+ }
+ };
assert.sameValue(Array.prototype.lastIndexOf.call(obj, true), 1, 'Array.prototype.lastIndexOf.call(obj, true)');
assert.sameValue(Array.prototype.lastIndexOf.call(obj, 2), -1, 'Array.prototype.lastIndexOf.call(obj, 2)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-21.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-21.js
index 4ffe9d3bf..d568434fa 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-21.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-21.js
@@ -10,24 +10,24 @@ description: >
returns a string
---*/
-var toStringAccessed = false;
-var valueOfAccessed = false;
+ var toStringAccessed = false;
+ var valueOfAccessed = false;
-var targetObj = this;
-var obj = {
- 1: targetObj,
- length: {
- toString: function() {
- toStringAccessed = true;
- return '3';
- },
+ var targetObj = this;
+ var obj = {
+ 1: targetObj,
+ length: {
+ toString: function () {
+ toStringAccessed = true;
+ return '3';
+ },
- valueOf: function() {
- valueOfAccessed = true;
- return {};
- }
- }
-};
+ valueOf: function () {
+ valueOfAccessed = true;
+ return {};
+ }
+ }
+ };
assert.sameValue(Array.prototype.lastIndexOf.call(obj, targetObj), 1, 'Array.prototype.lastIndexOf.call(obj, targetObj)');
assert(toStringAccessed, 'toStringAccessed !== true');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-22.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-22.js
index 69aa3c8f9..9624defeb 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-22.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-22.js
@@ -10,26 +10,26 @@ description: >
return primitive values
---*/
-var toStringAccessed = false;
-var valueOfAccessed = false;
+ var toStringAccessed = false;
+ var valueOfAccessed = false;
-var obj = {
- 1: true,
- length: {
- toString: function() {
- toStringAccessed = true;
- return {};
- },
+ var obj = {
+ 1: true,
+ length: {
+ toString: function () {
+ toStringAccessed = true;
+ return {};
+ },
- valueOf: function() {
- valueOfAccessed = true;
- return {};
- }
- }
-};
+ valueOf: function () {
+ valueOfAccessed = true;
+ return {};
+ }
+ }
+ };
assert.throws(TypeError, function() {
- Array.prototype.lastIndexOf.call(obj, true);
+ Array.prototype.lastIndexOf.call(obj, true);
});
assert(toStringAccessed, 'toStringAccessed');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-23.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-23.js
index 178517a41..a69b33edf 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-23.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-23.js
@@ -10,29 +10,29 @@ description: >
valueOf methods
---*/
-var toStringAccessed = false;
-var valueOfAccessed = false;
+ var toStringAccessed = false;
+ var valueOfAccessed = false;
-var proto = {
- valueOf: function() {
- valueOfAccessed = true;
- return 2;
- }
-};
+ var proto = {
+ valueOf: function () {
+ valueOfAccessed = true;
+ return 2;
+ }
+ };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () {};
+ Con.prototype = proto;
-var child = new Con();
-child.toString = function() {
- toStringAccessed = true;
- return 2;
-};
+ var child = new Con();
+ child.toString = function () {
+ toStringAccessed = true;
+ return 2;
+ };
-var obj = {
- 1: child,
- length: child
-};
+ var obj = {
+ 1: child,
+ length: child
+ };
assert.sameValue(Array.prototype.lastIndexOf.call(obj, child), 1, 'Array.prototype.lastIndexOf.call(obj, child)');
assert(valueOfAccessed, 'valueOfAccessed !== true');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-24.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-24.js
index 08763b590..31ffe0ed7 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-24.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-24.js
@@ -9,11 +9,7 @@ description: >
non-integer, ensure truncation occurs in the proper direction
---*/
-var obj = {
- 122: true,
- 123: false,
- length: 123.5
-};
+ var obj = { 122: true, 123: false, length: 123.5 };
assert.sameValue(Array.prototype.lastIndexOf.call(obj, true), 122, 'Array.prototype.lastIndexOf.call(obj, true)');
assert.sameValue(Array.prototype.lastIndexOf.call(obj, false), -1, 'Array.prototype.lastIndexOf.call(obj, false)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-25.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-25.js
index fe78a4e2d..12e37f63b 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-25.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-25.js
@@ -9,11 +9,7 @@ description: >
non-integer
---*/
-var obj = {
- 1: true,
- 2: false,
- length: -4294967294.5
-};
+ var obj = { 1: true, 2: false, length: -4294967294.5 };
assert.sameValue(Array.prototype.lastIndexOf.call(obj, true), -1, 'Array.prototype.lastIndexOf.call(obj, true)');
assert.sameValue(Array.prototype.lastIndexOf.call(obj, false), -1, 'Array.prototype.lastIndexOf.call(obj, false)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-28.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-28.js
index 476805324..a28fbc746 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-28.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-28.js
@@ -9,12 +9,12 @@ description: >
(2^32)
---*/
-var targetObj = {};
-var obj = {
- 0: targetObj,
- 4294967294: targetObj,
- 4294967295: targetObj,
- length: 4294967296
-};
+ var targetObj = {};
+ var obj = {
+ 0: targetObj,
+ 4294967294: targetObj,
+ 4294967295: targetObj,
+ length: 4294967296
+ };
assert.sameValue(Array.prototype.lastIndexOf.call(obj, targetObj), 4294967295, 'verify length is 4294967296 finally');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-3.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-3.js
index 98bb896df..069585fb2 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-3.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-3.js
@@ -9,9 +9,6 @@ description: >
is 0)
---*/
-var obj = {
- 0: "undefined",
- length: 0
-};
+ var obj = { 0: "undefined", length: 0 };
assert.sameValue(Array.prototype.lastIndexOf.call(obj, "undefined"), -1, 'Array.prototype.lastIndexOf.call(obj, "undefined")');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-4.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-4.js
index 5e6cedae9..1c8a99b9c 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-4.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-4.js
@@ -9,9 +9,6 @@ description: >
is -0)
---*/
-var obj = {
- 0: true,
- length: -0
-};
+ var obj = { 0: true, length: -0 };
assert.sameValue(Array.prototype.lastIndexOf.call(obj, true), -1, 'Array.prototype.lastIndexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-5.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-5.js
index 60a172189..927ee3daa 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-5.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-5.js
@@ -9,9 +9,6 @@ description: >
is +0)
---*/
-var obj = {
- 0: +0,
- length: +0
-};
+ var obj = { 0: +0, length: +0 };
assert.sameValue(Array.prototype.lastIndexOf.call(obj, +0), -1, 'Array.prototype.lastIndexOf.call(obj, +0)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-6.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-6.js
index 5f097dbb0..8aec6c2c1 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-6.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-6.js
@@ -9,11 +9,7 @@ description: >
is a positive number)
---*/
-var obj = {
- 99: true,
- 100: 100,
- length: 100
-};
+ var obj = { 99: true, 100: 100, length: 100 };
assert.sameValue(Array.prototype.lastIndexOf.call(obj, true), 99, 'Array.prototype.lastIndexOf.call(obj, true)');
assert.sameValue(Array.prototype.lastIndexOf.call(obj, 100), -1, 'Array.prototype.lastIndexOf.call(obj, 100)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-7.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-7.js
index 8f9129849..ff7fbc0d2 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-7.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-7.js
@@ -9,11 +9,7 @@ description: >
is a negative number)
---*/
-var obj = {
- 4: -Infinity,
- 5: Infinity,
- length: 5 - Math.pow(2, 32)
-};
+ var obj = { 4: -Infinity, 5: Infinity, length: 5 - Math.pow(2, 32) };
assert.sameValue(Array.prototype.lastIndexOf.call(obj, -Infinity), -1, 'Array.prototype.lastIndexOf.call(obj, -Infinity)');
assert.sameValue(Array.prototype.lastIndexOf.call(obj, Infinity), -1, 'Array.prototype.lastIndexOf.call(obj, Infinity)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-9.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-9.js
index b93878341..39856e713 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-9.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-9.js
@@ -9,9 +9,6 @@ description: >
is -Infinity)
---*/
-var obj = {
- 0: 0,
- length: -Infinity
-};
+ var obj = { 0: 0, length: -Infinity };
assert.sameValue(Array.prototype.lastIndexOf.call(obj, 0), -1, 'Array.prototype.lastIndexOf.call(obj, 0)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-1.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-1.js
index f6fc91253..f073190b9 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-1.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-1.js
@@ -9,6 +9,6 @@ description: >
array)
---*/
-var i = [].lastIndexOf(42);
+ var i = [].lastIndexOf(42);
assert.sameValue(i, -1, 'i');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-10.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-10.js
index 1899442e7..72514438f 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-10.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-10.js
@@ -7,11 +7,7 @@ es5id: 15.4.4.15-4-10
description: Array.prototype.lastIndexOf - 'length' is a number of value -6e-1
---*/
-var targetObj = [];
-var obj = {
- 0: targetObj,
- 100: targetObj,
- length: -6e-1
-};
+ var targetObj = [];
+ var obj = { 0: targetObj, 100: targetObj, length: -6e-1 };
assert.sameValue(Array.prototype.lastIndexOf.call(obj, targetObj), -1, 'Array.prototype.lastIndexOf.call(obj, targetObj)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-11.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-11.js
index cec59b134..fdf1b598e 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-11.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-11.js
@@ -7,11 +7,7 @@ es5id: 15.4.4.15-4-11
description: Array.prototype.lastIndexOf - 'length' is an empty string
---*/
-var targetObj = [];
-var obj = {
- 0: targetObj,
- 100: targetObj,
- length: ""
-};
+ var targetObj = [];
+ var obj = { 0: targetObj, 100: targetObj, length: "" };
assert.sameValue(Array.prototype.lastIndexOf.call(obj, targetObj), -1, 'Array.prototype.lastIndexOf.call(obj, targetObj)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-2.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-2.js
index 5ed7ad249..ced61de4c 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-2.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-2.js
@@ -9,9 +9,7 @@ description: >
overridden to null (type conversion))
---*/
-var i = Array.prototype.lastIndexOf.call({
- length: null
-}, 1);
+ var i = Array.prototype.lastIndexOf.call({length: null}, 1);
assert.sameValue(i, -1, 'i');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-3.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-3.js
index 2004e3678..52e2fa68c 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-3.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-3.js
@@ -9,9 +9,7 @@ description: >
overridden to false (type conversion))
---*/
-var i = Array.prototype.lastIndexOf.call({
- length: false
-}, 1);
+ var i = Array.prototype.lastIndexOf.call({length: false}, 1);
assert.sameValue(i, -1, 'i');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-4.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-4.js
index b2babee1d..592a69274 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-4.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-4.js
@@ -9,15 +9,12 @@ description: >
'array' with length 0 )
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = 0;
-function foo() {}
-var f = new foo();
-f.length = 0;
-
-var i = Array.prototype.lastIndexOf.call({
- length: 0
-}, 1);
+ var i = Array.prototype.lastIndexOf.call({length: 0}, 1);
assert.sameValue(i, -1, 'i');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-5.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-5.js
index 9e7201565..f664184bc 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-5.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-5.js
@@ -9,9 +9,7 @@ description: >
overridden to '0' (type conversion))
---*/
-var i = Array.prototype.lastIndexOf.call({
- length: '0'
-}, 1);
+ var i = Array.prototype.lastIndexOf.call({length: '0'}, 1);
assert.sameValue(i, -1, 'i');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-6.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-6.js
index 1362e14ae..2a81100b7 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-6.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-6.js
@@ -9,13 +9,7 @@ description: >
(subclassed Array, length overridden with obj with valueOf)
---*/
-var i = Array.prototype.lastIndexOf.call({
- length: {
- valueOf: function() {
- return 0;
- }
- }
-}, 1);
+ var i = Array.prototype.lastIndexOf.call({length: { valueOf: function () { return 0;}}}, 1);
assert.sameValue(i, -1, 'i');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-7.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-7.js
index 57850a027..cf238e3e2 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-7.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-7.js
@@ -9,30 +9,19 @@ description: >
is object overridden with obj w/o valueOf (toString))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ var o = { toString: function () { return '0';}};
+ f.length = o;
-var o = {
- toString: function() {
- return '0';
- }
-};
-f.length = o;
-
-// objects inherit the default valueOf method of the Object object;
-// that simply returns the itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-var i = Array.prototype.lastIndexOf.call({
- length: {
- toString: function() {
- return '0';
- }
- }
-}, 1);
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
+ var i = Array.prototype.lastIndexOf.call({length: { toString: function () { return '0';}}}, 1);
assert.sameValue(i, -1, 'i');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-8.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-8.js
index ae98ed9f0..90fdbad63 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-8.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-8.js
@@ -9,22 +9,20 @@ description: >
an empty array)
---*/
-// objects inherit the default valueOf method of the Object object;
-// that simply returns the itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-//
-// The toString( ) method on Array converts the array elements to strings,
-// then returns the result of concatenating these strings, with commas in
-// between. An array with no elements converts to the empty string, which
-// converts to the number 0. If an array has a single element that is a
-// number n, the array converts to a string representation of n, which is
-// then converted back to n itself. If an array contains more than one element,
-// or if its one element is not a number, the array converts to NaN.
-var i = Array.prototype.lastIndexOf.call({
- length: []
-}, 1);
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
+ //
+ // The toString( ) method on Array converts the array elements to strings,
+ // then returns the result of concatenating these strings, with commas in
+ // between. An array with no elements converts to the empty string, which
+ // converts to the number 0. If an array has a single element that is a
+ // number n, the array converts to a string representation of n, which is
+ // then converted back to n itself. If an array contains more than one element,
+ // or if its one element is not a number, the array converts to NaN.
+ var i = Array.prototype.lastIndexOf.call({length: [ ]}, 1);
assert.sameValue(i, -1, 'i');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-9.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-9.js
index 7f758adec..6ebf6b4eb 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-9.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-9.js
@@ -7,11 +7,7 @@ es5id: 15.4.4.15-4-9
description: Array.prototype.lastIndexOf - 'length' is a number of value 0.1
---*/
-var targetObj = [];
-var obj = {
- 0: targetObj,
- 100: targetObj,
- length: 0.1
-};
+ var targetObj = [];
+ var obj = { 0: targetObj, 100: targetObj, length: 0.1 };
assert.sameValue(Array.prototype.lastIndexOf.call(obj, targetObj), -1, 'Array.prototype.lastIndexOf.call(obj, targetObj)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-1.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-1.js
index f632c5bf9..44f940354 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-1.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-1.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.15-5-1
description: Array.prototype.lastIndexOf when fromIndex is string
---*/
-var a = new Array(0, 1, 1);
+ var a = new Array(0,1,1);
-assert.sameValue(a.lastIndexOf(1, "1"), 1, '"1" resolves to 1');
-assert.sameValue(a.lastIndexOf(1, "one"), -1, 'NaN string resolves to 01');
+assert.sameValue(a.lastIndexOf(1,"1"), 1, '"1" resolves to 1');
+assert.sameValue(a.lastIndexOf(1,"one"), -1, 'NaN string resolves to 01');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-10.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-10.js
index 3e6778af6..6a9a11c19 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-10.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-10.js
@@ -9,7 +9,7 @@ description: >
(value is positive number)
---*/
-var targetObj = {};
+ var targetObj = {};
assert.sameValue([0, targetObj, true].lastIndexOf(targetObj, 1.5), 1, '[0, targetObj, true].lastIndexOf(targetObj, 1.5)');
assert.sameValue([0, true, targetObj].lastIndexOf(targetObj, 1.5), -1, '[0, true, targetObj].lastIndexOf(targetObj, 1.5)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-11.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-11.js
index 839e611a8..5ed43bf0e 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-11.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-11.js
@@ -9,7 +9,7 @@ description: >
(value is negative number)
---*/
-var targetObj = {};
+ var targetObj = {};
assert.sameValue([0, targetObj, true].lastIndexOf(targetObj, -2.5), 1, '[0, targetObj, true].lastIndexOf(targetObj, -2.5)');
assert.sameValue([0, true, targetObj].lastIndexOf(targetObj, -2.5), -1, '[0, true, targetObj].lastIndexOf(targetObj, -2.5)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-12.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-12.js
index 03d5bc0da..4e7c34dd9 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-12.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-12.js
@@ -9,7 +9,7 @@ description: >
(value is Infinity)
---*/
-var arr = [];
-arr[Math.pow(2, 32) - 2] = null; // length is the max value of Uint type
+ var arr = [];
+ arr[Math.pow(2, 32) - 2] = null; // length is the max value of Uint type
assert.sameValue(arr.lastIndexOf(null, Infinity), Math.pow(2, 32) - 2, 'arr.lastIndexOf(null, Infinity)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-16.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-16.js
index ab3089950..a219b6b67 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-16.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-16.js
@@ -9,7 +9,7 @@ description: >
containing Infinity
---*/
-var arr = [];
-arr[Math.pow(2, 32) - 2] = true; // length is the max value of Uint type
+ var arr = [];
+ arr[Math.pow(2, 32) - 2] = true; // length is the max value of Uint type
assert.sameValue(arr.lastIndexOf(true, "Infinity"), Math.pow(2, 32) - 2, 'arr.lastIndexOf(true, "Infinity")');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-18.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-18.js
index d5bf6c0fa..973d33cd3 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-18.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-18.js
@@ -9,7 +9,7 @@ description: >
containing an exponential number
---*/
-var targetObj = {};
+ var targetObj = {};
assert.sameValue([0, NaN, targetObj, 3, false].lastIndexOf(targetObj, "2E0"), 2, '[0, NaN, targetObj, 3, false].lastIndexOf(targetObj, "2E0")');
assert.sameValue([0, NaN, 3, targetObj, false].lastIndexOf(targetObj, "2E0"), -1, '[0, NaN, 3, targetObj, false].lastIndexOf(targetObj, "2E0")');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-19.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-19.js
index acb1c0140..90b87161f 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-19.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-19.js
@@ -9,7 +9,7 @@ description: >
containing a hex number
---*/
-var targetObj = {};
+ var targetObj = {};
assert.sameValue([0, true, targetObj, 3, false].lastIndexOf(targetObj, "0x0002"), 2, '[0, true, targetObj, 3, false].lastIndexOf(targetObj, "0x0002")');
assert.sameValue([0, true, 3, targetObj, false].lastIndexOf(targetObj, "0x0002"), -1, '[0, true, 3, targetObj, false].lastIndexOf(targetObj, "0x0002")');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-2.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-2.js
index 95b4db82b..8dc61ceae 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-2.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-2.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.15-5-2
description: Array.prototype.lastIndexOf when fromIndex is floating point number
---*/
-var a = new Array(1, 2, 1);
+ var a = new Array(1,2,1);
-assert.sameValue(a.lastIndexOf(2, 1.49), 1, '1.49 resolves to 1');
-assert.sameValue(a.lastIndexOf(2, 0.51), -1, '0.51 resolves to 0');
-assert.sameValue(a.lastIndexOf(1, 0.51), 0, '0.51 resolves to 0');
+assert.sameValue(a.lastIndexOf(2,1.49), 1, '1.49 resolves to 1');
+assert.sameValue(a.lastIndexOf(2,0.51), -1, '0.51 resolves to 0');
+assert.sameValue(a.lastIndexOf(1,0.51), 0, '0.51 resolves to 0');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-20.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-20.js
index 72a6f16fa..de7d8cdea 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-20.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-20.js
@@ -9,7 +9,7 @@ description: >
string containing a number with leading zeros
---*/
-var targetObj = {};
+ var targetObj = {};
assert.sameValue([0, true, targetObj, 3, false].lastIndexOf(targetObj, "0002.10"), 2, '[0, true, targetObj, 3, false].lastIndexOf(targetObj, "0002.10")');
assert.sameValue([0, true, 3, targetObj, false].lastIndexOf(targetObj, "0002.10"), -1, '[0, true, 3, targetObj, false].lastIndexOf(targetObj, "0002.10")');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-21.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-21.js
index d5ec47052..21e3ef508 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-21.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-21.js
@@ -9,17 +9,17 @@ description: >
Object, and has an own toString method
---*/
-// objects inherit the default valueOf() method from Object
-// that simply returns itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-var fromIndex = {
- toString: function() {
- return '2';
- }
-};
-var targetObj = new RegExp();
+ // objects inherit the default valueOf() method from Object
+ // that simply returns itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
+ var fromIndex = {
+ toString: function () {
+ return '2';
+ }
+ };
+ var targetObj = new RegExp();
assert.sameValue([0, true, targetObj, 3, false].lastIndexOf(targetObj, fromIndex), 2, '[0, true, targetObj, 3, false].lastIndexOf(targetObj, fromIndex)');
assert.sameValue([0, true, 3, targetObj, false].lastIndexOf(targetObj, fromIndex), -1, '[0, true, 3, targetObj, false].lastIndexOf(targetObj, fromIndex)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-22.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-22.js
index b3bcfbc46..edd857c53 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-22.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-22.js
@@ -9,13 +9,13 @@ description: >
object, and has an own valueOf method
---*/
-var fromIndex = {
- valueOf: function() {
- return 2;
- }
-};
+ var fromIndex = {
+ valueOf: function () {
+ return 2;
+ }
+ };
-var targetObj = function() {};
+ var targetObj = function () {};
assert.sameValue([0, true, targetObj, 3, false].lastIndexOf(targetObj, fromIndex), 2, '[0, true, targetObj, 3, false].lastIndexOf(targetObj, fromIndex)');
assert.sameValue([0, true, 3, targetObj, false].lastIndexOf(targetObj, fromIndex), -1, '[0, true, 3, targetObj, false].lastIndexOf(targetObj, fromIndex)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-23.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-23.js
index e371687ad..2387ba657 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-23.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-23.js
@@ -10,20 +10,20 @@ description: >
method that returns a string
---*/
-var toStringAccessed = false;
-var valueOfAccessed = false;
+ var toStringAccessed = false;
+ var valueOfAccessed = false;
-var fromIndex = {
- toString: function() {
- toStringAccessed = true;
- return '1';
- },
+ var fromIndex = {
+ toString: function () {
+ toStringAccessed = true;
+ return '1';
+ },
- valueOf: function() {
- valueOfAccessed = true;
- return {};
- }
-};
+ valueOf: function () {
+ valueOfAccessed = true;
+ return {};
+ }
+ };
assert.sameValue([0, true].lastIndexOf(true, fromIndex), 1, '[0, true].lastIndexOf(true, fromIndex)');
assert(toStringAccessed, 'toStringAccessed !== true');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-24.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-24.js
index 949b07c4a..52bcc4564 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-24.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-24.js
@@ -10,23 +10,23 @@ description: >
than don't return primitive value
---*/
-var toStringAccessed = false;
-var valueOfAccessed = false;
+ var toStringAccessed = false;
+ var valueOfAccessed = false;
-var fromIndex = {
- toString: function() {
- toStringAccessed = true;
- return {};
- },
+ var fromIndex = {
+ toString: function () {
+ toStringAccessed = true;
+ return {};
+ },
- valueOf: function() {
- valueOfAccessed = true;
- return {};
- }
-};
+ valueOf: function () {
+ valueOfAccessed = true;
+ return {};
+ }
+ };
assert.throws(TypeError, function() {
- [0, null].lastIndexOf(null, fromIndex);
+ [0, null].lastIndexOf(null, fromIndex);
});
assert(toStringAccessed, 'toStringAccessed');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-25.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-25.js
index 8de12b184..c8860be07 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-25.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-25.js
@@ -10,24 +10,24 @@ description: >
inherited valueOf methods
---*/
-var toStringAccessed = false;
-var valueOfAccessed = false;
+ var toStringAccessed = false;
+ var valueOfAccessed = false;
-var proto = {
- valueOf: function() {
- valueOfAccessed = true;
- return 1;
- }
-};
+ var proto = {
+ valueOf: function () {
+ valueOfAccessed = true;
+ return 1;
+ }
+ };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () {};
+ Con.prototype = proto;
-var child = new Con();
-child.toString = function() {
- toStringAccessed = true;
- return 1;
-};
+ var child = new Con();
+ child.toString = function () {
+ toStringAccessed = true;
+ return 1;
+ };
assert.sameValue([0, true].lastIndexOf(true, child), 1, '[0, true].lastIndexOf(true, child)');
assert(valueOfAccessed, 'valueOfAccessed !== true');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-26.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-26.js
index 6b977c909..0ec967938 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-26.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-26.js
@@ -9,29 +9,29 @@ description: >
visible when an exception occurs
---*/
-var stepTwoOccurs = false;
-var stepFiveOccurs = false;
-var obj = {};
+ var stepTwoOccurs = false;
+ var stepFiveOccurs = false;
+ var obj = {};
-Object.defineProperty(obj, "length", {
- get: function() {
- stepTwoOccurs = true;
- if (stepFiveOccurs) {
- throw new Error("Step 5 occurred out of order");
- }
- return 20;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ stepTwoOccurs = true;
+ if (stepFiveOccurs) {
+ throw new Error("Step 5 occurred out of order");
+ }
+ return 20;
+ },
+ configurable: true
+ });
-var fromIndex = {
- valueOf: function() {
- stepFiveOccurs = true;
- return 0;
- }
-};
+ var fromIndex = {
+ valueOf: function () {
+ stepFiveOccurs = true;
+ return 0;
+ }
+ };
-Array.prototype.lastIndexOf.call(obj, undefined, fromIndex);
+ Array.prototype.lastIndexOf.call(obj, undefined, fromIndex);
assert(stepTwoOccurs, 'stepTwoOccurs !== true');
assert(stepFiveOccurs, 'stepFiveOccurs !== true');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-27.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-27.js
index dc56d995c..491866633 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-27.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-27.js
@@ -9,34 +9,34 @@ description: >
visible when an exception occurs
---*/
-var stepThreeOccurs = false;
-var stepFiveOccurs = false;
+ var stepThreeOccurs = false;
+ var stepFiveOccurs = false;
-var obj = {};
+ var obj = {};
-Object.defineProperty(obj, "length", {
- get: function() {
- return {
- valueOf: function() {
- stepThreeOccurs = true;
- if (stepFiveOccurs) {
- throw new Error("Step 5 occurred out of order");
- }
- return 20;
- }
- };
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ valueOf: function () {
+ stepThreeOccurs = true;
+ if (stepFiveOccurs) {
+ throw new Error("Step 5 occurred out of order");
+ }
+ return 20;
+ }
+ };
+ },
+ configurable: true
+ });
-var fromIndex = {
- valueOf: function() {
- stepFiveOccurs = true;
- return 0;
- }
-};
+ var fromIndex = {
+ valueOf: function () {
+ stepFiveOccurs = true;
+ return 0;
+ }
+ };
-Array.prototype.lastIndexOf.call(obj, undefined, fromIndex);
+ Array.prototype.lastIndexOf.call(obj, undefined, fromIndex);
assert(stepThreeOccurs, 'stepThreeOccurs !== true');
assert(stepFiveOccurs, 'stepFiveOccurs !== true');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-28.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-28.js
index b2a3da597..f3538884d 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-28.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-28.js
@@ -9,14 +9,14 @@ description: >
visible when an exception occurs
---*/
-var stepFiveOccurs = false;
-var fromIndex = {
- valueOf: function() {
- stepFiveOccurs = true;
- return 0;
- }
-};
+ var stepFiveOccurs = false;
+ var fromIndex = {
+ valueOf: function () {
+ stepFiveOccurs = true;
+ return 0;
+ }
+ };
assert.throws(TypeError, function() {
- Array.prototype.lastIndexOf.call(undefined, undefined, fromIndex);
+ Array.prototype.lastIndexOf.call(undefined, undefined, fromIndex);
});
assert.sameValue(stepFiveOccurs, false, 'stepFiveOccurs');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-29.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-29.js
index f1fd8f73a..9d4e8f522 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-29.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-29.js
@@ -9,23 +9,23 @@ description: >
visible when an exception occurs
---*/
-var stepFiveOccurs = false;
+ var stepFiveOccurs = false;
-var obj = {};
-Object.defineProperty(obj, "length", {
- get: function() {
- throw new RangeError();
- },
- configurable: true
-});
+ var obj = {};
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ throw new RangeError();
+ },
+ configurable: true
+ });
-var fromIndex = {
- valueOf: function() {
- stepFiveOccurs = true;
- return 0;
- }
-};
+ var fromIndex = {
+ valueOf: function () {
+ stepFiveOccurs = true;
+ return 0;
+ }
+ };
assert.throws(RangeError, function() {
- Array.prototype.lastIndexOf.call(obj, undefined, fromIndex);
+ Array.prototype.lastIndexOf.call(obj, undefined, fromIndex);
});
assert.sameValue(stepFiveOccurs, false, 'stepFiveOccurs');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-3.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-3.js
index 57bf7dfd4..5fccb2a9c 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-3.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-3.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.15-5-3
description: Array.prototype.lastIndexOf when fromIndex is boolean
---*/
-var a = new Array(1, 2, 1);
+ var a = new Array(1,2,1);
-assert.sameValue(a.lastIndexOf(2, true), 1, 'true resolves to 1');
-assert.sameValue(a.lastIndexOf(2, false), -1, 'false resolves to 0');
+assert.sameValue(a.lastIndexOf(2,true), 1, 'true resolves to 1');
+assert.sameValue(a.lastIndexOf(2,false), -1, 'false resolves to 0');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-30.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-30.js
index 4d0ad283f..92fef085d 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-30.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-30.js
@@ -9,27 +9,27 @@ description: >
visible when an exception occurs
---*/
-var stepFiveOccurs = false;
+ var stepFiveOccurs = false;
-var obj = {};
-Object.defineProperty(obj, "length", {
- get: function() {
- return {
- valueOf: function() {
- throw new TypeError();
- }
- };
- },
- configurable: true
-});
+ var obj = {};
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ valueOf: function () {
+ throw new TypeError();
+ }
+ };
+ },
+ configurable: true
+ });
-var fromIndex = {
- valueOf: function() {
- stepFiveOccurs = true;
- return 0;
- }
-};
+ var fromIndex = {
+ valueOf: function () {
+ stepFiveOccurs = true;
+ return 0;
+ }
+ };
assert.throws(TypeError, function() {
- Array.prototype.lastIndexOf.call(obj, undefined, fromIndex);
+ Array.prototype.lastIndexOf.call(obj, undefined, fromIndex);
});
assert.sameValue(stepFiveOccurs, false, 'stepFiveOccurs');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-31.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-31.js
index 66c4b8c01..11152525f 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-31.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-31.js
@@ -9,7 +9,7 @@ description: >
non-integer, verify truncation occurs in the proper direction
---*/
-var targetObj = {};
+ var targetObj = {};
assert.sameValue([0, targetObj, true].lastIndexOf(targetObj, 1.5), 1, '[0, targetObj, true].lastIndexOf(targetObj, 1.5)');
assert.sameValue([0, true, targetObj].lastIndexOf(targetObj, 1.5), -1, '[0, true, targetObj].lastIndexOf(targetObj, 1.5)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-32.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-32.js
index 75aed0966..db105484b 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-32.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-32.js
@@ -9,7 +9,7 @@ description: >
non-integer, verify truncation occurs in the proper direction
---*/
-var targetObj = {};
+ var targetObj = {};
assert.sameValue([0, targetObj, true].lastIndexOf(targetObj, -2.5), 1, '[0, targetObj, true].lastIndexOf(targetObj, -2.5)');
assert.sameValue([0, true, targetObj].lastIndexOf(targetObj, -2.5), -1, '[0, true, targetObj].lastIndexOf(targetObj, -2.5)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-4.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-4.js
index f581274c2..120641ec7 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-4.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-4.js
@@ -7,9 +7,9 @@ es5id: 15.4.4.15-5-4
description: Array.prototype.lastIndexOf when fromIndex is undefined
---*/
-var a = new Array(1, 2, 1);
+ var a = new Array(1,2,1);
// undefined resolves to 0, no second argument resolves to len
-assert.sameValue(a.lastIndexOf(2, undefined), -1, 'a.lastIndexOf(2,undefined)');
-assert.sameValue(a.lastIndexOf(1, undefined), 0, 'a.lastIndexOf(1,undefined)');
+assert.sameValue(a.lastIndexOf(2,undefined), -1, 'a.lastIndexOf(2,undefined)');
+assert.sameValue(a.lastIndexOf(1,undefined), 0, 'a.lastIndexOf(1,undefined)');
assert.sameValue(a.lastIndexOf(1), 2, 'a.lastIndexOf(1)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-5.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-5.js
index 72efdc307..38614daf9 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-5.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-5.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.15-5-5
description: Array.prototype.lastIndexOf when fromIndex is null
---*/
-var a = new Array(1, 2, 1);
+ var a = new Array(1,2,1);
// null resolves to 0
-assert.sameValue(a.lastIndexOf(2, null), -1, 'a.lastIndexOf(2,null)');
-assert.sameValue(a.lastIndexOf(1, null), 0, 'a.lastIndexOf(1,null)');
+assert.sameValue(a.lastIndexOf(2,null), -1, 'a.lastIndexOf(2,null)');
+assert.sameValue(a.lastIndexOf(1,null), 0, 'a.lastIndexOf(1,null)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-6.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-6.js
index 033e078b3..e66f4a75e 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-6.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-6.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.15-5-6
description: Array.prototype.lastIndexOf when 'fromIndex' isn't passed
---*/
-var arr = [0, 1, 2, 3, 4];
-//'fromIndex' will be set as 4 if not passed by default
+ var arr = [0, 1, 2, 3, 4];
+ //'fromIndex' will be set as 4 if not passed by default
assert.sameValue(arr.lastIndexOf(0), arr.lastIndexOf(0, 4), 'arr.lastIndexOf(0)');
assert.sameValue(arr.lastIndexOf(2), arr.lastIndexOf(2, 4), 'arr.lastIndexOf(2)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-6-1.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-6-1.js
index 87cf25f0c..efe30ad08 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-6-1.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-6-1.js
@@ -9,7 +9,7 @@ description: >
Array.length
---*/
-var a = new Array(1, 2, 3);
+ var a = new Array(1,2,3);
-assert.sameValue(a.lastIndexOf(3, 5.4), 2, 'a.lastIndexOf(3,5.4)');
-assert.sameValue(a.lastIndexOf(3, 3.1), 2, 'a.lastIndexOf(3,3.1)');
+assert.sameValue(a.lastIndexOf(3,5.4), 2, 'a.lastIndexOf(3,5.4)');
+assert.sameValue(a.lastIndexOf(3,3.1), 2, 'a.lastIndexOf(3,3.1)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-7-1.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-7-1.js
index 50f0225fa..f0d4f45ef 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-7-1.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-7-1.js
@@ -7,9 +7,9 @@ es5id: 15.4.4.15-7-1
description: Array.prototype.lastIndexOf with negative fromIndex
---*/
-var a = new Array(1, 2, 3);
+ var a = new Array(1,2,3);
-assert.sameValue(a.lastIndexOf(2, -2), 1, 'a.lastIndexOf(2,-2)');
-assert.sameValue(a.lastIndexOf(2, -3), -1, 'a.lastIndexOf(2,-3)');
-assert.sameValue(a.lastIndexOf(1, -5.3), -1, 'a.lastIndexOf(1,-5.3)');
+assert.sameValue(a.lastIndexOf(2,-2), 1, 'a.lastIndexOf(2,-2)');
+assert.sameValue(a.lastIndexOf(2,-3), -1, 'a.lastIndexOf(2,-3)');
+assert.sameValue(a.lastIndexOf(1,-5.3), -1, 'a.lastIndexOf(1,-5.3)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-1.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-1.js
index ba9f6f41d..90b73979e 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-1.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-1.js
@@ -7,13 +7,9 @@ es5id: 15.4.4.15-8-1
description: Array.prototype.lastIndexOf must return correct index(boolean)
---*/
-var obj = {
- toString: function() {
- return true
- }
-};
-var _false = false;
-var a = new Array(false, true, false, obj, _false, true, "true", undefined, 0, null, 1, "str", 0, 1);
+ var obj = {toString:function (){return true}};
+ var _false = false;
+ var a = new Array(false,true,false,obj,_false,true,"true", undefined,0,null,1,"str",0,1);
assert.sameValue(a.lastIndexOf(true), 5, 'a[5]=true');
assert.sameValue(a.lastIndexOf(false), 4, 'a[4] =_false');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-10.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-10.js
index 91f6f3c01..c22552686 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-10.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-10.js
@@ -10,11 +10,7 @@ es5id: 15.4.4.15-8-10
description: Array.prototype.lastIndexOf must return correct index (NaN)
---*/
-var _NaN = NaN;
-var a = new Array("NaN", _NaN, NaN, undefined, 0, false, null, {
- toString: function() {
- return NaN
- }
-}, "false");
+ var _NaN = NaN;
+ var a = new Array("NaN",_NaN,NaN, undefined,0,false,null,{toString:function (){return NaN}},"false");
assert.sameValue(a.lastIndexOf(NaN), -1, 'NaN matches nothing, not even itself');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-11.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-11.js
index 0fd222276..9e2f6d79a 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-11.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-11.js
@@ -9,14 +9,14 @@ description: >
changed by adding elements to the array during iteration
---*/
-var arr = [20];
+ var arr = [20];
-Object.defineProperty(arr, "0", {
- get: function() {
- arr[1] = 1;
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ arr[1] = 1;
+ return 0;
+ },
+ configurable: true
+ });
assert.sameValue(arr.lastIndexOf(1), -1, 'arr.lastIndexOf(1)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-2.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-2.js
index 51273ec3b..8dcc8e602 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-2.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-2.js
@@ -7,16 +7,12 @@ es5id: 15.4.4.15-8-2
description: Array.prototype.lastIndexOf must return correct index(Number)
---*/
-var obj = {
- toString: function() {
- return 0
- }
-};
-var one = 1;
-var _float = -(4 / 3);
-var a = new Array(+0, true, 0, -0, false, undefined, null, "0", obj, _float, -(4 / 3), -1.3333333333333, "str", one, 1, false);
+ var obj = {toString:function (){return 0}};
+ var one = 1;
+ var _float = -(4/3);
+ var a = new Array(+0,true,0,-0, false,undefined,null,"0",obj, _float,-(4/3),-1.3333333333333,"str",one, 1, false);
-assert.sameValue(a.lastIndexOf(-(4 / 3)), 10, 'a[10]=-(4/3)');
+assert.sameValue(a.lastIndexOf(-(4/3)), 10, 'a[10]=-(4/3)');
assert.sameValue(a.lastIndexOf(0), 3, 'a[3] = -0, but using === -0 and 0 are equal');
assert.sameValue(a.lastIndexOf(-0), 3, 'a[3] = -0');
assert.sameValue(a.lastIndexOf(1), 14, 'a[14] = 1');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-3.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-3.js
index a1f22e7de..ba6b3e826 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-3.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-3.js
@@ -7,12 +7,8 @@ es5id: 15.4.4.15-8-3
description: Array.prototype.lastIndexOf must return correct index(string)
---*/
-var obj = {
- toString: function() {
- return "false"
- }
-};
-var szFalse = "false";
-var a = new Array(szFalse, "false", "false1", undefined, 0, false, null, 1, obj, 0);
+ var obj = {toString:function (){return "false"}};
+ var szFalse = "false";
+ var a = new Array(szFalse, "false","false1",undefined,0,false,null,1,obj,0);
assert.sameValue(a.lastIndexOf("false"), 1, 'a.lastIndexOf("false")');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-4.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-4.js
index e77e8d780..1c4050783 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-4.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-4.js
@@ -7,13 +7,9 @@ es5id: 15.4.4.15-8-4
description: Array.prototype.lastIndexOf must return correct index(undefined)
---*/
-var obj = {
- toString: function() {
- return undefined;
- }
-};
-var _undefined1 = undefined;
-var _undefined2;
-var a = new Array(_undefined1, _undefined2, undefined, true, 0, false, null, 1, "undefined", obj, 1);
+ var obj = {toString:function (){return undefined;}};
+ var _undefined1 = undefined;
+ var _undefined2;
+ var a = new Array(_undefined1,_undefined2,undefined,true,0,false,null,1,"undefined",obj,1);
assert.sameValue(a.lastIndexOf(undefined), 2, 'a.lastIndexOf(undefined)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-5.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-5.js
index 2aea2f8ee..afd59f8ac 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-5.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-5.js
@@ -7,21 +7,9 @@ es5id: 15.4.4.15-8-5
description: Array.prototype.lastIndexOf must return correct index(Object)
---*/
-var obj1 = {
- toString: function() {
- return "false"
- }
-};
-var obj2 = {
- toString: function() {
- return "false"
- }
-};
-var obj3 = obj1;
-var a = new Array(obj2, obj1, obj3, false, undefined, 0, false, null, {
- toString: function() {
- return "false"
- }
-}, "false");
+ var obj1 = {toString:function (){return "false"}};
+ var obj2 = {toString:function (){return "false"}};
+ var obj3 = obj1;
+ var a = new Array(obj2,obj1,obj3,false,undefined,0,false,null,{toString:function (){return "false"}},"false");
assert.sameValue(a.lastIndexOf(obj3), 2, 'a.lastIndexOf(obj3)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-6.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-6.js
index 18b8888ee..c3e542c7c 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-6.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-6.js
@@ -7,12 +7,8 @@ es5id: 15.4.4.15-8-6
description: Array.prototype.lastIndexOf must return correct index(null)
---*/
-var obj = {
- toString: function() {
- return null
- }
-};
-var _null = null;
-var a = new Array(true, undefined, 0, false, null, 1, "str", 0, 1, null, true, false, undefined, _null, "null", undefined, "str", obj);
+ var obj = {toString:function (){return null}};
+ var _null = null;
+ var a = new Array(true,undefined,0,false,null,1,"str",0,1,null,true,false,undefined,_null,"null",undefined,"str",obj);
assert.sameValue(a.lastIndexOf(null), 13, 'a.lastIndexOf(null)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-7.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-7.js
index 543564a91..763dbfe40 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-7.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-7.js
@@ -9,8 +9,8 @@ description: >
reference)
---*/
-var a = new Array(0, 1, 2, 3);
-a[2] = a;
+ var a = new Array(0,1,2,3);
+ a[2] = a;
assert.sameValue(a.lastIndexOf(a), 2, 'a.lastIndexOf(a)');
assert.sameValue(a.lastIndexOf(3), 3, 'a.lastIndexOf(3)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-8.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-8.js
index b5676e56d..1cb37a62d 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-8.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-8.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.15-8-8
description: Array.prototype.lastIndexOf must return correct index (Array)
---*/
-var b = new Array("0,1");
-var a = new Array(0, b, "0,1", 3);
+ var b = new Array("0,1");
+ var a = new Array(0,b,"0,1",3);
assert.sameValue(a.lastIndexOf(b.toString()), 2, 'a.lastIndexOf(b.toString())');
assert.sameValue(a.lastIndexOf("0,1"), 2, 'a.lastIndexOf("0,1")');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-9.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-9.js
index c70075216..7c7026a1d 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-9.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-9.js
@@ -9,15 +9,15 @@ description: >
Array)
---*/
-var a = new Array(0, 1);
-a[4294967294] = 2; // 2^32-2 - is max array element index
-a[4294967295] = 3; // 2^32-1 added as non-array element property
-a[4294967296] = 4; // 2^32 added as non-array element property
-a[4294967297] = 5; // 2^32+1 added as non-array element property
-// stop searching near the end in case implementation actually tries to test all missing elements!!
-a[4294967200] = 3;
-a[4294967201] = 4;
-a[4294967202] = 5;
+ var a = new Array(0,1);
+ a[4294967294] = 2; // 2^32-2 - is max array element index
+ a[4294967295] = 3; // 2^32-1 added as non-array element property
+ a[4294967296] = 4; // 2^32 added as non-array element property
+ a[4294967297] = 5; // 2^32+1 added as non-array element property
+ // stop searching near the end in case implementation actually tries to test all missing elements!!
+ a[4294967200] = 3;
+ a[4294967201] = 4;
+ a[4294967202] = 5;
assert.sameValue(a.lastIndexOf(2), 4294967294, 'a.lastIndexOf(2)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-1.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-1.js
index 8da0ba48d..71fb4d1b5 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-1.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-1.js
@@ -9,14 +9,14 @@ description: >
visible here
---*/
-var arr = {};
+ var arr = { };
-Object.defineProperty(arr, "length", {
- get: function() {
- arr[2] = "length";
- return 3;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "length", {
+ get: function () {
+ arr[2] = "length";
+ return 3;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.lastIndexOf.call(arr, "length"), 2, 'Array.prototype.lastIndexOf.call(arr, "length")');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-10.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-10.js
index aa82dc85b..5dd88469d 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-10.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-10.js
@@ -9,19 +9,19 @@ description: >
after current position are visited on an Array
---*/
-var arr = [0, , 2];
+ var arr = [0, , 2];
-Object.defineProperty(arr, "2", {
- get: function() {
- Object.defineProperty(Array.prototype, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ Object.defineProperty(Array.prototype, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
assert.sameValue(arr.lastIndexOf(6.99), 1, 'arr.lastIndexOf(6.99)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-11.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-11.js
index c7bd8ed99..83d4ac5ce 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-11.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-11.js
@@ -9,23 +9,21 @@ description: >
property not to be visited on an Array-like object
---*/
-var arr = {
- length: 200
-};
+ var arr = { length: 200 };
-Object.defineProperty(arr, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "100", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "100", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.lastIndexOf.call(arr, 6.99), -1, 'Array.prototype.lastIndexOf.call(arr, 6.99)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-12.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-12.js
index e1b6e93de..00f8a44fe 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-12.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-12.js
@@ -9,21 +9,21 @@ description: >
property not to be visited on an Array
---*/
-var arr = [1, 2, 3, 4];
+ var arr = [1, 2, 3, 4];
-Object.defineProperty(arr, "1", {
- get: function() {
- return "6.99";
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return "6.99";
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "3", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "3", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
assert.sameValue(arr.lastIndexOf("6.99"), -1, 'arr.lastIndexOf("6.99")');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-13.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-13.js
index 052114d92..df702ae21 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-13.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-13.js
@@ -10,19 +10,16 @@ description: >
Object
---*/
-var arr = {
- 2: 2,
- length: 20
-};
+ var arr = { 2: 2, length: 20 };
-Object.defineProperty(arr, "3", {
- get: function() {
- delete Object.prototype[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "3", {
+ get: function () {
+ delete Object.prototype[1];
+ return 0;
+ },
+ configurable: true
+ });
-Object.prototype[1] = 1;
+ Object.prototype[1] = 1;
assert.sameValue(Array.prototype.lastIndexOf.call(arr, 1), -1, 'Array.prototype.lastIndexOf.call(arr, 1)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-14.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-14.js
index 864c9a8fa..d86e21b9e 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-14.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-14.js
@@ -9,16 +9,16 @@ description: >
causes prototype index property not to be visited on an Array
---*/
-var arr = [0, , 2];
+ var arr = [0, , 2];
-Object.defineProperty(arr, "20", {
- get: function() {
- delete Array.prototype[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "20", {
+ get: function () {
+ delete Array.prototype[1];
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype[1] = 1;
+ Array.prototype[1] = 1;
assert.sameValue(arr.lastIndexOf(1), -1, 'arr.lastIndexOf(1)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-15.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-15.js
index c9ed09f3a..a5ae27fef 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-15.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-15.js
@@ -10,21 +10,16 @@ description: >
on an Array-like object
---*/
-var arr = {
- 0: 0,
- 1: 111,
- 2: 2,
- length: 10
-};
+ var arr = { 0: 0, 1: 111, 2: 2, length: 10 };
-Object.defineProperty(arr, "6", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "6", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
-Object.prototype[1] = 1;
+ Object.prototype[1] = 1;
assert.sameValue(Array.prototype.lastIndexOf.call(arr, 1), 1, 'Array.prototype.lastIndexOf.call(arr, 1)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-16.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-16.js
index 49b6f786a..fce1f7c2c 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-16.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-16.js
@@ -10,16 +10,16 @@ description: >
on an Array
---*/
-var arr = [0, 111, 2];
+ var arr = [0, 111, 2];
-Object.defineProperty(arr, "2", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype[1] = 1;
+ Array.prototype[1] = 1;
assert.sameValue(arr.lastIndexOf(1), 1, 'arr.lastIndexOf(1)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-17.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-17.js
index 5056ac8a2..f2bd2ff1f 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-17.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-17.js
@@ -9,14 +9,14 @@ description: >
index property not to be visited
---*/
-var arr = [0, 1, 2, "last", 4];
+ var arr = [0, 1, 2, "last", 4];
-Object.defineProperty(arr, "4", {
- get: function() {
- arr.length = 3;
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "4", {
+ get: function () {
+ arr.length = 3;
+ return 0;
+ },
+ configurable: true
+ });
assert.sameValue(arr.lastIndexOf("last"), -1, 'arr.lastIndexOf("last")');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-18.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-18.js
index a34d8b58e..9202ce28e 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-18.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-18.js
@@ -9,21 +9,21 @@ description: >
prototype property causes prototype index property to be visited
---*/
-var arr = [0, 1, 2, 3, 4];
+ var arr = [0, 1, 2, 3, 4];
-Object.defineProperty(Array.prototype, "2", {
- get: function() {
- return "prototype";
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "2", {
+ get: function () {
+ return "prototype";
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "3", {
- get: function() {
- arr.length = 2;
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "3", {
+ get: function () {
+ arr.length = 2;
+ return 1;
+ },
+ configurable: true
+ });
assert.sameValue(arr.lastIndexOf("prototype"), 2, 'arr.lastIndexOf("prototype")');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-19.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-19.js
index ca788c2bc..b5c018d0c 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-19.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-19.js
@@ -10,21 +10,21 @@ description: >
flags: [noStrict]
---*/
-var arr = [0, 1, 2, 3];
+ var arr = [0, 1, 2, 3];
-Object.defineProperty(arr, "2", {
- get: function() {
- return "unconfigurable";
- },
- configurable: false
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ return "unconfigurable";
+ },
+ configurable: false
+ });
-Object.defineProperty(arr, "3", {
- get: function() {
- arr.length = 2;
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "3", {
+ get: function () {
+ arr.length = 2;
+ return 1;
+ },
+ configurable: true
+ });
assert.sameValue(arr.lastIndexOf("unconfigurable"), 2, 'arr.lastIndexOf("unconfigurable")');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-2.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-2.js
index 01d4e44db..416d33fc8 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-2.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-2.js
@@ -9,17 +9,15 @@ description: >
visible here on an Array-like object
---*/
-var arr = {
- length: 30
-};
-var targetObj = function() {};
+ var arr = { length: 30 };
+ var targetObj = function () { };
-var fromIndex = {
- valueOf: function() {
- arr[4] = targetObj;
- return 10;
- }
-};
+ var fromIndex = {
+ valueOf: function () {
+ arr[4] = targetObj;
+ return 10;
+ }
+ };
assert.sameValue(Array.prototype.lastIndexOf.call(arr, targetObj, fromIndex), 4, 'Array.prototype.lastIndexOf.call(arr, targetObj, fromIndex)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-3.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-3.js
index 7ceda1ccd..e02d240e5 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-3.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-3.js
@@ -9,15 +9,15 @@ description: >
visible here on an Array
---*/
-var arr = [];
-arr.length = 30;
-var targetObj = function() {};
+ var arr = [];
+ arr.length = 30;
+ var targetObj = function () { };
-var fromIndex = {
- valueOf: function() {
- arr[4] = targetObj;
- return 11;
- }
-};
+ var fromIndex = {
+ valueOf: function () {
+ arr[4] = targetObj;
+ return 11;
+ }
+ };
assert.sameValue(arr.lastIndexOf(targetObj, fromIndex), 4, 'arr.lastIndexOf(targetObj, fromIndex)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-4.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-4.js
index 010ffb36d..2846cf6e9 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-4.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-4.js
@@ -9,16 +9,14 @@ description: >
visible here
---*/
-var arr = {
- 2: 6.99
-};
+ var arr = { 2: 6.99 };
-Object.defineProperty(arr, "length", {
- get: function() {
- delete arr[2];
- return 3;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "length", {
+ get: function () {
+ delete arr[2];
+ return 3;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.lastIndexOf.call(arr, 6.99), -1, 'Array.prototype.lastIndexOf.call(arr, 6.99)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-5.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-5.js
index cd592d237..4d1c2f8db 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-5.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-5.js
@@ -9,16 +9,13 @@ description: >
visible here on an Array-like object
---*/
-var arr = {
- 10: false,
- length: 30
-};
+ var arr = { 10: false, length: 30 };
-var fromIndex = {
- valueOf: function() {
- delete arr[10];
- return 15;
- }
-};
+ var fromIndex = {
+ valueOf: function () {
+ delete arr[10];
+ return 15;
+ }
+ };
assert.sameValue(Array.prototype.lastIndexOf.call(arr, false, fromIndex), -1, 'Array.prototype.lastIndexOf.call(arr, false, fromIndex)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-6.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-6.js
index 6b23e07f8..0ad3830b3 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-6.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-6.js
@@ -9,15 +9,15 @@ description: >
visible here on an Array
---*/
-var arr = [];
-arr[10] = "10";
-arr.length = 20;
+ var arr = [];
+ arr[10] = "10";
+ arr.length = 20;
-var fromIndex = {
- valueOf: function() {
- delete arr[10];
- return 11;
- }
-};
+ var fromIndex = {
+ valueOf: function () {
+ delete arr[10];
+ return 11;
+ }
+ };
assert.sameValue(arr.lastIndexOf("10", fromIndex), -1, 'arr.lastIndexOf("10", fromIndex)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-7.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-7.js
index e64cc5bab..af7fc70e5 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-7.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-7.js
@@ -9,21 +9,19 @@ description: >
after current position are visited on an Array-like object
---*/
-var arr = {
- length: 8
-};
+ var arr = { length: 8 };
-Object.defineProperty(arr, "4", {
- get: function() {
- Object.defineProperty(arr, "1", {
- get: function() {
- return 1;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "4", {
+ get: function () {
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.lastIndexOf.call(arr, 1), 1, 'Array.prototype.lastIndexOf.call(arr, 1)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-8.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-8.js
index ef7d6b674..c368ef570 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-8.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-8.js
@@ -9,19 +9,19 @@ description: >
after current position are visited on an Array
---*/
-var arr = [0, , 2];
+ var arr = [0, , 2];
-Object.defineProperty(arr, "2", {
- get: function() {
- Object.defineProperty(arr, "1", {
- get: function() {
- return 1;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
assert.sameValue(arr.lastIndexOf(1), 1, 'arr.lastIndexOf(1)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-9.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-9.js
index d0d856f61..412604d03 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-9.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-9.js
@@ -10,21 +10,19 @@ description: >
object
---*/
-var arr = {
- length: 9
-};
+ var arr = { length: 9 };
-Object.defineProperty(arr, "4", {
- get: function() {
- Object.defineProperty(Object.prototype, "1", {
- get: function() {
- return Infinity;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "4", {
+ get: function () {
+ Object.defineProperty(Object.prototype, "1", {
+ get: function () {
+ return Infinity;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.lastIndexOf.call(arr, Infinity), 1, 'Array.prototype.lastIndexOf.call(arr, Infinity)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-1.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-1.js
index 3dfe2ffa1..7a4e136a6 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-1.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-1.js
@@ -9,12 +9,7 @@ description: >
property on an Array-like object
---*/
-var obj = {
- 0: 0,
- 1: 1,
- 2: 2,
- length: 3
-};
+ var obj = { 0: 0, 1: 1, 2: 2, length: 3 };
assert.sameValue(Array.prototype.lastIndexOf.call(obj, 0), 0, 'Array.prototype.lastIndexOf.call(obj, 0)');
assert.sameValue(Array.prototype.lastIndexOf.call(obj, 1), 1, 'Array.prototype.lastIndexOf.call(obj, 1)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-10.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-10.js
index b60f3beb3..38b41bddf 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-10.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-10.js
@@ -9,29 +9,27 @@ description: >
accessor property on an Array-like object
---*/
-var obj = {
- length: 3
-};
-Object.defineProperty(obj, "0", {
- get: function() {
- return 0;
- },
- configurable: true
-});
+ var obj = { length: 3 };
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ return 0;
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "1", {
- get: function() {
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "2", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "2", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.lastIndexOf.call(obj, 0), 0, 'Array.prototype.lastIndexOf.call(obj, 0)');
assert.sameValue(Array.prototype.lastIndexOf.call(obj, 1), 1, 'Array.prototype.lastIndexOf.call(obj, 1)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-11.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-11.js
index 6dfa28831..72eb04947 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-11.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-11.js
@@ -10,14 +10,14 @@ description: >
Array
---*/
-var arr = [];
+ var arr = [];
-Array.prototype[0] = false;
-Object.defineProperty(arr, "0", {
- get: function() {
- return true;
- },
- configurable: true
-});
+ Array.prototype[0] = false;
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ return true;
+ },
+ configurable: true
+ });
assert.sameValue(arr.lastIndexOf(true), 0, 'arr.lastIndexOf(true)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-12.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-12.js
index 739d80bb3..94fef7d4c 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-12.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-12.js
@@ -10,16 +10,14 @@ description: >
Array-like object
---*/
-var obj = {
- length: 1
-};
+ var obj = { length: 1 };
-Object.prototype[0] = false;
-Object.defineProperty(obj, "0", {
- get: function() {
- return true;
- },
- configurable: true
-});
+ Object.prototype[0] = false;
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ return true;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.lastIndexOf.call(obj, true), 0, 'Array.prototype.lastIndexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-13.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-13.js
index 70462919d..bd077110e 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-13.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-13.js
@@ -10,20 +10,20 @@ description: >
an Array
---*/
-var arr = [];
+ var arr = [];
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return false;
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return false;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "0", {
- get: function() {
- return true;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ return true;
+ },
+ configurable: true
+ });
assert.sameValue(arr.lastIndexOf(true), 0, 'arr.lastIndexOf(true)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-14.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-14.js
index 9662f75bd..9a326f9d4 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-14.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-14.js
@@ -10,22 +10,20 @@ description: >
an Array-like object
---*/
-var obj = {
- length: 1
-};
+ var obj = { length: 1 };
-Object.defineProperty(Object.prototype, "0", {
- get: function() {
- return false;
- },
- configurable: true
-});
+ Object.defineProperty(Object.prototype, "0", {
+ get: function () {
+ return false;
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "0", {
- get: function() {
- return true;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ return true;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.lastIndexOf.call(obj, true), 0, 'Array.prototype.lastIndexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-15.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-15.js
index 32c4149d8..e91eaf66b 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-15.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-15.js
@@ -9,26 +9,26 @@ description: >
accessor property on an Array
---*/
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return 10;
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return 10;
+ },
+ configurable: true
+ });
-Object.defineProperty(Array.prototype, "1", {
- get: function() {
- return 20;
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "1", {
+ get: function () {
+ return 20;
+ },
+ configurable: true
+ });
-Object.defineProperty(Array.prototype, "2", {
- get: function() {
- return 30;
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "2", {
+ get: function () {
+ return 30;
+ },
+ configurable: true
+ });
assert.sameValue([, , , ].lastIndexOf(10), 0, '[, , , ].lastIndexOf(10)');
assert.sameValue([, , , ].lastIndexOf(20), 1, '[, , , ].lastIndexOf(20)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-16.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-16.js
index e8cb635fd..89205ee26 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-16.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-16.js
@@ -9,33 +9,27 @@ description: >
accessor property on an Array-like object
---*/
-Object.defineProperty(Object.prototype, "0", {
- get: function() {
- return 10;
- },
- configurable: true
-});
+ Object.defineProperty(Object.prototype, "0", {
+ get: function () {
+ return 10;
+ },
+ configurable: true
+ });
-Object.defineProperty(Object.prototype, "1", {
- get: function() {
- return 20;
- },
- configurable: true
-});
+ Object.defineProperty(Object.prototype, "1", {
+ get: function () {
+ return 20;
+ },
+ configurable: true
+ });
-Object.defineProperty(Object.prototype, "2", {
- get: function() {
- return 30;
- },
- configurable: true
-});
+ Object.defineProperty(Object.prototype, "2", {
+ get: function () {
+ return 30;
+ },
+ configurable: true
+ });
-assert.sameValue(Array.prototype.lastIndexOf.call({
- length: 3
-}, 10), 0, 'Array.prototype.lastIndexOf.call({ length: 3 }, 10)');
-assert.sameValue(Array.prototype.lastIndexOf.call({
- length: 3
-}, 20), 1, 'Array.prototype.lastIndexOf.call({ length: 3 }, 20)');
-assert.sameValue(Array.prototype.lastIndexOf.call({
- length: 3
-}, 30), 2, 'Array.prototype.lastIndexOf.call({ length: 3 }, 30)');
+assert.sameValue(Array.prototype.lastIndexOf.call({ length: 3 }, 10), 0, 'Array.prototype.lastIndexOf.call({ length: 3 }, 10)');
+assert.sameValue(Array.prototype.lastIndexOf.call({ length: 3 }, 20), 1, 'Array.prototype.lastIndexOf.call({ length: 3 }, 20)');
+assert.sameValue(Array.prototype.lastIndexOf.call({ length: 3 }, 30), 2, 'Array.prototype.lastIndexOf.call({ length: 3 }, 30)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-17.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-17.js
index dc14b777b..796abed7b 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-17.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-17.js
@@ -9,10 +9,10 @@ description: >
accessor property without a get function on an Array
---*/
-var arr = [];
-Object.defineProperty(arr, "0", {
- set: function() {},
- configurable: true
-});
+ var arr = [];
+ Object.defineProperty(arr, "0", {
+ set: function () { },
+ configurable: true
+ });
assert.sameValue(arr.lastIndexOf(undefined), 0, 'arr.lastIndexOf(undefined)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-18.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-18.js
index 0a9e3a693..65fc004c5 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-18.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-18.js
@@ -9,12 +9,10 @@ description: >
accessor property without a get function on an Array-like object
---*/
-var obj = {
- length: 1
-};
-Object.defineProperty(obj, "0", {
- set: function() {},
- configurable: true
-});
+ var obj = { length: 1 };
+ Object.defineProperty(obj, "0", {
+ set: function () { },
+ configurable: true
+ });
assert.sameValue(Array.prototype.lastIndexOf.call(obj, undefined), 0, 'Array.prototype.lastIndexOf.call(obj, undefined)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-19.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-19.js
index d5ca0b3ee..3c9baf0af 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-19.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-19.js
@@ -10,20 +10,18 @@ description: >
inherited accessor property on an Array-like object
---*/
-var obj = {
- length: 1
-};
+ var obj = { length: 1 };
-Object.defineProperty(Object.prototype, "0", {
- get: function() {
- return 20;
- },
- configurable: true
-});
-Object.defineProperty(obj, "0", {
- set: function() {},
- configurable: true
-});
+ Object.defineProperty(Object.prototype, "0", {
+ get: function () {
+ return 20;
+ },
+ configurable: true
+ });
+ Object.defineProperty(obj, "0", {
+ set: function () { },
+ configurable: true
+ });
assert(obj.hasOwnProperty(0), 'obj.hasOwnProperty(0) !== true');
assert.sameValue(Array.prototype.lastIndexOf.call(obj, undefined), 0, 'Array.prototype.lastIndexOf.call(obj, undefined)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-20.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-20.js
index 1f0b70839..d0c826fd2 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-20.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-20.js
@@ -10,18 +10,18 @@ description: >
inherited accessor property on an Array
---*/
-var arr = [, 1];
+ var arr = [, 1];
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return 100;
- },
- configurable: true
-});
-Object.defineProperty(arr, "0", {
- set: function() {},
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return 100;
+ },
+ configurable: true
+ });
+ Object.defineProperty(arr, "0", {
+ set: function () { },
+ configurable: true
+ });
assert(arr.hasOwnProperty(0), 'arr.hasOwnProperty(0) !== true');
assert.sameValue(arr.lastIndexOf(undefined), 0, 'arr.lastIndexOf(undefined)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-21.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-21.js
index ee64326c1..71304e777 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-21.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-21.js
@@ -9,9 +9,9 @@ description: >
accessor property without a get function on an Array
---*/
-Object.defineProperty(Array.prototype, "0", {
- set: function() {},
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ set: function () { },
+ configurable: true
+ });
assert.sameValue([, ].lastIndexOf(undefined), 0, '[, ].lastIndexOf(undefined)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-22.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-22.js
index 8dbf01f64..735c9cc7a 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-22.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-22.js
@@ -9,11 +9,9 @@ description: >
accessor property without a get function on an Array-like object
---*/
-Object.defineProperty(Object.prototype, "0", {
- set: function() {},
- configurable: true
-});
+ Object.defineProperty(Object.prototype, "0", {
+ set: function () { },
+ configurable: true
+ });
-assert.sameValue(Array.prototype.lastIndexOf.call({
- length: 1
-}, undefined), 0, 'Array.prototype.lastIndexOf.call({ length: 1 }, undefined)');
+assert.sameValue(Array.prototype.lastIndexOf.call({ length: 1 }, undefined), 0, 'Array.prototype.lastIndexOf.call({ length: 1 }, undefined)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-25.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-25.js
index d6806a98e..eeb3f4653 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-25.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-25.js
@@ -10,9 +10,9 @@ description: >
less than number of parameters)
---*/
-var func = function(a, b) {
- return 0 === Array.prototype.lastIndexOf.call(arguments, arguments[0]) &&
- -1 === Array.prototype.lastIndexOf.call(arguments, arguments[1]);
-};
+ var func = function (a, b) {
+ return 0 === Array.prototype.lastIndexOf.call(arguments, arguments[0]) &&
+ -1 === Array.prototype.lastIndexOf.call(arguments, arguments[1]);
+ };
assert(func(true), 'func(true) !== true');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-26.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-26.js
index b4066d733..b568be548 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-26.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-26.js
@@ -10,10 +10,10 @@ description: >
to number of parameters)
---*/
-var func = function(a, b) {
- return 0 === Array.prototype.lastIndexOf.call(arguments, arguments[0]) &&
- 1 === Array.prototype.lastIndexOf.call(arguments, arguments[1]) &&
- -1 === Array.prototype.lastIndexOf.call(arguments, arguments[2]);
-};
+ var func = function (a, b) {
+ return 0 === Array.prototype.lastIndexOf.call(arguments, arguments[0]) &&
+ 1 === Array.prototype.lastIndexOf.call(arguments, arguments[1]) &&
+ -1 === Array.prototype.lastIndexOf.call(arguments, arguments[2]);
+ };
assert(func(0, true), 'func(0, true) !== true');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-27.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-27.js
index 1d9f67863..7936ac8fb 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-27.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-27.js
@@ -10,7 +10,7 @@ description: >
greater than number of parameters)
---*/
-var func = function(a, b) {
+var func = function (a, b) {
assert.sameValue(Array.prototype.lastIndexOf.call(arguments, arguments[0]), 2);
assert.sameValue(Array.prototype.lastIndexOf.call(arguments, arguments[3]), 3);
assert.sameValue(Array.prototype.lastIndexOf.call(arguments, arguments[4]), -1);
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-28.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-28.js
index d599c9fa4..aa3fa7818 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-28.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-28.js
@@ -9,26 +9,26 @@ description: >
subsequent iterations on an Array
---*/
-var preIterVisible = false;
-var arr = [];
+ var preIterVisible = false;
+ var arr = [];
-Object.defineProperty(arr, "2", {
- get: function() {
- preIterVisible = true;
- return false;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ preIterVisible = true;
+ return false;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- if (preIterVisible) {
- return true;
- } else {
- return false;
- }
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ if (preIterVisible) {
+ return true;
+ } else {
+ return false;
+ }
+ },
+ configurable: true
+ });
assert.sameValue(arr.lastIndexOf(true), 1, 'arr.lastIndexOf(true)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-29.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-29.js
index 59ada2f1d..e73976d93 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-29.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-29.js
@@ -9,28 +9,26 @@ description: >
subsequent iterations on an Array-like object
---*/
-var preIterVisible = false;
-var obj = {
- length: 3
-};
+ var preIterVisible = false;
+ var obj = { length: 3 };
-Object.defineProperty(obj, "2", {
- get: function() {
- preIterVisible = true;
- return false;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "2", {
+ get: function () {
+ preIterVisible = true;
+ return false;
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "1", {
- get: function() {
- if (preIterVisible) {
- return true;
- } else {
- return false;
- }
- },
- configurable: true
-});
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ if (preIterVisible) {
+ return true;
+ } else {
+ return false;
+ }
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.lastIndexOf.call(obj, true), 1, 'Array.prototype.lastIndexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-3.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-3.js
index 5b82efe11..b292c0f5c 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-3.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-3.js
@@ -9,6 +9,6 @@ description: >
property that overrides an inherited data property on an Array
---*/
-Array.prototype[0] = Object;
+ Array.prototype[0] = Object;
assert.sameValue([Object.prototype].lastIndexOf(Object.prototype), 0, '[Object.prototype].lastIndexOf(Object.prototype)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-30.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-30.js
index 15b600383..251c5d428 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-30.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-30.js
@@ -9,24 +9,24 @@ description: >
exception on an Array
---*/
-var accessed = false;
-var arr = [];
+ var accessed = false;
+ var arr = [];
-Object.defineProperty(arr, "2", {
- get: function() {
- throw new TypeError();
- },
- configurable: true
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ throw new TypeError();
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- accessed = true;
- return true;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ accessed = true;
+ return true;
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- arr.lastIndexOf(true);
+ arr.lastIndexOf(true);
});
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-31.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-31.js
index 0d46b3d56..933d72d12 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-31.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-31.js
@@ -9,26 +9,24 @@ description: >
exception on an Array-like object
---*/
-var accessed = false;
-var obj = {
- length: 3
-};
+ var accessed = false;
+ var obj = { length: 3 };
-Object.defineProperty(obj, "2", {
- get: function() {
- throw new TypeError();
- },
- configurable: true
-});
+ Object.defineProperty(obj, "2", {
+ get: function () {
+ throw new TypeError();
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "1", {
- get: function() {
- accessed = true;
- return true;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ accessed = true;
+ return true;
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.lastIndexOf.call(obj, true);
+ Array.prototype.lastIndexOf.call(obj, true);
});
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-4.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-4.js
index 220442370..8f6e11da4 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-4.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-4.js
@@ -10,10 +10,6 @@ description: >
Array-like object
---*/
-Object.prototype[0] = false;
+ Object.prototype[0] = false;
-assert.sameValue(Array.prototype.lastIndexOf.call({
- 0: true,
- 1: 1,
- length: 2
-}, true), 0, 'Array.prototype.lastIndexOf.call({ 0: true, 1: 1, length: 2 }, true)');
+assert.sameValue(Array.prototype.lastIndexOf.call({ 0: true, 1: 1, length: 2 }, true), 0, 'Array.prototype.lastIndexOf.call({ 0: true, 1: 1, length: 2 }, true)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-5.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-5.js
index aa6921e41..771fde968 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-5.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-5.js
@@ -9,11 +9,11 @@ description: >
property that overrides an inherited accessor property on an Array
---*/
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return false;
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return false;
+ },
+ configurable: true
+ });
assert.sameValue([Number].lastIndexOf(Number), 0, '[Number].lastIndexOf(Number)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-6.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-6.js
index 70e391419..8c2ec3379 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-6.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-6.js
@@ -10,15 +10,11 @@ description: >
Array-like object
---*/
-Object.defineProperty(Object.prototype, "0", {
- get: function() {
- return false;
- },
- configurable: true
-});
+ Object.defineProperty(Object.prototype, "0", {
+ get: function () {
+ return false;
+ },
+ configurable: true
+ });
-assert.sameValue(Array.prototype.lastIndexOf.call({
- 0: true,
- 1: 1,
- length: 2
-}, true), 0, 'Array.prototype.lastIndexOf.call({ 0: true, 1: 1, length: 2 }, true)');
+assert.sameValue(Array.prototype.lastIndexOf.call({ 0: true, 1: 1, length: 2 }, true), 0, 'Array.prototype.lastIndexOf.call({ 0: true, 1: 1, length: 2 }, true)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-7.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-7.js
index a3c2f4902..d38620b98 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-7.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-7.js
@@ -9,9 +9,9 @@ description: >
data property on an Array
---*/
-Array.prototype[0] = true;
-Array.prototype[1] = false;
-Array.prototype[2] = "true";
+ Array.prototype[0] = true;
+ Array.prototype[1] = false;
+ Array.prototype[2] = "true";
assert.sameValue([, , , ].lastIndexOf(true), 0, '[, , , ].lastIndexOf(true)');
assert.sameValue([, , , ].lastIndexOf(false), 1, '[, , , ].lastIndexOf(false)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-8.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-8.js
index f06b7bfef..fbb0ea0bd 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-8.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-8.js
@@ -9,16 +9,10 @@ description: >
data property on an Array-like object
---*/
-Object.prototype[0] = true;
-Object.prototype[1] = false;
-Object.prototype[2] = "true";
+ Object.prototype[0] = true;
+ Object.prototype[1] = false;
+ Object.prototype[2] = "true";
-assert.sameValue(Array.prototype.lastIndexOf.call({
- length: 3
-}, true), 0, 'Array.prototype.lastIndexOf.call({ length: 3 }, true)');
-assert.sameValue(Array.prototype.lastIndexOf.call({
- length: 3
-}, false), 1, 'Array.prototype.lastIndexOf.call({ length: 3 }, false)');
-assert.sameValue(Array.prototype.lastIndexOf.call({
- length: 3
-}, "true"), 2, 'Array.prototype.lastIndexOf.call({ length: 3 }, "true")');
+assert.sameValue(Array.prototype.lastIndexOf.call({ length: 3 }, true), 0, 'Array.prototype.lastIndexOf.call({ length: 3 }, true)');
+assert.sameValue(Array.prototype.lastIndexOf.call({ length: 3 }, false), 1, 'Array.prototype.lastIndexOf.call({ length: 3 }, false)');
+assert.sameValue(Array.prototype.lastIndexOf.call({ length: 3 }, "true"), 2, 'Array.prototype.lastIndexOf.call({ length: 3 }, "true")');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-9.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-9.js
index d5ff8a47a..a20c0fa5d 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-9.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-9.js
@@ -9,27 +9,27 @@ description: >
accessor property on an Array
---*/
-var arr = [, , , ];
-Object.defineProperty(arr, "0", {
- get: function() {
- return 0;
- },
- configurable: true
-});
+ var arr = [, , , ];
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ return 0;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "2", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
assert.sameValue(arr.lastIndexOf(0), 0, 'arr.lastIndexOf(0)');
assert.sameValue(arr.lastIndexOf(1), 1, 'arr.lastIndexOf(1)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-ii-1.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-ii-1.js
index 953212528..c88bf06b2 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-ii-1.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-ii-1.js
@@ -14,6 +14,4 @@ assert.sameValue(["0"].lastIndexOf(0), -1, '["0"].lastIndexOf(0)');
assert.sameValue([false].lastIndexOf(0), -1, '[false].lastIndexOf(0)');
assert.sameValue([undefined].lastIndexOf(0), -1, '[undefined].lastIndexOf(0)');
assert.sameValue([null].lastIndexOf(0), -1, '[null].lastIndexOf(0)');
-assert.sameValue([
- []
-].lastIndexOf(0), -1, '[[]].lastIndexOf(0)');
+assert.sameValue([[]].lastIndexOf(0), -1, '[[]].lastIndexOf(0)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-ii-11.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-ii-11.js
index bbe793889..97cbb1fd4 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-ii-11.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-ii-11.js
@@ -9,8 +9,8 @@ description: >
element are Objects, and they refer to the same object
---*/
-var obj1 = {};
-var obj2 = {};
-var obj3 = obj2;
+ var obj1 = {};
+ var obj2 = {};
+ var obj3 = obj2;
assert.sameValue([obj2, obj1].lastIndexOf(obj3), 0, '[obj2, obj1].lastIndexOf(obj3)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-iii-2.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-iii-2.js
index ae16fd014..5c1d0c670 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-iii-2.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-iii-2.js
@@ -9,26 +9,26 @@ description: >
element once search value is found
---*/
-var arr = [2, 1, , 1, 2];
-var elementFirstAccessed = false;
-var elementThirdAccessed = false;
+ var arr = [2, 1, , 1, 2];
+ var elementFirstAccessed = false;
+ var elementThirdAccessed = false;
-Object.defineProperty(arr, "2", {
- get: function() {
- elementThirdAccessed = true;
- return 2;
- },
- configurable: true
-});
-Object.defineProperty(arr, "0", {
- get: function() {
- elementFirstAccessed = true;
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ elementThirdAccessed = true;
+ return 2;
+ },
+ configurable: true
+ });
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ elementFirstAccessed = true;
+ return 2;
+ },
+ configurable: true
+ });
-arr.lastIndexOf(2);
+ arr.lastIndexOf(2);
assert.sameValue(elementThirdAccessed, false, 'elementThirdAccessed');
assert.sameValue(elementFirstAccessed, false, 'elementFirstAccessed');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-9-1.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-9-1.js
index 2c4b6a094..8f70daaf5 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-9-1.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-9-1.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.15-9-1
description: Array.prototype.lastIndexOf returns -1 for elements not present
---*/
-var a = new Array();
-a[100] = 1;
-a[99999] = "";
-a[10] = new Object();
-a[5555] = 5.5;
-a[123456] = "str";
-a[5] = 1E+309;
+ var a = new Array();
+ a[100] = 1;
+ a[99999] = "";
+ a[10] = new Object();
+ a[5555] = 5.5;
+ a[123456] = "str";
+ a[5] = 1E+309;
assert.sameValue(a.lastIndexOf(1), 100, 'a.lastIndexOf(1)');
assert.sameValue(a.lastIndexOf(""), 99999, 'a.lastIndexOf("")');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-9-2.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-9-2.js
index e756e32f0..2c47880f4 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-9-2.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-9-2.js
@@ -9,18 +9,11 @@ description: >
not access any other properties
---*/
-var accessed = false;
-var f = {
- length: 0
-};
-Object.defineProperty(f, "0", {
- get: function() {
- accessed = true;
- return 1;
- }
-});
+ var accessed = false;
+ var f = {length: 0};
+ Object.defineProperty(f,"0",{get: function () {accessed = true; return 1;}});
-var i = Array.prototype.lastIndexOf.call(f, 1);
+ var i = Array.prototype.lastIndexOf.call(f,1);
assert.sameValue(i, -1, 'i');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-1-1.js b/test/built-ins/Array/prototype/map/15.4.4.19-1-1.js
index 15edce5b1..84d3f60de 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-1-1.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-1-1.js
@@ -9,5 +9,5 @@ description: Array.prototype.map - applied to undefined
assert.throws(TypeError, function() {
- Array.prototype.map.call(undefined); // TypeError is thrown if value is undefined
+ Array.prototype.map.call(undefined); // TypeError is thrown if value is undefined
});
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-1-10.js b/test/built-ins/Array/prototype/map/15.4.4.19-1-10.js
index 52eb839eb..abe500666 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-1-10.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-1-10.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.19-1-10
description: Array.prototype.map - applied to the Math object
---*/
-function callbackfn(val, idx, obj) {
- return ('[object Math]' === Object.prototype.toString.call(obj));
-}
+ function callbackfn(val, idx, obj) {
+ return ('[object Math]' === Object.prototype.toString.call(obj));
+ }
-Math.length = 1;
-Math[0] = 1;
-var testResult = Array.prototype.map.call(Math, callbackfn);
+ Math.length = 1;
+ Math[0] = 1;
+ var testResult = Array.prototype.map.call(Math, callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-1-11.js b/test/built-ins/Array/prototype/map/15.4.4.19-1-11.js
index 485851119..bf14fa9a5 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-1-11.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-1-11.js
@@ -7,14 +7,14 @@ es5id: 15.4.4.19-1-11
description: Array.prototype.map - applied to Date object
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof Date;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof Date;
+ }
-var obj = new Date();
-obj.length = 1;
-obj[0] = 1;
+ var obj = new Date();
+ obj.length = 1;
+ obj[0] = 1;
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-1-12.js b/test/built-ins/Array/prototype/map/15.4.4.19-1-12.js
index ed40782e8..ff7c0430c 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-1-12.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-1-12.js
@@ -7,14 +7,14 @@ es5id: 15.4.4.19-1-12
description: Array.prototype.map - applied to RegExp object
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof RegExp;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof RegExp;
+ }
-var obj = new RegExp();
-obj.length = 1;
-obj[0] = 1;
+ var obj = new RegExp();
+ obj.length = 1;
+ obj[0] = 1;
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-1-13.js b/test/built-ins/Array/prototype/map/15.4.4.19-1-13.js
index a17d877bd..72f36faed 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-1-13.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-1-13.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.19-1-13
description: Array.prototype.map - applied to the JSON object
---*/
-function callbackfn(val, idx, obj) {
- return ('[object JSON]' === Object.prototype.toString.call(obj));
-}
+ function callbackfn(val, idx, obj) {
+ return ('[object JSON]' === Object.prototype.toString.call(obj));
+ }
-JSON.length = 1;
-JSON[0] = 1;
-var testResult = Array.prototype.map.call(JSON, callbackfn);
+ JSON.length = 1;
+ JSON[0] = 1;
+ var testResult = Array.prototype.map.call(JSON, callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-1-14.js b/test/built-ins/Array/prototype/map/15.4.4.19-1-14.js
index 2fc430d6d..0beb4afa9 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-1-14.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-1-14.js
@@ -7,14 +7,14 @@ es5id: 15.4.4.19-1-14
description: Array.prototype.map - applied to Error object
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof Error;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof Error;
+ }
-var obj = new Error();
-obj.length = 1;
-obj[0] = 1;
+ var obj = new Error();
+ obj.length = 1;
+ obj[0] = 1;
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-1-15.js b/test/built-ins/Array/prototype/map/15.4.4.19-1-15.js
index a8774bf2f..2dd146e2a 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-1-15.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-1-15.js
@@ -7,14 +7,14 @@ es5id: 15.4.4.19-1-15
description: Array.prototype.map - applied to the Arguments object
---*/
-function callbackfn(val, idx, obj) {
- return ('[object Arguments]' === Object.prototype.toString.call(obj));
-}
+ function callbackfn(val, idx, obj) {
+ return ('[object Arguments]' === Object.prototype.toString.call(obj));
+ }
-var obj = (function() {
- return arguments;
-}("a", "b"));
+ var obj = (function () {
+ return arguments;
+ }("a", "b"));
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult[1], true, 'testResult[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-1-2.js b/test/built-ins/Array/prototype/map/15.4.4.19-1-2.js
index 864d017a0..45316ee3e 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-1-2.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-1-2.js
@@ -9,5 +9,5 @@ description: Array.prototype.map - applied to null
assert.throws(TypeError, function() {
- Array.prototype.map.call(null); // TypeError is thrown if value is null
+ Array.prototype.map.call(null); // TypeError is thrown if value is null
});
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-1-3.js b/test/built-ins/Array/prototype/map/15.4.4.19-1-3.js
index 3566c0ee4..94d84f8f9 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-1-3.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-1-3.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.19-1-3
description: Array.prototype.map - applied to boolean primitive
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof Boolean;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof Boolean;
+ }
-Boolean.prototype[0] = true;
-Boolean.prototype.length = 1;
+ Boolean.prototype[0] = true;
+ Boolean.prototype.length = 1;
-var testResult = Array.prototype.map.call(false, callbackfn);
+ var testResult = Array.prototype.map.call(false, callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-1-4.js b/test/built-ins/Array/prototype/map/15.4.4.19-1-4.js
index 82e9e614e..0fd3c3f00 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-1-4.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-1-4.js
@@ -7,16 +7,16 @@ es5id: 15.4.4.19-1-4
description: Array.prototype.map - applied to Boolean object
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof Boolean;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof Boolean;
+ }
-var obj = new Boolean(true);
-obj.length = 2;
-obj[0] = 11;
-obj[1] = 12;
+ var obj = new Boolean(true);
+ obj.length = 2;
+ obj[0] = 11;
+ obj[1] = 12;
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
assert.sameValue(testResult[1], true, 'testResult[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-1-5.js b/test/built-ins/Array/prototype/map/15.4.4.19-1-5.js
index 6a04e9177..15ef1ec6d 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-1-5.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-1-5.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.19-1-5
description: Array.prototype.map - applied to number primitive
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof Number;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof Number;
+ }
-Number.prototype[0] = 1;
-Number.prototype.length = 1;
+ Number.prototype[0] = 1;
+ Number.prototype.length = 1;
-var testResult = Array.prototype.map.call(2.5, callbackfn);
+ var testResult = Array.prototype.map.call(2.5, callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-1-6.js b/test/built-ins/Array/prototype/map/15.4.4.19-1-6.js
index ac9c03bca..e27b6cabb 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-1-6.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-1-6.js
@@ -7,16 +7,16 @@ es5id: 15.4.4.19-1-6
description: Array.prototype.map - applied to Number object
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof Number;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof Number;
+ }
-var obj = new Number(-128);
-obj.length = 2;
-obj[0] = 11;
-obj[1] = 12;
+ var obj = new Number(-128);
+ obj.length = 2;
+ obj[0] = 11;
+ obj[1] = 12;
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
assert.sameValue(testResult[1], true, 'testResult[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-1-7.js b/test/built-ins/Array/prototype/map/15.4.4.19-1-7.js
index 402368ebd..ca3f32049 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-1-7.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-1-7.js
@@ -7,11 +7,11 @@ es5id: 15.4.4.19-1-7
description: Array.prototype.map - applied to string primitive
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof String;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof String;
+ }
-var testResult = Array.prototype.map.call("abc", callbackfn);
+ var testResult = Array.prototype.map.call("abc", callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
assert.sameValue(testResult[1], true, 'testResult[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-1-8.js b/test/built-ins/Array/prototype/map/15.4.4.19-1-8.js
index 93ca61e4f..aef3b6dcc 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-1-8.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-1-8.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.19-1-8
description: Array.prototype.map - applied to String object
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof String;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof String;
+ }
-var obj = new String("abc");
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var obj = new String("abc");
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
assert.sameValue(testResult[1], true, 'testResult[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-1-9.js b/test/built-ins/Array/prototype/map/15.4.4.19-1-9.js
index 82f5918aa..73438cef4 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-1-9.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-1-9.js
@@ -7,17 +7,17 @@ es5id: 15.4.4.19-1-9
description: Array.prototype.map - applied to Function object
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof Function;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof Function;
+ }
-var obj = function(a, b) {
- return a + b;
-};
-obj[0] = 11;
-obj[1] = 9;
+ var obj = function (a, b) {
+ return a + b;
+ };
+ obj[0] = 11;
+ obj[1] = 9;
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
assert.sameValue(testResult[1], true, 'testResult[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-1.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-1.js
index 9e89b6d85..19e77252c 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-2-1.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-1.js
@@ -9,17 +9,17 @@ description: >
is an own data property
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: 2
-};
+ var obj = {
+ 0: 12,
+ 1: 11,
+ 2: 9,
+ length: 2
+ };
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult.length, 2, 'testResult.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-10.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-10.js
index 9a74b1e09..431968e00 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-2-10.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-10.js
@@ -9,27 +9,27 @@ description: >
inherited accessor property
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var proto = {};
+ var proto = {};
-Object.defineProperty(proto, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
+ var child = new Con();
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
-var testResult = Array.prototype.map.call(child, callbackfn);
+ var testResult = Array.prototype.map.call(child, callbackfn);
assert.sameValue(testResult.length, 2, 'testResult.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-11.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-11.js
index c026c6971..c0766d9bc 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-2-11.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-11.js
@@ -9,19 +9,19 @@ description: >
is an own accessor property without a get function
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var obj = {
- 0: 11,
- 1: 12
-};
-Object.defineProperty(obj, "length", {
- set: function() {},
- configurable: true
-});
+ var obj = {
+ 0: 11,
+ 1: 12
+ };
+ Object.defineProperty(obj, "length", {
+ set: function () { },
+ configurable: true
+ });
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult.length, 0, 'testResult.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-12.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-12.js
index 93d0ceada..2aebd50d9 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-2-12.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-12.js
@@ -10,26 +10,23 @@ description: >
overrides an inherited accessor property
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-Object.defineProperty(Object.prototype, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(Object.prototype, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-var obj = {
- 0: 12,
- 1: 11
-};
-Object.defineProperty(obj, "length", {
- set: function() {},
- configurable: true
-});
+ var obj = { 0: 12, 1: 11 };
+ Object.defineProperty(obj, "length", {
+ set: function () { },
+ configurable: true
+ });
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult.length, 0, 'testResult.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-13.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-13.js
index 756b3754f..6c59cd21a 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-2-13.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-13.js
@@ -9,23 +9,23 @@ description: >
'length' is inherited accessor property without a get function
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var proto = {};
-Object.defineProperty(proto, "length", {
- set: function() {},
- configurable: true
-});
+ var proto = {};
+ Object.defineProperty(proto, "length", {
+ set: function () { },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child[0] = 11;
-child[1] = 12;
+ var child = new Con();
+ child[0] = 11;
+ child[1] = 12;
-var testResult = Array.prototype.map.call(child, callbackfn);
+ var testResult = Array.prototype.map.call(child, callbackfn);
assert.sameValue(testResult.length, 0, 'testResult.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-14.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-14.js
index 6b3f22609..430de1525 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-2-14.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-14.js
@@ -9,15 +9,12 @@ description: >
'length' property doesn't exist
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult.length, 0, 'testResult.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-17.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-17.js
index 28607e1b6..04fd19b43 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-2-17.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-17.js
@@ -9,14 +9,14 @@ description: >
implements its own property get method
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var func = function(a, b) {
- return Array.prototype.map.call(arguments, callbackfn);
-};
+ var func = function (a, b) {
+ return Array.prototype.map.call(arguments, callbackfn);
+ };
-var testResult = func(12, 11);
+ var testResult = func(12, 11);
assert.sameValue(testResult.length, 2, 'testResult.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-18.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-18.js
index 16f307c0f..524012db2 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-2-18.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-18.js
@@ -9,13 +9,13 @@ description: >
its own property get method
---*/
-function callbackfn(val, idx, obj) {
- return parseInt(val, 10) > 1;
-}
+ function callbackfn(val, idx, obj) {
+ return parseInt(val, 10) > 1;
+ }
-var str = new String("432");
+ var str = new String("432");
-String.prototype[3] = "1";
-var testResult = Array.prototype.map.call(str, callbackfn);
+ String.prototype[3] = "1";
+ var testResult = Array.prototype.map.call(str, callbackfn);
assert.sameValue(testResult.length, 3, 'testResult.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-19.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-19.js
index c2dbc89e3..60be78877 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-2-19.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-19.js
@@ -9,17 +9,17 @@ description: >
its own property get method
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var fun = function(a, b) {
- return a + b;
-};
-fun[0] = 12;
-fun[1] = 11;
-fun[2] = 9;
+ var fun = function (a, b) {
+ return a + b;
+ };
+ fun[0] = 12;
+ fun[1] = 11;
+ fun[2] = 9;
-var testResult = Array.prototype.map.call(fun, callbackfn);
+ var testResult = Array.prototype.map.call(fun, callbackfn);
assert.sameValue(testResult.length, 2, 'testResult.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-2.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-2.js
index 46aa6c4fb..028b0c6e0 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-2-2.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-2.js
@@ -9,10 +9,10 @@ description: >
Array
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var testResult = [12, 11].map(callbackfn);
+ var testResult = [12, 11].map(callbackfn);
assert.sameValue(testResult.length, 2, 'testResult.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-3.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-3.js
index 4c6c6b18d..c6170291e 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-2-3.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-3.js
@@ -9,23 +9,21 @@ description: >
own data property that overrides an inherited data property
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var proto = {
- length: 3
-};
+ var proto = { length: 3 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child.length = 2;
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
+ var child = new Con();
+ child.length = 2;
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
-var testResult = Array.prototype.map.call(child, callbackfn);
+ var testResult = Array.prototype.map.call(child, callbackfn);
assert.sameValue(testResult.length, 2, 'testResult.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-4.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-4.js
index eab5b1cb3..3eff1cd3b 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-2-4.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-4.js
@@ -9,13 +9,13 @@ description: >
overrides an inherited data property on an Array
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
-var arrProtoLen;
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
+ var arrProtoLen;
-arrProtoLen = Array.prototype.length;
-Array.prototype.length = 0;
-var testResult = [12, 11].map(callbackfn);
+ arrProtoLen = Array.prototype.length;
+ Array.prototype.length = 0;
+ var testResult = [12, 11].map(callbackfn);
assert.sameValue(testResult.length, 2, 'testResult.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-5.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-5.js
index a636e0655..144505d75 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-2-5.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-5.js
@@ -9,31 +9,31 @@ description: >
own data property that overrides an inherited accessor property
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
-
-var proto = {};
-
-Object.defineProperty(proto, "length", {
- get: function() {
- return 3;
- },
- configurable: true
-});
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-Object.defineProperty(child, "length", {
- value: 2,
- configurable: true
-});
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
-
-var testResult = Array.prototype.map.call(child, callbackfn);
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
+
+ var proto = {};
+
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 3;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ Object.defineProperty(child, "length", {
+ value: 2,
+ configurable: true
+ });
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
+
+ var testResult = Array.prototype.map.call(child, callbackfn);
assert.sameValue(testResult.length, 2, 'testResult.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-6.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-6.js
index 1cd5e51a2..a08231572 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-2-6.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-6.js
@@ -9,22 +9,20 @@ description: >
inherited data property
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var proto = {
- length: 2
-};
+ var proto = { length: 2 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
+ var child = new Con();
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
-var testResult = Array.prototype.map.call(child, callbackfn);
+ var testResult = Array.prototype.map.call(child, callbackfn);
assert.sameValue(testResult.length, 2, 'testResult.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-7.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-7.js
index 6853ad8d3..da80f49cb 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-2-7.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-7.js
@@ -9,23 +9,23 @@ description: >
own accessor property
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var obj = {};
+ var obj = {};
-Object.defineProperty(obj, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-obj[0] = 12;
-obj[1] = 11;
-obj[2] = 9;
+ obj[0] = 12;
+ obj[1] = 11;
+ obj[2] = 9;
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult.length, 2, 'testResult.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-8.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-8.js
index abbf6ab28..45029cd39 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-2-8.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-8.js
@@ -9,30 +9,28 @@ description: >
own accessor property that overrides an inherited data property
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var proto = {
- length: 3
-};
+ var proto = { length: 3 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
+ var child = new Con();
-Object.defineProperty(child, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(child, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
-var testResult = Array.prototype.map.call(child, callbackfn);
+ var testResult = Array.prototype.map.call(child, callbackfn);
assert.sameValue(testResult.length, 2, 'testResult.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-9.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-9.js
index 043d20e1b..f587d696f 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-2-9.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-9.js
@@ -10,35 +10,35 @@ description: >
property
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var proto = {};
+ var proto = {};
-Object.defineProperty(proto, "length", {
- get: function() {
- return 3;
- },
- configurable: true
-});
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 3;
+ },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
+ var child = new Con();
-Object.defineProperty(child, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(child, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
-var testResult = Array.prototype.map.call(child, callbackfn);
+ var testResult = Array.prototype.map.call(child, callbackfn);
assert.sameValue(testResult.length, 2, 'testResult.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-1.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-1.js
index 364277255..4318f25ad 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-1.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-1.js
@@ -7,14 +7,12 @@ es5id: 15.4.4.19-3-1
description: Array.prototype.map - value of 'length' is undefined
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var obj = {
- length: undefined
-};
+ var obj = { length: undefined };
-var newArr = Array.prototype.map.call(obj, callbackfn);
+ var newArr = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-10.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-10.js
index ec607589a..513b39734 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-10.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-10.js
@@ -7,15 +7,12 @@ es5id: 15.4.4.19-3-10
description: Array.prototype.map - value of 'length' is a number (value is NaN)
---*/
-function callbackfn(val, idx, obj) {
- return val < 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val < 10;
+ }
-var obj = {
- 0: 9,
- length: NaN
-};
+ var obj = { 0: 9, length: NaN };
-var newArr = Array.prototype.map.call(obj, callbackfn);
+ var newArr = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-11.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-11.js
index 78210aa74..aaa124406 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-11.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-11.js
@@ -9,17 +9,12 @@ description: >
number
---*/
-function callbackfn(val, idx, obj) {
- return val < 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val < 10;
+ }
-var obj = {
- 0: 11,
- 1: 9,
- 2: 12,
- length: "2"
-};
+ var obj = { 0: 11, 1: 9, 2: 12, length: "2" };
-var newArr = Array.prototype.map.call(obj, callbackfn);
+ var newArr = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-12.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-12.js
index a355dc5b2..ca5eb14e6 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-12.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-12.js
@@ -9,17 +9,12 @@ description: >
number
---*/
-function callbackfn(val, idx, obj) {
- return val < 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val < 10;
+ }
-var obj = {
- 0: 11,
- 1: 9,
- 2: 12,
- length: "-4294967294"
-};
+ var obj = { 0: 11, 1: 9, 2: 12, length: "-4294967294" };
-var newArr = Array.prototype.map.call(obj, callbackfn);
+ var newArr = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-13.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-13.js
index 704ea0f16..5c0236679 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-13.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-13.js
@@ -9,17 +9,12 @@ description: >
convert to number primitive (value is a decimal number)
---*/
-function callbackfn(val, idx, obj) {
- return val < 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val < 10;
+ }
-var obj = {
- 0: 11,
- 1: 9,
- 2: 12,
- length: "2.5"
-};
+ var obj = { 0: 11, 1: 9, 2: 12, length: "2.5" };
-var newArr = Array.prototype.map.call(obj, callbackfn);
+ var newArr = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-14.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-14.js
index 1b57ec367..7d77ddf00 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-14.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-14.js
@@ -7,14 +7,11 @@ es5id: 15.4.4.19-3-14
description: Array.prototype.map - 'length' is a string containing Infinity
---*/
-function callbackfn(val, idx, obj) {
- return val < 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val < 10;
+ }
-var obj = {
- 0: 9,
- length: "Infinity"
-};
+ var obj = { 0: 9, length: "Infinity" };
assert.throws(RangeError, function() {
- Array.prototype.map.call(obj, callbackfn);
+ Array.prototype.map.call(obj, callbackfn);
});
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-15.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-15.js
index 100952bcd..180be9ffb 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-15.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-15.js
@@ -9,17 +9,12 @@ description: >
exponential number
---*/
-function callbackfn(val, idx, obj) {
- return val < 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val < 10;
+ }
-var obj = {
- 0: 11,
- 1: 9,
- 2: 12,
- length: "2E0"
-};
+ var obj = { 0: 11, 1: 9, 2: 12, length: "2E0" };
-var newArr = Array.prototype.map.call(obj, callbackfn);
+ var newArr = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-16.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-16.js
index d227a73ec..4190366af 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-16.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-16.js
@@ -7,17 +7,12 @@ es5id: 15.4.4.19-3-16
description: Array.prototype.map - 'length' is a string containing a hex number
---*/
-function callbackfn(val, idx, obj) {
- return val < 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val < 10;
+ }
-var obj = {
- 0: 11,
- 1: 9,
- 2: 12,
- length: "0x0002"
-};
+ var obj = { 0: 11, 1: 9, 2: 12, length: "0x0002" };
-var newArr = Array.prototype.map.call(obj, callbackfn);
+ var newArr = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-17.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-17.js
index 5c7446c41..bf7622835 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-17.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-17.js
@@ -9,17 +9,12 @@ description: >
number with leading zeros
---*/
-function callbackfn(val, idx, obj) {
- return val < 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val < 10;
+ }
-var obj = {
- 0: 11,
- 1: 9,
- 2: 12,
- length: "0002.00"
-};
+ var obj = { 0: 11, 1: 9, 2: 12, length: "0002.00" };
-var newArr = Array.prototype.map.call(obj, callbackfn);
+ var newArr = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-18.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-18.js
index bbd1b8b5a..887e79992 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-18.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-18.js
@@ -9,14 +9,12 @@ description: >
convert to a number
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var obj = {
- length: "asdf!_"
-};
+ var obj = { length: "asdf!_" };
-var newArr = Array.prototype.map.call(obj, callbackfn);
+ var newArr = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-19.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-19.js
index 2f5e2b414..4a181897f 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-19.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-19.js
@@ -9,21 +9,21 @@ description: >
own toString method
---*/
-function callbackfn(val, idx, obj) {
- return val < 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val < 10;
+ }
-var obj = {
- 0: 11,
- 1: 9,
+ var obj = {
+ 0: 11,
+ 1: 9,
- length: {
- toString: function() {
- return '2';
- }
- }
-};
+ length: {
+ toString: function () {
+ return '2';
+ }
+ }
+ };
-var newArr = Array.prototype.map.call(obj, callbackfn);
+ var newArr = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-2.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-2.js
index 0dae4ae48..dc6edd021 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-2.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-2.js
@@ -9,15 +9,12 @@ description: >
(length overridden to true(type conversion))
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var obj = {
- 0: 11,
- length: true
-};
+ var obj = { 0: 11, length: true };
-var newArr = Array.prototype.map.call(obj, callbackfn);
+ var newArr = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-20.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-20.js
index bc431d8a7..e98040385 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-20.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-20.js
@@ -9,21 +9,21 @@ description: >
own valueOf method
---*/
-function callbackfn(val, idx, obj) {
- return val < 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val < 10;
+ }
-var obj = {
- 0: 11,
- 1: 9,
+ var obj = {
+ 0: 11,
+ 1: 9,
- length: {
- valueOf: function() {
- return 2;
- }
- }
-};
+ length: {
+ valueOf: function () {
+ return 2;
+ }
+ }
+ };
-var newArr = Array.prototype.map.call(obj, callbackfn);
+ var newArr = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-21.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-21.js
index fb22c7355..d1df6df8e 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-21.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-21.js
@@ -10,29 +10,29 @@ description: >
returns a string
---*/
-function callbackfn(val, idx, obj) {
- return val < 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val < 10;
+ }
-var firstStepOccured = false;
-var secondStepOccured = false;
-var obj = {
- 0: 11,
- 1: 9,
+ var firstStepOccured = false;
+ var secondStepOccured = false;
+ var obj = {
+ 0: 11,
+ 1: 9,
- length: {
- valueOf: function() {
- firstStepOccured = true;
- return {};
- },
- toString: function() {
- secondStepOccured = true;
- return '2';
- }
- }
-};
+ length: {
+ valueOf: function () {
+ firstStepOccured = true;
+ return {};
+ },
+ toString: function () {
+ secondStepOccured = true;
+ return '2';
+ }
+ }
+ };
-var newArr = Array.prototype.map.call(obj, callbackfn);
+ var newArr = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
assert(firstStepOccured, 'firstStepOccured !== true');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-22.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-22.js
index a7825b1c1..3365cf226 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-22.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-22.js
@@ -10,23 +10,23 @@ description: >
primitive values
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var obj = {
- 1: 11,
- 2: 12,
+ var obj = {
+ 1: 11,
+ 2: 12,
- length: {
- valueOf: function() {
- return {};
- },
- toString: function() {
- return {};
- }
- }
-};
+ length: {
+ valueOf: function () {
+ return {};
+ },
+ toString: function () {
+ return {};
+ }
+ }
+ };
assert.throws(TypeError, function() {
- Array.prototype.map.call(obj, callbackfn);
+ Array.prototype.map.call(obj, callbackfn);
});
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-23.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-23.js
index 44269d081..69eb09631 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-23.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-23.js
@@ -9,37 +9,37 @@ description: >
an object with an own toString and inherited valueOf methods
---*/
-function callbackfn(val, idx, obj) {
- return val < 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val < 10;
+ }
-var valueOfAccessed = false;
-var toStringAccessed = false;
+ var valueOfAccessed = false;
+ var toStringAccessed = false;
-var proto = {
- valueOf: function() {
- valueOfAccessed = true;
- return 2;
- }
-};
+ var proto = {
+ valueOf: function () {
+ valueOfAccessed = true;
+ return 2;
+ }
+ };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
+ var child = new Con();
-child.toString = function() {
- toStringAccessed = true;
- return '1';
-};
+ child.toString = function () {
+ toStringAccessed = true;
+ return '1';
+ };
-var obj = {
- 0: 11,
- 1: 9,
- length: child
-};
+ var obj = {
+ 0: 11,
+ 1: 9,
+ length: child
+ };
-var newArr = Array.prototype.map.call(obj, callbackfn);
+ var newArr = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
assert(valueOfAccessed, 'valueOfAccessed !== true');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-24.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-24.js
index 870a5631c..829ee0697 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-24.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-24.js
@@ -9,16 +9,16 @@ description: >
ensure truncation occurs in the proper direction
---*/
-function callbackfn(val, idx, obj) {
- return val < 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val < 10;
+ }
-var obj = {
- 0: 11,
- 1: 9,
- length: 2.685
-};
+ var obj = {
+ 0: 11,
+ 1: 9,
+ length: 2.685
+ };
-var newArr = Array.prototype.map.call(obj, callbackfn);
+ var newArr = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-25.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-25.js
index 3c7138f67..07ed728fc 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-25.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-25.js
@@ -7,16 +7,16 @@ es5id: 15.4.4.19-3-25
description: Array.prototype.map - value of 'length' is a negative non-integer
---*/
-function callbackfn(val, idx, obj) {
- return val < 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val < 10;
+ }
-var obj = {
- 0: 11,
- 1: 9,
- length: -4294967294.5
-};
+ var obj = {
+ 0: 11,
+ 1: 9,
+ length: -4294967294.5
+ };
-var newArr = Array.prototype.map.call(obj, callbackfn);
+ var newArr = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-28.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-28.js
index b4c3e3b31..4c0c98486 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-28.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-28.js
@@ -7,14 +7,14 @@ es5id: 15.4.4.19-3-28
description: Array.prototype.map - value of 'length' is boundary value (2^32)
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var obj = {
- 0: 12,
- length: 4294967296
-};
+ var obj = {
+ 0: 12,
+ length: 4294967296
+ };
assert.throws(RangeError, function() {
- var newArr = Array.prototype.map.call(obj, callbackfn);
+ var newArr = Array.prototype.map.call(obj, callbackfn);
});
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-29.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-29.js
index 613ab9c8e..647d3c24d 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-29.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-29.js
@@ -9,15 +9,15 @@ description: >
1)
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var obj = {
- 0: 11,
- 1: 9,
- length: 4294967297
-};
+ var obj = {
+ 0: 11,
+ 1: 9,
+ length: 4294967297
+ };
assert.throws(RangeError, function() {
- var newArr = Array.prototype.map.call(obj, callbackfn);
+ var newArr = Array.prototype.map.call(obj, callbackfn);
});
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-3.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-3.js
index 096a0c323..bc926871d 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-3.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-3.js
@@ -7,15 +7,12 @@ es5id: 15.4.4.19-3-3
description: Array.prototype.map - value of 'length' is a number (value is 0)
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var obj = {
- 0: 11,
- length: 0
-};
+ var obj = { 0: 11, length: 0 };
-var newArr = Array.prototype.map.call(obj, callbackfn);
+ var newArr = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-4.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-4.js
index c3d6fbc9c..d0a34ea14 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-4.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-4.js
@@ -7,15 +7,12 @@ es5id: 15.4.4.19-3-4
description: Array.prototype.map - value of 'length' is a number (value is +0)
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var obj = {
- 0: 11,
- length: +0
-};
+ var obj = { 0: 11, length: +0 };
-var newArr = Array.prototype.map.call(obj, callbackfn);
+ var newArr = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-5.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-5.js
index d467cfe17..d9409340f 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-5.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-5.js
@@ -7,15 +7,12 @@ es5id: 15.4.4.19-3-5
description: Array.prototype.map - value of 'length' is a number (value is -0)
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var obj = {
- 0: 11,
- length: -0
-};
+ var obj = { 0: 11, length: -0 };
-var newArr = Array.prototype.map.call(obj, callbackfn);
+ var newArr = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-6.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-6.js
index 794464e22..6efbf8d0b 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-6.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-6.js
@@ -9,17 +9,12 @@ description: >
number
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var obj = {
- 0: 10,
- 1: 12,
- 2: 9,
- length: 2
-};
+ var obj = { 0: 10, 1: 12, 2: 9, length: 2 };
-var newArr = Array.prototype.map.call(obj, callbackfn);
+ var newArr = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-7.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-7.js
index a5215ce4f..c4b0f1bd4 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-7.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-7.js
@@ -9,17 +9,12 @@ description: >
number
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var obj = {
- 0: 10,
- 1: 12,
- 2: 9,
- length: -4294967294
-};
+ var obj = { 0: 10, 1: 12, 2: 9, length: -4294967294 };
-var newArr = Array.prototype.map.call(obj, callbackfn);
+ var newArr = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-8.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-8.js
index 3677932af..626578477 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-8.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-8.js
@@ -9,14 +9,11 @@ description: >
Infinity)
---*/
-function callbackfn(val, idx, obj) {
- return val < 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val < 10;
+ }
-var obj = {
- 0: 9,
- length: Infinity
-};
+ var obj = { 0: 9, length: Infinity };
assert.throws(RangeError, function() {
- Array.prototype.map.call(obj, callbackfn);
+ Array.prototype.map.call(obj, callbackfn);
});
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-9.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-9.js
index a97e6065e..be3cdf24c 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-9.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-9.js
@@ -9,15 +9,12 @@ description: >
-Infinity)
---*/
-function callbackfn(val, idx, obj) {
- return val < 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val < 10;
+ }
-var obj = {
- 0: 9,
- length: -Infinity
-};
+ var obj = { 0: 9, length: -Infinity };
-var newArr = Array.prototype.map.call(obj, callbackfn);
+ var newArr = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-4-1.js b/test/built-ins/Array/prototype/map/15.4.4.19-4-1.js
index fc826857a..417b73aba 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-4-1.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-4-1.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.19-4-1
description: Array.prototype.map throws TypeError if callbackfn is undefined
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.map();
+ arr.map();
});
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-4-10.js b/test/built-ins/Array/prototype/map/15.4.4.19-4-10.js
index 74bc39127..0b449aa21 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-4-10.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-4-10.js
@@ -9,18 +9,15 @@ description: >
thrown by step 2
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-Object.defineProperty(obj, "length", {
- get: function() {
- throw new Test262Error();
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ throw new Test262Error();
+ },
+ configurable: true
+ });
assert.throws(Test262Error, function() {
- Array.prototype.map.call(obj, undefined);
+ Array.prototype.map.call(obj, undefined);
});
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-4-11.js b/test/built-ins/Array/prototype/map/15.4.4.19-4-11.js
index 5723ab3ed..2c9041b64 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-4-11.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-4-11.js
@@ -9,22 +9,19 @@ description: >
thrown by step 3
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-Object.defineProperty(obj, "length", {
- get: function() {
- return {
- toString: function() {
- throw new Test262Error();
- }
- };
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ toString: function () {
+ throw new Test262Error();
+ }
+ };
+ },
+ configurable: true
+ });
assert.throws(Test262Error, function() {
- Array.prototype.map.call(obj, undefined);
+ Array.prototype.map.call(obj, undefined);
});
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-4-12.js b/test/built-ins/Array/prototype/map/15.4.4.19-4-12.js
index 45d301f5f..68bc27855 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-4-12.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-4-12.js
@@ -7,11 +7,11 @@ es5id: 15.4.4.19-4-12
description: Array.prototype.map - 'callbackfn' is a function
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var testResult = [11, 9].map(callbackfn);
+ var testResult = [11, 9].map(callbackfn);
assert.sameValue(testResult.length, 2, 'testResult.length');
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-4-15.js b/test/built-ins/Array/prototype/map/15.4.4.19-4-15.js
index 3df2d5ab4..2d440b206 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-4-15.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-4-15.js
@@ -9,28 +9,26 @@ description: >
passing undefined for callbackfn
---*/
-var obj = {
- 10: 10
-};
-var lengthAccessed = false;
-var loopAccessed = false;
+ var obj = { 10: 10 };
+ var lengthAccessed = false;
+ var loopAccessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- lengthAccessed = true;
- return 20;
- },
- configurable: true
-});
-Object.defineProperty(obj, "0", {
- get: function() {
- loopAccessed = true;
- return 10;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ lengthAccessed = true;
+ return 20;
+ },
+ configurable: true
+ });
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ loopAccessed = true;
+ return 10;
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.map.call(obj);
+ Array.prototype.map.call(obj);
});
assert(lengthAccessed, 'lengthAccessed !== true');
assert.sameValue(loopAccessed, false, 'loopAccessed');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-4-2.js b/test/built-ins/Array/prototype/map/15.4.4.19-4-2.js
index 1da77da81..b23921071 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-4-2.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-4-2.js
@@ -9,7 +9,7 @@ description: >
unreferenced
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(ReferenceError, function() {
- arr.map(foo);
+ arr.map(foo);
});
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-4-3.js b/test/built-ins/Array/prototype/map/15.4.4.19-4-3.js
index d6e5f8d34..2dd6ecef6 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-4-3.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-4-3.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.19-4-3
description: Array.prototype.map throws TypeError if callbackfn is null
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.map(null);
+ arr.map(null);
});
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-4-4.js b/test/built-ins/Array/prototype/map/15.4.4.19-4-4.js
index fe8918bfc..fe5eb72aa 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-4-4.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-4-4.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.19-4-4
description: Array.prototype.map throws TypeError if callbackfn is boolean
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.map(true);
+ arr.map(true);
});
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-4-5.js b/test/built-ins/Array/prototype/map/15.4.4.19-4-5.js
index b6c230364..0c7a6d5e3 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-4-5.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-4-5.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.19-4-5
description: Array.prototype.map throws TypeError if callbackfn is number
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.map(5);
+ arr.map(5);
});
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-4-6.js b/test/built-ins/Array/prototype/map/15.4.4.19-4-6.js
index df6ccdb90..bebc2b020 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-4-6.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-4-6.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.19-4-6
description: Array.prototype.map throws TypeError if callbackfn is string
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.map("abc");
+ arr.map("abc");
});
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-4-7.js b/test/built-ins/Array/prototype/map/15.4.4.19-4-7.js
index d795447cb..a52fc2c2b 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-4-7.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-4-7.js
@@ -9,7 +9,7 @@ description: >
without Call internal method
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.map(new Object());
+ arr.map(new Object());
});
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-4-8.js b/test/built-ins/Array/prototype/map/15.4.4.19-4-8.js
index f7914a941..d9126d50a 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-4-8.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-4-8.js
@@ -9,21 +9,18 @@ description: >
when an exception occurs
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-var accessed = false;
+ var accessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- accessed = true;
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ accessed = true;
+ return 2;
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.map.call(obj, null);
+ Array.prototype.map.call(obj, null);
});
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-4-9.js b/test/built-ins/Array/prototype/map/15.4.4.19-4-9.js
index 03ecedcc6..5a28ad017 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-4-9.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-4-9.js
@@ -9,25 +9,22 @@ description: >
when an exception occurs
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-var accessed = false;
+ var accessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- return {
- toString: function() {
- accessed = true;
- return "2";
- }
- };
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ toString: function () {
+ accessed = true;
+ return "2";
+ }
+ };
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.map.call(obj, null);
+ Array.prototype.map.call(obj, null);
});
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-1-s.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-1-s.js
index a2e997d8b..913202845 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-5-1-s.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-1-s.js
@@ -8,14 +8,14 @@ description: Array.prototype.map - thisArg not passed to strict callbackfn
flags: [noStrict]
---*/
-var innerThisCorrect = false;
+ var innerThisCorrect = false;
-function callbackfn(val, idx, obj) {
- "use strict";
- innerThisCorrect = this === undefined;
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ "use strict";
+ innerThisCorrect = this===undefined;
+ return true;
+ }
-[1].map(callbackfn);
+ [1].map(callbackfn);
assert(innerThisCorrect, 'innerThisCorrect !== true');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-1.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-1.js
index a2b7393a9..c9e19110c 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-5-1.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-1.js
@@ -8,17 +8,17 @@ description: Array.prototype.map - thisArg not passed
flags: [noStrict]
---*/
-this._15_4_4_19_5_1 = true;
+ this._15_4_4_19_5_1 = true;
(function() {
- var _15_4_4_19_5_1 = false;
+ var _15_4_4_19_5_1 = false;
- function callbackfn(val, idx, obj) {
- return this._15_4_4_19_5_1;
- }
- var srcArr = [1];
- var resArr = srcArr.map(callbackfn);
+ function callbackfn(val, idx, obj) {
+ return this._15_4_4_19_5_1;
+ }
+ var srcArr = [1];
+ var resArr = srcArr.map(callbackfn);
- assert.sameValue(resArr[0], true, 'resArr[0]');
+assert.sameValue(resArr[0], true, 'resArr[0]');
})();
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-10.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-10.js
index a2c4d150b..04fca72a6 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-5-10.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-10.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.19-5-10
description: Array.prototype.map - Array object can be used as thisArg
---*/
-var objArray = new Array(2);
+ var objArray = new Array(2);
-function callbackfn(val, idx, obj) {
- return this === objArray;
-}
+ function callbackfn(val, idx, obj) {
+ return this === objArray;
+ }
-var testResult = [11].map(callbackfn, objArray);
+ var testResult = [11].map(callbackfn, objArray);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-11.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-11.js
index 98cd84ad1..945db32b6 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-5-11.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-11.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.19-5-11
description: Array.prototype.map - String object can be used as thisArg
---*/
-var objString = new String();
+ var objString = new String();
-function callbackfn(val, idx, obj) {
- return this === objString;
-}
+ function callbackfn(val, idx, obj) {
+ return this === objString;
+ }
-var testResult = [11].map(callbackfn, objString);
+ var testResult = [11].map(callbackfn, objString);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-12.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-12.js
index 0fbcf8f7a..a6bbce103 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-5-12.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-12.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.19-5-12
description: Array.prototype.map - Boolean object can be used as thisArg
---*/
-var objBoolean = new Boolean();
+ var objBoolean = new Boolean();
-function callbackfn(val, idx, obj) {
- return this === objBoolean;
-}
+ function callbackfn(val, idx, obj) {
+ return this === objBoolean;
+ }
-var testResult = [11].map(callbackfn, objBoolean);
+ var testResult = [11].map(callbackfn, objBoolean);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-13.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-13.js
index a02c29a9e..23db7ce3a 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-5-13.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-13.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.19-5-13
description: Array.prototype.map - Number object can be used as thisArg
---*/
-var objNumber = new Number();
+ var objNumber = new Number();
-function callbackfn(val, idx, obj) {
- return this === objNumber;
-}
+ function callbackfn(val, idx, obj) {
+ return this === objNumber;
+ }
-var testResult = [11].map(callbackfn, objNumber);
+ var testResult = [11].map(callbackfn, objNumber);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-14.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-14.js
index 01a23927a..a845aa77a 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-5-14.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-14.js
@@ -7,10 +7,10 @@ es5id: 15.4.4.19-5-14
description: Array.prototype.map - the Math object can be used as thisArg
---*/
-function callbackfn(val, idx, obj) {
- return this === Math;
-}
+ function callbackfn(val, idx, obj) {
+ return this === Math;
+ }
-var testResult = [11].map(callbackfn, Math);
+ var testResult = [11].map(callbackfn, Math);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-15.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-15.js
index 9dd98f582..84e7c7b78 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-5-15.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-15.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.19-5-15
description: Array.prototype.map - Date object can be used as thisArg
---*/
-var objDate = new Date();
+ var objDate = new Date();
-function callbackfn(val, idx, obj) {
- return this === objDate;
-}
+ function callbackfn(val, idx, obj) {
+ return this === objDate;
+ }
-var testResult = [11].map(callbackfn, objDate);
+ var testResult = [11].map(callbackfn, objDate);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-16.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-16.js
index f34254d01..b7a738427 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-5-16.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-16.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.19-5-16
description: Array.prototype.map - RegExp object can be used as thisArg
---*/
-var objRegExp = new RegExp();
+ var objRegExp = new RegExp();
-function callbackfn(val, idx, obj) {
- return this === objRegExp;
-}
+ function callbackfn(val, idx, obj) {
+ return this === objRegExp;
+ }
-var testResult = [11].map(callbackfn, objRegExp);
+ var testResult = [11].map(callbackfn, objRegExp);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-17.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-17.js
index 42d67bbef..acc8b9d40 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-5-17.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-17.js
@@ -7,10 +7,10 @@ es5id: 15.4.4.19-5-17
description: Array.prototype.map - the JSON object can be used as thisArg
---*/
-function callbackfn(val, idx, obj) {
- return this === JSON;
-}
+ function callbackfn(val, idx, obj) {
+ return this === JSON;
+ }
-var testResult = [11].map(callbackfn, JSON);
+ var testResult = [11].map(callbackfn, JSON);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-18.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-18.js
index e3032b4f4..9b65b9c5b 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-5-18.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-18.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.19-5-18
description: Array.prototype.map - Error object can be used as thisArg
---*/
-var objError = new RangeError();
+ var objError = new RangeError();
-function callbackfn(val, idx, obj) {
- return this === objError;
-}
+ function callbackfn(val, idx, obj) {
+ return this === objError;
+ }
-var testResult = [11].map(callbackfn, objError);
+ var testResult = [11].map(callbackfn, objError);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-19.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-19.js
index c2740c110..2da89ea4f 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-5-19.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-19.js
@@ -7,16 +7,16 @@ es5id: 15.4.4.19-5-19
description: Array.prototype.map - the Arguments object can be used as thisArg
---*/
-var arg;
+ var arg;
-function callbackfn(val, idx, obj) {
- return this === arg;
-}
+ function callbackfn(val, idx, obj) {
+ return this === arg;
+ }
-arg = (function() {
- return arguments;
-}(1, 2, 3));
+ arg = (function () {
+ return arguments;
+ }(1, 2, 3));
-var testResult = [11].map(callbackfn, arg);
+ var testResult = [11].map(callbackfn, arg);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-2.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-2.js
index fdb667af1..6bbeebe52 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-5-2.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-2.js
@@ -7,16 +7,15 @@ es5id: 15.4.4.19-5-2
description: Array.prototype.map - thisArg is Object
---*/
-var res = false;
-var o = new Object();
-o.res = true;
+ var res = false;
+ var o = new Object();
+ o.res = true;
+ function callbackfn(val, idx, obj)
+ {
+ return this.res;
+ }
-function callbackfn(val, idx, obj)
-{
- return this.res;
-}
-
-var srcArr = [1];
-var resArr = srcArr.map(callbackfn, o);
+ var srcArr = [1];
+ var resArr = srcArr.map(callbackfn,o);
assert.sameValue(resArr[0], true, 'resArr[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-21.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-21.js
index 0f105c52c..f101b1660 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-5-21.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-21.js
@@ -8,11 +8,10 @@ description: Array.prototype.map - the global object can be used as thisArg
---*/
var global = this;
+ function callbackfn(val, idx, obj) {
+ return this === global;
+ }
-function callbackfn(val, idx, obj) {
- return this === global;
-}
-
-var testResult = [11].map(callbackfn, this);
+ var testResult = [11].map(callbackfn, this);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-22.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-22.js
index 1386aa749..9ef42b64e 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-5-22.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-22.js
@@ -7,10 +7,10 @@ es5id: 15.4.4.19-5-22
description: Array.prototype.map - boolean primitive can be used as thisArg
---*/
-function callbackfn(val, idx, obj) {
- return this.valueOf() === false;
-}
+ function callbackfn(val, idx, obj) {
+ return this.valueOf() === false;
+ }
-var testResult = [11].map(callbackfn, false);
+ var testResult = [11].map(callbackfn, false);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-23.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-23.js
index 8e7ee9835..29f99094a 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-5-23.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-23.js
@@ -7,10 +7,10 @@ es5id: 15.4.4.19-5-23
description: Array.prototype.map - number primitive can be used as thisArg
---*/
-function callbackfn(val, idx, obj) {
- return this.valueOf() === 101;
-}
+ function callbackfn(val, idx, obj) {
+ return this.valueOf() === 101;
+ }
-var testResult = [11].map(callbackfn, 101);
+ var testResult = [11].map(callbackfn, 101);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-24.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-24.js
index cb29707e6..292dca579 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-5-24.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-24.js
@@ -7,10 +7,10 @@ es5id: 15.4.4.19-5-24
description: Array.prototype.map - string primitive can be used as thisArg
---*/
-function callbackfn(val, idx, obj) {
- return this.valueOf() === "abc";
-}
+ function callbackfn(val, idx, obj) {
+ return this.valueOf() === "abc";
+ }
-var testResult = [11].map(callbackfn, "abc");
+ var testResult = [11].map(callbackfn, "abc");
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-3.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-3.js
index 97dd1e728..08e3e062b 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-5-3.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-3.js
@@ -7,16 +7,15 @@ es5id: 15.4.4.19-5-3
description: Array.prototype.map - thisArg is Array
---*/
-var res = false;
-var a = new Array();
-a.res = true;
+ var res = false;
+ var a = new Array();
+ a.res = true;
+ function callbackfn(val, idx, obj)
+ {
+ return this.res;
+ }
-function callbackfn(val, idx, obj)
-{
- return this.res;
-}
-
-var srcArr = [1];
-var resArr = srcArr.map(callbackfn, a);
+ var srcArr = [1];
+ var resArr = srcArr.map(callbackfn,a);
assert.sameValue(resArr[0], true, 'resArr[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-4.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-4.js
index 85ee3deec..36c4c36ff 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-5-4.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-4.js
@@ -9,18 +9,17 @@ description: >
template(prototype)
---*/
-var res = false;
+ var res = false;
+ function callbackfn(val, idx, obj)
+ {
+ return this.res;
+ }
-function callbackfn(val, idx, obj)
-{
- return this.res;
-}
+ function foo(){}
+ foo.prototype.res = true;
+ var f = new foo();
-function foo() {}
-foo.prototype.res = true;
-var f = new foo();
-
-var srcArr = [1];
-var resArr = srcArr.map(callbackfn, f);
+ var srcArr = [1];
+ var resArr = srcArr.map(callbackfn,f);
assert.sameValue(resArr[0], true, 'resArr[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-5.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-5.js
index 9568cc3d4..2e1168549 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-5-5.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-5.js
@@ -7,18 +7,17 @@ es5id: 15.4.4.19-5-5
description: Array.prototype.map - thisArg is object from object template
---*/
-var res = false;
+ var res = false;
+ function callbackfn(val, idx, obj)
+ {
+ return this.res;
+ }
-function callbackfn(val, idx, obj)
-{
- return this.res;
-}
+ function foo(){}
+ var f = new foo();
+ f.res = true;
-function foo() {}
-var f = new foo();
-f.res = true;
-
-var srcArr = [1];
-var resArr = srcArr.map(callbackfn, f);
+ var srcArr = [1];
+ var resArr = srcArr.map(callbackfn,f);
assert.sameValue(resArr[0], true, 'resArr[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-6.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-6.js
index 20366e19c..8950f71db 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-5-6.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-6.js
@@ -7,17 +7,16 @@ es5id: 15.4.4.19-5-6
description: Array.prototype.map - thisArg is function
---*/
-var res = false;
+ var res = false;
+ function callbackfn(val, idx, obj)
+ {
+ return this.res;
+ }
-function callbackfn(val, idx, obj)
-{
- return this.res;
-}
+ function foo(){}
+ foo.res = true;
-function foo() {}
-foo.res = true;
-
-var srcArr = [1];
-var resArr = srcArr.map(callbackfn, foo);
+ var srcArr = [1];
+ var resArr = srcArr.map(callbackfn,foo);
assert.sameValue(resArr[0], true, 'resArr[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-7.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-7.js
index 7f11fa676..7bd84eb59 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-5-7.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-7.js
@@ -7,10 +7,10 @@ es5id: 15.4.4.19-5-7
description: Array.prototype.map - built-in functions can be used as thisArg
---*/
-function callbackfn(val, idx, obj) {
- return this === eval;
-}
+ function callbackfn(val, idx, obj) {
+ return this === eval;
+ }
-var testResult = [11].map(callbackfn, eval);
+ var testResult = [11].map(callbackfn, eval);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-9.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-9.js
index 31f536819..247bfb3c3 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-5-9.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-9.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.19-5-9
description: Array.prototype.map - Function object can be used as thisArg
---*/
-var objFunction = function() {};
+ var objFunction = function () { };
-function callbackfn(val, idx, obj) {
- return this === objFunction;
-}
+ function callbackfn(val, idx, obj) {
+ return this === objFunction;
+ }
-var testResult = [11].map(callbackfn, objFunction);
+ var testResult = [11].map(callbackfn, objFunction);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-6-1.js b/test/built-ins/Array/prototype/map/15.4.4.19-6-1.js
index b72e54a44..2c86c43b8 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-6-1.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-6-1.js
@@ -9,6 +9,6 @@ description: >
argument is the ourput array
---*/
-var newArr = [11].map(function() {});
+ var newArr = [11].map(function () { });
assert(Array.isArray(newArr), 'Array.isArray(newArr) !== true');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-6-2.js b/test/built-ins/Array/prototype/map/15.4.4.19-6-2.js
index 593496d85..1acfec147 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-6-2.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-6-2.js
@@ -7,6 +7,6 @@ es5id: 15.4.4.19-6-2
description: Array.prototype.map - the returned array is instanceof Array
---*/
-var newArr = [11].map(function() {});
+ var newArr = [11].map(function () { });
assert(newArr instanceof Array, 'newArr instanceof Array !== true');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-1.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-1.js
index 07255dc87..eeb0830e8 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-1.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-1.js
@@ -9,14 +9,14 @@ description: >
after it is called
---*/
-function callbackfn(val, idx, obj)
-{
- srcArr[2] = 3;
- srcArr[5] = 6;
- return 1;
-}
+ function callbackfn(val, idx, obj)
+ {
+ srcArr[2] = 3;
+ srcArr[5] = 6;
+ return 1;
+ }
-var srcArr = [1, 2, , 4, 5];
-var resArr = srcArr.map(callbackfn);
+ var srcArr = [1,2,,4,5];
+ var resArr = srcArr.map(callbackfn);
assert.sameValue(resArr.length, 5, 'resArr.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-2.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-2.js
index 17ff67f93..f1bbd8be5 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-2.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-2.js
@@ -9,17 +9,17 @@ description: >
it is called
---*/
-function callbackfn(val, idx, obj)
-{
- srcArr[4] = -1;
- if (val > 0)
- return 1;
- else
- return 0;
-}
+ function callbackfn(val, idx, obj)
+ {
+ srcArr[4] = -1;
+ if(val > 0)
+ return 1;
+ else
+ return 0;
+ }
-var srcArr = [1, 2, 3, 4, 5];
-var resArr = srcArr.map(callbackfn);
+ var srcArr = [1,2,3,4,5];
+ var resArr = srcArr.map(callbackfn);
assert.sameValue(resArr.length, 5, 'resArr.length');
assert.sameValue(resArr[4], 0, 'resArr[4]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-3.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-3.js
index 10ef81567..3b6e5a675 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-3.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-3.js
@@ -9,18 +9,18 @@ description: >
the call
---*/
-function callbackfn(val, idx, obj)
-{
- delete srcArr[4];
- if (val > 0)
- return 1;
- else
- return 0;
+ function callbackfn(val, idx, obj)
+ {
+ delete srcArr[4];
+ if(val > 0)
+ return 1;
+ else
+ return 0;
-}
+ }
-var srcArr = [1, 2, 3, 4, 5];
-var resArr = srcArr.map(callbackfn);
+ var srcArr = [1,2,3,4,5];
+ var resArr = srcArr.map(callbackfn);
assert.sameValue(resArr.length, 5, 'resArr.length');
assert.sameValue(resArr[4], undefined, 'resArr[4]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-4.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-4.js
index e488c8149..5962cdd90 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-4.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-4.js
@@ -9,17 +9,16 @@ description: >
Array.length is decreased
---*/
-var callCnt = 0;
+ var callCnt = 0;
+ function callbackfn(val, idx, obj)
+ {
+ srcArr.length = 2;
+ callCnt++;
+ return 1;
+ }
-function callbackfn(val, idx, obj)
-{
- srcArr.length = 2;
- callCnt++;
- return 1;
-}
-
-var srcArr = [1, 2, 3, 4, 5];
-var resArr = srcArr.map(callbackfn);
+ var srcArr = [1,2,3,4,5];
+ var resArr = srcArr.map(callbackfn);
assert.sameValue(resArr.length, 5, 'resArr.length');
assert.sameValue(callCnt, 2, 'callCnt');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-5.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-5.js
index 969ef76b0..85747416a 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-5.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-5.js
@@ -9,19 +9,18 @@ description: >
sparse array
---*/
-var callCnt = 0;
+ var callCnt = 0;
+ function callbackfn(val, idx, obj)
+ {
+ srcArr[1000] = 3;
+ callCnt++;
+ return val;
+ }
-function callbackfn(val, idx, obj)
-{
- srcArr[1000] = 3;
- callCnt++;
- return val;
-}
-
-var srcArr = new Array(10);
-srcArr[1] = 1;
-srcArr[2] = 2;
-var resArr = srcArr.map(callbackfn);
+ var srcArr = new Array(10);
+ srcArr[1] = 1;
+ srcArr[2] = 2;
+ var resArr = srcArr.map(callbackfn);
assert.sameValue(resArr.length, 10, 'resArr.length');
assert.sameValue(callCnt, 2, 'callCnt');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-6.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-6.js
index 1a3d4c175..131558eb4 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-6.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-6.js
@@ -9,20 +9,20 @@ description: >
when same index is also present in prototype
---*/
-function callbackfn(val, idx, obj)
-{
- delete srcArr[4];
- if (val > 0)
- return 1;
- else
- return 0;
+ function callbackfn(val, idx, obj)
+ {
+ delete srcArr[4];
+ if(val > 0)
+ return 1;
+ else
+ return 0;
-}
+ }
-Array.prototype[4] = 5;
-var srcArr = [1, 2, 3, 4, 5];
-var resArr = srcArr.map(callbackfn);
-delete Array.prototype[4];
+ Array.prototype[4] = 5;
+ var srcArr = [1,2,3,4,5];
+ var resArr = srcArr.map(callbackfn);
+ delete Array.prototype[4];
assert.sameValue(resArr.length, 5, 'resArr.length');
assert.sameValue(resArr[4], 1, 'resArr[4]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-7.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-7.js
index 537e153f5..02da272f1 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-7.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-7.js
@@ -7,18 +7,18 @@ es5id: 15.4.4.19-8-7
description: Array.prototype.map successful to delete the object in callbackfn
---*/
-var obj = {};
-obj.srcArr = [1, 2, 3, 4, 5];
+ var obj = {};
+ obj.srcArr = [1, 2, 3, 4, 5];
-function callbackfn(val, idx, obj) {
- delete obj.srcArr;
- if (val > 0)
- return 1;
- else
- return 0;
-}
+ function callbackfn(val, idx, obj) {
+ delete obj.srcArr;
+ if (val > 0)
+ return 1;
+ else
+ return 0;
+ }
-var resArr = obj.srcArr.map(callbackfn);
+ var resArr = obj.srcArr.map(callbackfn);
assert.sameValue(resArr.toString(), "1,1,1,1,1", 'resArr.toString()');
assert.sameValue(obj.hasOwnProperty("arr"), false, 'obj.hasOwnProperty("arr")');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-8.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-8.js
index 0a9f95ed4..6b3d7146d 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-8.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-8.js
@@ -9,20 +9,15 @@ description: >
on an Array-like object
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+ }
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
-}
+ var obj = { 0: 11, 1: 12, length: 0 };
-var obj = {
- 0: 11,
- 1: 12,
- length: 0
-};
-
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult.length, 0, 'testResult.length');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-9.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-9.js
index 5f47a3a63..397d7a9ff 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-9.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-9.js
@@ -9,24 +9,23 @@ description: >
of iterations on an Array
---*/
-var called = 0;
+ var called = 0;
+ function callbackfn(val, idx, obj) {
+ called += 1;
+ return val > 10;
+ }
-function callbackfn(val, idx, obj) {
- called += 1;
- return val > 10;
-}
+ var arr = [9, , 12];
-var arr = [9, , 12];
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ arr.length = 2;
+ return 8;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- arr.length = 2;
- return 8;
- },
- configurable: true
-});
-
-var testResult = arr.map(callbackfn);
+ var testResult = arr.map(callbackfn);
assert.sameValue(testResult.length, 3, 'testResult.length');
assert.sameValue(called, 2, 'called');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-1.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-1.js
index ff4a57e8a..1c9aa86a7 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-1.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-1.js
@@ -9,17 +9,16 @@ description: >
assigned values
---*/
-var callCnt = 0;
+ var callCnt = 0;
+ function callbackfn(val, idx, obj)
+ {
+ callCnt++;
+ return 1;
+ }
-function callbackfn(val, idx, obj)
-{
- callCnt++;
- return 1;
-}
-
-var srcArr = new Array(10);
-srcArr[1] = undefined; //explicitly assigning a value
-var resArr = srcArr.map(callbackfn);
+ var srcArr = new Array(10);
+ srcArr[1] = undefined; //explicitly assigning a value
+ var resArr = srcArr.map(callbackfn);
assert.sameValue(resArr.length, 10, 'resArr.length');
assert.sameValue(callCnt, 1, 'callCnt');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-10.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-10.js
index 18ef426fb..040c0b852 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-10.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-10.js
@@ -9,24 +9,21 @@ description: >
prototype index property not to be visited on an Array-like Object
---*/
-function callbackfn(val, idx, obj) {
- return idx === 1 && typeof val === "undefined";
-}
-var obj = {
- 2: 2,
- length: 20
-};
+ function callbackfn(val, idx, obj) {
+ return idx === 1 && typeof val === "undefined";
+ }
+ var obj = { 2: 2, length: 20 };
-Object.defineProperty(obj, "0", {
- get: function() {
- delete Object.prototype[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ delete Object.prototype[1];
+ return 0;
+ },
+ configurable: true
+ });
-Object.prototype[1] = 1;
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ Object.prototype[1] = 1;
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult.length, 20, 'testResult.length');
assert.sameValue(typeof testResult[1], "undefined", 'typeof testResult[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-11.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-11.js
index d194b572b..58fccded0 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-11.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-11.js
@@ -9,21 +9,21 @@ description: >
prototype index property not to be visited on an Array
---*/
-function callbackfn(val, idx, obj) {
- return idx === 1 && typeof val === "undefined";
-}
-var arr = [0, , 2];
+ function callbackfn(val, idx, obj) {
+ return idx === 1 && typeof val === "undefined";
+ }
+ var arr = [0, , 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- delete Array.prototype[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete Array.prototype[1];
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype[1] = 1;
-var testResult = arr.map(callbackfn);
+ Array.prototype[1] = 1;
+ var testResult = arr.map(callbackfn);
assert.sameValue(testResult.length, 3, 'testResult.length');
assert.sameValue(typeof testResult[1], "undefined", 'typeof testResult[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-12.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-12.js
index 8d6fd84c8..0f5e4fc68 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-12.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-12.js
@@ -10,29 +10,24 @@ description: >
Array-like object
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1 && val === 3) {
- return false;
- } else {
- return true;
- }
-}
-var obj = {
- 0: 0,
- 1: 1,
- 2: 2,
- length: 10
-};
+ function callbackfn(val, idx, obj) {
+ if (idx === 1 && val === 3) {
+ return false;
+ } else {
+ return true;
+ }
+ }
+ var obj = { 0: 0, 1: 1, 2: 2, length: 10 };
-Object.defineProperty(obj, "0", {
- get: function() {
- delete obj[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ delete obj[1];
+ return 0;
+ },
+ configurable: true
+ });
-Object.prototype[1] = 3;
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ Object.prototype[1] = 3;
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult[1], false, 'testResult[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-13.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-13.js
index 7cea73c73..f510e09e2 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-13.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-13.js
@@ -9,24 +9,24 @@ description: >
property causes prototype index property to be visited on an Array
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1 && val === 3) {
- return false;
- } else {
- return true;
- }
-}
-var arr = [0, 1, 2];
+ function callbackfn(val, idx, obj) {
+ if (idx === 1 && val === 3) {
+ return false;
+ } else {
+ return true;
+ }
+ }
+ var arr = [0, 1, 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype[1] = 3;
-var testResult = arr.map(callbackfn);
+ Array.prototype[1] = 3;
+ var testResult = arr.map(callbackfn);
assert.sameValue(testResult[1], false, 'testResult[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-14.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-14.js
index 45131bd9a..ddef903df 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-14.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-14.js
@@ -9,20 +9,20 @@ description: >
property not to be visited
---*/
-function callbackfn(val, idx, obj) {
- return idx === 3 && typeof val === "undefined";
-}
+ function callbackfn(val, idx, obj) {
+ return idx === 3 && typeof val === "undefined";
+ }
-var arr = [0, 1, 2, "last"];
+ var arr = [0, 1, 2, "last"];
-Object.defineProperty(arr, "0", {
- get: function() {
- arr.length = 3;
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ arr.length = 3;
+ return 0;
+ },
+ configurable: true
+ });
-var testResult = arr.map(callbackfn);
+ var testResult = arr.map(callbackfn);
assert.sameValue(typeof testResult[3], "undefined", 'typeof testResult[3]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-15.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-15.js
index 2cf1762a5..1ed9f5ad3 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-15.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-15.js
@@ -9,31 +9,31 @@ description: >
property causes prototype index property to be visited
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 2 && val === "prototype") {
- return false;
- } else {
- return true;
- }
-}
-var arr = [0, 1, 2];
+ function callbackfn(val, idx, obj) {
+ if (idx === 2 && val === "prototype") {
+ return false;
+ } else {
+ return true;
+ }
+ }
+ var arr = [0, 1, 2];
-Object.defineProperty(Array.prototype, "2", {
- get: function() {
- return "prototype";
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "2", {
+ get: function () {
+ return "prototype";
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- arr.length = 2;
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ arr.length = 2;
+ return 1;
+ },
+ configurable: true
+ });
-var testResult = arr.map(callbackfn);
+ var testResult = arr.map(callbackfn);
assert.sameValue(testResult.length, 3, 'testResult.length');
assert.sameValue(testResult[2], false, 'testResult[2]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-16.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-16.js
index 5e5290fdd..b12e1aab0 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-16.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-16.js
@@ -10,32 +10,32 @@ description: >
flags: [noStrict]
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 2 && val === "unconfigurable") {
- return false;
- } else {
- return true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 2 && val === "unconfigurable") {
+ return false;
+ } else {
+ return true;
+ }
+ }
-var arr = [0, 1, 2];
+ var arr = [0, 1, 2];
-Object.defineProperty(arr, "2", {
- get: function() {
- return "unconfigurable";
- },
- configurable: false
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ return "unconfigurable";
+ },
+ configurable: false
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- arr.length = 2;
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ arr.length = 2;
+ return 1;
+ },
+ configurable: true
+ });
-var testResult = arr.map(callbackfn);
+ var testResult = arr.map(callbackfn);
assert.sameValue(testResult.length, 3, 'testResult.length');
assert.sameValue(testResult[2], false, 'testResult[2]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-2.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-2.js
index 74108f092..bc7018536 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-2.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-2.js
@@ -7,24 +7,24 @@ es5id: 15.4.4.19-8-b-2
description: Array.prototype.map - added properties in step 2 are visible here
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 2 && val === "length") {
- return false;
- } else {
- return true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 2 && val === "length") {
+ return false;
+ } else {
+ return true;
+ }
+ }
-var obj = {};
+ var obj = {};
-Object.defineProperty(obj, "length", {
- get: function() {
- obj[2] = "length";
- return 3;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ obj[2] = "length";
+ return 3;
+ },
+ configurable: true
+ });
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult[2], false, 'testResult[2]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-3.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-3.js
index 957b9048a..1377383e1 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-3.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-3.js
@@ -7,26 +7,23 @@ es5id: 15.4.4.19-8-b-3
description: Array.prototype.map - deleted properties in step 2 are visible here
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 2) {
- return false;
- } else {
- return true;
- }
-}
-var obj = {
- 2: 6.99,
- 8: 19
-};
+ function callbackfn(val, idx, obj) {
+ if (idx === 2) {
+ return false;
+ } else {
+ return true;
+ }
+ }
+ var obj = { 2: 6.99, 8: 19 };
-Object.defineProperty(obj, "length", {
- get: function() {
- delete obj[2];
- return 10;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ delete obj[2];
+ return 10;
+ },
+ configurable: true
+ });
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(typeof testResult[2], "undefined", 'typeof testResult[2]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-4.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-4.js
index bf1e739fb..8e166666d 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-4.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-4.js
@@ -9,32 +9,30 @@ description: >
current position are visited on an Array-like object
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1 && val === 1) {
- return false;
- } else {
- return true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1 && val === 1) {
+ return false;
+ } else {
+ return true;
+ }
+ }
-var obj = {
- length: 2
-};
+ var obj = { length: 2 };
-Object.defineProperty(obj, "0", {
- get: function() {
- Object.defineProperty(obj, "1", {
- get: function() {
- return 1;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
assert.sameValue(testResult[1], false, 'testResult[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-5.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-5.js
index c0ca4d259..a38050144 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-5.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-5.js
@@ -9,30 +9,30 @@ description: >
current position are visited on an Array
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1 && val === 1) {
- return false;
- } else {
- return true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1 && val === 1) {
+ return false;
+ } else {
+ return true;
+ }
+ }
-var arr = [0, , 2];
+ var arr = [0, , 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- Object.defineProperty(arr, "1", {
- get: function() {
- return 1;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
-var testResult = arr.map(callbackfn);
+ var testResult = arr.map(callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
assert.sameValue(testResult[1], false, 'testResult[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-6.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-6.js
index 6f983455e..2f12f0c1e 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-6.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-6.js
@@ -9,31 +9,29 @@ description: >
current position are visited on an Array-like object
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1 && val === 6.99) {
- return false;
- } else {
- return true;
- }
-}
-var obj = {
- length: 2
-};
+ function callbackfn(val, idx, obj) {
+ if (idx === 1 && val === 6.99) {
+ return false;
+ } else {
+ return true;
+ }
+ }
+ var obj = { length: 2 };
-Object.defineProperty(obj, "0", {
- get: function() {
- Object.defineProperty(Object.prototype, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ Object.defineProperty(Object.prototype, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
assert.sameValue(testResult[1], false, 'testResult[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-7.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-7.js
index 5e40ddb27..fe1b0998c 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-7.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-7.js
@@ -9,29 +9,29 @@ description: >
current position are visited on an Array
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1 && val === 6.99) {
- return false;
- } else {
- return true;
- }
-}
-var arr = [0, , 2];
+ function callbackfn(val, idx, obj) {
+ if (idx === 1 && val === 6.99) {
+ return false;
+ } else {
+ return true;
+ }
+ }
+ var arr = [0, , 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- Object.defineProperty(Array.prototype, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ Object.defineProperty(Array.prototype, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
-var testResult = arr.map(callbackfn);
+ var testResult = arr.map(callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
assert.sameValue(testResult[1], false, 'testResult[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-8.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-8.js
index 58f3ac9c1..1dd61b31e 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-8.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-8.js
@@ -9,33 +9,31 @@ description: >
not to be visited on an Array-like object
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- return false;
- } else {
- return true;
- }
-}
-var obj = {
- length: 2
-};
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ return false;
+ } else {
+ return true;
+ }
+ }
+ var obj = { length: 2 };
-Object.defineProperty(obj, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "0", {
- get: function() {
- delete obj[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ delete obj[1];
+ return 0;
+ },
+ configurable: true
+ });
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
assert.sameValue(typeof testResult[1], "undefined", 'typeof testResult[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-9.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-9.js
index a1dd861f2..1d0cc7640 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-9.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-9.js
@@ -9,31 +9,31 @@ description: >
not to be visited on an Array
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- return false;
- } else {
- return true;
- }
-}
-var arr = [1, 2];
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ return false;
+ } else {
+ return true;
+ }
+ }
+ var arr = [1, 2];
-Object.defineProperty(arr, "1", {
- get: function() {
- return "6.99";
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return "6.99";
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "0", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
-var testResult = arr.map(callbackfn);
+ var testResult = arr.map(callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
assert.sameValue(typeof testResult[1], "undefined", 'typeof testResult[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-1.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-1.js
index 16b3fe326..8543d0ead 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-1.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-1.js
@@ -9,20 +9,17 @@ description: >
on an Array-like object
---*/
-var kValue = {};
+ var kValue = {};
-function callbackfn(val, idx, obj) {
- if (idx === 5) {
- return val === kValue;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 5) {
+ return val === kValue;
+ }
+ return false;
+ }
-var obj = {
- 5: kValue,
- length: 100
-};
+ var obj = { 5: kValue, length: 100 };
-var newArr = Array.prototype.map.call(obj, callbackfn);
+ var newArr = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(newArr[5], true, 'newArr[5]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-10.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-10.js
index f9809a1a5..ccf8d3fbd 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-10.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-10.js
@@ -9,24 +9,24 @@ description: >
property on an Array
---*/
-var kValue = "abc";
+ var kValue = "abc";
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === kValue;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === kValue;
+ }
+ return false;
+ }
-var arr = [];
+ var arr = [];
-Object.defineProperty(arr, "0", {
- get: function() {
- return kValue;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ return kValue;
+ },
+ configurable: true
+ });
-var testResult = arr.map(callbackfn);
+ var testResult = arr.map(callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-11.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-11.js
index db7bfa03d..5e8f0eba5 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-11.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-11.js
@@ -10,32 +10,29 @@ description: >
Array-like object
---*/
-var kValue = "abc";
+ var kValue = "abc";
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === kValue;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === kValue;
+ }
+ return false;
+ }
-var proto = {
- 0: 5,
- length: 2
-};
+ var proto = { 0: 5, length: 2 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
+ var child = new Con();
-Object.defineProperty(child, "0", {
- get: function() {
- return kValue;
- },
- configurable: true
-});
+ Object.defineProperty(child, "0", {
+ get: function () {
+ return kValue;
+ },
+ configurable: true
+ });
-var testResult = Array.prototype.map.call(child, callbackfn);
+ var testResult = Array.prototype.map.call(child, callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-12.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-12.js
index 9f61f72be..b23347737 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-12.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-12.js
@@ -9,26 +9,26 @@ description: >
property that overrides an inherited data property on an Array
---*/
-var kValue = "abc";
+ var kValue = "abc";
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === kValue;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === kValue;
+ }
+ return false;
+ }
-var arr = [];
+ var arr = [];
-Array.prototype[0] = 11;
+ Array.prototype[0] = 11;
-Object.defineProperty(arr, "0", {
- get: function() {
- return kValue;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ return kValue;
+ },
+ configurable: true
+ });
-var testResult = arr.map(callbackfn);
+ var testResult = arr.map(callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-13.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-13.js
index 3ca3d54de..47c8e86c5 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-13.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-13.js
@@ -10,38 +10,36 @@ description: >
Array-like object
---*/
-var kValue = "abc";
-
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === kValue;
- }
- return false;
-}
-
-var proto = {
- length: 2
-};
-
-Object.defineProperty(proto, "0", {
- get: function() {
- return 5;
- },
- configurable: true
-});
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-
-Object.defineProperty(child, "0", {
- get: function() {
- return kValue;
- },
- configurable: true
-});
-
-var testResult = Array.prototype.map.call(child, callbackfn);
+ var kValue = "abc";
+
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === kValue;
+ }
+ return false;
+ }
+
+ var proto = { length: 2 };
+
+ Object.defineProperty(proto, "0", {
+ get: function () {
+ return 5;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+
+ Object.defineProperty(child, "0", {
+ get: function () {
+ return kValue;
+ },
+ configurable: true
+ });
+
+ var testResult = Array.prototype.map.call(child, callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-14.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-14.js
index 148bf9dbc..57580015d 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-14.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-14.js
@@ -9,31 +9,31 @@ description: >
property that overrides an inherited accessor property on an Array
---*/
-var kValue = "abc";
-
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === kValue;
- }
- return false;
-}
-
-var arr = [];
-
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return 11;
- },
- configurable: true
-});
-
-Object.defineProperty(arr, "0", {
- get: function() {
- return kValue;
- },
- configurable: true
-});
-
-var testResult = arr.map(callbackfn);
+ var kValue = "abc";
+
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === kValue;
+ }
+ return false;
+ }
+
+ var arr = [];
+
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return 11;
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ return kValue;
+ },
+ configurable: true
+ });
+
+ var testResult = arr.map(callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-15.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-15.js
index 590dbe8bd..ada617c65 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-15.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-15.js
@@ -9,31 +9,29 @@ description: >
accessor property on an Array-like object
---*/
-var kValue = "abc";
+ var kValue = "abc";
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === kValue;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === kValue;
+ }
+ return false;
+ }
-var proto = {
- length: 2
-};
+ var proto = { length: 2 };
-Object.defineProperty(proto, "0", {
- get: function() {
- return kValue;
- },
- configurable: true
-});
+ Object.defineProperty(proto, "0", {
+ get: function () {
+ return kValue;
+ },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
+ var child = new Con();
-var testResult = Array.prototype.map.call(child, callbackfn);
+ var testResult = Array.prototype.map.call(child, callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-16.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-16.js
index 8be14c2d2..78714aeab 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-16.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-16.js
@@ -9,22 +9,22 @@ description: >
accessor property on an Array
---*/
-var kValue = "abc";
+ var kValue = "abc";
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === kValue;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === kValue;
+ }
+ return false;
+ }
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return kValue;
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return kValue;
+ },
+ configurable: true
+ });
-var testResult = [, ].map(callbackfn);
+ var testResult = [, ].map(callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-17.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-17.js
index 9c0a96b09..2e3f9f987 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-17.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-17.js
@@ -9,22 +9,20 @@ description: >
property without a get function on an Array-like object
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- return typeof val === "undefined";
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ return typeof val === "undefined";
+ }
+ return false;
+ }
-var obj = {
- length: 2
-};
+ var obj = { length: 2 };
-Object.defineProperty(obj, "1", {
- set: function() {},
- configurable: true
-});
+ Object.defineProperty(obj, "1", {
+ set: function () { },
+ configurable: true
+ });
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult[1], true, 'testResult[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-18.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-18.js
index 142b2878d..fda5968c7 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-18.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-18.js
@@ -9,20 +9,20 @@ description: >
property without a get function on an Array
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- return typeof val === "undefined";
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ return typeof val === "undefined";
+ }
+ return false;
+ }
-var arr = [];
+ var arr = [];
-Object.defineProperty(arr, "1", {
- set: function() {},
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ set: function () { },
+ configurable: true
+ });
-var testResult = arr.map(callbackfn);
+ var testResult = arr.map(callbackfn);
assert.sameValue(testResult[1], true, 'testResult[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-19.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-19.js
index f20dbc098..7589e4c13 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-19.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-19.js
@@ -10,27 +10,27 @@ description: >
accessor property on an Array
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return typeof val === "undefined";
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return typeof val === "undefined";
+ }
+ return false;
+ }
-var arr = [];
+ var arr = [];
-Object.defineProperty(arr, "0", {
- set: function() {},
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ set: function () { },
+ configurable: true
+ });
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return 100;
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return 100;
+ },
+ configurable: true
+ });
-var testResult = arr.map(callbackfn);
+ var testResult = arr.map(callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-2.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-2.js
index b3c0686e2..e9fb0f558 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-2.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-2.js
@@ -9,17 +9,17 @@ description: >
on an Array
---*/
-var kValue = {};
+ var kValue = {};
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === kValue;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === kValue;
+ }
+ return false;
+ }
-var arr = [kValue];
+ var arr = [kValue];
-var newArr = arr.map(callbackfn);
+ var newArr = arr.map(callbackfn);
assert.sameValue(newArr[0], true, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-20.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-20.js
index 79faa2295..d73b92a01 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-20.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-20.js
@@ -10,33 +10,33 @@ description: >
accessor property on an Array-like object
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return typeof val === "undefined";
- }
- return false;
-}
-
-var proto = {};
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-child.length = 2;
-
-Object.defineProperty(child, "0", {
- set: function() {},
- configurable: true
-});
-
-Object.defineProperty(proto, "0", {
- get: function() {
- return 100;
- },
- configurable: true
-});
-
-var testResult = Array.prototype.map.call(child, callbackfn);
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return typeof val === "undefined";
+ }
+ return false;
+ }
+
+ var proto = {};
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 2;
+
+ Object.defineProperty(child, "0", {
+ set: function () { },
+ configurable: true
+ });
+
+ Object.defineProperty(proto, "0", {
+ get: function () {
+ return 100;
+ },
+ configurable: true
+ });
+
+ var testResult = Array.prototype.map.call(child, callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-21.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-21.js
index d7e36fc41..09387d328 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-21.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-21.js
@@ -9,26 +9,24 @@ description: >
accessor property without a get function on an Array-like object
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return typeof val === "undefined";
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return typeof val === "undefined";
+ }
+ return false;
+ }
-var proto = {
- length: 2
-};
-Object.defineProperty(proto, "0", {
- set: function() {},
- configurable: true
-});
+ var proto = { length: 2 };
+ Object.defineProperty(proto, "0", {
+ set: function () { },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
+ var child = new Con();
-var testResult = Array.prototype.map.call(child, callbackfn);
+ var testResult = Array.prototype.map.call(child, callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-22.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-22.js
index 1a4ba76c0..c45f502b2 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-22.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-22.js
@@ -9,18 +9,18 @@ description: >
accessor property without a get function on an Array
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return typeof val === "undefined";
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return typeof val === "undefined";
+ }
+ return false;
+ }
-Object.defineProperty(Array.prototype, "0", {
- set: function() {},
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ set: function () { },
+ configurable: true
+ });
-var testResult = [, ].map(callbackfn);
+ var testResult = [,].map(callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-25.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-25.js
index 74fd1615f..41cff6af1 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-25.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-25.js
@@ -10,18 +10,18 @@ description: >
less than number of parameters)
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === 9;
- } else {
- return false;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === 9;
+ } else {
+ return false;
+ }
+ }
-var func = function(a, b) {
- return Array.prototype.map.call(arguments, callbackfn);
-};
+ var func = function (a, b) {
+ return Array.prototype.map.call(arguments, callbackfn);
+ };
-var testResult = func(9);
+ var testResult = func(9);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-26.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-26.js
index 66bb23233..bf4e46b1d 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-26.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-26.js
@@ -10,21 +10,21 @@ description: >
number of parameters)
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === 9;
- } else if (idx === 1) {
- return val === 11;
- } else {
- return false;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === 9;
+ } else if (idx === 1) {
+ return val === 11;
+ } else {
+ return false;
+ }
+ }
-var func = function(a, b) {
- return Array.prototype.map.call(arguments, callbackfn);
-};
+ var func = function (a, b) {
+ return Array.prototype.map.call(arguments, callbackfn);
+ };
-var testResult = func(9, 11);
+ var testResult = func(9, 11);
assert.sameValue(testResult[0], true, 'testResult[0]');
assert.sameValue(testResult[1], true, 'testResult[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-27.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-27.js
index c47bd08c3..3140c2b3b 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-27.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-27.js
@@ -10,24 +10,24 @@ description: >
greater than number of parameters)
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === 9;
- } else if (idx === 1) {
- return val === 11;
- } else if (idx === 2) {
- return val === 12;
- } else {
- return false;
- }
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === 9;
+ } else if (idx === 1) {
+ return val === 11;
+ } else if (idx === 2) {
+ return val === 12;
+ } else {
+ return false;
+ }
-}
+ }
-var func = function(a, b) {
- return Array.prototype.map.call(arguments, callbackfn);
-};
+ var func = function (a, b) {
+ return Array.prototype.map.call(arguments, callbackfn);
+ };
-var testResult = func(9, 11, 12);
+ var testResult = func(9, 11, 12);
assert.sameValue(testResult[0], true, 'testResult[0]');
assert.sameValue(testResult[1], true, 'testResult[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-28.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-28.js
index 142bcdd8d..ba96bfa5b 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-28.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-28.js
@@ -9,39 +9,39 @@ description: >
iterations is observed on an Array
---*/
-var preIterVisible = false;
-var arr = [];
+ var preIterVisible = false;
+ var arr = [];
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === 11;
- } else if (idx === 1) {
- return val === 9;
- } else {
- return false;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === 11;
+ } else if (idx === 1) {
+ return val === 9;
+ } else {
+ return false;
+ }
+ }
-Object.defineProperty(arr, "0", {
- get: function() {
- preIterVisible = true;
- return 11;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ preIterVisible = true;
+ return 11;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- if (preIterVisible) {
- return 9;
- } else {
- return 11;
- }
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ if (preIterVisible) {
+ return 9;
+ } else {
+ return 11;
+ }
+ },
+ configurable: true
+ });
-var testResult = arr.map(callbackfn);
+ var testResult = arr.map(callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
assert.sameValue(testResult[1], true, 'testResult[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-29.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-29.js
index 9d97893b8..4e034ba2c 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-29.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-29.js
@@ -9,41 +9,39 @@ description: >
iterations is observed on an Array-like object
---*/
-var preIterVisible = false;
-var obj = {
- length: 2
-};
+ var preIterVisible = false;
+ var obj = { length: 2 };
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === 11;
- } else if (idx === 1) {
- return val === 9;
- } else {
- return false;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === 11;
+ } else if (idx === 1) {
+ return val === 9;
+ } else {
+ return false;
+ }
+ }
-Object.defineProperty(obj, "0", {
- get: function() {
- preIterVisible = true;
- return 11;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ preIterVisible = true;
+ return 11;
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "1", {
- get: function() {
- if (preIterVisible) {
- return 9;
- } else {
- return 11;
- }
- },
- configurable: true
-});
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ if (preIterVisible) {
+ return 9;
+ } else {
+ return 11;
+ }
+ },
+ configurable: true
+ });
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
assert.sameValue(testResult[1], true, 'testResult[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-3.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-3.js
index dac643e4e..f3d9e7dd9 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-3.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-3.js
@@ -9,26 +9,23 @@ description: >
that overrides an inherited data property on an Array-like object
---*/
-var kValue = "abc";
+ var kValue = "abc";
-function callbackfn(val, idx, obj) {
- if (idx === 5) {
- return val === kValue;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 5) {
+ return val === kValue;
+ }
+ return false;
+ }
-var proto = {
- 5: 12,
- length: 10
-};
+ var proto = { 5: 12, length: 10 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child[5] = kValue;
+ var child = new Con();
+ child[5] = kValue;
-var testResult = Array.prototype.map.call(child, callbackfn);
+ var testResult = Array.prototype.map.call(child, callbackfn);
assert.sameValue(testResult[5], true, 'testResult[5]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-30.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-30.js
index cae9865e2..d9cec7c6b 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-30.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-30.js
@@ -9,35 +9,30 @@ description: >
terminate iteration on an Array-like object
---*/
-var obj = {
- 0: 11,
- 5: 10,
- 10: 8,
- length: 20
-};
-var accessed = false;
+ var obj = { 0: 11, 5: 10, 10: 8, length: 20 };
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- if (idx > 1) {
- accessed = true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx > 1) {
+ accessed = true;
+ }
+ }
-Object.defineProperty(obj, "1", {
- get: function() {
- throw new RangeError("unhandle exception happened in getter");
- },
- configurable: true
-});
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ throw new RangeError("unhandle exception happened in getter");
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "2", {
- get: function() {
- accessed = true;
- return 100;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "2", {
+ get: function () {
+ accessed = true;
+ return 100;
+ },
+ configurable: true
+ });
assert.throws(RangeError, function() {
- Array.prototype.map.call(obj, callbackfn);
+ Array.prototype.map.call(obj, callbackfn);
});
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-31.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-31.js
index 094568212..6923f6d8f 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-31.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-31.js
@@ -9,33 +9,33 @@ description: >
terminate iteration on an Array
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- if (idx > 1) {
- accessed = true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx > 1) {
+ accessed = true;
+ }
+ }
-var arr = [];
-arr[5] = 10;
-arr[10] = 100;
+ var arr = [];
+ arr[5] = 10;
+ arr[10] = 100;
-Object.defineProperty(arr, "1", {
- get: function() {
- throw new RangeError("unhandle exception happened in getter");
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ throw new RangeError("unhandle exception happened in getter");
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "2", {
- get: function() {
- accessed = true;
- return 100;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ accessed = true;
+ return 100;
+ },
+ configurable: true
+ });
assert.throws(RangeError, function() {
- arr.map(callbackfn);
+ arr.map(callbackfn);
});
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-4.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-4.js
index cf77e3796..192dd3f4d 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-4.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-4.js
@@ -9,17 +9,17 @@ description: >
that overrides an inherited data property on an Array
---*/
-var kValue = "abc";
+ var kValue = "abc";
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === kValue;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === kValue;
+ }
+ return false;
+ }
-Array.prototype[0] = 11;
+ Array.prototype[0] = 11;
-var testResult = [kValue].map(callbackfn);
+ var testResult = [kValue].map(callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-5.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-5.js
index cf2c63c9b..70b85169b 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-5.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-5.js
@@ -10,34 +10,34 @@ description: >
object
---*/
-var kValue = "abc";
-
-function callbackfn(val, idx, obj) {
- if (idx === 5) {
- return val === kValue;
- }
- return false;
-}
-
-var proto = {};
-
-Object.defineProperty(proto, "5", {
- get: function() {
- return 11;
- },
- configurable: true
-});
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-child.length = 10;
-Object.defineProperty(child, "5", {
- value: kValue,
- configurable: true
-});
-
-var testResult = Array.prototype.map.call(child, callbackfn);
+ var kValue = "abc";
+
+ function callbackfn(val, idx, obj) {
+ if (idx === 5) {
+ return val === kValue;
+ }
+ return false;
+ }
+
+ var proto = {};
+
+ Object.defineProperty(proto, "5", {
+ get: function () {
+ return 11;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 10;
+ Object.defineProperty(child, "5", {
+ value: kValue,
+ configurable: true
+ });
+
+ var testResult = Array.prototype.map.call(child, callbackfn);
assert.sameValue(testResult[5], true, 'testResult[5]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-6.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-6.js
index 4c9ae7776..c7970fc48 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-6.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-6.js
@@ -9,22 +9,22 @@ description: >
that overrides an inherited accessor property on an Array
---*/
-var kValue = "abc";
+ var kValue = "abc";
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === kValue;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === kValue;
+ }
+ return false;
+ }
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return 9;
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return 9;
+ },
+ configurable: true
+ });
-var testResult = [kValue].map(callbackfn);
+ var testResult = [kValue].map(callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-7.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-7.js
index 908e1e6b1..9a2b37c7b 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-7.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-7.js
@@ -9,25 +9,22 @@ description: >
property on an Array-like object
---*/
-var kValue = "abc";
+ var kValue = "abc";
-function callbackfn(val, idx, obj) {
- if (idx === 5) {
- return val === kValue;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 5) {
+ return val === kValue;
+ }
+ return false;
+ }
-var proto = {
- 5: kValue,
- length: 10
-};
+ var proto = { 5: kValue, length: 10 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
+ var child = new Con();
-var newArr = Array.prototype.map.call(child, callbackfn);
+ var newArr = Array.prototype.map.call(child, callbackfn);
assert.sameValue(newArr[5], true, 'newArr[5]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-8.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-8.js
index 03d312b30..45597f7ea 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-8.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-8.js
@@ -9,15 +9,15 @@ description: >
property on an Array
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- return val === 13;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ return val === 13;
+ }
+ return false;
+ }
-Array.prototype[1] = 13;
+ Array.prototype[1] = 13;
-var newArr = [, , , ].map(callbackfn);
+ var newArr = [, , , ].map(callbackfn);
assert.sameValue(newArr[1], true, 'newArr[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-9.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-9.js
index 2d58d345f..ac0a9750c 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-9.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-9.js
@@ -9,26 +9,24 @@ description: >
property on an Array-like object
---*/
-var kValue = "abc";
+ var kValue = "abc";
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === kValue;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === kValue;
+ }
+ return false;
+ }
-var obj = {
- length: 2
-};
+ var obj = { length: 2 };
-Object.defineProperty(obj, "0", {
- get: function() {
- return kValue;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ return kValue;
+ },
+ configurable: true
+ });
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-1.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-1.js
index 94a0fad1d..d5ad9c8f9 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-1.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-1.js
@@ -7,19 +7,18 @@ es5id: 15.4.4.19-8-c-ii-1
description: Array.prototype.map - callbackfn called with correct parameters
---*/
-var bPar = true;
-var bCalled = false;
+ var bPar = true;
+ var bCalled = false;
+ function callbackfn(val, idx, obj)
+ {
+ bCalled = true;
+ if(obj[idx] !== val)
+ bPar = false;
+ }
-function callbackfn(val, idx, obj)
-{
- bCalled = true;
- if (obj[idx] !== val)
- bPar = false;
-}
-
-var srcArr = [0, 1, true, null, new Object(), "five"];
-srcArr[999999] = -6.6;
-var resArr = srcArr.map(callbackfn);
+ var srcArr = [0,1,true,null,new Object(),"five"];
+ srcArr[999999] = -6.6;
+ var resArr = srcArr.map(callbackfn);
assert.sameValue(bCalled, true, 'bCalled');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-10.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-10.js
index 546a84142..2602ab100 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-10.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-10.js
@@ -7,10 +7,10 @@ es5id: 15.4.4.19-8-c-ii-10
description: Array.prototype.map - callbackfn is called with 1 formal parameter
---*/
-function callbackfn(val) {
- return val > 10;
-}
+ function callbackfn(val) {
+ return val > 10;
+ }
-var testResult = [11].map(callbackfn);
+ var testResult = [11].map(callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-11.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-11.js
index 503c65ad3..4bfbc76db 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-11.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-11.js
@@ -7,10 +7,10 @@ es5id: 15.4.4.19-8-c-ii-11
description: Array.prototype.map - callbackfn is called with 2 formal parameters
---*/
-function callbackfn(val, idx) {
- return (val > 10 && arguments[2][idx] === val);
-}
+ function callbackfn(val, idx) {
+ return (val > 10 && arguments[2][idx] === val);
+ }
-var testResult = [11].map(callbackfn);
+ var testResult = [11].map(callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-12.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-12.js
index d97ab0707..8919089d1 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-12.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-12.js
@@ -7,10 +7,10 @@ es5id: 15.4.4.19-8-c-ii-12
description: Array.prototype.map - callbackfn is called with 3 formal parameters
---*/
-function callbackfn(val, idx, obj) {
- return (val > 10 && obj[idx] === val);
-}
+ function callbackfn(val, idx, obj) {
+ return (val > 10 && obj[idx] === val);
+ }
-var testResult = [11].map(callbackfn);
+ var testResult = [11].map(callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-13.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-13.js
index cf89b2259..35523402a 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-13.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-13.js
@@ -9,10 +9,10 @@ description: >
parameter value
---*/
-function callbackfn() {
- return arguments[2][arguments[1]] === arguments[0];
-}
+ function callbackfn() {
+ return arguments[2][arguments[1]] === arguments[0];
+ }
-var testResult = [11].map(callbackfn);
+ var testResult = [11].map(callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-16.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-16.js
index bc4d4dce5..be5f0d3c7 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-16.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-16.js
@@ -9,15 +9,12 @@ description: >
a boolean primitive)
---*/
-function callbackfn(val, idx, obj) {
- return this.valueOf() === false;
-}
+ function callbackfn(val, idx, obj) {
+ return this.valueOf() === false;
+ }
-var obj = {
- 0: 11,
- length: 2
-};
+ var obj = { 0: 11, length: 2 };
-var testResult = Array.prototype.map.call(obj, callbackfn, false);
+ var testResult = Array.prototype.map.call(obj, callbackfn, false);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-17.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-17.js
index e095ed03e..dd16accb1 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-17.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-17.js
@@ -9,15 +9,12 @@ description: >
a number)
---*/
-function callbackfn(val, idx, obj) {
- return this.valueOf() === 5;
-}
+ function callbackfn(val, idx, obj) {
+ return this.valueOf() === 5;
+ }
-var obj = {
- 0: 11,
- length: 2
-};
+ var obj = { 0: 11, length: 2 };
-var testResult = Array.prototype.map.call(obj, callbackfn, 5);
+ var testResult = Array.prototype.map.call(obj, callbackfn, 5);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-18.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-18.js
index 90501719b..2fbb0a5b1 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-18.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-18.js
@@ -9,15 +9,12 @@ description: >
a string primitive)
---*/
-function callbackfn(val, idx, obj) {
- return this.valueOf() === "hello!";
-}
+ function callbackfn(val, idx, obj) {
+ return this.valueOf() === "hello!";
+ }
-var obj = {
- 0: 11,
- length: 2
-};
+ var obj = { 0: 11, length: 2 };
-var testResult = Array.prototype.map.call(obj, callbackfn, "hello!");
+ var testResult = Array.prototype.map.call(obj, callbackfn, "hello!");
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-19.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-19.js
index a638a3126..58f038dbc 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-19.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-19.js
@@ -7,24 +7,20 @@ es5id: 15.4.4.19-8-c-ii-19
description: Array.prototype.map - non-indexed properties are not called.
---*/
-var called = 0;
-var result = false;
+ var called = 0;
+ var result = false;
-function callbackfn(val, idx, obj) {
- called++;
- if (val === 11) {
- result = true;
- }
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ called++;
+ if (val === 11) {
+ result = true;
+ }
+ return true;
+ }
-var obj = {
- 0: 9,
- non_index_property: 11,
- length: 20
-};
+ var obj = { 0: 9, non_index_property: 11, length: 20 };
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(result, false, 'result');
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-2.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-2.js
index 34a8c1a41..b405b41c5 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-2.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-2.js
@@ -7,18 +7,17 @@ es5id: 15.4.4.19-8-c-ii-2
description: Array.prototype.map - callbackfn takes 3 arguments
---*/
-var parCnt = 3;
-var bCalled = false
+ var parCnt = 3;
+ var bCalled = false
+ function callbackfn(val, idx, obj)
+ {
+ bCalled = true;
+ if(arguments.length !== 3)
+ parCnt = arguments.length; //verify if callbackfn was called with 3 parameters
+ }
-function callbackfn(val, idx, obj)
-{
- bCalled = true;
- if (arguments.length !== 3)
- parCnt = arguments.length; //verify if callbackfn was called with 3 parameters
-}
-
-var srcArr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
-var resArr = srcArr.map(callbackfn);
+ var srcArr = [0,1,2,3,4,5,6,7,8,9];
+ var resArr = srcArr.map(callbackfn);
assert.sameValue(bCalled, true, 'bCalled');
assert.sameValue(parCnt, 3, 'parCnt');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-20.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-20.js
index 96f50c481..ddb585762 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-20.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-20.js
@@ -9,20 +9,14 @@ description: >
(thisArg is correct)
---*/
-function callbackfn(val, idx, obj) {
- return this.threshold === 10;
-}
+ function callbackfn(val, idx, obj) {
+ return this.threshold === 10;
+ }
-var thisArg = {
- threshold: 10
-};
+ var thisArg = { threshold: 10 };
-var obj = {
- 0: 11,
- 1: 9,
- length: 2
-};
+ var obj = { 0: 11, 1: 9, length: 2 };
-var testResult = Array.prototype.map.call(obj, callbackfn, thisArg);
+ var testResult = Array.prototype.map.call(obj, callbackfn, thisArg);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-21.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-21.js
index 50cd9a2cd..b4f908ac8 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-21.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-21.js
@@ -9,25 +9,21 @@ description: >
(kValue is correct)
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === 11;
- }
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === 11;
+ }
- if (idx === 1) {
- return val === 12;
- }
+ if (idx === 1) {
+ return val === 12;
+ }
- return false;
-}
+ return false;
+ }
-var obj = {
- 0: 11,
- 1: 12,
- length: 2
-};
+ var obj = { 0: 11, 1: 12, length: 2 };
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
assert.sameValue(testResult[1], true, 'testResult[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-22.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-22.js
index a5a30861a..7da27f9ee 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-22.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-22.js
@@ -9,25 +9,21 @@ description: >
(the index k is correct)
---*/
-function callbackfn(val, idx, obj) {
- if (val === 11) {
- return idx === 0;
- }
+ function callbackfn(val, idx, obj) {
+ if (val === 11) {
+ return idx === 0;
+ }
- if (val === 12) {
- return idx === 1;
- }
+ if (val === 12) {
+ return idx === 1;
+ }
- return false;
-}
+ return false;
+ }
-var obj = {
- 0: 11,
- 1: 12,
- length: 2
-};
+ var obj = { 0: 11, 1: 12, length: 2 };
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
assert.sameValue(testResult[1], true, 'testResult[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-23.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-23.js
index fd1431705..78575602e 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-23.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-23.js
@@ -9,15 +9,12 @@ description: >
(this object O is correct)
---*/
-var obj = {
- 0: 11,
- length: 2
-};
+ var obj = { 0: 11, length: 2 };
-function callbackfn(val, idx, o) {
- return obj === o;
-}
+ function callbackfn(val, idx, o) {
+ return obj === o;
+ }
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-4.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-4.js
index 5fe857f93..b47ecdde1 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-4.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-4.js
@@ -7,21 +7,20 @@ es5id: 15.4.4.19-8-c-ii-4
description: Array.prototype.map - k values are passed in acending numeric order
---*/
-var arr = [0, 1, 2, 3, 4, 5];
-var lastIdx = 0;
-var called = 0;
-var result = true;
+ var arr = [0, 1, 2, 3, 4, 5];
+ var lastIdx = 0;
+ var called = 0;
+ var result = true;
+ function callbackfn(val, idx, o) {
+ called++;
+ if (lastIdx !== idx) {
+ result = false;
+ } else {
+ lastIdx++;
+ }
+ }
-function callbackfn(val, idx, o) {
- called++;
- if (lastIdx !== idx) {
- result = false;
- } else {
- lastIdx++;
- }
-}
-
-arr.map(callbackfn);
+ arr.map(callbackfn);
assert(result, 'result !== true');
assert.sameValue(arr.length, called, 'arr.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-5.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-5.js
index d0d8859c6..fa7136b47 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-5.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-5.js
@@ -9,24 +9,24 @@ description: >
and not prior to starting the loop.
---*/
-var kIndex = [];
+ var kIndex = [];
-//By below way, we could verify that k would be setted as 0, 1, ..., length - 1 in order, and each value will be setted one time.
-function callbackfn(val, idx, obj) {
- //Each position should be visited one time, which means k is accessed one time during iterations.
- if (typeof kIndex[idx] === "undefined") {
- //when current position is visited, its previous index should has been visited.
- if (idx !== 0 && typeof kIndex[idx - 1] === "undefined") {
- return true;
- }
- kIndex[idx] = 1;
- return false;
- } else {
- return true;
- }
-}
+ //By below way, we could verify that k would be setted as 0, 1, ..., length - 1 in order, and each value will be setted one time.
+ function callbackfn(val, idx, obj) {
+ //Each position should be visited one time, which means k is accessed one time during iterations.
+ if (typeof kIndex[idx] === "undefined") {
+ //when current position is visited, its previous index should has been visited.
+ if (idx !== 0 && typeof kIndex[idx - 1] === "undefined") {
+ return true;
+ }
+ kIndex[idx] = 1;
+ return false;
+ } else {
+ return true;
+ }
+ }
-var testResult = [11, 12, 13, 14].map(callbackfn);
+ var testResult = [11, 12, 13, 14].map(callbackfn);
assert.sameValue(testResult.length, 4, 'testResult.length');
assert.sameValue(testResult[0], false, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-6.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-6.js
index 7ac9796c3..880856724 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-6.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-6.js
@@ -7,19 +7,16 @@ es5id: 15.4.4.19-8-c-ii-6
description: Array.prototype.map - arguments to callbackfn are self consistent.
---*/
-var obj = {
- 0: 11,
- length: 1
-};
-var thisArg = {};
+ var obj = { 0: 11, length: 1 };
+ var thisArg = {};
-function callbackfn() {
- return this === thisArg &&
- arguments[0] === 11 &&
- arguments[1] === 0 &&
- arguments[2] === obj;
-}
+ function callbackfn() {
+ return this === thisArg &&
+ arguments[0] === 11 &&
+ arguments[1] === 0 &&
+ arguments[2] === obj;
+ }
-var testResult = Array.prototype.map.call(obj, callbackfn, thisArg);
+ var testResult = Array.prototype.map.call(obj, callbackfn, thisArg);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-7.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-7.js
index 0ae5970fe..346adb6c9 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-7.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-7.js
@@ -9,24 +9,19 @@ description: >
terminate iteration
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- if (idx > 0) {
- accessed = true;
- }
- if (idx === 0) {
- throw new Error("Exception occurred in callbackfn");
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx > 0) {
+ accessed = true;
+ }
+ if (idx === 0) {
+ throw new Error("Exception occurred in callbackfn");
+ }
+ }
-var obj = {
- 0: 11,
- 4: 10,
- 10: 8,
- length: 20
-};
+ var obj = { 0: 11, 4: 10, 10: 8, length: 20 };
assert.throws(Error, function() {
- Array.prototype.map.call(obj, callbackfn);
+ Array.prototype.map.call(obj, callbackfn);
});
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-8.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-8.js
index e4e4d231d..467f3589a 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-8.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-8.js
@@ -9,19 +9,15 @@ description: >
iterations is observed
---*/
-var obj = {
- 0: 9,
- 1: 12,
- length: 2
-};
+ var obj = { 0: 9, 1: 12, length: 2 };
-function callbackfn(val, idx, o) {
- if (idx === 0) {
- obj[idx + 1] = 8;
- }
- return val > 10;
-}
+ function callbackfn(val, idx, o) {
+ if (idx === 0) {
+ obj[idx + 1] = 8;
+ }
+ return val > 10;
+ }
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult[1], false, 'testResult[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-9.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-9.js
index 3554ac85b..88f74819a 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-9.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-9.js
@@ -7,10 +7,10 @@ es5id: 15.4.4.19-8-c-ii-9
description: Array.prototype.map - callbackfn with 0 formal parameter
---*/
-function callbackfn() {
- return true;
-}
+ function callbackfn() {
+ return true;
+ }
-var testResult = [11].map(callbackfn);
+ var testResult = [11].map(callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-1.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-1.js
index 5f759befb..b3fa6ffcc 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-1.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-1.js
@@ -9,14 +9,14 @@ description: >
returned array element
---*/
-function callbackfn(val, idx, obj) {
- if (val % 2)
- return (2 * val + 1);
- else
- return (val / 2);
-}
-var srcArr = [0, 1, 2, 3, 4];
-var resArr = srcArr.map(callbackfn);
+ function callbackfn(val, idx, obj){
+ if(val % 2)
+ return (2 * val + 1);
+ else
+ return (val / 2);
+ }
+ var srcArr = [0,1,2,3,4];
+ var resArr = srcArr.map(callbackfn);
assert(resArr.length > 0, 'resArr.length > 0');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-2.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-2.js
index 6f5cbb81b..999460193 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-2.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-2.js
@@ -9,16 +9,12 @@ description: >
'mappedValue'
---*/
-function callbackfn(val, idx, obj) {
- return val;
-}
+ function callbackfn(val, idx, obj) {
+ return val;
+ }
-var obj = {
- 0: 11,
- 1: 9,
- length: 2
-};
-var newArr = Array.prototype.map.call(obj, callbackfn);
+ var obj = { 0: 11, 1: 9, length: 2 };
+ var newArr = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(newArr[0], obj[0], 'newArr[0]');
assert.sameValue(newArr[1], obj[1], 'newArr[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-3.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-3.js
index 7525d1b0c..fed4c1424 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-3.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-3.js
@@ -9,18 +9,14 @@ description: >
overwritten
---*/
-function callbackfn(val, idx, obj) {
- return 11;
-}
+ function callbackfn(val, idx, obj) {
+ return 11;
+ }
-var obj = {
- 0: 11,
- 1: 9,
- length: 2
-};
-var newArr = Array.prototype.map.call(obj, callbackfn);
+ var obj = { 0: 11, 1: 9, length: 2 };
+ var newArr = Array.prototype.map.call(obj, callbackfn);
-var tempVal = newArr[1];
-newArr[1] += 1;
+ var tempVal = newArr[1];
+ newArr[1] += 1;
assert.notSameValue(newArr[1], tempVal, 'newArr[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-4.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-4.js
index 4b918884d..f15aad4f1 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-4.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-4.js
@@ -9,24 +9,21 @@ description: >
enumerated
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var obj = {
- 0: 11,
- length: 2
-};
-var newArr = Array.prototype.map.call(obj, callbackfn);
+ var obj = { 0: 11, length: 2 };
+ var newArr = Array.prototype.map.call(obj, callbackfn);
-var prop;
-var enumerable = false;
-for (prop in newArr) {
- if (newArr.hasOwnProperty(prop)) {
- if (prop === "0") {
- enumerable = true;
- }
- }
-}
+ var prop;
+ var enumerable = false;
+ for (prop in newArr) {
+ if (newArr.hasOwnProperty(prop)) {
+ if (prop === "0") {
+ enumerable = true;
+ }
+ }
+ }
assert(enumerable, 'enumerable !== true');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-5.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-5.js
index 44eaea59e..4bb7b42ff 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-5.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-5.js
@@ -9,19 +9,15 @@ description: >
changed or deleted
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var obj = {
- 0: 11,
- 1: 9,
- length: 2
-};
-var newArr = Array.prototype.map.call(obj, callbackfn);
+ var obj = { 0: 11, 1: 9, length: 2 };
+ var newArr = Array.prototype.map.call(obj, callbackfn);
-var tempVal = newArr[1];
-delete newArr[1];
+ var tempVal = newArr[1];
+ delete newArr[1];
assert.notSameValue(tempVal, undefined, 'tempVal');
assert.sameValue(newArr[1], undefined, 'newArr[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-9-1.js b/test/built-ins/Array/prototype/map/15.4.4.19-9-1.js
index a9cb1f51e..daabdf4cb 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-9-1.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-9-1.js
@@ -9,12 +9,12 @@ description: >
on
---*/
-function callbackfn(val, idx, obj)
-{
- return true;
-}
-var srcArr = [1, 2, 3, 4, 5];
-srcArr.map(callbackfn);
+ function callbackfn(val, idx, obj)
+ {
+ return true;
+ }
+ var srcArr = [1,2,3,4,5];
+ srcArr.map(callbackfn);
assert.sameValue(srcArr[0], 1, 'srcArr[0]');
assert.sameValue(srcArr[1], 2, 'srcArr[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-9-10.js b/test/built-ins/Array/prototype/map/15.4.4.19-9-10.js
index 5407e1ee9..1b1854f44 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-9-10.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-9-10.js
@@ -9,22 +9,22 @@ description: >
(subclassed Array, length overridden with obj with valueOf)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+ }
-var Foo = function() {};
-Foo.prototype = [1, 2, 3];
-var obj = new Foo();
-obj.length = {
- valueOf: function() {
- return 0;
- }
-};
+ var Foo = function () { };
+ Foo.prototype = [1, 2, 3];
+ var obj = new Foo();
+ obj.length = {
+ valueOf: function () {
+ return 0;
+ }
+ };
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult.length, 0, 'testResult.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-9-11.js b/test/built-ins/Array/prototype/map/15.4.4.19-9-11.js
index aa0fd8891..f8c6a295f 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-9-11.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-9-11.js
@@ -10,26 +10,26 @@ description: >
(toString))
---*/
-function Foo() {}
-Foo.prototype = [1, 2, 3];
+ function Foo() { }
+ Foo.prototype = [1, 2, 3];
-var f = new Foo();
+ var f = new Foo();
-var o = {
- toString: function() {
- return '0';
- }
-};
-f.length = o;
+ var o = {
+ toString: function () {
+ return '0';
+ }
+ };
+ f.length = o;
-// objects inherit the default valueOf method of the Object object;
-// that simply returns the itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
-function cb() {}
-var a = Array.prototype.map.call(f, cb);
+ function cb() { }
+ var a = Array.prototype.map.call(f, cb);
assert(Array.isArray(a), 'Array.isArray(a) !== true');
assert.sameValue(a.length, 0, 'a.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-9-12.js b/test/built-ins/Array/prototype/map/15.4.4.19-9-12.js
index 9ae64cd57..41b4e362b 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-9-12.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-9-12.js
@@ -9,28 +9,28 @@ description: >
(subclassed Array, length overridden with [])
---*/
-function Foo() {}
-Foo.prototype = [1, 2, 3];
-var f = new Foo();
+ function Foo() { }
+ Foo.prototype = [1, 2, 3];
+ var f = new Foo();
-f.length = [];
+ f.length = [];
-// objects inherit the default valueOf method of the Object object;
-// that simply returns the itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-//
-// The toString( ) method on Array converts the array elements to strings,
-// then returns the result of concatenating these strings, with commas in
-// between. An array with no elements converts to the empty string, which
-// converts to the number 0. If an array has a single element that is a
-// number n, the array converts to a string representation of n, which is
-// then converted back to n itself. If an array contains more than one element,
-// or if its one element is not a number, the array converts to NaN.
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
+ //
+ // The toString( ) method on Array converts the array elements to strings,
+ // then returns the result of concatenating these strings, with commas in
+ // between. An array with no elements converts to the empty string, which
+ // converts to the number 0. If an array has a single element that is a
+ // number n, the array converts to a string representation of n, which is
+ // then converted back to n itself. If an array contains more than one element,
+ // or if its one element is not a number, the array converts to NaN.
-function cb() {}
-var a = Array.prototype.map.call(f, cb);
+ function cb() { }
+ var a = Array.prototype.map.call(f, cb);
assert(Array.isArray(a), 'Array.isArray(a) !== true');
assert.sameValue(a.length, 0, 'a.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-9-13.js b/test/built-ins/Array/prototype/map/15.4.4.19-9-13.js
index f84a937ee..d4c208ccd 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-9-13.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-9-13.js
@@ -9,16 +9,16 @@ description: >
functions, O is unmodified
---*/
-var called = 0;
+ var called = 0;
-function callbackfn(val, idx, obj) {
- called++;
- return val > 2;
-}
+ function callbackfn(val, idx, obj) {
+ called++;
+ return val > 2;
+ }
-var arr = [1, 2, 3, 4];
+ var arr = [1, 2, 3, 4];
-arr.map(callbackfn);
+ arr.map(callbackfn);
assert.sameValue(arr[0], 1, 'arr[0]');
assert.sameValue(arr[1], 2, 'arr[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-9-2.js b/test/built-ins/Array/prototype/map/15.4.4.19-9-2.js
index cc3657e87..c876d7f0a 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-9-2.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-9-2.js
@@ -9,12 +9,12 @@ description: >
and values the result of callbackfn
---*/
-function callbackfn(val, idx, obj)
-{
- return val + 10;
-}
-var srcArr = [1, 2, 3, 4, 5];
-var resArr = srcArr.map(callbackfn);
+ function callbackfn(val, idx, obj)
+ {
+ return val + 10;
+ }
+ var srcArr = [1,2,3,4,5];
+ var resArr = srcArr.map(callbackfn);
assert.sameValue(resArr[0], 11, 'resArr[0]');
assert.sameValue(resArr[1], 12, 'resArr[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-9-3.js b/test/built-ins/Array/prototype/map/15.4.4.19-9-3.js
index 815868a48..f89f39c9c 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-9-3.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-9-3.js
@@ -7,14 +7,13 @@ es5id: 15.4.4.19-9-3
description: Array.prototype.map - subclassed array when length is reduced
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = 1;
-function foo() {}
-var f = new foo();
-f.length = 1;
-
-function cb() {}
-var a = f.map(cb);
+ function cb(){}
+ var a = f.map(cb);
assert(Array.isArray(a), 'Array.isArray(a) !== true');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-9-4.js b/test/built-ins/Array/prototype/map/15.4.4.19-9-4.js
index 3c01de3d0..f27f93bf0 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-9-4.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-9-4.js
@@ -7,16 +7,15 @@ es5id: 15.4.4.19-9-4
description: Array.prototype.map doesn't visit expandos
---*/
-var callCnt = 0;
+ var callCnt = 0;
+ function callbackfn(val, idx, obj)
+ {
+ callCnt++;
+ }
+ var srcArr = [1,2,3,4,5];
+ srcArr["i"] = 10;
+ srcArr[true] = 11;
-function callbackfn(val, idx, obj)
-{
- callCnt++;
-}
-var srcArr = [1, 2, 3, 4, 5];
-srcArr["i"] = 10;
-srcArr[true] = 11;
-
-var resArr = srcArr.map(callbackfn);
+ var resArr = srcArr.map(callbackfn);
assert.sameValue(callCnt, 5, 'callCnt');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-9-5.js b/test/built-ins/Array/prototype/map/15.4.4.19-9-5.js
index 6c04bb72e..84ca53f15 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-9-5.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-9-5.js
@@ -9,16 +9,12 @@ description: >
(empty array)
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var obj = {
- 0: 9,
- 1: 8,
- length: 0
-};
+ var obj = { 0: 9, 1: 8, length: 0 };
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult.length, 0, 'testResult.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-9-6.js b/test/built-ins/Array/prototype/map/15.4.4.19-9-6.js
index a44859e17..e2adc884c 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-9-6.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-9-6.js
@@ -9,15 +9,15 @@ description: >
(subclassed Array, length overridden to null (type conversion))
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var Foo = function() {};
-Foo.prototype = [1, 2, 3];
-var obj = new Foo();
-obj.length = null;
+ var Foo = function () { };
+ Foo.prototype = [1, 2, 3];
+ var obj = new Foo();
+ obj.length = null;
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult.length, 0, 'testResult.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-9-7.js b/test/built-ins/Array/prototype/map/15.4.4.19-9-7.js
index 3370cc36c..b6ebf35ee 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-9-7.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-9-7.js
@@ -9,18 +9,18 @@ description: >
(subclassed Array, length overridden to false (type conversion))
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+ }
-var Foo = function() {};
-Foo.prototype = [1, 2, 3];
-var obj = new Foo();
-obj.length = false;
+ var Foo = function () { };
+ Foo.prototype = [1, 2, 3];
+ var obj = new Foo();
+ obj.length = false;
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult.length, 0, 'testResult.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-9-8.js b/test/built-ins/Array/prototype/map/15.4.4.19-9-8.js
index 9e08d61d3..fe1e1f5e4 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-9-8.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-9-8.js
@@ -9,18 +9,18 @@ description: >
(subclassed Array, length overridden to 0 (type conversion))
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+ }
-var Foo = function() {};
-Foo.prototype = [1, 2, 3];
-var obj = new Foo();
-obj.length = 0;
+ var Foo = function () { };
+ Foo.prototype = [1, 2, 3];
+ var obj = new Foo();
+ obj.length = 0;
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult.length, 0, 'testResult.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-9-9.js b/test/built-ins/Array/prototype/map/15.4.4.19-9-9.js
index 73425afa1..31d18a807 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-9-9.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-9-9.js
@@ -9,18 +9,18 @@ description: >
(subclassed Array, length overridden to '0' (type conversion))
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+ }
-var Foo = function() {};
-Foo.prototype = [1, 2, 3];
-var obj = new Foo();
-obj.length = '0';
+ var Foo = function () { };
+ Foo.prototype = [1, 2, 3];
+ var obj = new Foo();
+ obj.length = '0';
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult.length, 0, 'testResult.length');
diff --git a/test/built-ins/Array/prototype/map/create-ctor-non-object.js b/test/built-ins/Array/prototype/map/create-ctor-non-object.js
index 505b661ce..b020704a2 100644
--- a/test/built-ins/Array/prototype/map/create-ctor-non-object.js
+++ b/test/built-ins/Array/prototype/map/create-ctor-non-object.js
@@ -20,9 +20,7 @@ info: |
var a = [];
var callCount = 0;
-var cb = function() {
- callCount += 0;
-};
+var cb = function() { callCount += 0; };
a.constructor = null;
assert.throws(TypeError, function() {
diff --git a/test/built-ins/Array/prototype/map/create-ctor-poisoned.js b/test/built-ins/Array/prototype/map/create-ctor-poisoned.js
index 39318bb94..f99c51bdd 100644
--- a/test/built-ins/Array/prototype/map/create-ctor-poisoned.js
+++ b/test/built-ins/Array/prototype/map/create-ctor-poisoned.js
@@ -17,9 +17,7 @@ info: |
var a = [];
var callCount = 0;
-var cb = function() {
- callCount += 1;
-};
+var cb = function() { callCount += 1; };
Object.defineProperty(a, 'constructor', {
get: function() {
diff --git a/test/built-ins/Array/prototype/map/create-non-array-invalid-len.js b/test/built-ins/Array/prototype/map/create-non-array-invalid-len.js
index 125e50a38..484b77e6f 100644
--- a/test/built-ins/Array/prototype/map/create-non-array-invalid-len.js
+++ b/test/built-ins/Array/prototype/map/create-non-array-invalid-len.js
@@ -22,9 +22,7 @@ info: |
---*/
var callCount = 0;
-var obj = {
- length: Math.pow(2, 32)
-};
+var obj = { length: Math.pow(2, 32) };
var cb = function() {
callCount += 1;
};
diff --git a/test/built-ins/Array/prototype/map/create-non-array.js b/test/built-ins/Array/prototype/map/create-non-array.js
index 077d421df..05f315eba 100644
--- a/test/built-ins/Array/prototype/map/create-non-array.js
+++ b/test/built-ins/Array/prototype/map/create-non-array.js
@@ -16,9 +16,7 @@ info: |
4. If isArray is false, return ? ArrayCreate(length).
---*/
-var obj = {
- length: 0
-};
+var obj = { length: 0 };
var callCount = 0;
var result;
Object.defineProperty(obj, 'constructor', {
diff --git a/test/built-ins/Array/prototype/map/create-revoked-proxy.js b/test/built-ins/Array/prototype/map/create-revoked-proxy.js
index 77967d256..a725bc877 100644
--- a/test/built-ins/Array/prototype/map/create-revoked-proxy.js
+++ b/test/built-ins/Array/prototype/map/create-revoked-proxy.js
@@ -26,9 +26,7 @@ features: [Proxy]
var o = Proxy.revocable([], {});
var ctorCount = 0;
var cbCount = 0;
-var cb = function() {
- cbCount += 1;
-};
+var cb = function() { cbCount += 1; };
Object.defineProperty(o.proxy, 'constructor', {
get: function() {
diff --git a/test/built-ins/Array/prototype/map/create-species-abrupt.js b/test/built-ins/Array/prototype/map/create-species-abrupt.js
index 5c6656f28..dec04db2e 100644
--- a/test/built-ins/Array/prototype/map/create-species-abrupt.js
+++ b/test/built-ins/Array/prototype/map/create-species-abrupt.js
@@ -26,9 +26,7 @@ var Ctor = function() {
throw new Test262Error();
};
var callCount = 0;
-var cb = function() {
- callCount += 1;
-};
+var cb = function() { callCount += 1; };
var a = [];
a.constructor = {};
a.constructor[Symbol.species] = Ctor;
diff --git a/test/built-ins/Array/prototype/map/create-species-non-ctor.js b/test/built-ins/Array/prototype/map/create-species-non-ctor.js
index 661894f6f..50657fef7 100644
--- a/test/built-ins/Array/prototype/map/create-species-non-ctor.js
+++ b/test/built-ins/Array/prototype/map/create-species-non-ctor.js
@@ -25,9 +25,7 @@ features: [Symbol.species]
var a = [];
var callCount = 0;
-var cb = function() {
- callCount += 1;
-};
+var cb = function() { callCount += 1; };
a.constructor = {};
a.constructor[Symbol.species] = parseInt;
diff --git a/test/built-ins/Array/prototype/map/create-species-poisoned.js b/test/built-ins/Array/prototype/map/create-species-poisoned.js
index a232b6aa0..11fb340d3 100644
--- a/test/built-ins/Array/prototype/map/create-species-poisoned.js
+++ b/test/built-ins/Array/prototype/map/create-species-poisoned.js
@@ -21,9 +21,7 @@ features: [Symbol.species]
var a = [];
var callCount = 0;
-var cb = function() {
- callCount += 1;
-};
+var cb = function() { callCount += 1; };
a.constructor = {};
Object.defineProperty(a.constructor, Symbol.species, {
diff --git a/test/built-ins/Array/prototype/map/create-species-undef-invalid-len.js b/test/built-ins/Array/prototype/map/create-species-undef-invalid-len.js
index bcd781bca..bcd89aadf 100644
--- a/test/built-ins/Array/prototype/map/create-species-undef-invalid-len.js
+++ b/test/built-ins/Array/prototype/map/create-species-undef-invalid-len.js
@@ -32,9 +32,7 @@ var array = [];
var maxLength = Math.pow(2, 32);
var cbCount = 0;
var setCount = 0;
-var cb = function() {
- cbCount += 1;
-};
+var cb = function() { cbCount += 1; };
var proxy = new Proxy(array, {
get: function(_, name) {
if (name === 'length') {
diff --git a/test/built-ins/Array/prototype/pop/S15.4.4.6_A1.1_T1.js b/test/built-ins/Array/prototype/pop/S15.4.4.6_A1.1_T1.js
index f0c867df5..7b729afba 100644
--- a/test/built-ins/Array/prototype/pop/S15.4.4.6_A1.1_T1.js
+++ b/test/built-ins/Array/prototype/pop/S15.4.4.6_A1.1_T1.js
@@ -23,7 +23,7 @@ if (x.length !== 0) {
}
//CHECK#3
-var x = Array(1, 2, 3);
+var x = Array(1,2,3);
x.length = 0;
var pop = x.pop();
if (pop !== undefined) {
diff --git a/test/built-ins/Array/prototype/pop/S15.4.4.6_A1.2_T1.js b/test/built-ins/Array/prototype/pop/S15.4.4.6_A1.2_T1.js
index 0e0cf824a..b12c14952 100644
--- a/test/built-ins/Array/prototype/pop/S15.4.4.6_A1.2_T1.js
+++ b/test/built-ins/Array/prototype/pop/S15.4.4.6_A1.2_T1.js
@@ -11,7 +11,7 @@ description: Checking this use new Array() and []
---*/
//CHECK#1
-var x = new Array(0, 1, 2, 3);
+var x = new Array(0,1,2,3);
var pop = x.pop();
if (pop !== 3) {
$ERROR('#1: x = new Array(0,1,2,3); x.pop() === 3. Actual: ' + (pop));
diff --git a/test/built-ins/Array/prototype/pop/S15.4.4.6_A2_T1.js b/test/built-ins/Array/prototype/pop/S15.4.4.6_A2_T1.js
index 0ab566a45..32ce3b74c 100644
--- a/test/built-ins/Array/prototype/pop/S15.4.4.6_A2_T1.js
+++ b/test/built-ins/Array/prototype/pop/S15.4.4.6_A2_T1.js
@@ -18,15 +18,15 @@ obj.pop = Array.prototype.pop;
if (obj.length !== undefined) {
$ERROR('#0: var obj = {}; obj.length === undefined. Actual: ' + (obj.length));
} else {
- //CHECK#1
- var pop = obj.pop();
- if (pop !== undefined) {
- $ERROR('#1: var obj = {}; obj.pop = Array.prototype.pop; obj.pop() === undefined. Actual: ' + (pop));
- }
- //CHECK#2
- if (obj.length !== 0) {
- $ERROR('#2: var obj = {}; obj.pop = Array.prototype.pop; obj.pop(); obj.length === 0. Actual: ' + (obj.length));
- }
+ //CHECK#1
+ var pop = obj.pop();
+if (pop !== undefined) {
+ $ERROR('#1: var obj = {}; obj.pop = Array.prototype.pop; obj.pop() === undefined. Actual: ' + (pop));
+ }
+ //CHECK#2
+ if (obj.length !== 0) {
+ $ERROR('#2: var obj = {}; obj.pop = Array.prototype.pop; obj.pop(); obj.length === 0. Actual: ' + (obj.length));
+ }
}
//CHECK#3
diff --git a/test/built-ins/Array/prototype/pop/S15.4.4.6_A2_T2.js b/test/built-ins/Array/prototype/pop/S15.4.4.6_A2_T2.js
index 3573d2a23..ace9cd555 100644
--- a/test/built-ins/Array/prototype/pop/S15.4.4.6_A2_T2.js
+++ b/test/built-ins/Array/prototype/pop/S15.4.4.6_A2_T2.js
@@ -62,7 +62,7 @@ if (pop !== undefined) {
if (obj.length !== 0) {
$ERROR('#8: var obj = {}; obj.length = -0; obj.pop = Array.prototype.pop; obj.pop(); obj.length === 0. Actual: ' + (obj.length));
} else {
- if (1 / obj.length !== Number.POSITIVE_INFINITY) {
+ if (1/obj.length !== Number.POSITIVE_INFINITY) {
$ERROR('#8: var obj = {}; obj.length = -0; obj.pop = Array.prototype.pop; obj.pop(); obj.length === +0. Actual: ' + (obj.length));
}
}
diff --git a/test/built-ins/Array/prototype/pop/S15.4.4.6_A2_T4.js b/test/built-ins/Array/prototype/pop/S15.4.4.6_A2_T4.js
index d4dcd8184..43d1f76e1 100644
--- a/test/built-ins/Array/prototype/pop/S15.4.4.6_A2_T4.js
+++ b/test/built-ins/Array/prototype/pop/S15.4.4.6_A2_T4.js
@@ -17,11 +17,7 @@ obj.pop = Array.prototype.pop;
//CHECK#1
obj[0] = -1;
-obj.length = {
- valueOf: function() {
- return 1
- }
-};
+obj.length = {valueOf: function() {return 1}};
var pop = obj.pop();
if (pop !== -1) {
$ERROR('#1: obj[0] = -1; obj.length = {valueOf: function() {return 1}} obj.pop() === -1. Actual: ' + (pop));
@@ -29,14 +25,7 @@ if (pop !== -1) {
//CHECK#2
obj[0] = -1;
-obj.length = {
- valueOf: function() {
- return 1
- },
- toString: function() {
- return 0
- }
-};
+obj.length = {valueOf: function() {return 1}, toString: function() {return 0}};
var pop = obj.pop();
if (pop !== -1) {
$ERROR('#0: obj[0] = -1; obj.length = {valueOf: function() {return 1}, toString: function() {return 0}} obj.pop() === -1. Actual: ' + (pop));
@@ -44,14 +33,7 @@ if (pop !== -1) {
//CHECK#3
obj[0] = -1;
-obj.length = {
- valueOf: function() {
- return 1
- },
- toString: function() {
- return {}
- }
-};
+obj.length = {valueOf: function() {return 1}, toString: function() {return {}}};
var pop = obj.pop();
if (pop !== -1) {
$ERROR('#3: obj[0] = -1; obj.length = {valueOf: function() {return 1}, toString: function() {return {}}} obj.pop() === -1. Actual: ' + (pop));
@@ -60,16 +42,9 @@ if (pop !== -1) {
//CHECK#4
try {
obj[0] = -1;
- obj.length = {
- valueOf: function() {
- return 1
- },
- toString: function() {
- throw "error"
- }
- };
+ obj.length = {valueOf: function() {return 1}, toString: function() {throw "error"}};
var pop = obj.pop();
- if (pop !== -1) {
+if (pop !== -1) {
$ERROR('#4.1: obj[0] = -1; obj.length = {valueOf: function() {return 1}, toString: function() {throw "error"}}; obj.pop() === ",". Actual: ' + (pop));
}
}
@@ -83,11 +58,7 @@ catch (e) {
//CHECK#5
obj[0] = -1;
-obj.length = {
- toString: function() {
- return 0
- }
-};
+obj.length = {toString: function() {return 0}};
var pop = obj.pop();
if (pop !== undefined) {
$ERROR('#5: obj[0] = -1; obj.length = {toString: function() {return 0}} obj.pop() === undefined. Actual: ' + (pop));
@@ -95,14 +66,7 @@ if (pop !== undefined) {
//CHECK#6
obj[0] = -1;
-obj.length = {
- valueOf: function() {
- return {}
- },
- toString: function() {
- return 0
- }
-}
+obj.length = {valueOf: function() {return {}}, toString: function() {return 0}}
var pop = obj.pop();
if (pop !== undefined) {
$ERROR('#6: obj[0] = -1; obj.length = {valueOf: function() {return {}}, toString: function() {return 0}} obj.pop() === undefined. Actual: ' + (pop));
@@ -111,14 +75,7 @@ if (pop !== undefined) {
//CHECK#7
try {
obj[0] = -1;
- obj.length = {
- valueOf: function() {
- throw "error"
- },
- toString: function() {
- return 0
- }
- };
+ obj.length = {valueOf: function() {throw "error"}, toString: function() {return 0}};
var pop = obj.pop();
$ERROR('#7.1: obj[0] = -1; obj.length = {valueOf: function() {throw "error"}, toString: function() {return 0}}; obj.pop() throw "error". Actual: ' + (pop));
}
@@ -131,14 +88,7 @@ catch (e) {
//CHECK#8
try {
obj[0] = -1;
- obj.length = {
- valueOf: function() {
- return {}
- },
- toString: function() {
- return {}
- }
- };
+ obj.length = {valueOf: function() {return {}}, toString: function() {return {}}};
var pop = obj.pop();
$ERROR('#8.1: obj[0] = -1; obj.length = {valueOf: function() {return {}}, toString: function() {return {}}} obj.pop() throw TypeError. Actual: ' + (pop));
}
diff --git a/test/built-ins/Array/prototype/pop/S15.4.4.6_A3_T1.js b/test/built-ins/Array/prototype/pop/S15.4.4.6_A3_T1.js
index 424b9943c..2be2539f5 100644
--- a/test/built-ins/Array/prototype/pop/S15.4.4.6_A3_T1.js
+++ b/test/built-ins/Array/prototype/pop/S15.4.4.6_A3_T1.js
@@ -27,10 +27,10 @@ if (obj.length !== 4294967295) {
//CHECK#3
if (obj[0] !== "x") {
- $ERROR('#3: var obj = {}; obj.pop = Array.prototype.pop; obj[0] = "x"; obj[4294967295] = "y"; obj.length = 4294967296; obj.pop(); obj[0] === "x". Actual: ' + (obj[0]));
+ $ERROR('#3: var obj = {}; obj.pop = Array.prototype.pop; obj[0] = "x"; obj[4294967295] = "y"; obj.length = 4294967296; obj.pop(); obj[0] === "x". Actual: ' + (obj[0]));
}
//CHECK#4
if (obj[4294967295] !== undefined) {
- $ERROR('#4: var obj = {}; obj.pop = Array.prototype.pop; obj[0] = "x"; obj[4294967295] = "y"; obj.length = 4294967296; obj.pop(); obj[4294967295] === undefined. Actual: ' + (obj[4294967295]));
+ $ERROR('#4: var obj = {}; obj.pop = Array.prototype.pop; obj[0] = "x"; obj[4294967295] = "y"; obj.length = 4294967296; obj.pop(); obj[4294967295] === undefined. Actual: ' + (obj[4294967295]));
}
diff --git a/test/built-ins/Array/prototype/pop/S15.4.4.6_A3_T2.js b/test/built-ins/Array/prototype/pop/S15.4.4.6_A3_T2.js
index b309bc48a..fdbbc28cf 100644
--- a/test/built-ins/Array/prototype/pop/S15.4.4.6_A3_T2.js
+++ b/test/built-ins/Array/prototype/pop/S15.4.4.6_A3_T2.js
@@ -27,10 +27,10 @@ if (obj.length !== 4294967296) {
//CHECK#3
if (obj[0] !== "x") {
- $ERROR('#3: var obj = {}; obj.pop = Array.prototype.pop; obj[0] = "x"; obj[4294967296] = "y"; obj.length = 4294967297; obj.pop(); obj[0] === "x". Actual: ' + (obj[0]));
+ $ERROR('#3: var obj = {}; obj.pop = Array.prototype.pop; obj[0] = "x"; obj[4294967296] = "y"; obj.length = 4294967297; obj.pop(); obj[0] === "x". Actual: ' + (obj[0]));
}
//CHECK#4
if (obj[4294967296] !== undefined) {
- $ERROR('#4: var obj = {}; obj.pop = Array.prototype.pop; obj[0] = "x"; obj[4294967296] = "y"; obj.length = 4294967297; obj.pop(); obj[4294967296] === undefined. Actual: ' + (obj[4294967296]));
+ $ERROR('#4: var obj = {}; obj.pop = Array.prototype.pop; obj[0] = "x"; obj[4294967296] = "y"; obj.length = 4294967297; obj.pop(); obj[4294967296] === undefined. Actual: ' + (obj[4294967296]));
}
diff --git a/test/built-ins/Array/prototype/pop/S15.4.4.6_A3_T3.js b/test/built-ins/Array/prototype/pop/S15.4.4.6_A3_T3.js
index 56919c555..4b9c4020b 100644
--- a/test/built-ins/Array/prototype/pop/S15.4.4.6_A3_T3.js
+++ b/test/built-ins/Array/prototype/pop/S15.4.4.6_A3_T3.js
@@ -26,5 +26,5 @@ if (obj.length !== 0) {
//CHECK#3
if (obj[4294967294] !== "x") {
- $ERROR('#3: var obj = {}; obj.pop = Array.prototype.pop; obj[4294967294] = "x"; obj.length = -1; obj.pop(); obj[4294967294] === "x". Actual: ' + (obj[4294967294]));
+ $ERROR('#3: var obj = {}; obj.pop = Array.prototype.pop; obj[4294967294] = "x"; obj.length = -1; obj.pop(); obj[4294967294] === "x". Actual: ' + (obj[4294967294]));
}
diff --git a/test/built-ins/Array/prototype/pop/S15.4.4.6_A4_T1.js b/test/built-ins/Array/prototype/pop/S15.4.4.6_A4_T1.js
index b5ebe7a12..45d5af886 100644
--- a/test/built-ins/Array/prototype/pop/S15.4.4.6_A4_T1.js
+++ b/test/built-ins/Array/prototype/pop/S15.4.4.6_A4_T1.js
@@ -28,9 +28,7 @@ if (x[1] !== 1) {
Object.prototype[1] = 1;
Object.prototype.length = 2;
Object.prototype.pop = Array.prototype.pop;
-x = {
- 0: 0
-};
+x = {0:0};
//CHECK#3
var pop = x.pop();
diff --git a/test/built-ins/Array/prototype/pop/S15.4.4.6_A4_T2.js b/test/built-ins/Array/prototype/pop/S15.4.4.6_A4_T2.js
index 3592d7253..7ef34c737 100644
--- a/test/built-ins/Array/prototype/pop/S15.4.4.6_A4_T2.js
+++ b/test/built-ins/Array/prototype/pop/S15.4.4.6_A4_T2.js
@@ -11,7 +11,7 @@ description: >
---*/
Array.prototype[1] = -1;
-var x = [0, 1];
+var x = [0,1];
x.length = 2;
//CHECK#1
@@ -28,10 +28,7 @@ if (x[1] !== -1) {
Object.prototype[1] = -1;
Object.prototype.length = 2;
Object.prototype.pop = Array.prototype.pop;
-x = {
- 0: 0,
- 1: 1
-};
+x = {0:0,1:1};
//CHECK#3
var pop = x.pop();
diff --git a/test/built-ins/Array/prototype/pop/clamps-to-integer-limit.js b/test/built-ins/Array/prototype/pop/clamps-to-integer-limit.js
index 0c5899a55..92adbd6ab 100644
--- a/test/built-ins/Array/prototype/pop/clamps-to-integer-limit.js
+++ b/test/built-ins/Array/prototype/pop/clamps-to-integer-limit.js
@@ -18,18 +18,18 @@ info: |
var arrayLike = {};
-arrayLike.length = 2 ** 53 - 1;
+arrayLike.length = 2**53 - 1;
Array.prototype.pop.call(arrayLike);
-assert.sameValue(arrayLike.length, 2 ** 53 - 2, "Length is 2**53 - 1");
+assert.sameValue(arrayLike.length, 2**53 - 2, "Length is 2**53 - 1");
-arrayLike.length = 2 ** 53;
+arrayLike.length = 2**53;
Array.prototype.pop.call(arrayLike);
-assert.sameValue(arrayLike.length, 2 ** 53 - 2, "Length is 2**53");
+assert.sameValue(arrayLike.length, 2**53 - 2, "Length is 2**53");
-arrayLike.length = 2 ** 53 + 2;
+arrayLike.length = 2**53 + 2;
Array.prototype.pop.call(arrayLike);
-assert.sameValue(arrayLike.length, 2 ** 53 - 2, "Length is 2**53 + 2");
+assert.sameValue(arrayLike.length, 2**53 - 2, "Length is 2**53 + 2");
arrayLike.length = Infinity;
Array.prototype.pop.call(arrayLike);
-assert.sameValue(arrayLike.length, 2 ** 53 - 2, "Length is Infinity");
+assert.sameValue(arrayLike.length, 2**53 - 2, "Length is Infinity");
diff --git a/test/built-ins/Array/prototype/pop/length-near-integer-limit.js b/test/built-ins/Array/prototype/pop/length-near-integer-limit.js
index a480b9c6c..7763b8f3c 100644
--- a/test/built-ins/Array/prototype/pop/length-near-integer-limit.js
+++ b/test/built-ins/Array/prototype/pop/length-near-integer-limit.js
@@ -22,22 +22,22 @@ var arrayLike = {
"9007199254740989": "9007199254740989",
"9007199254740990": "9007199254740990",
"9007199254740991": "9007199254740991",
- length: 2 ** 53 - 1
+ length: 2**53 - 1
};
var value = Array.prototype.pop.call(arrayLike);
assert.sameValue(value, "9007199254740990",
- "arrayLike['9007199254740990'] is returned from pop()");
+ "arrayLike['9007199254740990'] is returned from pop()");
-assert.sameValue(arrayLike.length, 2 ** 53 - 2,
- "New arrayLike.length is 2**53 - 2");
+assert.sameValue(arrayLike.length, 2**53 - 2,
+ "New arrayLike.length is 2**53 - 2");
assert.sameValue(arrayLike["9007199254740989"], "9007199254740989",
- "arrayLike['9007199254740989'] is unchanged");
+ "arrayLike['9007199254740989'] is unchanged");
assert.sameValue("9007199254740990" in arrayLike, false,
- "arrayLike['9007199254740990'] is removed");
+ "arrayLike['9007199254740990'] is removed");
assert.sameValue(arrayLike["9007199254740991"], "9007199254740991",
- "arrayLike['9007199254740991'] is unchanged");
+ "arrayLike['9007199254740991'] is unchanged");
diff --git a/test/built-ins/Array/prototype/push/S15.4.4.7_A2_T1.js b/test/built-ins/Array/prototype/push/S15.4.4.7_A2_T1.js
index 8d2e84db9..181e68ca0 100644
--- a/test/built-ins/Array/prototype/push/S15.4.4.7_A2_T1.js
+++ b/test/built-ins/Array/prototype/push/S15.4.4.7_A2_T1.js
@@ -19,19 +19,19 @@ obj.push = Array.prototype.push;
if (obj.length !== undefined) {
$ERROR('#0: var obj = {}; obj.length === undefined. Actual: ' + (obj.length));
} else {
- //CHECK#1
- var push = obj.push(-1);
- if (push !== 1) {
- $ERROR('#1: var obj = {}; obj.push = Array.prototype.push; obj.push(-1) === 1. Actual: ' + (push));
- }
- //CHECK#2
- if (obj.length !== 1) {
- $ERROR('#2: var obj = {}; obj.push = Array.prototype.push; obj.push(-1); obj.length === 1. Actual: ' + (obj.length));
- }
- //CHECK#3
- if (obj["0"] !== -1) {
- $ERROR('#3: var obj = {}; obj.push = Array.prototype.push; obj.push(-1); obj["0"] === -1. Actual: ' + (obj["0"]));
- }
+ //CHECK#1
+ var push = obj.push(-1);
+if (push !== 1) {
+ $ERROR('#1: var obj = {}; obj.push = Array.prototype.push; obj.push(-1) === 1. Actual: ' + (push));
+ }
+ //CHECK#2
+ if (obj.length !== 1) {
+ $ERROR('#2: var obj = {}; obj.push = Array.prototype.push; obj.push(-1); obj.length === 1. Actual: ' + (obj.length));
+ }
+ //CHECK#3
+ if (obj["0"] !== -1) {
+ $ERROR('#3: var obj = {}; obj.push = Array.prototype.push; obj.push(-1); obj["0"] === -1. Actual: ' + (obj["0"]));
+ }
}
//CHECK#4
diff --git a/test/built-ins/Array/prototype/push/S15.4.4.7_A2_T2.js b/test/built-ins/Array/prototype/push/S15.4.4.7_A2_T2.js
index 6c5c1c4ad..04ab24c3c 100644
--- a/test/built-ins/Array/prototype/push/S15.4.4.7_A2_T2.js
+++ b/test/built-ins/Array/prototype/push/S15.4.4.7_A2_T2.js
@@ -35,9 +35,7 @@ if (obj["0"] !== -1) {
//CHECK#4
obj.length = Number.POSITIVE_INFINITY;
-assert.throws(TypeError, function() {
- obj.push(-4);
-});
+assert.throws(TypeError, function() { obj.push(-4); });
//CHECK#5
if (obj.length !== Number.POSITIVE_INFINITY) {
diff --git a/test/built-ins/Array/prototype/push/S15.4.4.7_A2_T3.js b/test/built-ins/Array/prototype/push/S15.4.4.7_A2_T3.js
index 32aa88216..f92536cc6 100644
--- a/test/built-ins/Array/prototype/push/S15.4.4.7_A2_T3.js
+++ b/test/built-ins/Array/prototype/push/S15.4.4.7_A2_T3.js
@@ -16,39 +16,21 @@ var obj = {};
obj.push = Array.prototype.push;
//CHECK#1
-obj.length = {
- valueOf: function() {
- return 3
- }
-};
+obj.length = {valueOf: function() {return 3}};
var push = obj.push();
if (push !== 3) {
$ERROR('#1: obj.length = {valueOf: function() {return 3}} obj.push() === 3. Actual: ' + (push));
}
//CHECK#2
-obj.length = {
- valueOf: function() {
- return 3
- },
- toString: function() {
- return 1
- }
-};
+obj.length = {valueOf: function() {return 3}, toString: function() {return 1}};
var push = obj.push();
if (push !== 3) {
$ERROR('#0: obj.length = {valueOf: function() {return 3}, toString: function() {return 1}} obj.push() === 3. Actual: ' + (push));
}
//CHECK#3
-obj.length = {
- valueOf: function() {
- return 3
- },
- toString: function() {
- return {}
- }
-};
+obj.length = {valueOf: function() {return 3}, toString: function() {return {}}};
var push = obj.push();
if (push !== 3) {
$ERROR('#1: obj.length = {valueOf: function() {return 3}, toString: function() {return {}}} obj.push() === 3. Actual: ' + (push));
@@ -57,16 +39,9 @@ if (push !== 3) {
//CHECK#4
try {
- obj.length = {
- valueOf: function() {
- return 3
- },
- toString: function() {
- throw "error"
- }
- };
+ obj.length = {valueOf: function() {return 3}, toString: function() {throw "error"}};
var push = obj.push();
- if (push !== 3) {
+if (push !== 3) {
$ERROR('#4.1: obj.length = {valueOf: function() {return 3}, toString: function() {throw "error"}}; obj.push() === ",". Actual: ' + (push));
}
}
@@ -79,25 +54,14 @@ catch (e) {
}
//CHECK#5
-obj.length = {
- toString: function() {
- return 1
- }
-};
+obj.length = {toString: function() {return 1}};
var push = obj.push();
if (push !== 1) {
$ERROR('#5: obj.length = {toString: function() {return 1}} obj.push() === 1. Actual: ' + (push));
}
//CHECK#6
-obj.length = {
- valueOf: function() {
- return {}
- },
- toString: function() {
- return 1
- }
-}
+obj.length = {valueOf: function() {return {}}, toString: function() {return 1}}
var push = obj.push();
if (push !== 1) {
$ERROR('#6: obj.length = {valueOf: function() {return {}}, toString: function() {return 1}} obj.push() === 1. Actual: ' + (push));
@@ -106,14 +70,7 @@ if (push !== 1) {
//CHECK#7
try {
- obj.length = {
- valueOf: function() {
- throw "error"
- },
- toString: function() {
- return 1
- }
- };
+ obj.length = {valueOf: function() {throw "error"}, toString: function() {return 1}};
var push = obj.push();
$ERROR('#7.1: obj.length = {valueOf: function() {throw "error"}, toString: function() {return 1}}; obj.push() throw "error". Actual: ' + (push));
}
@@ -126,14 +83,7 @@ catch (e) {
//CHECK#8
try {
- obj.length = {
- valueOf: function() {
- return {}
- },
- toString: function() {
- return {}
- }
- };
+ obj.length = {valueOf: function() {return {}}, toString: function() {return {}}};
var push = obj.push();
$ERROR('#8.1: obj.length = {valueOf: function() {return {}}, toString: function() {return {}}} obj.push() throw TypeError. Actual: ' + (push));
}
diff --git a/test/built-ins/Array/prototype/push/S15.4.4.7_A3.js b/test/built-ins/Array/prototype/push/S15.4.4.7_A3.js
index d9b26a6e3..dd596aefd 100644
--- a/test/built-ins/Array/prototype/push/S15.4.4.7_A3.js
+++ b/test/built-ins/Array/prototype/push/S15.4.4.7_A3.js
@@ -21,7 +21,7 @@ if (push !== 4294967295) {
try {
x.push("x");
$ERROR('#2.1: x = []; x.length = 4294967295; x.push("x") throw RangeError. Actual: ' + (push));
-} catch (e) {
+} catch(e) {
if ((e instanceof RangeError) !== true) {
$ERROR('#2.2: x = []; x.length = 4294967295; x.push("x") throw RangeError. Actual: ' + (e));
}
@@ -29,10 +29,10 @@ try {
//CHECK#3
if (x[4294967295] !== "x") {
- $ERROR('#3: x = []; x.length = 4294967295; try {x.push("x")}catch(e){}; x[4294967295] === "x". Actual: ' + (x[4294967295]));
+ $ERROR('#3: x = []; x.length = 4294967295; try {x.push("x")}catch(e){}; x[4294967295] === "x". Actual: ' + (x[4294967295]));
}
//CHECK#4
if (x.length !== 4294967295) {
- $ERROR('#4: x = []; x.length = 4294967295; try {x.push("x")}catch(e){}; x.length === 4294967295. Actual: ' + (x.length));
+ $ERROR('#4: x = []; x.length = 4294967295; try {x.push("x")}catch(e){}; x.length === 4294967295. Actual: ' + (x.length));
}
diff --git a/test/built-ins/Array/prototype/push/S15.4.4.7_A4_T1.js b/test/built-ins/Array/prototype/push/S15.4.4.7_A4_T1.js
index 90ed3ae4c..bc762776c 100644
--- a/test/built-ins/Array/prototype/push/S15.4.4.7_A4_T1.js
+++ b/test/built-ins/Array/prototype/push/S15.4.4.7_A4_T1.js
@@ -25,32 +25,32 @@ if (obj.length !== 4294967299) {
//CHECK#3
if (obj[0] !== undefined) {
- $ERROR('#3: var obj = {}; obj.push = Array.prototype.push; obj.length = 4294967296; obj.push("x", "y", "z"); obj[0] === undefined. Actual: ' + (obj[0]));
+ $ERROR('#3: var obj = {}; obj.push = Array.prototype.push; obj.length = 4294967296; obj.push("x", "y", "z"); obj[0] === undefined. Actual: ' + (obj[0]));
}
//CHECK#4
if (obj[1] !== undefined) {
- $ERROR('#4: var obj = {}; obj.push = Array.prototype.push; obj.length = 4294967296; obj.push("x", "y", "z"); obj[1] === undefined. Actual: ' + (obj[1]));
+ $ERROR('#4: var obj = {}; obj.push = Array.prototype.push; obj.length = 4294967296; obj.push("x", "y", "z"); obj[1] === undefined. Actual: ' + (obj[1]));
}
//CHECK#5
if (obj[2] !== undefined) {
- $ERROR('#5: var obj = {}; obj.push = Array.prototype.push; obj.length = 4294967296; obj.push("x", "y", "z"); obj[2] === undefined. Actual: ' + (obj[2]));
+ $ERROR('#5: var obj = {}; obj.push = Array.prototype.push; obj.length = 4294967296; obj.push("x", "y", "z"); obj[2] === undefined. Actual: ' + (obj[2]));
}
//CHECK#6
if (obj[4294967296] !== "x") {
- $ERROR('#6: var obj = {}; obj.push = Array.prototype.push; obj.length = 4294967296; obj.push("x", "y", "z"); obj[4294967296] === "x". Actual: ' + (obj[4294967296]));
+ $ERROR('#6: var obj = {}; obj.push = Array.prototype.push; obj.length = 4294967296; obj.push("x", "y", "z"); obj[4294967296] === "x". Actual: ' + (obj[4294967296]));
}
//CHECK#7
if (obj[4294967297] !== "y") {
- $ERROR('#7: var obj = {}; obj.push = Array.prototype.push; obj.length = 4294967296; obj.push("x", "y", "z"); obj[4294967297] === "y". Actual: ' + (obj[4294967297]));
+ $ERROR('#7: var obj = {}; obj.push = Array.prototype.push; obj.length = 4294967296; obj.push("x", "y", "z"); obj[4294967297] === "y". Actual: ' + (obj[4294967297]));
}
//CHECK#8
if (obj[4294967298] !== "z") {
- $ERROR('#8: var obj = {}; obj.push = Array.prototype.push; obj.length = 4294967296; obj.push("x", "y", "z"); obj[4294967298] === "z". Actual: ' + (obj[4294967298]));
+ $ERROR('#8: var obj = {}; obj.push = Array.prototype.push; obj.length = 4294967296; obj.push("x", "y", "z"); obj[4294967298] === "z". Actual: ' + (obj[4294967298]));
}
var obj = {};
diff --git a/test/built-ins/Array/prototype/push/S15.4.4.7_A4_T2.js b/test/built-ins/Array/prototype/push/S15.4.4.7_A4_T2.js
index 0ed4b027c..22a2c5b43 100644
--- a/test/built-ins/Array/prototype/push/S15.4.4.7_A4_T2.js
+++ b/test/built-ins/Array/prototype/push/S15.4.4.7_A4_T2.js
@@ -25,15 +25,15 @@ if (obj.length !== 4294967298) {
//CHECK#3
if (obj[4294967295] !== "x") {
- $ERROR('#3: var obj = {}; obj.push = Array.prototype.push; obj.length = 4294967295; obj.push("x", "y", "z"); obj[4294967295] === "x". Actual: ' + (obj[4294967295]));
+ $ERROR('#3: var obj = {}; obj.push = Array.prototype.push; obj.length = 4294967295; obj.push("x", "y", "z"); obj[4294967295] === "x". Actual: ' + (obj[4294967295]));
}
//CHECK#4
if (obj[4294967296] !== "y") {
- $ERROR('#4: var obj = {}; obj.push = Array.prototype.push; obj.length = 4294967295; obj.push("x", "y", "z"); obj[4294967296] === "y". Actual: ' + (obj[4294967296]));
+ $ERROR('#4: var obj = {}; obj.push = Array.prototype.push; obj.length = 4294967295; obj.push("x", "y", "z"); obj[4294967296] === "y". Actual: ' + (obj[4294967296]));
}
//CHECK#5
if (obj[4294967297] !== "z") {
- $ERROR('#5: var obj = {}; obj.push = Array.prototype.push; obj.length = 4294967295; obj.push("x", "y", "z"); obj[4294967297] === "z". Actual: ' + (obj[4294967297]));
+ $ERROR('#5: var obj = {}; obj.push = Array.prototype.push; obj.length = 4294967295; obj.push("x", "y", "z"); obj[4294967297] === "z". Actual: ' + (obj[4294967297]));
}
diff --git a/test/built-ins/Array/prototype/push/S15.4.4.7_A4_T3.js b/test/built-ins/Array/prototype/push/S15.4.4.7_A4_T3.js
index afaf0b143..464dcacca 100644
--- a/test/built-ins/Array/prototype/push/S15.4.4.7_A4_T3.js
+++ b/test/built-ins/Array/prototype/push/S15.4.4.7_A4_T3.js
@@ -25,30 +25,30 @@ if (obj.length !== 3) {
//CHECK#3
if (obj[4294967295] !== undefined) {
- $ERROR('#3: var obj = {}; obj.push = Array.prototype.push; obj.length = -1; obj.push("x", "y", "z"); obj[4294967295] === undefined. Actual: ' + (obj[4294967295]));
+ $ERROR('#3: var obj = {}; obj.push = Array.prototype.push; obj.length = -1; obj.push("x", "y", "z"); obj[4294967295] === undefined. Actual: ' + (obj[4294967295]));
}
//CHECK#4
if (obj[4294967296] !== undefined) {
- $ERROR('#4: var obj = {}; obj.push = Array.prototype.push; obj.length = -1; obj.push("x", "y", "z"); obj[4294967296] === undefined. Actual: ' + (obj[4294967296]));
+ $ERROR('#4: var obj = {}; obj.push = Array.prototype.push; obj.length = -1; obj.push("x", "y", "z"); obj[4294967296] === undefined. Actual: ' + (obj[4294967296]));
}
//CHECK#5
if (obj[4294967297] !== undefined) {
- $ERROR('#5: var obj = {}; obj.push = Array.prototype.push; obj.length = -1; obj.push("x", "y", "z"); obj[4294967297] === undefined. Actual: ' + (obj[4294967297]));
+ $ERROR('#5: var obj = {}; obj.push = Array.prototype.push; obj.length = -1; obj.push("x", "y", "z"); obj[4294967297] === undefined. Actual: ' + (obj[4294967297]));
}
//CHECK#6
if (obj[0] !== "x") {
- $ERROR('#3: var obj = {}; obj.push = Array.prototype.push; obj.length = -1; obj.push("x", "y", "z"); obj[0] === "x". Actual: ' + (obj[0]));
+ $ERROR('#3: var obj = {}; obj.push = Array.prototype.push; obj.length = -1; obj.push("x", "y", "z"); obj[0] === "x". Actual: ' + (obj[0]));
}
//CHECK#7
if (obj[1] !== "y") {
- $ERROR('#4: var obj = {}; obj.push = Array.prototype.push; obj.length = -1; obj.push("x", "y", "z"); obj[1] === "y". Actual: ' + (obj[1]));
+ $ERROR('#4: var obj = {}; obj.push = Array.prototype.push; obj.length = -1; obj.push("x", "y", "z"); obj[1] === "y". Actual: ' + (obj[1]));
}
//CHECK#8
if (obj[2] !== "z") {
- $ERROR('#5: var obj = {}; obj.push = Array.prototype.push; obj.length = -1; obj.push("x", "y", "z"); obj[2] === "z". Actual: ' + (obj[2]));
+ $ERROR('#5: var obj = {}; obj.push = Array.prototype.push; obj.length = -1; obj.push("x", "y", "z"); obj[2] === "z". Actual: ' + (obj[2]));
}
diff --git a/test/built-ins/Array/prototype/push/S15.4.4.7_A5_T1.js b/test/built-ins/Array/prototype/push/S15.4.4.7_A5_T1.js
index 70f1b41ac..6cbf65e07 100644
--- a/test/built-ins/Array/prototype/push/S15.4.4.7_A5_T1.js
+++ b/test/built-ins/Array/prototype/push/S15.4.4.7_A5_T1.js
@@ -13,9 +13,7 @@ description: >
Object.prototype[1] = -1;
Object.prototype.length = 1;
Object.prototype.push = Array.prototype.push;
-var x = {
- 0: 0
-};
+var x = {0:0};
//CHECK#1
var push = x.push(1);
diff --git a/test/built-ins/Array/prototype/push/clamps-to-integer-limit.js b/test/built-ins/Array/prototype/push/clamps-to-integer-limit.js
index 9cfc323fc..d4100dd0c 100644
--- a/test/built-ins/Array/prototype/push/clamps-to-integer-limit.js
+++ b/test/built-ins/Array/prototype/push/clamps-to-integer-limit.js
@@ -18,18 +18,18 @@ info: |
var arrayLike = {};
-arrayLike.length = 2 ** 53 - 1;
+arrayLike.length = 2**53 - 1;
Array.prototype.push.call(arrayLike);
-assert.sameValue(arrayLike.length, 2 ** 53 - 1, "Length is 2**53 - 1");
+assert.sameValue(arrayLike.length, 2**53 - 1, "Length is 2**53 - 1");
-arrayLike.length = 2 ** 53;
+arrayLike.length = 2**53;
Array.prototype.push.call(arrayLike);
-assert.sameValue(arrayLike.length, 2 ** 53 - 1, "Length is 2**53");
+assert.sameValue(arrayLike.length, 2**53 - 1, "Length is 2**53");
-arrayLike.length = 2 ** 53 + 2;
+arrayLike.length = 2**53 + 2;
Array.prototype.push.call(arrayLike);
-assert.sameValue(arrayLike.length, 2 ** 53 - 1, "Length is 2**53 + 2");
+assert.sameValue(arrayLike.length, 2**53 - 1, "Length is 2**53 + 2");
arrayLike.length = Infinity;
Array.prototype.push.call(arrayLike);
-assert.sameValue(arrayLike.length, 2 ** 53 - 1, "Length is Infinity");
+assert.sameValue(arrayLike.length, 2**53 - 1, "Length is Infinity");
diff --git a/test/built-ins/Array/prototype/push/length-near-integer-limit.js b/test/built-ins/Array/prototype/push/length-near-integer-limit.js
index 4c94e2987..b727b5115 100644
--- a/test/built-ins/Array/prototype/push/length-near-integer-limit.js
+++ b/test/built-ins/Array/prototype/push/length-near-integer-limit.js
@@ -21,19 +21,19 @@ var arrayLike = {
"9007199254740989": "9007199254740989",
/* "9007199254740990": empty */
"9007199254740991": "9007199254740991",
- length: 2 ** 53 - 2
+ length: 2**53 - 2
};
Array.prototype.push.call(arrayLike, "new-value");
-assert.sameValue(arrayLike.length, 2 ** 53 - 1,
- "New arrayLike.length is 2**53 - 1");
+assert.sameValue(arrayLike.length, 2**53 - 1,
+ "New arrayLike.length is 2**53 - 1");
assert.sameValue(arrayLike["9007199254740989"], "9007199254740989",
- "arrayLike['9007199254740989'] is unchanged");
+ "arrayLike['9007199254740989'] is unchanged");
assert.sameValue(arrayLike["9007199254740990"], "new-value",
- "arrayLike['9007199254740990'] has new value");
+ "arrayLike['9007199254740990'] has new value");
assert.sameValue(arrayLike["9007199254740991"], "9007199254740991",
- "arrayLike['9007199254740991'] is unchanged");
+ "arrayLike['9007199254740991'] is unchanged");
diff --git a/test/built-ins/Array/prototype/push/throws-if-integer-limit-exceeded.js b/test/built-ins/Array/prototype/push/throws-if-integer-limit-exceeded.js
index ae71cd417..1542fd025 100644
--- a/test/built-ins/Array/prototype/push/throws-if-integer-limit-exceeded.js
+++ b/test/built-ins/Array/prototype/push/throws-if-integer-limit-exceeded.js
@@ -17,17 +17,17 @@ info: |
var arrayLike = {};
-arrayLike.length = 2 ** 53 - 1;
+arrayLike.length = 2**53 - 1;
assert.throws(TypeError, function() {
Array.prototype.push.call(arrayLike, null);
}, "Length is 2**53 - 1");
-arrayLike.length = 2 ** 53;
+arrayLike.length = 2**53;
assert.throws(TypeError, function() {
Array.prototype.push.call(arrayLike, null);
}, "Length is 2**53");
-arrayLike.length = 2 ** 53 + 2;
+arrayLike.length = 2**53 + 2;
assert.throws(TypeError, function() {
Array.prototype.push.call(arrayLike, null);
}, "Length is 2**53 + 2");
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-1.js
index 264cd7934..fdb550a91 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-1.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-1.js
@@ -9,5 +9,5 @@ description: Array.prototype.reduce applied to undefined
assert.throws(TypeError, function() {
- Array.prototype.reduce.call(undefined);
+ Array.prototype.reduce.call(undefined);
});
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-10.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-10.js
index 04bb5ee2a..d24e9841c 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-10.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-10.js
@@ -7,11 +7,11 @@ es5id: 15.4.4.21-1-10
description: Array.prototype.reduce applied to the Math object
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return ('[object Math]' === Object.prototype.toString.call(obj));
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return ('[object Math]' === Object.prototype.toString.call(obj));
+ }
-Math.length = 1;
-Math[0] = 1;
+ Math.length = 1;
+ Math[0] = 1;
assert(Array.prototype.reduce.call(Math, callbackfn, 1), 'Array.prototype.reduce.call(Math, callbackfn, 1) !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-11.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-11.js
index 67534e339..4f4a9d6fd 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-11.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-11.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.21-1-11
description: Array.prototype.reduce applied to Date object
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return obj instanceof Date;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return obj instanceof Date;
+ }
-var obj = new Date();
-obj.length = 1;
-obj[0] = 1;
+ var obj = new Date();
+ obj.length = 1;
+ obj[0] = 1;
assert(Array.prototype.reduce.call(obj, callbackfn, 1), 'Array.prototype.reduce.call(obj, callbackfn, 1) !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-12.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-12.js
index ade27ade6..7e9604d55 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-12.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-12.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.21-1-12
description: Array.prototype.reduce applied to RegExp object
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return obj instanceof RegExp;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return obj instanceof RegExp;
+ }
-var obj = new RegExp();
-obj.length = 1;
-obj[0] = 1;
+ var obj = new RegExp();
+ obj.length = 1;
+ obj[0] = 1;
assert(Array.prototype.reduce.call(obj, callbackfn, 1), 'Array.prototype.reduce.call(obj, callbackfn, 1) !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-13.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-13.js
index 3bdd3e172..886330839 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-13.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-13.js
@@ -7,11 +7,11 @@ es5id: 15.4.4.21-1-13
description: Array.prototype.reduce applied to the JSON object
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return ('[object JSON]' === Object.prototype.toString.call(obj));
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return ('[object JSON]' === Object.prototype.toString.call(obj));
+ }
-JSON.length = 1;
-JSON[0] = 1;
+ JSON.length = 1;
+ JSON[0] = 1;
assert(Array.prototype.reduce.call(JSON, callbackfn, 1), 'Array.prototype.reduce.call(JSON, callbackfn, 1) !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-14.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-14.js
index 424e1e69f..ae958b3d2 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-14.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-14.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.21-1-14
description: Array.prototype.reduce applied to Error object
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return obj instanceof Error;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return obj instanceof Error;
+ }
-var obj = new Error();
-obj.length = 1;
-obj[0] = 1;
+ var obj = new Error();
+ obj.length = 1;
+ obj[0] = 1;
assert(Array.prototype.reduce.call(obj, callbackfn, 1), 'Array.prototype.reduce.call(obj, callbackfn, 1) !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-15.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-15.js
index a5387f278..efa389f9d 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-15.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-15.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.21-1-15
description: Array.prototype.reduce applied to the Arguments object
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return ('[object Arguments]' === Object.prototype.toString.call(obj));
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return ('[object Arguments]' === Object.prototype.toString.call(obj));
+ }
-var obj = (function() {
- return arguments;
-}("a", "b"));
+ var obj = (function () {
+ return arguments;
+ }("a", "b"));
assert(Array.prototype.reduce.call(obj, callbackfn, 1), 'Array.prototype.reduce.call(obj, callbackfn, 1) !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-2.js
index b070b9ea1..709021d9a 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-2.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-2.js
@@ -9,5 +9,5 @@ description: Array.prototype.reduce applied to null
assert.throws(TypeError, function() {
- Array.prototype.reduce.call(null);
+ Array.prototype.reduce.call(null);
});
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-3.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-3.js
index 833762b49..ae7e78214 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-3.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-3.js
@@ -7,11 +7,11 @@ es5id: 15.4.4.21-1-3
description: Array.prototype.reduce applied to boolean primitive
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return obj instanceof Boolean;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return obj instanceof Boolean;
+ }
-Boolean.prototype[0] = true;
-Boolean.prototype.length = 1;
+ Boolean.prototype[0] = true;
+ Boolean.prototype.length = 1;
assert(Array.prototype.reduce.call(false, callbackfn, 1), 'Array.prototype.reduce.call(false, callbackfn, 1) !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-4.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-4.js
index c08a75077..33519f325 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-4.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-4.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.21-1-4
description: Array.prototype.reduce applied to Boolean object
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return obj instanceof Boolean;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return obj instanceof Boolean;
+ }
-var obj = new Boolean(true);
-obj.length = 2;
-obj[0] = 11;
-obj[1] = 12;
+ var obj = new Boolean(true);
+ obj.length = 2;
+ obj[0] = 11;
+ obj[1] = 12;
assert(Array.prototype.reduce.call(obj, callbackfn, 1), 'Array.prototype.reduce.call(obj, callbackfn, 1) !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-5.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-5.js
index 8314bea9b..20ca2f99f 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-5.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-5.js
@@ -7,11 +7,11 @@ es5id: 15.4.4.21-1-5
description: Array.prototype.reduce applied to number primitive
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return obj instanceof Number;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return obj instanceof Number;
+ }
-Number.prototype[0] = 1;
-Number.prototype.length = 1;
+ Number.prototype[0] = 1;
+ Number.prototype.length = 1;
assert(Array.prototype.reduce.call(2.5, callbackfn, 1), 'Array.prototype.reduce.call(2.5, callbackfn, 1) !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-6.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-6.js
index 4ab488dc4..55eba5ba3 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-6.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-6.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.21-1-6
description: Array.prototype.reduce applied to Number object
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return obj instanceof Number;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return obj instanceof Number;
+ }
-var obj = new Number(-128);
-obj.length = 2;
-obj[0] = 11;
-obj[1] = 12;
+ var obj = new Number(-128);
+ obj.length = 2;
+ obj[0] = 11;
+ obj[1] = 12;
assert(Array.prototype.reduce.call(obj, callbackfn, 1), 'Array.prototype.reduce.call(obj, callbackfn, 1) !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-7.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-7.js
index 6869f90c0..ca9911488 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-7.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-7.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.21-1-7
description: Array.prototype.reduce applied to string primitive
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return obj instanceof String;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return obj instanceof String;
+ }
assert(Array.prototype.reduce.call("abc", callbackfn, 1), 'Array.prototype.reduce.call("abc", callbackfn, 1) !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-8.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-8.js
index 96635cee2..169467bb2 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-8.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-8.js
@@ -7,10 +7,10 @@ es5id: 15.4.4.21-1-8
description: Array.prototype.reduce applied to String object
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return obj instanceof String;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return obj instanceof String;
+ }
-var obj = new String("abc");
+ var obj = new String("abc");
assert(Array.prototype.reduce.call(obj, callbackfn, 1), 'Array.prototype.reduce.call(obj, callbackfn, 1) !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-9.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-9.js
index b2bd796bb..dd00fe9bb 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-9.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-9.js
@@ -7,14 +7,14 @@ es5id: 15.4.4.21-1-9
description: Array.prototype.reduce applied to Function object
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return obj instanceof Function;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return obj instanceof Function;
+ }
-var obj = function(a, b) {
- return a + b;
-};
-obj[0] = 11;
-obj[1] = 9;
+ var obj = function (a, b) {
+ return a + b;
+ };
+ obj[0] = 11;
+ obj[1] = 9;
assert(Array.prototype.reduce.call(obj, callbackfn, 1), 'Array.prototype.reduce.call(obj, callbackfn, 1) !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-1.js
index 777c4d3f8..ae5680106 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-1.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-1.js
@@ -9,12 +9,12 @@ description: >
called on
---*/
-function callbackfn(prevVal, curVal, idx, obj)
-{
- return 1;
-}
-var srcArr = [1, 2, 3, 4, 5];
-srcArr.reduce(callbackfn);
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ return 1;
+ }
+ var srcArr = [1,2,3,4,5];
+ srcArr.reduce(callbackfn);
assert.sameValue(srcArr[0], 1, 'srcArr[0]');
assert.sameValue(srcArr[1], 2, 'srcArr[1]');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-2.js
index a01a48c92..57b27d794 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-2.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-2.js
@@ -9,10 +9,10 @@ description: >
indices
---*/
-function callbackfn(prevVal, curVal, idx, obj)
-{
- return prevVal + curVal;
-}
-var srcArr = ['1', '2', '3', '4', '5'];
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ return prevVal + curVal;
+ }
+ var srcArr = ['1','2','3','4','5'];
assert.sameValue(srcArr.reduce(callbackfn), '12345', 'srcArr.reduce(callbackfn)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-3.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-3.js
index 5174a6300..ee1cd1801 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-3.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-3.js
@@ -7,11 +7,10 @@ es5id: 15.4.4.21-10-3
description: Array.prototype.reduce - subclassed array of length 1
---*/
-foo.prototype = [1];
+ foo.prototype = [1];
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
-
-function cb() {}
+ function cb(){}
assert.sameValue(f.reduce(cb), 1, 'f.reduce(cb)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-4.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-4.js
index e84e53a71..5dcd159f6 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-4.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-4.js
@@ -7,13 +7,10 @@ es5id: 15.4.4.21-10-4
description: Array.prototype.reduce - subclassed array with length more than 1
---*/
-foo.prototype = new Array(1, 2, 3, 4);
+ foo.prototype = new Array(1, 2, 3, 4);
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
-
-function cb(prevVal, curVal, idx, obj) {
- return prevVal + curVal;
-}
+ function cb(prevVal, curVal, idx, obj){return prevVal + curVal;}
assert.sameValue(f.reduce(cb), 10, 'f.reduce(cb)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-5.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-5.js
index 82c843ecd..f7778c537 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-5.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-5.js
@@ -9,10 +9,10 @@ description: >
indices(initialvalue present)
---*/
-function callbackfn(prevVal, curVal, idx, obj)
-{
- return prevVal + curVal;
-}
-var srcArr = ['1', '2', '3', '4', '5'];
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ return prevVal + curVal;
+ }
+ var srcArr = ['1','2','3','4','5'];
-assert.sameValue(srcArr.reduce(callbackfn, '0'), '012345', 'srcArr.reduce(callbackfn,"0")');
+assert.sameValue(srcArr.reduce(callbackfn,'0'), '012345', 'srcArr.reduce(callbackfn,"0")');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-6.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-6.js
index 35e50b126..5babbe757 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-6.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-6.js
@@ -9,13 +9,10 @@ description: >
provided
---*/
-foo.prototype = [1, 2, 3, 4];
+ foo.prototype = [1,2,3,4];
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ function cb(prevVal, curVal, idx, obj){return prevVal + curVal;}
-function cb(prevVal, curVal, idx, obj) {
- return prevVal + curVal;
-}
-
-assert.sameValue(f.reduce(cb, -1), 9, 'f.reduce(cb,-1)');
+assert.sameValue(f.reduce(cb,-1), 9, 'f.reduce(cb,-1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-7.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-7.js
index 1725c367e..e0cd77f63 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-7.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-7.js
@@ -9,13 +9,10 @@ description: >
initialvalue provided
---*/
-foo.prototype = [1];
+ foo.prototype = [1];
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ function cb(prevVal, curVal, idx, obj){return prevVal + curVal;}
-function cb(prevVal, curVal, idx, obj) {
- return prevVal + curVal;
-}
-
-assert.sameValue(f.reduce(cb, -1), 0, 'f.reduce(cb,-1)');
+assert.sameValue(f.reduce(cb,-1), 0, 'f.reduce(cb,-1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-8.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-8.js
index 3f1ffdcb4..abb4066ee 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-8.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-8.js
@@ -7,16 +7,15 @@ es5id: 15.4.4.21-10-8
description: Array.prototype.reduce doesn't visit expandos
---*/
-var callCnt = 0;
-
-function callbackfn(prevVal, curVal, idx, obj)
-{
- callCnt++;
- return curVal;
-}
-var srcArr = ['1', '2', '3', '4', '5'];
-srcArr["i"] = 10;
-srcArr[true] = 11;
-srcArr.reduce(callbackfn);
+ var callCnt = 0;
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ callCnt++;
+ return curVal;
+ }
+ var srcArr = ['1','2','3','4','5'];
+ srcArr["i"] = 10;
+ srcArr[true] = 11;
+ srcArr.reduce(callbackfn);
assert.sameValue(callCnt, 4, 'callCnt');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-1.js
index 4e5e8bb97..700961b96 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-1.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-1.js
@@ -9,15 +9,15 @@ description: >
Array-like object
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (obj.length === 2);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (obj.length === 2);
+ }
-var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: 2
-};
+ var obj = {
+ 0: 12,
+ 1: 11,
+ 2: 9,
+ length: 2
+ };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), true, 'Array.prototype.reduce.call(obj, callbackfn, 1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-10.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-10.js
index 18e09d6d3..41de90c5c 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-10.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-10.js
@@ -9,25 +9,25 @@ description: >
an inherited accessor property
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (obj.length === 2);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (obj.length === 2);
+ }
-var proto = {};
+ var proto = {};
-Object.defineProperty(proto, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
+ var child = new Con();
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
assert.sameValue(Array.prototype.reduce.call(child, callbackfn, 1), true, 'Array.prototype.reduce.call(child, callbackfn, 1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-11.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-11.js
index 9dd5748b6..25cf0e462 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-11.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-11.js
@@ -9,20 +9,19 @@ description: >
an own accessor property without a get function
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
-}
-
-var obj = {
- 0: 11,
- 1: 12
-};
-Object.defineProperty(obj, "length", {
- set: function() {},
- configurable: true
-});
+ var obj = {
+ 0: 11,
+ 1: 12
+ };
+ Object.defineProperty(obj, "length", {
+ set: function () { },
+ configurable: true
+ });
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), 1, 'Array.prototype.reduce.call(obj, callbackfn, 1)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-12.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-12.js
index da2f2a6ac..375fa552d 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-12.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-12.js
@@ -10,27 +10,23 @@ description: >
Array
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
-}
+ Object.defineProperty(Object.prototype, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-Object.defineProperty(Object.prototype, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
-
-var obj = {
- 0: 12,
- 1: 11
-};
-Object.defineProperty(obj, "length", {
- set: function() {},
- configurable: true
-});
+ var obj = { 0: 12, 1: 11 };
+ Object.defineProperty(obj, "length", {
+ set: function () { },
+ configurable: true
+ });
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), 1, 'Array.prototype.reduce.call(obj, callbackfn, 1)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-13.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-13.js
index 7f1250292..2be607315 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-13.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-13.js
@@ -9,24 +9,24 @@ description: >
is inherited accessor property without a get function
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ }
-var proto = {};
-Object.defineProperty(proto, "length", {
- set: function() {},
- configurable: true
-});
+ var proto = {};
+ Object.defineProperty(proto, "length", {
+ set: function () { },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child[0] = 11;
-child[1] = 12;
+ var child = new Con();
+ child[0] = 11;
+ child[1] = 12;
assert.sameValue(Array.prototype.reduce.call(child, callbackfn, 1), 1, 'Array.prototype.reduce.call(child, callbackfn, 1)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-14.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-14.js
index f21ee41e7..3ed0c858f 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-14.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-14.js
@@ -9,16 +9,13 @@ description: >
'length' property doesn't exist
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ }
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), 1, 'Array.prototype.reduce.call(obj, callbackfn, 1)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-17.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-17.js
index c53ac5820..2d0636319 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-17.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-17.js
@@ -9,13 +9,13 @@ description: >
implements its own property get method
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (obj.length === 2);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (obj.length === 2);
+ }
-var func = function(a, b) {
- arguments[2] = 9;
- return Array.prototype.reduce.call(arguments, callbackfn, 1);
-};
+ var func = function (a, b) {
+ arguments[2] = 9;
+ return Array.prototype.reduce.call(arguments, callbackfn, 1);
+ };
assert.sameValue(func(12, 11), true, 'func(12, 11)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-18.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-18.js
index 43c4f960d..6e50eadc5 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-18.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-18.js
@@ -9,10 +9,10 @@ description: >
its own property get method
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (obj.length === 3);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (obj.length === 3);
+ }
-var str = new String("012");
+ var str = new String("012");
assert.sameValue(Array.prototype.reduce.call(str, callbackfn, 1), true, 'Array.prototype.reduce.call(str, callbackfn, 1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-19.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-19.js
index 02eaafd2b..5b9a2c1c8 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-19.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-19.js
@@ -9,15 +9,15 @@ description: >
implements its own property get method
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (obj.length === 2);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (obj.length === 2);
+ }
-var fun = function(a, b) {
- return a + b;
-};
-fun[0] = 12;
-fun[1] = 11;
-fun[2] = 9;
+ var fun = function (a, b) {
+ return a + b;
+ };
+ fun[0] = 12;
+ fun[1] = 11;
+ fun[2] = 9;
assert.sameValue(Array.prototype.reduce.call(fun, callbackfn, 1), true, 'Array.prototype.reduce.call(fun, callbackfn, 1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-2.js
index 6b63af80a..0770dea2b 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-2.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-2.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.21-2-2
description: Array.prototype.reduce - 'length' is own data property on an Array
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (obj.length === 2);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (obj.length === 2);
+ }
assert.sameValue([12, 11].reduce(callbackfn, 1), true, '[12, 11].reduce(callbackfn, 1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-3.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-3.js
index ae2642759..7abfa8846 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-3.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-3.js
@@ -9,21 +9,19 @@ description: >
overrides an inherited data property on an Array-like object
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (obj.length === 2);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (obj.length === 2);
+ }
-var proto = {
- length: 3
-};
+ var proto = { length: 3 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child.length = 2;
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
+ var child = new Con();
+ child.length = 2;
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
assert.sameValue(Array.prototype.reduce.call(child, callbackfn, 1), true, 'Array.prototype.reduce.call(child, callbackfn, 1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-4.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-4.js
index a2666931e..f1acd1884 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-4.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-4.js
@@ -9,13 +9,13 @@ description: >
overrides an inherited data property on an Array
---*/
-var storeProtoLength;
+ var storeProtoLength;
-function callbackfn(prevVal, curVal, idx, obj) {
- return (obj.length === 2);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (obj.length === 2);
+ }
-storeProtoLength = Array.prototype.length;
-Array.prototype.length = 0;
+ storeProtoLength = Array.prototype.length;
+ Array.prototype.length = 0;
assert.sameValue([12, 11].reduce(callbackfn, 1), true, '[12, 11].reduce(callbackfn, 1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-5.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-5.js
index 5e826cf74..2b000ba6a 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-5.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-5.js
@@ -9,29 +9,29 @@ description: >
an own data property that overrides an inherited accessor property
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (obj.length === 2);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (obj.length === 2);
+ }
-var proto = {};
+ var proto = {};
-Object.defineProperty(proto, "length", {
- get: function() {
- return 3;
- },
- configurable: true
-});
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 3;
+ },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-Object.defineProperty(child, "length", {
- value: 2,
- configurable: true
-});
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
+ var child = new Con();
+ Object.defineProperty(child, "length", {
+ value: 2,
+ configurable: true
+ });
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
assert.sameValue(Array.prototype.reduce.call(child, callbackfn, 1), true, 'Array.prototype.reduce.call(child, callbackfn, 1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-6.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-6.js
index 9088ded91..9385b2243 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-6.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-6.js
@@ -9,20 +9,18 @@ description: >
an inherited data property
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (obj.length === 2);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (obj.length === 2);
+ }
-var proto = {
- length: 2
-};
+ var proto = { length: 2 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
+ var child = new Con();
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
assert.sameValue(Array.prototype.reduce.call(child, callbackfn, 1), true, 'Array.prototype.reduce.call(child, callbackfn, 1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-7.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-7.js
index 2aea682c7..1adfa3c8b 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-7.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-7.js
@@ -9,21 +9,21 @@ description: >
an own accessor property
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (obj.length === 2);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (obj.length === 2);
+ }
-var obj = {};
+ var obj = {};
-Object.defineProperty(obj, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-obj[0] = 12;
-obj[1] = 11;
-obj[2] = 9;
+ obj[0] = 12;
+ obj[1] = 11;
+ obj[2] = 9;
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), true, 'Array.prototype.reduce.call(obj, callbackfn, 1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-8.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-8.js
index 6d9537535..2e76fa739 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-8.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-8.js
@@ -9,28 +9,26 @@ description: >
an own accessor property that overrides an inherited data property
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (obj.length === 2);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (obj.length === 2);
+ }
-var proto = {
- length: 3
-};
+ var proto = { length: 3 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
+ var child = new Con();
-Object.defineProperty(child, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(child, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
assert.sameValue(Array.prototype.reduce.call(child, callbackfn, 1), true, 'Array.prototype.reduce.call(child, callbackfn, 1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-9.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-9.js
index 34b6ca18d..08ef5140b 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-9.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-9.js
@@ -10,33 +10,33 @@ description: >
property
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (obj.length === 2);
-}
-
-var proto = {};
-
-Object.defineProperty(proto, "length", {
- get: function() {
- return 3;
- },
- configurable: true
-});
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-
-Object.defineProperty(child, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
-
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (obj.length === 2);
+ }
+
+ var proto = {};
+
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 3;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+
+ Object.defineProperty(child, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
+
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
assert.sameValue(Array.prototype.reduce.call(child, callbackfn, 1), true, 'Array.prototype.reduce.call(child, callbackfn, 1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-1.js
index 1cd10992a..a7b058226 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-1.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-1.js
@@ -7,18 +7,14 @@ es5id: 15.4.4.21-3-1
description: Array.prototype.reduce - value of 'length' is undefined
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return 2;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return 2;
+ }
-var obj = {
- 0: 0,
- 1: 1,
- length: undefined
-};
+ var obj = { 0: 0, 1: 1, length: undefined };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), 1, 'Array.prototype.reduce.call(obj, callbackfn, 1)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-10.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-10.js
index 982fd8965..a2c41a303 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-10.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-10.js
@@ -9,17 +9,14 @@ description: >
(value is NaN)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return 2;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return 2;
+ }
-var obj = {
- 0: 9,
- length: NaN
-};
+ var obj = { 0: 9, length: NaN };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), 1, 'Array.prototype.reduce.call(obj, callbackfn, 1)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-11.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-11.js
index 01185212a..a5bbcd485 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-11.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-11.js
@@ -9,14 +9,10 @@ description: >
positive number
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (curVal === 11 && idx === 1);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (curVal === 11 && idx === 1);
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: "2"
-};
+ var obj = { 1: 11, 2: 9, length: "2" };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), true, 'Array.prototype.reduce.call(obj, callbackfn, 1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-12.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-12.js
index c1610fdf1..ca3bbd981 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-12.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-12.js
@@ -9,14 +9,10 @@ description: >
negative number
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (curVal === 11 && idx === 1);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (curVal === 11 && idx === 1);
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: "-4294967294"
-};
+ var obj = { 1: 11, 2: 9, length: "-4294967294" };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), 1, 'Array.prototype.reduce.call(obj, callbackfn, 1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-13.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-13.js
index 77c594df4..4ab83fe8e 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-13.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-13.js
@@ -9,14 +9,10 @@ description: >
number
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (curVal === 11 && idx === 1);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (curVal === 11 && idx === 1);
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: "2.5"
-};
+ var obj = { 1: 11, 2: 9, length: "2.5" };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), true, 'Array.prototype.reduce.call(obj, callbackfn, 1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-14.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-14.js
index 26bf70c04..8feeae4a8 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-14.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-14.js
@@ -7,17 +7,14 @@ es5id: 15.4.4.21-3-14
description: Array.prototype.reduce - 'length' is a string containing -Infinity
---*/
-var accessed2 = false;
+ var accessed2 = false;
-function callbackfn2(prevVal, curVal, idx, obj) {
- accessed2 = true;
- return 2;
-}
+ function callbackfn2(prevVal, curVal, idx, obj) {
+ accessed2 = true;
+ return 2;
+ }
-var obj2 = {
- 0: 9,
- length: "-Infinity"
-};
+ var obj2 = { 0: 9, length: "-Infinity" };
assert.sameValue(Array.prototype.reduce.call(obj2, callbackfn2, 1), 1, 'Array.prototype.reduce.call(obj2, callbackfn2, 1)');
assert.sameValue(accessed2, false, 'accessed2');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-15.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-15.js
index a467d5ba4..e17fd3d9e 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-15.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-15.js
@@ -9,14 +9,10 @@ description: >
exponential number
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (curVal === 11 && idx === 1);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (curVal === 11 && idx === 1);
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: "2E0"
-};
+ var obj = { 1: 11, 2: 9, length: "2E0" };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), true, 'Array.prototype.reduce.call(obj, callbackfn, 1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-16.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-16.js
index c1e8c7a11..ac8545db7 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-16.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-16.js
@@ -9,14 +9,10 @@ description: >
number
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (curVal === 11 && idx === 1);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (curVal === 11 && idx === 1);
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: "0x0002"
-};
+ var obj = { 1: 11, 2: 9, length: "0x0002" };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), true, 'Array.prototype.reduce.call(obj, callbackfn, 1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-17.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-17.js
index 683e3d900..867184529 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-17.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-17.js
@@ -9,14 +9,10 @@ description: >
with leading zeros
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (curVal === 11 && idx === 1);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (curVal === 11 && idx === 1);
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: "0002.00"
-};
+ var obj = { 1: 11, 2: 9, length: "0002.00" };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), true, 'Array.prototype.reduce.call(obj, callbackfn, 1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-18.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-18.js
index 4b797136b..d5705664f 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-18.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-18.js
@@ -9,17 +9,13 @@ description: >
convert to a number
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return 2;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return 2;
-}
-
-var obj = {
- 0: 9,
- length: "asdf!_"
-};
+ var obj = { 0: 9, length: "asdf!_" };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), 1, 'Array.prototype.reduce.call(obj, callbackfn, 1)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-19.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-19.js
index 7d168f5e0..3cc7aac5e 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-19.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-19.js
@@ -9,18 +9,18 @@ description: >
an own toString method
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (curVal === 11 && idx === 1);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (curVal === 11 && idx === 1);
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: {
- toString: function() {
- return '2';
- }
- }
-};
+ var obj = {
+ 1: 11,
+ 2: 9,
+ length: {
+ toString: function () {
+ return '2';
+ }
+ }
+ };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), true, 'Array.prototype.reduce.call(obj, callbackfn, 1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-2.js
index 32492611f..f4fc199e4 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-2.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-2.js
@@ -9,14 +9,10 @@ description: >
true)
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (curVal === 11 && idx === 0);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (curVal === 11 && idx === 0);
+ }
-var obj = {
- 0: 11,
- 1: 9,
- length: true
-};
+ var obj = { 0: 11, 1: 9, length: true };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), true, 'Array.prototype.reduce.call(obj, callbackfn, 1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-20.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-20.js
index 32f5200bc..b15ff9a1d 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-20.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-20.js
@@ -9,18 +9,18 @@ description: >
an own valueOf method
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (curVal === 11 && idx === 1);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (curVal === 11 && idx === 1);
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: {
- valueOf: function() {
- return 2;
- }
- }
-};
+ var obj = {
+ 1: 11,
+ 2: 9,
+ length: {
+ valueOf: function () {
+ return 2;
+ }
+ }
+ };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), true, 'Array.prototype.reduce.call(obj, callbackfn, 1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-21.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-21.js
index 9470d7679..1188ac3ef 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-21.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-21.js
@@ -10,27 +10,27 @@ description: >
returns a string
---*/
-var valueOfOccured = false;
-var toStringOccured = false;
+ var valueOfOccured = false;
+ var toStringOccured = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- return (curVal === 11 && idx === 1);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (curVal === 11 && idx === 1);
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: {
- valueOf: function() {
- valueOfOccured = true;
- return {};
- },
- toString: function() {
- toStringOccured = true;
- return '2';
- }
- }
-};
+ var obj = {
+ 1: 11,
+ 2: 9,
+ length: {
+ valueOf: function () {
+ valueOfOccured = true;
+ return {};
+ },
+ toString: function () {
+ toStringOccured = true;
+ return '2';
+ }
+ }
+ };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), true, 'Array.prototype.reduce.call(obj, callbackfn, 1)');
assert(valueOfOccured, 'valueOfOccured !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-22.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-22.js
index b7d4a852c..63fca1bd3 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-22.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-22.js
@@ -10,32 +10,32 @@ description: >
primitive values
---*/
-var accessed = false;
-var valueOfAccessed = false;
-var toStringAccessed = false;
+ var accessed = false;
+ var valueOfAccessed = false;
+ var toStringAccessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return true;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return true;
+ }
-var obj = {
- 1: 11,
- 2: 12,
+ var obj = {
+ 1: 11,
+ 2: 12,
- length: {
- valueOf: function() {
- valueOfAccessed = true;
- return {};
- },
- toString: function() {
- toStringAccessed = true;
- return {};
- }
- }
-};
+ length: {
+ valueOf: function () {
+ valueOfAccessed = true;
+ return {};
+ },
+ toString: function () {
+ toStringAccessed = true;
+ return {};
+ }
+ }
+ };
assert.throws(TypeError, function() {
- Array.prototype.reduce.call(obj, callbackfn, 1);
+ Array.prototype.reduce.call(obj, callbackfn, 1);
});
assert.sameValue(accessed, false, 'accessed');
assert(toStringAccessed, 'toStringAccessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-23.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-23.js
index c281ba361..d48e58c90 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-23.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-23.js
@@ -9,35 +9,35 @@ description: >
an object with an own toString and inherited valueOf methods
---*/
-var valueOfAccessed = false;
-var toStringAccessed = false;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- return (curVal === 11 && idx === 1);
-}
-
-var proto = {
- valueOf: function() {
- valueOfAccessed = true;
- return 2;
- }
-};
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-
-child.toString = function() {
- toStringAccessed = true;
- return '1';
-};
-
-var obj = {
- 1: 11,
- 2: 9,
- length: child
-};
+ var valueOfAccessed = false;
+ var toStringAccessed = false;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (curVal === 11 && idx === 1);
+ }
+
+ var proto = {
+ valueOf: function () {
+ valueOfAccessed = true;
+ return 2;
+ }
+ };
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+
+ child.toString = function () {
+ toStringAccessed = true;
+ return '1';
+ };
+
+ var obj = {
+ 1: 11,
+ 2: 9,
+ length: child
+ };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), true, 'Array.prototype.reduce.call(obj, callbackfn, 1)');
assert(valueOfAccessed, 'valueOfAccessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-24.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-24.js
index c3e969f57..48c4ede3c 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-24.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-24.js
@@ -9,14 +9,14 @@ description: >
non-integer, ensure truncation occurs in the proper direction
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (curVal === 11 && idx === 1);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (curVal === 11 && idx === 1);
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: 2.685
-};
+ var obj = {
+ 1: 11,
+ 2: 9,
+ length: 2.685
+ };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), true, 'Array.prototype.reduce.call(obj, callbackfn, 1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-25.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-25.js
index 5a8f54239..352c988a0 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-25.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-25.js
@@ -9,14 +9,14 @@ description: >
non-integer
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (curVal === 11 && idx === 1);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (curVal === 11 && idx === 1);
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: -4294967294.5
-};
+ var obj = {
+ 1: 11,
+ 2: 9,
+ length: -4294967294.5
+ };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), 1, 'Array.prototype.reduce.call(obj, callbackfn, 1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-3.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-3.js
index 0fe83bd71..89231153d 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-3.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-3.js
@@ -7,18 +7,14 @@ es5id: 15.4.4.21-3-3
description: Array.prototype.reduce - value of 'length' is a number (value is 0)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return 2;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return 2;
+ }
-var obj = {
- 0: 1,
- 1: 1,
- length: 0
-};
+ var obj = { 0: 1, 1: 1, length: 0 };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), 1, 'Array.prototype.reduce.call(obj, callbackfn, 1)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-4.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-4.js
index 864a0c1e5..1c6e0d988 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-4.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-4.js
@@ -9,17 +9,14 @@ description: >
+0)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return 2;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return 2;
+ }
-var obj = {
- 0: 11,
- length: +0
-};
+ var obj = { 0: 11, length: +0 };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), 1, 'Array.prototype.reduce.call(obj, callbackfn, 1)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-5.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-5.js
index 0a22d02a3..da3f4cf5f 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-5.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-5.js
@@ -9,17 +9,14 @@ description: >
-0)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return 2;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return 2;
+ }
-var obj = {
- 0: 11,
- length: -0
-};
+ var obj = { 0: 11, length: -0 };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), 1, 'Array.prototype.reduce.call(obj, callbackfn, 1)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-6.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-6.js
index fbee22d42..1617a7493 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-6.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-6.js
@@ -9,14 +9,10 @@ description: >
positive)
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (curVal === 11 && idx === 1);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (curVal === 11 && idx === 1);
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: 2
-};
+ var obj = { 1: 11, 2: 9, length: 2 };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), true, 'Array.prototype.reduce.call(obj, callbackfn, 1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-7.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-7.js
index b171abfd2..b8eb59871 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-7.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-7.js
@@ -9,14 +9,10 @@ description: >
negative)
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (curVal === 11 && idx === 1);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (curVal === 11 && idx === 1);
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: -4294967294
-};
+ var obj = { 1: 11, 2: 9, length: -4294967294 };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), 1, 'Array.prototype.reduce.call(obj, callbackfn, 1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-9.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-9.js
index 33c8a72d3..dc8cbfd8d 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-9.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-9.js
@@ -9,16 +9,13 @@ description: >
-Infinity)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ }
-var obj = {
- 0: 9,
- length: -Infinity
-};
+ var obj = { 0: 9, length: -Infinity };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), 1, 'Array.prototype.reduce.call(obj, callbackfn, 1)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-1.js
index ffc66baac..565eec8bf 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-1.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-1.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.21-4-1
description: Array.prototype.reduce throws TypeError if callbackfn is undefined
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.reduce();
+ arr.reduce();
});
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-10.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-10.js
index 5592d22dc..b37a75ea8 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-10.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-10.js
@@ -9,18 +9,15 @@ description: >
was thrown by step 2
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-Object.defineProperty(obj, "length", {
- get: function() {
- throw new Test262Error();
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ throw new Test262Error();
+ },
+ configurable: true
+ });
assert.throws(Test262Error, function() {
- Array.prototype.reduce.call(obj, undefined);
+ Array.prototype.reduce.call(obj, undefined);
});
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-11.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-11.js
index a9993c239..c3a439898 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-11.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-11.js
@@ -9,22 +9,19 @@ description: >
was thrown by step 3
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-Object.defineProperty(obj, "length", {
- get: function() {
- return {
- toString: function() {
- throw new Test262Error();
- }
- };
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ toString: function () {
+ throw new Test262Error();
+ }
+ };
+ },
+ configurable: true
+ });
assert.throws(Test262Error, function() {
- Array.prototype.reduce.call(obj, undefined);
+ Array.prototype.reduce.call(obj, undefined);
});
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-12.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-12.js
index 391122864..087ba33ec 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-12.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-12.js
@@ -7,12 +7,11 @@ es5id: 15.4.4.21-4-12
description: Array.prototype.reduce - 'callbackfn' is a function
---*/
-var accessed = false;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return curVal > 10;
-}
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return curVal > 10;
+ }
assert.sameValue([11, 9].reduce(callbackfn, 1), false, '[11, 9].reduce(callbackfn, 1)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-15.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-15.js
index 7072a1d2c..509aeb618 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-15.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-15.js
@@ -9,29 +9,27 @@ description: >
passing undefined for callbackfn
---*/
-var obj = {
- 10: 10
-};
-var lengthAccessed = false;
-var loopAccessed = false;
+ var obj = { 10: 10 };
+ var lengthAccessed = false;
+ var loopAccessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- lengthAccessed = true;
- return 20;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ lengthAccessed = true;
+ return 20;
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "0", {
- get: function() {
- loopAccessed = true;
- return 10;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ loopAccessed = true;
+ return 10;
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.reduce.call(obj);
+ Array.prototype.reduce.call(obj);
});
assert(lengthAccessed, 'lengthAccessed !== true');
assert.sameValue(loopAccessed, false, 'loopAccessed');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-2.js
index a510f11e1..bc24e2d62 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-2.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-2.js
@@ -9,7 +9,7 @@ description: >
unreferenced
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(ReferenceError, function() {
- arr.reduce(foo);
+ arr.reduce(foo);
});
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-3.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-3.js
index c980003a3..8f1bbae3a 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-3.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-3.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.21-4-3
description: Array.prototype.reduce throws TypeError if callbackfn is null
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.reduce(null);
+ arr.reduce(null);
});
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-4.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-4.js
index f86249342..f562ac79f 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-4.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-4.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.21-4-4
description: Array.prototype.reduce throws TypeError if callbackfn is boolean
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.reduce(true);
+ arr.reduce(true);
});
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-5.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-5.js
index 19ea080d0..a17c110ef 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-5.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-5.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.21-4-5
description: Array.prototype.reduce throws TypeError if callbackfn is number
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.reduce(5);
+ arr.reduce(5);
});
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-6.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-6.js
index 10d80e665..7a815eddc 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-6.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-6.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.21-4-6
description: Array.prototype.reduce throws TypeError if callbackfn is string
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.reduce("abc");
+ arr.reduce("abc");
});
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-7.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-7.js
index 5f5bb6516..57281c17c 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-7.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-7.js
@@ -9,7 +9,7 @@ description: >
without [[Call]] internal method
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.reduce(new Object());
+ arr.reduce(new Object());
});
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-8.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-8.js
index da9ba950c..07e01936b 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-8.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-8.js
@@ -9,21 +9,18 @@ description: >
visible when an exception occurs
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-var accessed = false;
+ var accessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- accessed = true;
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ accessed = true;
+ return 2;
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.reduce.call(obj, null);
+ Array.prototype.reduce.call(obj, null);
});
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-9.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-9.js
index b0e48b628..31738344a 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-9.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-9.js
@@ -9,25 +9,22 @@ description: >
visible when an exception occurs
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-var accessed = false;
+ var accessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- return {
- toString: function() {
- accessed = true;
- return "2";
- }
- };
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ toString: function () {
+ accessed = true;
+ return "2";
+ }
+ };
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.reduce.call(obj, null);
+ Array.prototype.reduce.call(obj, null);
});
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-1.js
index ca6c54034..ebf1d0364 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-1.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-1.js
@@ -9,7 +9,7 @@ description: >
array), no initVal
---*/
-function cb() {}
+ function cb(){}
assert.throws(TypeError, function() {
- [].reduce(cb);
+ [].reduce(cb);
});
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-10.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-10.js
index 2d392481c..457d6114d 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-10.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-10.js
@@ -9,25 +9,22 @@ description: >
side-effects that might be produced by step 2
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (curVal > 10);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (curVal > 10);
+ }
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-var accessed = false;
+ var accessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- accessed = true;
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ accessed = true;
+ return 0;
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.reduce.call(obj, callbackfn);
+ Array.prototype.reduce.call(obj, callbackfn);
});
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-11.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-11.js
index 8b63d3e3e..604a91c14 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-11.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-11.js
@@ -9,29 +9,26 @@ description: >
any side-effects that might be produced by step 3
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (curVal > 10);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (curVal > 10);
+ }
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-var accessed = false;
+ var accessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- return {
- toString: function() {
- accessed = true;
- return "0";
- }
- };
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ toString: function () {
+ accessed = true;
+ return "0";
+ }
+ };
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.reduce.call(obj, callbackfn);
+ Array.prototype.reduce.call(obj, callbackfn);
});
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-12.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-12.js
index 8cdeb3b4c..57209d338 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-12.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-12.js
@@ -9,22 +9,19 @@ description: >
was thrown by step 2
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (curVal > 10);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (curVal > 10);
+ }
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-Object.defineProperty(obj, "length", {
- get: function() {
- throw new Test262Error();
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ throw new Test262Error();
+ },
+ configurable: true
+ });
assert.throws(Test262Error, function() {
- Array.prototype.reduce.call(obj, callbackfn);
+ Array.prototype.reduce.call(obj, callbackfn);
});
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-13.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-13.js
index 3285912c3..297d0d481 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-13.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-13.js
@@ -9,26 +9,23 @@ description: >
was thrown by step 3
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (curVal > 10);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (curVal > 10);
+ }
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-Object.defineProperty(obj, "length", {
- get: function() {
- return {
- toString: function() {
- throw new Test262Error();
- }
- };
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ toString: function () {
+ throw new Test262Error();
+ }
+ };
+ },
+ configurable: true
+ });
assert.throws(Test262Error, function() {
- Array.prototype.reduce.call(obj, callbackfn);
+ Array.prototype.reduce.call(obj, callbackfn);
});
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-2.js
index ac6150304..c3ff294e2 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-2.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-2.js
@@ -10,13 +10,12 @@ description: >
no initVal
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = null;
-function foo() {}
-var f = new foo();
-f.length = null;
-
-function cb() {}
+ function cb(){}
assert.throws(TypeError, function() {
- f.reduce(cb);
+ f.reduce(cb);
});
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-3.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-3.js
index 1fb61ac82..b0b9d0060 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-3.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-3.js
@@ -10,13 +10,12 @@ description: >
no initVal
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = false;
-function foo() {}
-var f = new foo();
-f.length = false;
-
-function cb() {}
+ function cb(){}
assert.throws(TypeError, function() {
- f.reduce(cb);
+ f.reduce(cb);
});
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-4.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-4.js
index a68dd4934..c452e0f55 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-4.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-4.js
@@ -10,13 +10,12 @@ description: >
initVal
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = 0;
-function foo() {}
-var f = new foo();
-f.length = 0;
-
-function cb() {}
+ function cb(){}
assert.throws(TypeError, function() {
- f.reduce(cb);
+ f.reduce(cb);
});
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-5.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-5.js
index 0717a9edd..287cae360 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-5.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-5.js
@@ -10,13 +10,12 @@ description: >
initVal
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = '0';
-function foo() {}
-var f = new foo();
-f.length = '0';
-
-function cb() {}
+ function cb(){}
assert.throws(TypeError, function() {
- f.reduce(cb);
+ f.reduce(cb);
});
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-6.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-6.js
index 4a935d9a7..aba39d0b1 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-6.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-6.js
@@ -10,19 +10,14 @@ description: >
initVal
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ var o = { valueOf: function () { return 0;}};
+ f.length = o;
-var o = {
- valueOf: function() {
- return 0;
- }
-};
-f.length = o;
-
-function cb() {}
+ function cb(){}
assert.throws(TypeError, function() {
- f.reduce(cb);
+ f.reduce(cb);
});
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-7.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-7.js
index faede2222..13e218f2c 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-7.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-7.js
@@ -10,25 +10,20 @@ description: >
(toString)), no initVal
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ var o = { toString: function () { return '0';}};
+ f.length = o;
-var o = {
- toString: function() {
- return '0';
- }
-};
-f.length = o;
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
-// objects inherit the default valueOf method of the Object object;
-// that simply returns the itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-
-function cb() {}
+ function cb(){}
assert.throws(TypeError, function() {
- f.reduce(cb);
+ f.reduce(cb);
});
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-8.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-8.js
index ddf3cbf52..9d932b371 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-8.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-8.js
@@ -9,28 +9,27 @@ description: >
(subclassed Array, length overridden with []), no initVal
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ f.length = [];
-f.length = [];
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
+ //
+ // The toString( ) method on Array converts the array elements to strings,
+ // then returns the result of concatenating these strings, with commas in
+ // between. An array with no elements converts to the empty string, which
+ // converts to the number 0. If an array has a single element that is a
+ // number n, the array converts to a string representation of n, which is
+ // then converted back to n itself. If an array contains more than one element,
+ // or if its one element is not a number, the array converts to NaN.
-// objects inherit the default valueOf method of the Object object;
-// that simply returns the itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-//
-// The toString( ) method on Array converts the array elements to strings,
-// then returns the result of concatenating these strings, with commas in
-// between. An array with no elements converts to the empty string, which
-// converts to the number 0. If an array has a single element that is a
-// number n, the array converts to a string representation of n, which is
-// then converted back to n itself. If an array contains more than one element,
-// or if its one element is not a number, the array converts to NaN.
-
-function cb() {}
+ function cb(){}
assert.throws(TypeError, function() {
- f.reduce(cb);
+ f.reduce(cb);
});
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-9.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-9.js
index 8df0ed8c9..edbcb465f 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-9.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-9.js
@@ -9,11 +9,10 @@ description: >
and 'initialValue' is present
---*/
-var accessed = false;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
-}
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ }
assert.sameValue([].reduce(callbackfn, 3), 3, '[].reduce(callbackfn, 3)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-1.js
index 785c4e32f..db603f952 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-1.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-1.js
@@ -9,5 +9,5 @@ description: >
initialValue is present (empty array)
---*/
-function cb() {}
-assert.sameValue([].reduce(cb, 1), 1, '[].reduce(cb,1)');
+ function cb(){}
+assert.sameValue([].reduce(cb,1), 1, '[].reduce(cb,1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-10.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-10.js
index a03752192..f86e9806f 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-10.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-10.js
@@ -7,6 +7,6 @@ es5id: 15.4.4.21-7-10
description: Array.prototype.reduce - 'initialValue' is present
---*/
-var str = "initialValue is present";
+ var str = "initialValue is present";
-assert.sameValue([].reduce(function() {}, str), str, '[].reduce(function () { }, str)');
+assert.sameValue([].reduce(function () { }, str), str, '[].reduce(function () { }, str)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-11.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-11.js
index 7c2dd91ff..619bb2d27 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-11.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-11.js
@@ -7,6 +7,6 @@ es5id: 15.4.4.21-7-11
description: Array.prototype.reduce - 'initialValue' is not present
---*/
-var str = "initialValue is not present";
+ var str = "initialValue is not present";
-assert.sameValue([str].reduce(function() {}), str, '[str].reduce(function () { })');
+assert.sameValue([str].reduce(function () { }), str, '[str].reduce(function () { })');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-2.js
index 7c227878c..27ddd16b0 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-2.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-2.js
@@ -10,11 +10,10 @@ description: >
null (type conversion))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = null;
-function foo() {}
-var f = new foo();
-f.length = null;
-
-function cb() {}
-assert.sameValue(f.reduce(cb, 1), 1, 'f.reduce(cb,1)');
+ function cb(){}
+assert.sameValue(f.reduce(cb,1), 1, 'f.reduce(cb,1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-3.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-3.js
index 525f769e3..eed2c040f 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-3.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-3.js
@@ -10,11 +10,10 @@ description: >
false (type conversion))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = false;
-function foo() {}
-var f = new foo();
-f.length = false;
-
-function cb() {}
-assert.sameValue(f.reduce(cb, 1), 1, 'f.reduce(cb,1)');
+ function cb(){}
+assert.sameValue(f.reduce(cb,1), 1, 'f.reduce(cb,1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-4.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-4.js
index fed398c8e..4fb6146f1 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-4.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-4.js
@@ -10,11 +10,10 @@ description: >
(type conversion))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = 0;
-function foo() {}
-var f = new foo();
-f.length = 0;
-
-function cb() {}
-assert.sameValue(f.reduce(cb, 1), 1, 'f.reduce(cb,1)');
+ function cb(){}
+assert.sameValue(f.reduce(cb,1), 1, 'f.reduce(cb,1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-5.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-5.js
index 8634d03a6..4a6d8d59e 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-5.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-5.js
@@ -10,11 +10,10 @@ description: >
'0' (type conversion))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = '0';
-function foo() {}
-var f = new foo();
-f.length = '0';
-
-function cb() {}
-assert.sameValue(f.reduce(cb, 1), 1, 'f.reduce(cb,1)');
+ function cb(){}
+assert.sameValue(f.reduce(cb,1), 1, 'f.reduce(cb,1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-6.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-6.js
index 33c22e6e7..2c2174482 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-6.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-6.js
@@ -10,17 +10,12 @@ description: >
obj with valueOf)
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ var o = { valueOf: function () { return 0;}};
+ f.length = o;
-var o = {
- valueOf: function() {
- return 0;
- }
-};
-f.length = o;
-
-function cb() {}
-assert.sameValue(f.reduce(cb, 1), 1, 'f.reduce(cb,1)');
+ function cb(){}
+assert.sameValue(f.reduce(cb,1), 1, 'f.reduce(cb,1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-7.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-7.js
index db7132e8a..3d7783369 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-7.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-7.js
@@ -10,23 +10,18 @@ description: >
obj w/o valueOf (toString))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ var o = { toString: function () { return '0';}};
+ f.length = o;
-var o = {
- toString: function() {
- return '0';
- }
-};
-f.length = o;
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
-// objects inherit the default valueOf method of the Object object;
-// that simply returns the itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-
-function cb() {}
-assert.sameValue(f.reduce(cb, 1), 1, 'f.reduce(cb,1)');
+ function cb(){}
+assert.sameValue(f.reduce(cb,1), 1, 'f.reduce(cb,1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-8.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-8.js
index 8ddc5cd6f..430c58cd1 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-8.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-8.js
@@ -10,26 +10,25 @@ description: >
[])
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ f.length = [];
-f.length = [];
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
+ //
+ // The toString( ) method on Array converts the array elements to strings,
+ // then returns the result of concatenating these strings, with commas in
+ // between. An array with no elements converts to the empty string, which
+ // converts to the number 0. If an array has a single element that is a
+ // number n, the array converts to a string representation of n, which is
+ // then converted back to n itself. If an array contains more than one element,
+ // or if its one element is not a number, the array converts to NaN.
-// objects inherit the default valueOf method of the Object object;
-// that simply returns the itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-//
-// The toString( ) method on Array converts the array elements to strings,
-// then returns the result of concatenating these strings, with commas in
-// between. An array with no elements converts to the empty string, which
-// converts to the number 0. If an array has a single element that is a
-// number n, the array converts to a string representation of n, which is
-// then converted back to n itself. If an array contains more than one element,
-// or if its one element is not a number, the array converts to NaN.
-
-function cb() {}
-assert.sameValue(f.reduce(cb, 1), 1, 'f.reduce(cb,1)');
+ function cb(){}
+assert.sameValue(f.reduce(cb,1), 1, 'f.reduce(cb,1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-9.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-9.js
index 4f9f86265..744659f51 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-9.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-9.js
@@ -10,26 +10,25 @@ description: >
[0])
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ f.length = [0];
-f.length = [0];
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
+ //
+ // The toString( ) method on Array converts the array elements to strings,
+ // then returns the result of concatenating these strings, with commas in
+ // between. An array with no elements converts to the empty string, which
+ // converts to the number 0. If an array has a single element that is a
+ // number n, the array converts to a string representation of n, which is
+ // then converted back to n itself. If an array contains more than one element,
+ // or if its one element is not a number, the array converts to NaN.
-// objects inherit the default valueOf method of the Object object;
-// that simply returns the itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-//
-// The toString( ) method on Array converts the array elements to strings,
-// then returns the result of concatenating these strings, with commas in
-// between. An array with no elements converts to the empty string, which
-// converts to the number 0. If an array has a single element that is a
-// number n, the array converts to a string representation of n, which is
-// then converted back to n itself. If an array contains more than one element,
-// or if its one element is not a number, the array converts to NaN.
-
-function cb() {}
-assert.sameValue(f.reduce(cb, 1), 1, 'f.reduce(cb,1)');
+ function cb(){}
+assert.sameValue(f.reduce(cb,1), 1, 'f.reduce(cb,1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-1.js
index af872fd92..d0650cfc4 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-1.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-1.js
@@ -7,22 +7,20 @@ es5id: 15.4.4.21-8-b-1
description: Array.prototype.reduce - no observable effects occur if 'len' is 0
---*/
-var accessed = false;
+ var accessed = false;
-var obj = {
- length: 0
-};
+ var obj = { length: 0 };
-Object.defineProperty(obj, "0", {
- get: function() {
- accessed = true;
- return 10;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ accessed = true;
+ return 10;
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.reduce.call(obj, function() {});
+ Array.prototype.reduce.call(obj, function () { });
});
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-2.js
index a3796550a..84a6d4181 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-2.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-2.js
@@ -9,22 +9,18 @@ description: >
number of iterations in step 9
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return idx;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return idx;
+ }
-var obj = {
- 3: 12,
- 4: 9,
- length: 4
-};
+ var obj = { 3: 12, 4: 9, length: 4 };
-Object.defineProperty(obj, "2", {
- get: function() {
- obj.length = 10;
- return 11;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "2", {
+ get: function () {
+ obj.length = 10;
+ return 11;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn), 3, 'Array.prototype.reduce.call(obj, callbackfn)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-3.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-3.js
index 03fd27c09..95062f462 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-3.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-3.js
@@ -7,37 +7,37 @@ es5id: 15.4.4.21-8-b-3
description: Array.prototype.reduce - loop is broken once 'kPresent' is true
---*/
-var called = 0;
-var testResult = false;
-var firstCalled = 0;
-var secondCalled = 0;
-
-function callbackfn(prevVal, val, idx, obj) {
- if (called === 0) {
- testResult = (idx === 1);
- }
- called++;
-}
-
-var arr = [, , ];
-
-Object.defineProperty(arr, "0", {
- get: function() {
- firstCalled++;
- return 11;
- },
- configurable: true
-});
-
-Object.defineProperty(arr, "1", {
- get: function() {
- secondCalled++;
- return 9;
- },
- configurable: true
-});
-
-arr.reduce(callbackfn);
+ var called = 0;
+ var testResult = false;
+ var firstCalled = 0;
+ var secondCalled = 0;
+
+ function callbackfn(prevVal, val, idx, obj) {
+ if (called === 0) {
+ testResult = (idx === 1);
+ }
+ called++;
+ }
+
+ var arr = [, , ];
+
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ firstCalled++;
+ return 11;
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ secondCalled++;
+ return 9;
+ },
+ configurable: true
+ });
+
+ arr.reduce(callbackfn);
assert(testResult, 'testResult !== true');
assert.sameValue(firstCalled, 1, 'firstCalled');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-ii-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-ii-1.js
index 15b0dc2a0..f2369b432 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-ii-1.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-ii-1.js
@@ -9,14 +9,14 @@ description: >
here
---*/
-var obj = {};
+ var obj = { };
-Object.defineProperty(obj, "length", {
- get: function() {
- obj[1] = "accumulator";
- return 3;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ obj[1] = "accumulator";
+ return 3;
+ },
+ configurable: true
+ });
-assert.sameValue(Array.prototype.reduce.call(obj, function() {}), "accumulator", 'Array.prototype.reduce.call(obj, function () { })');
+assert.sameValue(Array.prototype.reduce.call(obj, function () { }), "accumulator", 'Array.prototype.reduce.call(obj, function () { })');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-ii-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-ii-2.js
index 9c51a152a..12c5e2fdd 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-ii-2.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-ii-2.js
@@ -9,17 +9,14 @@ description: >
here
---*/
-var obj = {
- 1: "accumulator",
- 2: "another"
-};
+ var obj = { 1: "accumulator", 2: "another" };
-Object.defineProperty(obj, "length", {
- get: function() {
- delete obj[1];
- return 3;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ delete obj[1];
+ return 3;
+ },
+ configurable: true
+ });
-assert.notSameValue(Array.prototype.reduce.call(obj, function() {}), "accumulator", 'Array.prototype.reduce.call(obj, function () { })');
+assert.notSameValue(Array.prototype.reduce.call(obj, function () { }), "accumulator", 'Array.prototype.reduce.call(obj, function () { })');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-1.js
index eff2f84cf..fbba69c12 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-1.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-1.js
@@ -9,20 +9,14 @@ description: >
property on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 0);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 0);
- }
-}
-
-var obj = {
- 0: 0,
- 1: 1,
- 2: 2,
- length: 2
-};
-Array.prototype.reduce.call(obj, callbackfn);
+ var obj = { 0: 0, 1: 1, 2: 2, length: 2 };
+ Array.prototype.reduce.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-10.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-10.js
index c3e9f4b4b..67b7b3f57 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-10.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-10.js
@@ -9,23 +9,23 @@ description: >
accessor property on an Array
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 0);
- }
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 0);
+ }
+ }
-var arr = [, 1, 2];
+ var arr = [, 1, 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ return 0;
+ },
+ configurable: true
+ });
-arr.reduce(callbackfn);
+ arr.reduce(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-11.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-11.js
index e5c7a7b97..e1f08e697 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-11.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-11.js
@@ -10,33 +10,28 @@ description: >
Array-like object
---*/
-var testResult = false;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === "9");
- }
-}
-
-var proto = {
- 0: 0,
- 1: 1,
- 2: 2
-};
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-child.length = 3;
-
-Object.defineProperty(child, "0", {
- get: function() {
- return "9";
- },
- configurable: true
-});
-
-Array.prototype.reduce.call(child, callbackfn);
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === "9");
+ }
+ }
+
+ var proto = { 0: 0, 1: 1, 2: 2 };
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 3;
+
+ Object.defineProperty(child, "0", {
+ get: function () {
+ return "9";
+ },
+ configurable: true
+ });
+
+ Array.prototype.reduce.call(child, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-12.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-12.js
index 79eba4945..9d9b802d0 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-12.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-12.js
@@ -9,24 +9,24 @@ description: >
property that overrides an inherited data property on an Array
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === "9");
- }
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === "9");
+ }
+ }
-Array.prototype[0] = 0;
-var arr = [, 1, 2];
+ Array.prototype[0] = 0;
+ var arr = [, 1, 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- return "9";
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ return "9";
+ },
+ configurable: true
+ });
-arr.reduce(callbackfn);
+ arr.reduce(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-13.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-13.js
index 62d5da4b4..00f0210ab 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-13.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-13.js
@@ -10,39 +10,36 @@ description: >
Array-like object
---*/
-var testResult = false;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === "9");
- }
-}
-
-var proto = {
- 1: 1,
- 2: 2
-};
-
-Object.defineProperty(proto, "0", {
- get: function() {
- return 0;
- },
- configurable: true
-});
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-child.length = 3;
-
-Object.defineProperty(child, "0", {
- get: function() {
- return "9";
- },
- configurable: true
-});
-
-Array.prototype.reduce.call(child, callbackfn);
+ var testResult = false;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === "9");
+ }
+ }
+
+ var proto = { 1: 1, 2: 2};
+
+ Object.defineProperty(proto, "0", {
+ get: function () {
+ return 0;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 3;
+
+ Object.defineProperty(child, "0", {
+ get: function () {
+ return "9";
+ },
+ configurable: true
+ });
+
+ Array.prototype.reduce.call(child, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-14.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-14.js
index 0b1781550..77a1084be 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-14.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-14.js
@@ -9,29 +9,28 @@ description: >
property that overrides an inherited accessor property on an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === "9");
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === "9");
- }
-}
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return 0;
+ },
+ configurable: true
+ });
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return 0;
- },
- configurable: true
-});
+ var arr = [, 1, 2];
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ return "9";
+ },
+ configurable: true
+ });
-var arr = [, 1, 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- return "9";
- },
- configurable: true
-});
-
-arr.reduce(callbackfn);
+ arr.reduce(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-15.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-15.js
index 6e2cc64b9..5344feebd 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-15.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-15.js
@@ -9,32 +9,28 @@ description: >
accessor property on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 0);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 0);
- }
-}
+ var proto = { 1: 1, 2: 2 };
-var proto = {
- 1: 1,
- 2: 2
-};
+ Object.defineProperty(proto, "0", {
+ get: function () {
+ return 0;
+ },
+ configurable: true
+ });
-Object.defineProperty(proto, "0", {
- get: function() {
- return 0;
- },
- configurable: true
-});
+ var Con = function () { };
+ Con.prototype = proto;
-var Con = function() {};
-Con.prototype = proto;
+ var child = new Con();
+ child.length = 3;
-var child = new Con();
-child.length = 3;
-
-Array.prototype.reduce.call(child, callbackfn);
+ Array.prototype.reduce.call(child, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-16.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-16.js
index 2bfc2d804..c941e4581 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-16.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-16.js
@@ -9,23 +9,22 @@ description: >
accessor property on an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 0);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 0);
- }
-}
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return 0;
+ },
+ configurable: true
+ });
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return 0;
- },
- configurable: true
-});
+ var arr = [, 1, 2];
-var arr = [, 1, 2];
-
-arr.reduce(callbackfn);
+ arr.reduce(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-17.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-17.js
index 735d1c856..a411f9467 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-17.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-17.js
@@ -9,25 +9,20 @@ description: >
property without a get function on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === undefined);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === undefined);
- }
-}
+ var obj = { 1: 1, 2: 2, length: 3 };
-var obj = {
- 1: 1,
- 2: 2,
- length: 3
-};
+ Object.defineProperty(obj, "0", {
+ set: function () { },
+ configurable: true
+ });
-Object.defineProperty(obj, "0", {
- set: function() {},
- configurable: true
-});
-
-Array.prototype.reduce.call(obj, callbackfn);
+ Array.prototype.reduce.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-18.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-18.js
index 5b2a3b2f7..fbdfb97c8 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-18.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-18.js
@@ -9,21 +9,20 @@ description: >
property without a get function on an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === undefined);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === undefined);
- }
-}
+ var arr = [, 1, 2];
-var arr = [, 1, 2];
+ Object.defineProperty(arr, "0", {
+ set: function () { },
+ configurable: true
+ });
-Object.defineProperty(arr, "0", {
- set: function() {},
- configurable: true
-});
-
-arr.reduce(callbackfn);
+ arr.reduce(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-19.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-19.js
index 9178b85fe..1611043a2 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-19.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-19.js
@@ -10,27 +10,22 @@ description: >
accessor property on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === undefined);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === undefined);
- }
-}
+ Object.prototype[0] = 0;
-Object.prototype[0] = 0;
+ var obj = { 1: 1, 2: 2, length: 3 };
-var obj = {
- 1: 1,
- 2: 2,
- length: 3
-};
+ Object.defineProperty(obj, "0", {
+ set: function () { },
+ configurable: true
+ });
-Object.defineProperty(obj, "0", {
- set: function() {},
- configurable: true
-});
-
-Array.prototype.reduce.call(obj, callbackfn);
+ Array.prototype.reduce.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-2.js
index f8ca72b6a..06d593f56 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-2.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-2.js
@@ -9,15 +9,14 @@ description: >
property on an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 0);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 0);
- }
-}
-
-var arr = [0, 1, 2];
-arr.reduce(callbackfn);
+ var arr = [0, 1, 2];
+ arr.reduce(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-20.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-20.js
index e4793560e..2a313d786 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-20.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-20.js
@@ -10,21 +10,20 @@ description: >
accessor property on an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === undefined);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === undefined);
- }
-}
+ Array.prototype[0] = 0;
+ var arr = [, 1, 2];
+ Object.defineProperty(arr, "0", {
+ set: function () { },
+ configurable: true
+ });
-Array.prototype[0] = 0;
-var arr = [, 1, 2];
-Object.defineProperty(arr, "0", {
- set: function() {},
- configurable: true
-});
-
-arr.reduce(callbackfn);
+ arr.reduce(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-21.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-21.js
index 47a9a843b..d057b59b2 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-21.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-21.js
@@ -9,30 +9,26 @@ description: >
accessor property without a get function on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === undefined);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === undefined);
- }
-}
+ var proto = { 1: 1, 2: 2 };
-var proto = {
- 1: 1,
- 2: 2
-};
+ Object.defineProperty(proto, "0", {
+ set: function () { },
+ configurable: true
+ });
-Object.defineProperty(proto, "0", {
- set: function() {},
- configurable: true
-});
+ var Con = function () { };
+ Con.prototype = proto;
-var Con = function() {};
-Con.prototype = proto;
+ var child = new Con();
+ child.length = 3;
-var child = new Con();
-child.length = 3;
-
-Array.prototype.reduce.call(child, callbackfn);
+ Array.prototype.reduce.call(child, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-22.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-22.js
index dc05e7860..f7d6f961c 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-22.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-22.js
@@ -9,21 +9,20 @@ description: >
accessor property without a get function on an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === undefined);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === undefined);
- }
-}
+ Object.defineProperty(Array.prototype, "0", {
+ set: function () { },
+ configurable: true
+ });
-Object.defineProperty(Array.prototype, "0", {
- set: function() {},
- configurable: true
-});
+ var arr = [, 1, 2];
-var arr = [, 1, 2];
-
-arr.reduce(callbackfn);
+ arr.reduce(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-25.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-25.js
index 451955fcc..202236645 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-25.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-25.js
@@ -10,18 +10,17 @@ description: >
less than number of parameters)
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 0);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 0);
- }
-}
+ var func = function (a, b, c) {
+ Array.prototype.reduce.call(arguments, callbackfn);
+ };
-var func = function(a, b, c) {
- Array.prototype.reduce.call(arguments, callbackfn);
-};
-
-func(0, 1);
+ func(0, 1);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-26.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-26.js
index eef4cdd6e..887f26315 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-26.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-26.js
@@ -10,19 +10,18 @@ description: >
number of parameters)
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 2) {
+ testResult = (prevVal === 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 2) {
- testResult = (prevVal === 1);
- }
-}
+ var func = function (a, b, c) {
+ delete arguments[0];
+ Array.prototype.reduce.call(arguments, callbackfn);
+ };
-var func = function(a, b, c) {
- delete arguments[0];
- Array.prototype.reduce.call(arguments, callbackfn);
-};
-
-func(0, 1, 2);
+ func(0, 1, 2);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-27.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-27.js
index fc4013d2d..3f591f26e 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-27.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-27.js
@@ -10,20 +10,19 @@ description: >
greater than number of parameters)
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 3) {
+ testResult = (prevVal === 2);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 3) {
- testResult = (prevVal === 2);
- }
-}
+ var func = function (a, b, c) {
+ delete arguments[0];
+ delete arguments[1];
+ Array.prototype.reduce.call(arguments, callbackfn);
+ };
-var func = function(a, b, c) {
- delete arguments[0];
- delete arguments[1];
- Array.prototype.reduce.call(arguments, callbackfn);
-};
-
-func(0, 1, 2, 3);
+ func(0, 1, 2, 3);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-28.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-28.js
index 1c429e4c7..2a96496aa 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-28.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-28.js
@@ -9,15 +9,14 @@ description: >
implements its own property get method
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === "0");
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === "0");
- }
-}
-
-var str = new String("012");
-Array.prototype.reduce.call(str, callbackfn);
+ var str = new String("012");
+ Array.prototype.reduce.call(str, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-29.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-29.js
index 0fe7328fe..8f5e18db7 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-29.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-29.js
@@ -9,22 +9,21 @@ description: >
implements its own property get method
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 0);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 0);
- }
-}
+ var obj = function (a, b, c) {
+ return a + b + c;
+ };
+ obj[0] = 0;
+ obj[1] = 1;
+ obj[2] = 2;
+ obj[3] = 3;
-var obj = function(a, b, c) {
- return a + b + c;
-};
-obj[0] = 0;
-obj[1] = 1;
-obj[2] = 2;
-obj[3] = 3;
-
-Array.prototype.reduce.call(obj, callbackfn);
+ Array.prototype.reduce.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-3.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-3.js
index 15298bc3e..d77985dd3 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-3.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-3.js
@@ -10,28 +10,22 @@ description: >
Array-like object
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === "9");
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === "9");
- }
-}
+ var proto = { 0: 0, 1: 1, 2: 2, length: 3 };
+ var Con = function () { };
+ Con.prototype = proto;
-var proto = {
- 0: 0,
- 1: 1,
- 2: 2,
- length: 3
-};
-var Con = function() {};
-Con.prototype = proto;
+ var child = new Con();
+ child[0] = "9";
+ child[1] = "1";
+ child.length = 3;
-var child = new Con();
-child[0] = "9";
-child[1] = "1";
-child.length = 3;
-
-Array.prototype.reduce.call(child, callbackfn);
+ Array.prototype.reduce.call(child, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-30.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-30.js
index 45f396f05..c307ddda9 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-30.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-30.js
@@ -9,36 +9,35 @@ description: >
iterations is observed in subsequent iterations on an Array
---*/
-var testResult = false;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
-
-var arr = [, , 2];
-var preIterVisible = false;
-
-Object.defineProperty(arr, "0", {
- get: function() {
- preIterVisible = true;
- return 0;
- },
- configurable: true
-});
-
-Object.defineProperty(arr, "1", {
- get: function() {
- if (preIterVisible) {
- return 1;
- } else {
- return 100;
- }
- },
- configurable: true
-});
-
-arr.reduce(callbackfn);
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
+
+ var arr = [, , 2];
+ var preIterVisible = false;
+
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ preIterVisible = true;
+ return 0;
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ if (preIterVisible) {
+ return 1;
+ } else {
+ return 100;
+ }
+ },
+ configurable: true
+ });
+
+ arr.reduce(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-31.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-31.js
index 70282ce37..e035ae8e4 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-31.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-31.js
@@ -10,38 +10,35 @@ description: >
object
---*/
-var testResult = false;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
-
-var obj = {
- length: 2
-};
-var preIterVisible = false;
-
-Object.defineProperty(obj, "0", {
- get: function() {
- preIterVisible = true;
- return 0;
- },
- configurable: true
-});
-
-Object.defineProperty(obj, "1", {
- get: function() {
- if (preIterVisible) {
- return 1;
- } else {
- return 100;
- }
- },
- configurable: true
-});
-
-Array.prototype.reduce.call(obj, callbackfn);
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
+
+ var obj = { length: 2 };
+ var preIterVisible = false;
+
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ preIterVisible = true;
+ return 0;
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ if (preIterVisible) {
+ return 1;
+ } else {
+ return 100;
+ }
+ },
+ configurable: true
+ });
+
+ Array.prototype.reduce.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-32.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-32.js
index 50002a64e..132408543 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-32.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-32.js
@@ -9,29 +9,24 @@ description: >
on an Array-like object
---*/
-var accessed = false;
-var testResult = false;
+ var accessed = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx >= 1) {
+ accessed = true;
+ testResult = (prevVal === 0);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx >= 1) {
- accessed = true;
- testResult = (prevVal === 0);
- }
-}
-
-var obj = {
- 2: 2,
- 1: 1,
- length: 3
-};
-Object.defineProperty(obj, "0", {
- get: function() {
- throw new RangeError("unhandle exception happened in getter");
- },
- configurable: true
-});
+ var obj = { 2: 2, 1: 1, length: 3 };
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ throw new RangeError("unhandle exception happened in getter");
+ },
+ configurable: true
+ });
assert.throws(RangeError, function() {
- Array.prototype.reduce.call(obj, callbackfn);
+ Array.prototype.reduce.call(obj, callbackfn);
});
assert.sameValue(accessed, false, 'accessed');
assert.sameValue(testResult, false, 'testResult');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-33.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-33.js
index 9f00cb900..be7c29e8b 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-33.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-33.js
@@ -9,26 +9,25 @@ description: >
on an Array
---*/
-var accessed = false;
-var testResult = false;
+ var accessed = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx >= 1) {
+ accessed = true;
+ testResult = (prevVal === 0);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx >= 1) {
- accessed = true;
- testResult = (prevVal === 0);
- }
-}
+ var arr = [, 1, 2];
-var arr = [, 1, 2];
-
-Object.defineProperty(arr, "0", {
- get: function() {
- throw new RangeError("unhandle exception happened in getter");
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ throw new RangeError("unhandle exception happened in getter");
+ },
+ configurable: true
+ });
assert.throws(RangeError, function() {
- arr.reduce(callbackfn);
+ arr.reduce(callbackfn);
});
assert.sameValue(accessed, false, 'accessed');
assert.sameValue(testResult, false, 'testResult');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-4.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-4.js
index 72a46d6c8..26118b58f 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-4.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-4.js
@@ -9,15 +9,14 @@ description: >
property that overrides an inherited data property on an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 0);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 0);
- }
-}
-
-Array.prototype[0] = "9";
-[0, 1, 2].reduce(callbackfn);
+ Array.prototype[0] = "9";
+ [0, 1, 2].reduce(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-5.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-5.js
index 17c7e51c6..0c9aeb7b8 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-5.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-5.js
@@ -10,34 +10,33 @@ description: >
Array-like object
---*/
-var testResult = false;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === "9");
- }
-}
-
-var proto = {};
-
-Object.defineProperty(proto, "0", {
- get: function() {
- return 0;
- },
- configurable: true
-});
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-child.length = 2;
-Object.defineProperty(child, "0", {
- value: "9",
- configurable: true
-});
-child[1] = "1";
-
-Array.prototype.reduce.call(child, callbackfn);
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === "9");
+ }
+ }
+
+ var proto = {};
+
+ Object.defineProperty(proto, "0", {
+ get: function () {
+ return 0;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 2;
+ Object.defineProperty(child, "0", {
+ value: "9",
+ configurable: true
+ });
+ child[1] = "1";
+
+ Array.prototype.reduce.call(child, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-6.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-6.js
index 2b0f847da..22b4af3ec 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-6.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-6.js
@@ -9,21 +9,20 @@ description: >
property that overrides an inherited accessor property on an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 0);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 0);
- }
-}
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return "5";
+ },
+ configurable: true
+ });
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return "5";
- },
- configurable: true
-});
-
-[0, 1, 2].reduce(callbackfn);
+ [0, 1, 2].reduce(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-7.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-7.js
index 24fa5654c..6eaf1bac1 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-7.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-7.js
@@ -9,26 +9,20 @@ description: >
property on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 0);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 0);
- }
-}
+ var proto = { 0: 0, 1: 1, 2: 2, length: 3 };
+ var Con = function () { };
+ Con.prototype = proto;
-var proto = {
- 0: 0,
- 1: 1,
- 2: 2,
- length: 3
-};
-var Con = function() {};
-Con.prototype = proto;
+ var child = new Con();
+ child.length = 3;
-var child = new Con();
-child.length = 3;
-
-Array.prototype.reduce.call(child, callbackfn);
+ Array.prototype.reduce.call(child, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-8.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-8.js
index 0eed56363..48166b7ee 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-8.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-8.js
@@ -9,17 +9,16 @@ description: >
property on an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 0);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 0);
- }
-}
-
-Array.prototype[0] = 0;
-Array.prototype[1] = 1;
-Array.prototype[2] = 2;
-[, , , ].reduce(callbackfn);
+ Array.prototype[0] = 0;
+ Array.prototype[1] = 1;
+ Array.prototype[2] = 2;
+ [, , ,].reduce(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-9.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-9.js
index d61c61aea..82a348b81 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-9.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-9.js
@@ -9,26 +9,21 @@ description: >
property on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 0);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 0);
- }
-}
+ var obj = { 1: 1, 2: 2, length: 3 };
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ return 0;
+ },
+ configurable: true
+ });
-var obj = {
- 1: 1,
- 2: 2,
- length: 3
-};
-Object.defineProperty(obj, "0", {
- get: function() {
- return 0;
- },
- configurable: true
-});
-
-Array.prototype.reduce.call(obj, callbackfn);
+ Array.prototype.reduce.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-1.js
index bd6232342..9fb6bc97c 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-1.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-1.js
@@ -9,10 +9,11 @@ description: >
initialValue is not present
---*/
-function callbackfn(prevVal, curVal, idx, obj)
-{}
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ }
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.reduce(callbackfn);
+ arr.reduce(callbackfn);
});
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-2.js
index f30f014b9..ae73a9a86 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-2.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-2.js
@@ -10,12 +10,13 @@ description: >
not present
---*/
-function callbackfn(prevVal, curVal, idx, obj)
-{}
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ }
-var arr = new Array(10);
-arr[9] = 1;
-arr.length = 5;
+ var arr = new Array(10);
+ arr[9] = 1;
+ arr.length = 5;
assert.throws(TypeError, function() {
- arr.reduce(callbackfn);
+ arr.reduce(callbackfn);
});
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-3.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-3.js
index 15d80dfa2..f4e87f5e0 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-3.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-3.js
@@ -9,15 +9,16 @@ description: >
values are deleted and initialValue is not present
---*/
-function callbackfn(prevVal, curVal, idx, obj)
-{}
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ }
-var arr = [1, 2, 3, 4, 5];
-delete arr[0];
-delete arr[1];
-delete arr[2];
-delete arr[3];
-delete arr[4];
+ var arr = [1,2,3,4,5];
+ delete arr[0];
+ delete arr[1];
+ delete arr[2];
+ delete arr[3];
+ delete arr[4];
assert.throws(TypeError, function() {
- arr.reduce(callbackfn);
+ arr.reduce(callbackfn);
});
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-4.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-4.js
index db9f7aeba..3e712b86d 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-4.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-4.js
@@ -9,11 +9,11 @@ description: >
properties but prototype contains a single property
---*/
-var arr = [, , , ];
+ var arr = [, , , ];
-try {
- Array.prototype[1] = "prototype";
- arr.reduce(function() {});
-} finally {
- delete Array.prototype[1];
-}
+ try {
+ Array.prototype[1] = "prototype";
+ arr.reduce(function () { });
+ } finally {
+ delete Array.prototype[1];
+ }
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-5.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-5.js
index d04354342..756a4e93d 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-5.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-5.js
@@ -9,18 +9,18 @@ description: >
side-effects that might be produced by step 2
---*/
-var obj = {};
+ var obj = { };
-var accessed = false;
+ var accessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- accessed = true;
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ accessed = true;
+ return 2;
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.reduce.call(obj, function() {});
+ Array.prototype.reduce.call(obj, function () { });
});
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-6.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-6.js
index 687736c2b..af901dc8e 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-6.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-6.js
@@ -9,22 +9,22 @@ description: >
side-effects that might be produced by step 3
---*/
-var obj = {};
+ var obj = {};
-var accessed = false;
+ var accessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- return {
- toString: function() {
- accessed = true;
- return "2";
- }
- };
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ toString: function () {
+ accessed = true;
+ return "2";
+ }
+ };
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.reduce.call(obj, function() {});
+ Array.prototype.reduce.call(obj, function () { });
});
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-7.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-7.js
index 178c34c70..adbdc526a 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-7.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-7.js
@@ -9,15 +9,15 @@ description: >
was thrown by step 2
---*/
-var obj = {};
+ var obj = {};
-Object.defineProperty(obj, "length", {
- get: function() {
- throw new Test262Error();
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ throw new Test262Error();
+ },
+ configurable: true
+ });
assert.throws(Test262Error, function() {
- Array.prototype.reduce.call(obj, function() {});
+ Array.prototype.reduce.call(obj, function () { });
});
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-8.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-8.js
index 64f4b8f79..cd677383a 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-8.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-8.js
@@ -9,19 +9,19 @@ description: >
was thrown by step 3
---*/
-var obj = {};
+ var obj = {};
-Object.defineProperty(obj, "length", {
- get: function() {
- return {
- toString: function() {
- throw new Test262Error();
- }
- };
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ toString: function () {
+ throw new Test262Error();
+ }
+ };
+ },
+ configurable: true
+ });
assert.throws(Test262Error, function() {
- Array.prototype.reduce.call(obj, function() {});
+ Array.prototype.reduce.call(obj, function () { });
});
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-1.js
index 2ac5c2e73..6076c9b10 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-1.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-1.js
@@ -9,12 +9,12 @@ description: >
array after it is called
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- arr[5] = 6;
- arr[2] = 3;
- return prevVal + curVal;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ arr[5] = 6;
+ arr[2] = 3;
+ return prevVal + curVal;
+ }
-var arr = [1, 2, , 4, '5'];
+ var arr = [1, 2, , 4, '5'];
assert.sameValue(arr.reduce(callbackfn), "105", 'arr.reduce(callbackfn)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-10.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-10.js
index fec5a6b8d..10a0e4368 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-10.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-10.js
@@ -9,12 +9,12 @@ description: >
consider new elements added to array after it is called
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- arr[5] = 6;
- arr[2] = 3;
- return prevVal + curVal;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ arr[5] = 6;
+ arr[2] = 3;
+ return prevVal + curVal;
+ }
-var arr = [1, 2, , 4, '5'];
+ var arr = [1,2,,4,'5'];
assert.sameValue(arr.reduce(callbackfn, ""), "12345", 'arr.reduce(callbackfn, "")');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-2.js
index 0db971210..2e74efa53 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-2.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-2.js
@@ -9,13 +9,13 @@ description: >
after it is called
---*/
-function callbackfn(prevVal, curVal, idx, obj)
-{
- arr[3] = -2;
- arr[4] = -1;
- return prevVal + curVal;
-}
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ arr[3] = -2;
+ arr[4] = -1;
+ return prevVal + curVal;
+ }
-var arr = [1, 2, 3, 4, 5];
+ var arr = [1,2,3,4,5];
assert.sameValue(arr.reduce(callbackfn), 3, 'arr.reduce(callbackfn)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-3.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-3.js
index 514951a74..e5942de1a 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-3.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-3.js
@@ -9,14 +9,14 @@ description: >
after the call
---*/
-function callbackfn(prevVal, curVal, idx, obj)
-{
- delete arr[3];
- delete arr[4];
- return prevVal + curVal;
-}
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ delete arr[3];
+ delete arr[4];
+ return prevVal + curVal;
+ }
-var arr = ['1', 2, 3, 4, 5];
+ var arr = ['1',2,3,4,5];
// two elements deleted
assert.sameValue(arr.reduce(callbackfn), "123", 'arr.reduce(callbackfn)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-4.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-4.js
index 6b9f7ca03..e1d2f69fb 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-4.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-4.js
@@ -9,12 +9,12 @@ description: >
Array.length is decreased
---*/
-function callbackfn(prevVal, curVal, idx, obj)
-{
- arr.length = 2;
- return prevVal + curVal;
-}
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ arr.length = 2;
+ return prevVal + curVal;
+ }
-var arr = [1, 2, 3, 4, 5];
+ var arr = [1,2,3,4,5];
assert.sameValue(arr.reduce(callbackfn), 3, 'arr.reduce(callbackfn)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-5.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-5.js
index 4fc56efea..b07ae9020 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-5.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-5.js
@@ -9,15 +9,14 @@ description: >
element
---*/
-var callCnt = 0;
+ var callCnt = 0;
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ callCnt++;
+ return 2;
+ }
-function callbackfn(prevVal, curVal, idx, obj)
-{
- callCnt++;
- return 2;
-}
-
-var arr = [1];
+ var arr = [1];
assert.sameValue(arr.reduce(callbackfn), 1, 'arr.reduce(callbackfn)');
assert.sameValue(callCnt, 0, 'callCnt');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-6.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-6.js
index 2d05468ef..a31d59a24 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-6.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-6.js
@@ -9,17 +9,17 @@ description: >
call when same index is also present in prototype
---*/
-function callbackfn(prevVal, curVal, idx, obj)
-{
- delete arr[3];
- delete arr[4];
- return prevVal + curVal;
-}
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ delete arr[3];
+ delete arr[4];
+ return prevVal + curVal;
+ }
-Array.prototype[4] = 5;
-var arr = ['1', 2, 3, 4, 5];
-var res = arr.reduce(callbackfn);
-delete Array.prototype[4];
+ Array.prototype[4] = 5;
+ var arr = ['1',2,3,4,5];
+ var res = arr.reduce(callbackfn);
+ delete Array.prototype[4];
//one element acually deleted
assert.sameValue(res, "1235", 'res');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-7.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-7.js
index f8c3a4b71..67e99779f 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-7.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-7.js
@@ -9,13 +9,13 @@ description: >
deleted during the call
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- delete o.arr;
- return prevVal + curVal;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ delete o.arr;
+ return prevVal + curVal;
+ }
-var o = new Object();
-o.arr = ['1', 2, 3, 4, 5];
+ var o = new Object();
+ o.arr = ['1', 2, 3, 4, 5];
assert.sameValue(o.arr.reduce(callbackfn), "12345", 'o.arr.reduce(callbackfn)');
assert.sameValue(o.hasOwnProperty("arr"), false, 'o.hasOwnProperty("arr")');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-8.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-8.js
index 6feccfcb3..beceef98c 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-8.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-8.js
@@ -7,26 +7,23 @@ es5id: 15.4.4.21-9-8
description: Array.prototype.reduce - no observable effects occur if 'len' is 0
---*/
-var accessed = false;
-var callbackAccessed = false;
+ var accessed = false;
+ var callbackAccessed = false;
+ function callbackfn() {
+ callbackAccessed = true;
+ }
-function callbackfn() {
- callbackAccessed = true;
-}
+ var obj = { length: 0 };
-var obj = {
- length: 0
-};
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ accessed = true;
+ return 10;
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "0", {
- get: function() {
- accessed = true;
- return 10;
- },
- configurable: true
-});
-
-Array.prototype.reduce.call(obj, function() {}, "initialValue");
+ Array.prototype.reduce.call(obj, function () { }, "initialValue");
assert.sameValue(accessed, false, 'accessed');
assert.sameValue(callbackAccessed, false, 'callbackAccessed');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-9.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-9.js
index 0a6ba82e4..aa867346f 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-9.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-9.js
@@ -9,23 +9,22 @@ description: >
number of iterations in step 9
---*/
-var called = 0;
+ var called = 0;
+ function callbackfn(accum, val, idx, obj) {
+ called++;
+ return accum + val;
+ }
-function callbackfn(accum, val, idx, obj) {
- called++;
- return accum + val;
-}
+ var arr = [0, 1, 2, 3];
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ arr.length = 2;
+ return 0;
+ },
+ configurable: true
+ });
-var arr = [0, 1, 2, 3];
-Object.defineProperty(arr, "0", {
- get: function() {
- arr.length = 2;
- return 0;
- },
- configurable: true
-});
-
-var newAccum = arr.reduce(callbackfn, "initialValue");
+ var newAccum = arr.reduce(callbackfn, "initialValue");
assert.sameValue(newAccum, "initialValue01", 'newAccum');
assert.sameValue(called, 2, 'called');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-1.js
index 274f1bb6e..e7f18d3bd 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-1.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-1.js
@@ -9,9 +9,10 @@ description: >
and initialValue is present
---*/
-function callbackfn(prevVal, curVal, idx, obj)
-{}
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ }
-var arr = new Array(10);
+ var arr = new Array(10);
-assert.sameValue(arr.reduce(callbackfn, 5), 5, 'arr.reduce(callbackfn,5)');
+assert.sameValue(arr.reduce(callbackfn,5), 5, 'arr.reduce(callbackfn,5)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-10.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-10.js
index bf0d29423..4adec3c10 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-10.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-10.js
@@ -10,31 +10,28 @@ description: >
Object
---*/
-var accessed = false;
-var testResult = true;
+ var accessed = false;
+ var testResult = true;
-function callbackfn(accum, val, idx, obj) {
- accessed = true;
- if (idx === 3) {
- testResult = false;
- }
-}
+ function callbackfn(accum, val, idx, obj) {
+ accessed = true;
+ if (idx === 3) {
+ testResult = false;
+ }
+ }
-var obj = {
- 2: 2,
- length: 20
-};
+ var obj = { 2: 2, length: 20 };
-Object.defineProperty(obj, "0", {
- get: function() {
- delete Object.prototype[3];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ delete Object.prototype[3];
+ return 0;
+ },
+ configurable: true
+ });
-Object.prototype[3] = 1;
-Array.prototype.reduce.call(obj, callbackfn);
+ Object.prototype[3] = 1;
+ Array.prototype.reduce.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-11.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-11.js
index 4636bd54a..b2f71de95 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-11.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-11.js
@@ -9,27 +9,27 @@ description: >
causes deleted index property not to be visited on an Array
---*/
-var accessed = false;
-var testResult = true;
+ var accessed = false;
+ var testResult = true;
-function callbackfn(accum, val, idx, obj) {
- accessed = true;
- if (idx === 1) {
- testResult = false;
- }
-}
+ function callbackfn(accum, val, idx, obj) {
+ accessed = true;
+ if (idx === 1) {
+ testResult = false;
+ }
+ }
-var arr = [, , , 3];
-Object.defineProperty(arr, "0", {
- get: function() {
- delete Array.prototype[1];
- return 0;
- },
- configurable: true
-});
+ var arr = [, , , 3];
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete Array.prototype[1];
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype[1] = 1;
-arr.reduce(callbackfn);
+ Array.prototype[1] = 1;
+ arr.reduce(callbackfn);
assert(testResult, 'testResult !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-12.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-12.js
index 7605c7ebe..c82150f24 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-12.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-12.js
@@ -10,30 +10,25 @@ description: >
on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(accum, val, idx, obj) {
- if (idx === 1 && val === 1) {
- testResult = true;
- }
-}
+ function callbackfn(accum, val, idx, obj) {
+ if (idx === 1 && val === 1) {
+ testResult = true;
+ }
+ }
-var obj = {
- 0: 0,
- 1: 111,
- 4: 10,
- length: 10
-};
+ var obj = { 0: 0, 1: 111, 4: 10, length: 10 };
-Object.defineProperty(obj, "0", {
- get: function() {
- delete obj[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ delete obj[1];
+ return 0;
+ },
+ configurable: true
+ });
-Object.prototype[1] = 1;
-Array.prototype.reduce.call(obj, callbackfn);
+ Object.prototype[1] = 1;
+ Array.prototype.reduce.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-13.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-13.js
index 4960d60e6..fa7a8f54d 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-13.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-13.js
@@ -10,24 +10,24 @@ description: >
on an Array
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(accum, val, idx, obj) {
- if (idx === 1 && val === 1) {
- testResult = true;
- }
-}
-var arr = [0, 111];
+ function callbackfn(accum, val, idx, obj) {
+ if (idx === 1 && val === 1) {
+ testResult = true;
+ }
+ }
+ var arr = [0, 111];
-Object.defineProperty(arr, "0", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype[1] = 1;
-arr.reduce(callbackfn);
+ Array.prototype[1] = 1;
+ arr.reduce(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-14.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-14.js
index 0d00a3231..590122b87 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-14.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-14.js
@@ -9,27 +9,27 @@ description: >
causes deleted index property not to be visited
---*/
-var accessed = false;
-var testResult = true;
+ var accessed = false;
+ var testResult = true;
-function callbackfn(accum, val, idx, obj) {
- accessed = true;
- if (idx === 2) {
- testResult = false;
- }
-}
+ function callbackfn(accum, val, idx, obj) {
+ accessed = true;
+ if (idx === 2) {
+ testResult = false;
+ }
+ }
-var arr = [0, 1, 2, 3];
+ var arr = [0, 1, 2, 3];
-Object.defineProperty(arr, "0", {
- get: function() {
- arr.length = 2;
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ arr.length = 2;
+ return 0;
+ },
+ configurable: true
+ });
-arr.reduce(callbackfn);
+ arr.reduce(callbackfn);
assert(testResult, 'testResult !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-15.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-15.js
index 4d42c2ca7..18cc65818 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-15.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-15.js
@@ -9,30 +9,30 @@ description: >
property in step 8 causes prototype index property to be visited
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(accum, val, idx, obj) {
- if (idx === 2 && val === "prototype") {
- testResult = true;
- }
-}
-var arr = [0, 1, 2, 3];
+ function callbackfn(accum, val, idx, obj) {
+ if (idx === 2 && val === "prototype") {
+ testResult = true;
+ }
+ }
+ var arr = [0, 1, 2, 3];
-Object.defineProperty(Array.prototype, "2", {
- get: function() {
- return "prototype";
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "2", {
+ get: function () {
+ return "prototype";
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "0", {
- get: function() {
- arr.length = 2;
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ arr.length = 2;
+ return 1;
+ },
+ configurable: true
+ });
-arr.reduce(callbackfn);
+ arr.reduce(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-16.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-16.js
index 047fc4db9..29c1d4f8e 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-16.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-16.js
@@ -10,31 +10,31 @@ description: >
flags: [noStrict]
---*/
-var testResult = false;
-
-function callbackfn(accum, val, idx, obj) {
- if (idx === 2 && val === "unconfigurable") {
- testResult = true;
- }
-}
-
-var arr = [0, 1, 2, 3];
-
-Object.defineProperty(arr, "2", {
- get: function() {
- return "unconfigurable";
- },
- configurable: false
-});
-
-Object.defineProperty(arr, "0", {
- get: function() {
- arr.length = 2;
- return 1;
- },
- configurable: true
-});
-
-arr.reduce(callbackfn);
+ var testResult = false;
+
+ function callbackfn(accum, val, idx, obj) {
+ if (idx === 2 && val === "unconfigurable") {
+ testResult = true;
+ }
+ }
+
+ var arr = [0, 1, 2, 3];
+
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ return "unconfigurable";
+ },
+ configurable: false
+ });
+
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ arr.length = 2;
+ return 1;
+ },
+ configurable: true
+ });
+
+ arr.reduce(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-17.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-17.js
index 2364819b9..34cbe8651 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-17.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-17.js
@@ -9,31 +9,29 @@ description: >
visited on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(accum, val, idx, obj) {
- if (idx === 3 && val === 3) {
- testResult = true;
- }
-}
+ function callbackfn(accum, val, idx, obj) {
+ if (idx === 3 && val === 3) {
+ testResult = true;
+ }
+ }
-var obj = {
- length: 5
-};
+ var obj = { length: 5 };
-Object.defineProperty(obj, "1", {
- get: function() {
- Object.defineProperty(obj, "3", {
- get: function() {
- return 3;
- },
- configurable: true
- });
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ Object.defineProperty(obj, "3", {
+ get: function () {
+ return 3;
+ },
+ configurable: true
+ });
+ return 1;
+ },
+ configurable: true
+ });
-Array.prototype.reduce.call(obj, callbackfn, "initialValue");
+ Array.prototype.reduce.call(obj, callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-18.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-18.js
index 94cdebfc3..9cede28d0 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-18.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-18.js
@@ -9,29 +9,29 @@ description: >
visited on an Array
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(accum, val, idx, obj) {
- if (idx === 1 && val === 1) {
- testResult = true;
- }
-}
+ function callbackfn(accum, val, idx, obj) {
+ if (idx === 1 && val === 1) {
+ testResult = true;
+ }
+ }
-var arr = [0, , 2];
+ var arr = [0, , 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- Object.defineProperty(arr, "1", {
- get: function() {
- return 1;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
-arr.reduce(callbackfn, "initialValue");
+ arr.reduce(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-19.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-19.js
index 719447c92..76fb7a817 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-19.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-19.js
@@ -9,31 +9,29 @@ description: >
on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(accum, val, idx, obj) {
- if (idx === 1 && val === 6.99) {
- testResult = true;
- }
-}
+ function callbackfn(accum, val, idx, obj) {
+ if (idx === 1 && val === 6.99) {
+ testResult = true;
+ }
+ }
-var obj = {
- length: 6
-};
+ var obj = { length: 6 };
-Object.defineProperty(obj, "0", {
- get: function() {
- Object.defineProperty(Object.prototype, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ Object.defineProperty(Object.prototype, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype.reduce.call(obj, callbackfn, "initialValue");
+ Array.prototype.reduce.call(obj, callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-2.js
index eabeeb5eb..42f76e8fa 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-2.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-2.js
@@ -9,24 +9,24 @@ description: >
here
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(accum, val, idx, obj) {
- if (idx === 2 && val === "2") {
- testResult = true;
- }
-}
+ function callbackfn(accum, val, idx, obj) {
+ if (idx === 2 && val === "2") {
+ testResult = true;
+ }
+ }
-var obj = {};
+ var obj = {};
-Object.defineProperty(obj, "length", {
- get: function() {
- obj[2] = "2";
- return 3;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ obj[2] = "2";
+ return 3;
+ },
+ configurable: true
+ });
-Array.prototype.reduce.call(obj, callbackfn, "initialValue");
+ Array.prototype.reduce.call(obj, callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-20.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-20.js
index 935e8ca31..2d52994db 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-20.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-20.js
@@ -9,29 +9,29 @@ description: >
visited on an Array
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(accum, val, idx, obj) {
- if (idx === 1 && val === 6.99) {
- testResult = true;
- }
-}
+ function callbackfn(accum, val, idx, obj) {
+ if (idx === 1 && val === 6.99) {
+ testResult = true;
+ }
+ }
-var arr = [0, , 2];
+ var arr = [0, , 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- Object.defineProperty(Array.prototype, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ Object.defineProperty(Array.prototype, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
-arr.reduce(callbackfn, "initialValue");
+ arr.reduce(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-21.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-21.js
index 200ac1c68..f5ae4f380 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-21.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-21.js
@@ -9,37 +9,34 @@ description: >
index property not to be visited on an Array-like object
---*/
-var accessed = false;
-var testResult = true;
-
-function callbackfn(accum, val, idx, obj) {
- accessed = true;
- if (idx === 1) {
- testResult = false;
- }
-}
-
-var obj = {
- 5: 10,
- length: 10
-};
-
-Object.defineProperty(obj, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
-});
-
-Object.defineProperty(obj, "0", {
- get: function() {
- delete obj[1];
- return 0;
- },
- configurable: true
-});
-
-Array.prototype.reduce.call(obj, callbackfn, "initialValue");
+ var accessed = false;
+ var testResult = true;
+
+ function callbackfn(accum, val, idx, obj) {
+ accessed = true;
+ if (idx === 1) {
+ testResult = false;
+ }
+ }
+
+ var obj = { 5: 10, length: 10 };
+
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ delete obj[1];
+ return 0;
+ },
+ configurable: true
+ });
+
+ Array.prototype.reduce.call(obj, callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-22.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-22.js
index 64402e07c..f824832cb 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-22.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-22.js
@@ -9,34 +9,34 @@ description: >
index property not to be visited on an Array
---*/
-var accessed = false;
-var testResult = true;
-
-function callbackfn(accum, val, idx, obj) {
- accessed = true;
- if (idx === 1) {
- testResult = false;
- }
-}
-
-var arr = [1, 2, 4];
-
-Object.defineProperty(arr, "1", {
- get: function() {
- return "6.99";
- },
- configurable: true
-});
-
-Object.defineProperty(arr, "0", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
-
-arr.reduce(callbackfn, "initialValue");
+ var accessed = false;
+ var testResult = true;
+
+ function callbackfn(accum, val, idx, obj) {
+ accessed = true;
+ if (idx === 1) {
+ testResult = false;
+ }
+ }
+
+ var arr = [1, 2, 4];
+
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return "6.99";
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
+
+ arr.reduce(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-23.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-23.js
index 236167f7e..3ee4365ed 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-23.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-23.js
@@ -9,31 +9,28 @@ description: >
deleted index property not to be visited on an Array-like Object
---*/
-var accessed = false;
-var testResult = true;
+ var accessed = false;
+ var testResult = true;
-function callbackfn(accum, val, idx, obj) {
- accessed = true;
- if (idx === 3) {
- testResult = false;
- }
-}
+ function callbackfn(accum, val, idx, obj) {
+ accessed = true;
+ if (idx === 3) {
+ testResult = false;
+ }
+ }
-var obj = {
- 2: 2,
- length: 20
-};
+ var obj = { 2: 2, length: 20 };
-Object.defineProperty(obj, "0", {
- get: function() {
- delete Object.prototype[3];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ delete Object.prototype[3];
+ return 0;
+ },
+ configurable: true
+ });
-Object.prototype[3] = 1;
-Array.prototype.reduce.call(obj, callbackfn, "initialValue");
+ Object.prototype[3] = 1;
+ Array.prototype.reduce.call(obj, callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-24.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-24.js
index 7a2cbcd16..18d1e2069 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-24.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-24.js
@@ -9,27 +9,27 @@ description: >
deleted index property not to be visited on an Array
---*/
-var accessed = false;
-var testResult = true;
+ var accessed = false;
+ var testResult = true;
-function callbackfn(accum, val, idx, obj) {
- accessed = true;
- if (idx === 1) {
- testResult = false;
- }
-}
+ function callbackfn(accum, val, idx, obj) {
+ accessed = true;
+ if (idx === 1) {
+ testResult = false;
+ }
+ }
-var arr = [0, , , 3];
-Object.defineProperty(arr, "0", {
- get: function() {
- delete Array.prototype[1];
- return 0;
- },
- configurable: true
-});
+ var arr = [0, , , 3];
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete Array.prototype[1];
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype[1] = 1;
-arr.reduce(callbackfn, "initialValue");
+ Array.prototype[1] = 1;
+ arr.reduce(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-25.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-25.js
index 311f9f21f..83c1b449e 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-25.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-25.js
@@ -10,30 +10,25 @@ description: >
Array-like object
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(accum, val, idx, obj) {
- if (idx === 1 && val === 1) {
- testResult = true;
- }
-}
+ function callbackfn(accum, val, idx, obj) {
+ if (idx === 1 && val === 1) {
+ testResult = true;
+ }
+ }
-var obj = {
- 0: 0,
- 1: 111,
- 4: 10,
- length: 10
-};
+ var obj = { 0: 0, 1: 111, 4: 10, length: 10 };
-Object.defineProperty(obj, "0", {
- get: function() {
- delete obj[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ delete obj[1];
+ return 0;
+ },
+ configurable: true
+ });
-Object.prototype[1] = 1;
-Array.prototype.reduce.call(obj, callbackfn, "initialValue");
+ Object.prototype[1] = 1;
+ Array.prototype.reduce.call(obj, callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-26.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-26.js
index 8a570c25e..c5b22131b 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-26.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-26.js
@@ -9,24 +9,24 @@ description: >
property causes prototype index property to be visited on an Array
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(accum, val, idx, obj) {
- if (idx === 1 && val === 1) {
- testResult = true;
- }
-}
-var arr = [0, 111];
+ function callbackfn(accum, val, idx, obj) {
+ if (idx === 1 && val === 1) {
+ testResult = true;
+ }
+ }
+ var arr = [0, 111];
-Object.defineProperty(arr, "0", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype[1] = 1;
-arr.reduce(callbackfn, "initialValue");
+ Array.prototype[1] = 1;
+ arr.reduce(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-27.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-27.js
index bfbf66fbf..a20faec87 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-27.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-27.js
@@ -9,27 +9,27 @@ description: >
index property not to be visited
---*/
-var accessed = false;
-var testResult = true;
+ var accessed = false;
+ var testResult = true;
-function callbackfn(accum, val, idx, obj) {
- accessed = true;
- if (idx === 2) {
- testResult = false;
- }
-}
+ function callbackfn(accum, val, idx, obj) {
+ accessed = true;
+ if (idx === 2) {
+ testResult = false;
+ }
+ }
-var arr = [0, 1, 2, 3];
+ var arr = [0, 1, 2, 3];
-Object.defineProperty(arr, "0", {
- get: function() {
- arr.length = 2;
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ arr.length = 2;
+ return 0;
+ },
+ configurable: true
+ });
-arr.reduce(callbackfn, "initialValue");
+ arr.reduce(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-28.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-28.js
index ba16dafa8..44bdb414c 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-28.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-28.js
@@ -9,30 +9,30 @@ description: >
property causes prototype index property to be visited
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(accum, val, idx, obj) {
- if (idx === 2 && val === "prototype") {
- testResult = true;
- }
-}
-var arr = [0, 1, 2, 3];
+ function callbackfn(accum, val, idx, obj) {
+ if (idx === 2 && val === "prototype") {
+ testResult = true;
+ }
+ }
+ var arr = [0, 1, 2, 3];
-Object.defineProperty(Array.prototype, "2", {
- get: function() {
- return "prototype";
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "2", {
+ get: function () {
+ return "prototype";
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "0", {
- get: function() {
- arr.length = 2;
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ arr.length = 2;
+ return 1;
+ },
+ configurable: true
+ });
-arr.reduce(callbackfn, "initialValue");
+ arr.reduce(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-29.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-29.js
index 1c872c518..a4f516743 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-29.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-29.js
@@ -10,31 +10,31 @@ description: >
flags: [noStrict]
---*/
-var testResult = false;
-
-function callbackfn(accum, val, idx, obj) {
- if (idx === 2 && val === "unconfigurable") {
- testResult = true;
- }
-}
-
-var arr = [0, 1, 2, 3];
-
-Object.defineProperty(arr, "2", {
- get: function() {
- return "unconfigurable";
- },
- configurable: false
-});
-
-Object.defineProperty(arr, "0", {
- get: function() {
- arr.length = 2;
- return 1;
- },
- configurable: true
-});
-
-arr.reduce(callbackfn, "initialValue");
+ var testResult = false;
+
+ function callbackfn(accum, val, idx, obj) {
+ if (idx === 2 && val === "unconfigurable") {
+ testResult = true;
+ }
+ }
+
+ var arr = [0, 1, 2, 3];
+
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ return "unconfigurable";
+ },
+ configurable: false
+ });
+
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ arr.length = 2;
+ return 1;
+ },
+ configurable: true
+ });
+
+ arr.reduce(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-3.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-3.js
index 2f72b891a..8f8382931 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-3.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-3.js
@@ -9,30 +9,27 @@ description: >
here
---*/
-var accessed = false;
-var testResult = true;
+ var accessed = false;
+ var testResult = true;
-function callbackfn(accum, val, idx, obj) {
- accessed = true;
- if (idx === 2) {
- testResult = false;
- }
-}
+ function callbackfn(accum, val, idx, obj) {
+ accessed = true;
+ if (idx === 2) {
+ testResult = false;
+ }
+ }
-var obj = {
- 2: "2",
- 3: 10
-};
+ var obj = { 2: "2", 3: 10 };
-Object.defineProperty(obj, "length", {
- get: function() {
- delete obj[2];
- return 5;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ delete obj[2];
+ return 5;
+ },
+ configurable: true
+ });
-Array.prototype.reduce.call(obj, callbackfn, "initialValue");
+ Array.prototype.reduce.call(obj, callbackfn, "initialValue");
assert(accessed, 'accessed !== true');
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-4.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-4.js
index 208fd04f2..249f49a29 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-4.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-4.js
@@ -9,31 +9,29 @@ description: >
8 are visited on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(accum, val, idx, obj) {
- if (idx === 3 && val === 3) {
- testResult = true;
- }
-}
+ function callbackfn(accum, val, idx, obj) {
+ if (idx === 3 && val === 3) {
+ testResult = true;
+ }
+ }
-var obj = {
- length: 5
-};
+ var obj = { length: 5 };
-Object.defineProperty(obj, "1", {
- get: function() {
- Object.defineProperty(obj, "3", {
- get: function() {
- return 3;
- },
- configurable: true
- });
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ Object.defineProperty(obj, "3", {
+ get: function () {
+ return 3;
+ },
+ configurable: true
+ });
+ return 1;
+ },
+ configurable: true
+ });
-Array.prototype.reduce.call(obj, callbackfn);
+ Array.prototype.reduce.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-5.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-5.js
index 872321367..43b8766cd 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-5.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-5.js
@@ -9,29 +9,29 @@ description: >
8 are visited on an Array
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(accum, val, idx, obj) {
- if (idx === 1 && val === 1) {
- testResult = true;
- }
-}
+ function callbackfn(accum, val, idx, obj) {
+ if (idx === 1 && val === 1) {
+ testResult = true;
+ }
+ }
-var arr = [0, , 2];
+ var arr = [0, , 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- Object.defineProperty(arr, "1", {
- get: function() {
- return 1;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
-arr.reduce(callbackfn);
+ arr.reduce(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-6.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-6.js
index 6002cbd91..85e075d85 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-6.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-6.js
@@ -9,31 +9,29 @@ description: >
are visited on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(accum, val, idx, obj) {
- if (idx === 1 && val === 6.99) {
- testResult = true;
- }
-}
+ function callbackfn(accum, val, idx, obj) {
+ if (idx === 1 && val === 6.99) {
+ testResult = true;
+ }
+ }
-var obj = {
- length: 6
-};
+ var obj = { length: 6 };
-Object.defineProperty(obj, "0", {
- get: function() {
- Object.defineProperty(Object.prototype, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ Object.defineProperty(Object.prototype, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype.reduce.call(obj, callbackfn);
+ Array.prototype.reduce.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-7.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-7.js
index b41a6c137..67e1fc135 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-7.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-7.js
@@ -9,29 +9,29 @@ description: >
are visited on an Array
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(accum, val, idx, obj) {
- if (idx === 1 && val === 6.99) {
- testResult = true;
- }
-}
+ function callbackfn(accum, val, idx, obj) {
+ if (idx === 1 && val === 6.99) {
+ testResult = true;
+ }
+ }
-var arr = [0, , 2];
+ var arr = [0, , 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- Object.defineProperty(Array.prototype, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ Object.defineProperty(Array.prototype, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
-arr.reduce(callbackfn);
+ arr.reduce(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-8.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-8.js
index 4386fa4a4..219d2df56 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-8.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-8.js
@@ -9,37 +9,34 @@ description: >
deleted index property not to be visited on an Array-like object
---*/
-var accessed = false;
-var testResult = true;
-
-function callbackfn(accum, val, idx, obj) {
- accessed = true;
- if (idx === 1) {
- testResult = false;
- }
-}
-
-var obj = {
- 5: 10,
- length: 10
-};
-
-Object.defineProperty(obj, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
-});
-
-Object.defineProperty(obj, "0", {
- get: function() {
- delete obj[1];
- return 0;
- },
- configurable: true
-});
-
-Array.prototype.reduce.call(obj, callbackfn);
+ var accessed = false;
+ var testResult = true;
+
+ function callbackfn(accum, val, idx, obj) {
+ accessed = true;
+ if (idx === 1) {
+ testResult = false;
+ }
+ }
+
+ var obj = { 5: 10, length: 10 };
+
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ delete obj[1];
+ return 0;
+ },
+ configurable: true
+ });
+
+ Array.prototype.reduce.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-9.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-9.js
index 2f9739a3d..ab402f336 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-9.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-9.js
@@ -9,27 +9,27 @@ description: >
deleted index property not to be visited on an Array
---*/
-var accessed = false;
-var testResult = true;
+ var accessed = false;
+ var testResult = true;
-function callbackfn(accum, val, idx, obj) {
- accessed = true;
- if (idx === 1) {
- testResult = false;
- }
-}
+ function callbackfn(accum, val, idx, obj) {
+ accessed = true;
+ if (idx === 1) {
+ testResult = false;
+ }
+ }
-var arr = [1, 2, 4];
+ var arr = [1, 2, 4];
-Object.defineProperty(arr, "0", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
-arr.reduce(callbackfn);
+ arr.reduce(callbackfn);
assert(testResult, 'testResult !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-1.js
index 82bb1fd5f..9f22078b8 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-1.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-1.js
@@ -9,16 +9,15 @@ description: >
been assigned values
---*/
-var callCnt = 0;
+ var callCnt = 0;
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ callCnt++;
+ return curVal;
+ }
-function callbackfn(prevVal, curVal, idx, obj)
-{
- callCnt++;
- return curVal;
-}
-
-var arr = new Array(10);
-arr[0] = arr[1] = undefined; //explicitly assigning a value
+ var arr = new Array(10);
+ arr[0] = arr[1] = undefined; //explicitly assigning a value
assert.sameValue(arr.reduce(callbackfn), undefined, 'arr.reduce(callbackfn)');
assert.sameValue(callCnt, 1, 'callCnt');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-1.js
index 83910eb35..8e4385ae2 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-1.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-1.js
@@ -9,21 +9,15 @@ description: >
property on an Array-like object
---*/
-var testResult = false;
-var initialValue = 0;
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
-
-var obj = {
- 0: 0,
- 1: 1,
- 2: 2,
- length: 2
-};
-Array.prototype.reduce.call(obj, callbackfn, initialValue);
+ var obj = { 0: 0, 1: 1, 2: 2, length: 2 };
+ Array.prototype.reduce.call(obj, callbackfn, initialValue);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-10.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-10.js
index a297b0361..35db68b11 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-10.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-10.js
@@ -9,24 +9,23 @@ description: >
property on an Array
---*/
-var testResult = false;
-var initialValue = 0;
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
+ var arr = [0, , 2];
-var arr = [0, , 2];
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- return 1;
- },
- configurable: true
-});
-
-arr.reduce(callbackfn, initialValue);
+ arr.reduce(callbackfn, initialValue);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-11.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-11.js
index b5cc2ad9b..3468f85ed 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-11.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-11.js
@@ -10,34 +10,29 @@ description: >
Array-like object
---*/
-var testResult = false;
-var initialValue = 0;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === "11");
- }
-}
-
-var proto = {
- 0: 0,
- 1: 1,
- 2: 2
-};
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-child.length = 3;
-
-Object.defineProperty(child, "1", {
- get: function() {
- return "11";
- },
- configurable: true
-});
-
-Array.prototype.reduce.call(child, callbackfn, initialValue);
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === "11");
+ }
+ }
+
+ var proto = { 0: 0, 1: 1, 2: 2 };
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 3;
+
+ Object.defineProperty(child, "1", {
+ get: function () {
+ return "11";
+ },
+ configurable: true
+ });
+
+ Array.prototype.reduce.call(child, callbackfn, initialValue);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-12.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-12.js
index de4c3f77b..85072151e 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-12.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-12.js
@@ -9,25 +9,24 @@ description: >
property that overrides an inherited data property on an Array
---*/
-var testResult = false;
-var initialValue = 0;
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === "11");
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === "11");
- }
-}
+ Array.prototype[1] = 1;
+ var arr = [0, ,2];
-Array.prototype[1] = 1;
-var arr = [0, , 2];
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return "11";
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- return "11";
- },
- configurable: true
-});
-
-arr.reduce(callbackfn, initialValue);
+ arr.reduce(callbackfn, initialValue);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-13.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-13.js
index c29ed6061..49d727d7a 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-13.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-13.js
@@ -10,40 +10,36 @@ description: >
Array-like object
---*/
-var testResult = false;
-var initialValue = 0;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === "11");
- }
-}
-
-var proto = {
- 0: 0,
- 2: 2
-};
-
-Object.defineProperty(proto, "1", {
- get: function() {
- return 1;
- },
- configurable: true
-});
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-child.length = 3;
-
-Object.defineProperty(child, "1", {
- get: function() {
- return "11";
- },
- configurable: true
-});
-
-Array.prototype.reduce.call(child, callbackfn, initialValue);
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === "11");
+ }
+ }
+
+ var proto = { 0: 0, 2: 2};
+
+ Object.defineProperty(proto, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 3;
+
+ Object.defineProperty(child, "1", {
+ get: function () {
+ return "11";
+ },
+ configurable: true
+ });
+
+ Array.prototype.reduce.call(child, callbackfn, initialValue);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-14.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-14.js
index 5d2ea3e9c..439002290 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-14.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-14.js
@@ -9,30 +9,29 @@ description: >
property that overrides an inherited accessor property on an Array
---*/
-var testResult = false;
-var initialValue = 0;
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === "11");
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === "11");
- }
-}
+ Object.defineProperty(Array.prototype, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
-Object.defineProperty(Array.prototype, "1", {
- get: function() {
- return 1;
- },
- configurable: true
-});
+ var arr = [0, ,2];
-var arr = [0, , 2];
-
-Object.defineProperty(arr, "1", {
- get: function() {
- return "11";
- },
- configurable: true
-});
-arr.reduce(callbackfn, initialValue);
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return "11";
+ },
+ configurable: true
+ });
+ arr.reduce(callbackfn, initialValue);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-15.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-15.js
index fb6f4b430..8a4819778 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-15.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-15.js
@@ -9,33 +9,29 @@ description: >
accessor property on an Array-like object
---*/
-var testResult = false;
-var initialValue = 0;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
-
-var proto = {
- 0: 0,
- 2: 2
-};
-
-Object.defineProperty(proto, "1", {
- get: function() {
- return 1;
- },
- configurable: true
-});
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-child.length = 3;
-
-Array.prototype.reduce.call(child, callbackfn, initialValue);
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
+
+ var proto = { 0: 0, 2: 2 };
+
+ Object.defineProperty(proto, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 3;
+
+ Array.prototype.reduce.call(child, callbackfn, initialValue);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-16.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-16.js
index ea5b70bf7..0b26a8231 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-16.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-16.js
@@ -9,24 +9,23 @@ description: >
accessor property on an Array
---*/
-var testResult = false;
-var initialValue = 0;
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
+ Object.defineProperty(Array.prototype, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
-Object.defineProperty(Array.prototype, "1", {
- get: function() {
- return 1;
- },
- configurable: true
-});
+ var arr = [0, , 2, ];
-var arr = [0, , 2, ];
-
-arr.reduce(callbackfn, initialValue);
+ arr.reduce(callbackfn, initialValue);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-17.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-17.js
index 261293885..72e9c9c3e 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-17.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-17.js
@@ -9,26 +9,21 @@ description: >
property without a get function on an Array-like object
---*/
-var testResult = false;
-var initialValue = 0;
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === undefined);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === undefined);
- }
-}
+ var obj = { 0: 0, 2: 2, length: 3 };
-var obj = {
- 0: 0,
- 2: 2,
- length: 3
-};
+ Object.defineProperty(obj, "1", {
+ set: function () { },
+ configurable: true
+ });
-Object.defineProperty(obj, "1", {
- set: function() {},
- configurable: true
-});
-
-Array.prototype.reduce.call(obj, callbackfn, initialValue);
+ Array.prototype.reduce.call(obj, callbackfn, initialValue);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-18.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-18.js
index 8b1b27917..e5e1c98e3 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-18.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-18.js
@@ -9,22 +9,21 @@ description: >
property without a get function on an Array
---*/
-var testResult = false;
-var initialValue = 0;
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === undefined);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === undefined);
- }
-}
+ var arr = [0, , 2];
-var arr = [0, , 2];
+ Object.defineProperty(arr, "1", {
+ set: function () { },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- set: function() {},
- configurable: true
-});
-
-arr.reduce(callbackfn, initialValue);
+ arr.reduce(callbackfn, initialValue);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-19.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-19.js
index d385edd58..a8ab13f94 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-19.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-19.js
@@ -10,33 +10,28 @@ description: >
accessor property on an Array-like object
---*/
-var testResult = false;
-var initialValue = 0;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === undefined);
- }
-}
-
-Object.defineProperty(Object.prototype, "1", {
- get: function() {
- return 1;
- },
- configurable: true
-});
-
-var obj = {
- 0: 0,
- 2: 2,
- length: 3
-};
-
-Object.defineProperty(obj, "1", {
- set: function() {},
- configurable: true
-});
-
-Array.prototype.reduce.call(obj, callbackfn, initialValue);
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === undefined);
+ }
+ }
+
+ Object.defineProperty(Object.prototype, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
+
+ var obj = { 0: 0, 2: 2, length: 3 };
+
+ Object.defineProperty(obj, "1", {
+ set: function () { },
+ configurable: true
+ });
+
+ Array.prototype.reduce.call(obj, callbackfn, initialValue);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-2.js
index bec49675d..cbabbcf45 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-2.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-2.js
@@ -9,16 +9,15 @@ description: >
property on an Array
---*/
-var testResult = false;
-var initialValue = 0;
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
-
-var arr = [0, 1];
-arr.reduce(callbackfn, initialValue);
+ var arr = [0, 1];
+ arr.reduce(callbackfn, initialValue);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-20.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-20.js
index 96d6089f4..5596e002f 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-20.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-20.js
@@ -10,28 +10,27 @@ description: >
accessor property on an Array
---*/
-var testResult = false;
-var initialValue = 0;
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === undefined);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === undefined);
- }
-}
+ Object.defineProperty(Array.prototype, "1", {
+ get: function () {
+ return 11;
+ },
+ configurable: true
+ });
-Object.defineProperty(Array.prototype, "1", {
- get: function() {
- return 11;
- },
- configurable: true
-});
+ var arr = [0, , 2];
+ Object.defineProperty(arr, "1", {
+ set: function () { },
+ configurable: true
+ });
-var arr = [0, , 2];
-Object.defineProperty(arr, "1", {
- set: function() {},
- configurable: true
-});
-
-arr.reduce(callbackfn, initialValue);
+ arr.reduce(callbackfn, initialValue);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-21.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-21.js
index 4994164fd..160a4ea8e 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-21.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-21.js
@@ -9,31 +9,27 @@ description: >
accessor property without a get function on an Array-like object
---*/
-var testResult = false;
-var initialValue = 0;
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === undefined);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === undefined);
- }
-}
+ var proto = { 0: 0, 2: 2 };
-var proto = {
- 0: 0,
- 2: 2
-};
+ Object.defineProperty(proto, "1", {
+ set: function () { },
+ configurable: true
+ });
-Object.defineProperty(proto, "1", {
- set: function() {},
- configurable: true
-});
+ var Con = function () { };
+ Con.prototype = proto;
-var Con = function() {};
-Con.prototype = proto;
+ var child = new Con();
+ child.length = 3;
-var child = new Con();
-child.length = 3;
-
-Array.prototype.reduce.call(child, callbackfn, initialValue);
+ Array.prototype.reduce.call(child, callbackfn, initialValue);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-22.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-22.js
index b906e19e7..e6a171d69 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-22.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-22.js
@@ -9,22 +9,21 @@ description: >
accessor property without a get function on an Array
---*/
-var testResult = false;
-var initialValue = 0;
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === undefined);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === undefined);
- }
-}
+ Object.defineProperty(Array.prototype, "1", {
+ set: function () { },
+ configurable: true
+ });
-Object.defineProperty(Array.prototype, "1", {
- set: function() {},
- configurable: true
-});
+ var arr = [0, , 2];
-var arr = [0, , 2];
-
-arr.reduce(callbackfn, initialValue);
+ arr.reduce(callbackfn, initialValue);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-25.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-25.js
index 08713388f..dc5a6a969 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-25.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-25.js
@@ -10,19 +10,18 @@ description: >
less than number of parameters)
---*/
-var testResult = false;
-var initialValue = 0;
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
+ var func = function (a, b, c) {
+ Array.prototype.reduce.call(arguments, callbackfn, initialValue);
+ };
-var func = function(a, b, c) {
- Array.prototype.reduce.call(arguments, callbackfn, initialValue);
-};
-
-func(0, 1);
+ func(0, 1);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-26.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-26.js
index d8ce4350b..a941dc65f 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-26.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-26.js
@@ -10,19 +10,18 @@ description: >
number of parameters)
---*/
-var testResult = false;
-var initialValue = 0;
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 2) {
+ testResult = (curVal === 2);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 2) {
- testResult = (curVal === 2);
- }
-}
+ var func = function (a, b, c) {
+ Array.prototype.reduce.call(arguments, callbackfn, initialValue);
+ };
-var func = function(a, b, c) {
- Array.prototype.reduce.call(arguments, callbackfn, initialValue);
-};
-
-func(0, 1, 2);
+ func(0, 1, 2);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-27.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-27.js
index 40b63f987..2907f2210 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-27.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-27.js
@@ -10,19 +10,18 @@ description: >
greater than number of parameters)
---*/
-var testResult = false;
-var initialValue = 0;
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 3) {
+ testResult = (curVal === 3);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 3) {
- testResult = (curVal === 3);
- }
-}
+ var func = function (a, b, c) {
+ Array.prototype.reduce.call(arguments, callbackfn, initialValue);
+ };
-var func = function(a, b, c) {
- Array.prototype.reduce.call(arguments, callbackfn, initialValue);
-};
-
-func(0, 1, 2, 3);
+ func(0, 1, 2, 3);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-28.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-28.js
index 92981a4a9..9422c48fc 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-28.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-28.js
@@ -9,17 +9,16 @@ description: >
implements its own property get method
---*/
-var testResult = false;
-var initialValue = 0;
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === "1");
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === "1");
- }
-}
+ var str = new String("012");
-var str = new String("012");
-
-Array.prototype.reduce.call(str, callbackfn, initialValue);
+ Array.prototype.reduce.call(str, callbackfn, initialValue);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-29.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-29.js
index 270742aa9..9003db41a 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-29.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-29.js
@@ -9,23 +9,22 @@ description: >
implements its own property get method
---*/
-var testResult = false;
-var initialValue = 0;
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
+ var obj = function (a, b, c) {
+ return a + b + c;
+ };
+ obj[0] = 0;
+ obj[1] = 1;
+ obj[2] = 2;
+ obj[3] = 3;
-var obj = function(a, b, c) {
- return a + b + c;
-};
-obj[0] = 0;
-obj[1] = 1;
-obj[2] = 2;
-obj[3] = 3;
-
-Array.prototype.reduce.call(obj, callbackfn, initialValue);
+ Array.prototype.reduce.call(obj, callbackfn, initialValue);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-3.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-3.js
index 0a23d5c01..19a4e19a0 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-3.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-3.js
@@ -10,29 +10,23 @@ description: >
Array-like object
---*/
-var testResult = false;
-var initialValue = 0;
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === "11");
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === "11");
- }
-}
+ var proto = { 0: 0, 1: 1, 2: 2, length: 2 };
+ var Con = function () { };
+ Con.prototype = proto;
-var proto = {
- 0: 0,
- 1: 1,
- 2: 2,
- length: 2
-};
-var Con = function() {};
-Con.prototype = proto;
+ var child = new Con();
+ child[1] = "11";
+ child[2] = "22";
+ child.length = 3;
-var child = new Con();
-child[1] = "11";
-child[2] = "22";
-child.length = 3;
-
-Array.prototype.reduce.call(child, callbackfn, initialValue);
+ Array.prototype.reduce.call(child, callbackfn, initialValue);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-30.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-30.js
index 46dfa9feb..49c26b0e6 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-30.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-30.js
@@ -9,37 +9,36 @@ description: >
iterations is observed on an Array
---*/
-var testResult = false;
-var initialValue = 0;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
-
-var arr = [, , 2];
-var preIterVisible = false;
-
-Object.defineProperty(arr, "0", {
- get: function() {
- preIterVisible = true;
- return 0;
- },
- configurable: true
-});
-
-Object.defineProperty(arr, "1", {
- get: function() {
- if (preIterVisible) {
- return 1;
- } else {
- return 100;
- }
- },
- configurable: true
-});
-
-arr.reduce(callbackfn, initialValue);
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
+
+ var arr = [, , 2];
+ var preIterVisible = false;
+
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ preIterVisible = true;
+ return 0;
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ if (preIterVisible) {
+ return 1;
+ } else {
+ return 100;
+ }
+ },
+ configurable: true
+ });
+
+ arr.reduce(callbackfn, initialValue);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-31.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-31.js
index db862cce1..f948d2978 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-31.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-31.js
@@ -9,40 +9,36 @@ description: >
iterations is observed on an Array-like object
---*/
-var testResult = false;
-var initialValue = 0;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
-
-var obj = {
- 2: 2,
- length: 3
-};
-var preIterVisible = false;
-
-Object.defineProperty(obj, "0", {
- get: function() {
- preIterVisible = true;
- return 0;
- },
- configurable: true
-});
-
-Object.defineProperty(obj, "1", {
- get: function() {
- if (preIterVisible) {
- return 1;
- } else {
- return "11";
- }
- },
- configurable: true
-});
-
-Array.prototype.reduce.call(obj, callbackfn, initialValue);
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
+
+ var obj = { 2: 2, length: 3 };
+ var preIterVisible = false;
+
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ preIterVisible = true;
+ return 0;
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ if (preIterVisible) {
+ return 1;
+ } else {
+ return "11";
+ }
+ },
+ configurable: true
+ });
+
+ Array.prototype.reduce.call(obj, callbackfn, initialValue);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-32.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-32.js
index 787d0261c..3654543c5 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-32.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-32.js
@@ -9,30 +9,25 @@ description: >
terminate iteration on an Array-like object
---*/
-var accessed = false;
-var testResult = false;
-var initialValue = 0;
+ var accessed = false;
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx >= 1) {
+ accessed = true;
+ testResult = (curVal >= 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx >= 1) {
- accessed = true;
- testResult = (curVal >= 1);
- }
-}
-
-var obj = {
- 0: 0,
- 2: 2,
- length: 3
-};
-Object.defineProperty(obj, "1", {
- get: function() {
- throw new RangeError("unhandle exception happened in getter");
- },
- configurable: true
-});
+ var obj = { 0: 0, 2: 2, length: 3 };
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ throw new RangeError("unhandle exception happened in getter");
+ },
+ configurable: true
+ });
assert.throws(RangeError, function() {
- Array.prototype.reduce.call(obj, callbackfn, initialValue);
+ Array.prototype.reduce.call(obj, callbackfn, initialValue);
});
assert.sameValue(accessed, false, 'accessed');
assert.sameValue(testResult, false, 'testResult');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-33.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-33.js
index eb596116a..45c8487f9 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-33.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-33.js
@@ -9,27 +9,26 @@ description: >
terminate iteration on an Array
---*/
-var accessed = false;
-var testResult = false;
-var initialValue = 0;
+ var accessed = false;
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx >= 1) {
+ accessed = true;
+ testResult = (curVal >= 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx >= 1) {
- accessed = true;
- testResult = (curVal >= 1);
- }
-}
+ var arr = [0, , 2];
-var arr = [0, , 2];
-
-Object.defineProperty(arr, "1", {
- get: function() {
- throw new RangeError("unhandle exception happened in getter");
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ throw new RangeError("unhandle exception happened in getter");
+ },
+ configurable: true
+ });
assert.throws(RangeError, function() {
- arr.reduce(callbackfn, initialValue);
+ arr.reduce(callbackfn, initialValue);
});
assert.sameValue(accessed, false, 'accessed');
assert.sameValue(testResult, false, 'testResult');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-4.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-4.js
index 0f26cabfe..5be0e63fc 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-4.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-4.js
@@ -9,16 +9,15 @@ description: >
property that overrides an inherited data property on an Array
---*/
-var testResult = false;
-var initialValue = 0;
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
-
-Array.prototype[1] = "3";
-[0, 1, 2].reduce(callbackfn, initialValue);
+ Array.prototype[1] = "3";
+ [0, 1, 2].reduce(callbackfn, initialValue);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-5.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-5.js
index 44cb554c7..fc93b44d1 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-5.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-5.js
@@ -10,37 +10,36 @@ description: >
Array-like object
---*/
-var testResult = false;
-var initialValue = 0;
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 0) {
+ testResult = (curVal === "9");
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 0) {
- testResult = (curVal === "9");
- }
-}
+ var proto = {};
-var proto = {};
+ Object.defineProperty(proto, "0", {
+ get: function () {
+ return 0;
+ },
+ configurable: true
+ });
-Object.defineProperty(proto, "0", {
- get: function() {
- return 0;
- },
- configurable: true
-});
+ var Con = function () { };
+ Con.prototype = proto;
-var Con = function() {};
-Con.prototype = proto;
+ var child = new Con();
+ child.length = 2;
-var child = new Con();
-child.length = 2;
+ Object.defineProperty(child, "0", {
+ value: "9",
+ configurable: true
+ });
-Object.defineProperty(child, "0", {
- value: "9",
- configurable: true
-});
+ child[1] = "1";
-child[1] = "1";
-
-Array.prototype.reduce.call(child, callbackfn, initialValue);
+ Array.prototype.reduce.call(child, callbackfn, initialValue);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-6.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-6.js
index d3aca565c..ee27f6242 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-6.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-6.js
@@ -9,21 +9,20 @@ description: >
property that overrides an inherited accessor property on an Array
---*/
-var testResult = false;
-var initialValue = 0;
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
-
-Object.defineProperty(Array.prototype, "1", {
- get: function() {
- return "9";
- },
- configurable: true
-});
-[0, 1, 2].reduce(callbackfn, initialValue);
+ Object.defineProperty(Array.prototype, "1", {
+ get: function () {
+ return "9";
+ },
+ configurable: true
+ });
+ [0, 1, 2].reduce(callbackfn, initialValue);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-7.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-7.js
index 49844b47d..b20d880b3 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-7.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-7.js
@@ -9,27 +9,21 @@ description: >
property on an Array-like object
---*/
-var testResult = false;
-var initialValue = 0;
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
+ var proto = { 0: 0, 1: 1, 2: 2, length: 3 };
+ var Con = function () { };
+ Con.prototype = proto;
-var proto = {
- 0: 0,
- 1: 1,
- 2: 2,
- length: 3
-};
-var Con = function() {};
-Con.prototype = proto;
+ var child = new Con();
+ child.length = 3;
-var child = new Con();
-child.length = 3;
-
-Array.prototype.reduce.call(child, callbackfn, initialValue);
+ Array.prototype.reduce.call(child, callbackfn, initialValue);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-8.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-8.js
index 08a408abd..5906f0d47 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-8.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-8.js
@@ -9,18 +9,17 @@ description: >
property on an Array
---*/
-var testResult = false;
-var initialValue = 0;
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
-
-Array.prototype[0] = 0;
-Array.prototype[1] = 1;
-Array.prototype[2] = 2;
-[, , , ].reduce(callbackfn, initialValue);
+ Array.prototype[0] = 0;
+ Array.prototype[1] = 1;
+ Array.prototype[2] = 2;
+ [, , , ].reduce(callbackfn, initialValue);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-9.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-9.js
index 5188213e3..8dcce90a1 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-9.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-9.js
@@ -9,27 +9,22 @@ description: >
property on an Array-like object
---*/
-var testResult = false;
-var initialValue = 0;
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
+ var obj = { 0: 0, 2: 2, length: 3 };
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
-var obj = {
- 0: 0,
- 2: 2,
- length: 3
-};
-Object.defineProperty(obj, "1", {
- get: function() {
- return 1;
- },
- configurable: true
-});
-
-Array.prototype.reduce.call(obj, callbackfn, initialValue);
+ Array.prototype.reduce.call(obj, callbackfn, initialValue);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-1.js
index af3c3074e..0b5a92f76 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-1.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-1.js
@@ -9,14 +9,14 @@ description: >
(initialvalue not passed)
---*/
-function callbackfn(prevVal, curVal, idx, obj)
-{
- if (idx > 0 && obj[idx] === curVal && obj[idx - 1] === prevVal)
- return curVal;
- else
- return false;
-}
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ if(idx > 0 && obj[idx] === curVal && obj[idx-1] === prevVal)
+ return curVal;
+ else
+ return false;
+ }
-var arr = [0, 1, true, null, new Object(), "five"];
+ var arr = [0,1,true,null,new Object(),"five"];
assert.sameValue(arr.reduce(callbackfn), "five", 'arr.reduce(callbackfn)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-10.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-10.js
index 9a9a5567d..6492c1d4b 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-10.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-10.js
@@ -9,12 +9,11 @@ description: >
parameter
---*/
-var result = false;
+ var result = false;
+ function callbackfn(prevVal) {
+ result = (prevVal === 1);
+ }
-function callbackfn(prevVal) {
- result = (prevVal === 1);
-}
-
-[11].reduce(callbackfn, 1);
+ [11].reduce(callbackfn, 1);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-11.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-11.js
index 503028a43..fe374ad09 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-11.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-11.js
@@ -9,12 +9,11 @@ description: >
parameter
---*/
-var result = false;
+ var result = false;
+ function callbackfn(prevVal, curVal) {
+ result = (curVal > 10 && 1 === prevVal);
+ }
-function callbackfn(prevVal, curVal) {
- result = (curVal > 10 && 1 === prevVal);
-}
-
-[11].reduce(callbackfn, 1);
+ [11].reduce(callbackfn, 1);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-12.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-12.js
index 58b12b3d2..282d5ccc5 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-12.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-12.js
@@ -9,12 +9,11 @@ description: >
parameter
---*/
-var result = false;
+ var result = false;
+ function callbackfn(prevVal, curVal, idx) {
+ result = (prevVal === 1 && arguments[3][idx] === curVal);
+ }
-function callbackfn(prevVal, curVal, idx) {
- result = (prevVal === 1 && arguments[3][idx] === curVal);
-}
-
-[11].reduce(callbackfn, 1);
+ [11].reduce(callbackfn, 1);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-13.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-13.js
index 170366208..24cb3df06 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-13.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-13.js
@@ -9,12 +9,11 @@ description: >
parameter
---*/
-var result = false;
+ var result = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ result = (prevVal === 1 && obj[idx] === curVal);
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- result = (prevVal === 1 && obj[idx] === curVal);
-}
-
-[11].reduce(callbackfn, 1);
+ [11].reduce(callbackfn, 1);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-14.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-14.js
index 12cf2c428..170de856d 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-14.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-14.js
@@ -7,12 +7,11 @@ es5id: 15.4.4.21-9-c-ii-14
description: Array.prototype.reduce - callbackfn that uses arguments
---*/
-var result = false;
+ var result = false;
+ function callbackfn() {
+ result = (arguments[0] === 1 && arguments[3][arguments[2]] === arguments[1]);
+ }
-function callbackfn() {
- result = (arguments[0] === 1 && arguments[3][arguments[2]] === arguments[1]);
-}
-
-[11].reduce(callbackfn, 1);
+ [11].reduce(callbackfn, 1);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-16.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-16.js
index 976b1a269..3dcd208df 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-16.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-16.js
@@ -7,29 +7,24 @@ es5id: 15.4.4.21-9-c-ii-16
description: Array.prototype.reduce - non-indexed properties are not called
---*/
-var accessed = false;
-var result1 = true;
-var result2 = true;
+ var accessed = false;
+ var result1 = true;
+ var result2 = true;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- if (curVal === 8) {
- result1 = false;
- }
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ if (curVal === 8) {
+ result1 = false;
+ }
- if (prevVal === 8) {
- result2 = false;
- }
-}
+ if (prevVal === 8) {
+ result2 = false;
+ }
+ }
-var obj = {
- 0: 11,
- 10: 12,
- non_index_property: 8,
- length: 20
-};
+ var obj = { 0: 11, 10: 12, non_index_property: 8, length: 20 };
-Array.prototype.reduce.call(obj, callbackfn, 1);
+ Array.prototype.reduce.call(obj, callbackfn, 1);
assert(result1, 'result1 !== true');
assert(result2, 'result2 !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-17.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-17.js
index 1179c4e14..0c9704158 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-17.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-17.js
@@ -9,20 +9,19 @@ description: >
is the result of previous iteration on an Array
---*/
-var result = true;
-var accessed = false;
-var preIteration = 1;
+ var result = true;
+ var accessed = false;
+ var preIteration = 1;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ if (preIteration !== prevVal) {
+ result = false;
+ }
+ preIteration = curVal;
+ return curVal;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- if (preIteration !== prevVal) {
- result = false;
- }
- preIteration = curVal;
- return curVal;
-}
-
-[11, 12, 13].reduce(callbackfn, 1);
+ [11, 12, 13].reduce(callbackfn, 1);
assert(result, 'result !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-18.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-18.js
index acb90c345..52d3f41d3 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-18.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-18.js
@@ -10,20 +10,15 @@ description: >
Array-like object
---*/
-var result = false;
+ var result = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 0) {
+ result = (arguments[0] === 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 0) {
- result = (arguments[0] === 1);
- }
-}
+ var obj = { 0: 11, 1: 9, length: 2 };
-var obj = {
- 0: 11,
- 1: 9,
- length: 2
-};
-
-Array.prototype.reduce.call(obj, callbackfn, 1);
+ Array.prototype.reduce.call(obj, callbackfn, 1);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-19.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-19.js
index 9f6c78aef..b42385702 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-19.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-19.js
@@ -10,17 +10,16 @@ description: >
undefined when 'initialValue' is not present on an Array
---*/
-var called = 0;
-var result = false;
+ var called = 0;
+ var result = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ called++;
+ if (idx === 1) {
+ result = (prevVal === 11) && curVal === 9;
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- called++;
- if (idx === 1) {
- result = (prevVal === 11) && curVal === 9;
- }
-}
-
-[11, 9].reduce(callbackfn);
+ [11, 9].reduce(callbackfn);
assert(result, 'result !== true');
assert.sameValue(called, 1, 'called');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-2.js
index 024016564..88c46fffc 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-2.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-2.js
@@ -9,19 +9,18 @@ description: >
(initialvalue passed)
---*/
-var bParCorrect = false;
+ var bParCorrect = false;
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ if(idx === 0 && obj[idx] === curVal && prevVal === initialValue)
+ return curVal;
+ else if(idx > 0 && obj[idx] === curVal && obj[idx-1] === prevVal)
+ return curVal;
+ else
+ return false;
+ }
-function callbackfn(prevVal, curVal, idx, obj)
-{
- if (idx === 0 && obj[idx] === curVal && prevVal === initialValue)
- return curVal;
- else if (idx > 0 && obj[idx] === curVal && obj[idx - 1] === prevVal)
- return curVal;
- else
- return false;
-}
+ var arr = [0,1,true,null,new Object(),"five"];
+ var initialValue = 5.5;
-var arr = [0, 1, true, null, new Object(), "five"];
-var initialValue = 5.5;
-
-assert.sameValue(arr.reduce(callbackfn, initialValue), "five", 'arr.reduce(callbackfn,initialValue)');
+assert.sameValue(arr.reduce(callbackfn,initialValue), "five", 'arr.reduce(callbackfn,initialValue)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-20.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-20.js
index 2e7552356..7b7cffb19 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-20.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-20.js
@@ -7,17 +7,13 @@ es5id: 15.4.4.21-9-c-ii-20
description: Array.prototype.reduce - undefined can be used as accumulator
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return typeof prevVal === "undefined";
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return typeof prevVal === "undefined";
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, undefined), true, 'Array.prototype.reduce.call(obj, callbackfn, undefined)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-21.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-21.js
index 1864d08fa..1b2799701 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-21.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-21.js
@@ -7,17 +7,13 @@ es5id: 15.4.4.21-9-c-ii-21
description: Array.prototype.reduce - null can be used as accumulator
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === null;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === null;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, null), true, 'Array.prototype.reduce.call(obj, callbackfn, null)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-22.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-22.js
index 272db1b96..7a7f286fc 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-22.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-22.js
@@ -9,17 +9,13 @@ description: >
accumulator
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === false;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === false;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, false), true, 'Array.prototype.reduce.call(obj, callbackfn, false)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-23.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-23.js
index 41fbfeb16..0ccff0d30 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-23.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-23.js
@@ -9,17 +9,13 @@ description: >
accumulator
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === 12;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === 12;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 12), true, 'Array.prototype.reduce.call(obj, callbackfn, 12)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-24.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-24.js
index 64fbb4eb3..5c3b4c73d 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-24.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-24.js
@@ -9,17 +9,13 @@ description: >
accumulator
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === "hello_";
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === "hello_";
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, "hello_"), true, 'Array.prototype.reduce.call(obj, callbackfn, "hello_")');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-25.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-25.js
index 7a20725f1..fe4c9a0a0 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-25.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-25.js
@@ -7,19 +7,15 @@ es5id: 15.4.4.21-9-c-ii-25
description: Array.prototype.reduce - Function object can be used as accumulator
---*/
-var objFunction = function() {};
+ var objFunction = function () { };
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objFunction;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objFunction;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, objFunction), true, 'Array.prototype.reduce.call(obj, callbackfn, objFunction)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-26.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-26.js
index 44cd75abd..8402e82fa 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-26.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-26.js
@@ -7,19 +7,15 @@ es5id: 15.4.4.21-9-c-ii-26
description: Array.prototype.reduce - Array object can be used as accumulator
---*/
-var objArray = new Array(10);
+ var objArray = new Array(10);
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objArray;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objArray;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, objArray), true, 'Array.prototype.reduce.call(obj, callbackfn, objArray)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-27.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-27.js
index decc22588..951df7bd9 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-27.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-27.js
@@ -7,19 +7,15 @@ es5id: 15.4.4.21-9-c-ii-27
description: Array.prototype.reduce - String object can be used as accumulator
---*/
-var objString = new String();
+ var objString = new String();
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objString;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objString;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, objString), true, 'Array.prototype.reduce.call(obj, callbackfn, objString)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-28.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-28.js
index 2eca0b849..ca6c358b3 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-28.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-28.js
@@ -7,19 +7,15 @@ es5id: 15.4.4.21-9-c-ii-28
description: Array.prototype.reduce - Boolean object can be used as accumulator
---*/
-var objBoolean = new Boolean();
+ var objBoolean = new Boolean();
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objBoolean;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objBoolean;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, objBoolean), true, 'Array.prototype.reduce.call(obj, callbackfn, objBoolean)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-29.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-29.js
index 03ed7c189..251e405a9 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-29.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-29.js
@@ -7,19 +7,15 @@ es5id: 15.4.4.21-9-c-ii-29
description: Array.prototype.reduce - Number object can be used as accumulator
---*/
-var objNumber = new Number();
+ var objNumber = new Number();
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objNumber;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objNumber;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, objNumber), true, 'Array.prototype.reduce.call(obj, callbackfn, objNumber)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-3.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-3.js
index dfd739127..1f93af90c 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-3.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-3.js
@@ -7,17 +7,16 @@ es5id: 15.4.4.21-9-c-ii-3
description: Array.prototype.reduce - callbackfn takes 4 arguments
---*/
-var bCalled = false;
+ var bCalled = false;
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ bCalled = true;
+ if(prevVal === true && arguments.length === 4)
+ return true;
+ else
+ return false;
+ }
+ var arr = [0,1,2,3,4,5,6,7,8,9];
-function callbackfn(prevVal, curVal, idx, obj)
-{
- bCalled = true;
- if (prevVal === true && arguments.length === 4)
- return true;
- else
- return false;
-}
-var arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
-
-assert.sameValue(arr.reduce(callbackfn, true), true, 'arr.reduce(callbackfn,true)');
+assert.sameValue(arr.reduce(callbackfn,true), true, 'arr.reduce(callbackfn,true)');
assert.sameValue(bCalled, true, 'bCalled');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-30.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-30.js
index 2cc426a8d..0b3202e74 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-30.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-30.js
@@ -7,17 +7,13 @@ es5id: 15.4.4.21-9-c-ii-30
description: Array.prototype.reduce - the Math object can be used as accumulator
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === Math;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === Math;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, Math), true, 'Array.prototype.reduce.call(obj, callbackfn, Math)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-31.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-31.js
index 4bf720831..6e4c92b93 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-31.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-31.js
@@ -7,19 +7,15 @@ es5id: 15.4.4.21-9-c-ii-31
description: Array.prototype.reduce - Date object can be used as accumulator
---*/
-var objDate = new Date();
+ var objDate = new Date();
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objDate;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objDate;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, objDate), true, 'Array.prototype.reduce.call(obj, callbackfn, objDate)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-32.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-32.js
index de51b59f3..8a0f61496 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-32.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-32.js
@@ -7,19 +7,15 @@ es5id: 15.4.4.21-9-c-ii-32
description: Array.prototype.reduce - RegExp object can be used as accumulator
---*/
-var objRegExp = new RegExp();
+ var objRegExp = new RegExp();
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objRegExp;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objRegExp;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, objRegExp), true, 'Array.prototype.reduce.call(obj, callbackfn, objRegExp)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-33.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-33.js
index b5cdc3cc8..c010c39ff 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-33.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-33.js
@@ -7,17 +7,13 @@ es5id: 15.4.4.21-9-c-ii-33
description: Array.prototype.reduce - the JSON can be used as accumulator
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === JSON;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === JSON;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, JSON), true, 'Array.prototype.reduce.call(obj, callbackfn, JSON)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-34.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-34.js
index 9df298c15..8f6dbd888 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-34.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-34.js
@@ -7,19 +7,15 @@ es5id: 15.4.4.21-9-c-ii-34
description: Array.prototype.reduce - Error object can be used as accumulator
---*/
-var objError = new RangeError();
+ var objError = new RangeError();
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objError;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objError;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, objError), true, 'Array.prototype.reduce.call(obj, callbackfn, objError)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-35.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-35.js
index 8d01e4e83..30daec0a8 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-35.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-35.js
@@ -9,22 +9,19 @@ description: >
accumulator
---*/
-var accessed = false;
-var arg;
+ var accessed = false;
+ var arg;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === arg;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === arg;
+ }
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
-(function fun() {
- arg = arguments;
-}(10, 11, 12, 13));
+ (function fun() {
+ arg = arguments;
+ }(10, 11, 12, 13));
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, arg), true, 'Array.prototype.reduce.call(obj, callbackfn, arg)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-37.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-37.js
index bb97f5f54..a0a46fa90 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-37.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-37.js
@@ -10,17 +10,13 @@ description: >
---*/
var global = this;
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === global;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === global;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, this), true, 'Array.prototype.reduce.call(obj, callbackfn, this)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-4-s.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-4-s.js
index 89872b127..1d1517917 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-4-s.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-4-s.js
@@ -10,14 +10,13 @@ description: >
flags: [noStrict]
---*/
-var innerThisCorrect = false;
-
-function callbackfn(prevVal, curVal, idx, obj)
-{
- "use strict";
- innerThisCorrect = this === undefined;
- return true;
-}
-[0].reduce(callbackfn, true);
+ var innerThisCorrect = false;
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ "use strict";
+ innerThisCorrect = this===undefined;
+ return true;
+ }
+ [0].reduce(callbackfn,true);
assert(innerThisCorrect, 'innerThisCorrect !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-4.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-4.js
index f0982335e..5b70ba220 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-4.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-4.js
@@ -9,21 +9,21 @@ description: >
order on an Array
---*/
-var arr = [0, 1, 2];
-var lastIdx = 0;
-var result = true;
-var accessed = false;
+ var arr = [0, 1, 2];
+ var lastIdx = 0;
+ var result = true;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- if (lastIdx !== idx) {
- result = false;
- } else {
- lastIdx++;
- }
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ if (lastIdx !== idx) {
+ result = false;
+ } else {
+ lastIdx++;
+ }
+ }
-arr.reduce(callbackfn, 11);
+ arr.reduce(callbackfn, 11);
assert(result, 'result !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-5.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-5.js
index 2a7ad3a6a..4476ea3d0 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-5.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-5.js
@@ -9,26 +9,26 @@ description: >
iteration and not prior to starting the loop on an Array
---*/
-var result = true;
-var kIndex = [];
-var called = 0;
+ var result = true;
+ var kIndex = [];
+ var called = 0;
-//By below way, we could verify that k would be setted as 0, 1, ..., length - 1 in order, and each value will be setted one time.
-function callbackfn(prevVal, curVal, idx, obj) {
- //Each position should be visited one time, which means k is accessed one time during iterations.
- called++;
- if (typeof kIndex[idx] === "undefined") {
- //when current position is visited, its previous index should has been visited.
- if (idx !== 0 && typeof kIndex[idx - 1] === "undefined") {
- result = false;
- }
- kIndex[idx] = 1;
- } else {
- result = false;
- }
-}
+ //By below way, we could verify that k would be setted as 0, 1, ..., length - 1 in order, and each value will be setted one time.
+ function callbackfn(prevVal, curVal, idx, obj) {
+ //Each position should be visited one time, which means k is accessed one time during iterations.
+ called++;
+ if (typeof kIndex[idx] === "undefined") {
+ //when current position is visited, its previous index should has been visited.
+ if (idx !== 0 && typeof kIndex[idx - 1] === "undefined") {
+ result = false;
+ }
+ kIndex[idx] = 1;
+ } else {
+ result = false;
+ }
+ }
-[11, 12, 13, 14].reduce(callbackfn, 1);
+ [11, 12, 13, 14].reduce(callbackfn, 1);
assert(result, 'result !== true');
assert.sameValue(called, 4, 'called');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-7.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-7.js
index 31c3a8c58..9f76afad6 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-7.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-7.js
@@ -9,24 +9,19 @@ description: >
callbackfn terminate iteration
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 0) {
- accessed = true;
- }
- if (idx === 0) {
- throw new Error("Exception occurred in callbackfn");
- }
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 0) {
+ accessed = true;
+ }
+ if (idx === 0) {
+ throw new Error("Exception occurred in callbackfn");
+ }
+ }
-var obj = {
- 0: 11,
- 4: 10,
- 10: 8,
- length: 20
-};
+ var obj = { 0: 11, 4: 10, 10: 8, length: 20 };
assert.throws(Error, function() {
- Array.prototype.reduce.call(obj, callbackfn, 1);
+ Array.prototype.reduce.call(obj, callbackfn, 1);
});
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-8.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-8.js
index e3ed219e6..b3395afcc 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-8.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-8.js
@@ -9,24 +9,19 @@ description: >
iterations is observed
---*/
-var result = false;
+ var result = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 0) {
+ obj[idx + 1] = 8;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 0) {
- obj[idx + 1] = 8;
- }
+ if (idx === 1) {
+ result = (curVal === 8);
+ }
+ }
- if (idx === 1) {
- result = (curVal === 8);
- }
-}
+ var obj = { 0: 11, 1: 12, length: 2 };
-var obj = {
- 0: 11,
- 1: 12,
- length: 2
-};
-
-Array.prototype.reduce.call(obj, callbackfn, 1);
+ Array.prototype.reduce.call(obj, callbackfn, 1);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-9.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-9.js
index c9d0ae895..a8f5758d3 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-9.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-9.js
@@ -9,12 +9,11 @@ description: >
parameter
---*/
-var called = 0;
+ var called = 0;
+ function callbackfn() {
+ called++;
+ }
-function callbackfn() {
- called++;
-}
-
-[11, 12].reduce(callbackfn, 1);
+ [11, 12].reduce(callbackfn, 1);
assert.sameValue(called, 2, 'called');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-1.js
index 5a64f1472..7650b6531 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-1.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-1.js
@@ -9,5 +9,5 @@ description: Array.prototype.reduceRight applied to undefined throws a TypeError
assert.throws(TypeError, function() {
- Array.prototype.reduceRight.call(undefined);
+ Array.prototype.reduceRight.call(undefined);
});
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-10.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-10.js
index fb0a1f9f8..341dac729 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-10.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-10.js
@@ -7,15 +7,15 @@ es5id: 15.4.4.22-1-10
description: Array.prototype.reduceRight applied to the Math object
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return '[object Math]' === Object.prototype.toString.call(obj);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return '[object Math]' === Object.prototype.toString.call(obj);
+ }
-Math.length = 1;
-Math[0] = 1;
+ Math.length = 1;
+ Math[0] = 1;
assert(Array.prototype.reduceRight.call(Math, callbackfn, 1), 'Array.prototype.reduceRight.call(Math, callbackfn, 1) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-11.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-11.js
index 610b41291..447771e6e 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-11.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-11.js
@@ -7,15 +7,15 @@ es5id: 15.4.4.22-1-11
description: Array.prototype.reduceRight applied to Date object
---*/
-var obj = new Date();
-obj.length = 1;
-obj[0] = 1;
-var accessed = false;
+ var obj = new Date();
+ obj.length = 1;
+ obj[0] = 1;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return obj instanceof Date;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return obj instanceof Date;
+ }
assert(Array.prototype.reduceRight.call(obj, callbackfn, 1), 'Array.prototype.reduceRight.call(obj, callbackfn, 1) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-12.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-12.js
index efc9fa2e3..06834d39e 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-12.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-12.js
@@ -7,15 +7,15 @@ es5id: 15.4.4.22-1-12
description: Array.prototype.reduceRight applied to RegExp object
---*/
-var obj = new RegExp();
-obj.length = 1;
-obj[0] = 1;
-var accessed = false;
+ var obj = new RegExp();
+ obj.length = 1;
+ obj[0] = 1;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, o) {
- accessed = true;
- return o instanceof RegExp;
-}
+ function callbackfn(prevVal, curVal, idx, o) {
+ accessed = true;
+ return o instanceof RegExp;
+ }
assert(Array.prototype.reduceRight.call(obj, callbackfn, 1), 'Array.prototype.reduceRight.call(obj, callbackfn, 1) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-13.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-13.js
index 822d57425..9d6b8f83c 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-13.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-13.js
@@ -7,15 +7,15 @@ es5id: 15.4.4.22-1-13
description: Array.prototype.reduceRight applied to the JSON object
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return ('[object JSON]' === Object.prototype.toString.call(obj));
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return ('[object JSON]' === Object.prototype.toString.call(obj));
+ }
-JSON.length = 1;
-JSON[0] = 1;
+ JSON.length = 1;
+ JSON[0] = 1;
assert(Array.prototype.reduceRight.call(JSON, callbackfn, 1), 'Array.prototype.reduceRight.call(JSON, callbackfn, 1) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-14.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-14.js
index 4d8557c59..6b7e76ea4 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-14.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-14.js
@@ -7,15 +7,15 @@ es5id: 15.4.4.22-1-14
description: Array.prototype.reduceRight applied to Error object
---*/
-var obj = new Error();
-obj.length = 1;
-obj[0] = 1;
-var accessed = false;
+ var obj = new Error();
+ obj.length = 1;
+ obj[0] = 1;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, o) {
- accessed = true;
- return o instanceof Error;
-}
+ function callbackfn(prevVal, curVal, idx, o) {
+ accessed = true;
+ return o instanceof Error;
+ }
assert(Array.prototype.reduceRight.call(obj, callbackfn, 1), 'Array.prototype.reduceRight.call(obj, callbackfn, 1) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-15.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-15.js
index a2bb8a9ff..8e739dfab 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-15.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-15.js
@@ -7,16 +7,16 @@ es5id: 15.4.4.22-1-15
description: Array.prototype.reduceRight applied to the Arguments object
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return '[object Arguments]' === Object.prototype.toString.call(obj);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return '[object Arguments]' === Object.prototype.toString.call(obj);
+ }
-var obj = (function() {
- return arguments;
-}("a", "b"));
+ var obj = (function () {
+ return arguments;
+ }("a", "b"));
assert(Array.prototype.reduceRight.call(obj, callbackfn, "a"), 'Array.prototype.reduceRight.call(obj, callbackfn, "a") !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-2.js
index cf08c68a5..602cef5da 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-2.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-2.js
@@ -9,5 +9,5 @@ description: Array.prototype.reduceRight applied to null throws a TypeError
assert.throws(TypeError, function() {
- Array.prototype.reduceRight.call(null);
+ Array.prototype.reduceRight.call(null);
});
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-3.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-3.js
index 6fca6c304..54f2c207a 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-3.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-3.js
@@ -7,15 +7,15 @@ es5id: 15.4.4.22-1-3
description: Array.prototype.reduceRight applied to boolean primitive
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return obj instanceof Boolean;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return obj instanceof Boolean;
+ }
-Boolean.prototype[0] = 1;
-Boolean.prototype.length = 1;
+ Boolean.prototype[0] = 1;
+ Boolean.prototype.length = 1;
assert(Array.prototype.reduceRight.call(false, callbackfn, 1), 'Array.prototype.reduceRight.call(false, callbackfn, 1) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-4.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-4.js
index d78244685..77427f29c 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-4.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-4.js
@@ -7,16 +7,16 @@ es5id: 15.4.4.22-1-4
description: Array.prototype.reduceRight applied to Boolean object
---*/
-var obj = new Boolean(true);
-obj.length = 2;
-obj[0] = 11;
-obj[1] = 12;
-var accessed = false;
+ var obj = new Boolean(true);
+ obj.length = 2;
+ obj[0] = 11;
+ obj[1] = 12;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return obj instanceof Boolean;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return obj instanceof Boolean;
+ }
assert(Array.prototype.reduceRight.call(obj, callbackfn, 11), 'Array.prototype.reduceRight.call(obj, callbackfn, 11) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-5.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-5.js
index c83b156f0..59244bbe9 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-5.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-5.js
@@ -7,15 +7,15 @@ es5id: 15.4.4.22-1-5
description: Array.prototype.reduceRight applied to number primitive
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return obj instanceof Number;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return obj instanceof Number;
+ }
-Number.prototype[0] = 1;
-Number.prototype.length = 1;
+ Number.prototype[0] = 1;
+ Number.prototype.length = 1;
assert(Array.prototype.reduceRight.call(2.5, callbackfn, 1), 'Array.prototype.reduceRight.call(2.5, callbackfn, 1) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-6.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-6.js
index 9d1c2792a..a0c2df0e8 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-6.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-6.js
@@ -7,16 +7,16 @@ es5id: 15.4.4.22-1-6
description: Array.prototype.reduceRight applied to Number object
---*/
-var obj = new Number(-128);
-obj.length = 2;
-obj[0] = 11;
-obj[1] = 12;
-var accessed = false;
+ var obj = new Number(-128);
+ obj.length = 2;
+ obj[0] = 11;
+ obj[1] = 12;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, o) {
- accessed = true;
- return o instanceof Number;
-}
+ function callbackfn(prevVal, curVal, idx, o) {
+ accessed = true;
+ return o instanceof Number;
+ }
assert(Array.prototype.reduceRight.call(obj, callbackfn, 11), 'Array.prototype.reduceRight.call(obj, callbackfn, 11) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-7.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-7.js
index 7c3dabefe..6e368cfff 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-7.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-7.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.22-1-7
description: Array.prototype.reduceRight applied to string primitive
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return obj instanceof String;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return obj instanceof String;
+ }
assert(Array.prototype.reduceRight.call("hello\nworld\\!", callbackfn, "h"), 'Array.prototype.reduceRight.call("hello\nworld\\!", callbackfn, "h") !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-8.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-8.js
index 9f6ee35db..d034b48b3 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-8.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-8.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.22-1-8
description: Array.prototype.reduceRight applied to String object
---*/
-var obj = new String("hello\nworld\\!");
-var accessed = false;
+ var obj = new String("hello\nworld\\!");
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, o) {
- accessed = true;
- return o instanceof String;
-}
+ function callbackfn(prevVal, curVal, idx, o) {
+ accessed = true;
+ return o instanceof String;
+ }
assert(Array.prototype.reduceRight.call(obj, callbackfn, "h"), 'Array.prototype.reduceRight.call(obj, callbackfn, "h") !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-9.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-9.js
index 42e6c8ca6..1820f546c 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-9.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-9.js
@@ -7,17 +7,17 @@ es5id: 15.4.4.22-1-9
description: Array.prototype.reduceRight applied to Function object
---*/
-var obj = function(a, b) {
- return a + b;
-};
-obj[0] = 11;
-obj[1] = 9;
-var accessed = false;
+ var obj = function (a, b) {
+ return a + b;
+ };
+ obj[0] = 11;
+ obj[1] = 9;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, o) {
- accessed = true;
- return o instanceof Function;
-}
+ function callbackfn(prevVal, curVal, idx, o) {
+ accessed = true;
+ return o instanceof Function;
+ }
assert(Array.prototype.reduceRight.call(obj, callbackfn, 11), 'Array.prototype.reduceRight.call(obj, callbackfn, 11) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-1.js
index eaaca4897..d9b0c874d 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-1.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-1.js
@@ -9,12 +9,12 @@ description: >
is called on
---*/
-function callbackfn(prevVal, curVal, idx, obj)
-{
- return 1;
-}
-var srcArr = [1, 2, 3, 4, 5];
-srcArr.reduceRight(callbackfn);
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ return 1;
+ }
+ var srcArr = [1,2,3,4,5];
+ srcArr.reduceRight(callbackfn);
assert.sameValue(srcArr[0], 1, 'srcArr[0]');
assert.sameValue(srcArr[1], 2, 'srcArr[1]');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-2.js
index cffd5e08e..1b34162cf 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-2.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-2.js
@@ -9,10 +9,10 @@ description: >
indices
---*/
-function callbackfn(prevVal, curVal, idx, obj)
-{
- return prevVal + curVal;
-}
-var srcArr = ['1', '2', '3', '4', '5'];
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ return prevVal + curVal;
+ }
+ var srcArr = ['1','2','3','4','5'];
assert.sameValue(srcArr.reduceRight(callbackfn), '54321', 'srcArr.reduceRight(callbackfn)');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-3.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-3.js
index de4a59b0c..6e47fd871 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-3.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-3.js
@@ -7,11 +7,10 @@ es5id: 15.4.4.22-10-3
description: Array.prototype.reduceRight - subclassed array with length 1
---*/
-foo.prototype = [1];
+ foo.prototype = [1];
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
-
-function cb() {}
+ function cb(){}
assert.sameValue(f.reduceRight(cb), 1, 'f.reduceRight(cb)');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-4.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-4.js
index 7726d9fde..76afe6029 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-4.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-4.js
@@ -9,13 +9,10 @@ description: >
than 1
---*/
-foo.prototype = new Array(0, 1, 2, 3);
+ foo.prototype = new Array(0, 1, 2, 3);
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
-
-function cb(prevVal, curVal, idx, obj) {
- return prevVal + curVal;
-}
+ function cb(prevVal, curVal, idx, obj){return prevVal + curVal;}
assert.sameValue(f.reduceRight(cb), 6, 'f.reduceRight(cb)');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-5.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-5.js
index c5c29eb02..78e6d744f 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-5.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-5.js
@@ -9,10 +9,10 @@ description: >
indices(initialvalue present)
---*/
-function callbackfn(prevVal, curVal, idx, obj)
-{
- return prevVal + curVal;
-}
-var srcArr = ['1', '2', '3', '4', '5'];
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ return prevVal + curVal;
+ }
+ var srcArr = ['1','2','3','4','5'];
-assert.sameValue(srcArr.reduceRight(callbackfn, '6'), '654321', 'srcArr.reduceRight(callbackfn,"6")');
+assert.sameValue(srcArr.reduceRight(callbackfn,'6'), '654321', 'srcArr.reduceRight(callbackfn,"6")');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-6.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-6.js
index 37cb4705e..1ce24519c 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-6.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-6.js
@@ -9,13 +9,10 @@ description: >
provided
---*/
-foo.prototype = new Array(0, 1, 2, 3);
+ foo.prototype = new Array(0, 1, 2, 3);
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ function cb(prevVal, curVal, idx, obj){return prevVal + curVal;}
-function cb(prevVal, curVal, idx, obj) {
- return prevVal + curVal;
-}
-
-assert.sameValue(f.reduceRight(cb, "4"), "43210", 'f.reduceRight(cb,"4")');
+assert.sameValue(f.reduceRight(cb,"4"), "43210", 'f.reduceRight(cb,"4")');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-7.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-7.js
index 813179ec7..27be976b4 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-7.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-7.js
@@ -9,13 +9,10 @@ description: >
and initialvalue provided
---*/
-foo.prototype = [1];
+ foo.prototype = [1];
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ function cb(prevVal, curVal, idx, obj){return prevVal + curVal;}
-function cb(prevVal, curVal, idx, obj) {
- return prevVal + curVal;
-}
-
-assert.sameValue(f.reduceRight(cb, "4"), "41", 'f.reduceRight(cb,"4")');
+assert.sameValue(f.reduceRight(cb,"4"), "41", 'f.reduceRight(cb,"4")');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-8.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-8.js
index a9aa69740..8a9eb8165 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-8.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-8.js
@@ -7,16 +7,15 @@ es5id: 15.4.4.22-10-8
description: Array.prototype.reduceRight doesn't visit expandos
---*/
-var callCnt = 0;
+ var callCnt = 0;
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ callCnt++;
+ }
+ var srcArr = ['1','2','3','4','5'];
+ srcArr["i"] = 10;
+ srcArr[true] = 11;
-function callbackfn(prevVal, curVal, idx, obj)
-{
- callCnt++;
-}
-var srcArr = ['1', '2', '3', '4', '5'];
-srcArr["i"] = 10;
-srcArr[true] = 11;
-
-srcArr.reduceRight(callbackfn);
+ srcArr.reduceRight(callbackfn);
assert.sameValue(callCnt, 4, 'callCnt');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-1.js
index 5a7a0af52..5da45ad9d 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-1.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-1.js
@@ -9,18 +9,18 @@ description: >
is an own data property
---*/
-var accessed = false;
-var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: 2
-};
+ var accessed = false;
+ var obj = {
+ 0: 12,
+ 1: 11,
+ 2: 9,
+ length: 2
+ };
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return obj.length === 2;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return obj.length === 2;
+ }
assert(Array.prototype.reduceRight.call(obj, callbackfn, 11), 'Array.prototype.reduceRight.call(obj, callbackfn, 11) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-10.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-10.js
index 035cc1c82..ad204a77b 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-10.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-10.js
@@ -9,30 +9,30 @@ description: >
is an inherited accessor property
---*/
-var accessed = false;
-var Con = function() {};
+ var accessed = false;
+ var Con = function () { };
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return obj.length === 2;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return obj.length === 2;
+ }
-var proto = {};
+ var proto = {};
-Object.defineProperty(proto, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-Con.prototype = proto;
+ Con.prototype = proto;
-var child = new Con();
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
+ var child = new Con();
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
assert(Array.prototype.reduceRight.call(child, callbackfn, 11), 'Array.prototype.reduceRight.call(child, callbackfn, 11) !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-11.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-11.js
index ffd66953e..dc8d017bd 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-11.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-11.js
@@ -9,21 +9,21 @@ description: >
is an own accessor property without a get function
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return typeof obj.length === "undefined";
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return typeof obj.length === "undefined";
+ }
-var obj = {
- 0: 11,
- 1: 12
-};
-Object.defineProperty(obj, "length", {
- set: function() {},
- configurable: true
-});
+ var obj = {
+ 0: 11,
+ 1: 12
+ };
+ Object.defineProperty(obj, "length", {
+ set: function () { },
+ configurable: true
+ });
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, 111), 111, 'Array.prototype.reduceRight.call(obj, callbackfn, 111)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-12.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-12.js
index b685810f9..c162760d0 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-12.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-12.js
@@ -10,28 +10,25 @@ description: >
property
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return typeof obj.length === "undefined";
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return typeof obj.length === "undefined";
+ }
-Object.defineProperty(Object.prototype, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(Object.prototype, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-var obj = {
- 0: 12,
- 1: 13
-};
-Object.defineProperty(obj, "length", {
- set: function() {},
- configurable: true
-});
+ var obj = { 0: 12, 1: 13 };
+ Object.defineProperty(obj, "length", {
+ set: function () { },
+ configurable: true
+ });
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, 11), 11, 'Array.prototype.reduceRight.call(obj, callbackfn, 11)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-13.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-13.js
index 7cdaf568c..56f37873f 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-13.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-13.js
@@ -9,25 +9,25 @@ description: >
'length' is inherited accessor property without a get function
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return curVal > 10;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return curVal > 10;
+ }
-var proto = {};
-Object.defineProperty(proto, "length", {
- set: function() {},
- configurable: true
-});
+ var proto = {};
+ Object.defineProperty(proto, "length", {
+ set: function () { },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child[0] = 11;
-child[1] = 12;
+ var child = new Con();
+ child[0] = 11;
+ child[1] = 12;
assert.sameValue(Array.prototype.reduceRight.call(child, callbackfn, 111), 111, 'Array.prototype.reduceRight.call(child, callbackfn, 111)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-14.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-14.js
index 75d312923..26f6a9d37 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-14.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-14.js
@@ -9,16 +9,13 @@ description: >
'length' property doesn't exist
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
-var accessed = false;
+ var obj = { 0: 11, 1: 12 };
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return curVal > 10;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return curVal > 10;
+ }
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, 111), 111, 'Array.prototype.reduceRight.call(obj, callbackfn, 111)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-17.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-17.js
index b888b562e..41f7352af 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-17.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-17.js
@@ -9,18 +9,18 @@ description: >
implements its own property get method
---*/
-var arg;
-var accessed = false;
+ var arg;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return obj.length === 2;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return obj.length === 2;
+ }
-var func = function(a, b) {
- arg = arguments;
- return Array.prototype.reduceRight.call(arguments, callbackfn, 11);
-};
+ var func = function (a, b) {
+ arg = arguments;
+ return Array.prototype.reduceRight.call(arguments, callbackfn, 11);
+ };
assert(func(12, 11), 'func(12, 11) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-18.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-18.js
index bc036bf48..89f7a89fa 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-18.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-18.js
@@ -9,15 +9,15 @@ description: >
implements its own property get method
---*/
-var accessed = false;
-var str = new String("432");
+ var accessed = false;
+ var str = new String("432");
-function callbackfn(preVal, curVal, idx, obj) {
- accessed = true;
- return obj.length === 3;
-}
+ function callbackfn(preVal, curVal, idx, obj) {
+ accessed = true;
+ return obj.length === 3;
+ }
-String.prototype[3] = "1";
+ String.prototype[3] = "1";
assert(Array.prototype.reduceRight.call(str, callbackfn, 111), 'Array.prototype.reduceRight.call(str, callbackfn, 111) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-19.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-19.js
index f76fdf223..08bdd46df 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-19.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-19.js
@@ -9,18 +9,18 @@ description: >
implements its own property get method
---*/
-var accessed = false;
-var fun = function(a, b) {
- return a + b;
-};
-fun[0] = 12;
-fun[1] = 11;
-fun[2] = 9;
+ var accessed = false;
+ var fun = function (a, b) {
+ return a + b;
+ };
+ fun[0] = 12;
+ fun[1] = 11;
+ fun[2] = 9;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return obj.length === 2;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return obj.length === 2;
+ }
assert(Array.prototype.reduceRight.call(fun, callbackfn, 11), 'Array.prototype.reduceRight.call(fun, callbackfn, 11) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-2.js
index b2b8335e1..c56d545b4 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-2.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-2.js
@@ -9,12 +9,12 @@ description: >
Array
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return obj.length === 2;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return obj.length === 2;
+ }
assert([12, 11].reduceRight(callbackfn, 11), '[12, 11].reduceRight(callbackfn, 11) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-3.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-3.js
index ef1d83a5d..feff6998d 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-3.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-3.js
@@ -9,25 +9,23 @@ description: >
is an own data property that overrides an inherited data property
---*/
-var accessed = true;
+ var accessed = true;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return obj.length === 2;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return obj.length === 2;
+ }
-var proto = {
- length: 3
-};
+ var proto = { length: 3 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child.length = 2;
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
+ var child = new Con();
+ child.length = 2;
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
assert(Array.prototype.reduceRight.call(child, callbackfn), 'Array.prototype.reduceRight.call(child, callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-4.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-4.js
index 4335394fa..0a1b81254 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-4.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-4.js
@@ -9,16 +9,15 @@ description: >
overrides an inherited data property on an Array
---*/
-var accessed = false;
-var arrProtoLen;
+ var accessed = false;
+ var arrProtoLen;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return obj.length === 2;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return obj.length === 2;
-}
-
-arrProtoLen = Array.prototype.length;
-Array.prototype.length = 0;
+ arrProtoLen = Array.prototype.length;
+ Array.prototype.length = 0;
assert([12, 11].reduceRight(callbackfn, 11), '[12, 11].reduceRight(callbackfn, 11) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-5.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-5.js
index 50e35c3b4..3fcf425de 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-5.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-5.js
@@ -10,32 +10,32 @@ description: >
property
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return obj.length === 2;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return obj.length === 2;
+ }
-var proto = {};
-Object.defineProperty(proto, "length", {
- get: function() {
- return 3;
- },
- configurable: true
-});
+ var proto = {};
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 3;
+ },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-Object.defineProperty(child, "length", {
- value: 2,
- configurable: true
-});
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
+ var child = new Con();
+ Object.defineProperty(child, "length", {
+ value: 2,
+ configurable: true
+ });
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
assert(Array.prototype.reduceRight.call(child, callbackfn), 'Array.prototype.reduceRight.call(child, callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-6.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-6.js
index d41b9630a..b31b796cb 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-6.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-6.js
@@ -9,22 +9,20 @@ description: >
is an inherited data property
---*/
-var accessed = false;
-var proto = {
- length: 2
-};
-var Con = function() {};
-Con.prototype = proto;
+ var accessed = false;
+ var proto = { length: 2 };
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
+ var child = new Con();
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
-function callbackfn1(prevVal, curVal, idx, obj) {
- accessed = true;
- return obj.length === 2;
-}
+ function callbackfn1(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return obj.length === 2;
+ }
assert(Array.prototype.reduceRight.call(child, callbackfn1, 11), 'Array.prototype.reduceRight.call(child, callbackfn1, 11) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-7.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-7.js
index 836ed95e1..1400c9e8e 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-7.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-7.js
@@ -9,23 +9,23 @@ description: >
is an own accessor property
---*/
-var accessed = true;
-var obj = {};
-obj[0] = 12;
-obj[1] = 11;
-obj[2] = 9;
+ var accessed = true;
+ var obj = {};
+ obj[0] = 12;
+ obj[1] = 11;
+ obj[2] = 9;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return obj.length === 2;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return obj.length === 2;
+ }
-Object.defineProperty(obj, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
assert(Array.prototype.reduceRight.call(obj, callbackfn, 11), 'Array.prototype.reduceRight.call(obj, callbackfn, 11) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-8.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-8.js
index f867632c0..85912235a 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-8.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-8.js
@@ -10,32 +10,30 @@ description: >
property
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return obj.length === 2;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return obj.length === 2;
+ }
-var proto = {
- length: 3
-};
+ var proto = { length: 3 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
+ var child = new Con();
-Object.defineProperty(child, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(child, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
assert(Array.prototype.reduceRight.call(child, callbackfn, 11), 'Array.prototype.reduceRight.call(child, callbackfn, 11) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-9.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-9.js
index d47f6150f..139b4d175 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-9.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-9.js
@@ -10,34 +10,34 @@ description: >
property
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn1(prevVal, curVal, idx, obj) {
- accessed = true;
- return obj.length === 2;
-}
+ function callbackfn1(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return obj.length === 2;
+ }
-var proto = {};
-Object.defineProperty(proto, "length", {
- get: function() {
- return 3;
- },
- configurable: true
-});
+ var proto = {};
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 3;
+ },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-Object.defineProperty(child, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
+ var child = new Con();
+ Object.defineProperty(child, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
assert(Array.prototype.reduceRight.call(child, callbackfn1, 111), 'Array.prototype.reduceRight.call(child, callbackfn1, 111) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-1.js
index 7ce837aeb..d309b78ac 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-1.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-1.js
@@ -7,16 +7,13 @@ es5id: 15.4.4.22-3-1
description: Array.prototype.reduceRight - value of 'length' is undefined
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ }
-var obj = {
- 0: 9,
- length: undefined
-};
+ var obj = { 0: 9, length: undefined };
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, 1), 1, 'Array.prototype.reduceRight.call(obj, callbackfn, 1)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-10.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-10.js
index 938371d98..be485e4db 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-10.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-10.js
@@ -9,16 +9,13 @@ description: >
is NaN)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ }
-var obj = {
- 0: 9,
- length: NaN
-};
+ var obj = { 0: 9, length: NaN };
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, 1), 1, 'Array.prototype.reduceRight.call(obj, callbackfn, 1)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-11.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-11.js
index 63f6e5712..c5d9cb5ab 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-11.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-11.js
@@ -9,28 +9,22 @@ description: >
containing a positive number
---*/
-var testResult1 = true;
-var testResult2 = false;
+ var testResult1 = true;
+ var testResult2 = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 1) {
+ testResult1 = false;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 1) {
- testResult1 = false;
- }
+ if (idx === 1) {
+ testResult2 = true;
+ }
+ return false;
+ }
- if (idx === 1) {
- testResult2 = true;
- }
- return false;
-}
+ var obj = { 0: 12, 1: 11, 2: 9, length: "2" };
-var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: "2"
-};
-
-Array.prototype.reduceRight.call(obj, callbackfn, 1);
+ Array.prototype.reduceRight.call(obj, callbackfn, 1);
assert(testResult1, 'testResult1 !== true');
assert(testResult2, 'testResult2 !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-12.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-12.js
index 3a209ff40..f81ce7b4c 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-12.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-12.js
@@ -9,28 +9,22 @@ description: >
containing a negative number
---*/
-var testResult1 = true;
-var testResult2 = false;
+ var testResult1 = true;
+ var testResult2 = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 1) {
+ testResult1 = false;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 1) {
- testResult1 = false;
- }
+ if (idx === 1) {
+ testResult2 = true;
+ }
+ return false;
+ }
- if (idx === 1) {
- testResult2 = true;
- }
- return false;
-}
+ var obj = { 0: 11, 1: 12, 2: 9, length: "-4294967294" };
-var obj = {
- 0: 11,
- 1: 12,
- 2: 9,
- length: "-4294967294"
-};
-
-Array.prototype.reduceRight.call(obj, callbackfn, 1);
+ Array.prototype.reduceRight.call(obj, callbackfn, 1);
assert(testResult1, 'testResult1 !== true');
assert.sameValue(testResult2, false, 'testResult2');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-13.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-13.js
index 6fb47ffde..054d4cf94 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-13.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-13.js
@@ -9,28 +9,22 @@ description: >
containing a decimal number
---*/
-var testResult1 = true;
-var testResult2 = false;
+ var testResult1 = true;
+ var testResult2 = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 1) {
+ testResult1 = false;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 1) {
- testResult1 = false;
- }
+ if (idx === 1) {
+ testResult2 = true;
+ }
+ return false;
+ }
- if (idx === 1) {
- testResult2 = true;
- }
- return false;
-}
+ var obj = { 0: 12, 1: 11, 2: 9, length: "2.5" };
-var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: "2.5"
-};
-
-Array.prototype.reduceRight.call(obj, callbackfn, 1);
+ Array.prototype.reduceRight.call(obj, callbackfn, 1);
assert(testResult1, 'testResult1 !== true');
assert(testResult2, 'testResult2 !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-14.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-14.js
index 8fc2ef112..8f7aeeb38 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-14.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-14.js
@@ -9,16 +9,13 @@ description: >
containing -Infinity
---*/
-var accessed2 = false;
+ var accessed2 = false;
-function callbackfn2(prevVal, curVal, idx, obj) {
- accessed2 = true;
-}
+ function callbackfn2(prevVal, curVal, idx, obj) {
+ accessed2 = true;
+ }
-var obj2 = {
- 0: 9,
- length: "-Infinity"
-};
+ var obj2 = { 0: 9, length: "-Infinity" };
assert.sameValue(Array.prototype.reduceRight.call(obj2, callbackfn2, 2), 2, 'Array.prototype.reduceRight.call(obj2, callbackfn2, 2)');
assert.sameValue(accessed2, false, 'accessed2');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-15.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-15.js
index dc7937f77..a77e817bd 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-15.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-15.js
@@ -9,28 +9,22 @@ description: >
containing an exponential number
---*/
-var testResult1 = true;
-var testResult2 = false;
+ var testResult1 = true;
+ var testResult2 = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 1) {
+ testResult1 = false;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 1) {
- testResult1 = false;
- }
+ if (idx === 1) {
+ testResult2 = true;
+ }
+ return false;
+ }
- if (idx === 1) {
- testResult2 = true;
- }
- return false;
-}
+ var obj = { 0: 12, 1: 11, 2: 9, length: "2E0" };
-var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: "2E0"
-};
-
-Array.prototype.reduceRight.call(obj, callbackfn, 1);
+ Array.prototype.reduceRight.call(obj, callbackfn, 1);
assert(testResult1, 'testResult1 !== true');
assert(testResult2, 'testResult2 !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-16.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-16.js
index ac8deb3c9..6d75ccf2e 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-16.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-16.js
@@ -9,28 +9,22 @@ description: >
containing a hex number
---*/
-var testResult1 = true;
-var testResult2 = false;
+ var testResult1 = true;
+ var testResult2 = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 1) {
+ testResult1 = false;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 1) {
- testResult1 = false;
- }
+ if (idx === 1) {
+ testResult2 = true;
+ }
+ return false;
+ }
- if (idx === 1) {
- testResult2 = true;
- }
- return false;
-}
+ var obj = { 0: 12, 1: 11, 2: 9, length: "0x0002" };
-var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: "0x0002"
-};
-
-Array.prototype.reduceRight.call(obj, callbackfn, 1);
+ Array.prototype.reduceRight.call(obj, callbackfn, 1);
assert(testResult1, 'testResult1 !== true');
assert(testResult2, 'testResult2 !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-17.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-17.js
index 5da8f8d4f..ace356165 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-17.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-17.js
@@ -9,28 +9,22 @@ description: >
containing a number with leading zeros
---*/
-var testResult1 = true;
-var testResult2 = false;
+ var testResult1 = true;
+ var testResult2 = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 1) {
+ testResult1 = false;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 1) {
- testResult1 = false;
- }
+ if (idx === 1) {
+ testResult2 = true;
+ }
+ return false;
+ }
- if (idx === 1) {
- testResult2 = true;
- }
- return false;
-}
+ var obj = { 0: 12, 1: 11, 2: 9, length: "0002.00" };
-var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: "0002.00"
-};
-
-Array.prototype.reduceRight.call(obj, callbackfn, 1);
+ Array.prototype.reduceRight.call(obj, callbackfn, 1);
assert(testResult1, 'testResult1 !== true');
assert(testResult2, 'testResult2 !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-18.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-18.js
index bd2586f98..1ae0c97f9 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-18.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-18.js
@@ -9,17 +9,13 @@ description: >
can't convert to a number
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ }
-var obj = {
- 0: 9,
- 1: 8,
- length: "two"
-};
+ var obj = { 0: 9, 1: 8, length: "two" };
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, 11), 11, 'Array.prototype.reduceRight.call(obj, callbackfn, 11)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-19.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-19.js
index 1e2f2e395..4f314ad51 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-19.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-19.js
@@ -9,40 +9,39 @@ description: >
has an own toString method
---*/
-var testResult1 = true;
-var testResult2 = false;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 1) {
- testResult1 = false;
- }
-
- if (idx === 1) {
- testResult2 = true;
- }
- return false;
-}
-
-var toStringAccessed = false;
-var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: {
- toString: function() {
- toStringAccessed = true;
- return '2';
- }
- }
-};
-
-// objects inherit the default valueOf() method from Object
-// that simply returns itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-
-Array.prototype.reduceRight.call(obj, callbackfn, 1);
+ var testResult1 = true;
+ var testResult2 = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 1) {
+ testResult1 = false;
+ }
+
+ if (idx === 1) {
+ testResult2 = true;
+ }
+ return false;
+ }
+
+ var toStringAccessed = false;
+ var obj = {
+ 0: 12,
+ 1: 11,
+ 2: 9,
+ length: {
+ toString: function () {
+ toStringAccessed = true;
+ return '2';
+ }
+ }
+ };
+
+ // objects inherit the default valueOf() method from Object
+ // that simply returns itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
+
+ Array.prototype.reduceRight.call(obj, callbackfn, 1);
assert(testResult1, 'testResult1 !== true');
assert(testResult2, 'testResult2 !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-2.js
index 77c0abd1b..80ddaeaa9 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-2.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-2.js
@@ -9,16 +9,13 @@ description: >
'length' is 0 (length overridden to false(type conversion))
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(preVal, curVal, idx, obj) {
- accessed = true;
-}
+ function callbackfn(preVal, curVal, idx, obj) {
+ accessed = true;
+ }
-var obj = {
- 0: 9,
- length: false
-};
+ var obj = { 0: 9, length: false };
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, 1), 1, 'Array.prototype.reduceRight.call(obj, callbackfn, 1)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-20.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-20.js
index 5b8cf1cbd..f277c7fa8 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-20.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-20.js
@@ -9,35 +9,34 @@ description: >
has an own valueOf method
---*/
-var testResult1 = true;
-var testResult2 = false;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 1) {
- testResult1 = false;
- }
-
- if (idx === 1) {
- testResult2 = true;
- }
- return false;
-}
-
-var valueOfAccessed = false;
-
-var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: {
- valueOf: function() {
- valueOfAccessed = true;
- return 2;
- }
- }
-};
-
-Array.prototype.reduceRight.call(obj, callbackfn, 1);
+ var testResult1 = true;
+ var testResult2 = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 1) {
+ testResult1 = false;
+ }
+
+ if (idx === 1) {
+ testResult2 = true;
+ }
+ return false;
+ }
+
+ var valueOfAccessed = false;
+
+ var obj = {
+ 0: 12,
+ 1: 11,
+ 2: 9,
+ length: {
+ valueOf: function () {
+ valueOfAccessed = true;
+ return 2;
+ }
+ }
+ };
+
+ Array.prototype.reduceRight.call(obj, callbackfn, 1);
assert(testResult1, 'testResult1 !== true');
assert(testResult2, 'testResult2 !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-21.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-21.js
index 31024633a..1f7f478cd 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-21.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-21.js
@@ -10,40 +10,39 @@ description: >
returns a string
---*/
-var testResult1 = true;
-var testResult2 = false;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 1) {
- testResult1 = false;
- }
-
- if (idx === 1) {
- testResult2 = true;
- }
- return false;
-}
-
-var toStringAccessed = false;
-var valueOfAccessed = false;
-
-var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: {
- valueOf: function() {
- valueOfAccessed = true;
- return {};
- },
- toString: function() {
- toStringAccessed = true;
- return '2';
- }
- }
-};
-
-Array.prototype.reduceRight.call(obj, callbackfn, 1);
+ var testResult1 = true;
+ var testResult2 = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 1) {
+ testResult1 = false;
+ }
+
+ if (idx === 1) {
+ testResult2 = true;
+ }
+ return false;
+ }
+
+ var toStringAccessed = false;
+ var valueOfAccessed = false;
+
+ var obj = {
+ 0: 12,
+ 1: 11,
+ 2: 9,
+ length: {
+ valueOf: function () {
+ valueOfAccessed = true;
+ return {};
+ },
+ toString: function () {
+ toStringAccessed = true;
+ return '2';
+ }
+ }
+ };
+
+ Array.prototype.reduceRight.call(obj, callbackfn, 1);
assert(testResult1, 'testResult1 !== true');
assert(testResult2, 'testResult2 !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-22.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-22.js
index 488f1808f..717f2c2db 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-22.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-22.js
@@ -10,31 +10,31 @@ description: >
return primitive values
---*/
-var accessed = false;
-var toStringAccessed = false;
-var valueOfAccessed = false;
+ var accessed = false;
+ var toStringAccessed = false;
+ var valueOfAccessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ }
-var obj = {
- 0: 11,
- 1: 12,
+ var obj = {
+ 0: 11,
+ 1: 12,
- length: {
- valueOf: function() {
- valueOfAccessed = true;
- return {};
- },
- toString: function() {
- toStringAccessed = true;
- return {};
- }
- }
-};
+ length: {
+ valueOf: function () {
+ valueOfAccessed = true;
+ return {};
+ },
+ toString: function () {
+ toStringAccessed = true;
+ return {};
+ }
+ }
+ };
assert.throws(TypeError, function() {
- Array.prototype.reduceRight.call(obj, callbackfn, 1);
+ Array.prototype.reduceRight.call(obj, callbackfn, 1);
});
assert(toStringAccessed, 'toStringAccessed !== true');
assert(valueOfAccessed, 'valueOfAccessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-23.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-23.js
index f9f5fa105..4a3951bcf 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-23.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-23.js
@@ -10,45 +10,45 @@ description: >
methods
---*/
-var testResult1 = true;
-var testResult2 = false;
-var valueOfAccessed = false;
-var toStringAccessed = false;
-
-var proto = {
- valueOf: function() {
- valueOfAccessed = true;
- return 2;
- }
-};
-var Con = function() {};
-Con.prototype = proto;
-var child = new Con();
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 1) {
- testResult1 = false;
- }
-
- if (idx === 1) {
- testResult2 = true;
- }
- return false;
-}
-
-child.toString = function() {
- toStringAccessed = true;
- return '1';
-};
-
-var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: child
-};
-
-Array.prototype.reduceRight.call(obj, callbackfn, 1);
+ var testResult1 = true;
+ var testResult2 = false;
+ var valueOfAccessed = false;
+ var toStringAccessed = false;
+
+ var proto = {
+ valueOf: function () {
+ valueOfAccessed = true;
+ return 2;
+ }
+ };
+ var Con = function () { };
+ Con.prototype = proto;
+ var child = new Con();
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 1) {
+ testResult1 = false;
+ }
+
+ if (idx === 1) {
+ testResult2 = true;
+ }
+ return false;
+ }
+
+ child.toString = function () {
+ toStringAccessed = true;
+ return '1';
+ };
+
+ var obj = {
+ 0: 12,
+ 1: 11,
+ 2: 9,
+ length: child
+ };
+
+ Array.prototype.reduceRight.call(obj, callbackfn, 1);
assert(testResult1, 'testResult1 !== true');
assert(testResult2, 'testResult2 !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-24.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-24.js
index db317c993..33ffe0951 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-24.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-24.js
@@ -9,28 +9,22 @@ description: >
non-integer, ensure truncation occurs in the proper direction
---*/
-var testResult1 = true;
-var testResult2 = false;
+ var testResult1 = true;
+ var testResult2 = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 1) {
+ testResult1 = false;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 1) {
- testResult1 = false;
- }
+ if (idx === 1) {
+ testResult2 = true;
+ }
+ return false;
+ }
- if (idx === 1) {
- testResult2 = true;
- }
- return false;
-}
+ var obj = { 0: 12, 1: 11, 2: 9, length: 2.685 };
-var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: 2.685
-};
-
-Array.prototype.reduceRight.call(obj, callbackfn, 1);
+ Array.prototype.reduceRight.call(obj, callbackfn, 1);
assert(testResult1, 'testResult1 !== true');
assert(testResult2, 'testResult2 !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-25.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-25.js
index eb311aa6f..4895baa71 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-25.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-25.js
@@ -9,28 +9,27 @@ description: >
non-integer
---*/
-var testResult1 = true;
-var testResult2 = false;
+ var testResult1 = true;
+ var testResult2 = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 1) {
+ testResult1 = false;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 1) {
- testResult1 = false;
- }
+ if (idx === 1) {
+ testResult2 = true;
+ }
+ return false;
+ }
- if (idx === 1) {
- testResult2 = true;
- }
- return false;
-}
+ var obj = {
+ 0: 12,
+ 1: 11,
+ 2: 9,
+ length: -4294967294.5
+ };
-var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: -4294967294.5
-};
-
-Array.prototype.reduceRight.call(obj, callbackfn, 1);
+ Array.prototype.reduceRight.call(obj, callbackfn, 1);
assert(testResult1, 'testResult1 !== true');
assert.sameValue(testResult2, false, 'testResult2');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-3.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-3.js
index b651dc45e..5eb751221 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-3.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-3.js
@@ -9,16 +9,13 @@ description: >
is 0)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ }
-var obj = {
- 0: 9,
- length: 0
-};
+ var obj = { 0: 9, length: 0 };
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, 1), 1, 'Array.prototype.reduceRight.call(obj, callbackfn, 1)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-4.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-4.js
index 9b7f07bd4..8317bd611 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-4.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-4.js
@@ -9,16 +9,13 @@ description: >
is +0)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ }
-var obj = {
- 0: 9,
- length: +0
-};
+ var obj = { 0: 9, length: +0 };
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, 1), 1, 'Array.prototype.reduceRight.call(obj, callbackfn, 1)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-5.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-5.js
index 9a8919e54..d41f2f0db 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-5.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-5.js
@@ -9,16 +9,13 @@ description: >
is -0)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(preVal, curVal, idx, obj) {
- accessed = true;
-}
+ function callbackfn(preVal, curVal, idx, obj) {
+ accessed = true;
+ }
-var obj = {
- 0: 9,
- length: -0
-};
+ var obj = { 0: 9, length: -0 };
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, 1), 1, 'Array.prototype.reduceRight.call(obj, callbackfn, 1)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-6.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-6.js
index 69ed877c2..4caab36e8 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-6.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-6.js
@@ -9,27 +9,22 @@ description: >
is positive)
---*/
-var testResult1 = true;
-var testResult2 = false;
+ var testResult1 = true;
+ var testResult2 = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 1) {
+ testResult1 = false;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 1) {
- testResult1 = false;
- }
+ if (idx === 1) {
+ testResult2 = true;
+ }
+ return false;
+ }
- if (idx === 1) {
- testResult2 = true;
- }
- return false;
-}
+ var obj = { 1: 11, 2: 9, length: 2 };
-var obj = {
- 1: 11,
- 2: 9,
- length: 2
-};
-
-Array.prototype.reduceRight.call(obj, callbackfn, 1);
+ Array.prototype.reduceRight.call(obj, callbackfn, 1);
assert(testResult1, 'testResult1 !== true');
assert(testResult2, 'testResult2 !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-7.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-7.js
index a8da6c075..53556d6bd 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-7.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-7.js
@@ -9,27 +9,22 @@ description: >
is negative)
---*/
-var testResult1 = true;
-var testResult2 = false;
+ var testResult1 = true;
+ var testResult2 = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 1) {
+ testResult1 = false;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 1) {
- testResult1 = false;
- }
+ if (idx === 1) {
+ testResult2 = true;
+ }
+ return false;
+ }
- if (idx === 1) {
- testResult2 = true;
- }
- return false;
-}
+ var obj = { 1: 11, 2: 9, length: -4294967294 };
-var obj = {
- 1: 11,
- 2: 9,
- length: -4294967294
-};
-
-Array.prototype.reduceRight.call(obj, callbackfn, 1);
+ Array.prototype.reduceRight.call(obj, callbackfn, 1);
assert(testResult1, 'testResult1 !== true');
assert.sameValue(testResult2, false, 'testResult2');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-9.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-9.js
index 7ecc600aa..b9a895999 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-9.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-9.js
@@ -9,16 +9,13 @@ description: >
is -Infinity)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ }
-var obj = {
- 0: 9,
- length: -Infinity
-};
+ var obj = { 0: 9, length: -Infinity };
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, 1), 1, 'Array.prototype.reduceRight.call(obj, callbackfn, 1)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-1.js
index 04017e990..dc3e16591 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-1.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-1.js
@@ -9,7 +9,7 @@ description: >
undefined
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.reduceRight();
+ arr.reduceRight();
});
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-10.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-10.js
index b6a599910..78a88e9b8 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-10.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-10.js
@@ -9,18 +9,15 @@ description: >
exception was thrown by step 2
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-Object.defineProperty(obj, "length", {
- get: function() {
- throw new Test262Error();
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ throw new Test262Error();
+ },
+ configurable: true
+ });
assert.throws(Test262Error, function() {
- Array.prototype.reduceRight.call(obj, undefined);
+ Array.prototype.reduceRight.call(obj, undefined);
});
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-11.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-11.js
index 34885bde3..cfb99f9c3 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-11.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-11.js
@@ -9,22 +9,19 @@ description: >
exception was thrown by step 3
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-Object.defineProperty(obj, "length", {
- get: function() {
- return {
- toString: function() {
- throw new Test262Error();
- }
- };
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ toString: function () {
+ throw new Test262Error();
+ }
+ };
+ },
+ configurable: true
+ });
assert.throws(Test262Error, function() {
- Array.prototype.reduceRight.call(obj, undefined);
+ Array.prototype.reduceRight.call(obj, undefined);
});
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-12.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-12.js
index f4e76497f..8f8339475 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-12.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-12.js
@@ -7,11 +7,10 @@ es5id: 15.4.4.22-4-12
description: Array.prototype.reduceRight - 'callbackfn' is a function
---*/
-var initialValue = 0;
-
-function callbackfn(accum, val, idx, obj) {
- accum += val;
- return accum;
-}
+ var initialValue = 0;
+ function callbackfn(accum, val, idx, obj) {
+ accum += val;
+ return accum;
+ }
assert.sameValue([11, 9].reduceRight(callbackfn, initialValue), 20, '[11, 9].reduceRight(callbackfn, initialValue)');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-15.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-15.js
index cdef077c6..38d8e3f06 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-15.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-15.js
@@ -9,28 +9,26 @@ description: >
same as passing undefined for callbackfn
---*/
-var obj = {
- 10: 10
-};
-var lengthAccessed = false;
-var loopAccessed = false;
+ var obj = { 10: 10 };
+ var lengthAccessed = false;
+ var loopAccessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- lengthAccessed = true;
- return 20;
- },
- configurable: true
-});
-Object.defineProperty(obj, "0", {
- get: function() {
- loopAccessed = true;
- return 10;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ lengthAccessed = true;
+ return 20;
+ },
+ configurable: true
+ });
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ loopAccessed = true;
+ return 10;
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.reduceRight.call(obj, undefined);
+ Array.prototype.reduceRight.call(obj, undefined);
});
assert(lengthAccessed, 'lengthAccessed !== true');
assert.sameValue(loopAccessed, false, 'loopAccessed');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-2.js
index 40ea5d53c..51c148dce 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-2.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-2.js
@@ -9,7 +9,7 @@ description: >
unreferenced
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(ReferenceError, function() {
- arr.reduceRight(foo);
+ arr.reduceRight(foo);
});
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-3.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-3.js
index 76b084c2b..129cfc44c 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-3.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-3.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.22-4-3
description: Array.prototype.reduceRight throws TypeError if callbackfn is null
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.reduceRight(null);
+ arr.reduceRight(null);
});
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-4.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-4.js
index 9f0043f12..d4dc6d1f2 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-4.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-4.js
@@ -9,7 +9,7 @@ description: >
boolean
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.reduceRight(true);
+ arr.reduceRight(true);
});
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-5.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-5.js
index e22ed2183..a20e6ccb3 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-5.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-5.js
@@ -9,7 +9,7 @@ description: >
number
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.reduceRight(5);
+ arr.reduceRight(5);
});
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-6.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-6.js
index e6437a1b3..f32324399 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-6.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-6.js
@@ -9,7 +9,7 @@ description: >
string
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.reduceRight("abc");
+ arr.reduceRight("abc");
});
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-7.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-7.js
index c6104250d..86a86b8c9 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-7.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-7.js
@@ -9,7 +9,7 @@ description: >
Object without [[Call]] internal method
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.reduceRight(new Object());
+ arr.reduceRight(new Object());
});
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-8.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-8.js
index d76239982..2b7468f54 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-8.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-8.js
@@ -9,21 +9,18 @@ description: >
visible when an exception occurs
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-var accessed = false;
+ var accessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- accessed = true;
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ accessed = true;
+ return 2;
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.reduceRight.call(obj, null);
+ Array.prototype.reduceRight.call(obj, null);
});
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-9.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-9.js
index 0da73eb44..dac9e41fa 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-9.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-9.js
@@ -9,25 +9,22 @@ description: >
visible when an exception occurs
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-var accessed = false;
+ var accessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- return {
- toString: function() {
- accessed = true;
- return "2";
- }
- };
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ toString: function () {
+ accessed = true;
+ return "2";
+ }
+ };
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.reduceRight.call(obj, null);
+ Array.prototype.reduceRight.call(obj, null);
});
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-1.js
index 562903de4..7aca86981 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-1.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-1.js
@@ -9,7 +9,7 @@ description: >
(empty array), no initVal
---*/
-function cb() {}
+ function cb(){}
assert.throws(TypeError, function() {
- [].reduceRight(cb);
+ [].reduceRight(cb);
});
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-10.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-10.js
index f70a3062d..ede41e29f 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-10.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-10.js
@@ -9,21 +9,18 @@ description: >
an exception occurs
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-var accessed = false;
+ var accessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- accessed = true;
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ accessed = true;
+ return 0;
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.reduceRight.call(obj, function() {});
+ Array.prototype.reduceRight.call(obj, function () { });
});
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-11.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-11.js
index a0d148aac..627bebe30 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-11.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-11.js
@@ -9,25 +9,22 @@ description: >
an exception occurs
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-var accessed = false;
+ var accessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- return {
- toString: function() {
- accessed = true;
- return "0";
- }
- };
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ toString: function () {
+ accessed = true;
+ return "0";
+ }
+ };
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.reduceRight.call(obj, function() {});
+ Array.prototype.reduceRight.call(obj, function () { });
});
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-12.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-12.js
index 5a8f49096..7115439f2 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-12.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-12.js
@@ -9,18 +9,15 @@ description: >
exception was thrown by step 2
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-Object.defineProperty(obj, "length", {
- get: function() {
- throw new Test262Error();
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ throw new Test262Error();
+ },
+ configurable: true
+ });
assert.throws(Test262Error, function() {
- Array.prototype.reduceRight.call(obj, function() {});
+ Array.prototype.reduceRight.call(obj, function () { });
});
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-13.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-13.js
index f3a658dbd..8ff17da58 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-13.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-13.js
@@ -9,22 +9,19 @@ description: >
exception was thrown by step 3
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-Object.defineProperty(obj, "length", {
- get: function() {
- return {
- toString: function() {
- throw new Test262Error();
- }
- };
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ toString: function () {
+ throw new Test262Error();
+ }
+ };
+ },
+ configurable: true
+ });
assert.throws(Test262Error, function() {
- Array.prototype.reduceRight.call(obj, function() {});
+ Array.prototype.reduceRight.call(obj, function () { });
});
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-2.js
index e2ea6c0a1..4f74f4fb5 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-2.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-2.js
@@ -10,13 +10,12 @@ description: >
no initVal
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = null;
-function foo() {}
-var f = new foo();
-f.length = null;
-
-function cb() {}
+ function cb(){}
assert.throws(TypeError, function() {
- f.reduceRight(cb);
+ f.reduceRight(cb);
});
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-3.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-3.js
index 1256ed668..a19e73e2b 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-3.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-3.js
@@ -10,13 +10,12 @@ description: >
no initVal
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = false;
-function foo() {}
-var f = new foo();
-f.length = false;
-
-function cb() {}
+ function cb(){}
assert.throws(TypeError, function() {
- f.reduceRight(cb);
+ f.reduceRight(cb);
});
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-4.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-4.js
index ec024658f..31a202f5e 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-4.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-4.js
@@ -10,13 +10,12 @@ description: >
initVal
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = 0;
-function foo() {}
-var f = new foo();
-f.length = 0;
-
-function cb() {}
+ function cb(){}
assert.throws(TypeError, function() {
- f.reduceRight(cb);
+ f.reduceRight(cb);
});
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-5.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-5.js
index ddf90e92e..db633c214 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-5.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-5.js
@@ -10,13 +10,12 @@ description: >
initVal
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = '0';
-function foo() {}
-var f = new foo();
-f.length = '0';
-
-function cb() {}
+ function cb(){}
assert.throws(TypeError, function() {
- f.reduceRight(cb);
+ f.reduceRight(cb);
});
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-6.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-6.js
index 76d34aed0..cea6793e0 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-6.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-6.js
@@ -10,19 +10,14 @@ description: >
initVal
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ var o = { valueOf: function () { return 0;}};
+ f.length = o;
-var o = {
- valueOf: function() {
- return 0;
- }
-};
-f.length = o;
-
-function cb() {}
+ function cb(){}
assert.throws(TypeError, function() {
- f.reduceRight(cb);
+ f.reduceRight(cb);
});
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-7.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-7.js
index bd392b800..6fac3bfd8 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-7.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-7.js
@@ -10,25 +10,20 @@ description: >
(toString)), no initVal
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ var o = { toString: function () { return '0';}};
+ f.length = o;
-var o = {
- toString: function() {
- return '0';
- }
-};
-f.length = o;
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
-// objects inherit the default valueOf method of the Object object;
-// that simply returns the itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-
-function cb() {}
+ function cb(){}
assert.throws(TypeError, function() {
- f.reduceRight(cb);
+ f.reduceRight(cb);
});
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-8.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-8.js
index 93ce902f0..10631cf82 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-8.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-8.js
@@ -9,28 +9,27 @@ description: >
(subclassed Array, length overridden with []), no initVal
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ f.length = [];
-f.length = [];
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
+ //
+ // The toString( ) method on Array converts the array elements to strings,
+ // then returns the result of concatenating these strings, with commas in
+ // between. An array with no elements converts to the empty string, which
+ // converts to the number 0. If an array has a single element that is a
+ // number n, the array converts to a string representation of n, which is
+ // then converted back to n itself. If an array contains more than one element,
+ // or if its one element is not a number, the array converts to NaN.
-// objects inherit the default valueOf method of the Object object;
-// that simply returns the itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-//
-// The toString( ) method on Array converts the array elements to strings,
-// then returns the result of concatenating these strings, with commas in
-// between. An array with no elements converts to the empty string, which
-// converts to the number 0. If an array has a single element that is a
-// number n, the array converts to a string representation of n, which is
-// then converted back to n itself. If an array contains more than one element,
-// or if its one element is not a number, the array converts to NaN.
-
-function cb() {}
+ function cb(){}
assert.throws(TypeError, function() {
- f.reduceRight(cb);
+ f.reduceRight(cb);
});
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-9.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-9.js
index 8c9053cdb..ce3fe6844 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-9.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-9.js
@@ -9,6 +9,6 @@ description: >
is 0 and 'initialValue' is present
---*/
-var initialValue = 10;
+ var initialValue = 10;
-assert.sameValue([].reduceRight(function() {}, initialValue), initialValue, '[].reduceRight(function () { }, initialValue)');
+assert.sameValue([].reduceRight(function () { }, initialValue), initialValue, '[].reduceRight(function () { }, initialValue)');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-1.js
index 76cec3316..cd191ee0e 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-1.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-1.js
@@ -9,5 +9,5 @@ description: >
and initialValue is present (empty array)
---*/
-function cb() {}
-assert.sameValue([].reduceRight(cb, 1), 1, '[].reduceRight(cb,1)');
+ function cb(){}
+assert.sameValue([].reduceRight(cb,1), 1, '[].reduceRight(cb,1)');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-10.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-10.js
index c50c734da..ca80beabf 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-10.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-10.js
@@ -7,6 +7,6 @@ es5id: 15.4.4.22-7-10
description: Array.prototype.reduceRight - 'initialValue' is present
---*/
-var str = "initialValue is present";
+ var str = "initialValue is present";
-assert.sameValue([].reduceRight(function() {}, str), str, '[].reduceRight(function () { }, str)');
+assert.sameValue([].reduceRight(function () { }, str), str, '[].reduceRight(function () { }, str)');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-11.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-11.js
index 466105ad6..c7c2a92a6 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-11.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-11.js
@@ -7,6 +7,6 @@ es5id: 15.4.4.22-7-11
description: Array.prototype.reduceRight - 'initialValue' is not present
---*/
-var str = "initialValue is not present";
+ var str = "initialValue is not present";
-assert.sameValue([str].reduceRight(function() {}), str, '[str].reduceRight(function () { })');
+assert.sameValue([str].reduceRight(function () { }), str, '[str].reduceRight(function () { })');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-2.js
index 226fe2e53..d6bbe8e4d 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-2.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-2.js
@@ -10,11 +10,10 @@ description: >
to null (type conversion))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = null;
-function foo() {}
-var f = new foo();
-f.length = null;
-
-function cb() {}
-assert.sameValue(f.reduceRight(cb, 1), 1, 'f.reduceRight(cb,1)');
+ function cb(){}
+assert.sameValue(f.reduceRight(cb,1), 1, 'f.reduceRight(cb,1)');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-3.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-3.js
index 07b39a3cc..f06d61ae5 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-3.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-3.js
@@ -10,11 +10,10 @@ description: >
to false (type conversion))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = false;
-function foo() {}
-var f = new foo();
-f.length = false;
-
-function cb() {}
-assert.sameValue(f.reduceRight(cb, 1), 1, 'f.reduceRight(cb,1)');
+ function cb(){}
+assert.sameValue(f.reduceRight(cb,1), 1, 'f.reduceRight(cb,1)');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-4.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-4.js
index 6006a08c3..5cc4058fe 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-4.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-4.js
@@ -10,11 +10,10 @@ description: >
to 0 (type conversion))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = 0;
-function foo() {}
-var f = new foo();
-f.length = 0;
-
-function cb() {}
-assert.sameValue(f.reduceRight(cb, 1), 1, 'f.reduceRight(cb,1)');
+ function cb(){}
+assert.sameValue(f.reduceRight(cb,1), 1, 'f.reduceRight(cb,1)');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-5.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-5.js
index e91ba1627..1a7b538fd 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-5.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-5.js
@@ -10,11 +10,10 @@ description: >
to '0' (type conversion))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = '0';
-function foo() {}
-var f = new foo();
-f.length = '0';
-
-function cb() {}
-assert.sameValue(f.reduceRight(cb, 1), 1, 'f.reduceRight(cb,1)');
+ function cb(){}
+assert.sameValue(f.reduceRight(cb,1), 1, 'f.reduceRight(cb,1)');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-6.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-6.js
index 5fda99875..7d7f0356d 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-6.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-6.js
@@ -10,17 +10,12 @@ description: >
with obj with valueOf)
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ var o = { valueOf: function () { return 0;}};
+ f.length = o;
-var o = {
- valueOf: function() {
- return 0;
- }
-};
-f.length = o;
-
-function cb() {}
-assert.sameValue(f.reduceRight(cb, 1), 1, 'f.reduceRight(cb,1)');
+ function cb(){}
+assert.sameValue(f.reduceRight(cb,1), 1, 'f.reduceRight(cb,1)');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-7.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-7.js
index 80819a2b4..a2fdb76eb 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-7.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-7.js
@@ -10,23 +10,18 @@ description: >
with obj w/o valueOf (toString))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ var o = { toString: function () { return '0';}};
+ f.length = o;
-var o = {
- toString: function() {
- return '0';
- }
-};
-f.length = o;
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
-// objects inherit the default valueOf method of the Object object;
-// that simply returns the itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-
-function cb() {}
-assert.sameValue(f.reduceRight(cb, 1), 1, 'f.reduceRight(cb,1)');
+ function cb(){}
+assert.sameValue(f.reduceRight(cb,1), 1, 'f.reduceRight(cb,1)');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-8.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-8.js
index d2db08ed9..88fd551cf 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-8.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-8.js
@@ -10,26 +10,25 @@ description: >
with [])
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ f.length = [];
-f.length = [];
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
+ //
+ // The toString( ) method on Array converts the array elements to strings,
+ // then returns the result of concatenating these strings, with commas in
+ // between. An array with no elements converts to the empty string, which
+ // converts to the number 0. If an array has a single element that is a
+ // number n, the array converts to a string representation of n, which is
+ // then converted back to n itself. If an array contains more than one element,
+ // or if its one element is not a number, the array converts to NaN.
-// objects inherit the default valueOf method of the Object object;
-// that simply returns the itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-//
-// The toString( ) method on Array converts the array elements to strings,
-// then returns the result of concatenating these strings, with commas in
-// between. An array with no elements converts to the empty string, which
-// converts to the number 0. If an array has a single element that is a
-// number n, the array converts to a string representation of n, which is
-// then converted back to n itself. If an array contains more than one element,
-// or if its one element is not a number, the array converts to NaN.
-
-function cb() {}
-assert.sameValue(f.reduceRight(cb, 1), 1, 'f.reduceRight(cb,1)');
+ function cb(){}
+assert.sameValue(f.reduceRight(cb,1), 1, 'f.reduceRight(cb,1)');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-9.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-9.js
index 9903f299b..b7d1567e2 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-9.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-9.js
@@ -10,26 +10,25 @@ description: >
with [0])
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ f.length = [0];
-f.length = [0];
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
+ //
+ // The toString( ) method on Array converts the array elements to strings,
+ // then returns the result of concatenating these strings, with commas in
+ // between. An array with no elements converts to the empty string, which
+ // converts to the number 0. If an array has a single element that is a
+ // number n, the array converts to a string representation of n, which is
+ // then converted back to n itself. If an array contains more than one element,
+ // or if its one element is not a number, the array converts to NaN.
-// objects inherit the default valueOf method of the Object object;
-// that simply returns the itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-//
-// The toString( ) method on Array converts the array elements to strings,
-// then returns the result of concatenating these strings, with commas in
-// between. An array with no elements converts to the empty string, which
-// converts to the number 0. If an array has a single element that is a
-// number n, the array converts to a string representation of n, which is
-// then converted back to n itself. If an array contains more than one element,
-// or if its one element is not a number, the array converts to NaN.
-
-function cb() {}
-assert.sameValue(f.reduceRight(cb, 1), 1, 'f.reduceRight(cb,1)');
+ function cb(){}
+assert.sameValue(f.reduceRight(cb,1), 1, 'f.reduceRight(cb,1)');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-1.js
index de85b84e2..2763dde2e 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-1.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-1.js
@@ -9,22 +9,20 @@ description: >
is 0
---*/
-var accessed = false;
+ var accessed = false;
-var obj = {
- length: 0
-};
+ var obj = { length: 0 };
-Object.defineProperty(obj, "0", {
- get: function() {
- accessed = true;
- return 10;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ accessed = true;
+ return 10;
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.reduceRight.call(obj, function() {});
+ Array.prototype.reduceRight.call(obj, function () { });
});
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-2.js
index 96e4d9109..c2c0b4e85 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-2.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-2.js
@@ -9,23 +9,22 @@ description: >
number of iterations in step 9
---*/
-var called = 0;
+ var called = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ called++;
+ return prevVal + curVal;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- called++;
- return prevVal + curVal;
-}
+ var arr = [0, 1, 2, 3];
+ Object.defineProperty(arr, "4", {
+ get: function () {
+ arr.length = 2;
+ return 10;
+ },
+ configurable: true
+ });
-var arr = [0, 1, 2, 3];
-Object.defineProperty(arr, "4", {
- get: function() {
- arr.length = 2;
- return 10;
- },
- configurable: true
-});
-
-var preVal = arr.reduceRight(callbackfn);
+ var preVal = arr.reduceRight(callbackfn);
assert.sameValue(preVal, 11, 'preVal');
assert.sameValue(called, 2, 'called');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-3.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-3.js
index 0c9292f97..cfa839663 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-3.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-3.js
@@ -9,37 +9,37 @@ description: >
'kPresent' is true
---*/
-var called = 0;
-var testResult = false;
-var firstCalled = 0;
-var secondCalled = 0;
-
-function callbackfn(prevVal, val, idx, obj) {
- if (called === 0) {
- testResult = (idx === 1);
- }
- called++;
-}
-
-var arr = [, , , ];
-
-Object.defineProperty(arr, "1", {
- get: function() {
- firstCalled++;
- return 9;
- },
- configurable: true
-});
-
-Object.defineProperty(arr, "2", {
- get: function() {
- secondCalled++;
- return 11;
- },
- configurable: true
-});
-
-arr.reduceRight(callbackfn);
+ var called = 0;
+ var testResult = false;
+ var firstCalled = 0;
+ var secondCalled = 0;
+
+ function callbackfn(prevVal, val, idx, obj) {
+ if (called === 0) {
+ testResult = (idx === 1);
+ }
+ called++;
+ }
+
+ var arr = [, , , ];
+
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ firstCalled++;
+ return 9;
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ secondCalled++;
+ return 11;
+ },
+ configurable: true
+ });
+
+ arr.reduceRight(callbackfn);
assert(testResult, 'testResult !== true');
assert.sameValue(firstCalled, 1, 'firstCalled');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-ii-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-ii-1.js
index cbd57020e..41ea823dc 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-ii-1.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-ii-1.js
@@ -9,16 +9,16 @@ description: >
visible here
---*/
-var obj = {};
+ var obj = {};
-function callbackfn(prevVal, curVal, idx, obj) {}
+ function callbackfn(prevVal, curVal, idx, obj) { }
-Object.defineProperty(obj, "length", {
- get: function() {
- obj[2] = "accumulator";
- return 3;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ obj[2] = "accumulator";
+ return 3;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn), "accumulator", 'Array.prototype.reduceRight.call(obj, callbackfn)');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-ii-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-ii-2.js
index 8da273e0c..4afeb3bb7 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-ii-2.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-ii-2.js
@@ -9,17 +9,14 @@ description: >
visible here
---*/
-var obj = {
- 2: "accumulator",
- 3: "another"
-};
+ var obj = { 2: "accumulator", 3: "another" };
-Object.defineProperty(obj, "length", {
- get: function() {
- delete obj[2];
- return 5;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ delete obj[2];
+ return 5;
+ },
+ configurable: true
+ });
-assert.notSameValue(Array.prototype.reduceRight.call(obj, function() {}), "accumulator", 'Array.prototype.reduceRight.call(obj, function () { })');
+assert.notSameValue(Array.prototype.reduceRight.call(obj, function () { }), "accumulator", 'Array.prototype.reduceRight.call(obj, function () { })');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-1.js
index 3edc44785..d3421ebb5 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-1.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-1.js
@@ -9,20 +9,15 @@ description: >
property on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 0) {
+ testResult = (prevVal === 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 0) {
- testResult = (prevVal === 1);
- }
-}
+ var obj = { 0: 0, 1: 1, length: 2 };
-var obj = {
- 0: 0,
- 1: 1,
- length: 2
-};
-
-Array.prototype.reduceRight.call(obj, callbackfn);
+ Array.prototype.reduceRight.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-10.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-10.js
index d76cbfc02..2f82c1289 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-10.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-10.js
@@ -9,23 +9,22 @@ description: >
accessor property on an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 2) {
+ testResult = (curVal === 2);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 2) {
- testResult = (curVal === 2);
- }
-}
+ var arr = [0, 1, , 3];
-var arr = [0, 1, , 3];
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "2", {
- get: function() {
- return 2;
- },
- configurable: true
-});
-
-arr.reduceRight(callbackfn);
+ arr.reduceRight(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-11.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-11.js
index 98aea64ef..62c9245a9 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-11.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-11.js
@@ -10,33 +10,28 @@ description: >
Array-like object
---*/
-var testResult = false;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === "20");
- }
-}
-
-var proto = {
- 0: 0,
- 1: 1,
- 2: 2
-};
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-child.length = 3;
-
-Object.defineProperty(child, "2", {
- get: function() {
- return "20";
- },
- configurable: true
-});
-
-Array.prototype.reduceRight.call(child, callbackfn);
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === "20");
+ }
+ }
+
+ var proto = { 0: 0, 1: 1, 2: 2 };
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 3;
+
+ Object.defineProperty(child, "2", {
+ get: function () {
+ return "20";
+ },
+ configurable: true
+ });
+
+ Array.prototype.reduceRight.call(child, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-12.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-12.js
index d322bc64d..ee042baae 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-12.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-12.js
@@ -10,24 +10,23 @@ description: >
Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === "20");
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === "20");
- }
-}
+ Array.prototype[2] = 2;
+ var arr = [0, 1];
-Array.prototype[2] = 2;
-var arr = [0, 1];
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ return "20";
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "2", {
- get: function() {
- return "20";
- },
- configurable: true
-});
-
-arr.reduceRight(callbackfn);
+ arr.reduceRight(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-13.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-13.js
index f2e27dc4e..0d3c40e0a 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-13.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-13.js
@@ -10,39 +10,35 @@ description: >
an Array-like object
---*/
-var testResult = false;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === "20");
- }
-}
-
-var proto = {
- 0: 0,
- 1: 1
-};
-
-Object.defineProperty(proto, "2", {
- get: function() {
- return 2;
- },
- configurable: true
-});
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-child.length = 3;
-
-Object.defineProperty(child, "2", {
- get: function() {
- return "20";
- },
- configurable: true
-});
-
-Array.prototype.reduceRight.call(child, callbackfn);
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === "20");
+ }
+ }
+
+ var proto = { 0: 0, 1: 1 };
+
+ Object.defineProperty(proto, "2", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 3;
+
+ Object.defineProperty(child, "2", {
+ get: function () {
+ return "20";
+ },
+ configurable: true
+ });
+
+ Array.prototype.reduceRight.call(child, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-14.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-14.js
index 74613a078..3973a3593 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-14.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-14.js
@@ -10,30 +10,29 @@ description: >
an Array
---*/
-var testResult = false;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === "20");
- }
-}
-
-Object.defineProperty(Array.prototype, "2", {
- get: function() {
- return 2;
- },
- configurable: true
-});
-
-var arr = [0, 1, , ];
-
-Object.defineProperty(arr, "2", {
- get: function() {
- return "20";
- },
- configurable: true
-});
-
-arr.reduceRight(callbackfn);
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === "20");
+ }
+ }
+
+ Object.defineProperty(Array.prototype, "2", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
+
+ var arr = [0, 1, , ];
+
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ return "20";
+ },
+ configurable: true
+ });
+
+ arr.reduceRight(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-15.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-15.js
index 4a484444e..5ed456fb1 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-15.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-15.js
@@ -9,32 +9,28 @@ description: >
accessor property on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 2);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 2);
- }
-}
+ var proto = { 0: 0, 1: 1 };
-var proto = {
- 0: 0,
- 1: 1
-};
+ Object.defineProperty(proto, "2", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-Object.defineProperty(proto, "2", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ var Con = function () { };
+ Con.prototype = proto;
-var Con = function() {};
-Con.prototype = proto;
+ var child = new Con();
+ child.length = 3;
-var child = new Con();
-child.length = 3;
-
-Array.prototype.reduceRight.call(child, callbackfn);
+ Array.prototype.reduceRight.call(child, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-16.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-16.js
index 8d473225b..b2cc5cbb2 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-16.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-16.js
@@ -9,23 +9,22 @@ description: >
accessor property on an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 2);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 2);
- }
-}
+ Object.defineProperty(Array.prototype, "2", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-Object.defineProperty(Array.prototype, "2", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ var arr = [0, 1, , ];
-var arr = [0, 1, , ];
-
-arr.reduceRight(callbackfn);
+ arr.reduceRight(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-17.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-17.js
index 00cb06069..754f25206 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-17.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-17.js
@@ -9,25 +9,20 @@ description: >
accessor property without a get function on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (typeof prevVal === "undefined");
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (typeof prevVal === "undefined");
- }
-}
+ var obj = { 0: 0, 1: 1, length: 3 };
-var obj = {
- 0: 0,
- 1: 1,
- length: 3
-};
+ Object.defineProperty(obj, "2", {
+ set: function () { },
+ configurable: true
+ });
-Object.defineProperty(obj, "2", {
- set: function() {},
- configurable: true
-});
-
-Array.prototype.reduceRight.call(obj, callbackfn);
+ Array.prototype.reduceRight.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-18.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-18.js
index 4be07578a..7413e3140 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-18.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-18.js
@@ -9,21 +9,20 @@ description: >
accessor property without a get function on an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (typeof prevVal === "undefined");
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (typeof prevVal === "undefined");
- }
-}
+ var arr = [0, 1];
-var arr = [0, 1];
+ Object.defineProperty(arr, "2", {
+ set: function () { },
+ configurable: true
+ });
-Object.defineProperty(arr, "2", {
- set: function() {},
- configurable: true
-});
-
-arr.reduceRight(callbackfn);
+ arr.reduceRight(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-19.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-19.js
index 65b0ec395..55df142cb 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-19.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-19.js
@@ -10,26 +10,21 @@ description: >
inherited accessor property on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (typeof prevVal === "undefined");
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (typeof prevVal === "undefined");
- }
-}
+ Object.prototype[2] = 2;
-Object.prototype[2] = 2;
+ var obj = { 0: 0, 1: 1, length: 3 };
+ Object.defineProperty(obj, "2", {
+ set: function () { },
+ configurable: true
+ });
-var obj = {
- 0: 0,
- 1: 1,
- length: 3
-};
-Object.defineProperty(obj, "2", {
- set: function() {},
- configurable: true
-});
-
-Array.prototype.reduceRight.call(obj, callbackfn);
+ Array.prototype.reduceRight.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-2.js
index 6b68c4259..e7dfce50c 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-2.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-2.js
@@ -9,16 +9,15 @@ description: >
property on an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 2);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 2);
- }
-}
+ var arr = [0, 1, 2];
-var arr = [0, 1, 2];
-
-arr.reduceRight(callbackfn);
+ arr.reduceRight(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-20.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-20.js
index f42f77de4..7c0d2b3d5 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-20.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-20.js
@@ -10,21 +10,20 @@ description: >
inherited accessor property on an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (typeof prevVal === "undefined");
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (typeof prevVal === "undefined");
- }
-}
+ Array.prototype[2] = 2;
+ var arr = [0, 1];
+ Object.defineProperty(arr, "2", {
+ set: function () { },
+ configurable: true
+ });
-Array.prototype[2] = 2;
-var arr = [0, 1];
-Object.defineProperty(arr, "2", {
- set: function() {},
- configurable: true
-});
-
-arr.reduceRight(callbackfn);
+ arr.reduceRight(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-21.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-21.js
index 234438eb9..c2586e35a 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-21.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-21.js
@@ -9,30 +9,26 @@ description: >
accessor property without a get function on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (typeof prevVal === "undefined");
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (typeof prevVal === "undefined");
- }
-}
+ var proto = { 0: 0, 1: 1 };
-var proto = {
- 0: 0,
- 1: 1
-};
+ Object.defineProperty(proto, "2", {
+ set: function () { },
+ configurable: true
+ });
-Object.defineProperty(proto, "2", {
- set: function() {},
- configurable: true
-});
+ var Con = function () { };
+ Con.prototype = proto;
-var Con = function() {};
-Con.prototype = proto;
+ var child = new Con();
+ child.length = 3;
-var child = new Con();
-child.length = 3;
-
-Array.prototype.reduceRight.call(child, callbackfn);
+ Array.prototype.reduceRight.call(child, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-22.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-22.js
index 801417004..0c3321dce 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-22.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-22.js
@@ -9,21 +9,20 @@ description: >
accessor property without a get function on an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (typeof prevVal === "undefined");
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (typeof prevVal === "undefined");
- }
-}
+ Object.defineProperty(Array.prototype, "2", {
+ set: function () { },
+ configurable: true
+ });
-Object.defineProperty(Array.prototype, "2", {
- set: function() {},
- configurable: true
-});
+ var arr = [0, 1, , ];
-var arr = [0, 1, , ];
-
-arr.reduceRight(callbackfn);
+ arr.reduceRight(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-25.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-25.js
index a00761e4b..ed00735cb 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-25.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-25.js
@@ -10,18 +10,17 @@ description: >
is less than number of parameters)
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 0) {
+ testResult = (prevVal === 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 0) {
- testResult = (prevVal === 1);
- }
-}
+ var func = function (a, b, c) {
+ Array.prototype.reduceRight.call(arguments, callbackfn);
+ };
-var func = function(a, b, c) {
- Array.prototype.reduceRight.call(arguments, callbackfn);
-};
-
-func(0, 1);
+ func(0, 1);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-26.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-26.js
index 5024b8159..fa3c52c43 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-26.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-26.js
@@ -10,18 +10,17 @@ description: >
equals number of parameters)
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 2);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 2);
- }
-}
+ var func = function (a, b, c) {
+ Array.prototype.reduceRight.call(arguments, callbackfn);
+ };
-var func = function(a, b, c) {
- Array.prototype.reduceRight.call(arguments, callbackfn);
-};
-
-func(0, 1, 2);
+ func(0, 1, 2);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-27.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-27.js
index 4b716884f..c6cfe25cd 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-27.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-27.js
@@ -10,18 +10,17 @@ description: >
is greater than number of parameters)
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 2) {
+ testResult = (prevVal === 3);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 2) {
- testResult = (prevVal === 3);
- }
-}
+ var func = function (a, b, c) {
+ Array.prototype.reduceRight.call(arguments, callbackfn);
+ };
-var func = function(a, b, c) {
- Array.prototype.reduceRight.call(arguments, callbackfn);
-};
-
-func(0, 1, 2, 3);
+ func(0, 1, 2, 3);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-28.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-28.js
index 296ac59cd..892cfdc56 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-28.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-28.js
@@ -9,16 +9,15 @@ description: >
implements its own property get method
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === "2");
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === "2");
- }
-}
+ var str = new String("012");
-var str = new String("012");
-
-Array.prototype.reduceRight.call(str, callbackfn);
+ Array.prototype.reduceRight.call(str, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-29.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-29.js
index e7c88ee8f..acb274e17 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-29.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-29.js
@@ -9,22 +9,21 @@ description: >
implements its own property get method
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 2);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 2);
- }
-}
+ var obj = function (a, b, c) {
+ return a + b + c;
+ };
-var obj = function(a, b, c) {
- return a + b + c;
-};
+ obj[0] = 0;
+ obj[1] = 1;
+ obj[2] = 2;
-obj[0] = 0;
-obj[1] = 1;
-obj[2] = 2;
-
-Array.prototype.reduceRight.call(obj, callbackfn);
+ Array.prototype.reduceRight.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-3.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-3.js
index 5dae8cade..062f12ba1 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-3.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-3.js
@@ -10,28 +10,22 @@ description: >
Array-like object
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === "20");
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === "20");
- }
-}
+ var proto = { 0: 0, 1: 1, 2: 2, length: 2 };
+ var Con = function () { };
+ Con.prototype = proto;
-var proto = {
- 0: 0,
- 1: 1,
- 2: 2,
- length: 2
-};
-var Con = function() {};
-Con.prototype = proto;
+ var child = new Con();
+ child[1] = "10";
+ child[2] = "20";
+ child.length = 3;
-var child = new Con();
-child[1] = "10";
-child[2] = "20";
-child.length = 3;
-
-Array.prototype.reduceRight.call(child, callbackfn);
+ Array.prototype.reduceRight.call(child, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-30.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-30.js
index dd07c30e2..bfebf8515 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-30.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-30.js
@@ -9,36 +9,35 @@ description: >
iteration is observed in subsequent iterations on an Array
---*/
-var testResult = false;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1 && prevVal === 2);
- }
-}
-
-var arr = [0];
-var preIterVisible = false;
-
-Object.defineProperty(arr, "1", {
- get: function() {
- if (preIterVisible) {
- return 1;
- } else {
- return "20";
- }
- },
- configurable: true
-});
-
-Object.defineProperty(arr, "2", {
- get: function() {
- preIterVisible = true;
- return 2;
- },
- configurable: true
-});
-
-arr.reduceRight(callbackfn);
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1 && prevVal === 2);
+ }
+ }
+
+ var arr = [0];
+ var preIterVisible = false;
+
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ if (preIterVisible) {
+ return 1;
+ } else {
+ return "20";
+ }
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ preIterVisible = true;
+ return 2;
+ },
+ configurable: true
+ });
+
+ arr.reduceRight(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-31.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-31.js
index adc024dca..8d8168a56 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-31.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-31.js
@@ -9,39 +9,35 @@ description: >
iteration is observed subsequetly on an Array-like object
---*/
-var testResult = false;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 2 && curVal === 1);
- }
-}
-
-var obj = {
- 0: 0,
- length: 3
-};
-var preIterVisible = false;
-
-Object.defineProperty(obj, "1", {
- get: function() {
- if (preIterVisible) {
- return 1;
- } else {
- return "20";
- }
- },
- configurable: true
-});
-
-Object.defineProperty(obj, "2", {
- get: function() {
- preIterVisible = true;
- return 2;
- },
- configurable: true
-});
-
-Array.prototype.reduceRight.call(obj, callbackfn);
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 2 && curVal === 1);
+ }
+ }
+
+ var obj = { 0: 0, length: 3 };
+ var preIterVisible = false;
+
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ if (preIterVisible) {
+ return 1;
+ } else {
+ return "20";
+ }
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(obj, "2", {
+ get: function () {
+ preIterVisible = true;
+ return 2;
+ },
+ configurable: true
+ });
+
+ Array.prototype.reduceRight.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-32.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-32.js
index e4056e11f..49146cd49 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-32.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-32.js
@@ -9,26 +9,21 @@ description: >
iteration on an Array-like object
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx <= 1) {
+ accessed = true;
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx <= 1) {
- accessed = true;
- }
-}
-
-var obj = {
- 0: 0,
- 1: 1,
- length: 3
-};
-Object.defineProperty(obj, "2", {
- get: function() {
- throw new RangeError("unhandle exception happened in getter");
- },
- configurable: true
-});
+ var obj = { 0: 0, 1: 1, length: 3 };
+ Object.defineProperty(obj, "2", {
+ get: function () {
+ throw new RangeError("unhandle exception happened in getter");
+ },
+ configurable: true
+ });
assert.throws(RangeError, function() {
- Array.prototype.reduceRight.call(obj, callbackfn);
+ Array.prototype.reduceRight.call(obj, callbackfn);
});
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-33.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-33.js
index b770c5ccc..53f974e22 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-33.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-33.js
@@ -9,23 +9,22 @@ description: >
iteration on an Array
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx <= 1) {
+ accessed = true;
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx <= 1) {
- accessed = true;
- }
-}
+ var arr = [0, 1];
-var arr = [0, 1];
-
-Object.defineProperty(arr, "2", {
- get: function() {
- throw new RangeError("unhandle exception happened in getter");
- },
- configurable: true
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ throw new RangeError("unhandle exception happened in getter");
+ },
+ configurable: true
+ });
assert.throws(RangeError, function() {
- arr.reduceRight(callbackfn);
+ arr.reduceRight(callbackfn);
});
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-4.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-4.js
index 9363a9c3b..2bf4cc00d 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-4.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-4.js
@@ -9,15 +9,14 @@ description: >
property that overrides an inherited data property on an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 2);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 2);
- }
-}
-
-Array.prototype[2] = "11";
-[0, 1, 2].reduceRight(callbackfn);
+ Array.prototype[2] = "11";
+ [0, 1, 2].reduceRight(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-5.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-5.js
index 1eda02b46..c08e59248 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-5.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-5.js
@@ -10,35 +10,34 @@ description: >
Array-like object
---*/
-var testResult = false;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === "20");
- }
-}
-
-var proto = {};
-
-Object.defineProperty(proto, "2", {
- get: function() {
- return 11;
- },
- configurable: true
-});
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-child.length = 3;
-child[0] = "0";
-child[1] = "1";
-Object.defineProperty(proto, "2", {
- value: "20",
- configurable: true
-});
-
-Array.prototype.reduceRight.call(child, callbackfn);
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === "20");
+ }
+ }
+
+ var proto = {};
+
+ Object.defineProperty(proto, "2", {
+ get: function () {
+ return 11;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 3;
+ child[0] = "0";
+ child[1] = "1";
+ Object.defineProperty(proto, "2", {
+ value: "20",
+ configurable: true
+ });
+
+ Array.prototype.reduceRight.call(child, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-6.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-6.js
index 6f8f1eec3..6bd5ab5eb 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-6.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-6.js
@@ -9,20 +9,19 @@ description: >
property that overrides an inherited accessor property on an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 2);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 2);
- }
-}
-
-Object.defineProperty(Array.prototype, "2", {
- get: function() {
- return "2";
- },
- configurable: true
-});
-[0, 1, 2].reduceRight(callbackfn);
+ Object.defineProperty(Array.prototype, "2", {
+ get: function () {
+ return "2";
+ },
+ configurable: true
+ });
+ [0, 1, 2].reduceRight(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-7.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-7.js
index 55a3d6dbd..a955557ec 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-7.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-7.js
@@ -9,25 +9,19 @@ description: >
data property on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 2);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 2);
- }
-}
+ var proto = { 0: 0, 1: 1, 2: 2, length: 3 };
+ var Con = function () { };
+ Con.prototype = proto;
-var proto = {
- 0: 0,
- 1: 1,
- 2: 2,
- length: 3
-};
-var Con = function() {};
-Con.prototype = proto;
+ var child = new Con();
-var child = new Con();
-
-Array.prototype.reduceRight.call(child, callbackfn);
+ Array.prototype.reduceRight.call(child, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-8.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-8.js
index d7174183c..983566a9c 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-8.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-8.js
@@ -9,17 +9,16 @@ description: >
data property on an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 2);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 2);
- }
-}
-
-Array.prototype[0] = 0;
-Array.prototype[1] = 1;
-Array.prototype[2] = 2;
-[, , , ].reduceRight(callbackfn);
+ Array.prototype[0] = 0;
+ Array.prototype[1] = 1;
+ Array.prototype[2] = 2;
+ [, , ,].reduceRight(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-9.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-9.js
index 648e9485b..e2f7da4b6 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-9.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-9.js
@@ -9,26 +9,21 @@ description: >
accessor property on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 2);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 2);
- }
-}
+ var obj = { 0: 0, 1: 1, length: 3 };
+ Object.defineProperty(obj, "2", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-var obj = {
- 0: 0,
- 1: 1,
- length: 3
-};
-Object.defineProperty(obj, "2", {
- get: function() {
- return 2;
- },
- configurable: true
-});
-
-Array.prototype.reduceRight.call(obj, callbackfn);
+ Array.prototype.reduceRight.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-1.js
index 8c59328e3..9c1d91d3c 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-1.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-1.js
@@ -9,10 +9,11 @@ description: >
and initialValue is not present
---*/
-function callbackfn(prevVal, curVal, idx, obj)
-{}
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ }
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.reduceRight(callbackfn);
+ arr.reduceRight(callbackfn);
});
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-2.js
index 3153f84f5..05271d674 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-2.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-2.js
@@ -10,12 +10,13 @@ description: >
initialValue is not present
---*/
-function callbackfn(prevVal, curVal, idx, obj)
-{}
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ }
-var arr = new Array(10);
-arr[9] = 1;
-arr.length = 5;
+ var arr = new Array(10);
+ arr[9] = 1;
+ arr.length = 5;
assert.throws(TypeError, function() {
- arr.reduceRight(callbackfn);
+ arr.reduceRight(callbackfn);
});
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-3.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-3.js
index 06d5460c7..e47a755d5 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-3.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-3.js
@@ -9,15 +9,16 @@ description: >
assigned values are deleted and initialValue is not present
---*/
-function callbackfn(prevVal, curVal, idx, obj)
-{}
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ }
-var arr = [1, 2, 3, 4, 5];
-delete arr[0];
-delete arr[1];
-delete arr[2];
-delete arr[3];
-delete arr[4];
+ var arr = [1,2,3,4,5];
+ delete arr[0];
+ delete arr[1];
+ delete arr[2];
+ delete arr[3];
+ delete arr[4];
assert.throws(TypeError, function() {
- arr.reduceRight(callbackfn);
+ arr.reduceRight(callbackfn);
});
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-4.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-4.js
index 4dc298096..18296c2bf 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-4.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-4.js
@@ -9,11 +9,11 @@ description: >
own properties but prototype contains a single property
---*/
-var arr = [, , , ];
+ var arr = [, , , ];
-try {
- Array.prototype[1] = "prototype";
- arr.reduceRight(function() {});
-} finally {
- delete Array.prototype[1];
-}
+ try {
+ Array.prototype[1] = "prototype";
+ arr.reduceRight(function () { });
+ } finally {
+ delete Array.prototype[1];
+ }
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-5.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-5.js
index 224ff36c3..b5dd24963 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-5.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-5.js
@@ -9,18 +9,18 @@ description: >
visible when an exception occurs
---*/
-var obj = {};
+ var obj = { };
-var accessed = false;
+ var accessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- accessed = true;
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ accessed = true;
+ return 2;
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.reduceRight.call(obj, function() {});
+ Array.prototype.reduceRight.call(obj, function () { });
});
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-6.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-6.js
index 3dab92c10..476886a76 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-6.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-6.js
@@ -9,22 +9,22 @@ description: >
visible when an exception occurs
---*/
-var obj = {};
+ var obj = {};
-var accessed = false;
+ var accessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- return {
- toString: function() {
- accessed = true;
- return "2";
- }
- };
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ toString: function () {
+ accessed = true;
+ return "2";
+ }
+ };
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.reduceRight.call(obj, function() {});
+ Array.prototype.reduceRight.call(obj, function () { });
});
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-7.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-7.js
index fade921f9..2fabc8fd6 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-7.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-7.js
@@ -9,15 +9,15 @@ description: >
exception was thrown by step 2
---*/
-var obj = {};
+ var obj = {};
-Object.defineProperty(obj, "length", {
- get: function() {
- throw new Test262Error();
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ throw new Test262Error();
+ },
+ configurable: true
+ });
assert.throws(Test262Error, function() {
- Array.prototype.reduceRight.call(obj, function() {});
+ Array.prototype.reduceRight.call(obj, function () { });
});
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-8.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-8.js
index d0e875976..52c2ed7a6 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-8.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-8.js
@@ -9,19 +9,19 @@ description: >
exception was thrown by step 3
---*/
-var obj = {};
+ var obj = {};
-Object.defineProperty(obj, "length", {
- get: function() {
- return {
- toString: function() {
- throw new Test262Error();
- }
- };
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ toString: function () {
+ throw new Test262Error();
+ }
+ };
+ },
+ configurable: true
+ });
assert.throws(Test262Error, function() {
- Array.prototype.reduceRight.call(obj, function() {});
+ Array.prototype.reduceRight.call(obj, function () { });
});
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-1.js
index ef9f26791..8132b414c 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-1.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-1.js
@@ -11,12 +11,12 @@ description: >
length
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- arr[5] = 6;
- arr[2] = 3;
- return prevVal + curVal;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ arr[5] = 6;
+ arr[2] = 3;
+ return prevVal + curVal;
+ }
-var arr = ['1', 2, , 4, '5'];
+ var arr = ['1', 2, , 4, '5'];
assert.sameValue(arr.reduceRight(callbackfn), "54321", 'arr.reduceRight(callbackfn)');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-2.js
index 4fa783dfe..05fa751f0 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-2.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-2.js
@@ -9,13 +9,13 @@ description: >
array after it is called
---*/
-function callbackfn(prevVal, curVal, idx, obj)
-{
- arr[3] = -2;
- arr[0] = -1;
- return prevVal + curVal;
-}
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ arr[3] = -2;
+ arr[0] = -1;
+ return prevVal + curVal;
+ }
-var arr = [1, 2, 3, 4, 5];
+ var arr = [1,2,3,4,5];
assert.sameValue(arr.reduceRight(callbackfn), 13, 'arr.reduceRight(callbackfn)');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-3.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-3.js
index 0455ef32a..eb48426ea 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-3.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-3.js
@@ -9,14 +9,14 @@ description: >
elements in array after the call
---*/
-function callbackfn(prevVal, curVal, idx, obj)
-{
- delete arr[1];
- delete arr[4];
- return prevVal + curVal;
-}
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ delete arr[1];
+ delete arr[4];
+ return prevVal + curVal;
+ }
-var arr = ['1', 2, 3, 4, 5];
+ var arr = ['1',2,3,4,5];
// two elements deleted
assert.sameValue(arr.reduceRight(callbackfn), "121", 'arr.reduceRight(callbackfn)');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-4.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-4.js
index d3fa9884c..0c00cf9c9 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-4.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-4.js
@@ -9,12 +9,12 @@ description: >
elements when Array.length is decreased
---*/
-function callbackfn(prevVal, curVal, idx, obj)
-{
- arr.length = 2;
- return prevVal + curVal;
-}
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ arr.length = 2;
+ return prevVal + curVal;
+ }
-var arr = [1, 2, 3, 4, 5];
+ var arr = [1,2,3,4,5];
assert.sameValue(arr.reduceRight(callbackfn), 12, 'arr.reduceRight(callbackfn)');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-5.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-5.js
index a11242c5d..8cbf9edee 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-5.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-5.js
@@ -9,15 +9,14 @@ description: >
one element
---*/
-var callCnt = 0;
+ var callCnt = 0;
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ callCnt++;
+ return 2;
+ }
-function callbackfn(prevVal, curVal, idx, obj)
-{
- callCnt++;
- return 2;
-}
-
-var arr = [1];
+ var arr = [1];
assert.sameValue(arr.reduceRight(callbackfn), 1, 'arr.reduceRight(callbackfn)');
assert.sameValue(callCnt, 0, 'callCnt');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-6.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-6.js
index 24f658690..ca9493b31 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-6.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-6.js
@@ -9,16 +9,16 @@ description: >
the call when same index is also present in prototype
---*/
-function callbackfn(prevVal, curVal, idx, obj)
-{
- delete arr[1];
- delete arr[2];
- return prevVal + curVal;
-}
-Array.prototype[2] = 6;
-var arr = ['1', 2, 3, 4, 5];
-var res = arr.reduceRight(callbackfn);
-delete Array.prototype[2];
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ delete arr[1];
+ delete arr[2];
+ return prevVal + curVal;
+ }
+ Array.prototype[2] = 6;
+ var arr = ['1',2,3,4,5];
+ var res = arr.reduceRight(callbackfn);
+ delete Array.prototype[2];
//one element deleted
assert.sameValue(res, "151", 'res');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-7.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-7.js
index b76b74b65..6adeffef5 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-7.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-7.js
@@ -9,13 +9,13 @@ description: >
deleted during the call
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- delete o.arr;
- return prevVal + curVal;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ delete o.arr;
+ return prevVal + curVal;
+ }
-var o = new Object();
-o.arr = ['1', 2, 3, 4, 5];
+ var o = new Object();
+ o.arr = ['1', 2, 3, 4, 5];
assert.sameValue(o.arr.reduceRight(callbackfn), "141", 'o.arr.reduceRight(callbackfn)');
assert.sameValue(o.hasOwnProperty("arr"), false, 'o.hasOwnProperty("arr")');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-8.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-8.js
index a2ef4d7fe..9968f8929 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-8.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-8.js
@@ -9,24 +9,21 @@ description: >
is 0
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn() {
+ accessed = true;
+ }
-function callbackfn() {
- accessed = true;
-}
+ var obj = { length: 0 };
-var obj = {
- length: 0
-};
+ Object.defineProperty(obj, "5", {
+ get: function () {
+ accessed = true;
+ return 10;
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "5", {
- get: function() {
- accessed = true;
- return 10;
- },
- configurable: true
-});
-
-Array.prototype.reduceRight.call(obj, function() {}, "initialValue");
+ Array.prototype.reduceRight.call(obj, function () { }, "initialValue");
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-9.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-9.js
index ac47f378a..f5fc22ab3 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-9.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-9.js
@@ -9,20 +9,19 @@ description: >
number of iterations
---*/
-var called = 0;
+ var called = 0;
+ function callbackfn(preVal, val, idx, obj) {
+ called++;
+ }
-function callbackfn(preVal, val, idx, obj) {
- called++;
-}
+ var arr = [0, 1, 2, 3];
+ Object.defineProperty(arr, "4", {
+ get: function () {
+ arr.length = 2;
+ },
+ configurable: true
+ });
-var arr = [0, 1, 2, 3];
-Object.defineProperty(arr, "4", {
- get: function() {
- arr.length = 2;
- },
- configurable: true
-});
-
-arr.reduceRight(callbackfn, "initialValue");
+ arr.reduceRight(callbackfn, "initialValue");
assert.sameValue(called, 3, 'called');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-1.js
index b7336d05e..9277ef37d 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-1.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-1.js
@@ -9,10 +9,11 @@ description: >
empty and initialValue is not present
---*/
-function callbackfn(prevVal, curVal, idx, obj)
-{}
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ }
-var arr = new Array(10);
+ var arr = new Array(10);
-assert.sameValue(arr.reduceRight(callbackfn, 5), 5, 'arr.reduceRight(callbackfn,5)');
+assert.sameValue(arr.reduceRight(callbackfn,5), 5, 'arr.reduceRight(callbackfn,5)');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-10.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-10.js
index 1dd6fb9fe..a92bf8dcc 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-10.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-10.js
@@ -10,31 +10,28 @@ description: >
Array-like Object
---*/
-var accessed = false;
-var testResult = true;
+ var accessed = false;
+ var testResult = true;
-function callbackfn(preVal, val, idx, obj) {
- accessed = true;
- if (idx === 3) {
- testResult = false;
- }
-}
+ function callbackfn(preVal, val, idx, obj) {
+ accessed = true;
+ if (idx === 3) {
+ testResult = false;
+ }
+ }
-var obj = {
- 2: 2,
- length: 20
-};
+ var obj = { 2: 2, length: 20 };
-Object.defineProperty(obj, "5", {
- get: function() {
- delete Object.prototype[3];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "5", {
+ get: function () {
+ delete Object.prototype[3];
+ return 0;
+ },
+ configurable: true
+ });
-Object.prototype[3] = 1;
-Array.prototype.reduceRight.call(obj, callbackfn);
+ Object.prototype[3] = 1;
+ Array.prototype.reduceRight.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-11.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-11.js
index e364fbbb7..bd1bcb4f3 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-11.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-11.js
@@ -9,27 +9,27 @@ description: >
step 8 causes deleted index property not to be visited on an Array
---*/
-var accessed = false;
-var testResult = true;
+ var accessed = false;
+ var testResult = true;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- if (idx === 1) {
- testResult = false;
- }
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ if (idx === 1) {
+ testResult = false;
+ }
+ }
-var arr = [0, , , ];
-Object.defineProperty(arr, "3", {
- get: function() {
- delete Array.prototype[1];
- return 0;
- },
- configurable: true
-});
+ var arr = [0, , , ];
+ Object.defineProperty(arr, "3", {
+ get: function () {
+ delete Array.prototype[1];
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype[1] = 1;
-arr.reduceRight(callbackfn);
+ Array.prototype[1] = 1;
+ arr.reduceRight(callbackfn);
assert(testResult, 'testResult !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-12.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-12.js
index a6aed7624..9d1eca645 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-12.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-12.js
@@ -10,29 +10,25 @@ description: >
on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1 && curVal === 1) {
- testResult = true;
- }
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1 && curVal === 1) {
+ testResult = true;
+ }
+ }
-var obj = {
- 0: 0,
- 1: 111,
- length: 10
-};
+ var obj = { 0: 0, 1: 111, length: 10 };
-Object.defineProperty(obj, "4", {
- get: function() {
- delete obj[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "4", {
+ get: function () {
+ delete obj[1];
+ return 0;
+ },
+ configurable: true
+ });
-Object.prototype[1] = 1;
-Array.prototype.reduceRight.call(obj, callbackfn);
+ Object.prototype[1] = 1;
+ Array.prototype.reduceRight.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-13.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-13.js
index 470c9420a..fe522f071 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-13.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-13.js
@@ -10,24 +10,24 @@ description: >
on an Array
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1 && curVal === 1) {
- testResult = true;
- }
-}
-var arr = [0, 111];
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1 && curVal === 1) {
+ testResult = true;
+ }
+ }
+ var arr = [0, 111];
-Object.defineProperty(arr, "2", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype[1] = 1;
-arr.reduceRight(callbackfn);
+ Array.prototype[1] = 1;
+ arr.reduceRight(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-14.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-14.js
index 8307a9768..16924c99c 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-14.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-14.js
@@ -9,27 +9,27 @@ description: >
causes deleted index property not to be visited
---*/
-var accessed = false;
-var testResult = true;
+ var accessed = false;
+ var testResult = true;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- if (idx === 2) {
- testResult = false;
- }
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ if (idx === 2) {
+ testResult = false;
+ }
+ }
-var arr = [0, 1, 2, 3];
+ var arr = [0, 1, 2, 3];
-Object.defineProperty(arr, "3", {
- get: function() {
- arr.length = 2;
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "3", {
+ get: function () {
+ arr.length = 2;
+ return 0;
+ },
+ configurable: true
+ });
-arr.reduceRight(callbackfn);
+ arr.reduceRight(callbackfn);
assert(testResult, 'testResult !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-15.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-15.js
index 97695a950..456fc605b 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-15.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-15.js
@@ -10,30 +10,30 @@ description: >
visited
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 2 && curVal === "prototype") {
- testResult = true;
- }
-}
-var arr = [0, 1, 2, 3];
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 2 && curVal === "prototype") {
+ testResult = true;
+ }
+ }
+ var arr = [0, 1, 2, 3];
-Object.defineProperty(Array.prototype, "2", {
- get: function() {
- return "prototype";
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "2", {
+ get: function () {
+ return "prototype";
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "3", {
- get: function() {
- arr.length = 2;
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "3", {
+ get: function () {
+ arr.length = 2;
+ return 1;
+ },
+ configurable: true
+ });
-arr.reduceRight(callbackfn);
+ arr.reduceRight(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-16.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-16.js
index 71def64c7..f23e5ecf0 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-16.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-16.js
@@ -10,31 +10,31 @@ description: >
flags: [noStrict]
---*/
-var testResult = false;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 2 && curVal === "unconfigurable") {
- testResult = true;
- }
-}
-
-var arr = [0, 1, 2, 3];
-
-Object.defineProperty(arr, "2", {
- get: function() {
- return "unconfigurable";
- },
- configurable: false
-});
-
-Object.defineProperty(arr, "3", {
- get: function() {
- arr.length = 2;
- return 1;
- },
- configurable: true
-});
-
-arr.reduceRight(callbackfn);
+ var testResult = false;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 2 && curVal === "unconfigurable") {
+ testResult = true;
+ }
+ }
+
+ var arr = [0, 1, 2, 3];
+
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ return "unconfigurable";
+ },
+ configurable: false
+ });
+
+ Object.defineProperty(arr, "3", {
+ get: function () {
+ arr.length = 2;
+ return 1;
+ },
+ configurable: true
+ });
+
+ arr.reduceRight(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-17.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-17.js
index d21d758ac..d74fd82f5 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-17.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-17.js
@@ -9,31 +9,29 @@ description: >
visited on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 0 && curVal === 0) {
- testResult = true;
- }
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 0 && curVal === 0) {
+ testResult = true;
+ }
+ }
-var obj = {
- length: 2
-};
+ var obj = { length: 2 };
-Object.defineProperty(obj, "1", {
- get: function() {
- Object.defineProperty(obj, "0", {
- get: function() {
- return 0;
- },
- configurable: true
- });
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ return 0;
+ },
+ configurable: true
+ });
+ return 1;
+ },
+ configurable: true
+ });
-Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
+ Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-18.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-18.js
index 89ed61d4e..d6ab2aac6 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-18.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-18.js
@@ -9,29 +9,29 @@ description: >
visited on an Array
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1 && curVal === 1) {
- testResult = true;
- }
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1 && curVal === 1) {
+ testResult = true;
+ }
+ }
-var arr = [0, , 2];
+ var arr = [0, , 2];
-Object.defineProperty(arr, "2", {
- get: function() {
- Object.defineProperty(arr, "1", {
- get: function() {
- return 1;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
-arr.reduceRight(callbackfn, "initialValue");
+ arr.reduceRight(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-19.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-19.js
index e31e3f370..714b8ecd3 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-19.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-19.js
@@ -9,31 +9,29 @@ description: >
visited on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1 && curVal === 6.99) {
- testResult = true;
- }
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1 && curVal === 6.99) {
+ testResult = true;
+ }
+ }
-var obj = {
- length: 6
-};
+ var obj = { length: 6 };
-Object.defineProperty(obj, "2", {
- get: function() {
- Object.defineProperty(Object.prototype, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "2", {
+ get: function () {
+ Object.defineProperty(Object.prototype, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
+ Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-2.js
index 11d7140d9..423ae546a 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-2.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-2.js
@@ -9,24 +9,24 @@ description: >
visible here
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 2 && curVal === "2") {
- testResult = true;
- }
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 2 && curVal === "2") {
+ testResult = true;
+ }
+ }
-var obj = {};
+ var obj = {};
-Object.defineProperty(obj, "length", {
- get: function() {
- obj[2] = "2";
- return 3;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ obj[2] = "2";
+ return 3;
+ },
+ configurable: true
+ });
-Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
+ Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-20.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-20.js
index 47586d76f..b993b17f5 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-20.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-20.js
@@ -9,29 +9,29 @@ description: >
visited on an Array
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1 && curVal === 6.99) {
- testResult = true;
- }
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1 && curVal === 6.99) {
+ testResult = true;
+ }
+ }
-var arr = [0, , 2];
+ var arr = [0, , 2];
-Object.defineProperty(arr, "2", {
- get: function() {
- Object.defineProperty(Array.prototype, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ Object.defineProperty(Array.prototype, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
-arr.reduceRight(callbackfn, "initialValue");
+ arr.reduceRight(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-21.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-21.js
index 13f3eeaa6..0b5b53ccf 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-21.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-21.js
@@ -9,37 +9,34 @@ description: >
index property not to be visited on an Array-like object
---*/
-var accessed = false;
-var testResult = true;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- if (idx === 1) {
- testResult = false;
- }
-}
-
-var obj = {
- 0: 10,
- length: 10
-};
-
-Object.defineProperty(obj, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
-});
-
-Object.defineProperty(obj, "5", {
- get: function() {
- delete obj[1];
- return 0;
- },
- configurable: true
-});
-
-Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
+ var accessed = false;
+ var testResult = true;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ if (idx === 1) {
+ testResult = false;
+ }
+ }
+
+ var obj = { 0: 10, length: 10 };
+
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(obj, "5", {
+ get: function () {
+ delete obj[1];
+ return 0;
+ },
+ configurable: true
+ });
+
+ Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-22.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-22.js
index 8c57a1bd2..d0bffcff6 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-22.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-22.js
@@ -9,34 +9,34 @@ description: >
index property not to be visited on an Array
---*/
-var accessed = false;
-var testResult = true;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- if (idx === 1) {
- testResult = false;
- }
-}
-
-var arr = [1, 2, 4];
-
-Object.defineProperty(arr, "1", {
- get: function() {
- return "6.99";
- },
- configurable: true
-});
-
-Object.defineProperty(arr, "2", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
-
-arr.reduceRight(callbackfn, "initialValue");
+ var accessed = false;
+ var testResult = true;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ if (idx === 1) {
+ testResult = false;
+ }
+ }
+
+ var arr = [1, 2, 4];
+
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return "6.99";
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
+
+ arr.reduceRight(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-23.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-23.js
index 52046431c..611310635 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-23.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-23.js
@@ -10,31 +10,28 @@ description: >
Object
---*/
-var accessed = false;
-var testResult = true;
+ var accessed = false;
+ var testResult = true;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- if (idx === 3) {
- testResult = false;
- }
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ if (idx === 3) {
+ testResult = false;
+ }
+ }
-var obj = {
- 2: 2,
- length: 20
-};
+ var obj = { 2: 2, length: 20 };
-Object.defineProperty(obj, "5", {
- get: function() {
- delete Object.prototype[3];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "5", {
+ get: function () {
+ delete Object.prototype[3];
+ return 0;
+ },
+ configurable: true
+ });
-Object.prototype[3] = 1;
-Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
+ Object.prototype[3] = 1;
+ Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-24.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-24.js
index 9248519f9..8f2c45520 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-24.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-24.js
@@ -9,27 +9,27 @@ description: >
causes deleted index property not to be visited on an Array
---*/
-var accessed = false;
-var testResult = true;
+ var accessed = false;
+ var testResult = true;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- if (idx === 1) {
- testResult = false;
- }
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ if (idx === 1) {
+ testResult = false;
+ }
+ }
-var arr = [0, , , ];
-Object.defineProperty(arr, "3", {
- get: function() {
- delete Array.prototype[1];
- return 0;
- },
- configurable: true
-});
+ var arr = [0, , , ];
+ Object.defineProperty(arr, "3", {
+ get: function () {
+ delete Array.prototype[1];
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype[1] = 1;
-arr.reduceRight(callbackfn, "initialValue");
+ Array.prototype[1] = 1;
+ arr.reduceRight(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-25.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-25.js
index bbfac7348..78d46ed7b 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-25.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-25.js
@@ -10,30 +10,25 @@ description: >
Array-like object
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1 && curVal === 1) {
- testResult = true;
- }
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1 && curVal === 1) {
+ testResult = true;
+ }
+ }
-var obj = {
- 0: 0,
- 1: 111,
- 4: 10,
- length: 10
-};
+ var obj = { 0: 0, 1: 111, 4: 10, length: 10 };
-Object.defineProperty(obj, "4", {
- get: function() {
- delete obj[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "4", {
+ get: function () {
+ delete obj[1];
+ return 0;
+ },
+ configurable: true
+ });
-Object.prototype[1] = 1;
-Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
+ Object.prototype[1] = 1;
+ Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-26.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-26.js
index 6b7362927..7b0e441b3 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-26.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-26.js
@@ -9,24 +9,24 @@ description: >
property causes prototype index property to be visited on an Array
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1 && curVal === 1) {
- testResult = true;
- }
-}
-var arr = [0, 111];
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1 && curVal === 1) {
+ testResult = true;
+ }
+ }
+ var arr = [0, 111];
-Object.defineProperty(arr, "2", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype[1] = 1;
-arr.reduceRight(callbackfn, "initialValue");
+ Array.prototype[1] = 1;
+ arr.reduceRight(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-27.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-27.js
index 01b7f09b9..45aa57a16 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-27.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-27.js
@@ -9,27 +9,27 @@ description: >
deleted index property not to be visited
---*/
-var accessed = false;
-var testResult = true;
+ var accessed = false;
+ var testResult = true;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- if (idx === 2) {
- testResult = false;
- }
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ if (idx === 2) {
+ testResult = false;
+ }
+ }
-var arr = [0, 1, 2, 3];
+ var arr = [0, 1, 2, 3];
-Object.defineProperty(arr, "3", {
- get: function() {
- arr.length = 2;
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "3", {
+ get: function () {
+ arr.length = 2;
+ return 0;
+ },
+ configurable: true
+ });
-arr.reduceRight(callbackfn, "initialValue");
+ arr.reduceRight(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-28.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-28.js
index a039a64b7..31ab61068 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-28.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-28.js
@@ -9,30 +9,30 @@ description: >
prototype property causes prototype index property to be visited
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 2 && curVal === "prototype") {
- testResult = true;
- }
-}
-var arr = [0, 1, 2, 3];
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 2 && curVal === "prototype") {
+ testResult = true;
+ }
+ }
+ var arr = [0, 1, 2, 3];
-Object.defineProperty(Array.prototype, "2", {
- get: function() {
- return "prototype";
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "2", {
+ get: function () {
+ return "prototype";
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "3", {
- get: function() {
- arr.length = 2;
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "3", {
+ get: function () {
+ arr.length = 2;
+ return 1;
+ },
+ configurable: true
+ });
-arr.reduceRight(callbackfn, "initialValue");
+ arr.reduceRight(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-29.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-29.js
index b5cd3bd28..b30c7d0b6 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-29.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-29.js
@@ -10,31 +10,31 @@ description: >
flags: [noStrict]
---*/
-var testResult = false;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 2 && curVal === "unconfigurable") {
- testResult = true;
- }
-}
-
-var arr = [0, 1, 2, 3];
-
-Object.defineProperty(arr, "2", {
- get: function() {
- return "unconfigurable";
- },
- configurable: false
-});
-
-Object.defineProperty(arr, "3", {
- get: function() {
- arr.length = 2;
- return 1;
- },
- configurable: true
-});
-
-arr.reduceRight(callbackfn, "initialValue");
+ var testResult = false;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 2 && curVal === "unconfigurable") {
+ testResult = true;
+ }
+ }
+
+ var arr = [0, 1, 2, 3];
+
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ return "unconfigurable";
+ },
+ configurable: false
+ });
+
+ Object.defineProperty(arr, "3", {
+ get: function () {
+ arr.length = 2;
+ return 1;
+ },
+ configurable: true
+ });
+
+ arr.reduceRight(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-3.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-3.js
index c9bf72fcb..3e26f8b98 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-3.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-3.js
@@ -9,30 +9,27 @@ description: >
visible here
---*/
-var accessed = false;
-var testResult = true;
+ var accessed = false;
+ var testResult = true;
-function callbackfn(preVal, curVal, idx, obj) {
- accessed = true;
- if (idx === 2) {
- testResult = false;
- }
-}
+ function callbackfn(preVal, curVal, idx, obj) {
+ accessed = true;
+ if (idx === 2) {
+ testResult = false;
+ }
+ }
-var obj = {
- 2: "2",
- 3: 10
-};
+ var obj = { 2: "2", 3: 10 };
-Object.defineProperty(obj, "length", {
- get: function() {
- delete obj[2];
- return 5;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ delete obj[2];
+ return 5;
+ },
+ configurable: true
+ });
-Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
+ Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
assert(accessed, 'accessed !== true');
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-4.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-4.js
index de1e7e50e..e8038a797 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-4.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-4.js
@@ -9,31 +9,29 @@ description: >
step 8 can be visited on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(preVal, curVal, idx, obj) {
- if (idx === 0 && curVal === 0) {
- testResult = true;
- }
-}
+ function callbackfn(preVal, curVal, idx, obj) {
+ if (idx === 0 && curVal === 0) {
+ testResult = true;
+ }
+ }
-var obj = {
- length: 2
-};
+ var obj = { length: 2 };
-Object.defineProperty(obj, "1", {
- get: function() {
- Object.defineProperty(obj, "0", {
- get: function() {
- return 0;
- },
- configurable: true
- });
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ return 0;
+ },
+ configurable: true
+ });
+ return 1;
+ },
+ configurable: true
+ });
-Array.prototype.reduceRight.call(obj, callbackfn);
+ Array.prototype.reduceRight.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-5.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-5.js
index be881241b..4c0df9703 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-5.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-5.js
@@ -9,29 +9,29 @@ description: >
step 8 can be visited on an Array
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(preVal, curVal, idx, obj) {
- if (idx === 1 && curVal === 1) {
- testResult = true;
- }
-}
+ function callbackfn(preVal, curVal, idx, obj) {
+ if (idx === 1 && curVal === 1) {
+ testResult = true;
+ }
+ }
-var arr = [0, , 2];
+ var arr = [0, , 2];
-Object.defineProperty(arr, "2", {
- get: function() {
- Object.defineProperty(arr, "1", {
- get: function() {
- return 1;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
-arr.reduceRight(callbackfn);
+ arr.reduceRight(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-6.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-6.js
index 4c4616663..7149dad93 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-6.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-6.js
@@ -9,31 +9,29 @@ description: >
step 8 visited on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(preVal, curVal, idx, obj) {
- if (idx === 1 && curVal === 6.99) {
- testResult = true;
- }
-}
+ function callbackfn(preVal, curVal, idx, obj) {
+ if (idx === 1 && curVal === 6.99) {
+ testResult = true;
+ }
+ }
-var obj = {
- length: 6
-};
+ var obj = { length: 6 };
-Object.defineProperty(obj, "2", {
- get: function() {
- Object.defineProperty(Object.prototype, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "2", {
+ get: function () {
+ Object.defineProperty(Object.prototype, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype.reduceRight.call(obj, callbackfn);
+ Array.prototype.reduceRight.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-7.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-7.js
index 1eea9497c..b38b4cb50 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-7.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-7.js
@@ -9,29 +9,29 @@ description: >
step 8 visited on an Array
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(preVal, curVal, idx, obj) {
- if (idx === 1 && curVal === 6.99) {
- testResult = true;
- }
-}
+ function callbackfn(preVal, curVal, idx, obj) {
+ if (idx === 1 && curVal === 6.99) {
+ testResult = true;
+ }
+ }
-var arr = [0, , 2];
+ var arr = [0, , 2];
-Object.defineProperty(arr, "2", {
- get: function() {
- Object.defineProperty(Array.prototype, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ Object.defineProperty(Array.prototype, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
-arr.reduceRight(callbackfn);
+ arr.reduceRight(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-8.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-8.js
index f71e3926e..6e5c2a567 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-8.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-8.js
@@ -10,37 +10,34 @@ description: >
object
---*/
-var accessed = false;
-var testResult = true;
-
-function callbackfn(preVal, val, idx, obj) {
- accessed = true;
- if (idx === 1) {
- testResult = false;
- }
-}
-
-var obj = {
- 0: 10,
- length: 10
-};
-
-Object.defineProperty(obj, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
-});
-
-Object.defineProperty(obj, "5", {
- get: function() {
- delete obj[1];
- return 0;
- },
- configurable: true
-});
-
-Array.prototype.reduceRight.call(obj, callbackfn);
+ var accessed = false;
+ var testResult = true;
+
+ function callbackfn(preVal, val, idx, obj) {
+ accessed = true;
+ if (idx === 1) {
+ testResult = false;
+ }
+ }
+
+ var obj = { 0: 10, length: 10 };
+
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(obj, "5", {
+ get: function () {
+ delete obj[1];
+ return 0;
+ },
+ configurable: true
+ });
+
+ Array.prototype.reduceRight.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-9.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-9.js
index 215cab2ef..8cc465606 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-9.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-9.js
@@ -9,34 +9,34 @@ description: >
causes deleted index property not to be visited on an Array
---*/
-var accessed = false;
-var testResult = true;
-
-function callbackfn(preVal, curVal, idx, obj) {
- accessed = true;
- if (idx === 1) {
- testResult = false;
- }
-}
-
-var arr = [0];
-
-Object.defineProperty(arr, "1", {
- get: function() {
- return "6.99";
- },
- configurable: true
-});
-
-Object.defineProperty(arr, "2", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
-
-arr.reduceRight(callbackfn);
+ var accessed = false;
+ var testResult = true;
+
+ function callbackfn(preVal, curVal, idx, obj) {
+ accessed = true;
+ if (idx === 1) {
+ testResult = false;
+ }
+ }
+
+ var arr = [0];
+
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return "6.99";
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
+
+ arr.reduceRight(callbackfn);
assert(testResult, 'testResult !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-1.js
index 825a40814..fdce8cb0d 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-1.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-1.js
@@ -9,16 +9,15 @@ description: >
never been assigned values
---*/
-var callCnt = 0;
+ var callCnt = 0;
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ callCnt++;
+ return curVal;
+ }
-function callbackfn(prevVal, curVal, idx, obj)
-{
- callCnt++;
- return curVal;
-}
-
-var arr = new Array(10);
-arr[0] = arr[1] = undefined; //explicitly assigning a value
+ var arr = new Array(10);
+ arr[0] = arr[1] = undefined; //explicitly assigning a value
assert.sameValue(arr.reduceRight(callbackfn), undefined, 'arr.reduceRight(callbackfn)');
assert.sameValue(callCnt, 1, 'callCnt');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-1.js
index 351f363ff..da0debdf9 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-1.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-1.js
@@ -9,20 +9,14 @@ description: >
property on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 0) {
+ testResult = (curVal === 0);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 0) {
- testResult = (curVal === 0);
- }
-}
-
-var obj = {
- 0: 0,
- 1: 1,
- 2: 2,
- length: 2
-};
-Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
+ var obj = { 0: 0, 1: 1, 2: 2, length: 2 };
+ Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-10.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-10.js
index 2c3a2f1e7..d4cf4da37 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-10.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-10.js
@@ -9,23 +9,22 @@ description: >
accessor property on an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
+ var arr = [0, , 2];
-var arr = [0, , 2];
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- return 1;
- },
- configurable: true
-});
-
-arr.reduceRight(callbackfn, "initialValue");
+ arr.reduceRight(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-11.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-11.js
index 8d72dd51d..1cbecd5ed 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-11.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-11.js
@@ -10,33 +10,28 @@ description: >
Array-like object
---*/
-var testResult = false;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === "1");
- }
-}
-
-var proto = {
- 0: 0,
- 1: 11,
- 2: 2
-};
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-child.length = 3;
-
-Object.defineProperty(child, "1", {
- get: function() {
- return "1";
- },
- configurable: true
-});
-
-Array.prototype.reduceRight.call(child, callbackfn, "initialValue");
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === "1");
+ }
+ }
+
+ var proto = { 0: 0, 1: 11, 2: 2 };
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 3;
+
+ Object.defineProperty(child, "1", {
+ get: function () {
+ return "1";
+ },
+ configurable: true
+ });
+
+ Array.prototype.reduceRight.call(child, callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-12.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-12.js
index 61fb0309a..e7a9e708f 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-12.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-12.js
@@ -10,24 +10,23 @@ description: >
Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === "1");
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === "1");
- }
-}
+ Array.prototype[1] = 11;
+ var arr = [0, ,2];
-Array.prototype[1] = 11;
-var arr = [0, , 2];
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return "1";
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- return "1";
- },
- configurable: true
-});
-
-arr.reduceRight(callbackfn, "initialValue");
+ arr.reduceRight(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-13.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-13.js
index f66c4bf60..d9cbbc10b 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-13.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-13.js
@@ -10,39 +10,35 @@ description: >
an Array-like object
---*/
-var testResult = false;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === "1");
- }
-}
-
-var proto = {
- 0: 0,
- 2: 2
-};
-
-Object.defineProperty(proto, "1", {
- get: function() {
- return 11;
- },
- configurable: true
-});
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-child.length = 3;
-
-Object.defineProperty(child, "1", {
- get: function() {
- return "1";
- },
- configurable: true
-});
-
-Array.prototype.reduceRight.call(child, callbackfn, "initialValue");
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === "1");
+ }
+ }
+
+ var proto = { 0: 0, 2: 2};
+
+ Object.defineProperty(proto, "1", {
+ get: function () {
+ return 11;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 3;
+
+ Object.defineProperty(child, "1", {
+ get: function () {
+ return "1";
+ },
+ configurable: true
+ });
+
+ Array.prototype.reduceRight.call(child, callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-14.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-14.js
index 25f63b507..e0df7ceb0 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-14.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-14.js
@@ -10,29 +10,28 @@ description: >
an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === "1");
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === "1");
- }
-}
+ Object.defineProperty(Array.prototype, "1", {
+ get: function () {
+ return 11;
+ },
+ configurable: true
+ });
-Object.defineProperty(Array.prototype, "1", {
- get: function() {
- return 11;
- },
- configurable: true
-});
+ var arr = [0, ,2];
-var arr = [0, , 2];
-
-Object.defineProperty(arr, "1", {
- get: function() {
- return "1";
- },
- configurable: true
-});
-arr.reduceRight(callbackfn, "initialValue");
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return "1";
+ },
+ configurable: true
+ });
+ arr.reduceRight(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-15.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-15.js
index 270f2ed4b..f8684e9e8 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-15.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-15.js
@@ -9,32 +9,28 @@ description: >
accessor property on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
+ var proto = { 0: 0, 2: 2 };
-var proto = {
- 0: 0,
- 2: 2
-};
+ Object.defineProperty(proto, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
-Object.defineProperty(proto, "1", {
- get: function() {
- return 1;
- },
- configurable: true
-});
+ var Con = function () { };
+ Con.prototype = proto;
-var Con = function() {};
-Con.prototype = proto;
+ var child = new Con();
+ child.length = 3;
-var child = new Con();
-child.length = 3;
-
-Array.prototype.reduceRight.call(child, callbackfn, "initialValue");
+ Array.prototype.reduceRight.call(child, callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-16.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-16.js
index 78cdc1a28..0f70fe617 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-16.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-16.js
@@ -9,23 +9,22 @@ description: >
accessor property on an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
+ Object.defineProperty(Array.prototype, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
-Object.defineProperty(Array.prototype, "1", {
- get: function() {
- return 1;
- },
- configurable: true
-});
+ var arr = [0, , 2];
-var arr = [0, , 2];
-
-arr.reduceRight(callbackfn, "initialValue");
+ arr.reduceRight(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-17.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-17.js
index 7f9c3c073..04d28b556 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-17.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-17.js
@@ -9,25 +9,20 @@ description: >
accessor property without a get function on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (typeof curVal === "undefined");
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (typeof curVal === "undefined");
- }
-}
+ var obj = { 0: 0, 2: 2, length: 3 };
-var obj = {
- 0: 0,
- 2: 2,
- length: 3
-};
+ Object.defineProperty(obj, "1", {
+ set: function () { },
+ configurable: true
+ });
-Object.defineProperty(obj, "1", {
- set: function() {},
- configurable: true
-});
-
-Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
+ Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-18.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-18.js
index 21a4bf39d..ffd33eaac 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-18.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-18.js
@@ -9,21 +9,20 @@ description: >
accessor property without a get function on an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (typeof curVal === "undefined");
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (typeof curVal === "undefined");
- }
-}
+ var arr = [0, , 2];
-var arr = [0, , 2];
+ Object.defineProperty(arr, "1", {
+ set: function () { },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- set: function() {},
- configurable: true
-});
-
-arr.reduceRight(callbackfn, "initialValue");
+ arr.reduceRight(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-19.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-19.js
index 82ab638bd..ca309ae00 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-19.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-19.js
@@ -10,26 +10,21 @@ description: >
inherited accessor property on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (typeof curVal === "undefined");
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (typeof curVal === "undefined");
- }
-}
+ Object.prototype[1] = 1;
-Object.prototype[1] = 1;
+ var obj = { 0: 0, 2: 2, length: 3 };
+ Object.defineProperty(obj, "1", {
+ set: function () { },
+ configurable: true
+ });
-var obj = {
- 0: 0,
- 2: 2,
- length: 3
-};
-Object.defineProperty(obj, "1", {
- set: function() {},
- configurable: true
-});
-
-Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
+ Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-2.js
index c7168a194..f608df609 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-2.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-2.js
@@ -9,15 +9,14 @@ description: >
property on an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
-
-var arr = [0, 1, 2];
-arr.reduceRight(callbackfn, "initialValue");
+ var arr = [0, 1, 2];
+ arr.reduceRight(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-20.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-20.js
index 0f39cd442..266cafd1a 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-20.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-20.js
@@ -10,21 +10,20 @@ description: >
inherited accessor property on an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (typeof curVal === "undefined");
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (typeof curVal === "undefined");
- }
-}
+ Array.prototype[1] = 1;
+ var arr = [0, ,2];
+ Object.defineProperty(arr, "1", {
+ set: function () { },
+ configurable: true
+ });
-Array.prototype[1] = 1;
-var arr = [0, , 2];
-Object.defineProperty(arr, "1", {
- set: function() {},
- configurable: true
-});
-
-arr.reduceRight(callbackfn, "initialValue");
+ arr.reduceRight(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-21.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-21.js
index f5dda1c86..1e7b5fd1a 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-21.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-21.js
@@ -9,30 +9,26 @@ description: >
accessor property without a get function on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (typeof curVal === "undefined");
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (typeof curVal === "undefined");
- }
-}
+ var proto = { 0: 0, 2: 2 };
-var proto = {
- 0: 0,
- 2: 2
-};
+ Object.defineProperty(proto, "1", {
+ set: function () { },
+ configurable: true
+ });
-Object.defineProperty(proto, "1", {
- set: function() {},
- configurable: true
-});
+ var Con = function () { };
+ Con.prototype = proto;
-var Con = function() {};
-Con.prototype = proto;
+ var child = new Con();
+ child.length = 3;
-var child = new Con();
-child.length = 3;
-
-Array.prototype.reduceRight.call(child, callbackfn, "initialValue");
+ Array.prototype.reduceRight.call(child, callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-22.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-22.js
index 365b543a5..dedd4b643 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-22.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-22.js
@@ -9,21 +9,20 @@ description: >
accessor property without a get function on an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (typeof curVal === "undefined");
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (typeof curVal === "undefined");
- }
-}
+ Object.defineProperty(Array.prototype, "1", {
+ set: function () { },
+ configurable: true
+ });
-Object.defineProperty(Array.prototype, "1", {
- set: function() {},
- configurable: true
-});
+ var arr = [0, , 2];
-var arr = [0, , 2];
-
-arr.reduceRight(callbackfn, "initialValue");
+ arr.reduceRight(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-25.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-25.js
index 9c177f936..81d2d0e04 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-25.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-25.js
@@ -10,18 +10,17 @@ description: >
is less than number of parameters)
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
+ var func = function (a, b, c) {
+ Array.prototype.reduceRight.call(arguments, callbackfn, "initialValue");
+ };
-var func = function(a, b, c) {
- Array.prototype.reduceRight.call(arguments, callbackfn, "initialValue");
-};
-
-func(0, 1);
+ func(0, 1);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-26.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-26.js
index 79984ddfe..e2518afe3 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-26.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-26.js
@@ -10,18 +10,17 @@ description: >
equals number of parameters)
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 2) {
+ testResult = (curVal === 2);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 2) {
- testResult = (curVal === 2);
- }
-}
+ var func = function (a, b, c) {
+ Array.prototype.reduceRight.call(arguments, callbackfn, "initialValue");
+ };
-var func = function(a, b, c) {
- Array.prototype.reduceRight.call(arguments, callbackfn, "initialValue");
-};
-
-func(0, 1, 2);
+ func(0, 1, 2);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-27.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-27.js
index 080ad10a2..677bcd3da 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-27.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-27.js
@@ -10,18 +10,17 @@ description: >
is greater than number of parameters)
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 3) {
+ testResult = (curVal === 3);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 3) {
- testResult = (curVal === 3);
- }
-}
+ var func = function (a, b, c) {
+ Array.prototype.reduceRight.call(arguments, callbackfn, "initialValue");
+ };
-var func = function(a, b, c) {
- Array.prototype.reduceRight.call(arguments, callbackfn, "initialValue");
-};
-
-func(0, 1, 2, 3);
+ func(0, 1, 2, 3);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-28.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-28.js
index 388685e91..83976643c 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-28.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-28.js
@@ -9,15 +9,14 @@ description: >
implements its own property get method
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === "1");
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === "1");
- }
-}
-
-var str = new String("012");
-Array.prototype.reduceRight.call(str, callbackfn, "initialValue");
+ var str = new String("012");
+ Array.prototype.reduceRight.call(str, callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-29.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-29.js
index 2cc8148fd..b69e0332b 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-29.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-29.js
@@ -9,23 +9,22 @@ description: >
implements its own property get method
---*/
-var testResult = false;
-var initialValue = 0;
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
+ var obj = function (a, b, c) {
+ return a + b + c;
+ };
+ obj[0] = 0;
+ obj[1] = 1;
+ obj[2] = 2;
+ obj[3] = 3;
-var obj = function(a, b, c) {
- return a + b + c;
-};
-obj[0] = 0;
-obj[1] = 1;
-obj[2] = 2;
-obj[3] = 3;
-
-Array.prototype.reduceRight.call(obj, callbackfn, initialValue);
+ Array.prototype.reduceRight.call(obj, callbackfn, initialValue);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-3.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-3.js
index 98c28ad1e..50fa72704 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-3.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-3.js
@@ -10,28 +10,22 @@ description: >
Array-like object
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === "1");
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === "1");
- }
-}
+ var proto = { 0: 10, 1: 11, 2: 12, length: 2 };
+ var Con = function () { };
+ Con.prototype = proto;
-var proto = {
- 0: 10,
- 1: 11,
- 2: 12,
- length: 2
-};
-var Con = function() {};
-Con.prototype = proto;
+ var child = new Con();
+ child[1] = "1";
+ child[2] = "2";
+ child.length = 3;
-var child = new Con();
-child[1] = "1";
-child[2] = "2";
-child.length = 3;
-
-Array.prototype.reduceRight.call(child, callbackfn, "initialValue");
+ Array.prototype.reduceRight.call(child, callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-30.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-30.js
index 234bf191a..c3c66cd5f 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-30.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-30.js
@@ -9,36 +9,35 @@ description: >
previous iterations is observed on an Array
---*/
-var testResult = false;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
-
-var arr = [, , ];
-var preIterVisible = false;
-
-Object.defineProperty(arr, "2", {
- get: function() {
- preIterVisible = true;
- return 0;
- },
- configurable: true
-});
-
-Object.defineProperty(arr, "1", {
- get: function() {
- if (preIterVisible) {
- return 1;
- } else {
- return "11";
- }
- },
- configurable: true
-});
-
-arr.reduceRight(callbackfn, "initialValue");
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
+
+ var arr = [, ,];
+ var preIterVisible = false;
+
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ preIterVisible = true;
+ return 0;
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ if (preIterVisible) {
+ return 1;
+ } else {
+ return "11";
+ }
+ },
+ configurable: true
+ });
+
+ arr.reduceRight(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-31.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-31.js
index c560a641e..a25b15397 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-31.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-31.js
@@ -9,38 +9,35 @@ description: >
previous iterations is observed on an Array-like object
---*/
-var testResult = false;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
-
-var obj = {
- length: 3
-};
-var preIterVisible = false;
-
-Object.defineProperty(obj, "2", {
- get: function() {
- preIterVisible = true;
- return 0;
- },
- configurable: true
-});
-
-Object.defineProperty(obj, "1", {
- get: function() {
- if (preIterVisible) {
- return 1;
- } else {
- return "11";
- }
- },
- configurable: true
-});
-
-Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
+
+ var obj = { length: 3 };
+ var preIterVisible = false;
+
+ Object.defineProperty(obj, "2", {
+ get: function () {
+ preIterVisible = true;
+ return 0;
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ if (preIterVisible) {
+ return 1;
+ } else {
+ return "11";
+ }
+ },
+ configurable: true
+ });
+
+ Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-32.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-32.js
index 57da7683a..a0225a882 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-32.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-32.js
@@ -9,27 +9,22 @@ description: >
getter terminate iteration on an Array-like object
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx <= 1) {
+ accessed = true;
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx <= 1) {
- accessed = true;
- }
-}
-
-var obj = {
- 0: 0,
- 2: 2,
- length: 3
-};
-Object.defineProperty(obj, "1", {
- get: function() {
- throw new RangeError("unhandle exception happened in getter");
- },
- configurable: true
-});
+ var obj = { 0: 0, 2: 2, length: 3 };
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ throw new RangeError("unhandle exception happened in getter");
+ },
+ configurable: true
+ });
assert.throws(RangeError, function() {
- Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
+ Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
});
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-33.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-33.js
index 257325e49..643f4ee4a 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-33.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-33.js
@@ -9,25 +9,24 @@ description: >
getter terminate iteration on an Array
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx <= 1) {
+ accessed = true;
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx <= 1) {
- accessed = true;
- }
-}
+ var arr = [0, , 2];
-var arr = [0, , 2];
-
-Object.defineProperty(arr, "1", {
- get: function() {
- throw new Test262Error("unhandle exception happened in getter");
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ throw new Test262Error("unhandle exception happened in getter");
+ },
+ configurable: true
+ });
assert.throws(Test262Error, function() {
- arr.reduceRight(callbackfn, "initialValue");
+ arr.reduceRight(callbackfn, "initialValue");
});
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-4.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-4.js
index a5145b80d..a5226d8d8 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-4.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-4.js
@@ -9,15 +9,14 @@ description: >
property that overrides an inherited data property on an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
-
-Array.prototype[1] = "11";
-[0, 1, 2].reduceRight(callbackfn, "initialValue");
+ Array.prototype[1] = "11";
+ [0, 1, 2].reduceRight(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-5.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-5.js
index 6feb43a1b..fe417547f 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-5.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-5.js
@@ -10,34 +10,33 @@ description: >
Array-like object
---*/
-var testResult = false;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 0) {
- testResult = (curVal === "0");
- }
-}
-
-var proto = {};
-
-Object.defineProperty(proto, "0", {
- get: function() {
- return 10;
- },
- configurable: true
-});
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-child.length = 2;
-Object.defineProperty(child, "0", {
- value: "0",
- configurable: true
-});
-child[1] = "1";
-
-Array.prototype.reduceRight.call(child, callbackfn, "initialValue");
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 0) {
+ testResult = (curVal === "0");
+ }
+ }
+
+ var proto = {};
+
+ Object.defineProperty(proto, "0", {
+ get: function () {
+ return 10;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 2;
+ Object.defineProperty(child, "0", {
+ value: "0",
+ configurable: true
+ });
+ child[1] = "1";
+
+ Array.prototype.reduceRight.call(child, callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-6.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-6.js
index 5b47467c3..d3715f273 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-6.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-6.js
@@ -9,20 +9,19 @@ description: >
property that overrides an inherited accessor property on an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
-
-Object.defineProperty(Array.prototype, "1", {
- get: function() {
- return "11";
- },
- configurable: true
-});
-[0, 1, 2].reduceRight(callbackfn, "initialValue");
+ Object.defineProperty(Array.prototype, "1", {
+ get: function () {
+ return "11";
+ },
+ configurable: true
+ });
+ [0, 1, 2].reduceRight(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-7.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-7.js
index e5a8ebfc3..31f37fcee 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-7.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-7.js
@@ -9,25 +9,20 @@ description: >
data property on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
+ var proto = { 0: 0, 1: 1, 2: 2 };
+ var Con = function () { };
+ Con.prototype = proto;
-var proto = {
- 0: 0,
- 1: 1,
- 2: 2
-};
-var Con = function() {};
-Con.prototype = proto;
+ var child = new Con();
+ child.length = 3;
-var child = new Con();
-child.length = 3;
-
-Array.prototype.reduceRight.call(child, callbackfn, "initialValue");
+ Array.prototype.reduceRight.call(child, callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-8.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-8.js
index ad73acacb..754987649 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-8.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-8.js
@@ -9,17 +9,16 @@ description: >
data property on an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
-
-Array.prototype[0] = 0;
-Array.prototype[1] = 1;
-Array.prototype[2] = 2;
-[, , , ].reduceRight(callbackfn, "initialValue");
+ Array.prototype[0] = 0;
+ Array.prototype[1] = 1;
+ Array.prototype[2] = 2;
+ [, , , ].reduceRight(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-9.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-9.js
index d512dd5da..e26ebcc16 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-9.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-9.js
@@ -9,26 +9,21 @@ description: >
accessor property on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
+ var obj = { 0: 0, 2: 2, length: 3 };
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
-var obj = {
- 0: 0,
- 2: 2,
- length: 3
-};
-Object.defineProperty(obj, "1", {
- get: function() {
- return 1;
- },
- configurable: true
-});
-
-Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
+ Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-1.js
index 50b5043be..ef650ba62 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-1.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-1.js
@@ -9,14 +9,14 @@ description: >
parameters (initialvalue not passed)
---*/
-function callbackfn(prevVal, curVal, idx, obj)
-{
- if (idx + 1 < obj.length && obj[idx] === curVal && obj[idx + 1] === prevVal)
- return curVal;
- else
- return false;
-}
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ if(idx+1 < obj.length && obj[idx] === curVal && obj[idx+1] === prevVal)
+ return curVal;
+ else
+ return false;
+ }
-var arr = [0, 1, true, null, new Object(), "five"];
+ var arr = [0,1,true,null,new Object(),"five"];
assert.sameValue(arr.reduceRight(callbackfn), 0, 'arr.reduceRight(callbackfn)');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-10.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-10.js
index 1953c9a37..ef2c33485 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-10.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-10.js
@@ -9,12 +9,12 @@ description: >
parameter
---*/
-var called = 0;
+ var called = 0;
-function callbackfn(prevVal) {
- called++;
- return prevVal;
-}
+ function callbackfn(prevVal) {
+ called++;
+ return prevVal;
+ }
assert.sameValue([11, 12].reduceRight(callbackfn, 100), 100, '[11, 12].reduceRight(callbackfn, 100)');
assert.sameValue(called, 2, 'called');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-11.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-11.js
index d6e3cfd1d..50fe7d7aa 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-11.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-11.js
@@ -9,14 +9,14 @@ description: >
parameter
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(prevVal, curVal) {
- if (prevVal === 100) {
- testResult = true;
- }
- return curVal > 10;
-}
+ function callbackfn(prevVal, curVal) {
+ if (prevVal === 100) {
+ testResult = true;
+ }
+ return curVal > 10;
+ }
assert.sameValue([11].reduceRight(callbackfn, 100), true, '[11].reduceRight(callbackfn, 100)');
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-12.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-12.js
index 5d7a7b572..c29286b57 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-12.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-12.js
@@ -9,16 +9,16 @@ description: >
parameter
---*/
-var testResult = false;
-var arr = [11, 12, 13];
-var initVal = 6.99;
+ var testResult = false;
+ var arr = [11, 12, 13];
+ var initVal = 6.99;
-function callbackfn(prevVal, curVal, idx) {
- if (idx === 2) {
- testResult = (prevVal === initVal);
- }
- return curVal > 10 && arguments[3][idx] === curVal;
-}
+ function callbackfn(prevVal, curVal, idx) {
+ if (idx === 2) {
+ testResult = (prevVal === initVal);
+ }
+ return curVal > 10 && arguments[3][idx] === curVal;
+ }
assert.sameValue(arr.reduceRight(callbackfn, initVal), true, 'arr.reduceRight(callbackfn, initVal)');
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-13.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-13.js
index 6fc2965d5..39325da4e 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-13.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-13.js
@@ -9,16 +9,16 @@ description: >
parameter
---*/
-var arr = [11, 12, 13];
-var initVal = 6.99;
-var testResult = false;
+ var arr = [11, 12, 13];
+ var initVal = 6.99;
+ var testResult = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 2) {
- testResult = (prevVal === initVal);
- }
- return curVal > 10 && obj[idx] === curVal;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 2) {
+ testResult = (prevVal === initVal);
+ }
+ return curVal > 10 && obj[idx] === curVal;
+ }
assert.sameValue(arr.reduceRight(callbackfn, initVal), true, 'arr.reduceRight(callbackfn, initVal)');
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-14.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-14.js
index 07437dba5..200649494 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-14.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-14.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.22-9-c-ii-14
description: Array.prototype.reduceRight - callbackfn uses arguments
---*/
-function callbackfn() {
- return arguments[0] === 100 && arguments[3][arguments[2]] === arguments[1];
-}
+ function callbackfn() {
+ return arguments[0] === 100 && arguments[3][arguments[2]] === arguments[1];
+ }
assert.sameValue([11].reduceRight(callbackfn, 100), true, '[11].reduceRight(callbackfn, 100)');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-16.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-16.js
index 401a680ec..101a63d5f 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-16.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-16.js
@@ -9,20 +9,15 @@ description: >
called on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- if (prevVal === 8 || curVal === 8) {
- testResult = true;
- }
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (prevVal === 8 || curVal === 8) {
+ testResult = true;
+ }
+ }
-var obj = {
- 0: 11,
- 10: 12,
- non_index_property: 8,
- length: 20
-};
-Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
+ var obj = { 0: 11, 10: 12, non_index_property: 8, length: 20 };
+ Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
assert.sameValue(testResult, false, 'testResult');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-17.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-17.js
index b2823532e..0b8e5be99 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-17.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-17.js
@@ -9,19 +9,19 @@ description: >
iteration is the result of previous iteration on an Array
---*/
-var arr = [11, 12, 13];
-var testResult = true;
-var initVal = 6.99;
-var preResult = initVal;
+ var arr = [11, 12, 13];
+ var testResult = true;
+ var initVal = 6.99;
+ var preResult = initVal;
-function callbackfn(prevVal, curVal, idx, obj) {
- if (prevVal !== preResult) {
- testResult = false;
- }
- preResult = curVal;
- return curVal;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (prevVal !== preResult) {
+ testResult = false;
+ }
+ preResult = curVal;
+ return curVal;
+ }
-arr.reduceRight(callbackfn, initVal);
+ arr.reduceRight(callbackfn, initVal);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-18.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-18.js
index 28d86867b..7e7098d40 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-18.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-18.js
@@ -10,17 +10,17 @@ description: >
Array
---*/
-var arr = [11, 12];
-var testResult = false;
-var initVal = 6.99;
+ var arr = [11, 12];
+ var testResult = false;
+ var initVal = 6.99;
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === initVal);
- }
- return curVal;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === initVal);
+ }
+ return curVal;
+ }
-arr.reduceRight(callbackfn, initVal);
+ arr.reduceRight(callbackfn, initVal);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-19.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-19.js
index 991b82cf0..194a32917 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-19.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-19.js
@@ -10,15 +10,15 @@ description: >
undefined when 'initialValue' is not present on an Array
---*/
-var arr = [11, 12, 13];
-var testResult = false;
+ var arr = [11, 12, 13];
+ var testResult = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 13);
- }
- return curVal;
-}
-arr.reduceRight(callbackfn);
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 13);
+ }
+ return curVal;
+ }
+ arr.reduceRight(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-2.js
index 238b1e2a3..7324a06a8 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-2.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-2.js
@@ -9,17 +9,17 @@ description: >
parameters (initialvalue passed)
---*/
-var bParCorrect = false;
-var arr = [0, 1, true, null, new Object(), "five"];
-var initialValue = 5.5;
+ var bParCorrect = false;
+ var arr = [0, 1, true, null, new Object(), "five"];
+ var initialValue = 5.5;
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === obj.length - 1 && obj[idx] === curVal && prevVal === initialValue)
- return curVal;
- else if (idx + 1 < obj.length && obj[idx] === curVal && obj[idx + 1] === prevVal)
- return curVal;
- else
- return false;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === obj.length - 1 && obj[idx] === curVal && prevVal === initialValue)
+ return curVal;
+ else if (idx + 1 < obj.length && obj[idx] === curVal && obj[idx + 1] === prevVal)
+ return curVal;
+ else
+ return false;
+ }
assert.sameValue(arr.reduceRight(callbackfn, initialValue), 0, 'arr.reduceRight(callbackfn, initialValue)');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-20.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-20.js
index 09cf7e099..f4b5470c6 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-20.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-20.js
@@ -7,17 +7,13 @@ es5id: 15.4.4.22-9-c-ii-20
description: Array.prototype.reduceRight - undefined can be used as accumulator
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return typeof prevVal === "undefined";
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return typeof prevVal === "undefined";
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, undefined), true, 'Array.prototype.reduceRight.call(obj, callbackfn, undefined)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-21.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-21.js
index 83f18c38c..7f10e3b78 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-21.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-21.js
@@ -7,17 +7,13 @@ es5id: 15.4.4.22-9-c-ii-21
description: Array.prototype.reduceRight - null can be used as accumulator
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === null;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === null;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, null), true, 'Array.prototype.reduceRight.call(obj, callbackfn, null)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-22.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-22.js
index e130868f0..10b20d942 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-22.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-22.js
@@ -9,17 +9,13 @@ description: >
accumulator
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === false;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === false;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, false), true, 'Array.prototype.reduceRight.call(obj, callbackfn, false)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-23.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-23.js
index dc7dba028..57cb524bd 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-23.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-23.js
@@ -9,17 +9,13 @@ description: >
accumulator
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === 12;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === 12;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, 12), true, 'Array.prototype.reduceRight.call(obj, callbackfn, 12)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-24.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-24.js
index 768eb6a3d..2326939fd 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-24.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-24.js
@@ -9,17 +9,13 @@ description: >
accumulator
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === "hello_";
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === "hello_";
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, "hello_"), true, 'Array.prototype.reduceRight.call(obj, callbackfn, "hello_")');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-25.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-25.js
index 7d37c5f2a..4de1b221a 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-25.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-25.js
@@ -9,18 +9,14 @@ description: >
accumulator
---*/
-var accessed = false;
-var objFunction = function() {};
+ var accessed = false;
+ var objFunction = function () { };
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objFunction;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objFunction;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, objFunction), true, 'Array.prototype.reduceRight.call(obj, callbackfn, objFunction)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-26.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-26.js
index e95896266..485f17e10 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-26.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-26.js
@@ -9,18 +9,14 @@ description: >
accumulator
---*/
-var accessed = false;
-var objArray = [];
+ var accessed = false;
+ var objArray = [];
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objArray;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objArray;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, objArray), true, 'Array.prototype.reduceRight.call(obj, callbackfn, objArray)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-27.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-27.js
index b5f187df0..3414ccbc9 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-27.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-27.js
@@ -9,18 +9,14 @@ description: >
accumulator
---*/
-var accessed = false;
-var objString = new String();
+ var accessed = false;
+ var objString = new String();
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objString;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objString;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, objString), true, 'Array.prototype.reduceRight.call(obj, callbackfn, objString)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-28.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-28.js
index e8f4b8bc0..541ff7834 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-28.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-28.js
@@ -9,18 +9,14 @@ description: >
accumulator
---*/
-var accessed = false;
-var objBoolean = new Boolean();
+ var accessed = false;
+ var objBoolean = new Boolean();
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objBoolean;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objBoolean;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, objBoolean), true, 'Array.prototype.reduceRight.call(obj, callbackfn, objBoolean)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-29.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-29.js
index 7194c1789..852073958 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-29.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-29.js
@@ -9,18 +9,14 @@ description: >
accumulator
---*/
-var accessed = false;
-var objNumber = new Number();
+ var accessed = false;
+ var objNumber = new Number();
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objNumber;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objNumber;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, objNumber), true, 'Array.prototype.reduceRight.call(obj, callbackfn, objNumber)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-3.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-3.js
index 86a77aa36..7a53ea562 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-3.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-3.js
@@ -7,17 +7,16 @@ es5id: 15.4.4.22-9-c-ii-3
description: Array.prototype.reduceRight - callbackfn takes 4 arguments
---*/
-var bCalled = false;
+ var bCalled = false;
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ bCalled = true;
+ if(prevVal === true && arguments.length === 4)
+ return true;
+ else
+ return false;
+ }
+ var arr = [0,1,2,3,4,5,6,7,8,9];
-function callbackfn(prevVal, curVal, idx, obj)
-{
- bCalled = true;
- if (prevVal === true && arguments.length === 4)
- return true;
- else
- return false;
-}
-var arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
-
-assert.sameValue(arr.reduceRight(callbackfn, true), true, 'arr.reduceRight(callbackfn,true)');
+assert.sameValue(arr.reduceRight(callbackfn,true), true, 'arr.reduceRight(callbackfn,true)');
assert.sameValue(bCalled, true, 'bCalled');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-30.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-30.js
index 0df779018..c15160423 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-30.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-30.js
@@ -9,17 +9,13 @@ description: >
accumulator
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === Math;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === Math;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, Math), true, 'Array.prototype.reduceRight.call(obj, callbackfn, Math)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-31.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-31.js
index 092e60ecf..c58777b28 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-31.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-31.js
@@ -9,18 +9,14 @@ description: >
accumulator
---*/
-var accessed = false;
-var objDate = new Date();
+ var accessed = false;
+ var objDate = new Date();
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objDate;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objDate;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, objDate), true, 'Array.prototype.reduceRight.call(obj, callbackfn, objDate)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-32.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-32.js
index 921bc654d..08e8e4232 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-32.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-32.js
@@ -9,18 +9,14 @@ description: >
accumulator
---*/
-var accessed = false;
-var objRegExp = new RegExp();
+ var accessed = false;
+ var objRegExp = new RegExp();
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objRegExp;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objRegExp;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, objRegExp), true, 'Array.prototype.reduceRight.call(obj, callbackfn, objRegExp)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-33.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-33.js
index 37a2bd4a6..97419e156 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-33.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-33.js
@@ -7,17 +7,13 @@ es5id: 15.4.4.22-9-c-ii-33
description: Array.prototype.reduceRight - the JSON can be used as accumulator
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === JSON;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === JSON;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, JSON), true, 'Array.prototype.reduceRight.call(obj, callbackfn, JSON)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-34.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-34.js
index 72fcc0cc5..f384ce910 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-34.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-34.js
@@ -9,18 +9,14 @@ description: >
accumulator
---*/
-var accessed = false;
-var objError = new RangeError();
+ var accessed = false;
+ var objError = new RangeError();
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objError;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objError;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, objError), true, 'Array.prototype.reduceRight.call(obj, callbackfn, objError)');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-35.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-35.js
index db05c37e0..11d7428b7 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-35.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-35.js
@@ -9,22 +9,19 @@ description: >
accumulator
---*/
-var accessed = false;
-var arg;
+ var accessed = false;
+ var arg;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === arg;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === arg;
+ }
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
-(function fun() {
- arg = arguments;
-}(10, 11, 12, 13));
+ (function fun() {
+ arg = arguments;
+ }(10, 11, 12, 13));
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, arg), true, 'Array.prototype.reduceRight.call(obj, callbackfn, arg)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-37.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-37.js
index 23314a32b..e8b37ab73 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-37.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-37.js
@@ -10,17 +10,13 @@ description: >
---*/
var global = this;
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === global;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === global;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, this), true, 'Array.prototype.reduceRight.call(obj, callbackfn, this)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-4-s.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-4-s.js
index 35efbafc9..599387257 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-4-s.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-4-s.js
@@ -10,14 +10,13 @@ description: >
flags: [noStrict]
---*/
-var innerThisCorrect = false;
-
-function callbackfn(prevVal, curVal, idx, obj)
-{
- "use strict";
- innerThisCorrect = this === undefined;
- return true;
-}
-[0].reduceRight(callbackfn, true);
+ var innerThisCorrect = false;
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ "use strict";
+ innerThisCorrect = this===undefined;
+ return true;
+ }
+ [0].reduceRight(callbackfn,true);
assert(innerThisCorrect, 'innerThisCorrect !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-4.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-4.js
index 7dd1ce5ed..2fc5083b7 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-4.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-4.js
@@ -9,20 +9,20 @@ description: >
numeric order
---*/
-var arr = [0, 1, 2, 3, 4, 5];
-var lastIdx = arr.length - 1;
-var accessed = false;
-var result = true;
+ var arr = [0, 1, 2, 3, 4, 5];
+ var lastIdx = arr.length - 1;
+ var accessed = false;
+ var result = true;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- if (lastIdx !== idx) {
- result = false;
- } else {
- lastIdx--;
- }
-}
-arr.reduceRight(callbackfn, 1);
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ if (lastIdx !== idx) {
+ result = false;
+ } else {
+ lastIdx--;
+ }
+ }
+ arr.reduceRight(callbackfn, 1);
assert(result, 'result !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-5.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-5.js
index ccb63b811..8d3811a03 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-5.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-5.js
@@ -9,27 +9,27 @@ description: >
iteration and not prior to starting the loop on an Array
---*/
-var arr = [11, 12, 13, 14];
-var kIndex = [];
-var result = true;
-var called = 0;
+ var arr = [11, 12, 13, 14];
+ var kIndex = [];
+ var result = true;
+ var called = 0;
-//By below way, we could verify that k would be setted as 0, 1, ..., length - 1 in order, and each value will be setted one time.
-function callbackfn(preVal, curVal, idx, o) {
- //Each position should be visited one time, which means k is accessed one time during iterations.
- called++;
- if (typeof kIndex[idx] === "undefined") {
- //when current position is visited, its next index should has been visited.
- if (idx !== arr.length - 1 && typeof kIndex[idx + 1] === "undefined") {
- result = false;
- }
- kIndex[idx] = 1;
- } else {
- result = false;
- }
-}
+ //By below way, we could verify that k would be setted as 0, 1, ..., length - 1 in order, and each value will be setted one time.
+ function callbackfn(preVal, curVal, idx, o) {
+ //Each position should be visited one time, which means k is accessed one time during iterations.
+ called++;
+ if (typeof kIndex[idx] === "undefined") {
+ //when current position is visited, its next index should has been visited.
+ if (idx !== arr.length - 1 && typeof kIndex[idx + 1] === "undefined") {
+ result = false;
+ }
+ kIndex[idx] = 1;
+ } else {
+ result = false;
+ }
+ }
-arr.reduceRight(callbackfn, 1);
+ arr.reduceRight(callbackfn, 1);
assert(result, 'result !== true');
assert.sameValue(called, 4, 'called');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-7.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-7.js
index f6f26025d..2c4f53601 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-7.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-7.js
@@ -9,26 +9,21 @@ description: >
callbackfn terminate iteration
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx < 10) {
- accessed = true;
- }
- if (idx === 10) {
- throw new Test262Error("Exception occurred in callbackfn");
- }
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx < 10) {
+ accessed = true;
+ }
+ if (idx === 10) {
+ throw new Test262Error("Exception occurred in callbackfn");
+ }
+ }
-var obj = {
- 0: 11,
- 4: 10,
- 10: 8,
- length: 20
-};
+ var obj = { 0: 11, 4: 10, 10: 8, length: 20 };
assert.throws(Test262Error, function() {
- Array.prototype.reduceRight.call(obj, callbackfn, 1);
+ Array.prototype.reduceRight.call(obj, callbackfn, 1);
});
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-8.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-8.js
index 439445c5b..3625e8a4d 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-8.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-8.js
@@ -9,20 +9,15 @@ description: >
previous iterations is observed
---*/
-var accessed = false;
-var obj = {
- 0: 11,
- 1: 12,
- length: 2
-};
-
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- if (idx === 1) {
- obj[idx - 1] = 8;
- }
- return curVal > 10;
-}
+ var accessed = false;
+ var obj = { 0: 11, 1: 12, length: 2 };
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ if (idx === 1) {
+ obj[idx - 1] = 8;
+ }
+ return curVal > 10;
+ }
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, 1), false, 'Array.prototype.reduceRight.call(obj, callbackfn, 1)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-9.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-9.js
index c1dfba328..170d9d328 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-9.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-9.js
@@ -9,12 +9,12 @@ description: >
parameter
---*/
-var called = 0;
+ var called = 0;
-function callbackfn() {
- called++;
- return true;
-}
+ function callbackfn() {
+ called++;
+ return true;
+ }
assert.sameValue([11, 12].reduceRight(callbackfn, 11), true, '[11, 12].reduceRight(callbackfn, 11)');
assert.sameValue(called, 2, 'called');
diff --git a/test/built-ins/Array/prototype/reverse/S15.4.4.8_A1_T1.js b/test/built-ins/Array/prototype/reverse/S15.4.4.8_A1_T1.js
index fd092bbb9..7ca4f7f6e 100644
--- a/test/built-ins/Array/prototype/reverse/S15.4.4.8_A1_T1.js
+++ b/test/built-ins/Array/prototype/reverse/S15.4.4.8_A1_T1.js
@@ -26,7 +26,7 @@ if (reverse !== x) {
}
//CHECK#3
-x = new Array(1, 2);
+x = new Array(1,2);
var reverse = x.reverse();
if (reverse !== x) {
$ERROR('#3: x = new Array(1,2); x.reverse() === x. Actual: ' + (reverse));
diff --git a/test/built-ins/Array/prototype/reverse/S15.4.4.8_A1_T2.js b/test/built-ins/Array/prototype/reverse/S15.4.4.8_A1_T2.js
index a488885d4..62f93f6e5 100644
--- a/test/built-ins/Array/prototype/reverse/S15.4.4.8_A1_T2.js
+++ b/test/built-ins/Array/prototype/reverse/S15.4.4.8_A1_T2.js
@@ -26,52 +26,52 @@ if (reverse !== x) {
//CHECK#2
if (x[0] !== "-1") {
- $ERROR('#2: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[0] === "-1". Actual: ' + (x[0]));
+ $ERROR('#2: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[0] === "-1". Actual: ' + (x[0]));
}
//CHECK#3
if (x[1] !== "NaN") {
- $ERROR('#3: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[1] === "NaN". Actual: ' + (x[1]));
+ $ERROR('#3: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[1] === "NaN". Actual: ' + (x[1]));
}
//CHECK#4
if (x[2] !== undefined) {
- $ERROR('#4: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[2] === undefined. Actual: ' + (x[2]));
+ $ERROR('#4: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[2] === undefined. Actual: ' + (x[2]));
}
//CHECK#5
if (x[3] !== undefined) {
- $ERROR('#5: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[3] === undefined. Actual: ' + (x[3]));
+ $ERROR('#5: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[3] === undefined. Actual: ' + (x[3]));
}
//CHECK#6
if (x[4] !== undefined) {
- $ERROR('#6: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[4] === undefined. Actual: ' + (x[4]));
+ $ERROR('#6: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[4] === undefined. Actual: ' + (x[4]));
}
//CHECK#7
if (x[5] !== undefined) {
- $ERROR('#7: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[5] === undefined. Actual: ' + (x[5]));
+ $ERROR('#7: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[5] === undefined. Actual: ' + (x[5]));
}
//CHECK#8
if (x[6] !== undefined) {
- $ERROR('#8: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[6] === undefined. Actual: ' + (x[6]));
+ $ERROR('#8: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[6] === undefined. Actual: ' + (x[6]));
}
//CHECK#9
if (x[7] !== Infinity) {
- $ERROR('#9: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[7] === Infinity. Actual: ' + (x[7]));
+ $ERROR('#9: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[7] === Infinity. Actual: ' + (x[7]));
}
//CHECK#10
if (x[8] !== undefined) {
- $ERROR('#10: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[8] === undefined. Actual: ' + (x[8]));
+ $ERROR('#10: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[8] === undefined. Actual: ' + (x[8]));
}
//CHECK#11
if (x[9] !== true) {
- $ERROR('#11: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[9] === true. Actual: ' + (x[9]));
+ $ERROR('#11: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[9] === true. Actual: ' + (x[9]));
}
x.length = 9;
@@ -83,45 +83,45 @@ if (reverse !== x) {
//CHECK#12
if (x[0] !== undefined) {
- $ERROR('#12: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x.length = 9; x.reverse(); x[0] === undefined. Actual: ' + (x[0]));
+ $ERROR('#12: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x.length = 9; x.reverse(); x[0] === undefined. Actual: ' + (x[0]));
}
//CHECK#13
if (x[1] !== Infinity) {
- $ERROR('#13: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x.length = 9; x.reverse(); x[1] === Infinity. Actual: ' + (x[1]));
+ $ERROR('#13: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x.length = 9; x.reverse(); x[1] === Infinity. Actual: ' + (x[1]));
}
//CHECK#14
if (x[2] !== undefined) {
- $ERROR('#14: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x.length = 9; x.reverse(); x[2] === undefined. Actual: ' + (x[2]));
+ $ERROR('#14: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x.length = 9; x.reverse(); x[2] === undefined. Actual: ' + (x[2]));
}
//CHECK#15
if (x[3] !== undefined) {
- $ERROR('#15: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x.length = 9; x.reverse(); x[3] === undefined. Actual: ' + (x[3]));
+ $ERROR('#15: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x.length = 9; x.reverse(); x[3] === undefined. Actual: ' + (x[3]));
}
//CHECK#16
if (x[4] !== undefined) {
- $ERROR('#16: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x.length = 9; x.reverse(); x[4] === undefined. Actual: ' + (x[4]));
+ $ERROR('#16: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x.length = 9; x.reverse(); x[4] === undefined. Actual: ' + (x[4]));
}
//CHECK#17
if (x[5] !== undefined) {
- $ERROR('#17: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x.length = 9; x.reverse(); x[5] === undefined. Actual: ' + (x[5]));
+ $ERROR('#17: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x.length = 9; x.reverse(); x[5] === undefined. Actual: ' + (x[5]));
}
//CHECK#18
if (x[6] !== undefined) {
- $ERROR('#18: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x.length = 9; x.reverse(); x[6] === undefined. Actual: ' + (x[6]));
+ $ERROR('#18: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x.length = 9; x.reverse(); x[6] === undefined. Actual: ' + (x[6]));
}
//CHECK#19
if (x[7] !== "NaN") {
- $ERROR('#19: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x.length = 9; x.reverse(); x[7] === "NaN". Actual: ' + (x[7]));
+ $ERROR('#19: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x.length = 9; x.reverse(); x[7] === "NaN". Actual: ' + (x[7]));
}
//CHECK#20
if (x[8] !== "-1") {
- $ERROR('#20: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x.length = 9; x.reverse(); x[8] === "-1". Actual: ' + (x[8]));
+ $ERROR('#20: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x.length = 9; x.reverse(); x[8] === "-1". Actual: ' + (x[8]));
}
diff --git a/test/built-ins/Array/prototype/reverse/S15.4.4.8_A2_T1.js b/test/built-ins/Array/prototype/reverse/S15.4.4.8_A2_T1.js
index 384047599..ec750f626 100644
--- a/test/built-ins/Array/prototype/reverse/S15.4.4.8_A2_T1.js
+++ b/test/built-ins/Array/prototype/reverse/S15.4.4.8_A2_T1.js
@@ -31,52 +31,52 @@ if (reverse !== obj) {
//CHECK#2
if (obj[0] !== "-1") {
- $ERROR('#2: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[0] === "-1". Actual: ' + (obj[0]));
+ $ERROR('#2: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[0] === "-1". Actual: ' + (obj[0]));
}
//CHECK#3
if (obj[1] !== "NaN") {
- $ERROR('#3: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[1] === "NaN". Actual: ' + (obj[1]));
+ $ERROR('#3: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[1] === "NaN". Actual: ' + (obj[1]));
}
//CHECK#4
if (obj[2] !== undefined) {
- $ERROR('#4: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[2] === undefined. Actual: ' + (obj[2]));
+ $ERROR('#4: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[2] === undefined. Actual: ' + (obj[2]));
}
//CHECK#5
if (obj[3] !== undefined) {
- $ERROR('#5: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[3] === undefined. Actual: ' + (obj[3]));
+ $ERROR('#5: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[3] === undefined. Actual: ' + (obj[3]));
}
//CHECK#6
if (obj[4] !== undefined) {
- $ERROR('#6: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[4] === undefined. Actual: ' + (obj[4]));
+ $ERROR('#6: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[4] === undefined. Actual: ' + (obj[4]));
}
//CHECK#7
if (obj[5] !== undefined) {
- $ERROR('#7: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[5] === undefined. Actual: ' + (obj[5]));
+ $ERROR('#7: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[5] === undefined. Actual: ' + (obj[5]));
}
//CHECK#8
if (obj[6] !== undefined) {
- $ERROR('#8: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[6] === undefined. Actual: ' + (obj[6]));
+ $ERROR('#8: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[6] === undefined. Actual: ' + (obj[6]));
}
//CHECK#9
if (obj[7] !== Infinity) {
- $ERROR('#9: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[7] === Infinity. Actual: ' + (obj[7]));
+ $ERROR('#9: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[7] === Infinity. Actual: ' + (obj[7]));
}
//CHECK#10
if (obj[8] !== undefined) {
- $ERROR('#10: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[8] === undefined. Actual: ' + (obj[8]));
+ $ERROR('#10: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[8] === undefined. Actual: ' + (obj[8]));
}
//CHECK#11
if (obj[9] !== true) {
- $ERROR('#11: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[9] === true. Actual: ' + (obj[9]));
+ $ERROR('#11: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[9] === true. Actual: ' + (obj[9]));
}
obj.length = 9;
@@ -88,45 +88,45 @@ if (reverse !== obj) {
//CHECK#12
if (obj[0] !== undefined) {
- $ERROR('#12: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = 9; obj.reverse(); obj[0] === undefined. Actual: ' + (obj[0]));
+ $ERROR('#12: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = 9; obj.reverse(); obj[0] === undefined. Actual: ' + (obj[0]));
}
//CHECK#13
if (obj[1] !== Infinity) {
- $ERROR('#13: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = 9; obj.reverse(); obj[1] === Infinity. Actual: ' + (obj[1]));
+ $ERROR('#13: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = 9; obj.reverse(); obj[1] === Infinity. Actual: ' + (obj[1]));
}
//CHECK#14
if (obj[2] !== undefined) {
- $ERROR('#14: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = 9; obj.reverse(); obj[2] === undefined. Actual: ' + (obj[2]));
+ $ERROR('#14: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = 9; obj.reverse(); obj[2] === undefined. Actual: ' + (obj[2]));
}
//CHECK#15
if (obj[3] !== undefined) {
- $ERROR('#15: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = 9; obj.reverse(); obj[3] === undefined. Actual: ' + (obj[3]));
+ $ERROR('#15: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = 9; obj.reverse(); obj[3] === undefined. Actual: ' + (obj[3]));
}
//CHECK#16
if (obj[4] !== undefined) {
- $ERROR('#16: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = 9; obj.reverse(); obj[4] === undefined. Actual: ' + (obj[4]));
+ $ERROR('#16: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = 9; obj.reverse(); obj[4] === undefined. Actual: ' + (obj[4]));
}
//CHECK#17
if (obj[5] !== undefined) {
- $ERROR('#17: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = 9; obj.reverse(); obj[5] === undefined. Actual: ' + (obj[5]));
+ $ERROR('#17: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = 9; obj.reverse(); obj[5] === undefined. Actual: ' + (obj[5]));
}
//CHECK#18
if (obj[6] !== undefined) {
- $ERROR('#18: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = 9; obj.reverse(); obj[6] === undefined. Actual: ' + (obj[6]));
+ $ERROR('#18: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = 9; obj.reverse(); obj[6] === undefined. Actual: ' + (obj[6]));
}
//CHECK#19
if (obj[7] !== "NaN") {
- $ERROR('#19: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = 9; obj.reverse(); obj[7] === "NaN". Actual: ' + (obj[7]));
+ $ERROR('#19: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = 9; obj.reverse(); obj[7] === "NaN". Actual: ' + (obj[7]));
}
//CHECK#20
if (obj[8] !== "-1") {
- $ERROR('#20: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = 9; obj.reverse(); obj[8] === "-1". Actual: ' + (obj[8]));
+ $ERROR('#20: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = 9; obj.reverse(); obj[8] === "-1". Actual: ' + (obj[8]));
}
diff --git a/test/built-ins/Array/prototype/reverse/S15.4.4.8_A2_T2.js b/test/built-ins/Array/prototype/reverse/S15.4.4.8_A2_T2.js
index 77693f71c..2d521f112 100644
--- a/test/built-ins/Array/prototype/reverse/S15.4.4.8_A2_T2.js
+++ b/test/built-ins/Array/prototype/reverse/S15.4.4.8_A2_T2.js
@@ -31,52 +31,52 @@ if (reverse !== obj) {
//CHECK#2
if (obj[0] !== "-1") {
- $ERROR('#2: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[0] === "-1". Actual: ' + (obj[0]));
+ $ERROR('#2: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[0] === "-1". Actual: ' + (obj[0]));
}
//CHECK#3
if (obj[1] !== "NaN") {
- $ERROR('#3: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[1] === "NaN". Actual: ' + (obj[1]));
+ $ERROR('#3: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[1] === "NaN". Actual: ' + (obj[1]));
}
//CHECK#4
if (obj[2] !== undefined) {
- $ERROR('#4: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[2] === undefined. Actual: ' + (obj[2]));
+ $ERROR('#4: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[2] === undefined. Actual: ' + (obj[2]));
}
//CHECK#5
if (obj[3] !== undefined) {
- $ERROR('#5: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[3] === undefined. Actual: ' + (obj[3]));
+ $ERROR('#5: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[3] === undefined. Actual: ' + (obj[3]));
}
//CHECK#6
if (obj[4] !== undefined) {
- $ERROR('#6: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[4] === undefined. Actual: ' + (obj[4]));
+ $ERROR('#6: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[4] === undefined. Actual: ' + (obj[4]));
}
//CHECK#7
if (obj[5] !== undefined) {
- $ERROR('#7: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[5] === undefined. Actual: ' + (obj[5]));
+ $ERROR('#7: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[5] === undefined. Actual: ' + (obj[5]));
}
//CHECK#8
if (obj[6] !== undefined) {
- $ERROR('#8: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[6] === undefined. Actual: ' + (obj[6]));
+ $ERROR('#8: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[6] === undefined. Actual: ' + (obj[6]));
}
//CHECK#9
if (obj[7] !== Infinity) {
- $ERROR('#9: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[7] === Infinity. Actual: ' + (obj[7]));
+ $ERROR('#9: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[7] === Infinity. Actual: ' + (obj[7]));
}
//CHECK#10
if (obj[8] !== undefined) {
- $ERROR('#10: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[8] === undefined. Actual: ' + (obj[8]));
+ $ERROR('#10: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[8] === undefined. Actual: ' + (obj[8]));
}
//CHECK#11
if (obj[9] !== true) {
- $ERROR('#11: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[9] === true. Actual: ' + (obj[9]));
+ $ERROR('#11: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[9] === true. Actual: ' + (obj[9]));
}
obj.length = new Number(9.5);
@@ -88,45 +88,45 @@ if (reverse !== obj) {
//CHECK#12
if (obj[0] !== undefined) {
- $ERROR('#12: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new Number(9.5); obj.reverse(); obj[0] === undefined. Actual: ' + (obj[0]));
+ $ERROR('#12: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new Number(9.5); obj.reverse(); obj[0] === undefined. Actual: ' + (obj[0]));
}
//CHECK#13
if (obj[1] !== Infinity) {
- $ERROR('#13: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new Number(9.5); obj.reverse(); obj[1] === Infinity. Actual: ' + (obj[1]));
+ $ERROR('#13: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new Number(9.5); obj.reverse(); obj[1] === Infinity. Actual: ' + (obj[1]));
}
//CHECK#14
if (obj[2] !== undefined) {
- $ERROR('#14: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new Number(9.5); obj.reverse(); obj[2] === undefined. Actual: ' + (obj[2]));
+ $ERROR('#14: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new Number(9.5); obj.reverse(); obj[2] === undefined. Actual: ' + (obj[2]));
}
//CHECK#15
if (obj[3] !== undefined) {
- $ERROR('#15: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new Number(9.5); obj.reverse(); obj[3] === undefined. Actual: ' + (obj[3]));
+ $ERROR('#15: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new Number(9.5); obj.reverse(); obj[3] === undefined. Actual: ' + (obj[3]));
}
//CHECK#16
if (obj[4] !== undefined) {
- $ERROR('#16: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new Number(9.5); obj.reverse(); obj[4] === undefined. Actual: ' + (obj[4]));
+ $ERROR('#16: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new Number(9.5); obj.reverse(); obj[4] === undefined. Actual: ' + (obj[4]));
}
//CHECK#17
if (obj[5] !== undefined) {
- $ERROR('#17: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new Number(9.5); obj.reverse(); obj[5] === undefined. Actual: ' + (obj[5]));
+ $ERROR('#17: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new Number(9.5); obj.reverse(); obj[5] === undefined. Actual: ' + (obj[5]));
}
//CHECK#18
if (obj[6] !== undefined) {
- $ERROR('#18: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new Number(9.5); obj.reverse(); obj[6] === undefined. Actual: ' + (obj[6]));
+ $ERROR('#18: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new Number(9.5); obj.reverse(); obj[6] === undefined. Actual: ' + (obj[6]));
}
//CHECK#19
if (obj[7] !== "NaN") {
- $ERROR('#19: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new Number(9.5); obj.reverse(); obj[7] === "NaN". Actual: ' + (obj[7]));
+ $ERROR('#19: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new Number(9.5); obj.reverse(); obj[7] === "NaN". Actual: ' + (obj[7]));
}
//CHECK#20
if (obj[8] !== "-1") {
- $ERROR('#20: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new Number(9.5); obj.reverse(); obj[8] === "-1". Actual: ' + (obj[8]));
+ $ERROR('#20: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new Number(9.5); obj.reverse(); obj[8] === "-1". Actual: ' + (obj[8]));
}
diff --git a/test/built-ins/Array/prototype/reverse/S15.4.4.8_A2_T3.js b/test/built-ins/Array/prototype/reverse/S15.4.4.8_A2_T3.js
index 2fd9a2d2a..1c41625f8 100644
--- a/test/built-ins/Array/prototype/reverse/S15.4.4.8_A2_T3.js
+++ b/test/built-ins/Array/prototype/reverse/S15.4.4.8_A2_T3.js
@@ -31,52 +31,52 @@ if (reverse !== obj) {
//CHECK#2
if (obj[0] !== "-1") {
- $ERROR('#2: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[0] === "-1". Actual: ' + (obj[0]));
+ $ERROR('#2: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[0] === "-1". Actual: ' + (obj[0]));
}
//CHECK#3
if (obj[1] !== "NaN") {
- $ERROR('#3: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[1] === "NaN". Actual: ' + (obj[1]));
+ $ERROR('#3: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[1] === "NaN". Actual: ' + (obj[1]));
}
//CHECK#4
if (obj[2] !== undefined) {
- $ERROR('#4: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[2] === undefined. Actual: ' + (obj[2]));
+ $ERROR('#4: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[2] === undefined. Actual: ' + (obj[2]));
}
//CHECK#5
if (obj[3] !== undefined) {
- $ERROR('#5: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[3] === undefined. Actual: ' + (obj[3]));
+ $ERROR('#5: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[3] === undefined. Actual: ' + (obj[3]));
}
//CHECK#6
if (obj[4] !== undefined) {
- $ERROR('#6: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[4] === undefined. Actual: ' + (obj[4]));
+ $ERROR('#6: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[4] === undefined. Actual: ' + (obj[4]));
}
//CHECK#7
if (obj[5] !== undefined) {
- $ERROR('#7: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[5] === undefined. Actual: ' + (obj[5]));
+ $ERROR('#7: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[5] === undefined. Actual: ' + (obj[5]));
}
//CHECK#8
if (obj[6] !== undefined) {
- $ERROR('#8: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[6] === undefined. Actual: ' + (obj[6]));
+ $ERROR('#8: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[6] === undefined. Actual: ' + (obj[6]));
}
//CHECK#9
if (obj[7] !== Infinity) {
- $ERROR('#9: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[7] === Infinity. Actual: ' + (obj[7]));
+ $ERROR('#9: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[7] === Infinity. Actual: ' + (obj[7]));
}
//CHECK#10
if (obj[8] !== undefined) {
- $ERROR('#10: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[8] === undefined. Actual: ' + (obj[8]));
+ $ERROR('#10: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[8] === undefined. Actual: ' + (obj[8]));
}
//CHECK#11
if (obj[9] !== true) {
- $ERROR('#11: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[9] === true. Actual: ' + (obj[9]));
+ $ERROR('#11: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[9] === true. Actual: ' + (obj[9]));
}
obj.length = new String("9");
@@ -88,45 +88,45 @@ if (reverse !== obj) {
//CHECK#12
if (obj[0] !== undefined) {
- $ERROR('#12: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new String("9"); obj.reverse(); obj[0] === undefined. Actual: ' + (obj[0]));
+ $ERROR('#12: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new String("9"); obj.reverse(); obj[0] === undefined. Actual: ' + (obj[0]));
}
//CHECK#13
if (obj[1] !== Infinity) {
- $ERROR('#13: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new String("9"); obj.reverse(); obj[1] === Infinity. Actual: ' + (obj[1]));
+ $ERROR('#13: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new String("9"); obj.reverse(); obj[1] === Infinity. Actual: ' + (obj[1]));
}
//CHECK#14
if (obj[2] !== undefined) {
- $ERROR('#14: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new String("9"); obj.reverse(); obj[2] === undefined. Actual: ' + (obj[2]));
+ $ERROR('#14: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new String("9"); obj.reverse(); obj[2] === undefined. Actual: ' + (obj[2]));
}
//CHECK#15
if (obj[3] !== undefined) {
- $ERROR('#15: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new String("9"); obj.reverse(); obj[3] === undefined. Actual: ' + (obj[3]));
+ $ERROR('#15: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new String("9"); obj.reverse(); obj[3] === undefined. Actual: ' + (obj[3]));
}
//CHECK#16
if (obj[4] !== undefined) {
- $ERROR('#16: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new String("9"); obj.reverse(); obj[4] === undefined. Actual: ' + (obj[4]));
+ $ERROR('#16: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new String("9"); obj.reverse(); obj[4] === undefined. Actual: ' + (obj[4]));
}
//CHECK#17
if (obj[5] !== undefined) {
- $ERROR('#17: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new String("9"); obj.reverse(); obj[5] === undefined. Actual: ' + (obj[5]));
+ $ERROR('#17: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new String("9"); obj.reverse(); obj[5] === undefined. Actual: ' + (obj[5]));
}
//CHECK#18
if (obj[6] !== undefined) {
- $ERROR('#18: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new String("9"); obj.reverse(); obj[6] === undefined. Actual: ' + (obj[6]));
+ $ERROR('#18: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new String("9"); obj.reverse(); obj[6] === undefined. Actual: ' + (obj[6]));
}
//CHECK#19
if (obj[7] !== "NaN") {
- $ERROR('#19: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new String("9"); obj.reverse(); obj[7] === "NaN". Actual: ' + (obj[7]));
+ $ERROR('#19: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new String("9"); obj.reverse(); obj[7] === "NaN". Actual: ' + (obj[7]));
}
//CHECK#20
if (obj[8] !== "-1") {
- $ERROR('#20: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new String("9"); obj.reverse(); obj[8] === "-1". Actual: ' + (obj[8]));
+ $ERROR('#20: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new String("9"); obj.reverse(); obj[8] === "-1". Actual: ' + (obj[8]));
}
diff --git a/test/built-ins/Array/prototype/reverse/S15.4.4.8_A4_T1.js b/test/built-ins/Array/prototype/reverse/S15.4.4.8_A4_T1.js
index 44fefbf42..82fa71a07 100644
--- a/test/built-ins/Array/prototype/reverse/S15.4.4.8_A4_T1.js
+++ b/test/built-ins/Array/prototype/reverse/S15.4.4.8_A4_T1.js
@@ -40,9 +40,7 @@ if (x[1] !== 1) {
Object.prototype[1] = 1;
Object.prototype.length = 2;
Object.prototype.reverse = Array.prototype.reverse;
-x = {
- 0: 0
-};
+x = {0:0};
x.reverse();
//CHECK#5
diff --git a/test/built-ins/Array/prototype/reverse/S15.4.4.8_A4_T2.js b/test/built-ins/Array/prototype/reverse/S15.4.4.8_A4_T2.js
index 942d287ad..f658651f4 100644
--- a/test/built-ins/Array/prototype/reverse/S15.4.4.8_A4_T2.js
+++ b/test/built-ins/Array/prototype/reverse/S15.4.4.8_A4_T2.js
@@ -11,7 +11,7 @@ description: >
---*/
Array.prototype[1] = -1;
-var x = [0, 1];
+var x = [0,1];
x.length = 2;
x.reverse();
@@ -40,10 +40,7 @@ if (x[1] !== -1) {
Object.prototype[1] = -1;
Object.prototype.length = 2;
Object.prototype.reverse = Array.prototype.reverse;
-x = {
- 0: 0,
- 1: 1
-};
+x = {0:0,1:1};
x.reverse();
//CHECK#5
diff --git a/test/built-ins/Array/prototype/reverse/length-exceeding-integer-limit-with-object.js b/test/built-ins/Array/prototype/reverse/length-exceeding-integer-limit-with-object.js
index 94e53bb20..2296861a5 100644
--- a/test/built-ins/Array/prototype/reverse/length-exceeding-integer-limit-with-object.js
+++ b/test/built-ins/Array/prototype/reverse/length-exceeding-integer-limit-with-object.js
@@ -11,20 +11,20 @@ info: |
...
---*/
-function StopReverse() {}
+function StopReverse() { }
// Object with large "length" property and no indexed properties in the uint32 range.
var arrayLike = {
- get "9007199254740990" () {
+ get "9007199254740990"() {
throw new StopReverse();
},
- get "9007199254740991" () {
+ get "9007199254740991"() {
$ERROR("Get 9007199254740991");
},
- get "9007199254740992" () {
+ get "9007199254740992"() {
$ERROR("Get 9007199254740992");
},
- length: 2 ** 53 + 2,
+ length: 2**53 + 2,
};
assert.throws(StopReverse, function() {
diff --git a/test/built-ins/Array/prototype/reverse/length-exceeding-integer-limit-with-proxy.js b/test/built-ins/Array/prototype/reverse/length-exceeding-integer-limit-with-proxy.js
index 308eb5e19..e4b45f459 100644
--- a/test/built-ins/Array/prototype/reverse/length-exceeding-integer-limit-with-proxy.js
+++ b/test/built-ins/Array/prototype/reverse/length-exceeding-integer-limit-with-proxy.js
@@ -8,7 +8,7 @@ description: >
includes: [compareArray.js, proxyTrapsHelper.js]
---*/
-function StopReverse() {}
+function StopReverse() { }
var arrayLike = {
0: "zero",
@@ -25,7 +25,7 @@ var arrayLike = {
/* 9007199254740989: hole, */
9007199254740990: "2**53-2",
- length: 2 ** 53 + 2,
+ length: 2**53 + 2,
};
var traps = [];
@@ -106,7 +106,7 @@ assert.compareArray(traps, [
"Get:4",
]);
-assert.sameValue(arrayLike.length, 2 ** 53 + 2, "Length property is not modified");
+assert.sameValue(arrayLike.length, 2**53 + 2, "Length property is not modified");
assert.sameValue(arrayLike[0], "2**53-2", "Property at index 0");
assert.sameValue(1 in arrayLike, false, "Property at index 1");
diff --git a/test/built-ins/Array/prototype/shift/S15.4.4.9_A1.1_T1.js b/test/built-ins/Array/prototype/shift/S15.4.4.9_A1.1_T1.js
index b087c14b7..f84a5392e 100644
--- a/test/built-ins/Array/prototype/shift/S15.4.4.9_A1.1_T1.js
+++ b/test/built-ins/Array/prototype/shift/S15.4.4.9_A1.1_T1.js
@@ -23,7 +23,7 @@ if (x.length !== 0) {
}
//CHECK#3
-var x = Array(1, 2, 3);
+var x = Array(1,2,3);
x.length = 0;
var shift = x.shift();
if (shift !== undefined) {
diff --git a/test/built-ins/Array/prototype/shift/S15.4.4.9_A1.2_T1.js b/test/built-ins/Array/prototype/shift/S15.4.4.9_A1.2_T1.js
index b736fa0f3..3fac087a2 100644
--- a/test/built-ins/Array/prototype/shift/S15.4.4.9_A1.2_T1.js
+++ b/test/built-ins/Array/prototype/shift/S15.4.4.9_A1.2_T1.js
@@ -11,7 +11,7 @@ description: Checking this use new Array() and []
---*/
//CHECK#1
-var x = new Array(0, 1, 2, 3);
+var x = new Array(0,1,2,3);
var shift = x.shift();
if (shift !== 0) {
$ERROR('#1: x = new Array(0,1,2,3); x.shift() === 0. Actual: ' + (shift));
diff --git a/test/built-ins/Array/prototype/shift/S15.4.4.9_A2_T1.js b/test/built-ins/Array/prototype/shift/S15.4.4.9_A2_T1.js
index caf6bcb18..ea342a469 100644
--- a/test/built-ins/Array/prototype/shift/S15.4.4.9_A2_T1.js
+++ b/test/built-ins/Array/prototype/shift/S15.4.4.9_A2_T1.js
@@ -18,15 +18,15 @@ obj.shift = Array.prototype.shift;
if (obj.length !== undefined) {
$ERROR('#0: var obj = {}; obj.length === undefined. Actual: ' + (obj.length));
} else {
- //CHECK#1
- var shift = obj.shift();
- if (shift !== undefined) {
- $ERROR('#1: var obj = {}; obj.shift = Array.prototype.shift; obj.shift() === undefined. Actual: ' + (shift));
- }
- //CHECK#2
- if (obj.length !== 0) {
- $ERROR('#2: var obj = {}; obj.shift = Array.prototype.shift; obj.shift(); obj.length === 0. Actual: ' + (obj.length));
- }
+ //CHECK#1
+ var shift = obj.shift();
+if (shift !== undefined) {
+ $ERROR('#1: var obj = {}; obj.shift = Array.prototype.shift; obj.shift() === undefined. Actual: ' + (shift));
+ }
+ //CHECK#2
+ if (obj.length !== 0) {
+ $ERROR('#2: var obj = {}; obj.shift = Array.prototype.shift; obj.shift(); obj.length === 0. Actual: ' + (obj.length));
+ }
}
//CHECK#3
diff --git a/test/built-ins/Array/prototype/shift/S15.4.4.9_A2_T2.js b/test/built-ins/Array/prototype/shift/S15.4.4.9_A2_T2.js
index af9768c91..2dc7695d2 100644
--- a/test/built-ins/Array/prototype/shift/S15.4.4.9_A2_T2.js
+++ b/test/built-ins/Array/prototype/shift/S15.4.4.9_A2_T2.js
@@ -50,7 +50,7 @@ if (shift !== undefined) {
if (obj.length !== 0) {
$ERROR('#8: var obj = {}; obj.length = -0; obj.shift = Array.prototype.shift; obj.shift(); obj.length === 0. Actual: ' + (obj.length));
} else {
- if (1 / obj.length !== Number.POSITIVE_INFINITY) {
+ if (1/obj.length !== Number.POSITIVE_INFINITY) {
$ERROR('#8: var obj = {}; obj.length = -0; obj.shift = Array.prototype.shift; obj.shift(); obj.length === +0. Actual: ' + (obj.length));
}
}
diff --git a/test/built-ins/Array/prototype/shift/S15.4.4.9_A2_T5.js b/test/built-ins/Array/prototype/shift/S15.4.4.9_A2_T5.js
index 51e927577..f16915d79 100644
--- a/test/built-ins/Array/prototype/shift/S15.4.4.9_A2_T5.js
+++ b/test/built-ins/Array/prototype/shift/S15.4.4.9_A2_T5.js
@@ -17,11 +17,7 @@ obj.shift = Array.prototype.shift;
//CHECK#1
obj[0] = -1;
-obj.length = {
- valueOf: function() {
- return 1
- }
-};
+obj.length = {valueOf: function() {return 1}};
var shift = obj.shift();
if (shift !== -1) {
$ERROR('#1: obj[0] = -1; obj.length = {valueOf: function() {return 1}} obj.shift() === -1. Actual: ' + (shift));
@@ -29,14 +25,7 @@ if (shift !== -1) {
//CHECK#2
obj[0] = -1;
-obj.length = {
- valueOf: function() {
- return 1
- },
- toString: function() {
- return 0
- }
-};
+obj.length = {valueOf: function() {return 1}, toString: function() {return 0}};
var shift = obj.shift();
if (shift !== -1) {
$ERROR('#0: obj[0] = -1; obj.length = {valueOf: function() {return 1}, toString: function() {return 0}} obj.shift() === -1. Actual: ' + (shift));
@@ -44,14 +33,7 @@ if (shift !== -1) {
//CHECK#3
obj[0] = -1;
-obj.length = {
- valueOf: function() {
- return 1
- },
- toString: function() {
- return {}
- }
-};
+obj.length = {valueOf: function() {return 1}, toString: function() {return {}}};
var shift = obj.shift();
if (shift !== -1) {
$ERROR('#3: obj[0] = -1; obj.length = {valueOf: function() {return 1}, toString: function() {return {}}} obj.shift() === -1. Actual: ' + (shift));
@@ -60,16 +42,9 @@ if (shift !== -1) {
//CHECK#4
try {
obj[0] = -1;
- obj.length = {
- valueOf: function() {
- return 1
- },
- toString: function() {
- throw "error"
- }
- };
+ obj.length = {valueOf: function() {return 1}, toString: function() {throw "error"}};
var shift = obj.shift();
- if (shift !== -1) {
+if (shift !== -1) {
$ERROR('#4.1: obj[0] = -1; obj.length = {valueOf: function() {return 1}, toString: function() {throw "error"}}; obj.shift() === ",". Actual: ' + (shift));
}
}
@@ -83,11 +58,7 @@ catch (e) {
//CHECK#5
obj[0] = -1;
-obj.length = {
- toString: function() {
- return 0
- }
-};
+obj.length = {toString: function() {return 0}};
var shift = obj.shift();
if (shift !== undefined) {
$ERROR('#5: obj[0] = -1; obj.length = {toString: function() {return 0}} obj.shift() === undefined. Actual: ' + (shift));
@@ -95,14 +66,7 @@ if (shift !== undefined) {
//CHECK#6
obj[0] = -1;
-obj.length = {
- valueOf: function() {
- return {}
- },
- toString: function() {
- return 0
- }
-}
+obj.length = {valueOf: function() {return {}}, toString: function() {return 0}}
var shift = obj.shift();
if (shift !== undefined) {
$ERROR('#6: obj[0] = -1; obj.length = {valueOf: function() {return {}}, toString: function() {return 0}} obj.shift() === undefined. Actual: ' + (shift));
@@ -111,14 +75,7 @@ if (shift !== undefined) {
//CHECK#7
try {
obj[0] = -1;
- obj.length = {
- valueOf: function() {
- throw "error"
- },
- toString: function() {
- return 0
- }
- };
+ obj.length = {valueOf: function() {throw "error"}, toString: function() {return 0}};
var shift = obj.shift();
$ERROR('#7.1: obj[0] = -1; obj.length = {valueOf: function() {throw "error"}, toString: function() {return 0}}; obj.shift() throw "error". Actual: ' + (shift));
}
@@ -131,14 +88,7 @@ catch (e) {
//CHECK#8
try {
obj[0] = -1;
- obj.length = {
- valueOf: function() {
- return {}
- },
- toString: function() {
- return {}
- }
- };
+ obj.length = {valueOf: function() {return {}}, toString: function() {return {}}};
var shift = obj.shift();
$ERROR('#8.1: obj[0] = -1; obj.length = {valueOf: function() {return {}}, toString: function() {return {}}} obj.shift() throw TypeError. Actual: ' + (shift));
}
diff --git a/test/built-ins/Array/prototype/shift/S15.4.4.9_A3_T3.js b/test/built-ins/Array/prototype/shift/S15.4.4.9_A3_T3.js
index f1c786b21..60942b64a 100644
--- a/test/built-ins/Array/prototype/shift/S15.4.4.9_A3_T3.js
+++ b/test/built-ins/Array/prototype/shift/S15.4.4.9_A3_T3.js
@@ -27,10 +27,10 @@ if (obj.length !== 0) {
//CHECK#3
if (obj[0] !== "x") {
- $ERROR('#3: var obj = {}; obj.shift = Array.prototype.shift; obj[0] = "x"; obj[1] = "y"; obj.length = -4294967294; obj.shift(); obj[0] === "x". Actual: ' + (obj[0]));
+ $ERROR('#3: var obj = {}; obj.shift = Array.prototype.shift; obj[0] = "x"; obj[1] = "y"; obj.length = -4294967294; obj.shift(); obj[0] === "x". Actual: ' + (obj[0]));
}
//CHECK#4
if (obj[1] !== "y") {
- $ERROR('#4: var obj = {}; obj.shift = Array.prototype.shift; obj[0] = "x" obj[1] = "y"; obj.length = -4294967294; obj.shift(); obj[1] === "y". Actual: ' + (obj[1]));
+ $ERROR('#4: var obj = {}; obj.shift = Array.prototype.shift; obj[0] = "x" obj[1] = "y"; obj.length = -4294967294; obj.shift(); obj[1] === "y". Actual: ' + (obj[1]));
}
diff --git a/test/built-ins/Array/prototype/shift/S15.4.4.9_A4_T1.js b/test/built-ins/Array/prototype/shift/S15.4.4.9_A4_T1.js
index 8b7854630..3a7c667f3 100644
--- a/test/built-ins/Array/prototype/shift/S15.4.4.9_A4_T1.js
+++ b/test/built-ins/Array/prototype/shift/S15.4.4.9_A4_T1.js
@@ -33,9 +33,7 @@ if (x[1] !== 1) {
Object.prototype[1] = 1;
Object.prototype.length = 2;
Object.prototype.shift = Array.prototype.shift;
-x = {
- 0: 0
-};
+x = {0:0};
//CHECK#4
var shift = x.shift();
diff --git a/test/built-ins/Array/prototype/shift/S15.4.4.9_A4_T2.js b/test/built-ins/Array/prototype/shift/S15.4.4.9_A4_T2.js
index 20fb5644e..703c32e10 100644
--- a/test/built-ins/Array/prototype/shift/S15.4.4.9_A4_T2.js
+++ b/test/built-ins/Array/prototype/shift/S15.4.4.9_A4_T2.js
@@ -11,7 +11,7 @@ description: >
---*/
Array.prototype[1] = -1;
-var x = [0, 1];
+var x = [0,1];
x.length = 2;
//CHECK#1
@@ -33,10 +33,7 @@ if (x[1] !== -1) {
Object.prototype[1] = -1;
Object.prototype.length = 2;
Object.prototype.shift = Array.prototype.shift;
-x = {
- 0: 0,
- 1: 1
-};
+x = {0:0,1:1};
//CHECK#4
var shift = x.shift();
diff --git a/test/built-ins/Array/prototype/slice/15.4.4.10-10-c-ii-1.js b/test/built-ins/Array/prototype/slice/15.4.4.10-10-c-ii-1.js
index ec1f509d3..bd1c36582 100644
--- a/test/built-ins/Array/prototype/slice/15.4.4.10-10-c-ii-1.js
+++ b/test/built-ins/Array/prototype/slice/15.4.4.10-10-c-ii-1.js
@@ -9,15 +9,15 @@ description: >
index property (read-only) exists in Array.prototype (Step 10.c.ii)
---*/
-var arrObj = [1, 2, 3];
+ var arrObj = [1, 2, 3];
-Object.defineProperty(Array.prototype, "0", {
- value: "test",
- writable: false,
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ value: "test",
+ writable: false,
+ configurable: true
+ });
-var newArr = arrObj.slice(0, 1);
+ var newArr = arrObj.slice(0, 1);
assert(newArr.hasOwnProperty("0"), 'newArr.hasOwnProperty("0") !== true');
assert.sameValue(newArr[0], 1, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T1.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T1.js
index befb1fd88..567f24e6d 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T1.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T1.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.1_T1
description: length > end > start = 0
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(0, 3);
+var x = [0,1,2,3,4];
+var arr = x.slice(0,3);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T2.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T2.js
index 5955eb054..42027f84c 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T2.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T2.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.1_T2
description: length > end = start > 0
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(3, 3);
+var x = [0,1,2,3,4];
+var arr = x.slice(3,3);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T3.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T3.js
index 1967fdbca..29b2074ed 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T3.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T3.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.1_T3
description: length > start > end > 0
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(4, 3);
+var x = [0,1,2,3,4];
+var arr = x.slice(4,3);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T4.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T4.js
index 719d7634c..7191ed8e2 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T4.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T4.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.1_T4
description: length = end = start > 0
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(5, 5);
+var x = [0,1,2,3,4];
+var arr = x.slice(5,5);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T5.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T5.js
index 6c6e24b85..b5ccf1064 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T5.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T5.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.1_T5
description: length = end > start > 0
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(3, 5);
+var x = [0,1,2,3,4];
+var arr = x.slice(3,5);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T6.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T6.js
index 63a86046a..c66a6bddf 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T6.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T6.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.1_T6
description: length > end > start > 0;
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(2, 4);
+var x = [0,1,2,3,4];
+var arr = x.slice(2,4);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T7.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T7.js
index 158c4e01d..5e1585a52 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T7.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T7.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.1_T7
description: end > length > start > 0
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(3, 6);
+var x = [0,1,2,3,4];
+var arr = x.slice(3,6);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T1.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T1.js
index f79bd3d4f..efac0d415 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T1.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T1.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.2_T1
description: length > end = abs(start), start < 0
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(-3, 3);
+var x = [0,1,2,3,4];
+var arr = x.slice(-3,3);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T2.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T2.js
index ef60e55af..f424caee9 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T2.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T2.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.2_T2
description: length = end > abs(start), start < 0
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(-1, 5);
+var x = [0,1,2,3,4];
+var arr = x.slice(-1,5);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T3.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T3.js
index c598e8679..8b6018424 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T3.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T3.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.2_T3
description: abs(start) = length > end > 0, start < 0
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(-5, 1);
+var x = [0,1,2,3,4];
+var arr = x.slice(-5,1);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T4.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T4.js
index c12138e36..cddd4790b 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T4.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T4.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.2_T4
description: abs(start) > length = end > 0, start < 0
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(-9, 5);
+var x = [0,1,2,3,4];
+var arr = x.slice(-9,5);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T1.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T1.js
index 664ed6861..b5d84984f 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T1.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T1.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.3_T1
description: length > abs(end) > start = 0, end < 0
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(0, -2);
+var x = [0,1,2,3,4];
+var arr = x.slice(0,-2);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T2.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T2.js
index 761cb1266..0b4c0c2bc 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T2.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T2.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.3_T2
description: length > abs(end) > start > 0, end < 0
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(1, -4);
+var x = [0,1,2,3,4];
+var arr = x.slice(1,-4);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T3.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T3.js
index 37f75f8cb..f14a223e3 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T3.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T3.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.3_T3
description: length = abs(end) > start = 0, end < 0
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(0, -5);
+var x = [0,1,2,3,4];
+var arr = x.slice(0,-5);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T4.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T4.js
index c62284187..f544b49f5 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T4.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T4.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.3_T4
description: abs(end) > length > start > 0, end < 0
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(4, -9);
+var x = [0,1,2,3,4];
+var arr = x.slice(4,-9);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T1.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T1.js
index ac01bd21b..91919d207 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T1.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T1.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.4_T1
description: -length = start < end < 0
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(-5, -2);
+var x = [0,1,2,3,4];
+var arr = x.slice(-5,-2);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T2.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T2.js
index a08595272..b0d708464 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T2.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T2.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.4_T2
description: -length < start < end < 0
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(-3, -1);
+var x = [0,1,2,3,4];
+var arr = x.slice(-3,-1);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T3.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T3.js
index 0942b395b..222609a98 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T3.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T3.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.4_T3
description: start < -length < end < 0
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(-9, -1);
+var x = [0,1,2,3,4];
+var arr = x.slice(-9,-1);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T4.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T4.js
index 3536e83a9..cb326f250 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T4.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T4.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.4_T4
description: start = end < -length
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(-6, -6);
+var x = [0,1,2,3,4];
+var arr = x.slice(-6,-6);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.5_T1.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.5_T1.js
index 47fc27eaf..dc61d20fa 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.5_T1.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.5_T1.js
@@ -8,7 +8,7 @@ es5id: 15.4.4.10_A1.5_T1
description: end === undefined
---*/
-var x = [0, 1, 2, 3, 4];
+var x = [0,1,2,3,4];
var arr = x.slice(3, undefined);
//CHECK#1
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.5_T2.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.5_T2.js
index d6423de98..7bdeb3983 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.5_T2.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.5_T2.js
@@ -8,7 +8,7 @@ es5id: 15.4.4.10_A1.5_T2
description: end is absent
---*/
-var x = [0, 1, 2, 3, 4];
+var x = [0,1,2,3,4];
var arr = x.slice(-2);
//CHECK#1
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T1.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T1.js
index ceecbe2ae..d81cd4a98 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T1.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T1.js
@@ -8,8 +8,8 @@ es5id: 15.4.4.10_A2.1_T1
description: start is not integer
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(2.5, 4);
+var x = [0,1,2,3,4];
+var arr = x.slice(2.5,4);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T2.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T2.js
index be2087bab..6c86d2e50 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T2.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T2.js
@@ -8,8 +8,8 @@ es5id: 15.4.4.10_A2.1_T2
description: start = NaN
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(NaN, 3);
+var x = [0,1,2,3,4];
+var arr = x.slice(NaN,3);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T3.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T3.js
index 41514e027..d61be15bf 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T3.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T3.js
@@ -8,8 +8,8 @@ es5id: 15.4.4.10_A2.1_T3
description: start = Infinity
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(Number.POSITIVE_INFINITY, 3);
+var x = [0,1,2,3,4];
+var arr = x.slice(Number.POSITIVE_INFINITY,3);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T4.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T4.js
index 7d1f0fc99..86c49a99a 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T4.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T4.js
@@ -8,8 +8,8 @@ es5id: 15.4.4.10_A2.1_T4
description: start = -Infinity
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(Number.NEGATIVE_INFINITY, 3);
+var x = [0,1,2,3,4];
+var arr = x.slice(Number.NEGATIVE_INFINITY,3);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T5.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T5.js
index e0c60b2fe..57e496f09 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T5.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T5.js
@@ -8,15 +8,8 @@ es5id: 15.4.4.10_A2.1_T5
description: ToInteger use ToNumber
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice({
- valueOf: function() {
- return 0
- },
- toString: function() {
- return 3
- }
-}, 3);
+var x = [0,1,2,3,4];
+var arr = x.slice({valueOf: function() {return 0}, toString: function() {return 3}},3);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T1.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T1.js
index b5274f83b..5614b6d5a 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T1.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T1.js
@@ -8,8 +8,8 @@ es5id: 15.4.4.10_A2.2_T1
description: end is not integer
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(2, 4.5);
+var x = [0,1,2,3,4];
+var arr = x.slice(2,4.5);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T2.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T2.js
index ab712d9ba..1ba6d4971 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T2.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T2.js
@@ -8,8 +8,8 @@ es5id: 15.4.4.10_A2.2_T2
description: end = NaN
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(0, NaN);
+var x = [0,1,2,3,4];
+var arr = x.slice(0,NaN);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T3.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T3.js
index 31c4a0359..71a12e4c5 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T3.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T3.js
@@ -8,8 +8,8 @@ es5id: 15.4.4.10_A2.2_T3
description: end = Infinity
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(0, Number.POSITIVE_INFINITY);
+var x = [0,1,2,3,4];
+var arr = x.slice(0,Number.POSITIVE_INFINITY);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T4.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T4.js
index d5f4063e8..b4e12693c 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T4.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T4.js
@@ -8,8 +8,8 @@ es5id: 15.4.4.10_A2.2_T4
description: end = -Infinity
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(0, Number.NEGATIVE_INFINITY);
+var x = [0,1,2,3,4];
+var arr = x.slice(0,Number.NEGATIVE_INFINITY);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T5.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T5.js
index 78affa8a2..17e113c6b 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T5.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T5.js
@@ -8,15 +8,8 @@ es5id: 15.4.4.10_A2.2_T5
description: ToInteger use ToNumber
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(0, {
- valueOf: function() {
- return 3
- },
- toString: function() {
- return 0
- }
-});
+var x = [0,1,2,3,4];
+var arr = x.slice(0,{valueOf: function() {return 3}, toString: function() {return 0}});
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T1.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T1.js
index 05fb643f1..2bb88ee45 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T1.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T1.js
@@ -20,7 +20,7 @@ obj[2] = 2;
obj[3] = 3;
obj[4] = 4;
obj.length = 5;
-var arr = obj.slice(0, 3);
+var arr = obj.slice(0,3);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T2.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T2.js
index 0971b1a47..bf6dbdc52 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T2.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T2.js
@@ -20,7 +20,7 @@ obj[2] = 2;
obj[3] = 3;
obj[4] = 4;
obj.length = 5;
-var arr = obj.slice(-5, 3);
+var arr = obj.slice(-5,3);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T3.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T3.js
index 9214694c6..2d0ef0d24 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T3.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T3.js
@@ -20,7 +20,7 @@ obj[2] = 2;
obj[3] = 3;
obj[4] = 4;
obj.length = 5;
-var arr = obj.slice(0, -2);
+var arr = obj.slice(0,-2);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T4.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T4.js
index 398423039..d1aa9d258 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T4.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T4.js
@@ -20,7 +20,7 @@ obj[2] = 2;
obj[3] = 3;
obj[4] = 4;
obj.length = 5;
-var arr = obj.slice(-5, -2);
+var arr = obj.slice(-5,-2);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T1.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T1.js
index 63b69324b..1a4ad0bb1 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T1.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T1.js
@@ -15,10 +15,10 @@ obj[4294967295] = "y";
obj.length = 4294967296;
try {
- var arr = obj.slice(0, 4294967296);
+ var arr = obj.slice(0,4294967296);
$ERROR('#1: var obj = {}; obj.slice = Array.prototype.slice; obj[0] = "x"; obj[4294967295] = "y"; obj.length = 4294967296; var arr = obj.slice(0,4294967296); lead to throwing exception.');
} catch (e) {
if (!(e instanceof RangeError)) {
- $ERROR('#1.1: var obj = {}; obj.slice = Array.prototype.slice; obj[0] = "x"; obj[4294967295] = "y"; obj.length = 4294967296; var arr = obj.slice(0,4294967296); lead to throwing exception. Exception is instance of RangeError. Actual: exception is ' + e);
+ $ERROR('#1.1: var obj = {}; obj.slice = Array.prototype.slice; obj[0] = "x"; obj[4294967295] = "y"; obj.length = 4294967296; var arr = obj.slice(0,4294967296); lead to throwing exception. Exception is instance of RangeError. Actual: exception is '+e);
}
}
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T2.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T2.js
index d6d1c630f..7c65b5fbe 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T2.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T2.js
@@ -15,10 +15,10 @@ obj[4294967296] = "y";
obj.length = 4294967297;
try {
- var arr = obj.slice(0, 4294967297);
+ var arr = obj.slice(0,4294967297);
$ERROR('#1: var obj = {}; obj.slice = Array.prototype.slice; obj[0] = "x"; obj[4294967296] = "y"; obj.length = 4294967297; var arr = obj.slice(0,4294967297); lead to throwing exception.');
} catch (e) {
if (!(e instanceof RangeError)) {
- $ERROR('#1.1: var obj = {}; obj.slice = Array.prototype.slice; obj[0] = "x"; obj[4294967296] = "y"; obj.length = 4294967297; var arr = obj.slice(0,4294967297); lead to throwing exception. Exception is instance of RangeError. Actual: exception is ' + e);
+ $ERROR('#1.1: var obj = {}; obj.slice = Array.prototype.slice; obj[0] = "x"; obj[4294967296] = "y"; obj.length = 4294967297; var arr = obj.slice(0,4294967297); lead to throwing exception. Exception is instance of RangeError. Actual: exception is '+e);
}
}
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T3.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T3.js
index 95da2f223..a5b78f6f0 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T3.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T3.js
@@ -12,7 +12,7 @@ var obj = {};
obj.slice = Array.prototype.slice;
obj[4294967294] = "x";
obj.length = -1;
-var arr = obj.slice(4294967294, 4294967295);
+var arr = obj.slice(4294967294,4294967295);
//CHECK#1
if (arr.length !== 0) {
@@ -21,5 +21,5 @@ if (arr.length !== 0) {
//CHECK#3
if (arr[0] !== undefined) {
- $ERROR('#3: var obj = {}; obj.slice = Array.prototype.slice; obj[4294967294] = "x"; obj.length = 4294967295; var arr = obj.slice(4294967294,4294967295); arr[0] === undefined. Actual: ' + (arr[0]));
+ $ERROR('#3: var obj = {}; obj.slice = Array.prototype.slice; obj[4294967294] = "x"; obj.length = 4294967295; var arr = obj.slice(4294967294,4294967295); arr[0] === undefined. Actual: ' + (arr[0]));
}
diff --git a/test/built-ins/Array/prototype/slice/create-non-array.js b/test/built-ins/Array/prototype/slice/create-non-array.js
index d1cbc4585..9061638d0 100644
--- a/test/built-ins/Array/prototype/slice/create-non-array.js
+++ b/test/built-ins/Array/prototype/slice/create-non-array.js
@@ -16,9 +16,7 @@ info: |
4. If isArray is false, return ? ArrayCreate(length).
---*/
-var obj = {
- length: 0
-};
+var obj = { length: 0 };
var callCount = 0;
var result;
Object.defineProperty(obj, 'constructor', {
diff --git a/test/built-ins/Array/prototype/slice/length-exceeding-integer-limit-proxied-array.js b/test/built-ins/Array/prototype/slice/length-exceeding-integer-limit-proxied-array.js
index d1839760a..1d9f80606 100644
--- a/test/built-ins/Array/prototype/slice/length-exceeding-integer-limit-proxied-array.js
+++ b/test/built-ins/Array/prototype/slice/length-exceeding-integer-limit-proxied-array.js
@@ -30,27 +30,27 @@ array["9007199254740991"] = "9007199254740991";
var proxy = new Proxy(array, {
get(t, pk, r) {
if (pk === "length")
- return 2 ** 53 + 2;
+ return 2**53 + 2;
return Reflect.get(t, pk, r);
}
});
var result = Array.prototype.slice.call(proxy, 9007199254740989);
-assert.compareArray(result, ["9007199254740989", "9007199254740990"],
- "slice(9007199254740989)");
+assert.compareArray(result, [ "9007199254740989", "9007199254740990" ],
+ "slice(9007199254740989)");
var result = Array.prototype.slice.call(proxy, 9007199254740989, 9007199254740990);
-assert.compareArray(result, ["9007199254740989"],
- "slice(9007199254740989, 9007199254740990)");
+assert.compareArray(result, [ "9007199254740989" ],
+ "slice(9007199254740989, 9007199254740990)");
var result = Array.prototype.slice.call(proxy, 9007199254740989, 9007199254740996);
-assert.compareArray(result, ["9007199254740989", "9007199254740990"],
- "slice(9007199254740989, 9007199254740996)");
+assert.compareArray(result, [ "9007199254740989", "9007199254740990" ],
+ "slice(9007199254740989, 9007199254740996)");
var result = Array.prototype.slice.call(proxy, -2);
-assert.compareArray(result, ["9007199254740989", "9007199254740990"],
- "slice(-2)");
+assert.compareArray(result, [ "9007199254740989", "9007199254740990" ],
+ "slice(-2)");
var result = Array.prototype.slice.call(proxy, -2, -1);
-assert.compareArray(result, ["9007199254740989"],
- "slice(-2, -1)");
+assert.compareArray(result, [ "9007199254740989" ],
+ "slice(-2, -1)");
diff --git a/test/built-ins/Array/prototype/slice/length-exceeding-integer-limit.js b/test/built-ins/Array/prototype/slice/length-exceeding-integer-limit.js
index d3b429288..2fa32db97 100644
--- a/test/built-ins/Array/prototype/slice/length-exceeding-integer-limit.js
+++ b/test/built-ins/Array/prototype/slice/length-exceeding-integer-limit.js
@@ -23,25 +23,25 @@ var arrayLike = {
"9007199254740989": "9007199254740989",
"9007199254740990": "9007199254740990",
"9007199254740991": "9007199254740991",
- length: 2 ** 53 + 2,
+ length: 2**53 + 2,
};
var result = Array.prototype.slice.call(arrayLike, 9007199254740989);
-assert.compareArray(result, ["9007199254740989", "9007199254740990"],
- "slice(9007199254740989)");
+assert.compareArray(result, [ "9007199254740989", "9007199254740990" ],
+ "slice(9007199254740989)");
var result = Array.prototype.slice.call(arrayLike, 9007199254740989, 9007199254740990);
-assert.compareArray(result, ["9007199254740989"],
- "slice(9007199254740989, 9007199254740990)");
+assert.compareArray(result, [ "9007199254740989" ],
+ "slice(9007199254740989, 9007199254740990)");
var result = Array.prototype.slice.call(arrayLike, 9007199254740989, 9007199254740996);
-assert.compareArray(result, ["9007199254740989", "9007199254740990"],
- "slice(9007199254740989, 9007199254740996)");
+assert.compareArray(result, [ "9007199254740989", "9007199254740990" ],
+ "slice(9007199254740989, 9007199254740996)");
var result = Array.prototype.slice.call(arrayLike, -2);
-assert.compareArray(result, ["9007199254740989", "9007199254740990"],
- "slice(-2)");
+assert.compareArray(result, [ "9007199254740989", "9007199254740990" ],
+ "slice(-2)");
var result = Array.prototype.slice.call(arrayLike, -2, -1);
-assert.compareArray(result, ["9007199254740989"],
- "slice(-2, -1)");
+assert.compareArray(result, [ "9007199254740989" ],
+ "slice(-2, -1)");
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-1-1.js b/test/built-ins/Array/prototype/some/15.4.4.17-1-1.js
index d4f780dfa..216ca2186 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-1-1.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-1-1.js
@@ -9,5 +9,5 @@ description: Array.prototype.some applied to undefined throws a TypeError
assert.throws(TypeError, function() {
- Array.prototype.some.call(undefined);
+ Array.prototype.some.call(undefined);
});
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-1-10.js b/test/built-ins/Array/prototype/some/15.4.4.17-1-10.js
index b0bf38a18..7c6c28469 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-1-10.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-1-10.js
@@ -7,11 +7,11 @@ es5id: 15.4.4.17-1-10
description: Array.prototype.some applied to the Math object
---*/
-function callbackfn(val, idx, obj) {
- return '[object Math]' === Object.prototype.toString.call(obj);
-}
+ function callbackfn(val, idx, obj) {
+ return '[object Math]' === Object.prototype.toString.call(obj);
+ }
-Math.length = 1;
-Math[0] = 1;
+ Math.length = 1;
+ Math[0] = 1;
assert(Array.prototype.some.call(Math, callbackfn), 'Array.prototype.some.call(Math, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-1-11.js b/test/built-ins/Array/prototype/some/15.4.4.17-1-11.js
index d61f9594b..79081ad78 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-1-11.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-1-11.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.17-1-11
description: Array.prototype.some applied to Date object
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof Date;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof Date;
+ }
-var obj = new Date();
-obj.length = 2;
-obj[0] = 11;
-obj[1] = 9;
+ var obj = new Date();
+ obj.length = 2;
+ obj[0] = 11;
+ obj[1] = 9;
assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-1-12.js b/test/built-ins/Array/prototype/some/15.4.4.17-1-12.js
index 905cf4274..e34099ca7 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-1-12.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-1-12.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.17-1-12
description: Array.prototype.some applied to RegExp object
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof RegExp;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof RegExp;
+ }
-var obj = new RegExp();
-obj.length = 2;
-obj[0] = 11;
-obj[1] = 9;
+ var obj = new RegExp();
+ obj.length = 2;
+ obj[0] = 11;
+ obj[1] = 9;
assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-1-13.js b/test/built-ins/Array/prototype/some/15.4.4.17-1-13.js
index 55105713d..650afc630 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-1-13.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-1-13.js
@@ -7,11 +7,11 @@ es5id: 15.4.4.17-1-13
description: Array.prototype.some applied to the JSON object
---*/
-function callbackfn(val, idx, obj) {
- return '[object JSON]' === Object.prototype.toString.call(obj);
-}
+ function callbackfn(val, idx, obj) {
+ return '[object JSON]' === Object.prototype.toString.call(obj);
+ }
-JSON.length = 1;
-JSON[0] = 1;
+ JSON.length = 1;
+ JSON[0] = 1;
assert(Array.prototype.some.call(JSON, callbackfn), 'Array.prototype.some.call(JSON, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-1-14.js b/test/built-ins/Array/prototype/some/15.4.4.17-1-14.js
index 821828784..292ab95af 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-1-14.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-1-14.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.17-1-14
description: Array.prototype.some applied to Error object
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof Error;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof Error;
+ }
-var obj = new Error();
-obj.length = 1;
-obj[0] = 1;
+ var obj = new Error();
+ obj.length = 1;
+ obj[0] = 1;
assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-1-15.js b/test/built-ins/Array/prototype/some/15.4.4.17-1-15.js
index 27cfa61db..d4622f376 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-1-15.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-1-15.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.17-1-15
description: Array.prototype.some applied to the Arguments object
---*/
-function callbackfn(val, idx, obj) {
- return '[object Arguments]' === Object.prototype.toString.call(obj);
-}
+ function callbackfn(val, idx, obj) {
+ return '[object Arguments]' === Object.prototype.toString.call(obj);
+ }
-var obj = (function() {
- return arguments;
-}("a", "b"));
+ var obj = (function () {
+ return arguments;
+ }("a", "b"));
assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-1-2.js b/test/built-ins/Array/prototype/some/15.4.4.17-1-2.js
index abc12eef8..bdcf9c45c 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-1-2.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-1-2.js
@@ -9,5 +9,5 @@ description: Array.prototype.some applied to null throws a TypeError
assert.throws(TypeError, function() {
- Array.prototype.some.call(null);
+ Array.prototype.some.call(null);
});
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-1-3.js b/test/built-ins/Array/prototype/some/15.4.4.17-1-3.js
index 38edf932d..49c698f37 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-1-3.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-1-3.js
@@ -7,11 +7,11 @@ es5id: 15.4.4.17-1-3
description: Array.prototype.some applied to boolean primitive
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof Boolean;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof Boolean;
+ }
-Boolean.prototype[0] = 1;
-Boolean.prototype.length = 1;
+ Boolean.prototype[0] = 1;
+ Boolean.prototype.length = 1;
assert(Array.prototype.some.call(false, callbackfn), 'Array.prototype.some.call(false, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-1-4.js b/test/built-ins/Array/prototype/some/15.4.4.17-1-4.js
index e025ac0c2..d17988608 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-1-4.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-1-4.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.17-1-4
description: Array.prototype.some applied to Boolean object
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof Boolean;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof Boolean;
+ }
-var obj = new Boolean(true);
-obj.length = 2;
-obj[0] = 11;
-obj[1] = 9;
+ var obj = new Boolean(true);
+ obj.length = 2;
+ obj[0] = 11;
+ obj[1] = 9;
assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-1-5.js b/test/built-ins/Array/prototype/some/15.4.4.17-1-5.js
index 827d030ef..ce0483b51 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-1-5.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-1-5.js
@@ -7,11 +7,11 @@ es5id: 15.4.4.17-1-5
description: Array.prototype.some applied to number primitive
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof Number;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof Number;
+ }
-Number.prototype[1] = true;
-Number.prototype.length = 2;
+ Number.prototype[1] = true;
+ Number.prototype.length = 2;
assert(Array.prototype.some.call(5, callbackfn), 'Array.prototype.some.call(5, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-1-6.js b/test/built-ins/Array/prototype/some/15.4.4.17-1-6.js
index 78791585e..a5c84bfe5 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-1-6.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-1-6.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.17-1-6
description: Array.prototype.some applied to Number object
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof Number;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof Number;
+ }
-var obj = new Number(-128);
-obj.length = 2;
-obj[0] = 11;
-obj[1] = 9;
+ var obj = new Number(-128);
+ obj.length = 2;
+ obj[0] = 11;
+ obj[1] = 9;
assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-1-7.js b/test/built-ins/Array/prototype/some/15.4.4.17-1-7.js
index f69a384e3..c44c66dc3 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-1-7.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-1-7.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.17-1-7
description: Array.prototype.some applied to applied to string primitive
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof String;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof String;
+ }
assert(Array.prototype.some.call("hello\nw_orld\\!", callbackfn), 'Array.prototype.some.call("hello\nw_orld\\!", callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-1-8.js b/test/built-ins/Array/prototype/some/15.4.4.17-1-8.js
index 4a439b90e..bbef0f62b 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-1-8.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-1-8.js
@@ -7,10 +7,10 @@ es5id: 15.4.4.17-1-8
description: Array.prototype.some applied to String object
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof String;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof String;
+ }
-var obj = new String("hello\nw_orld\\!");
+ var obj = new String("hello\nw_orld\\!");
assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-1-9.js b/test/built-ins/Array/prototype/some/15.4.4.17-1-9.js
index 866d6f61b..3dd74e302 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-1-9.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-1-9.js
@@ -7,14 +7,14 @@ es5id: 15.4.4.17-1-9
description: Array.prototype.some applied to Function object
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof Function;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof Function;
+ }
-var obj = function(a, b) {
- return a + b;
-};
-obj[0] = 11;
-obj[1] = 9;
+ var obj = function (a, b) {
+ return a + b;
+ };
+ obj[0] = 11;
+ obj[1] = 9;
assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-1.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-1.js
index aa8eeca34..b8d3aec50 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-2-1.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-1.js
@@ -9,20 +9,20 @@ description: >
Array-like object
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-var obj = {
- 0: 9,
- 1: 11,
- 2: 12,
- length: 2
-};
+ var obj = {
+ 0: 9,
+ 1: 11,
+ 2: 12,
+ length: 2
+ };
assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true');
assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-10.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-10.js
index 5a97e40fd..29409cea9 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-2-10.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-10.js
@@ -9,30 +9,30 @@ description: >
on an Array-like object
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
-
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
-
-var proto = {};
-
-Object.defineProperty(proto, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-child[0] = 9;
-child[1] = 11;
-child[2] = 12;
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
+
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
+
+ var proto = {};
+
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child[0] = 9;
+ child[1] = 11;
+ child[2] = 12;
assert(Array.prototype.some.call(child, callbackfn1), 'Array.prototype.some.call(child, callbackfn1) !== true');
assert.sameValue(Array.prototype.some.call(child, callbackfn2), false, 'Array.prototype.some.call(child, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-11.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-11.js
index 040621119..41b817a87 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-2-11.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-11.js
@@ -9,21 +9,21 @@ description: >
without a get function on an Array-like object
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+ }
-var obj = {
- 0: 11,
- 1: 12
-};
-Object.defineProperty(obj, "length", {
- set: function() {},
- configurable: true
-});
+ var obj = {
+ 0: 11,
+ 1: 12
+ };
+ Object.defineProperty(obj, "length", {
+ set: function () { },
+ configurable: true
+ });
assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-12.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-12.js
index 0f4f5077f..df83ae028 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-2-12.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-12.js
@@ -10,28 +10,25 @@ description: >
Array-like object
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+ }
-Object.defineProperty(Object.prototype, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(Object.prototype, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-var obj = {
- 0: 11,
- 1: 12
-};
-Object.defineProperty(obj, "length", {
- set: function() {},
- configurable: true
-});
+ var obj = { 0: 11, 1: 12 };
+ Object.defineProperty(obj, "length", {
+ set: function () { },
+ configurable: true
+ });
assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-13.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-13.js
index 568c27705..d16ce1148 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-2-13.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-13.js
@@ -9,25 +9,25 @@ description: >
without a get function on an Array-like object
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+ }
-var proto = {};
-Object.defineProperty(proto, "length", {
- set: function() {},
- configurable: true
-});
+ var proto = {};
+ Object.defineProperty(proto, "length", {
+ set: function () { },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child[0] = 11;
-child[1] = 12;
+ var child = new Con();
+ child[0] = 11;
+ child[1] = 12;
assert.sameValue(Array.prototype.some.call(child, callbackfn), false, 'Array.prototype.some.call(child, callbackfn)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-14.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-14.js
index 78ee06b3e..ce43f05a3 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-2-14.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-14.js
@@ -9,17 +9,14 @@ description: >
Array-like object
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+ }
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-17.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-17.js
index 21eb5feba..67829327e 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-2-17.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-17.js
@@ -9,18 +9,18 @@ description: >
implements its own property get method
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-var func = function(a, b) {
- arguments[2] = 12;
- return Array.prototype.some.call(arguments, callbackfn1) &&
- !Array.prototype.some.call(arguments, callbackfn2);
-};
+ var func = function (a, b) {
+ arguments[2] = 12;
+ return Array.prototype.some.call(arguments, callbackfn1) &&
+ !Array.prototype.some.call(arguments, callbackfn2);
+ };
assert(func(9, 11), 'func(9, 11) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-18.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-18.js
index 336a943e4..e640da588 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-2-18.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-18.js
@@ -9,17 +9,17 @@ description: >
own property get method
---*/
-function callbackfn1(val, idx, obj) {
- return parseInt(val, 10) > 1;
-}
+ function callbackfn1(val, idx, obj) {
+ return parseInt(val, 10) > 1;
+ }
-function callbackfn2(val, idx, obj) {
- return parseInt(val, 10) > 2;
-}
+ function callbackfn2(val, idx, obj) {
+ return parseInt(val, 10) > 2;
+ }
-var str = new String("12");
+ var str = new String("12");
-String.prototype[2] = "3";
+ String.prototype[2] = "3";
assert(Array.prototype.some.call(str, callbackfn1), 'Array.prototype.some.call(str, callbackfn1) !== true');
assert.sameValue(Array.prototype.some.call(str, callbackfn2), false, 'Array.prototype.some.call(str, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-19.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-19.js
index 07c1ada28..a299cbbc7 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-2-19.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-19.js
@@ -9,20 +9,20 @@ description: >
its own property get method
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-var fun = function(a, b) {
- return a + b;
-};
-fun[0] = 9;
-fun[1] = 11;
-fun[2] = 12;
+ var fun = function (a, b) {
+ return a + b;
+ };
+ fun[0] = 9;
+ fun[1] = 11;
+ fun[2] = 12;
assert(Array.prototype.some.call(fun, callbackfn1), 'Array.prototype.some.call(fun, callbackfn1) !== true');
assert.sameValue(Array.prototype.some.call(fun, callbackfn2), false, 'Array.prototype.some.call(fun, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-2.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-2.js
index e8d870de6..e546927ed 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-2-2.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-2.js
@@ -7,15 +7,15 @@ es5id: 15.4.4.17-2-2
description: Array.prototype.some - 'length' is own data property on an Array
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-Array.prototype[2] = 12;
+ Array.prototype[2] = 12;
assert([9, 11].some(callbackfn1), '[9, 11].some(callbackfn1) !== true');
assert.sameValue([9, 11].some(callbackfn2), false, '[9, 11].some(callbackfn2)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-3.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-3.js
index f663fb274..d2ef52b08 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-2-3.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-3.js
@@ -9,26 +9,24 @@ description: >
overrides an inherited data property on an Array-like object
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-var proto = {
- length: 3
-};
+ var proto = { length: 3 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child.length = 2;
-child[0] = 9;
-child[1] = 11;
-child[2] = 12;
+ var child = new Con();
+ child.length = 2;
+ child[0] = 9;
+ child[1] = 11;
+ child[2] = 12;
assert(Array.prototype.some.call(child, callbackfn1), 'Array.prototype.some.call(child, callbackfn1) !== true');
assert.sameValue(Array.prototype.some.call(child, callbackfn2), false, 'Array.prototype.some.call(child, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-4.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-4.js
index b966fb8c8..e3461b6b2 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-2-4.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-4.js
@@ -9,19 +9,18 @@ description: >
overrides an inherited data property on an array
---*/
-var arrProtoLen = 0;
+ var arrProtoLen = 0;
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
-
-arrProtoLen = Array.prototype.length;
-Array.prototype.length = 0;
-Array.prototype[2] = 12;
+ arrProtoLen = Array.prototype.length;
+ Array.prototype.length = 0;
+ Array.prototype[2] = 12;
assert([9, 11].some(callbackfn1), '[9, 11].some(callbackfn1) !== true');
assert.sameValue([9, 11].some(callbackfn2), false, '[9, 11].some(callbackfn2)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-5.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-5.js
index 6433283d2..af407300f 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-2-5.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-5.js
@@ -9,35 +9,35 @@ description: >
overrides an inherited accessor property on an Array-like object
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
-
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
-
-var proto = {};
-
-Object.defineProperty(proto, "length", {
- get: function() {
- return 3;
- },
- configurable: true
-});
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-Object.defineProperty(child, "length", {
- value: 2,
- configurable: true
-});
-
-child[0] = 9;
-child[1] = 11;
-child[2] = 12;
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
+
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
+
+ var proto = {};
+
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 3;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ Object.defineProperty(child, "length", {
+ value: 2,
+ configurable: true
+ });
+
+ child[0] = 9;
+ child[1] = 11;
+ child[2] = 12;
assert(Array.prototype.some.call(child, callbackfn1), 'Array.prototype.some.call(child, callbackfn1) !== true');
assert.sameValue(Array.prototype.some.call(child, callbackfn2), false, 'Array.prototype.some.call(child, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-6.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-6.js
index 2b322c625..c559436e5 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-2-6.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-6.js
@@ -9,25 +9,23 @@ description: >
an Array-like object
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-var proto = {
- length: 2
-};
+ var proto = { length: 2 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child[0] = 9;
-child[1] = 11;
-child[2] = 12;
+ var child = new Con();
+ child[0] = 9;
+ child[1] = 11;
+ child[2] = 12;
assert(Array.prototype.some.call(child, callbackfn1), 'Array.prototype.some.call(child, callbackfn1) !== true');
assert.sameValue(Array.prototype.some.call(child, callbackfn2), false, 'Array.prototype.some.call(child, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-7.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-7.js
index 0a3e4b4e6..223196674 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-2-7.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-7.js
@@ -9,26 +9,26 @@ description: >
Array-like object
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-var obj = {};
+ var obj = { };
-Object.defineProperty(obj, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-obj[0] = 9;
-obj[1] = 11;
-obj[2] = 12;
+ obj[0] = 9;
+ obj[1] = 11;
+ obj[2] = 12;
assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true');
assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-8.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-8.js
index 9e23a9381..4fd06784b 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-2-8.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-8.js
@@ -9,33 +9,31 @@ description: >
overrides an inherited data property on an Array-like object
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-var proto = {
- length: 3
-};
+ var proto = { length: 3 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
+ var child = new Con();
-Object.defineProperty(child, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(child, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-child[0] = 9;
-child[1] = 11;
-child[2] = 12;
+ child[0] = 9;
+ child[1] = 11;
+ child[2] = 12;
assert(Array.prototype.some.call(child, callbackfn1), 'Array.prototype.some.call(child, callbackfn1) !== true');
assert.sameValue(Array.prototype.some.call(child, callbackfn2), false, 'Array.prototype.some.call(child, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-9.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-9.js
index c670d9a8d..efd0405f0 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-2-9.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-9.js
@@ -9,38 +9,38 @@ description: >
overrides an inherited accessor property on an Array-like object
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
-
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
-
-var proto = {};
-
-Object.defineProperty(proto, "length", {
- get: function() {
- return 3;
- },
- configurable: true
-});
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-
-Object.defineProperty(child, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
-
-child[0] = 9;
-child[1] = 11;
-child[2] = 12;
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
+
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
+
+ var proto = {};
+
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 3;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+
+ Object.defineProperty(child, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
+
+ child[0] = 9;
+ child[1] = 11;
+ child[2] = 12;
assert(Array.prototype.some.call(child, callbackfn1), 'Array.prototype.some.call(child, callbackfn1) !== true');
assert.sameValue(Array.prototype.some.call(child, callbackfn2), false, 'Array.prototype.some.call(child, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-1.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-1.js
index 8f93e82c5..75dd25133 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-1.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-1.js
@@ -7,17 +7,14 @@ es5id: 15.4.4.17-3-1
description: Array.prototype.some - value of 'length' is undefined
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+ }
-var obj = {
- 0: 11,
- length: undefined
-};
+ var obj = { 0: 11, length: undefined };
assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-10.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-10.js
index ef0361216..042091cbf 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-10.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-10.js
@@ -7,17 +7,14 @@ es5id: 15.4.4.17-3-10
description: Array.prototype.some - value of 'length' is a number (value is NaN)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+ }
-var obj = {
- 0: 11,
- length: NaN
-};
+ var obj = { 0: 11, length: NaN };
assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-11.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-11.js
index fa9790642..0c0dc91bd 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-11.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-11.js
@@ -9,20 +9,15 @@ description: >
number
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-var obj = {
- 0: 9,
- 1: 11,
- 2: 12,
- length: "2"
-};
+ var obj = { 0: 9, 1: 11, 2: 12, length: "2" };
assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true');
assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-12.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-12.js
index ac407faa9..5308096de 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-12.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-12.js
@@ -9,20 +9,15 @@ description: >
number
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-var obj = {
- 0: 9,
- 1: 11,
- 2: 12,
- length: "-4294967294"
-};
+ var obj = { 0: 9, 1: 11, 2: 12, length: "-4294967294" };
assert.sameValue(Array.prototype.some.call(obj, callbackfn1), false, 'Array.prototype.some.call(obj, callbackfn1)');
assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-13.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-13.js
index dcaa0d724..127405c68 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-13.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-13.js
@@ -9,20 +9,15 @@ description: >
number
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-var obj = {
- 0: 9,
- 1: 11,
- 2: 12,
- length: "2.5"
-};
+ var obj = { 0: 9, 1: 11, 2: 12, length: "2.5" };
assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true');
assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-14.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-14.js
index 77607bfca..ac471bf34 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-14.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-14.js
@@ -7,25 +7,16 @@ es5id: 15.4.4.17-3-14
description: Array.prototype.some - 'length' is a string containing +/-Infinity
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+ }
-var objOne = {
- 0: 11,
- length: "Infinity"
-};
-var objTwo = {
- 0: 11,
- length: "+Infinity"
-};
-var objThree = {
- 0: 11,
- length: "-Infinity"
-};
+ var objOne = { 0: 11, length: "Infinity" };
+ var objTwo = { 0: 11, length: "+Infinity" };
+ var objThree = { 0: 11, length: "-Infinity" };
assert(Array.prototype.some.call(objOne, callbackfn), 'Array.prototype.some.call(objOne, callbackfn) !== true');
assert(Array.prototype.some.call(objTwo, callbackfn), 'Array.prototype.some.call(objTwo, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-15.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-15.js
index a74c4bceb..08a39ca38 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-15.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-15.js
@@ -9,20 +9,15 @@ description: >
exponential number
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-var obj = {
- 0: 9,
- 1: 11,
- 2: 12,
- length: "2E0"
-};
+ var obj = { 0: 9, 1: 11, 2: 12, length: "2E0" };
assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true');
assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-16.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-16.js
index 057f06876..86173aca7 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-16.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-16.js
@@ -7,20 +7,15 @@ es5id: 15.4.4.17-3-16
description: Array.prototype.some - 'length' is a string containing a hex number
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-var obj = {
- 0: 9,
- 1: 11,
- 2: 12,
- length: "0x0002"
-};
+ var obj = { 0: 9, 1: 11, 2: 12, length: "0x0002" };
assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true');
assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-17.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-17.js
index 857fa9a37..cf2759e88 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-17.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-17.js
@@ -9,20 +9,15 @@ description: >
with leading zeros
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-var obj = {
- 0: 9,
- 1: 11,
- 2: 12,
- length: "0002.00"
-};
+ var obj = { 0: 9, 1: 11, 2: 12, length: "0002.00" };
assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true');
assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-18.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-18.js
index 13de82ccd..a8924f21f 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-18.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-18.js
@@ -9,18 +9,14 @@ description: >
convert to a number
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+ }
-var obj = {
- 0: 11,
- 1: 21,
- length: "two"
-};
+ var obj = { 0: 11, 1: 21, length: "two" };
assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-19.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-19.js
index c8521e83c..dddf8132d 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-19.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-19.js
@@ -9,27 +9,27 @@ description: >
own toString method
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-var toStringAccessed = false;
-var obj = {
- 0: 9,
- 1: 11,
- 2: 12,
+ var toStringAccessed = false;
+ var obj = {
+ 0: 9,
+ 1: 11,
+ 2: 12,
- length: {
- toString: function() {
- toStringAccessed = true;
- return '2';
- }
- }
-};
+ length: {
+ toString: function () {
+ toStringAccessed = true;
+ return '2';
+ }
+ }
+ };
assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true');
assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-2.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-2.js
index 2898ce5ae..3b90cbdd1 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-2.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-2.js
@@ -9,19 +9,15 @@ description: >
(length overridden to true(type conversion))
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-var obj = {
- 0: 11,
- 1: 12,
- length: true
-};
+ var obj = { 0: 11, 1: 12, length: true };
assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true');
assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-20.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-20.js
index 9464bc45e..af023ef5e 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-20.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-20.js
@@ -9,27 +9,27 @@ description: >
own valueOf method
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-var valueOfAccessed = false;
+ var valueOfAccessed = false;
-var obj = {
- 0: 9,
- 1: 11,
- 2: 12,
- length: {
- valueOf: function() {
- valueOfAccessed = true;
- return 2;
- }
- }
-};
+ var obj = {
+ 0: 9,
+ 1: 11,
+ 2: 12,
+ length: {
+ valueOf: function () {
+ valueOfAccessed = true;
+ return 2;
+ }
+ }
+ };
assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true');
assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-21.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-21.js
index c0d6aa9c8..cb1926df0 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-21.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-21.js
@@ -10,32 +10,32 @@ description: >
returns a string
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-var toStringAccessed = false;
-var valueOfAccessed = false;
+ var toStringAccessed = false;
+ var valueOfAccessed = false;
-var obj = {
- 0: 9,
- 1: 11,
- 2: 12,
- length: {
- valueOf: function() {
- valueOfAccessed = true;
- return {};
- },
- toString: function() {
- toStringAccessed = true;
- return '2';
- }
- }
-};
+ var obj = {
+ 0: 9,
+ 1: 11,
+ 2: 12,
+ length: {
+ valueOf: function () {
+ valueOfAccessed = true;
+ return {};
+ },
+ toString: function () {
+ toStringAccessed = true;
+ return '2';
+ }
+ }
+ };
assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true');
assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-22.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-22.js
index 1dc3f2b00..a166c39f7 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-22.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-22.js
@@ -10,32 +10,32 @@ description: >
primitive values
---*/
-var callbackfnAccessed = false;
-var toStringAccessed = false;
-var valueOfAccessed = false;
+ var callbackfnAccessed = false;
+ var toStringAccessed = false;
+ var valueOfAccessed = false;
-function callbackfn(val, idx, obj) {
- callbackfnAccessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ callbackfnAccessed = true;
+ return val > 10;
+ }
-var obj = {
- 0: 11,
- 1: 12,
+ var obj = {
+ 0: 11,
+ 1: 12,
- length: {
- valueOf: function() {
- valueOfAccessed = true;
- return {};
- },
- toString: function() {
- toStringAccessed = true;
- return {};
- }
- }
-};
+ length: {
+ valueOf: function () {
+ valueOfAccessed = true;
+ return {};
+ },
+ toString: function () {
+ toStringAccessed = true;
+ return {};
+ }
+ }
+ };
assert.throws(TypeError, function() {
- Array.prototype.some.call(obj, callbackfn);
+ Array.prototype.some.call(obj, callbackfn);
});
assert(toStringAccessed, 'toStringAccessed !== true');
assert(valueOfAccessed, 'valueOfAccessed !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-23.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-23.js
index ec119aec4..29c6dfbbd 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-23.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-23.js
@@ -9,40 +9,40 @@ description: >
is an object with an own toString and inherited valueOf methods
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
-
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
-
-var valueOfAccessed = false;
-var toStringAccessed = false;
-
-var proto = {
- valueOf: function() {
- valueOfAccessed = true;
- return 2;
- }
-};
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-
-child.toString = function() {
- toStringAccessed = true;
- return '1';
-};
-
-var obj = {
- 0: 9,
- 1: 11,
- 2: 12,
- length: child
-};
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
+
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
+
+ var valueOfAccessed = false;
+ var toStringAccessed = false;
+
+ var proto = {
+ valueOf: function () {
+ valueOfAccessed = true;
+ return 2;
+ }
+ };
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+
+ child.toString = function () {
+ toStringAccessed = true;
+ return '1';
+ };
+
+ var obj = {
+ 0: 9,
+ 1: 11,
+ 2: 12,
+ length: child
+ };
assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true');
assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-24.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-24.js
index 562d7fdf1..fd95a3234 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-24.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-24.js
@@ -9,20 +9,20 @@ description: >
non-integer, ensure truncation occurs in the proper direction
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-var obj = {
- 0: 9,
- 10: 11,
- 11: 12,
- length: 11.5
-};
+ var obj = {
+ 0: 9,
+ 10: 11,
+ 11: 12,
+ length: 11.5
+ };
assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true');
assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-25.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-25.js
index e1916896b..ef10bed26 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-25.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-25.js
@@ -7,20 +7,20 @@ es5id: 15.4.4.17-3-25
description: Array.prototype.some - value of 'length' is a negative non-integer
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-var obj = {
- 0: 9,
- 1: 11,
- 2: 12,
- length: -4294967294.5
-};
+ var obj = {
+ 0: 9,
+ 1: 11,
+ 2: 12,
+ length: -4294967294.5
+ };
assert.sameValue(Array.prototype.some.call(obj, callbackfn1), false, 'Array.prototype.some.call(obj, callbackfn1)');
assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-28.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-28.js
index b47063417..31d402e2d 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-28.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-28.js
@@ -7,17 +7,17 @@ es5id: 15.4.4.17-3-28
description: Array.prototype.some - value of 'length' is boundary value (2^32)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+ }
-var obj = {
- 0: 12,
- length: 4294967296
-};
+ var obj = {
+ 0: 12,
+ length: 4294967296
+ };
assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-29.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-29.js
index 132a0ec3b..eeca40a0b 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-29.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-29.js
@@ -9,19 +9,19 @@ description: >
1)
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-var obj = {
- 0: 11,
- 1: 12,
- length: 4294967297
-};
+ var obj = {
+ 0: 11,
+ 1: 12,
+ length: 4294967297
+ };
assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true');
assert(Array.prototype.some.call(obj, callbackfn2), 'Array.prototype.some.call(obj, callbackfn2) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-3.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-3.js
index 97637f6a7..769953764 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-3.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-3.js
@@ -7,17 +7,14 @@ es5id: 15.4.4.17-3-3
description: Array.prototype.some - value of 'length' is a number (value is 0)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+ }
-var obj = {
- 0: 11,
- length: 0
-};
+ var obj = { 0: 11, length: 0 };
assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-4.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-4.js
index 3a35aa149..cfcc27fc3 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-4.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-4.js
@@ -7,17 +7,14 @@ es5id: 15.4.4.17-3-4
description: Array.prototype.some - value of 'length' is a number (value is +0)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+ }
-var obj = {
- 0: 11,
- length: +0
-};
+ var obj = { 0: 11, length: +0 };
assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-5.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-5.js
index 2eddf9891..27d31dea7 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-5.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-5.js
@@ -7,17 +7,14 @@ es5id: 15.4.4.17-3-5
description: Array.prototype.some - value of 'length' is a number (value is -0)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+ }
-var obj = {
- 0: 11,
- length: -0
-};
+ var obj = { 0: 11, length: -0 };
assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-6.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-6.js
index c53b2808f..053e096a9 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-6.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-6.js
@@ -9,20 +9,15 @@ description: >
positive)
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-var obj = {
- 0: 9,
- 1: 11,
- 2: 12,
- length: 2
-};
+ var obj = { 0: 9, 1: 11, 2: 12, length: 2 };
assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true');
assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-7.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-7.js
index fcfdbecf2..31de3aa25 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-7.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-7.js
@@ -9,20 +9,15 @@ description: >
negative)
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-var obj = {
- 0: 9,
- 1: 11,
- 2: 12,
- length: -4294967294
-};
+ var obj = { 0: 9, 1: 11, 2: 12, length: -4294967294 };
assert.sameValue(Array.prototype.some.call(obj, callbackfn1), false, 'Array.prototype.some.call(obj, callbackfn1)');
assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-8.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-8.js
index 6946b1899..f5496a481 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-8.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-8.js
@@ -9,17 +9,14 @@ description: >
Infinity)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+ }
-var obj = {
- 0: 11,
- length: Infinity
-};
+ var obj = { 0: 11, length: Infinity };
assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-9.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-9.js
index c0b2c5c15..c65f458c0 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-9.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-9.js
@@ -9,17 +9,14 @@ description: >
-Infinity)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+ }
-var obj = {
- 0: 11,
- length: -Infinity
-};
+ var obj = { 0: 11, length: -Infinity };
assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-4-1.js b/test/built-ins/Array/prototype/some/15.4.4.17-4-1.js
index 30976864e..9ff74cac0 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-4-1.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-4-1.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.17-4-1
description: Array.prototype.some throws TypeError if callbackfn is undefined
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.some();
+ arr.some();
});
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-4-10.js b/test/built-ins/Array/prototype/some/15.4.4.17-4-10.js
index 3300ce532..345f1474c 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-4-10.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-4-10.js
@@ -9,18 +9,15 @@ description: >
was thrown by step 2
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-Object.defineProperty(obj, "length", {
- get: function() {
- throw new Test262Error();
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ throw new Test262Error();
+ },
+ configurable: true
+ });
assert.throws(Test262Error, function() {
- Array.prototype.some.call(obj, undefined);
+ Array.prototype.some.call(obj, undefined);
});
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-4-11.js b/test/built-ins/Array/prototype/some/15.4.4.17-4-11.js
index d0c7e6a74..0eec6e6c3 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-4-11.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-4-11.js
@@ -9,22 +9,19 @@ description: >
was thrown by step 3
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-Object.defineProperty(obj, "length", {
- get: function() {
- return {
- toString: function() {
- throw new Test262Error();
- }
- };
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ toString: function () {
+ throw new Test262Error();
+ }
+ };
+ },
+ configurable: true
+ });
assert.throws(Test262Error, function() {
- Array.prototype.some.call(obj, undefined);
+ Array.prototype.some.call(obj, undefined);
});
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-4-12.js b/test/built-ins/Array/prototype/some/15.4.4.17-4-12.js
index 156090da3..a7d7c1f70 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-4-12.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-4-12.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.17-4-12
description: Array.prototype.some - 'callbackfn' is a function
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
assert([9, 11].some(callbackfn), '[9, 11].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-4-15.js b/test/built-ins/Array/prototype/some/15.4.4.17-4-15.js
index c46be1588..ef372ed69 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-4-15.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-4-15.js
@@ -9,26 +9,26 @@ description: >
passing undefined for callbackfn
---*/
-var obj = {};
-var lengthAccessed = false;
-var loopAccessed = false;
+ var obj = { };
+ var lengthAccessed = false;
+ var loopAccessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- lengthAccessed = true;
- return 20;
- },
- configurable: true
-});
-Object.defineProperty(obj, "0", {
- get: function() {
- loopAccessed = true;
- return 10;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ lengthAccessed = true;
+ return 20;
+ },
+ configurable: true
+ });
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ loopAccessed = true;
+ return 10;
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.some.call(obj);
+ Array.prototype.some.call(obj);
});
assert(lengthAccessed, 'lengthAccessed !== true');
assert.sameValue(loopAccessed, false, 'loopAccessed');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-4-2.js b/test/built-ins/Array/prototype/some/15.4.4.17-4-2.js
index 260caee75..8d200ecce 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-4-2.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-4-2.js
@@ -9,7 +9,7 @@ description: >
unreferenced
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(ReferenceError, function() {
- arr.some(foo);
+ arr.some(foo);
});
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-4-3.js b/test/built-ins/Array/prototype/some/15.4.4.17-4-3.js
index 74b4e4acc..79c8e45fd 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-4-3.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-4-3.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.17-4-3
description: Array.prototype.some throws TypeError if callbackfn is null
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.some(null);
+ arr.some(null);
});
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-4-4.js b/test/built-ins/Array/prototype/some/15.4.4.17-4-4.js
index ef357be26..9530cb781 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-4-4.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-4-4.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.17-4-4
description: Array.prototype.some throws TypeError if callbackfn is boolean
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.some(true);
+ arr.some(true);
});
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-4-5.js b/test/built-ins/Array/prototype/some/15.4.4.17-4-5.js
index 7a281a229..ac6df1f87 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-4-5.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-4-5.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.17-4-5
description: Array.prototype.some throws TypeError if callbackfn is number
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.some(5);
+ arr.some(5);
});
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-4-6.js b/test/built-ins/Array/prototype/some/15.4.4.17-4-6.js
index 7339b3cc4..530cfb4e1 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-4-6.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-4-6.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.17-4-6
description: Array.prototype.some throws TypeError if callbackfn is string
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.some("abc");
+ arr.some("abc");
});
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-4-7.js b/test/built-ins/Array/prototype/some/15.4.4.17-4-7.js
index 06105fd1e..be4508eeb 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-4-7.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-4-7.js
@@ -9,7 +9,7 @@ description: >
without a Call internal method
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.some(new Object());
+ arr.some(new Object());
});
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-4-8.js b/test/built-ins/Array/prototype/some/15.4.4.17-4-8.js
index 4735534bd..ea4f92934 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-4-8.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-4-8.js
@@ -9,21 +9,18 @@ description: >
when an exception occurs
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-var accessed = false;
+ var accessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- accessed = true;
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ accessed = true;
+ return 2;
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.some.call(obj, null);
+ Array.prototype.some.call(obj, null);
});
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-4-9.js b/test/built-ins/Array/prototype/some/15.4.4.17-4-9.js
index 7e7773359..ba37bfec5 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-4-9.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-4-9.js
@@ -9,25 +9,22 @@ description: >
when an exception occurs
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-var accessed = false;
+ var accessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- return {
- toString: function() {
- accessed = true;
- return "2";
- }
- };
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ toString: function () {
+ accessed = true;
+ return "2";
+ }
+ };
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.some.call(obj, null);
+ Array.prototype.some.call(obj, null);
});
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-1-s.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-1-s.js
index f94bc04c6..737db1039 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-5-1-s.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-1-s.js
@@ -8,14 +8,14 @@ description: Array.prototype.some - thisArg not passed to strict callbackfn
flags: [noStrict]
---*/
-var innerThisCorrect = false;
+ var innerThisCorrect = false;
-function callbackfn(val, idx, obj) {
- "use strict";
- innerThisCorrect = this === undefined;
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ "use strict";
+ innerThisCorrect = this===undefined;
+ return true;
+ }
-[1].some(callbackfn);
+ [1].some(callbackfn);
assert(innerThisCorrect, 'innerThisCorrect !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-1.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-1.js
index 9effb1bb1..bbbac58db 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-5-1.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-1.js
@@ -9,13 +9,13 @@ flags: [noStrict]
---*/
(function() {
- this._15_4_4_17_5_1 = false;
- var _15_4_4_17_5_1 = true;
+ this._15_4_4_17_5_1 = false;
+ var _15_4_4_17_5_1 = true;
- function callbackfn(val, idx, obj) {
- return this._15_4_4_17_5_1;
- }
- var arr = [1];
+ function callbackfn(val, idx, obj) {
+ return this._15_4_4_17_5_1;
+ }
+ var arr = [1];
- assert.sameValue(arr.some(callbackfn), false, 'arr.some(callbackfn)');
+assert.sameValue(arr.some(callbackfn), false, 'arr.some(callbackfn)');
})();
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-10.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-10.js
index 7b9f0b960..b30a41be9 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-5-10.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-10.js
@@ -7,10 +7,10 @@ es5id: 15.4.4.17-5-10
description: Array.prototype.some - Array Object can be used as thisArg
---*/
-var objArray = [];
+ var objArray = [];
-function callbackfn(val, idx, obj) {
- return this === objArray;
-}
+ function callbackfn(val, idx, obj) {
+ return this === objArray;
+ }
assert([11].some(callbackfn, objArray), '[11].some(callbackfn, objArray) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-11.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-11.js
index 19c1305d5..03e69a4ae 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-5-11.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-11.js
@@ -7,10 +7,10 @@ es5id: 15.4.4.17-5-11
description: Array.prototype.some - String object can be used as thisArg
---*/
-var objString = new String();
+ var objString = new String();
-function callbackfn(val, idx, obj) {
- return this === objString;
-}
+ function callbackfn(val, idx, obj) {
+ return this === objString;
+ }
assert([11].some(callbackfn, objString), '[11].some(callbackfn, objString) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-12.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-12.js
index 7f908ab7f..79f3e73ee 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-5-12.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-12.js
@@ -7,10 +7,10 @@ es5id: 15.4.4.17-5-12
description: Array.prototype.some - Boolean object can be used as thisArg
---*/
-var objBoolean = new Boolean();
+ var objBoolean = new Boolean();
-function callbackfn(val, idx, obj) {
- return this === objBoolean;
-}
+ function callbackfn(val, idx, obj) {
+ return this === objBoolean;
+ }
assert([11].some(callbackfn, objBoolean), '[11].some(callbackfn, objBoolean) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-13.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-13.js
index d5d94de65..ec80e4d63 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-5-13.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-13.js
@@ -7,10 +7,10 @@ es5id: 15.4.4.17-5-13
description: Array.prototype.some - Number object can be used as thisArg
---*/
-var objNumber = new Number();
+ var objNumber = new Number();
-function callbackfn(val, idx, obj) {
- return this === objNumber;
-}
+ function callbackfn(val, idx, obj) {
+ return this === objNumber;
+ }
assert([11].some(callbackfn, objNumber), '[11].some(callbackfn, objNumber) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-14.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-14.js
index 93e4deb57..41ce9be97 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-5-14.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-14.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.17-5-14
description: Array.prototype.some - the Math object can be used as thisArg
---*/
-function callbackfn(val, idx, obj) {
- return this === Math;
-}
+ function callbackfn(val, idx, obj) {
+ return this === Math;
+ }
assert([11].some(callbackfn, Math), '[11].some(callbackfn, Math) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-15.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-15.js
index 145681226..9bca4cb95 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-5-15.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-15.js
@@ -7,10 +7,10 @@ es5id: 15.4.4.17-5-15
description: Array.prototype.some - Date object can be used as thisArg
---*/
-var objDate = new Date();
+ var objDate = new Date();
-function callbackfn(val, idx, obj) {
- return this === objDate;
-}
+ function callbackfn(val, idx, obj) {
+ return this === objDate;
+ }
assert([11].some(callbackfn, objDate), '[11].some(callbackfn, objDate) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-16.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-16.js
index e9a56f636..122b6abf6 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-5-16.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-16.js
@@ -7,10 +7,10 @@ es5id: 15.4.4.17-5-16
description: Array.prototype.some - RegExp object can be used as thisArg
---*/
-var objRegExp = new RegExp();
+ var objRegExp = new RegExp();
-function callbackfn(val, idx, obj) {
- return this === objRegExp;
-}
+ function callbackfn(val, idx, obj) {
+ return this === objRegExp;
+ }
assert([11].some(callbackfn, objRegExp), '[11].some(callbackfn, objRegExp) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-17.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-17.js
index 27ec167f4..344f84d9e 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-5-17.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-17.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.17-5-17
description: Array.prototype.some - the JSON object can be used as thisArg
---*/
-function callbackfn(val, idx, obj) {
- return this === JSON;
-}
+ function callbackfn(val, idx, obj) {
+ return this === JSON;
+ }
assert([11].some(callbackfn, JSON), '[11].some(callbackfn, JSON) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-18.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-18.js
index 338b3c0dd..5d6a3dccd 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-5-18.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-18.js
@@ -7,10 +7,10 @@ es5id: 15.4.4.17-5-18
description: Array.prototype.some - Error object can be used as thisArg
---*/
-var objError = new RangeError();
+ var objError = new RangeError();
-function callbackfn(val, idx, obj) {
- return this === objError;
-}
+ function callbackfn(val, idx, obj) {
+ return this === objError;
+ }
assert([11].some(callbackfn, objError), '[11].some(callbackfn, objError) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-19.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-19.js
index 03815a02d..6e702f470 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-5-19.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-19.js
@@ -7,14 +7,14 @@ es5id: 15.4.4.17-5-19
description: Array.prototype.some - the Arguments object can be used as thisArg
---*/
-var arg;
+ var arg;
-function callbackfn(val, idx, obj) {
- return this === arg;
-}
+ function callbackfn(val, idx, obj) {
+ return this === arg;
+ }
-(function fun() {
- arg = arguments;
-}(1, 2, 3));
+ (function fun() {
+ arg = arguments;
+ }(1, 2, 3));
assert([11].some(callbackfn, arg), '[11].some(callbackfn, arg) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-2.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-2.js
index e0142b343..76776201d 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-5-2.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-2.js
@@ -7,15 +7,14 @@ es5id: 15.4.4.17-5-2
description: Array.prototype.some - thisArg is Object
---*/
-var res = false;
-var o = new Object();
-o.res = true;
+ var res = false;
+ var o = new Object();
+ o.res = true;
+ function callbackfn(val, idx, obj)
+ {
+ return this.res;
+ }
-function callbackfn(val, idx, obj)
-{
- return this.res;
-}
-
-var arr = [1];
+ var arr = [1];
assert.sameValue(arr.some(callbackfn, o), true, 'arr.some(callbackfn, o)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-21.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-21.js
index e80fe9b22..974c7f0e8 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-5-21.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-21.js
@@ -8,9 +8,8 @@ description: Array.prototype.some - the global object can be used as thisArg
---*/
var global = this;
-
-function callbackfn(val, idx, obj) {
- return this === global;
-}
+ function callbackfn(val, idx, obj) {
+ return this === global;
+ }
assert([11].some(callbackfn, this), '[11].some(callbackfn, global) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-22.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-22.js
index 448098312..e61e97a4a 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-5-22.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-22.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.17-5-22
description: Array.prototype.some - boolean primitive can be used as thisArg
---*/
-function callbackfn(val, idx, obj) {
- return this.valueOf() === false;
-}
+ function callbackfn(val, idx, obj) {
+ return this.valueOf() === false;
+ }
assert([11].some(callbackfn, false), '[11].some(callbackfn, false) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-23.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-23.js
index a5f030faf..3ded5ff25 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-5-23.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-23.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.17-5-23
description: Array.prototype.some - number primitive can be used as thisArg
---*/
-function callbackfn(val, idx, obj) {
- return this.valueOf() === 101;
-}
+ function callbackfn(val, idx, obj) {
+ return this.valueOf() === 101;
+ }
assert([11].some(callbackfn, 101), '[11].some(callbackfn, 101) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-24.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-24.js
index a1d268d09..5daa055f1 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-5-24.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-24.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.17-5-24
description: Array.prototype.some - string primitive can be used as thisArg
---*/
-function callbackfn(val, idx, obj) {
- return this.valueOf() === "abc";
-}
+ function callbackfn(val, idx, obj) {
+ return this.valueOf() === "abc";
+ }
assert([11].some(callbackfn, "abc"), '[11].some(callbackfn, "abc") !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-25.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-25.js
index 2c7c60a5a..a20dcd8ad 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-5-25.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-25.js
@@ -8,15 +8,15 @@ description: Array.prototype.some - thisArg not passed
flags: [noStrict]
---*/
-function innerObj() {
- this._15_4_4_17_5_25 = true;
- var _15_4_4_17_5_25 = false;
+ function innerObj() {
+ this._15_4_4_17_5_25 = true;
+ var _15_4_4_17_5_25 = false;
- function callbackfn(val, idx, obj) {
- return this._15_4_4_17_5_25;
- }
- var arr = [1];
- this.retVal = !arr.some(callbackfn);
-}
+ function callbackfn(val, idx, obj) {
+ return this._15_4_4_17_5_25;
+ }
+ var arr = [1];
+ this.retVal = !arr.some(callbackfn);
+ }
assert(new innerObj().retVal, 'new innerObj().retVal !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-3.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-3.js
index 6e5d2f245..69a2180cc 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-5-3.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-3.js
@@ -7,15 +7,14 @@ es5id: 15.4.4.17-5-3
description: Array.prototype.some - thisArg is Array
---*/
-var res = false;
-var a = new Array();
-a.res = true;
+ var res = false;
+ var a = new Array();
+ a.res = true;
+ function callbackfn(val, idx, obj)
+ {
+ return this.res;
+ }
-function callbackfn(val, idx, obj)
-{
- return this.res;
-}
-
-var arr = [1];
+ var arr = [1];
assert.sameValue(arr.some(callbackfn, a), true, 'arr.some(callbackfn, a)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-4.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-4.js
index 32e813992..95351bc9a 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-5-4.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-4.js
@@ -9,16 +9,15 @@ description: >
template(prototype)
---*/
-var res = false;
+ var res = false;
+ function callbackfn(val, idx, obj)
+ {
+ return this.res;
+ }
-function callbackfn(val, idx, obj)
-{
- return this.res;
-}
+ function foo(){}
+ foo.prototype.res = true;
+ var f = new foo();
+ var arr = [1];
-function foo() {}
-foo.prototype.res = true;
-var f = new foo();
-var arr = [1];
-
-assert.sameValue(arr.some(callbackfn, f), true, 'arr.some(callbackfn,f)');
+assert.sameValue(arr.some(callbackfn,f), true, 'arr.some(callbackfn,f)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-5.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-5.js
index 6b946e865..383181643 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-5-5.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-5.js
@@ -7,16 +7,15 @@ es5id: 15.4.4.17-5-5
description: Array.prototype.some - thisArg is object from object template
---*/
-var res = false;
+ var res = false;
+ function callbackfn(val, idx, obj)
+ {
+ return this.res;
+ }
-function callbackfn(val, idx, obj)
-{
- return this.res;
-}
+ function foo(){}
+ var f = new foo();
+ f.res = true;
+ var arr = [1];
-function foo() {}
-var f = new foo();
-f.res = true;
-var arr = [1];
-
-assert.sameValue(arr.some(callbackfn, f), true, 'arr.some(callbackfn,f)');
+assert.sameValue(arr.some(callbackfn,f), true, 'arr.some(callbackfn,f)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-6.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-6.js
index e0d074917..f7213225c 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-5-6.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-6.js
@@ -7,15 +7,14 @@ es5id: 15.4.4.17-5-6
description: Array.prototype.some - thisArg is function
---*/
-var res = false;
+ var res = false;
+ function callbackfn(val, idx, obj)
+ {
+ return this.res;
+ }
-function callbackfn(val, idx, obj)
-{
- return this.res;
-}
+ function foo(){}
+ foo.res = true;
+ var arr = [1];
-function foo() {}
-foo.res = true;
-var arr = [1];
-
-assert.sameValue(arr.some(callbackfn, foo), true, 'arr.some(callbackfn,foo)');
+assert.sameValue(arr.some(callbackfn,foo), true, 'arr.some(callbackfn,foo)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-7.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-7.js
index ae6c1fd3d..f4198a8b0 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-5-7.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-7.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.17-5-7
description: Array.prototype.some - built-in functions can be used as thisArg
---*/
-function callbackfn(val, idx, obj) {
- return this === eval;
-}
+ function callbackfn(val, idx, obj) {
+ return this === eval;
+ }
assert([11].some(callbackfn, eval), '[11].some(callbackfn, eval) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-9.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-9.js
index 155ab3fd2..501906bf9 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-5-9.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-9.js
@@ -7,10 +7,10 @@ es5id: 15.4.4.17-5-9
description: Array.prototype.some - Function Object can be used as thisArg
---*/
-var objFunction = function() {};
+ var objFunction = function () { };
-function callbackfn(val, idx, obj) {
- return this === objFunction;
-}
+ function callbackfn(val, idx, obj) {
+ return this === objFunction;
+ }
assert([11].some(callbackfn, objFunction), '[11].some(callbackfn, objFunction) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-1.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-1.js
index 081c7a788..5935681cb 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-1.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-1.js
@@ -9,19 +9,19 @@ description: >
it is called
---*/
-var calledForThree = false;
+ var calledForThree = false;
-function callbackfn(val, idx, obj)
-{
- arr[2] = 3;
- if (val !== 3)
- calledForThree = true;
+ function callbackfn(val, idx, obj)
+ {
+ arr[2] = 3;
+ if(val !== 3)
+ calledForThree = true;
- return false;
-}
+ return false;
+ }
-var arr = [1, 2, , 4, 5];
+ var arr = [1,2,,4,5];
-var val = arr.some(callbackfn);
+ var val = arr.some(callbackfn);
assert(calledForThree, 'calledForThree !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-2.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-2.js
index 117aeb738..8429933e0 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-2.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-2.js
@@ -9,16 +9,16 @@ description: >
after it is called
---*/
-function callbackfn(val, idx, obj)
-{
- arr[4] = 6;
- if (val < 6)
- return false;
- else
- return true;
-}
+ function callbackfn(val, idx, obj)
+ {
+ arr[4] = 6;
+ if(val < 6)
+ return false;
+ else
+ return true;
+ }
-var arr = [1, 2, 3, 4, 5];
+ var arr = [1,2,3,4,5];
assert.sameValue(arr.some(callbackfn), true, 'arr.some(callbackfn)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-3.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-3.js
index 8b193f933..d27cbb211 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-3.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-3.js
@@ -9,16 +9,16 @@ description: >
it is called
---*/
-function callbackfn(val, idx, obj)
-{
- delete arr[2];
- if (val !== 3)
- return false;
- else
- return true;
-}
+ function callbackfn(val, idx, obj)
+ {
+ delete arr[2];
+ if(val !== 3)
+ return false;
+ else
+ return true;
+ }
-var arr = [1, 2, 3, 4, 5];
+ var arr = [1,2,3,4,5];
assert.sameValue(arr.some(callbackfn), false, 'arr.some(callbackfn)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-4.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-4.js
index 7d683efcf..5b060256f 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-4.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-4.js
@@ -9,16 +9,16 @@ description: >
Array.length is decreased
---*/
-function callbackfn(val, idx, obj)
-{
- arr.length = 3;
- if (val < 4)
- return false;
- else
- return true;
-}
+ function callbackfn(val, idx, obj)
+ {
+ arr.length = 3;
+ if(val < 4)
+ return false;
+ else
+ return true;
+ }
-var arr = [1, 2, 3, 4, 6];
+ var arr = [1,2,3,4,6];
assert.sameValue(arr.some(callbackfn), false, 'arr.some(callbackfn)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-5.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-5.js
index 19fbb07fc..89a9a1770 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-5.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-5.js
@@ -9,18 +9,18 @@ description: >
sparse array
---*/
-function callbackfn(val, idx, obj)
-{
- arr[1000] = 5;
- if (val < 5)
- return false;
- else
- return true;
-}
+ function callbackfn(val, idx, obj)
+ {
+ arr[1000] = 5;
+ if(val < 5)
+ return false;
+ else
+ return true;
+ }
-var arr = new Array(10);
-arr[1] = 1;
-arr[2] = 2;
+ var arr = new Array(10);
+ arr[1] = 1;
+ arr[2] = 2;
assert.sameValue(arr.some(callbackfn), false, 'arr.some(callbackfn)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-6.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-6.js
index a5f38a483..e8da5fae6 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-6.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-6.js
@@ -9,20 +9,20 @@ description: >
call when same index is also present in prototype
---*/
-function callbackfn(val, idx, obj)
-{
- delete arr[4];
- if (val < 5)
- return false;
- else
- return true;
-}
+ function callbackfn(val, idx, obj)
+ {
+ delete arr[4];
+ if(val < 5)
+ return false;
+ else
+ return true;
+ }
-Array.prototype[4] = 5;
-var arr = [1, 2, 3, 4, 5];
+ Array.prototype[4] = 5;
+ var arr = [1,2,3,4,5];
-var res = arr.some(callbackfn);
-delete Array.prototype[4];
+ var res = arr.some(callbackfn) ;
+ delete Array.prototype[4];
assert.sameValue(res, true, 'res');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-8.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-8.js
index 2712e0c85..e257955c9 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-8.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-8.js
@@ -7,18 +7,14 @@ es5id: 15.4.4.17-7-8
description: Array.prototype.some - no observable effects occur if length is 0
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+ }
-var obj = {
- 0: 11,
- 1: 12,
- length: 0
-};
+ var obj = { 0: 11, 1: 12, length: 0 };
assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-9.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-9.js
index d07c519b0..312351df0 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-9.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-9.js
@@ -9,26 +9,22 @@ description: >
of iterations
---*/
-var called = 0;
+ var called = 0;
-function callbackfn(val, idx, obj) {
- called++;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ called++;
+ return val > 10;
+ }
-var obj = {
- 0: 9,
- 2: 12,
- length: 3
-};
+ var obj = { 0: 9, 2: 12, length: 3 };
-Object.defineProperty(obj, "1", {
- get: function() {
- obj.length = 2;
- return 8;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ obj.length = 2;
+ return 8;
+ },
+ configurable: true
+ });
assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true');
assert.sameValue(called, 3, 'called');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-1.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-1.js
index b6b52b099..997bac982 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-1.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-1.js
@@ -9,16 +9,15 @@ description: >
been assigned values
---*/
-var callCnt = 0;
+ var callCnt = 0;
+ function callbackfn(val, idx, obj)
+ {
+ callCnt++;
+ return false;
+ }
-function callbackfn(val, idx, obj)
-{
- callCnt++;
- return false;
-}
-
-var arr = new Array(10);
-arr[1] = undefined;
-arr.some(callbackfn);
+ var arr = new Array(10);
+ arr[1] = undefined;
+ arr.some(callbackfn);
assert.sameValue(callCnt, 1, 'callCnt');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-10.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-10.js
index 008b55632..acddf79b8 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-10.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-10.js
@@ -9,26 +9,22 @@ description: >
prototype index property not to be visited on an Array-like Object
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return idx === 1;
+ }
+ var arr = { 2: 2, length: 20 };
-function callbackfn(val, idx, obj) {
- accessed = true;
- return idx === 1;
-}
-var arr = {
- 2: 2,
- length: 20
-};
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete Object.prototype[1];
+ return 0;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "0", {
- get: function() {
- delete Object.prototype[1];
- return 0;
- },
- configurable: true
-});
-
-Object.prototype[1] = 1;
+ Object.prototype[1] = 1;
assert.sameValue(Array.prototype.some.call(arr, callbackfn), false, 'Array.prototype.some.call(arr, callbackfn)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-11.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-11.js
index 3e457ac48..e7f1170a9 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-11.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-11.js
@@ -9,23 +9,22 @@ description: >
prototype index property not to be visited on an Array
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return idx === 1;
+ }
+ var arr = [0, , 2];
-function callbackfn(val, idx, obj) {
- accessed = true;
- return idx === 1;
-}
-var arr = [0, , 2];
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete Array.prototype[1];
+ return 0;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "0", {
- get: function() {
- delete Array.prototype[1];
- return 0;
- },
- configurable: true
-});
-
-Array.prototype[1] = 1;
+ Array.prototype[1] = 1;
assert.sameValue(arr.some(callbackfn), false, 'arr.some(callbackfn)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-12.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-12.js
index 2eeb1e90c..e575c9fd6 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-12.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-12.js
@@ -10,28 +10,23 @@ description: >
Array-like object
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1 && val === 1) {
- return true;
- } else {
- return false;
- }
-}
-var arr = {
- 0: 0,
- 1: 111,
- 2: 2,
- length: 10
-};
+ function callbackfn(val, idx, obj) {
+ if (idx === 1 && val === 1) {
+ return true;
+ } else {
+ return false;
+ }
+ }
+ var arr = { 0: 0, 1: 111, 2: 2, length: 10 };
-Object.defineProperty(arr, "0", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
-Object.prototype[1] = 1;
+ Object.prototype[1] = 1;
assert(Array.prototype.some.call(arr, callbackfn), 'Array.prototype.some.call(arr, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-13.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-13.js
index c15b1fade..4f1afb3af 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-13.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-13.js
@@ -9,23 +9,23 @@ description: >
property causes prototype index property to be visited on an Array
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1 && val === 1) {
- return true;
- } else {
- return false;
- }
-}
-var arr = [0, 111, 2];
+ function callbackfn(val, idx, obj) {
+ if (idx === 1 && val === 1) {
+ return true;
+ } else {
+ return false;
+ }
+ }
+ var arr = [0, 111, 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype[1] = 1;
+ Array.prototype[1] = 1;
assert(arr.some(callbackfn), 'arr.some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-14.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-14.js
index ebcb32a56..db0bf87e4 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-14.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-14.js
@@ -9,21 +9,20 @@ description: >
property not to be visited
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return idx === 3;
+ }
+ var arr = [0, 1, 2, "last"];
-function callbackfn(val, idx, obj) {
- accessed = true;
- return idx === 3;
-}
-var arr = [0, 1, 2, "last"];
-
-Object.defineProperty(arr, "0", {
- get: function() {
- arr.length = 3;
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ arr.length = 3;
+ return 0;
+ },
+ configurable: true
+ });
assert.sameValue(arr.some(callbackfn), false, 'arr.some(callbackfn)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-15.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-15.js
index 69f8f9a6c..7c4647504 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-15.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-15.js
@@ -9,28 +9,28 @@ description: >
property causes prototype index property to be visited
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 2 && val === "prototype") {
- return true;
- } else {
- return false;
- }
-}
-var arr = [0, 1, 2];
+ function callbackfn(val, idx, obj) {
+ if (idx === 2 && val === "prototype") {
+ return true;
+ } else {
+ return false;
+ }
+ }
+ var arr = [0, 1, 2];
-Object.defineProperty(Array.prototype, "2", {
- get: function() {
- return "prototype";
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "2", {
+ get: function () {
+ return "prototype";
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- arr.length = 2;
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ arr.length = 2;
+ return 1;
+ },
+ configurable: true
+ });
assert(arr.some(callbackfn), 'arr.some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-16.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-16.js
index 86c3b3c00..21fb924b0 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-16.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-16.js
@@ -10,29 +10,29 @@ description: >
flags: [noStrict]
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 2 && val === "unconfigurable") {
- return true;
- } else {
- return false;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 2 && val === "unconfigurable") {
+ return true;
+ } else {
+ return false;
+ }
+ }
-var arr = [0, 1, 2];
+ var arr = [0, 1, 2];
-Object.defineProperty(arr, "2", {
- get: function() {
- return "unconfigurable";
- },
- configurable: false
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ return "unconfigurable";
+ },
+ configurable: false
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- arr.length = 2;
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ arr.length = 2;
+ return 1;
+ },
+ configurable: true
+ });
assert(arr.some(callbackfn), 'arr.some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-2.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-2.js
index abf9b78b9..e1dedd411 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-2.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-2.js
@@ -7,22 +7,22 @@ es5id: 15.4.4.17-7-b-2
description: Array.prototype.some - added properties in step 2 are visible here
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 2 && val === "length") {
- return true;
- } else {
- return false;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 2 && val === "length") {
+ return true;
+ } else {
+ return false;
+ }
+ }
-var arr = {};
+ var arr = { };
-Object.defineProperty(arr, "length", {
- get: function() {
- arr[2] = "length";
- return 3;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "length", {
+ get: function () {
+ arr[2] = "length";
+ return 3;
+ },
+ configurable: true
+ });
assert(Array.prototype.some.call(arr, callbackfn), 'Array.prototype.some.call(arr, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-3.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-3.js
index 2193d2469..fa54b0595 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-3.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-3.js
@@ -9,24 +9,20 @@ description: >
here
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return idx === 2;
+ }
+ var arr = { 2: 6.99, 8: 19};
-function callbackfn(val, idx, obj) {
- accessed = true;
- return idx === 2;
-}
-var arr = {
- 2: 6.99,
- 8: 19
-};
-
-Object.defineProperty(arr, "length", {
- get: function() {
- delete arr[2];
- return 10;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "length", {
+ get: function () {
+ delete arr[2];
+ return 10;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.some.call(arr, callbackfn), false, 'Array.prototype.some.call(arr, callbackfn)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-4.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-4.js
index 8b02ca336..2f3a8122d 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-4.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-4.js
@@ -9,29 +9,27 @@ description: >
current position are visited on an Array-like object
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1 && val === 1) {
- return true;
- } else {
- return false;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1 && val === 1) {
+ return true;
+ } else {
+ return false;
+ }
+ }
-var arr = {
- length: 2
-};
+ var arr = { length: 2 };
-Object.defineProperty(arr, "0", {
- get: function() {
- Object.defineProperty(arr, "1", {
- get: function() {
- return 1;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
assert(Array.prototype.some.call(arr, callbackfn), 'Array.prototype.some.call(arr, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-5.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-5.js
index ab0a8e637..c808200a9 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-5.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-5.js
@@ -9,27 +9,27 @@ description: >
current position are visited on an Array
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1 && val === 1) {
- return true;
- } else {
- return false;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1 && val === 1) {
+ return true;
+ } else {
+ return false;
+ }
+ }
-var arr = [0, , 2];
+ var arr = [0, , 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- Object.defineProperty(arr, "1", {
- get: function() {
- return 1;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
assert(arr.some(callbackfn), 'arr.some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-6.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-6.js
index 804282bc1..b57354dc5 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-6.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-6.js
@@ -9,28 +9,26 @@ description: >
current position are visited on an Array-like object
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1 && val === 6.99) {
- return true;
- } else {
- return false;
- }
-}
-var arr = {
- length: 2
-};
+ function callbackfn(val, idx, obj) {
+ if (idx === 1 && val === 6.99) {
+ return true;
+ } else {
+ return false;
+ }
+ }
+ var arr = { length: 2 };
-Object.defineProperty(arr, "0", {
- get: function() {
- Object.defineProperty(Object.prototype, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ Object.defineProperty(Object.prototype, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
assert(Array.prototype.some.call(arr, callbackfn), 'Array.prototype.some.call(arr, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-7.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-7.js
index 921e832ae..5dd76771b 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-7.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-7.js
@@ -9,26 +9,26 @@ description: >
current position are visited on an Array
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1 && val === 6.99) {
- return true;
- } else {
- return false;
- }
-}
-var arr = [0, , 2];
+ function callbackfn(val, idx, obj) {
+ if (idx === 1 && val === 6.99) {
+ return true;
+ } else {
+ return false;
+ }
+ }
+ var arr = [0, , 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- Object.defineProperty(Array.prototype, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ Object.defineProperty(Array.prototype, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
assert(arr.some(callbackfn), 'arr.some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-8.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-8.js
index 0ec7f3393..b99ca8154 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-8.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-8.js
@@ -9,30 +9,27 @@ description: >
not to be visited on an Array-like object
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return idx === 1;
+ }
+ var arr = { length: 2 };
-function callbackfn(val, idx, obj) {
- accessed = true;
- return idx === 1;
-}
-var arr = {
- length: 2
-};
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
-});
-
-Object.defineProperty(arr, "0", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.some.call(arr, callbackfn), false, 'Array.prototype.some.call(arr, callbackfn)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-9.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-9.js
index 42272384d..389a129ad 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-9.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-9.js
@@ -9,28 +9,27 @@ description: >
not to be visited on an Array
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return idx === 1;
+ }
+ var arr = [1, 2];
-function callbackfn(val, idx, obj) {
- accessed = true;
- return idx === 1;
-}
-var arr = [1, 2];
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return "6.99";
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- return "6.99";
- },
- configurable: true
-});
-
-Object.defineProperty(arr, "0", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
assert.sameValue(arr.some(callbackfn), false, 'arr.some(callbackfn)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-1.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-1.js
index 4f4115e58..7d22a36d5 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-1.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-1.js
@@ -9,18 +9,15 @@ description: >
property on an Array-like object
---*/
-var kValue = {};
+ var kValue = {};
-function callbackfn(val, idx, obj) {
- if (idx === 5) {
- return val === kValue;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 5) {
+ return val === kValue;
+ }
+ return false;
+ }
-var obj = {
- 5: kValue,
- length: 100
-};
+ var obj = { 5: kValue, length: 100 };
assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-10.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-10.js
index 85226cf16..32488b488 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-10.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-10.js
@@ -9,22 +9,22 @@ description: >
property on an Array
---*/
-var kValue = "abc";
+ var kValue = "abc";
-function callbackfn(val, idx, obj) {
- if (idx === 10) {
- return val === kValue;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 10) {
+ return val === kValue;
+ }
+ return false;
+ }
-var arr = [];
+ var arr = [];
-Object.defineProperty(arr, "10", {
- get: function() {
- return kValue;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "10", {
+ get: function () {
+ return kValue;
+ },
+ configurable: true
+ });
assert(arr.some(callbackfn), 'arr.some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-11.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-11.js
index f0c2c4a15..bbd62f9dc 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-11.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-11.js
@@ -10,30 +10,28 @@ description: >
Array-like object
---*/
-var kValue = "abc";
-
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- return val === kValue;
- }
- return false;
-}
-
-var proto = {
- 1: 6
-};
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-child.length = 10;
-
-Object.defineProperty(child, "1", {
- get: function() {
- return kValue;
- },
- configurable: true
-});
+ var kValue = "abc";
+
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ return val === kValue;
+ }
+ return false;
+ }
+
+ var proto = { 1: 6 };
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 10;
+
+ Object.defineProperty(child, "1", {
+ get: function () {
+ return kValue;
+ },
+ configurable: true
+ });
assert(Array.prototype.some.call(child, callbackfn), 'Array.prototype.some.call(child, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-12.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-12.js
index 753d317a6..94c83d554 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-12.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-12.js
@@ -9,23 +9,23 @@ description: >
property that overrides an inherited data property on an Array
---*/
-var kValue = "abc";
+ var kValue = "abc";
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- return val === kValue;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ return val === kValue;
+ }
+ return false;
+ }
-var arr = [];
+ var arr = [];
-Array.prototype[1] = 100;
-Object.defineProperty(arr, "1", {
- get: function() {
- return kValue;
- },
- configurable: true
-});
+ Array.prototype[1] = 100;
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return kValue;
+ },
+ configurable: true
+ });
assert(arr.some(callbackfn), 'arr.some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-13.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-13.js
index e358b560c..329d30001 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-13.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-13.js
@@ -10,36 +10,36 @@ description: >
Array-like object
---*/
-var kValue = "abc";
-
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- return val === kValue;
- }
- return false;
-}
-
-var proto = {};
-
-Object.defineProperty(proto, "1", {
- get: function() {
- return 5;
- },
- configurable: true
-});
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-child.length = 10;
-
-Object.defineProperty(child, "1", {
- get: function() {
- return kValue;
- },
- configurable: true
-});
+ var kValue = "abc";
+
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ return val === kValue;
+ }
+ return false;
+ }
+
+ var proto = {};
+
+ Object.defineProperty(proto, "1", {
+ get: function () {
+ return 5;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 10;
+
+ Object.defineProperty(child, "1", {
+ get: function () {
+ return kValue;
+ },
+ configurable: true
+ });
assert(Array.prototype.some.call(child, callbackfn), 'Array.prototype.some.call(child, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-14.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-14.js
index bdb2d85ab..b96e60a53 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-14.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-14.js
@@ -9,28 +9,28 @@ description: >
property that overrides an inherited accessor property on an Array
---*/
-var kValue = "abc";
+ var kValue = "abc";
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- return val === kValue;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ return val === kValue;
+ }
+ return false;
+ }
-var arr = [];
-Object.defineProperty(arr, "1", {
- get: function() {
- return kValue;
- },
- configurable: true
-});
+ var arr = [];
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return kValue;
+ },
+ configurable: true
+ });
-Object.defineProperty(Array.prototype, "1", {
- get: function() {
- return 10;
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "1", {
+ get: function () {
+ return 10;
+ },
+ configurable: true
+ });
assert(arr.some(callbackfn), 'arr.some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-15.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-15.js
index f357611b9..7f862aaad 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-15.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-15.js
@@ -9,28 +9,28 @@ description: >
accessor property on an Array-like object
---*/
-var kValue = "abc";
+ var kValue = "abc";
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- return val === kValue;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ return val === kValue;
+ }
+ return false;
+ }
-var proto = {};
+ var proto = {};
-Object.defineProperty(proto, "1", {
- get: function() {
- return kValue;
- },
- configurable: true
-});
+ Object.defineProperty(proto, "1", {
+ get: function () {
+ return kValue;
+ },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child.length = 20;
+ var child = new Con();
+ child.length = 20;
assert(Array.prototype.some.call(child, callbackfn), 'Array.prototype.some.call(child, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-16.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-16.js
index f610a757f..ee3cf2adb 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-16.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-16.js
@@ -9,20 +9,20 @@ description: >
accessor property on an Array
---*/
-var kValue = "abc";
+ var kValue = "abc";
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- return val === kValue;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ return val === kValue;
+ }
+ return false;
+ }
-Object.defineProperty(Array.prototype, "1", {
- get: function() {
- return kValue;
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "1", {
+ get: function () {
+ return kValue;
+ },
+ configurable: true
+ });
assert([, , ].some(callbackfn), '[, , ].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-17.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-17.js
index f3206fd63..b4113bdbc 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-17.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-17.js
@@ -9,19 +9,17 @@ description: >
property without a get function on an Array-like object
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- return typeof val === "undefined";
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ return typeof val === "undefined";
+ }
+ return false;
+ }
-var obj = {
- length: 2
-};
-Object.defineProperty(obj, "1", {
- set: function() {},
- configurable: true
-});
+ var obj = { length: 2 };
+ Object.defineProperty(obj, "1", {
+ set: function () { },
+ configurable: true
+ });
assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-18.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-18.js
index 55f64f688..41742e981 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-18.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-18.js
@@ -9,18 +9,18 @@ description: >
property without a get function on an Array
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return typeof val === "undefined";
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return typeof val === "undefined";
+ }
+ return false;
+ }
-var arr = [];
+ var arr = [];
-Object.defineProperty(arr, "0", {
- set: function() {},
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ set: function () { },
+ configurable: true
+ });
assert(arr.some(callbackfn), 'arr.some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-19.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-19.js
index 859dc4022..7d45a5523 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-19.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-19.js
@@ -10,21 +10,19 @@ description: >
accessor property on an Array-like object
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- return typeof val === "undefined";
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ return typeof val === "undefined";
+ }
+ return false;
+ }
-var obj = {
- length: 2
-};
-Object.defineProperty(obj, "1", {
- set: function() {},
- configurable: true
-});
+ var obj = { length: 2 };
+ Object.defineProperty(obj, "1", {
+ set: function () { },
+ configurable: true
+ });
-Object.prototype[1] = 10;
+ Object.prototype[1] = 10;
assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-2.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-2.js
index 543d15db4..cd3c2ced7 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-2.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-2.js
@@ -9,13 +9,13 @@ description: >
property on an Array
---*/
-var kValue = {};
+ var kValue = {};
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return kValue === val;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return kValue === val;
+ }
+ return false;
+ }
assert([kValue].some(callbackfn), '[kValue].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-20.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-20.js
index d39314005..320cb9899 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-20.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-20.js
@@ -10,20 +10,20 @@ description: >
accessor property on an Array
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return typeof val === "undefined";
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return typeof val === "undefined";
+ }
+ return false;
+ }
-var arr = [];
+ var arr = [];
-Object.defineProperty(arr, "0", {
- set: function() {},
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ set: function () { },
+ configurable: true
+ });
-Array.prototype[0] = 100;
+ Array.prototype[0] = 100;
assert(arr.some(callbackfn), 'arr.some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-21.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-21.js
index 3365018fc..18fc2abe1 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-21.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-21.js
@@ -9,23 +9,23 @@ description: >
accessor property without a get function on an Array-like object
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- return typeof val === "undefined";
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ return typeof val === "undefined";
+ }
+ return false;
+ }
-var proto = {};
-Object.defineProperty(proto, "1", {
- set: function() {},
- configurable: true
-});
+ var proto = {};
+ Object.defineProperty(proto, "1", {
+ set: function () { },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child.length = 2;
+ var child = new Con();
+ child.length = 2;
assert(Array.prototype.some.call(child, callbackfn), 'Array.prototype.some.call(child, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-22.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-22.js
index 5635c65aa..a6086840b 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-22.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-22.js
@@ -9,16 +9,16 @@ description: >
accessor property without a get function on an Array
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return typeof val === "undefined";
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return typeof val === "undefined";
+ }
+ return false;
+ }
-Object.defineProperty(Array.prototype, "0", {
- set: function() {},
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ set: function () { },
+ configurable: true
+ });
assert([, ].some(callbackfn), '[, ].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-25.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-25.js
index fe7a12aad..87a76dd0b 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-25.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-25.js
@@ -10,15 +10,15 @@ description: >
less than number of parameters)
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === 11;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === 11;
+ }
+ return false;
+ }
-var func = function(a, b) {
- return Array.prototype.some.call(arguments, callbackfn);
-};
+ var func = function (a, b) {
+ return Array.prototype.some.call(arguments, callbackfn);
+ };
assert(func(11), 'func(11) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-26.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-26.js
index 8a0dd4b0f..626c4fec9 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-26.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-26.js
@@ -10,24 +10,24 @@ description: >
number of parameters)
---*/
-var firstResult = false;
-var secondResult = false;
+ var firstResult = false;
+ var secondResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- firstResult = (val === 11);
- return false;
- } else if (idx === 1) {
- secondResult = (val === 9);
- return false;
- } else {
- return true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ firstResult = (val === 11);
+ return false;
+ } else if (idx === 1) {
+ secondResult = (val === 9);
+ return false;
+ } else {
+ return true;
+ }
+ }
-var func = function(a, b) {
- return Array.prototype.some.call(arguments, callbackfn);
-};
+ var func = function (a, b) {
+ return Array.prototype.some.call(arguments, callbackfn);
+ };
assert.sameValue(func(11, 9), false, 'func(11, 9)');
assert(firstResult, 'firstResult !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-27.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-27.js
index f54a10f05..de0a66b25 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-27.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-27.js
@@ -10,28 +10,28 @@ description: >
greater than number of parameters)
---*/
-var firstResult = false;
-var secondResult = false;
-var thirdResult = false;
+ var firstResult = false;
+ var secondResult = false;
+ var thirdResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- firstResult = (val === 11);
- return false;
- } else if (idx === 1) {
- secondResult = (val === 12);
- return false;
- } else if (idx === 2) {
- thirdResult = (val === 9);
- return false;
- } else {
- return true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ firstResult = (val === 11);
+ return false;
+ } else if (idx === 1) {
+ secondResult = (val === 12);
+ return false;
+ } else if (idx === 2) {
+ thirdResult = (val === 9);
+ return false;
+ } else {
+ return true;
+ }
+ }
-var func = function(a, b) {
- return Array.prototype.some.call(arguments, callbackfn);
-};
+ var func = function (a, b) {
+ return Array.prototype.some.call(arguments, callbackfn);
+ };
assert.sameValue(func(11, 12, 9), false, 'func(11, 12, 9)');
assert(firstResult, 'firstResult !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-28.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-28.js
index 8e423c615..da8a40f1e 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-28.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-28.js
@@ -9,32 +9,32 @@ description: >
iterations is observed on an Array
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- return val === 12;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ return val === 12;
+ }
+ return false;
+ }
-var arr = [];
-var helpVerifyVar = 11;
+ var arr = [];
+ var helpVerifyVar = 11;
-Object.defineProperty(arr, "1", {
- get: function() {
- return helpVerifyVar;
- },
- set: function(args) {
- helpVerifyVar = args;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return helpVerifyVar;
+ },
+ set: function (args) {
+ helpVerifyVar = args;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "0", {
- get: function() {
- arr[1] = 12;
- return 9;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ arr[1] = 12;
+ return 9;
+ },
+ configurable: true
+ });
assert(arr.some(callbackfn), 'arr.some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-29.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-29.js
index ac802b112..416660ba0 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-29.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-29.js
@@ -9,34 +9,32 @@ description: >
iterations on an Array-like object
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- return val === 12;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ return val === 12;
+ }
+ return false;
+ }
-var obj = {
- length: 2
-};
-var helpVerifyVar = 11;
+ var obj = { length: 2 };
+ var helpVerifyVar = 11;
-Object.defineProperty(obj, "1", {
- get: function() {
- return helpVerifyVar;
- },
- set: function(args) {
- helpVerifyVar = args;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ return helpVerifyVar;
+ },
+ set: function (args) {
+ helpVerifyVar = args;
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "0", {
- get: function() {
- obj[1] = 12;
- return 11;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ obj[1] = 12;
+ return 11;
+ },
+ configurable: true
+ });
assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-3.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-3.js
index 055231576..e9b625ee7 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-3.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-3.js
@@ -10,24 +10,22 @@ description: >
Array-like object
---*/
-var kValue = "abc";
+ var kValue = "abc";
-function callbackfn(val, idx, obj) {
- if (idx === 5) {
- return val === kValue;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 5) {
+ return val === kValue;
+ }
+ return false;
+ }
-var proto = {
- 5: 100
-};
+ var proto = { 5: 100 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child[5] = kValue;
-child.length = 10;
+ var child = new Con();
+ child[5] = kValue;
+ child.length = 10;
assert(Array.prototype.some.call(child, callbackfn), 'Array.prototype.some.call(child, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-30.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-30.js
index 4ce67a0b6..9803d3576 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-30.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-30.js
@@ -9,25 +9,22 @@ description: >
terminate iteration on an Array-like object
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ if (idx > 1) {
+ accessed = true;
+ }
+ return true;
+ }
-function callbackfn(val, idx, obj) {
- if (idx > 1) {
- accessed = true;
- }
- return true;
-}
-
-var obj = {
- length: 20
-};
-Object.defineProperty(obj, "1", {
- get: function() {
- throw new RangeError("unhandle exception happened in getter");
- },
- configurable: true
-});
+ var obj = { length: 20 };
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ throw new RangeError("unhandle exception happened in getter");
+ },
+ configurable: true
+ });
assert.throws(RangeError, function() {
- Array.prototype.some.call(obj, callbackfn);
+ Array.prototype.some.call(obj, callbackfn);
});
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-31.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-31.js
index 9d9cc00c1..5fe12afb7 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-31.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-31.js
@@ -9,24 +9,23 @@ description: >
terminate iteration on an Array
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ if (idx > 0) {
+ accessed = true;
+ }
+ return true;
+ }
-function callbackfn(val, idx, obj) {
- if (idx > 0) {
- accessed = true;
- }
- return true;
-}
-
-var arr = [];
-arr[10] = 100;
-Object.defineProperty(arr, "0", {
- get: function() {
- throw new RangeError("unhandle exception happened in getter");
- },
- configurable: true
-});
+ var arr = [];
+ arr[10] = 100;
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ throw new RangeError("unhandle exception happened in getter");
+ },
+ configurable: true
+ });
assert.throws(RangeError, function() {
- arr.some(callbackfn);
+ arr.some(callbackfn);
});
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-4.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-4.js
index 64dd495a9..8312a515b 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-4.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-4.js
@@ -9,15 +9,15 @@ description: >
property that overrides an inherited data property on an Array
---*/
-var kValue = "abc";
+ var kValue = "abc";
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === kValue;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === kValue;
+ }
+ return false;
+ }
-Array.prototype[0] = 11;
+ Array.prototype[0] = 11;
assert([kValue].some(callbackfn), '[kValue].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-5.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-5.js
index d8fcfaf35..5d2c92a76 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-5.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-5.js
@@ -10,32 +10,32 @@ description: >
Array-like object
---*/
-var kValue = 1000;
-
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === kValue;
- }
- return false;
-}
-
-var proto = {};
-
-Object.defineProperty(proto, "0", {
- get: function() {
- return 5;
- },
- configurable: true
-});
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-child.length = 2;
-Object.defineProperty(child, "0", {
- value: kValue,
- configurable: true
-});
+ var kValue = 1000;
+
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === kValue;
+ }
+ return false;
+ }
+
+ var proto = {};
+
+ Object.defineProperty(proto, "0", {
+ get: function () {
+ return 5;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 2;
+ Object.defineProperty(child, "0", {
+ value: kValue,
+ configurable: true
+ });
assert(Array.prototype.some.call(child, callbackfn), 'Array.prototype.some.call(child, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-6.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-6.js
index ef5da1409..19eece565 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-6.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-6.js
@@ -9,20 +9,20 @@ description: >
property that overrides an inherited accessor property on an Array
---*/
-var kValue = 1000;
+ var kValue = 1000;
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === kValue;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === kValue;
+ }
+ return false;
+ }
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return 9;
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return 9;
+ },
+ configurable: true
+ });
assert([kValue].some(callbackfn), '[kValue].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-7.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-7.js
index f346f9252..fe4c1e892 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-7.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-7.js
@@ -9,23 +9,21 @@ description: >
property on an Array-like object
---*/
-var kValue = 'abc';
+ var kValue = 'abc';
-function callbackfn(val, idx, obj) {
- if (5 === idx) {
- return kValue === val;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (5 === idx) {
+ return kValue === val;
+ }
+ return false;
+ }
-var proto = {
- 5: kValue
-};
+ var proto = { 5: kValue };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child.length = 10;
+ var child = new Con();
+ child.length = 10;
assert(Array.prototype.some.call(child, callbackfn), 'Array.prototype.some.call(child, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-8.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-8.js
index fb71d4fc7..7fdcc8816 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-8.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-8.js
@@ -9,15 +9,15 @@ description: >
property on an Array
---*/
-var kValue = {};
+ var kValue = {};
-function callbackfn(val, idx, obj) {
- if (0 === idx) {
- return kValue === val;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (0 === idx) {
+ return kValue === val;
+ }
+ return false;
+ }
-Array.prototype[0] = kValue;
+ Array.prototype[0] = kValue;
assert([, ].some(callbackfn), '[, ].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-9.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-9.js
index 208143274..fe3819ddd 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-9.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-9.js
@@ -9,24 +9,22 @@ description: >
property on an Array-like object
---*/
-var kValue = "abc";
+ var kValue = "abc";
-function callbackfn(val, idx, obj) {
- if (idx === 10) {
- return val === kValue;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 10) {
+ return val === kValue;
+ }
+ return false;
+ }
-var obj = {
- length: 20
-};
+ var obj = { length: 20 };
-Object.defineProperty(obj, "10", {
- get: function() {
- return kValue;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "10", {
+ get: function () {
+ return kValue;
+ },
+ configurable: true
+ });
assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-1.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-1.js
index c865faae2..5d83fff70 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-1.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-1.js
@@ -7,15 +7,15 @@ es5id: 15.4.4.17-7-c-ii-1
description: Array.prototype.some - callbackfn called with correct parameters
---*/
-function callbackfn(val, idx, obj)
-{
- if (obj[idx] === val)
- return false;
- else
- return true;
-}
+ function callbackfn(val, idx, obj)
+ {
+ if(obj[idx] === val)
+ return false;
+ else
+ return true;
+ }
-var arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
+ var arr = [0,1,2,3,4,5,6,7,8,9];
assert.sameValue(arr.some(callbackfn), false, 'arr.some(callbackfn)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-10.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-10.js
index 13301777b..b7bbd6e84 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-10.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-10.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.17-7-c-ii-10
description: Array.prototype.some - callbackfn is called with 1 formal parameter
---*/
-function callbackfn(val) {
- return val > 10;
-}
+ function callbackfn(val) {
+ return val > 10;
+ }
assert([11, 12].some(callbackfn), '[11, 12].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-11.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-11.js
index 3bf00f445..c67f16452 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-11.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-11.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.17-7-c-ii-11
description: Array.prototype.some - callbackfn is called with 2 formal parameter
---*/
-function callbackfn(val, idx) {
- return val > 10 && arguments[2][idx] === val;
-}
+ function callbackfn(val, idx) {
+ return val > 10 && arguments[2][idx] === val;
+ }
assert([9, 12].some(callbackfn), '[9, 12].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-12.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-12.js
index a892afde5..9fcb899c6 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-12.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-12.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.17-7-c-ii-12
description: Array.prototype.some - callbackfn is called with 3 formal parameter
---*/
-function callbackfn(val, idx, obj) {
- return val > 10 && obj[idx] === val;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10 && obj[idx] === val;
+ }
assert([9, 12].some(callbackfn), '[9, 12].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-13.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-13.js
index 6917e2635..6d61b65b6 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-13.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-13.js
@@ -9,8 +9,8 @@ description: >
get parameter value
---*/
-function callbackfn() {
- return arguments[2][arguments[1]] === arguments[0];
-}
+ function callbackfn() {
+ return arguments[2][arguments[1]] === arguments[0];
+ }
assert([9, 12].some(callbackfn), '[9, 12].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-16.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-16.js
index d6fb5d60b..c1f58e55a 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-16.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-16.js
@@ -9,13 +9,10 @@ description: >
when 'T' is not an object ('T' is a boolean primitive)
---*/
-function callbackfn(val, idx, obj) {
- return this.valueOf() === false;
-}
+ function callbackfn(val, idx, obj) {
+ return this.valueOf() === false;
+ }
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert(Array.prototype.some.call(obj, callbackfn, false), 'Array.prototype.some.call(obj, callbackfn, false) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-17.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-17.js
index 198346eb6..85a7f5b2e 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-17.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-17.js
@@ -9,13 +9,10 @@ description: >
when T is not an object (T is a number primitive)
---*/
-function callbackfn(val, idx, obj) {
- return this.valueOf() === 5;
-}
+ function callbackfn(val, idx, obj) {
+ return this.valueOf() === 5;
+ }
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert(Array.prototype.some.call(obj, callbackfn, 5), 'Array.prototype.some.call(obj, callbackfn, 5) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-18.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-18.js
index 9498f8079..e8edeec02 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-18.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-18.js
@@ -9,14 +9,10 @@ description: >
when T is not an object (T is a string primitive)
---*/
-function callbackfn(val, idx, obj) {
- return this.valueOf() === "hello!";
-}
+ function callbackfn(val, idx, obj) {
+ return this.valueOf() === "hello!";
+ }
-var obj = {
- 0: 11,
- 1: 9,
- length: 2
-};
+ var obj = { 0: 11, 1: 9, length: 2 };
assert(Array.prototype.some.call(obj, callbackfn, "hello!"), 'Array.prototype.some.call(obj, callbackfn, "hello!") !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-19.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-19.js
index 4d0063e47..2e8a6f213 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-19.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-19.js
@@ -7,19 +7,14 @@ es5id: 15.4.4.17-7-c-ii-19
description: Array.prototype.some - non-indexed properties are not called
---*/
-var called = 0;
+ var called = 0;
-function callbackfn(val, idx, obj) {
- called++;
- return val === 11;
-}
+ function callbackfn(val, idx, obj) {
+ called++;
+ return val === 11;
+ }
-var obj = {
- 0: 9,
- 10: 8,
- non_index_property: 11,
- length: 20
-};
+ var obj = { 0: 9, 10: 8, non_index_property: 11, length: 20 };
assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)');
assert.sameValue(called, 2, 'called');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-2.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-2.js
index be738c154..0546acaa1 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-2.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-2.js
@@ -7,16 +7,16 @@ es5id: 15.4.4.17-7-c-ii-2
description: Array.prototype.some - callbackfn takes 3 arguments
---*/
-function callbackfn(val, idx, obj)
-{
- if (arguments.length === 3) //verify if callbackfn was called with 3 parameters
- return false;
- else
- return true;
-}
+ function callbackfn(val, idx, obj)
+ {
+ if(arguments.length === 3) //verify if callbackfn was called with 3 parameters
+ return false;
+ else
+ return true;
+ }
-var arr = [0, 1, true, null, new Object(), "five"];
-arr[999999] = -6.6;
+ var arr = [0,1,true,null,new Object(),"five"];
+ arr[999999] = -6.6;
assert.sameValue(arr.some(callbackfn), false, 'arr.some(callbackfn)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-20.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-20.js
index 899fb2efb..342f98b38 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-20.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-20.js
@@ -9,17 +9,12 @@ description: >
(thisArg is correct)
---*/
-var thisArg = {
- threshold: 10
-};
+ var thisArg = { threshold: 10 };
-function callbackfn(val, idx, obj) {
- return this === thisArg;
-}
+ function callbackfn(val, idx, obj) {
+ return this === thisArg;
+ }
-var obj = {
- 0: 11,
- length: 2
-};
+ var obj = { 0: 11, length: 2 };
assert(Array.prototype.some.call(obj, callbackfn, thisArg), 'Array.prototype.some.call(obj, callbackfn, thisArg) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-21.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-21.js
index 31d3af3b0..2e9555012 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-21.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-21.js
@@ -9,25 +9,21 @@ description: >
(kValue is correct)
---*/
-var firstIndex = false;
-var secondIndex = false;
+ var firstIndex = false;
+ var secondIndex = false;
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- firstIndex = (val === 11);
- return false;
- }
- if (idx === 1) {
- secondIndex = (val === 12);
- return false;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ firstIndex = (val === 11);
+ return false;
+ }
+ if (idx === 1) {
+ secondIndex = (val === 12);
+ return false;
+ }
+ }
-var obj = {
- 0: 11,
- 1: 12,
- length: 2
-};
+ var obj = { 0: 11, 1: 12, length: 2 };
assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)');
assert(firstIndex, 'firstIndex !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-22.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-22.js
index e01efeac2..00f6a963c 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-22.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-22.js
@@ -9,25 +9,21 @@ description: >
(the index k is correct)
---*/
-var firstIndex = false;
-var secondIndex = false;
+ var firstIndex = false;
+ var secondIndex = false;
-function callbackfn(val, idx, obj) {
- if (val === 11) {
- firstIndex = (idx === 0);
- return false;
- }
- if (val === 12) {
- secondIndex = (idx === 1);
- return false;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (val === 11) {
+ firstIndex = (idx === 0);
+ return false;
+ }
+ if (val === 12) {
+ secondIndex = (idx === 1);
+ return false;
+ }
+ }
-var obj = {
- 0: 11,
- 1: 12,
- length: 2
-};
+ var obj = { 0: 11, 1: 12, length: 2 };
assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)');
assert(firstIndex, 'firstIndex !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-23.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-23.js
index 58c4b0ef2..b5baef317 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-23.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-23.js
@@ -9,14 +9,10 @@ description: >
(this object O is correct)
---*/
-var obj = {
- 0: 11,
- 1: 12,
- length: 2
-};
+ var obj = { 0: 11, 1: 12, length: 2 };
-function callbackfn(val, idx, o) {
- return obj === o;
-}
+ function callbackfn(val, idx, o) {
+ return obj === o;
+ }
assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-3.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-3.js
index fb0265b5e..8e784584d 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-3.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-3.js
@@ -9,18 +9,17 @@ description: >
returns true
---*/
-var callCnt = 0;
+ var callCnt = 0;
+ function callbackfn(val, idx, obj)
+ {
+ callCnt++;
+ if(idx > 5)
+ return true;
+ else
+ return false;
+ }
-function callbackfn(val, idx, obj)
-{
- callCnt++;
- if (idx > 5)
- return true;
- else
- return false;
-}
-
-var arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
+ var arr = [0,1,2,3,4,5,6,7,8,9];
assert.sameValue(arr.some(callbackfn), true, 'arr.some(callbackfn)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-4.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-4.js
index 8642acfdb..c9c277ef3 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-4.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-4.js
@@ -9,19 +9,19 @@ description: >
order
---*/
-var arr = [0, 1, 2, 3, 4, 5];
-var lastIdx = 0;
-var called = 0;
+ var arr = [0, 1, 2, 3, 4, 5];
+ var lastIdx = 0;
+ var called = 0;
-function callbackfn(val, idx, o) {
- called++;
- if (lastIdx !== idx) {
- return true;
- } else {
- lastIdx++;
- return false;
- }
-}
+ function callbackfn(val, idx, o) {
+ called++;
+ if (lastIdx !== idx) {
+ return true;
+ } else {
+ lastIdx++;
+ return false;
+ }
+ }
assert.sameValue(arr.some(callbackfn), false, 'arr.some(callbackfn)');
assert.sameValue(arr.length, called, 'arr.length');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-5.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-5.js
index 5b80ddcde..bfac0f468 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-5.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-5.js
@@ -9,21 +9,21 @@ description: >
and not prior to starting the loop
---*/
-var kIndex = [];
+ var kIndex = [];
-//By below way, we could verify that k would be setted as 0, 1, ..., length - 1 in order, and each value will be setted one time.
-function callbackfn(val, idx, obj) {
- //Each position should be visited one time, which means k is accessed one time during iterations.
- if (typeof kIndex[idx] === "undefined") {
- //when current position is visited, its previous index should has been visited.
- if (idx !== 0 && typeof kIndex[idx - 1] === "undefined") {
- return true;
- }
- kIndex[idx] = 1;
- return false;
- } else {
- return true;
- }
-}
+ //By below way, we could verify that k would be setted as 0, 1, ..., length - 1 in order, and each value will be setted one time.
+ function callbackfn(val, idx, obj) {
+ //Each position should be visited one time, which means k is accessed one time during iterations.
+ if (typeof kIndex[idx] === "undefined") {
+ //when current position is visited, its previous index should has been visited.
+ if (idx !== 0 && typeof kIndex[idx - 1] === "undefined") {
+ return true;
+ }
+ kIndex[idx] = 1;
+ return false;
+ } else {
+ return true;
+ }
+ }
assert.sameValue([11, 12, 13, 14].some(callbackfn, undefined), false, '[11, 12, 13, 14].some(callbackfn, undefined)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-6.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-6.js
index f67b3e415..8700b391a 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-6.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-6.js
@@ -7,14 +7,11 @@ es5id: 15.4.4.17-7-c-ii-6
description: Array.prototype.some - arguments to callbackfn are self consistent
---*/
-var obj = {
- 0: 11,
- length: 1
-};
-var thisArg = {};
+ var obj = { 0: 11, length: 1 };
+ var thisArg = {};
-function callbackfn() {
- return this === thisArg && arguments[0] === 11 && arguments[1] === 0 && arguments[2] === obj;
-}
+ function callbackfn() {
+ return this === thisArg && arguments[0] === 11 && arguments[1] === 0 && arguments[2] === obj;
+ }
assert(Array.prototype.some.call(obj, callbackfn, thisArg), 'Array.prototype.some.call(obj, callbackfn, thisArg) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-7.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-7.js
index ff362211b..a8742d69f 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-7.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-7.js
@@ -9,25 +9,20 @@ description: >
terminate iteration
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- if (idx > 0) {
- accessed = true;
- }
- if (idx === 0) {
- throw new Error("Exception occurred in callbackfn");
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx > 0) {
+ accessed = true;
+ }
+ if (idx === 0) {
+ throw new Error("Exception occurred in callbackfn");
+ }
+ return false;
+ }
-var obj = {
- 0: 9,
- 1: 100,
- 10: 11,
- length: 20
-};
+ var obj = { 0: 9, 1: 100, 10: 11, length: 20 };
assert.throws(Error, function() {
- Array.prototype.some.call(obj, callbackfn);
+ Array.prototype.some.call(obj, callbackfn);
});
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-8.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-8.js
index 451d0b3d3..9c926f28a 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-8.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-8.js
@@ -9,17 +9,13 @@ description: >
iterations is observed
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- obj[idx + 1] = 11;
- }
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ obj[idx + 1] = 11;
+ }
+ return val > 10;
+ }
-var obj = {
- 0: 9,
- 1: 8,
- length: 2
-};
+ var obj = { 0: 9, 1: 8, length: 2 };
assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-9.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-9.js
index b9c6c8eda..a49cd35a6 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-9.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-9.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.17-7-c-ii-9
description: Array.prototype.some - callbackfn is called with 0 formal parameter
---*/
-function callbackfn() {
- return true;
-}
+ function callbackfn() {
+ return true;
+ }
assert([11, 12].some(callbackfn), '[11, 12].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-1.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-1.js
index 4e2074291..5acfb38bf 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-1.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-1.js
@@ -7,17 +7,14 @@ es5id: 15.4.4.17-7-c-iii-1
description: Array.prototype.some - return value of callbackfn is undefined
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return undefined;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return undefined;
+ }
-var obj = {
- 0: 11,
- length: 2
-};
+ var obj = { 0: 11, length: 2 };
assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-10.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-10.js
index d56170844..0b26acd25 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-10.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-10.js
@@ -9,8 +9,8 @@ description: >
(value is Infinity)
---*/
-function callbackfn(val, idx, obj) {
- return Infinity;
-}
+ function callbackfn(val, idx, obj) {
+ return Infinity;
+ }
assert([11].some(callbackfn), '[11].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-11.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-11.js
index 1defdc292..e17e0f6ff 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-11.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-11.js
@@ -9,8 +9,8 @@ description: >
(value is -Infinity)
---*/
-function callbackfn(val, idx, obj) {
- return -Infinity;
-}
+ function callbackfn(val, idx, obj) {
+ return -Infinity;
+ }
assert([11].some(callbackfn), '[11].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-12.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-12.js
index adfd8efbf..1eaab0e8a 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-12.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-12.js
@@ -9,11 +9,11 @@ description: >
(value is NaN)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return NaN;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return NaN;
+ }
assert.sameValue([11].some(callbackfn), false, '[11].some(callbackfn)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-13.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-13.js
index 2e20fa5ba..5690c14b4 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-13.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-13.js
@@ -9,12 +9,12 @@ description: >
string
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return "";
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return "";
+ }
assert.sameValue([11].some(callbackfn), false, '[11].some(callbackfn)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-14.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-14.js
index a15cbed88..c0776e90f 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-14.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-14.js
@@ -9,8 +9,8 @@ description: >
string
---*/
-function callbackfn(val, idx, obj) {
- return "non-empty string";
-}
+ function callbackfn(val, idx, obj) {
+ return "non-empty string";
+ }
assert([11].some(callbackfn), '[11].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-15.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-15.js
index 1de47b0a3..37974b816 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-15.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-15.js
@@ -9,8 +9,8 @@ description: >
object
---*/
-function callbackfn(val, idx, obj) {
- return function() {};
-}
+ function callbackfn(val, idx, obj) {
+ return function () { };
+ }
assert([11].some(callbackfn), '[11].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-16.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-16.js
index f0b7db75d..dc3c10f89 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-16.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-16.js
@@ -9,8 +9,8 @@ description: >
object
---*/
-function callbackfn(val, idx, obj) {
- return new Array(10);
-}
+ function callbackfn(val, idx, obj) {
+ return new Array(10);
+ }
assert([11].some(callbackfn), '[11].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-17.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-17.js
index a2be9ec37..ba9188b14 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-17.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-17.js
@@ -9,8 +9,8 @@ description: >
object
---*/
-function callbackfn(val, idx, obj) {
- return new String();
-}
+ function callbackfn(val, idx, obj) {
+ return new String();
+ }
assert([11].some(callbackfn), '[11].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-18.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-18.js
index 7d273f4ec..871b4a217 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-18.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-18.js
@@ -9,8 +9,8 @@ description: >
object
---*/
-function callbackfn(val, idx, obj) {
- return new Boolean();
-}
+ function callbackfn(val, idx, obj) {
+ return new Boolean();
+ }
assert([11].some(callbackfn), '[11].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-19.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-19.js
index a87205ead..0c71f5486 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-19.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-19.js
@@ -9,8 +9,8 @@ description: >
object
---*/
-function callbackfn(val, idx, obj) {
- return new Number();
-}
+ function callbackfn(val, idx, obj) {
+ return new Number();
+ }
assert([11].some(callbackfn), '[11].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-2.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-2.js
index b52aff527..19318e4b6 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-2.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-2.js
@@ -7,17 +7,14 @@ es5id: 15.4.4.17-7-c-iii-2
description: Array.prototype.some - return value of callbackfn is null
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return null;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return null;
+ }
-var obj = {
- 0: 11,
- length: 2
-};
+ var obj = { 0: 11, length: 2 };
assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-20.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-20.js
index 2911f87bc..481f06fc7 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-20.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-20.js
@@ -9,8 +9,8 @@ description: >
object
---*/
-function callbackfn(val, idx, obj) {
- return Math;
-}
+ function callbackfn(val, idx, obj) {
+ return Math;
+ }
assert([11].some(callbackfn), '[11].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-21.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-21.js
index 068cd5d0d..04a02a0da 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-21.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-21.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.17-7-c-iii-21
description: Array.prototype.some - return value of callbackfn is a Date object
---*/
-function callbackfn(val, idx, obj) {
- return new Date();
-}
+ function callbackfn(val, idx, obj) {
+ return new Date();
+ }
assert([11].some(callbackfn), '[11].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-22.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-22.js
index b71d84635..706a94dad 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-22.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-22.js
@@ -9,8 +9,8 @@ description: >
object
---*/
-function callbackfn(val, idx, obj) {
- return new RegExp();
-}
+ function callbackfn(val, idx, obj) {
+ return new RegExp();
+ }
assert([11].some(callbackfn), '[11].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-23.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-23.js
index c0316a94b..d90675753 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-23.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-23.js
@@ -9,8 +9,8 @@ description: >
object
---*/
-function callbackfn(val, idx, obj) {
- return JSON;
-}
+ function callbackfn(val, idx, obj) {
+ return JSON;
+ }
assert([11].some(callbackfn), '[11].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-24.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-24.js
index f8ff2dc7f..55f76e23d 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-24.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-24.js
@@ -9,8 +9,8 @@ description: >
object
---*/
-function callbackfn(val, idx, obj) {
- return new EvalError();
-}
+ function callbackfn(val, idx, obj) {
+ return new EvalError();
+ }
assert([11].some(callbackfn), '[11].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-25.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-25.js
index f0237397d..b3aaf6366 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-25.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-25.js
@@ -9,8 +9,8 @@ description: >
object
---*/
-function callbackfn(val, idx, obj) {
- return arguments;
-}
+ function callbackfn(val, idx, obj) {
+ return arguments;
+ }
assert([11].some(callbackfn), '[11].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-26.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-26.js
index d96e7e783..e8119a33d 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-26.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-26.js
@@ -10,9 +10,8 @@ description: >
---*/
var global = this;
-
-function callbackfn(val, idx, obj) {
- return global;
-}
+ function callbackfn(val, idx, obj) {
+ return global;
+ }
assert([11].some(callbackfn), '[11].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-28.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-28.js
index e971d690d..320659651 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-28.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-28.js
@@ -7,40 +7,37 @@ es5id: 15.4.4.17-7-c-iii-28
description: Array.prototype.some - true prevents further side effects
---*/
-var result = false;
-
-function callbackfn(val, idx, obj) {
- if (idx > 1) {
- result = true;
- }
- return val > 10;
-}
-
-var obj = {
- length: 20
-};
-
-Object.defineProperty(obj, "0", {
- get: function() {
- return 8;
- },
- configurable: true
-});
-
-Object.defineProperty(obj, "1", {
- get: function() {
- return 11;
- },
- configurable: true
-});
-
-Object.defineProperty(obj, "2", {
- get: function() {
- result = true;
- return 11;
- },
- configurable: true
-});
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ if (idx > 1) {
+ result = true;
+ }
+ return val > 10;
+ }
+
+ var obj = { length: 20 };
+
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ return 8;
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ return 11;
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(obj, "2", {
+ get: function () {
+ result = true;
+ return 11;
+ },
+ configurable: true
+ });
assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true');
assert.sameValue(result, false, 'result');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-29.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-29.js
index d0d8b0cde..cb3c75c0d 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-29.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-29.js
@@ -9,8 +9,8 @@ description: >
callbackfn is treated as true value
---*/
-function callbackfn() {
- return new Boolean(false);
-}
+ function callbackfn() {
+ return new Boolean(false);
+ }
assert([11].some(callbackfn), '[11].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-3.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-3.js
index ab3d088db..b5c6ee0ee 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-3.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-3.js
@@ -9,17 +9,14 @@ description: >
(value is false)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return false;
+ }
-var obj = {
- 0: 11,
- length: 2
-};
+ var obj = { 0: 11, length: 2 };
assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-4.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-4.js
index 9b885029c..ff056a325 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-4.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-4.js
@@ -9,13 +9,10 @@ description: >
(value is true)
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var obj = {
- 0: 11,
- length: 2
-};
+ var obj = { 0: 11, length: 2 };
assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-5.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-5.js
index f67054b66..6b0b20e3d 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-5.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-5.js
@@ -9,12 +9,12 @@ description: >
(value is 0)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return 0;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return 0;
+ }
assert.sameValue([11].some(callbackfn), false, '[11].some(callbackfn)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-6.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-6.js
index af6699424..f54c2e9a7 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-6.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-6.js
@@ -9,12 +9,12 @@ description: >
(value is +0)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return +0;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return +0;
+ }
assert.sameValue([11].some(callbackfn), false, '[11].some(callbackfn)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-7.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-7.js
index ddb2d1df6..eae2d4fcb 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-7.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-7.js
@@ -9,12 +9,12 @@ description: >
(value is -0)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return -0;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return -0;
+ }
assert.sameValue([11].some(callbackfn), false, '[11].some(callbackfn)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-8.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-8.js
index ce9133200..a5fc01f22 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-8.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-8.js
@@ -9,8 +9,8 @@ description: >
(value is positive number)
---*/
-function callbackfn(val, idx, obj) {
- return 5;
-}
+ function callbackfn(val, idx, obj) {
+ return 5;
+ }
assert([11].some(callbackfn), '[11].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-9.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-9.js
index 3f389202c..2d966cbd0 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-9.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-9.js
@@ -9,8 +9,8 @@ description: >
(value is negative number)
---*/
-function callbackfn(val, idx, obj) {
- return -5;
-}
+ function callbackfn(val, idx, obj) {
+ return -5;
+ }
assert([11].some(callbackfn), '[11].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-8-1.js b/test/built-ins/Array/prototype/some/15.4.4.17-8-1.js
index d37fa7cb2..0546141f5 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-8-1.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-8-1.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.17-8-1
description: Array.prototype.some returns false if 'length' is 0 (empty array)
---*/
-function cb() {}
-var i = [].some(cb);
+ function cb(){}
+ var i = [].some(cb);
assert.sameValue(i, false, 'i');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-8-10.js b/test/built-ins/Array/prototype/some/15.4.4.17-8-10.js
index bb8b38ba1..d3da6def0 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-8-10.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-8-10.js
@@ -7,20 +7,19 @@ es5id: 15.4.4.17-8-10
description: Array.prototype.some - subclassed array when length is reduced
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = 2;
-function foo() {}
-var f = new foo();
-f.length = 2;
-
-function cb(val)
-{
- if (val > 2)
- return true;
- else
- return false;
-}
-var i = f.some(cb);
+ function cb(val)
+ {
+ if(val > 2)
+ return true;
+ else
+ return false;
+ }
+ var i = f.some(cb);
assert.sameValue(i, false, 'i');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-8-11.js b/test/built-ins/Array/prototype/some/15.4.4.17-8-11.js
index c5914d1a6..8d5f1a786 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-8-11.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-8-11.js
@@ -9,15 +9,14 @@ description: >
return false
---*/
-var callCnt = 0;
+ var callCnt = 0;
+ function callbackfn(val, idx, obj)
+ {
+ callCnt++;
+ return false;
+ }
-function callbackfn(val, idx, obj)
-{
- callCnt++;
- return false;
-}
-
-var arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
+ var arr = [0,1,2,3,4,5,6,7,8,9];
assert.sameValue(arr.some(callbackfn), false, 'arr.some(callbackfn)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-8-12.js b/test/built-ins/Array/prototype/some/15.4.4.17-8-12.js
index 0ba4ed10f..5912e36c4 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-8-12.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-8-12.js
@@ -9,12 +9,12 @@ description: >
called on
---*/
-function callbackfn(val, idx, obj)
-{
- return true;
-}
-var arr = [1, 2, 3, 4, 5];
-arr.some(callbackfn);
+ function callbackfn(val, idx, obj)
+ {
+ return true;
+ }
+ var arr = [1,2,3,4,5];
+ arr.some(callbackfn);
assert.sameValue(arr[0], 1, 'arr[0]');
assert.sameValue(arr[1], 2, 'arr[1]');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-8-13.js b/test/built-ins/Array/prototype/some/15.4.4.17-8-13.js
index 863317f98..7ef5af8be 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-8-13.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-8-13.js
@@ -7,17 +7,16 @@ es5id: 15.4.4.17-8-13
description: Array.prototype.some doesn't visit expandos
---*/
-var callCnt = 0;
+ var callCnt = 0;
+ function callbackfn(val, idx, obj)
+ {
+ callCnt++;
+ return false;
+ }
-function callbackfn(val, idx, obj)
-{
- callCnt++;
- return false;
-}
-
-var arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
-arr["i"] = 10;
-arr[true] = 11;
+ var arr = [0,1,2,3,4,5,6,7,8,9];
+ arr["i"] = 10;
+ arr[true] = 11;
assert.sameValue(arr.some(callbackfn), false, 'arr.some(callbackfn)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-8-2.js b/test/built-ins/Array/prototype/some/15.4.4.17-8-2.js
index 90ab6cb60..da760e894 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-8-2.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-8-2.js
@@ -9,14 +9,13 @@ description: >
Array, length overridden to null (type conversion))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = null;
-function foo() {}
-var f = new foo();
-f.length = null;
-
-function cb() {}
-var i = f.some(cb);
+ function cb(){}
+ var i = f.some(cb);
assert.sameValue(i, false, 'i');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-8-3.js b/test/built-ins/Array/prototype/some/15.4.4.17-8-3.js
index efe0afb0c..f35fe2196 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-8-3.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-8-3.js
@@ -9,14 +9,13 @@ description: >
Array, length overridden to false (type conversion))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = false;
-function foo() {}
-var f = new foo();
-f.length = false;
-
-function cb() {}
-var i = f.some(cb);
+ function cb(){}
+ var i = f.some(cb);
assert.sameValue(i, false, 'i');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-8-4.js b/test/built-ins/Array/prototype/some/15.4.4.17-8-4.js
index 32bfde408..5b6d7153e 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-8-4.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-8-4.js
@@ -9,14 +9,13 @@ description: >
Array, length overridden to 0 (type conversion))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = 0;
-function foo() {}
-var f = new foo();
-f.length = 0;
-
-function cb() {}
-var i = f.some(cb);
+ function cb(){}
+ var i = f.some(cb);
assert.sameValue(i, false, 'i');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-8-5.js b/test/built-ins/Array/prototype/some/15.4.4.17-8-5.js
index 1e2fe9b3b..e66aa4802 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-8-5.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-8-5.js
@@ -9,14 +9,13 @@ description: >
Array, length overridden to '0' (type conversion))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = '0';
-function foo() {}
-var f = new foo();
-f.length = '0';
-
-function cb() {}
-var i = f.some(cb);
+ function cb(){}
+ var i = f.some(cb);
assert.sameValue(i, false, 'i');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-8-6.js b/test/built-ins/Array/prototype/some/15.4.4.17-8-6.js
index 546c43f50..5607fad05 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-8-6.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-8-6.js
@@ -9,20 +9,15 @@ description: >
Array, length overridden with obj with valueOf)
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ var o = { valueOf: function () { return 0;}};
+ f.length = o;
-var o = {
- valueOf: function() {
- return 0;
- }
-};
-f.length = o;
-
-function cb() {}
-var i = f.some(cb);
+ function cb(){}
+ var i = f.some(cb);
assert.sameValue(i, false, 'i');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-8-7.js b/test/built-ins/Array/prototype/some/15.4.4.17-8-7.js
index 1b4d757c0..c483ee3d6 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-8-7.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-8-7.js
@@ -9,26 +9,21 @@ description: >
Array, length overridden with obj w/o valueOf (toString))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ var o = { toString: function () { return '0';}};
+ f.length = o;
-var o = {
- toString: function() {
- return '0';
- }
-};
-f.length = o;
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
-// objects inherit the default valueOf method of the Object object;
-// that simply returns the itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-
-function cb() {}
-var i = f.some(cb);
+ function cb(){}
+ var i = f.some(cb);
assert.sameValue(i, false, 'i');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-8-8.js b/test/built-ins/Array/prototype/some/15.4.4.17-8-8.js
index 1365c1faf..14dd2908f 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-8-8.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-8-8.js
@@ -9,29 +9,28 @@ description: >
Array, length overridden with []
---*/
-foo.prototype = new Array(1, 2, 3);
-
-function foo() {}
-var f = new foo();
-
-f.length = [];
-
-// objects inherit the default valueOf method of the Object object;
-// that simply returns the itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-//
-// The toString( ) method on Array converts the array elements to strings,
-// then returns the result of concatenating these strings, with commas in
-// between. An array with no elements converts to the empty string, which
-// converts to the number 0. If an array has a single element that is a
-// number n, the array converts to a string representation of n, which is
-// then converted back to n itself. If an array contains more than one element,
-// or if its one element is not a number, the array converts to NaN.
-
-function cb() {}
-var i = f.some(cb);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+
+ f.length = [];
+
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
+ //
+ // The toString( ) method on Array converts the array elements to strings,
+ // then returns the result of concatenating these strings, with commas in
+ // between. An array with no elements converts to the empty string, which
+ // converts to the number 0. If an array has a single element that is a
+ // number n, the array converts to a string representation of n, which is
+ // then converted back to n itself. If an array contains more than one element,
+ // or if its one element is not a number, the array converts to NaN.
+
+ function cb(){}
+ var i = f.some(cb);
assert.sameValue(i, false, 'i');
diff --git a/test/built-ins/Array/prototype/sort/S15.4.4.11_A1.2_T2.js b/test/built-ins/Array/prototype/sort/S15.4.4.11_A1.2_T2.js
index b43210978..4dbefaaf6 100644
--- a/test/built-ins/Array/prototype/sort/S15.4.4.11_A1.2_T2.js
+++ b/test/built-ins/Array/prototype/sort/S15.4.4.11_A1.2_T2.js
@@ -11,7 +11,7 @@ es5id: 15.4.4.11_A1.2_T2
description: If comparefn is not undefined
---*/
-var myComparefn = function(x, y) {
+var myComparefn = function(x,y) {
if (x === undefined) return -1;
if (y === undefined) return 1;
return 0;
diff --git a/test/built-ins/Array/prototype/sort/S15.4.4.11_A1.4_T2.js b/test/built-ins/Array/prototype/sort/S15.4.4.11_A1.4_T2.js
index 0f6a27357..2a141dba5 100644
--- a/test/built-ins/Array/prototype/sort/S15.4.4.11_A1.4_T2.js
+++ b/test/built-ins/Array/prototype/sort/S15.4.4.11_A1.4_T2.js
@@ -10,7 +10,7 @@ es5id: 15.4.4.11_A1.4_T2
description: If comparefn is not undefined
---*/
-var myComparefn = function(x, y) {
+var myComparefn = function(x,y) {
if (x === undefined) return -1;
if (y === undefined) return 1;
return 0;
diff --git a/test/built-ins/Array/prototype/sort/S15.4.4.11_A1.5_T1.js b/test/built-ins/Array/prototype/sort/S15.4.4.11_A1.5_T1.js
index 321b6f63f..334aa6263 100644
--- a/test/built-ins/Array/prototype/sort/S15.4.4.11_A1.5_T1.js
+++ b/test/built-ins/Array/prototype/sort/S15.4.4.11_A1.5_T1.js
@@ -8,7 +8,7 @@ es5id: 15.4.4.11_A1.5_T1
description: Checking sort() and sort(undefined)
---*/
-var x = new Array(1, 0);
+var x = new Array(1,0);
x.sort();
//CHECK#1
@@ -26,7 +26,7 @@ if (x[1] !== 1) {
$ERROR('#3: var x = new Array(1,0); x.sort(); x[1] === 1. Actual: ' + (x[1]));
}
-var x = new Array(1, 0);
+var x = new Array(1,0);
x.sort(undefined);
//CHECK#4
diff --git a/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.1_T2.js b/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.1_T2.js
index 044858b0a..336bcadff 100644
--- a/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.1_T2.js
+++ b/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.1_T2.js
@@ -12,7 +12,7 @@ description: Checking RUSSIAN ALPHABET
---*/
var alphabetR = ["ё", "я", "ю", "э", "ь", "ы", "ъ", "щ", "ш", "ч", "ц", "х", "ф", "у", "т", "с", "р", "П", "О", "Н", "М", "Л", "К", "Й", "И", "З", "Ж", "Е", "Д", "Г", "В", "Б", "А"];
-var alphabet = ["А", "Б", "В", "Г", "Д", "Е", "Ж", "З", "И", "Й", "К", "Л", "М", "Н", "О", "П", "р", "с", "т", "у", "ф", "х", "ц", "ч", "ш", "щ", "ъ", "ы", "ь", "э", "ю", "я", "ё"];
+var alphabet = ["А", "Б", "В", "Г", "Д", "Е", "Ж", "З", "И", "Й", "К", "Л", "М", "Н", "О", "П", "р", "с", "т", "у", "ф", "х", "ц", "ч", "ш", "щ", "ъ", "ы", "ь", "э", "ю", "я", "ё"];
//CHECK#1
alphabetR.sort();
diff --git a/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.1_T3.js b/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.1_T3.js
index c2bfb0615..de262fd3c 100644
--- a/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.1_T3.js
+++ b/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.1_T3.js
@@ -11,16 +11,9 @@ es5id: 15.4.4.11_A2.1_T3
description: Checking ToString operator
---*/
-var obj = {
- valueOf: function() {
- return 1
- },
- toString: function() {
- return -2
- }
-};
+var obj = {valueOf: function() {return 1}, toString: function() {return -2}};
var alphabetR = [undefined, 2, 1, "X", -1, "a", true, obj, NaN, Infinity];
-var alphabet = [-1, obj, 1, 2, Infinity, NaN, "X", "a", true, undefined];
+var alphabet = [-1, obj, 1, 2, Infinity, NaN, "X", "a", true, undefined];
//CHECK#1
alphabetR.sort();
diff --git a/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.2_T1.js b/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.2_T1.js
index 771eba4c8..537e1be33 100644
--- a/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.2_T1.js
+++ b/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.2_T1.js
@@ -9,9 +9,9 @@ description: Checking ENGLISH ALPHABET
---*/
var alphabetR = ["z", "y", "x", "w", "v", "u", "t", "s", "r", "q", "p", "o", "n", "M", "L", "K", "J", "I", "H", "G", "F", "E", "D", "C", "B", "A"];
-var alphabet = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"];
+var alphabet = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"];
-var myComparefn = function(x, y) {
+var myComparefn = function(x,y) {
var xS = String(x);
var yS = String(y);
if (xS < yS) return 1
diff --git a/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.2_T2.js b/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.2_T2.js
index 0075ca299..2c67068ae 100644
--- a/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.2_T2.js
+++ b/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.2_T2.js
@@ -9,9 +9,9 @@ description: Checking RUSSIAN ALPHABET
---*/
var alphabetR = ["ё", "я", "ю", "э", "ь", "ы", "ъ", "щ", "ш", "ч", "ц", "х", "ф", "у", "т", "с", "р", "П", "О", "Н", "М", "Л", "К", "Й", "И", "З", "Ж", "Е", "Д", "Г", "В", "Б", "А"];
-var alphabet = ["А", "Б", "В", "Г", "Д", "Е", "Ж", "З", "И", "Й", "К", "Л", "М", "Н", "О", "П", "р", "с", "т", "у", "ф", "х", "ц", "ч", "ш", "щ", "ъ", "ы", "ь", "э", "ю", "я", "ё"];
+var alphabet = ["А", "Б", "В", "Г", "Д", "Е", "Ж", "З", "И", "Й", "К", "Л", "М", "Н", "О", "П", "р", "с", "т", "у", "ф", "х", "ц", "ч", "ш", "щ", "ъ", "ы", "ь", "э", "ю", "я", "ё"];
-var myComparefn = function(x, y) {
+var myComparefn = function(x,y) {
var xS = String(x);
var yS = String(y);
if (xS < yS) return 1
diff --git a/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.2_T3.js b/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.2_T3.js
index 6e5df4ec4..ddc5354f0 100644
--- a/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.2_T3.js
+++ b/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.2_T3.js
@@ -8,18 +8,11 @@ es5id: 15.4.4.11_A2.2_T3
description: Checking ToString operator
---*/
-var obj = {
- valueOf: function() {
- return 1
- },
- toString: function() {
- return -2
- }
-};
+var obj = {valueOf: function() {return 1}, toString: function() {return -2}};
var alphabetR = [undefined, 2, 1, "X", -1, "a", true, obj, NaN, Infinity];
var alphabet = [true, "a", "X", NaN, Infinity, 2, 1, obj, -1, undefined];
-var myComparefn = function(x, y) {
+var myComparefn = function(x,y) {
var xS = String(x);
var yS = String(y);
if (xS < yS) return 1
diff --git a/test/built-ins/Array/prototype/sort/S15.4.4.11_A3_T1.js b/test/built-ins/Array/prototype/sort/S15.4.4.11_A3_T1.js
index c8fe6d58f..d4598f7c0 100644
--- a/test/built-ins/Array/prototype/sort/S15.4.4.11_A3_T1.js
+++ b/test/built-ins/Array/prototype/sort/S15.4.4.11_A3_T1.js
@@ -10,33 +10,15 @@ es5id: 15.4.4.11_A3_T1
description: If comparefn is undefined, use SortCompare operator
---*/
-var obj = {
- valueOf: function() {
- return 1
- },
- toString: function() {
- return -2
- }
-};
-var alphabetR = {
- 0: undefined,
- 1: 2,
- 2: 1,
- 3: "X",
- 4: -1,
- 5: "a",
- 6: true,
- 7: obj,
- 8: NaN,
- 9: Infinity
-};
+var obj = {valueOf: function() {return 1}, toString: function() {return -2}};
+var alphabetR = {0:undefined, 1:2, 2:1, 3:"X", 4:-1, 5:"a", 6:true, 7:obj, 8:NaN, 9:Infinity};
alphabetR.sort = Array.prototype.sort;
alphabetR.length = 10;
var alphabet = [-1, obj, 1, 2, Infinity, NaN, "X", "a", true, undefined];
alphabetR.sort();
-//CHECK#0
+ //CHECK#0
alphabetR.getClass = Object.prototype.toString;
if (alphabetR.getClass() !== "[object " + "Object" + "]") {
$ERROR('#0: alphabetR.sort() is Object object, not Array object');
diff --git a/test/built-ins/Array/prototype/sort/S15.4.4.11_A3_T2.js b/test/built-ins/Array/prototype/sort/S15.4.4.11_A3_T2.js
index 5da87d3d4..e5c56d65d 100644
--- a/test/built-ins/Array/prototype/sort/S15.4.4.11_A3_T2.js
+++ b/test/built-ins/Array/prototype/sort/S15.4.4.11_A3_T2.js
@@ -10,31 +10,13 @@ es5id: 15.4.4.11_A3_T2
description: If comparefn is not undefined
---*/
-var obj = {
- valueOf: function() {
- return 1
- },
- toString: function() {
- return -2
- }
-};
-var alphabetR = {
- 0: undefined,
- 1: 2,
- 2: 1,
- 3: "X",
- 4: -1,
- 5: "a",
- 6: true,
- 7: obj,
- 8: NaN,
- 9: Infinity
-};
+var obj = {valueOf: function() {return 1}, toString: function() {return -2}};
+var alphabetR = {0:undefined, 1:2, 2:1, 3:"X", 4:-1, 5:"a", 6:true, 7:obj, 8:NaN, 9:Infinity};
alphabetR.sort = Array.prototype.sort;
alphabetR.length = 10;
var alphabet = [true, "a", "X", NaN, Infinity, 2, 1, obj, -1, undefined];
-var myComparefn = function(x, y) {
+ var myComparefn = function(x,y) {
var xS = String(x);
var yS = String(y);
if (xS < yS) return 1
@@ -44,7 +26,7 @@ var myComparefn = function(x, y) {
alphabetR.sort(myComparefn);
-//CHECK#0
+ //CHECK#0
alphabetR.getClass = Object.prototype.toString;
if (alphabetR.getClass() !== "[object " + "Object" + "]") {
$ERROR('#0: alphabetR.sort() is Object object, not Array object');
diff --git a/test/built-ins/Array/prototype/sort/S15.4.4.11_A5_T1.js b/test/built-ins/Array/prototype/sort/S15.4.4.11_A5_T1.js
index 32ddbcd18..b1549f26e 100644
--- a/test/built-ins/Array/prototype/sort/S15.4.4.11_A5_T1.js
+++ b/test/built-ins/Array/prototype/sort/S15.4.4.11_A5_T1.js
@@ -9,14 +9,14 @@ description: comparefn function throw "error"
---*/
//CHECK#1
-var myComparefn = function(x, y) {
+var myComparefn = function(x,y) {
throw "error";
}
-var x = [1, 0];
+var x = [1,0];
try {
x.sort(myComparefn)
$ERROR('#1.1: Array.sort should not eat exceptions');
-} catch (e) {
+} catch(e) {
if (e !== "error") {
$ERROR('#1.2: Array.sort should not eat exceptions');
}
diff --git a/test/built-ins/Array/prototype/sort/S15.4.4.11_A6_T2.js b/test/built-ins/Array/prototype/sort/S15.4.4.11_A6_T2.js
index 4d26b4701..4b623ca34 100644
--- a/test/built-ins/Array/prototype/sort/S15.4.4.11_A6_T2.js
+++ b/test/built-ins/Array/prototype/sort/S15.4.4.11_A6_T2.js
@@ -11,7 +11,7 @@ description: >
---*/
Array.prototype[1] = -1;
-var x = [1, 0];
+var x = [1,0];
x.length = 2;
x.sort();
@@ -40,10 +40,7 @@ if (x[1] !== -1) {
Object.prototype[1] = -1;
Object.prototype.length = 2;
Object.prototype.sort = Array.prototype.sort;
-x = {
- 0: 1,
- 1: 0
-};
+x = {0:1,1:0};
x.sort();
//CHECK#5
diff --git a/test/built-ins/Array/prototype/sort/S15.4.4.11_A8.js b/test/built-ins/Array/prototype/sort/S15.4.4.11_A8.js
index bfa49d90a..289887f03 100644
--- a/test/built-ins/Array/prototype/sort/S15.4.4.11_A8.js
+++ b/test/built-ins/Array/prototype/sort/S15.4.4.11_A8.js
@@ -10,7 +10,7 @@ flags: [noStrict]
---*/
var global = this;
-[2, 3].sort(function(x, y) {
+[2,3].sort(function(x,y) {
"use strict";
if (this === global) {
@@ -18,7 +18,7 @@ var global = this;
}
if (this !== undefined) {
$ERROR('#2: Sort comparefn should be called with this===undefined. ' +
- 'Actual: ' + this);
+ 'Actual: ' + this);
}
return x - y;
});
diff --git a/test/built-ins/Array/prototype/sort/bug_596_1.js b/test/built-ins/Array/prototype/sort/bug_596_1.js
index a144d9fcd..1c6e4d724 100644
--- a/test/built-ins/Array/prototype/sort/bug_596_1.js
+++ b/test/built-ins/Array/prototype/sort/bug_596_1.js
@@ -11,10 +11,10 @@ author: Thomas Dahlstrom (tdahlstrom@gmail.com)
var counter = 0;
var object = {
- toString: function() {
- counter++;
- return "";
- }
+ toString: function(){
+ counter++;
+ return "";
+ }
};
[object, object].sort();
diff --git a/test/built-ins/Array/prototype/sort/bug_596_2.js b/test/built-ins/Array/prototype/sort/bug_596_2.js
index ec571de20..1fbcd77ce 100644
--- a/test/built-ins/Array/prototype/sort/bug_596_2.js
+++ b/test/built-ins/Array/prototype/sort/bug_596_2.js
@@ -10,46 +10,46 @@ description: >
author: Thomas Dahlstrom (tdahlstrom@gmail.com)
---*/
-var array = ['a', , void 0];
+var array = ['a',,void 0];
//CHECK#1
if (array.length !== 3) {
- $ERROR('#1: array.length !== 3. Actual: ' + (array.length))
+ $ERROR('#1: array.length !== 3. Actual: ' + (array.length))
}
//CHECK#2
if (array.hasOwnProperty('0') !== true) {
- $ERROR("#2: array.hasOwnProperty('0'). Actual: " + array.hasOwnProperty('0'));
+ $ERROR("#2: array.hasOwnProperty('0'). Actual: " + array.hasOwnProperty('0'));
}
//CHECK#3
if (array.hasOwnProperty('1') !== false) {
- $ERROR("#3: array.hasOwnProperty('1'). Actual: " + array.hasOwnProperty('1'));
+ $ERROR("#3: array.hasOwnProperty('1'). Actual: " + array.hasOwnProperty('1'));
}
//CHECK#4
if (array.hasOwnProperty('2') !== true) {
- $ERROR("#4: array.hasOwnProperty('2'). Actual: " + array.hasOwnProperty('2'));
+ $ERROR("#4: array.hasOwnProperty('2'). Actual: " + array.hasOwnProperty('2'));
}
array.sort();
//CHECK#5
if (array.length !== 3) {
- $ERROR('#5: array.length !== 3. Actual: ' + (array.length))
+ $ERROR('#5: array.length !== 3. Actual: ' + (array.length))
}
//CHECK#6
if (array.hasOwnProperty('0') !== true) {
- $ERROR("#6: array.hasOwnProperty('0'). Actual: " + array.hasOwnProperty('0'));
+ $ERROR("#6: array.hasOwnProperty('0'). Actual: " + array.hasOwnProperty('0'));
}
//CHECK#7
if (array.hasOwnProperty('1') !== true) {
- $ERROR("#7: array.hasOwnProperty('1'). Actual: " + array.hasOwnProperty('1'));
+ $ERROR("#7: array.hasOwnProperty('1'). Actual: " + array.hasOwnProperty('1'));
}
//CHECK#8
if (array.hasOwnProperty('2') !== false) {
- $ERROR("#8: array.hasOwnProperty('2'). Actual: " + array.hasOwnProperty('2'));
+ $ERROR("#8: array.hasOwnProperty('2'). Actual: " + array.hasOwnProperty('2'));
}
diff --git a/test/built-ins/Array/prototype/sort/comparefn-nonfunction-call-throws.js b/test/built-ins/Array/prototype/sort/comparefn-nonfunction-call-throws.js
index 62ab29644..c35b0f876 100644
--- a/test/built-ins/Array/prototype/sort/comparefn-nonfunction-call-throws.js
+++ b/test/built-ins/Array/prototype/sort/comparefn-nonfunction-call-throws.js
@@ -23,7 +23,7 @@ var poisoned = {
};
assert.throws(TypeError, function() {
- sample.sort(null);
+ sample.sort(null);
}, "sample.sort(null);");
assert.throws(TypeError, function() {
diff --git a/test/built-ins/Array/prototype/splice/15.4.4.12-9-a-1.js b/test/built-ins/Array/prototype/splice/15.4.4.12-9-a-1.js
index 0e0d144a6..8ec20c11c 100644
--- a/test/built-ins/Array/prototype/splice/15.4.4.12-9-a-1.js
+++ b/test/built-ins/Array/prototype/splice/15.4.4.12-9-a-1.js
@@ -9,8 +9,8 @@ description: >
ToString(actualStart+k) in an Array
---*/
-var arrObj = [1, 2, 3];
-var newArrObj = arrObj.splice(-2, 1);
+ var arrObj = [1, 2, 3];
+ var newArrObj = arrObj.splice(-2, 1);
assert.sameValue(newArrObj.length, 1, 'newArrObj.length');
assert.sameValue(newArrObj[0], 2, 'newArrObj[0]');
diff --git a/test/built-ins/Array/prototype/splice/15.4.4.12-9-c-ii-1.js b/test/built-ins/Array/prototype/splice/15.4.4.12-9-c-ii-1.js
index ab59bcf6f..e911470f0 100644
--- a/test/built-ins/Array/prototype/splice/15.4.4.12-9-c-ii-1.js
+++ b/test/built-ins/Array/prototype/splice/15.4.4.12-9-c-ii-1.js
@@ -10,28 +10,28 @@ description: >
less than 'actualDeleteCount (Step 9.c.ii)
---*/
-var arr = ["a", "b", "c"];
-Array.prototype[0] = "test";
-var newArr = arr.splice(2, 1, "d");
+ var arr = ["a", "b", "c"];
+ Array.prototype[0] = "test";
+ var newArr = arr.splice(2, 1, "d");
-var verifyValue = false;
-verifyValue = arr.length === 3 && arr[0] === "a" && arr[1] === "b" && arr[2] === "d" &&
- newArr[0] === "c" && newArr.length === 1;
+ var verifyValue = false;
+ verifyValue = arr.length === 3 && arr[0] === "a" && arr[1] === "b" && arr[2] === "d"
+ && newArr[0] === "c" && newArr.length === 1;
-var verifyEnumerable = false;
-for (var p in newArr) {
- if (newArr.hasOwnProperty("0") && p === "0") {
- verifyEnumerable = true;
- }
-}
+ var verifyEnumerable = false;
+ for (var p in newArr) {
+ if (newArr.hasOwnProperty("0") && p === "0") {
+ verifyEnumerable = true;
+ }
+ }
-var verifyWritable = false;
-newArr[0] = 12;
-verifyWritable = newArr[0] === 12;
+ var verifyWritable = false;
+ newArr[0] = 12;
+ verifyWritable = newArr[0] === 12;
-var verifyConfigurable = false;
-delete newArr[0];
-verifyConfigurable = newArr.hasOwnProperty("0");
+ var verifyConfigurable = false;
+ delete newArr[0];
+ verifyConfigurable = newArr.hasOwnProperty("0");
assert(verifyValue, 'verifyValue !== true');
assert.sameValue(verifyConfigurable, false, 'verifyConfigurable');
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T1.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T1.js
index 5cdd55a4e..27bc884ad 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T1.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T1.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.1_T1
description: length > deleteCount > start = 0, itemCount = 0
---*/
-var x = [0, 1, 2, 3];
-var arr = x.splice(0, 3);
+var x = [0,1,2,3];
+var arr = x.splice(0,3);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T2.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T2.js
index 3685147d6..12cd147ec 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T2.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T2.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.1_T2
description: length > deleteCount > start = 0, itemCount > 0
---*/
-var x = [0, 1, 2, 3];
-var arr = x.splice(0, 3, 4, 5);
+var x = [0,1,2,3];
+var arr = x.splice(0,3,4,5);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T3.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T3.js
index 713f6a041..118d0a82a 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T3.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T3.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.1_T3
description: length = deleteCount > start = 0
---*/
-var x = [0, 1, 2, 3];
-var arr = x.splice(0, 4);
+var x = [0,1,2,3];
+var arr = x.splice(0,4);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T4.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T4.js
index 0eb829e79..5fb239942 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T4.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T4.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.1_T4
description: length > deleteCount > start > 0, itemCount > 0
---*/
-var x = [0, 1, 2, 3];
-var arr = x.splice(1, 3, 4, 5);
+var x = [0,1,2,3];
+var arr = x.splice(1,3,4,5);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T5.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T5.js
index 652524bd1..9e2dac61f 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T5.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T5.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.1_T5
description: deleteCount > length > start = 0, itemCount = 0
---*/
-var x = [0, 1, 2, 3];
-var arr = x.splice(0, 5);
+var x = [0,1,2,3];
+var arr = x.splice(0,5);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T6.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T6.js
index 91253b80f..0ea1d8bce 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T6.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T6.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.1_T6
description: length = deleteCount > start > 0, itemCount > 0
---*/
-var x = [0, 1, 2, 3];
-var arr = x.splice(1, 4, 4, 5);
+var x = [0,1,2,3];
+var arr = x.splice(1,4,4,5);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T1.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T1.js
index 0db991b3e..1929add94 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T1.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T1.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.2_T1
description: -length = start < deleteCount < 0, itemCount = 0
---*/
-var x = [0, 1];
-var arr = x.splice(-2, -1);
+var x = [0,1];
+var arr = x.splice(-2,-1);
//CHECK#0
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T2.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T2.js
index 0be3d2398..fddd02dc8 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T2.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T2.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.2_T2
description: -length < start = deleteCount < 0, itemCount = 0
---*/
-var x = [0, 1];
-var arr = x.splice(-1, -1);
+var x = [0,1];
+var arr = x.splice(-1,-1);
//CHECK#0
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T3.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T3.js
index 89e1ee2b5..f5d24cac3 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T3.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T3.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.2_T3
description: -length = start < deleteCount < 0, itemCount > 0
---*/
-var x = [0, 1];
-var arr = x.splice(-2, -1, 2, 3);
+var x = [0,1];
+var arr = x.splice(-2,-1,2,3);
//CHECK#0
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T4.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T4.js
index 02e2dbea8..bb68a7680 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T4.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T4.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.2_T4
description: -length < start = deleteCount < 0, itemCount > 0
---*/
-var x = [0, 1];
-var arr = x.splice(-1, -1, 2, 3);
+var x = [0,1];
+var arr = x.splice(-1,-1,2,3);
//CHECK#0
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T5.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T5.js
index ed8efafe7..f8fc1eccb 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T5.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T5.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.2_T5
description: start < -length < deleteCount < 0, itemCount > 0
---*/
-var x = [0, 1];
-var arr = x.splice(-3, -1, 2, 3);
+var x = [0,1];
+var arr = x.splice(-3,-1,2,3);
//CHECK#0
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T1.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T1.js
index 66c3d55e2..909d270ac 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T1.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T1.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.3_T1
description: -length < deleteCount < start = 0, itemCount = 0
---*/
-var x = [0, 1];
-var arr = x.splice(0, -1);
+var x = [0,1];
+var arr = x.splice(0,-1);
//CHECK#0
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T2.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T2.js
index 089a2ce8c..44917a67f 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T2.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T2.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.3_T2
description: -length = -start < deleteCount < 0, itemCount = 0
---*/
-var x = [0, 1];
-var arr = x.splice(2, -1);
+var x = [0,1];
+var arr = x.splice(2,-1);
//CHECK#0
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T3.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T3.js
index 5c56b995a..f4f2678ad 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T3.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T3.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.3_T3
description: -length < deleteCount < start = 0, itemCount > 0
---*/
-var x = [0, 1];
-var arr = x.splice(0, -1, 2, 3);
+var x = [0,1];
+var arr = x.splice(0,-1,2,3);
//CHECK#0
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T4.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T4.js
index 828e21cbb..133257453 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T4.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T4.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.3_T4
description: -length = -start < deleteCount < 0, itemCount > 0
---*/
-var x = [0, 1];
-var arr = x.splice(2, -1, 2, 3);
+var x = [0,1];
+var arr = x.splice(2,-1,2,3);
//CHECK#0
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T5.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T5.js
index cd2ccab2c..8c4475cd7 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T5.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T5.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.3_T5
description: -start < -length < deleteCount < 0, itemCount > 0
---*/
-var x = [0, 1];
-var arr = x.splice(3, -1, 2, 3);
+var x = [0,1];
+var arr = x.splice(3,-1,2,3);
//CHECK#0
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T1.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T1.js
index 9b4cd2228..01605c746 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T1.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T1.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.4_T1
description: length = -start > deleteCount > 0, itemCount = 0
---*/
-var x = [0, 1, 2, 3];
-var arr = x.splice(-4, 3);
+var x = [0,1,2,3];
+var arr = x.splice(-4,3);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T2.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T2.js
index d531be2ee..2862b3f60 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T2.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T2.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.4_T2
description: length = -start > deleteCount > 0, itemCount > 0
---*/
-var x = [0, 1, 2, 3];
-var arr = x.splice(-4, 3, 4, 5);
+var x = [0,1,2,3];
+var arr = x.splice(-4,3,4,5);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T3.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T3.js
index 318d33a44..4be6a0b97 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T3.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T3.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.4_T3
description: -start > length = deleteCount > 0, itemCount = 0
---*/
-var x = [0, 1, 2, 3];
-var arr = x.splice(-5, 4);
+var x = [0,1,2,3];
+var arr = x.splice(-5,4);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T4.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T4.js
index 9c2e3c579..2dffe18b3 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T4.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T4.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.4_T4
description: length > -start = deleteCount > 0, itemCount > 0
---*/
-var x = [0, 1, 2, 3];
-var arr = x.splice(-3, 3, 4, 5);
+var x = [0,1,2,3];
+var arr = x.splice(-3,3,4,5);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T5.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T5.js
index 4d051f44c..37ec9f17f 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T5.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T5.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.4_T5
description: -start > deleteCount > length > 0, itemCount = 0
---*/
-var x = [0, 1, 2, 3];
-var arr = x.splice(-9, 5);
+var x = [0,1,2,3];
+var arr = x.splice(-9,5);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T6.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T6.js
index 779089de1..4fa9aed73 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T6.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T6.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.4_T6
description: length = deleteCount > -start > 0, itemCount > 0
---*/
-var x = [0, 1, 2, 3];
-var arr = x.splice(-3, 4, 4, 5);
+var x = [0,1,2,3];
+var arr = x.splice(-3,4,4,5);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.5_T1.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.5_T1.js
index 046f111f8..ec581518d 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.5_T1.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.5_T1.js
@@ -8,7 +8,7 @@ es5id: 15.4.4.12_A1.5_T1
description: start === undefined, end === undefined
---*/
-var x = [0, 1, 2, 3];
+var x = [0,1,2,3];
var arr = x.splice(undefined, undefined);
//CHECK#1
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.5_T2.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.5_T2.js
index 4741352b5..5551f3596 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.5_T2.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.5_T2.js
@@ -8,8 +8,8 @@ es5id: 15.4.4.12_A1.5_T2
description: end === undefined
---*/
-var x = [0, 1, 2, 3];
-var arr = x.splice(1, undefined);
+var x = [0,1,2,3];
+var arr = x.splice(1,undefined);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T1.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T1.js
index 2e66e7f34..32848cc6f 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T1.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T1.js
@@ -8,8 +8,8 @@ es5id: 15.4.4.12_A2.1_T1
description: start is not integer
---*/
-var x = [0, 1, 2, 3];
-var arr = x.splice(1.5, 3);
+var x = [0,1,2,3];
+var arr = x.splice(1.5,3);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T2.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T2.js
index 94ef13972..4e379cda8 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T2.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T2.js
@@ -8,8 +8,8 @@ es5id: 15.4.4.12_A2.1_T2
description: start = NaN
---*/
-var x = [0, 1, 2, 3];
-var arr = x.splice(NaN, 3);
+var x = [0,1,2,3];
+var arr = x.splice(NaN,3);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T3.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T3.js
index eaf3c07a1..807c0a41a 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T3.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T3.js
@@ -8,8 +8,8 @@ es5id: 15.4.4.12_A2.1_T3
description: start = Infinity
---*/
-var x = [0, 1, 2, 3];
-var arr = x.splice(Number.POSITIVE_INFINITY, 3);
+var x = [0,1,2,3];
+var arr = x.splice(Number.POSITIVE_INFINITY,3);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T4.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T4.js
index 939454e48..083ed9ca8 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T4.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T4.js
@@ -8,8 +8,8 @@ es5id: 15.4.4.12_A2.1_T4
description: start = -Infinity
---*/
-var x = [0, 1, 2, 3];
-var arr = x.splice(Number.NEGATIVE_INFINITY, 3);
+var x = [0,1,2,3];
+var arr = x.splice(Number.NEGATIVE_INFINITY,3);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T5.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T5.js
index 9cf978a58..51a7aa765 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T5.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T5.js
@@ -8,15 +8,8 @@ es5id: 15.4.4.12_A2.1_T5
description: ToInteger use ToNumber
---*/
-var x = [0, 1, 2, 3];
-var arr = x.splice({
- valueOf: function() {
- return 0
- },
- toString: function() {
- return 3
- }
-}, 3);
+var x = [0,1,2,3];
+var arr = x.splice({valueOf: function() {return 0}, toString: function() {return 3}},3);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T1.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T1.js
index 4212e9e1f..8a8cc929d 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T1.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T1.js
@@ -8,8 +8,8 @@ es5id: 15.4.4.12_A2.2_T1
description: deleteCount is not integer
---*/
-var x = [0, 1, 2, 3];
-var arr = x.splice(1, 3.5);
+var x = [0,1,2,3];
+var arr = x.splice(1,3.5);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T2.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T2.js
index cbe0fbb78..c97e14734 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T2.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T2.js
@@ -8,8 +8,8 @@ es5id: 15.4.4.12_A2.2_T2
description: deleteCount = NaN
---*/
-var x = [0, 1];
-var arr = x.splice(0, NaN);
+var x = [0,1];
+var arr = x.splice(0,NaN);
//CHECK#0
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T3.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T3.js
index 1a2e4fb1e..8622ff765 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T3.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T3.js
@@ -8,8 +8,8 @@ es5id: 15.4.4.12_A2.2_T3
description: deleteCount = Infinity
---*/
-var x = [0, 1, 2, 3];
-var arr = x.splice(0, Number.POSITIVE_INFINITY);
+var x = [0,1,2,3];
+var arr = x.splice(0,Number.POSITIVE_INFINITY);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T4.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T4.js
index d0ec317ce..6c3008074 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T4.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T4.js
@@ -8,8 +8,8 @@ es5id: 15.4.4.12_A2.2_T4
description: deleteCount = -Infinity
---*/
-var x = [0, 1];
-var arr = x.splice(0, Number.NEGATIVE_INFINITY);
+var x = [0,1];
+var arr = x.splice(0,Number.NEGATIVE_INFINITY);
//CHECK#0
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T5.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T5.js
index 911ee8def..d42f023fc 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T5.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T5.js
@@ -8,15 +8,8 @@ es5id: 15.4.4.12_A2.2_T5
description: ToInteger use ToNumber
---*/
-var x = [0, 1, 2, 3];
-var arr = x.splice(0, {
- valueOf: function() {
- return 3
- },
- toString: function() {
- return 0
- }
-});
+var x = [0,1,2,3];
+var arr = x.splice(0,{valueOf: function() {return 3}, toString: function() {return 0}});
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T1.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T1.js
index 53135fec3..120d64c81 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T1.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T1.js
@@ -12,15 +12,10 @@ description: >
positive, use min(deleteCount, length - start)
---*/
-var obj = {
- 0: 0,
- 1: 1,
- 2: 2,
- 3: 3
-};
+var obj = {0:0,1:1,2:2,3:3};
obj.length = 4;
obj.splice = Array.prototype.splice;
-var arr = obj.splice(0, 3, 4, 5);
+var arr = obj.splice(0,3,4,5);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T2.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T2.js
index d0c6aed9b..294da306b 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T2.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T2.js
@@ -12,13 +12,10 @@ description: >
is negative, use 0
---*/
-var obj = {
- 0: 0,
- 1: 1
-};
+var obj = {0:0,1:1};
obj.length = 2;
obj.splice = Array.prototype.splice;
-var arr = obj.splice(-2, -1, 2, 3);
+var arr = obj.splice(-2,-1,2,3);
//CHECK#0
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T3.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T3.js
index 4b6fdb4b9..3131c9a3a 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T3.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T3.js
@@ -12,13 +12,10 @@ description: >
negative, use 0
---*/
-var obj = {
- 0: 0,
- 1: 1
-};
+var obj = {0:0,1:1};
obj.length = 2;
obj.splice = Array.prototype.splice;
-var arr = obj.splice(0, -1, 2, 3);
+var arr = obj.splice(0,-1,2,3);
//CHECK#0
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T4.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T4.js
index 1127a7cb6..ca455cad5 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T4.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T4.js
@@ -12,15 +12,10 @@ description: >
is positive, use min(deleteCount, length - start)
---*/
-var obj = {
- 0: 0,
- 1: 1,
- 2: 2,
- 3: 3
-};
+var obj = {0:0,1:1,2:2,3:3};
obj.length = 4;
obj.splice = Array.prototype.splice;
-var arr = obj.splice(-4, 3, 4, 5);
+var arr = obj.splice(-4,3,4,5);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A3_T1.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A3_T1.js
index bf7b3a654..4d92ace05 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A3_T1.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A3_T1.js
@@ -22,20 +22,20 @@ if (arr.length !== 1) {
//CHECK#2
if (obj.length !== 4294967295) {
- $ERROR('#2: var obj = {}; obj.splice = Array.prototype.splice; obj[0] = "x"; obj[4294967295] = "y"; obj.length = 4294967296; var arr = obj.splice(4294967295,1); obj.length === 4294967295. Actual: ' + (obj.length));
+ $ERROR('#2: var obj = {}; obj.splice = Array.prototype.splice; obj[0] = "x"; obj[4294967295] = "y"; obj.length = 4294967296; var arr = obj.splice(4294967295,1); obj.length === 4294967295. Actual: ' + (obj.length));
}
//CHECK#3
if (obj[0] !== "x") {
- $ERROR('#3: var obj = {}; obj.splice = Array.prototype.splice; obj[0] = "x"; obj[4294967295] = "y"; obj.length = 4294967296; var arr = obj.splice(4294967295,1); obj[0] === "x". Actual: ' + (obj[0]));
+ $ERROR('#3: var obj = {}; obj.splice = Array.prototype.splice; obj[0] = "x"; obj[4294967295] = "y"; obj.length = 4294967296; var arr = obj.splice(4294967295,1); obj[0] === "x". Actual: ' + (obj[0]));
}
//CHECK#4
if (obj[4294967295] !== undefined) {
- $ERROR('#4: var obj = {}; obj.splice = Array.prototype.splice; obj[0] = "x"; obj[4294967295] = "y"; obj.length = 4294967296; var arr = obj.splice(4294967295,1); obj[4294967295] === undefined. Actual: ' + (obj[4294967295]));
+ $ERROR('#4: var obj = {}; obj.splice = Array.prototype.splice; obj[0] = "x"; obj[4294967295] = "y"; obj.length = 4294967296; var arr = obj.splice(4294967295,1); obj[4294967295] === undefined. Actual: ' + (obj[4294967295]));
}
//CHECK#5
if (arr[0] !== "y") {
- $ERROR('#5: var obj = {}; obj.splice = Array.prototype.splice; obj[0] = "x"; obj[4294967295] = "y"; obj.length = 4294967296; var arr = obj.splice(4294967295,1); arr[0] === "y". Actual: ' + (arr[0]));
+ $ERROR('#5: var obj = {}; obj.splice = Array.prototype.splice; obj[0] = "x"; obj[4294967295] = "y"; obj.length = 4294967296; var arr = obj.splice(4294967295,1); arr[0] === "y". Actual: ' + (arr[0]));
}
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A3_T3.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A3_T3.js
index 309de2f1f..3232c9a11 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A3_T3.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A3_T3.js
@@ -12,7 +12,7 @@ var obj = {};
obj.splice = Array.prototype.splice;
obj[4294967294] = "x";
obj.length = -1;
-var arr = obj.splice(4294967294, 1);
+var arr = obj.splice(4294967294,1);
//CHECK#1
if (arr.length !== 0) {
@@ -21,15 +21,15 @@ if (arr.length !== 0) {
//CHECK#2
if (arr[0] !== undefined) {
- $ERROR('#2: var obj = {}; obj.splice = Array.prototype.splice; obj[4294967294] = "x"; obj.length = 1; var arr = obj.splice(4294967294,1); arr[0] === undefined. Actual: ' + (arr[0]));
+ $ERROR('#2: var obj = {}; obj.splice = Array.prototype.splice; obj[4294967294] = "x"; obj.length = 1; var arr = obj.splice(4294967294,1); arr[0] === undefined. Actual: ' + (arr[0]));
}
//CHECK#3
if (obj.length !== 0) {
- $ERROR('#3: var obj = {}; obj.splice = Array.prototype.splice; obj[4294967294] = "x"; obj.length = 1; var arr = obj.splice(4294967294,1); obj.length === 0. Actual: ' + (obj.length));
+ $ERROR('#3: var obj = {}; obj.splice = Array.prototype.splice; obj[4294967294] = "x"; obj.length = 1; var arr = obj.splice(4294967294,1); obj.length === 0. Actual: ' + (obj.length));
}
//CHECK#4
if (obj[4294967294] !== "x") {
- $ERROR('#4: var obj = {}; obj.splice = Array.prototype.splice; obj[4294967294] = "x"; obj.length = 1; var arr = obj.splice(4294967294,1); obj[4294967294] === "x". Actual: ' + (obj[4294967294]));
+ $ERROR('#4: var obj = {}; obj.splice = Array.prototype.splice; obj[4294967294] = "x"; obj.length = 1; var arr = obj.splice(4294967294,1); obj[4294967294] === "x". Actual: ' + (obj[4294967294]));
}
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T1.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T1.js
index 7754dc3f4..ed0ab16aa 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T1.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T1.js
@@ -11,8 +11,8 @@ description: >
---*/
Array.prototype[1] = -1;
-var x = [0, 1];
-var arr = x.splice(1, 1);
+var x = [0,1];
+var arr = x.splice(1,1);
//CHECK#1
if (arr.length !== 1) {
@@ -48,11 +48,8 @@ if (x[1] !== -1) {
Object.prototype[1] = -1;
Object.prototype.length = 2;
Object.prototype.splice = Array.prototype.splice;
-x = {
- 0: 0,
- 1: 1
-};
-var arr = x.splice(1, 1);
+x = {0:0, 1:1};
+var arr = x.splice(1,1);
//CHECK#7
if (arr.length !== 1) {
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T2.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T2.js
index 50cf6d031..3c203ee25 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T2.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T2.js
@@ -11,8 +11,8 @@ description: >
---*/
Array.prototype[1] = -1;
-var x = [0, 1];
-var arr = x.splice(1, 1, 2);
+var x = [0,1];
+var arr = x.splice(1,1,2);
//CHECK#1
if (arr.length !== 1) {
@@ -48,11 +48,8 @@ if (x[1] !== 2) {
Object.prototype[1] = -1;
Object.prototype.length = 2;
Object.prototype.splice = Array.prototype.splice;
-x = {
- 0: 0,
- 1: 1
-};
-var arr = x.splice(1, 1, 2);
+x = {0:0, 1:1};
+var arr = x.splice(1,1,2);
//CHECK#7
if (arr.length !== 1) {
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T3.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T3.js
index 423c66973..db412def3 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T3.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T3.js
@@ -13,7 +13,7 @@ description: >
Array.prototype[0] = -1;
var x = [];
x.length = 1;
-var arr = x.splice(0, 1);
+var arr = x.splice(0,1);
//CHECK#1
if (arr.length !== 1) {
@@ -46,7 +46,7 @@ Object.prototype[0] = -1;
Object.prototype.length = 1;
Object.prototype.splice = Array.prototype.splice;
x = {};
-var arr = x.splice(0, 1);
+var arr = x.splice(0,1);
//CHECK#6
if (arr.length !== 1) {
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A6.1_T1.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A6.1_T1.js
index cae54c1da..3c0ff7998 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A6.1_T1.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A6.1_T1.js
@@ -13,13 +13,13 @@ var a = [0, 1, 2];
a.splice(1, 2, 4);
if (a.length !== 2) {
- $ERROR("Expected a.length === 2, actually " + a.length);
+ $ERROR("Expected a.length === 2, actually " + a.length);
}
if (a[0] !== 0) {
- $ERROR("Expected a[0] === 0, actually " + a[0]);
+ $ERROR("Expected a[0] === 0, actually " + a[0]);
}
if (a[1] !== 4) {
- $ERROR("Expected a[1] === 4, actually " + a[1]);
+ $ERROR("Expected a[1] === 4, actually " + a[1]);
}
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A6.1_T2.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A6.1_T2.js
index cf53a8235..e75676732 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A6.1_T2.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A6.1_T2.js
@@ -11,7 +11,7 @@ description: Array.prototype.splice throws if `length` is read-only
var a = [0, 1, 2];
Object.defineProperty(a, 'length', {
- writable: false
+ writable: false
});
assert.throws(TypeError, function() {
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A6.1_T3.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A6.1_T3.js
index f42c6f00f..e568f40d6 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A6.1_T3.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A6.1_T3.js
@@ -9,17 +9,15 @@ description: Array.prototype.splice throws if `length` is read-only
---*/
var a = {
- get length() {
- return 0;
- },
- splice: Array.prototype.splice
+ get length() { return 0; },
+ splice: Array.prototype.splice
};
try {
- a.splice(1, 2, 4);
- $ERROR("Expected a TypeError");
+ a.splice(1, 2, 4);
+ $ERROR("Expected a TypeError");
} catch (e) {
- if (!(e instanceof TypeError)) {
- throw e;
- }
+ if (!(e instanceof TypeError)) {
+ throw e;
+ }
}
diff --git a/test/built-ins/Array/prototype/splice/clamps-length-to-integer-limit.js b/test/built-ins/Array/prototype/splice/clamps-length-to-integer-limit.js
index 24584ba48..a376e42e7 100644
--- a/test/built-ins/Array/prototype/splice/clamps-length-to-integer-limit.js
+++ b/test/built-ins/Array/prototype/splice/clamps-length-to-integer-limit.js
@@ -19,18 +19,18 @@ info: |
var arrayLike = {};
-arrayLike.length = 2 ** 53 - 1;
+arrayLike.length = 2**53 - 1;
Array.prototype.splice.call(arrayLike);
-assert.sameValue(arrayLike.length, 2 ** 53 - 1, "Length is 2**53 - 1");
+assert.sameValue(arrayLike.length, 2**53 - 1, "Length is 2**53 - 1");
-arrayLike.length = 2 ** 53;
+arrayLike.length = 2**53;
Array.prototype.splice.call(arrayLike);
-assert.sameValue(arrayLike.length, 2 ** 53 - 1, "Length is 2**53");
+assert.sameValue(arrayLike.length, 2**53 - 1, "Length is 2**53");
-arrayLike.length = 2 ** 53 + 2;
+arrayLike.length = 2**53 + 2;
Array.prototype.splice.call(arrayLike);
-assert.sameValue(arrayLike.length, 2 ** 53 - 1, "Length is 2**53 + 2");
+assert.sameValue(arrayLike.length, 2**53 - 1, "Length is 2**53 + 2");
arrayLike.length = Infinity;
Array.prototype.splice.call(arrayLike);
-assert.sameValue(arrayLike.length, 2 ** 53 - 1, "Length is Infinity");
+assert.sameValue(arrayLike.length, 2**53 - 1, "Length is Infinity");
diff --git a/test/built-ins/Array/prototype/splice/create-non-array.js b/test/built-ins/Array/prototype/splice/create-non-array.js
index 153e48462..0af93e8c5 100644
--- a/test/built-ins/Array/prototype/splice/create-non-array.js
+++ b/test/built-ins/Array/prototype/splice/create-non-array.js
@@ -16,9 +16,7 @@ info: |
4. If isArray is false, return ? ArrayCreate(length).
---*/
-var obj = {
- length: 0
-};
+var obj = { length: 0 };
var callCount = 0;
var result;
Object.defineProperty(obj, 'constructor', {
diff --git a/test/built-ins/Array/prototype/splice/create-species-length-exceeding-integer-limit.js b/test/built-ins/Array/prototype/splice/create-species-length-exceeding-integer-limit.js
index f0a5d73ed..b2f373d61 100644
--- a/test/built-ins/Array/prototype/splice/create-species-length-exceeding-integer-limit.js
+++ b/test/built-ins/Array/prototype/splice/create-species-length-exceeding-integer-limit.js
@@ -28,7 +28,7 @@ function StopSplice() {}
var traps = [];
var targetLength;
-var array = ["no-hole", /* hole */ , "stop"];
+var array = ["no-hole", /* hole */, "stop"];
array.constructor = {
[Symbol.species]: function(n) {
targetLength = n;
@@ -42,7 +42,7 @@ var source = new Proxy(array, allowProxyTraps({
// length property exceeding 2^53-1.
if (pk === "length")
- return 2 ** 53 + 2;
+ return 2**53 + 2;
return Reflect.get(t, pk, r);
},
@@ -66,11 +66,11 @@ var target = new Proxy([], allowProxyTraps({
assert.throws(StopSplice, function() {
// deleteCount argument exceeding 2^53-1.
- Array.prototype.splice.call(source, 0, 2 ** 53 + 4);
+ Array.prototype.splice.call(source, 0, 2**53 + 4);
});
-assert.sameValue(targetLength, 2 ** 53 - 1,
- "length and deleteCount were correctly clamped to 2^53-1");
+assert.sameValue(targetLength, 2**53 - 1,
+ "length and deleteCount were correctly clamped to 2^53-1");
assert.compareArray(traps, [
"source.[[Get]]:length",
diff --git a/test/built-ins/Array/prototype/splice/length-and-deleteCount-exceeding-integer-limit.js b/test/built-ins/Array/prototype/splice/length-and-deleteCount-exceeding-integer-limit.js
index 7734bb325..f48e48d9e 100644
--- a/test/built-ins/Array/prototype/splice/length-and-deleteCount-exceeding-integer-limit.js
+++ b/test/built-ins/Array/prototype/splice/length-and-deleteCount-exceeding-integer-limit.js
@@ -30,25 +30,25 @@ var arrayLike = {
"9007199254740989": "9007199254740989",
"9007199254740990": "9007199254740990",
"9007199254740991": "9007199254740991",
- length: 2 ** 53 + 2,
+ length: 2**53 + 2,
};
-var result = Array.prototype.splice.call(arrayLike, 9007199254740989, 2 ** 53 + 4);
+var result = Array.prototype.splice.call(arrayLike, 9007199254740989, 2**53 + 4);
-assert.compareArray(result, ["9007199254740989", "9007199254740990"],
- "arrayLike['9007199254740989'] and arrayLike['9007199254740990'] are removed");
+assert.compareArray(result, [ "9007199254740989", "9007199254740990" ],
+ "arrayLike['9007199254740989'] and arrayLike['9007199254740990'] are removed");
-assert.sameValue(arrayLike.length, 2 ** 53 - 3,
- "New length is 2**53 - 3");
+assert.sameValue(arrayLike.length, 2**53 - 3,
+ "New length is 2**53 - 3");
assert.sameValue(arrayLike["9007199254740988"], "9007199254740988",
- "arrayLike['9007199254740988'] is unchanged");
+ "arrayLike['9007199254740988'] is unchanged");
assert.sameValue("9007199254740989" in arrayLike, false,
- "arrayLike['9007199254740989'] is removed");
+ "arrayLike['9007199254740989'] is removed");
assert.sameValue("9007199254740990" in arrayLike, false,
- "arrayLike['9007199254740990'] is removed");
+ "arrayLike['9007199254740990'] is removed");
assert.sameValue(arrayLike["9007199254740991"], "9007199254740991",
- "arrayLike['9007199254740991'] is unchanged");
+ "arrayLike['9007199254740991'] is unchanged");
diff --git a/test/built-ins/Array/prototype/splice/length-exceeding-integer-limit-shrink-array.js b/test/built-ins/Array/prototype/splice/length-exceeding-integer-limit-shrink-array.js
index 8340b6a29..e48f292cc 100644
--- a/test/built-ins/Array/prototype/splice/length-exceeding-integer-limit-shrink-array.js
+++ b/test/built-ins/Array/prototype/splice/length-exceeding-integer-limit-shrink-array.js
@@ -34,31 +34,31 @@ var arrayLike = {
/* "9007199254740989": hole */
"9007199254740990": "9007199254740990",
"9007199254740991": "9007199254740991",
- length: 2 ** 53 + 2,
+ length: 2**53 + 2,
};
var result = Array.prototype.splice.call(arrayLike, 9007199254740987, 1);
-assert.compareArray(result, ["9007199254740987"],
- "arrayLike['9007199254740987'] is removed");
+assert.compareArray(result, [ "9007199254740987" ],
+ "arrayLike['9007199254740987'] is removed");
-assert.sameValue(arrayLike.length, 2 ** 53 - 2,
- "New length is 2**53 - 2");
+assert.sameValue(arrayLike.length, 2**53 - 2,
+ "New length is 2**53 - 2");
assert.sameValue(arrayLike["9007199254740986"], "9007199254740986",
- "arrayLike['9007199254740986'] is unchanged");
+ "arrayLike['9007199254740986'] is unchanged");
assert.sameValue(arrayLike["9007199254740987"], "9007199254740988",
- "arrayLike['9007199254740988'] is moved to arrayLike['9007199254740987']");
+ "arrayLike['9007199254740988'] is moved to arrayLike['9007199254740987']");
assert.sameValue("9007199254740988" in arrayLike, false,
- "arrayLike['9007199254740990'] is removed");
+ "arrayLike['9007199254740990'] is removed");
assert.sameValue(arrayLike["9007199254740989"], "9007199254740990",
- "arrayLike['9007199254740990'] is moved to arrayLike['9007199254740989']");
+ "arrayLike['9007199254740990'] is moved to arrayLike['9007199254740989']");
assert.sameValue("9007199254740990" in arrayLike, false,
- "arrayLike['9007199254740990'] is removed");
+ "arrayLike['9007199254740990'] is removed");
assert.sameValue(arrayLike["9007199254740991"], "9007199254740991",
- "arrayLike['9007199254740991'] is unchanged");
+ "arrayLike['9007199254740991'] is unchanged");
diff --git a/test/built-ins/Array/prototype/splice/length-near-integer-limit-grow-array.js b/test/built-ins/Array/prototype/splice/length-near-integer-limit-grow-array.js
index 42cf6f9c5..9f0b85798 100644
--- a/test/built-ins/Array/prototype/splice/length-near-integer-limit-grow-array.js
+++ b/test/built-ins/Array/prototype/splice/length-near-integer-limit-grow-array.js
@@ -31,32 +31,32 @@ var arrayLike = {
"9007199254740989": "9007199254740989",
/* "9007199254740990": empty */
"9007199254740991": "9007199254740991",
- length: 2 ** 53 - 2,
+ length: 2**53 - 2,
};
var result = Array.prototype.splice.call(arrayLike, 9007199254740986, 0, "new-value");
assert.compareArray(result, [], "No elements are removed");
-assert.sameValue(arrayLike.length, 2 ** 53 - 1, "New length is 2**53 - 1");
+assert.sameValue(arrayLike.length, 2**53 - 1, "New length is 2**53 - 1");
assert.sameValue(arrayLike["9007199254740985"], "9007199254740985",
- "arrayLike['9007199254740985'] is unchanged");
+ "arrayLike['9007199254740985'] is unchanged");
assert.sameValue(arrayLike["9007199254740986"], "new-value",
- "arrayLike['9007199254740986'] contains the inserted value");
+ "arrayLike['9007199254740986'] contains the inserted value");
assert.sameValue(arrayLike["9007199254740987"], "9007199254740986",
- "arrayLike['9007199254740986'] is moved to arrayLike['9007199254740987']");
+ "arrayLike['9007199254740986'] is moved to arrayLike['9007199254740987']");
assert.sameValue(arrayLike["9007199254740988"], "9007199254740987",
- "arrayLike['9007199254740987'] is moved to arrayLike['9007199254740988']");
+ "arrayLike['9007199254740987'] is moved to arrayLike['9007199254740988']");
assert.sameValue("9007199254740989" in arrayLike, false,
- "arrayLike['9007199254740989'] is removed");
+ "arrayLike['9007199254740989'] is removed");
assert.sameValue(arrayLike["9007199254740990"], "9007199254740989",
- "arrayLike['9007199254740989'] is moved to arrayLike['9007199254740990']");
+ "arrayLike['9007199254740989'] is moved to arrayLike['9007199254740990']");
assert.sameValue(arrayLike["9007199254740991"], "9007199254740991",
- "arrayLike['9007199254740991'] is unchanged");
+ "arrayLike['9007199254740991'] is unchanged");
diff --git a/test/built-ins/Array/prototype/splice/set_length_no_args.js b/test/built-ins/Array/prototype/splice/set_length_no_args.js
index 25dbc37ef..a2c04e0fd 100644
--- a/test/built-ins/Array/prototype/splice/set_length_no_args.js
+++ b/test/built-ins/Array/prototype/splice/set_length_no_args.js
@@ -14,8 +14,7 @@ es5id: 15.4.4.12
es6id: 22.1.3.25
---*/
-var getCallCount = 0,
- setCallCount = 0;
+var getCallCount = 0, setCallCount = 0;
var lengthValue;
var obj = {
diff --git a/test/built-ins/Array/prototype/splice/throws-if-integer-limit-exceeded.js b/test/built-ins/Array/prototype/splice/throws-if-integer-limit-exceeded.js
index 447eb4d0a..883d0508f 100644
--- a/test/built-ins/Array/prototype/splice/throws-if-integer-limit-exceeded.js
+++ b/test/built-ins/Array/prototype/splice/throws-if-integer-limit-exceeded.js
@@ -19,17 +19,17 @@ info: |
var arrayLike = {};
-arrayLike.length = 2 ** 53 - 1;
+arrayLike.length = 2**53 - 1;
assert.throws(TypeError, function() {
Array.prototype.splice.call(arrayLike, 0, 0, null);
}, "Length is 2**53 - 1");
-arrayLike.length = 2 ** 53;
+arrayLike.length = 2**53;
assert.throws(TypeError, function() {
Array.prototype.splice.call(arrayLike, 0, 0, null);
}, "Length is 2**53");
-arrayLike.length = 2 ** 53 + 2;
+arrayLike.length = 2**53 + 2;
assert.throws(TypeError, function() {
Array.prototype.splice.call(arrayLike, 0, 0, null);
}, "Length is 2**53 + 2");
diff --git a/test/built-ins/Array/prototype/toLocaleString/S15.4.4.3_A1_T1.js b/test/built-ins/Array/prototype/toLocaleString/S15.4.4.3_A1_T1.js
index c2f7a29a5..1aaa20fc0 100644
--- a/test/built-ins/Array/prototype/toLocaleString/S15.4.4.3_A1_T1.js
+++ b/test/built-ins/Array/prototype/toLocaleString/S15.4.4.3_A1_T1.js
@@ -13,11 +13,7 @@ description: it is the function that should be invoked
---*/
var n = 0;
-var obj = {
- toLocaleString: function() {
- n++
- }
-};
+var obj = {toLocaleString: function() {n++}};
var arr = [undefined, obj, null, obj, obj];
arr.toLocaleString();
diff --git a/test/built-ins/Array/prototype/toLocaleString/S15.4.4.3_A3_T1.js b/test/built-ins/Array/prototype/toLocaleString/S15.4.4.3_A3_T1.js
index 7bf7a44d5..fd32d7702 100644
--- a/test/built-ins/Array/prototype/toLocaleString/S15.4.4.3_A3_T1.js
+++ b/test/built-ins/Array/prototype/toLocaleString/S15.4.4.3_A3_T1.js
@@ -10,11 +10,7 @@ description: "[[Prototype]] of Array instance is Array.prototype"
//CHECK#1
var n = 0;
-var obj = {
- toLocaleString: function() {
- n++
- }
-};
+var obj = {toLocaleString: function() {n++}};
Array.prototype[1] = obj;
var x = [obj];
x.length = 2;
diff --git a/test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T1.js b/test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T1.js
index 29ce4d673..dbcce9310 100644
--- a/test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T1.js
+++ b/test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T1.js
@@ -14,7 +14,7 @@ description: If Result(2) is zero, return the empty string
var x = new Array();
if (x.toString() !== x.join()) {
$ERROR('#1.1: x = new Array(); x.toString() === x.join(). Actual: ' + (x.toString()));
-} else {
+} else {
if (x.toString() !== "") {
$ERROR('#1.2: x = new Array(); x.toString() === "". Actual: ' + (x.toString()));
}
diff --git a/test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T2.js b/test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T2.js
index 29e417734..62a82f8b1 100644
--- a/test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T2.js
+++ b/test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T2.js
@@ -15,7 +15,7 @@ description: >
---*/
//CHECK#1
-var x = new Array(0, 1, 2, 3);
+var x = new Array(0,1,2,3);
if (x.toString() !== x.join()) {
$ERROR('#1.1: x = new Array(0,1,2,3); x.toString() === x.join(). Actual: ' + (x.toString()));
} else {
@@ -37,7 +37,7 @@ if (x.toString() !== x.join()) {
}
//CHECK#3
-x = Array(undefined, 1, null, 3);
+x = Array(undefined,1,null,3);
if (x.toString() !== x.join()) {
$ERROR('#3.1: x = Array(undefined,1,null,3); x.toString() === x.join(). Actual: ' + (x.toString()));
} else {
diff --git a/test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T3.js b/test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T3.js
index c3c93e46c..96ad80872 100644
--- a/test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T3.js
+++ b/test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T3.js
@@ -11,7 +11,7 @@ description: Operator use ToString from array arguments
---*/
//CHECK#0
-var x = new Array("", "", "");
+var x = new Array("","","");
if (x.toString() !== x.join()) {
$ERROR('#0.1: var x = new Array("","",""); x.toString() === x.join(). Actual: ' + (x.toString()));
} else {
@@ -21,7 +21,7 @@ if (x.toString() !== x.join()) {
}
//CHECK#1
-var x = new Array("\\", "\\", "\\");
+var x = new Array("\\","\\","\\");
if (x.toString() !== x.join()) {
$ERROR('#1.1: var x = new Array("\\","\\","\\"); x.toString() === x.join(). Actual: ' + (x.toString()));
} else {
@@ -41,51 +41,51 @@ if (x.toString() !== x.join()) {
}
//CHECK#3
-var x = new Array(true, true, true);
+var x = new Array(true,true,true);
if (x.toString() !== x.join()) {
- $ERROR('#3.1: var x = new Array(true,true,true); x.toString(true,true,true) === x.join(). Actual: ' + (x.toString(true, true, true)));
+ $ERROR('#3.1: var x = new Array(true,true,true); x.toString(true,true,true) === x.join(). Actual: ' + (x.toString(true,true,true)));
} else {
if (x.toString() !== "true,true,true") {
- $ERROR('#3.2: var x = new Array(true,true,true); x.toString(true,true,true) === "true,true,true". Actual: ' + (x.toString(true, true, true)));
+ $ERROR('#3.2: var x = new Array(true,true,true); x.toString(true,true,true) === "true,true,true". Actual: ' + (x.toString(true,true,true)));
}
}
//CHECK#4
-var x = new Array(null, null, null);
+var x = new Array(null,null,null);
if (x.toString() !== x.join()) {
- $ERROR('#4.1: var x = new Array(null,null,null); x.toString(null,null,null) === x.join(). Actual: ' + (x.toString(null, null, null)));
+ $ERROR('#4.1: var x = new Array(null,null,null); x.toString(null,null,null) === x.join(). Actual: ' + (x.toString(null,null,null)));
} else {
if (x.toString() !== ",,") {
- $ERROR('#4.2: var x = new Array(null,null,null); x.toString(null,null,null) === ",,". Actual: ' + (x.toString(null, null, null)));
+ $ERROR('#4.2: var x = new Array(null,null,null); x.toString(null,null,null) === ",,". Actual: ' + (x.toString(null,null,null)));
}
}
//CHECK#5
-var x = new Array(undefined, undefined, undefined);
+var x = new Array(undefined,undefined,undefined);
if (x.toString() !== x.join()) {
- $ERROR('#5.1: var x = new Array(undefined,undefined,undefined); x.toString(undefined,undefined,undefined) === x.join(). Actual: ' + (x.toString(undefined, undefined, undefined)));
+ $ERROR('#5.1: var x = new Array(undefined,undefined,undefined); x.toString(undefined,undefined,undefined) === x.join(). Actual: ' + (x.toString(undefined,undefined,undefined)));
} else {
if (x.toString() !== ",,") {
- $ERROR('#5.2: var x = new Array(undefined,undefined,undefined); x.toString(undefined,undefined,undefined) === ",,". Actual: ' + (x.toString(undefined, undefined, undefined)));
+ $ERROR('#5.2: var x = new Array(undefined,undefined,undefined); x.toString(undefined,undefined,undefined) === ",,". Actual: ' + (x.toString(undefined,undefined,undefined)));
}
}
//CHECK#6
-var x = new Array(Infinity, Infinity, Infinity);
+var x = new Array(Infinity,Infinity,Infinity);
if (x.toString() !== x.join()) {
- $ERROR('#6.1: var x = new Array(Infinity,Infinity,Infinity); x.toString(Infinity,Infinity,Infinity) === x.join(). Actual: ' + (x.toString(Infinity, Infinity, Infinity)));
+ $ERROR('#6.1: var x = new Array(Infinity,Infinity,Infinity); x.toString(Infinity,Infinity,Infinity) === x.join(). Actual: ' + (x.toString(Infinity,Infinity,Infinity)));
} else {
if (x.toString() !== "Infinity,Infinity,Infinity") {
- $ERROR('#6.2: var x = new Array(Infinity,Infinity,Infinity); x.toString(Infinity,Infinity,Infinity) === "Infinity,Infinity,Infinity". Actual: ' + (x.toString(Infinity, Infinity, Infinity)));
+ $ERROR('#6.2: var x = new Array(Infinity,Infinity,Infinity); x.toString(Infinity,Infinity,Infinity) === "Infinity,Infinity,Infinity". Actual: ' + (x.toString(Infinity,Infinity,Infinity)));
}
}
//CHECK#7
-var x = new Array(NaN, NaN, NaN);
+var x = new Array(NaN,NaN,NaN);
if (x.toString() !== x.join()) {
- $ERROR('#7.1: var x = new Array(NaN,NaN,NaN); x.toString(NaN,NaN,NaN) === x.join(). Actual: ' + (x.toString(NaN, NaN, NaN)));
+ $ERROR('#7.1: var x = new Array(NaN,NaN,NaN); x.toString(NaN,NaN,NaN) === x.join(). Actual: ' + (x.toString(NaN,NaN,NaN)));
} else {
if (x.toString() !== "NaN,NaN,NaN") {
- $ERROR('#7.2: var x = new Array(NaN,NaN,NaN); x.toString(NaN,NaN,NaN) === "NaN,NaN,NaN". Actual: ' + (x.toString(NaN, NaN, NaN)));
+ $ERROR('#7.2: var x = new Array(NaN,NaN,NaN); x.toString(NaN,NaN,NaN) === "NaN,NaN,NaN". Actual: ' + (x.toString(NaN,NaN,NaN)));
}
}
diff --git a/test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T4.js b/test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T4.js
index 02045cb35..147173991 100644
--- a/test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T4.js
+++ b/test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T4.js
@@ -11,11 +11,7 @@ description: If Type(value) is Object, evaluate ToPrimitive(value, String)
---*/
//CHECK#1
-var object = {
- valueOf: function() {
- return "+"
- }
-};
+var object = {valueOf: function() {return "+"}};
var x = new Array(object);
if (x.toString() !== x.join()) {
$ERROR('#1.1: var object = {valueOf: function() {return "+"}} var x = new Array(object); x.toString() === x.join(). Actual: ' + (x.toString()));
@@ -26,14 +22,7 @@ if (x.toString() !== x.join()) {
}
//CHECK#2
-var object = {
- valueOf: function() {
- return "+"
- },
- toString: function() {
- return "*"
- }
-};
+var object = {valueOf: function() {return "+"}, toString: function() {return "*"}};
var x = new Array(object);
if (x.toString() !== x.join()) {
$ERROR('#2.1: var object = {valueOf: function() {return "+"}, toString: function() {return x.join()}} var x = new Array(object); x.toString() === "*". Actual: ' + (x.toString()));
@@ -44,14 +33,7 @@ if (x.toString() !== x.join()) {
}
//CHECK#3
-var object = {
- valueOf: function() {
- return "+"
- },
- toString: function() {
- return {}
- }
-};
+var object = {valueOf: function() {return "+"}, toString: function() {return {}}};
var x = new Array(object);
if (x.toString() !== x.join()) {
$ERROR('#3.1: var object = {valueOf: function() {return x.join()}, toString: function() {return {}}} var x = new Array(object); x.toString() === "+". Actual: ' + (x.toString()));
@@ -63,14 +45,7 @@ if (x.toString() !== x.join()) {
//CHECK#4
try {
- var object = {
- valueOf: function() {
- throw "error"
- },
- toString: function() {
- return "*"
- }
- };
+ var object = {valueOf: function() {throw "error"}, toString: function() {return "*"}};
var x = new Array(object);
if (x.toString() !== x.join()) {
$ERROR('#4.1: var object = {valueOf: function() {throw "error"}, toString: function() {return x.join()}} var x = new Array(object); x.toString() === "*". Actual: ' + (x.toString()));
@@ -89,11 +64,7 @@ catch (e) {
}
//CHECK#5
-var object = {
- toString: function() {
- return "*"
- }
-};
+var object = {toString: function() {return "*"}};
var x = new Array(object);
if (x.toString() !== x.join()) {
$ERROR('#5.1: var object = {toString: function() {return x.join()}} var x = new Array(object); x.toString() === "*". Actual: ' + (x.toString()));
@@ -104,14 +75,7 @@ if (x.toString() !== x.join()) {
}
//CHECK#6
-var object = {
- valueOf: function() {
- return {}
- },
- toString: function() {
- return "*"
- }
-}
+var object = {valueOf: function() {return {}}, toString: function() {return "*"}}
var x = new Array(object);
if (x.toString() !== x.join()) {
$ERROR('#6.1: var object = {valueOf: function() {return {}}, toString: function() {return x.join()}} var x = new Array(object); x.toString() === "*". Actual: ' + (x.toString()));
@@ -123,14 +87,7 @@ if (x.toString() !== x.join()) {
//CHECK#7
try {
- var object = {
- valueOf: function() {
- return "+"
- },
- toString: function() {
- throw "error"
- }
- };
+ var object = {valueOf: function() {return "+"}, toString: function() {throw "error"}};
var x = new Array(object);
x.toString();
$ERROR('#7.1: var object = {valueOf: function() {return "+"}, toString: function() {throw "error"}} var x = new Array(object); x.toString() throw "error". Actual: ' + (x.toString()));
@@ -143,14 +100,7 @@ catch (e) {
//CHECK#8
try {
- var object = {
- valueOf: function() {
- return {}
- },
- toString: function() {
- return {}
- }
- };
+ var object = {valueOf: function() {return {}}, toString: function() {return {}}};
var x = new Array(object);
x.toString();
$ERROR('#8.1: var object = {valueOf: function() {return {}}, toString: function() {return {}}} var x = new Array(object); x.toString() throw TypeError. Actual: ' + (x.toString()));
diff --git a/test/built-ins/Array/prototype/unshift/S15.4.4.13_A2_T1.js b/test/built-ins/Array/prototype/unshift/S15.4.4.13_A2_T1.js
index f45be1170..325a8aded 100644
--- a/test/built-ins/Array/prototype/unshift/S15.4.4.13_A2_T1.js
+++ b/test/built-ins/Array/prototype/unshift/S15.4.4.13_A2_T1.js
@@ -19,19 +19,19 @@ obj.unshift = Array.prototype.unshift;
if (obj.length !== undefined) {
$ERROR('#0: var obj = {}; obj.length === undefined. Actual: ' + (obj.length));
} else {
- //CHECK#1
- var unshift = obj.unshift(-1);
- if (unshift !== 1) {
- $ERROR('#1: var obj = {}; obj.unshift = Array.prototype.unshift; obj.unshift(-1) === 1. Actual: ' + (unshift));
- }
- //CHECK#2
- if (obj.length !== 1) {
- $ERROR('#2: var obj = {}; obj.unshift = Array.prototype.unshift; obj.unshift(-1); obj.length === 1. Actual: ' + (obj.length));
- }
- //CHECK#3
- if (obj["0"] !== -1) {
- $ERROR('#3: var obj = {}; obj.unshift = Array.prototype.unshift; obj.unshift(-1); obj["0"] === -1. Actual: ' + (obj["0"]));
- }
+ //CHECK#1
+ var unshift = obj.unshift(-1);
+ if (unshift !== 1) {
+ $ERROR('#1: var obj = {}; obj.unshift = Array.prototype.unshift; obj.unshift(-1) === 1. Actual: ' + (unshift));
+ }
+ //CHECK#2
+ if (obj.length !== 1) {
+ $ERROR('#2: var obj = {}; obj.unshift = Array.prototype.unshift; obj.unshift(-1); obj.length === 1. Actual: ' + (obj.length));
+ }
+ //CHECK#3
+ if (obj["0"] !== -1) {
+ $ERROR('#3: var obj = {}; obj.unshift = Array.prototype.unshift; obj.unshift(-1); obj["0"] === -1. Actual: ' + (obj["0"]));
+ }
}
//CHECK#4
diff --git a/test/built-ins/Array/prototype/unshift/S15.4.4.13_A2_T3.js b/test/built-ins/Array/prototype/unshift/S15.4.4.13_A2_T3.js
index 979bc566b..c169a2c06 100644
--- a/test/built-ins/Array/prototype/unshift/S15.4.4.13_A2_T3.js
+++ b/test/built-ins/Array/prototype/unshift/S15.4.4.13_A2_T3.js
@@ -16,39 +16,21 @@ var obj = {};
obj.unshift = Array.prototype.unshift;
//CHECK#1
-obj.length = {
- valueOf: function() {
- return 3
- }
-};
+obj.length = {valueOf: function() {return 3}};
var unshift = obj.unshift();
if (unshift !== 3) {
$ERROR('#1: obj.length = {valueOf: function() {return 3}} obj.unshift() === 3. Actual: ' + (unshift));
}
//CHECK#2
-obj.length = {
- valueOf: function() {
- return 3
- },
- toString: function() {
- return 1
- }
-};
+obj.length = {valueOf: function() {return 3}, toString: function() {return 1}};
var unshift = obj.unshift();
if (unshift !== 3) {
$ERROR('#0: obj.length = {valueOf: function() {return 3}, toString: function() {return 1}} obj.unshift() === 3. Actual: ' + (unshift));
}
//CHECK#3
-obj.length = {
- valueOf: function() {
- return 3
- },
- toString: function() {
- return {}
- }
-};
+obj.length = {valueOf: function() {return 3}, toString: function() {return {}}};
var unshift = obj.unshift();
if (unshift !== 3) {
$ERROR('#1: obj.length = {valueOf: function() {return 3}, toString: function() {return {}}} obj.unshift() === 3. Actual: ' + (unshift));
@@ -56,14 +38,7 @@ if (unshift !== 3) {
//CHECK#4
try {
- obj.length = {
- valueOf: function() {
- return 3
- },
- toString: function() {
- throw "error"
- }
- };
+ obj.length = {valueOf: function() {return 3}, toString: function() {throw "error"}};
var unshift = obj.unshift();
if (unshift !== 3) {
$ERROR('#4.1: obj.length = {valueOf: function() {return 3}, toString: function() {throw "error"}}; obj.unshift() === ",". Actual: ' + (unshift));
@@ -78,25 +53,14 @@ catch (e) {
}
//CHECK#5
-obj.length = {
- toString: function() {
- return 1
- }
-};
+obj.length = {toString: function() {return 1}};
var unshift = obj.unshift();
if (unshift !== 1) {
$ERROR('#5: obj.length = {toString: function() {return 1}} obj.unshift() === 1. Actual: ' + (unshift));
}
//CHECK#6
-obj.length = {
- valueOf: function() {
- return {}
- },
- toString: function() {
- return 1
- }
-}
+obj.length = {valueOf: function() {return {}}, toString: function() {return 1}}
var unshift = obj.unshift();
if (unshift !== 1) {
$ERROR('#6: obj.length = {valueOf: function() {return {}}, toString: function() {return 1}} obj.unshift() === 1. Actual: ' + (unshift));
@@ -105,14 +69,7 @@ if (unshift !== 1) {
//CHECK#7
try {
- obj.length = {
- valueOf: function() {
- throw "error"
- },
- toString: function() {
- return 1
- }
- };
+ obj.length = {valueOf: function() {throw "error"}, toString: function() {return 1}};
var unshift = obj.unshift();
$ERROR('#7.1: obj.length = {valueOf: function() {throw "error"}, toString: function() {return 1}}; obj.unshift() throw "error". Actual: ' + (unshift));
}
@@ -125,14 +82,7 @@ catch (e) {
//CHECK#8
try {
- obj.length = {
- valueOf: function() {
- return {}
- },
- toString: function() {
- return {}
- }
- };
+ obj.length = {valueOf: function() {return {}}, toString: function() {return {}}};
var unshift = obj.unshift();
$ERROR('#8.1: obj.length = {valueOf: function() {return {}}, toString: function() {return {}}} obj.unshift() throw TypeError. Actual: ' + (unshift));
}
diff --git a/test/built-ins/Array/prototype/unshift/S15.4.4.13_A3_T2.js b/test/built-ins/Array/prototype/unshift/S15.4.4.13_A3_T2.js
index fcbbe10dd..fe67c11de 100644
--- a/test/built-ins/Array/prototype/unshift/S15.4.4.13_A3_T2.js
+++ b/test/built-ins/Array/prototype/unshift/S15.4.4.13_A3_T2.js
@@ -26,20 +26,20 @@ if (obj.length !== 3) {
//CHECK#3
if (obj[0] !== "x") {
- $ERROR('#3: var obj = {}; obj.unshift = Array.prototype.unshift; obj[0] = ""; obj.length = -4294967295; obj.unshift("x", "y", "z"); obj[0] === "x". Actual: ' + (obj[0]));
+ $ERROR('#3: var obj = {}; obj.unshift = Array.prototype.unshift; obj[0] = ""; obj.length = -4294967295; obj.unshift("x", "y", "z"); obj[0] === "x". Actual: ' + (obj[0]));
}
//CHECK#4
if (obj[1] !== "y") {
- $ERROR('#4: var obj = {}; obj.unshift = Array.prototype.unshift; obj[0] = ""; obj.length = -4294967295; obj.unshift("x", "y", "z"); obj[1] === "y". Actual: ' + (obj[1]));
+ $ERROR('#4: var obj = {}; obj.unshift = Array.prototype.unshift; obj[0] = ""; obj.length = -4294967295; obj.unshift("x", "y", "z"); obj[1] === "y". Actual: ' + (obj[1]));
}
//CHECK#5
if (obj[2] !== "z") {
- $ERROR('#5: var obj = {}; obj.unshift = Array.prototype.unshift; obj[0] = ""; obj.length = -4294967295; obj.unshift("x", "y", "z"); obj[2] === "z". Actual: ' + (obj[2]));
+ $ERROR('#5: var obj = {}; obj.unshift = Array.prototype.unshift; obj[0] = ""; obj.length = -4294967295; obj.unshift("x", "y", "z"); obj[2] === "z". Actual: ' + (obj[2]));
}
//CHECK#6
if (obj[3] !== undefined) {
- $ERROR('#6: var obj = {}; obj.unshift = Array.prototype.unshift; obj[0] = ""; obj.length = -4294967295; obj.unshift("x", "y", "z"); obj[3] === undefined. Actual: ' + (obj[3]));
+ $ERROR('#6: var obj = {}; obj.unshift = Array.prototype.unshift; obj[0] = ""; obj.length = -4294967295; obj.unshift("x", "y", "z"); obj[3] === undefined. Actual: ' + (obj[3]));
}
diff --git a/test/built-ins/Array/prototype/unshift/S15.4.4.13_A4_T1.js b/test/built-ins/Array/prototype/unshift/S15.4.4.13_A4_T1.js
index 0235e42bb..758fbb338 100644
--- a/test/built-ins/Array/prototype/unshift/S15.4.4.13_A4_T1.js
+++ b/test/built-ins/Array/prototype/unshift/S15.4.4.13_A4_T1.js
@@ -40,9 +40,7 @@ if (x[0] !== -1) {
Object.prototype[0] = -1;
Object.prototype.length = 1;
Object.prototype.unshift = Array.prototype.unshift;
-x = {
- 0: 1
-};
+x = {0:1};
//CHECK#5
var unshift = x.unshift(0);
diff --git a/test/built-ins/Array/prototype/unshift/clamps-to-integer-limit.js b/test/built-ins/Array/prototype/unshift/clamps-to-integer-limit.js
index 9f2e14184..4818d2ab8 100644
--- a/test/built-ins/Array/prototype/unshift/clamps-to-integer-limit.js
+++ b/test/built-ins/Array/prototype/unshift/clamps-to-integer-limit.js
@@ -15,18 +15,18 @@ info: |
var arrayLike = {};
-arrayLike.length = 2 ** 53 - 1;
+arrayLike.length = 2**53 - 1;
Array.prototype.unshift.call(arrayLike);
-assert.sameValue(arrayLike.length, 2 ** 53 - 1, "Length is 2**53 - 1");
+assert.sameValue(arrayLike.length, 2**53 - 1, "Length is 2**53 - 1");
-arrayLike.length = 2 ** 53;
+arrayLike.length = 2**53;
Array.prototype.unshift.call(arrayLike);
-assert.sameValue(arrayLike.length, 2 ** 53 - 1, "Length is 2**53");
+assert.sameValue(arrayLike.length, 2**53 - 1, "Length is 2**53");
-arrayLike.length = 2 ** 53 + 2;
+arrayLike.length = 2**53 + 2;
Array.prototype.unshift.call(arrayLike);
-assert.sameValue(arrayLike.length, 2 ** 53 - 1, "Length is 2**53 + 2");
+assert.sameValue(arrayLike.length, 2**53 - 1, "Length is 2**53 + 2");
arrayLike.length = Infinity;
Array.prototype.unshift.call(arrayLike);
-assert.sameValue(arrayLike.length, 2 ** 53 - 1, "Length is Infinity");
+assert.sameValue(arrayLike.length, 2**53 - 1, "Length is Infinity");
diff --git a/test/built-ins/Array/prototype/unshift/length-near-integer-limit.js b/test/built-ins/Array/prototype/unshift/length-near-integer-limit.js
index 5dff513e4..bd4ad9aa6 100644
--- a/test/built-ins/Array/prototype/unshift/length-near-integer-limit.js
+++ b/test/built-ins/Array/prototype/unshift/length-near-integer-limit.js
@@ -26,7 +26,7 @@ info: |
function StopUnshift() {}
var arrayLike = {
- get "9007199254740986" () {
+ get "9007199254740986"() {
throw new StopUnshift();
},
"9007199254740987": "9007199254740987",
@@ -34,27 +34,27 @@ var arrayLike = {
"9007199254740989": "9007199254740989",
/* "9007199254740990": empty */
"9007199254740991": "9007199254740991",
- length: 2 ** 53 - 2
+ length: 2**53 - 2
};
assert.throws(StopUnshift, function() {
Array.prototype.unshift.call(arrayLike, null);
});
-assert.sameValue(arrayLike.length, 2 ** 53 - 2,
- "arrayLike.length is unchanged");
+assert.sameValue(arrayLike.length, 2**53 - 2,
+ "arrayLike.length is unchanged");
assert.sameValue(arrayLike["9007199254740987"], "9007199254740987",
- "arrayLike['9007199254740987'] is unchanged");
+ "arrayLike['9007199254740987'] is unchanged");
assert.sameValue(arrayLike["9007199254740988"], "9007199254740987",
- "arrayLike['9007199254740988'] is replaced with arrayLike['9007199254740987']");
+ "arrayLike['9007199254740988'] is replaced with arrayLike['9007199254740987']");
assert.sameValue("9007199254740989" in arrayLike, false,
- "arrayLike['9007199254740989'] is removed");
+ "arrayLike['9007199254740989'] is removed");
assert.sameValue(arrayLike["9007199254740990"], "9007199254740989",
- "arrayLike['9007199254740990'] is replaced with arrayLike['9007199254740989']");
+ "arrayLike['9007199254740990'] is replaced with arrayLike['9007199254740989']");
assert.sameValue(arrayLike["9007199254740991"], "9007199254740991",
- "arrayLike['9007199254740991'] is unchanged");
+ "arrayLike['9007199254740991'] is unchanged");
diff --git a/test/built-ins/Array/prototype/unshift/throws-if-integer-limit-exceeded.js b/test/built-ins/Array/prototype/unshift/throws-if-integer-limit-exceeded.js
index 9ad723eca..a6e0acc30 100644
--- a/test/built-ins/Array/prototype/unshift/throws-if-integer-limit-exceeded.js
+++ b/test/built-ins/Array/prototype/unshift/throws-if-integer-limit-exceeded.js
@@ -16,17 +16,17 @@ info: |
var arrayLike = {};
-arrayLike.length = 2 ** 53 - 1;
+arrayLike.length = 2**53 - 1;
assert.throws(TypeError, function() {
Array.prototype.unshift.call(arrayLike, null);
}, "Length is 2**53 - 1");
-arrayLike.length = 2 ** 53;
+arrayLike.length = 2**53;
assert.throws(TypeError, function() {
Array.prototype.unshift.call(arrayLike, null);
}, "Length is 2**53");
-arrayLike.length = 2 ** 53 + 2;
+arrayLike.length = 2**53 + 2;
assert.throws(TypeError, function() {
Array.prototype.unshift.call(arrayLike, null);
}, "Length is 2**53 + 2");
diff --git a/test/built-ins/Array/prototype/values/iteration-mutable.js b/test/built-ins/Array/prototype/values/iteration-mutable.js
index 74142c4b5..15a0170d1 100644
--- a/test/built-ins/Array/prototype/values/iteration-mutable.js
+++ b/test/built-ins/Array/prototype/values/iteration-mutable.js
@@ -20,7 +20,7 @@ var result;
array.push('a');
result = iterator.next();
-assert.sameValue(result.done, false, 'First result `done` flag');
+assert.sameValue(result.done, false , 'First result `done` flag');
assert.sameValue(result.value, 'a', 'First result `value`');
result = iterator.next();
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 e53c92b1c..85cfd57a5 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 2e17f26bc..a32cf9bd5 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 0d6c097d7..8044f622b 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 383aaeb93..72534dccf 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,7 +17,6 @@ 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 5138b910d..10d47bf18 100644
--- a/test/built-ins/ArrayBuffer/prototype/slice/end-exceeds-length.js
+++ b/test/built-ins/ArrayBuffer/prototype/slice/end-exceeds-length.js
@@ -16,17 +16,14 @@ 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 bafdd8a4f..c41245c86 100644
--- a/test/built-ins/ArrayBuffer/prototype/slice/negative-end.js
+++ b/test/built-ins/ArrayBuffer/prototype/slice/negative-end.js
@@ -16,17 +16,14 @@ 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 afc33ffff..34781706e 100644
--- a/test/built-ins/ArrayBuffer/prototype/slice/negative-start.js
+++ b/test/built-ins/ArrayBuffer/prototype/slice/negative-start.js
@@ -16,17 +16,14 @@ 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 83c2ba319..1a3406f85 100644
--- a/test/built-ins/ArrayBuffer/prototype/slice/nonconstructor.js
+++ b/test/built-ins/ArrayBuffer/prototype/slice/nonconstructor.js
@@ -18,6 +18,4 @@ 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 94cf973ce..ce293de3f 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,9 +26,7 @@ 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 707a12acb..a2ae81988 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,9 +29,7 @@ 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 8a751cd22..d358cb90b 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,9 +29,7 @@ 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 359437934..65ad471f9 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,7 +17,6 @@ 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 af0ca352a..2731261e0 100644
--- a/test/built-ins/ArrayBuffer/prototype/slice/start-exceeds-end.js
+++ b/test/built-ins/ArrayBuffer/prototype/slice/start-exceeds-end.js
@@ -16,7 +16,6 @@ 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 70e00c741..b8abf3b5d 100644
--- a/test/built-ins/ArrayBuffer/prototype/slice/start-exceeds-length.js
+++ b/test/built-ins/ArrayBuffer/prototype/slice/start-exceeds-length.js
@@ -16,17 +16,14 @@ 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 54e8ab1fa..4beb7335f 100644
--- a/test/built-ins/ArrayBuffer/prototype/slice/tointeger-conversion-end.js
+++ b/test/built-ins/ArrayBuffer/prototype/slice/tointeger-conversion-end.js
@@ -17,12 +17,10 @@ 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 3150213e6..c775d4231 100644
--- a/test/built-ins/ArrayBuffer/prototype/slice/tointeger-conversion-start.js
+++ b/test/built-ins/ArrayBuffer/prototype/slice/tointeger-conversion-start.js
@@ -17,12 +17,10 @@ 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 bb71ff214..f839e90f0 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 16c64658e..f1e790b2a 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 9eb72139f..737d3411c 100644
--- a/test/built-ins/AsyncFunction/AsyncFunction-is-subclass.js
+++ b/test/built-ins/AsyncFunction/AsyncFunction-is-subclass.js
@@ -7,8 +7,9 @@ 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 c6ba9360e..60af9c72f 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 637d1ece1..cdc9ab069 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 99a040b3f..2a2801238 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 77c5aaef3..2f958c813 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 f8e4d7dde..5dd8cdb97 100644
--- a/test/built-ins/AsyncFunction/AsyncFunctionPrototype-is-extensible.js
+++ b/test/built-ins/AsyncFunction/AsyncFunctionPrototype-is-extensible.js
@@ -8,6 +8,7 @@ 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 327c5ee0f..a917fbd25 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 d9e8cb1ec..e2a35b210 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 8c5bec687..1ca25171f 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 1def25c88..cf118edae 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 dd278bd05..288ab4534 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 6e14bff3f..3b631ae28 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 432ebf9a1..baf5140ff 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 b7aa9cd5a..2139e57c2 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 ff1805808..58cf977f0 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 e0923889a..f6c30c552 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 3719f2f90..1528abd3a 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 21d834eae..a62233274 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 1451092a2..fe91ae801 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 e8435ff2e..bfad491a0 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 bdcfbac74..476238fe7 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 8d7035487..7184954bf 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 a7538d011..9fd8b9ab8 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 b7964e361..11824fc57 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 a803a6f85..c2d49e188 100644
--- a/test/built-ins/Atomics/compareExchange/good-views.js
+++ b/test/built-ins/Atomics/compareExchange/good-views.js
@@ -13,67 +13,62 @@ 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 fc51c91ec..d57903407 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 c61650944..c3a95b239 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 059c9301e..069e45abb 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 15957b200..4392c1d78 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 d8fd39ee9..f42c98abe 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 c4d28a2fa..b8c2b5463 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 e3f730261..30b7617d1 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 a83b0c462..03293c2da 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 fe5ab9aad..fb364030c 100644
--- a/test/built-ins/Atomics/isLockFree/corner-cases.js
+++ b/test/built-ins/Atomics/isLockFree/corner-cases.js
@@ -17,21 +17,14 @@ 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 88eca120e..4b8164716 100644
--- a/test/built-ins/Atomics/isLockFree/value.js
+++ b/test/built-ins/Atomics/isLockFree/value.js
@@ -7,43 +7,41 @@ 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 7f1c7afc7..d13ef4b5e 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 a4e2ad880..883cd5829 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 1c4442dbf..28739abbc 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 8442ce949..05eff959c 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 726a618d0..20c33ba16 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 5c3ff9b1b..a9fab884a 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 6fab1d565..9c20459c0 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 1135faa8e..ff73caa0c 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 a4f34569e..033174fcf 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 013495627..bb649c5e6 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 a13f1f177..69a402646 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 c39de60aa..92e437db3 100644
--- a/test/built-ins/Atomics/store/good-views.js
+++ b/test/built-ins/Atomics/store/good-views.js
@@ -14,45 +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);
-
- 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 365a7fbba..19fa071f6 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 7bf2f781e..0153ed2fc 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 c34f86024..950e1d442 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 700309fff..dabd7789e 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 18b6982d7..efa410344 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 985b95c00..55ca5bba8 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 70ed90a7d..7383307f7 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 af237d2cd..f6c680158 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 4779b11c9..c4e75dd96 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 ce559e350..ff6dcf3a8 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 e1cbdaec9..c3e773ef3 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 e8cb85f8b..26c32fd20 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 405eac8bc..edcde9aac 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 4da77da33..b6e9cf058 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 4f6143fc3..c4a5fb4b0 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 b327abbda..5a77ba2f4 100644
--- a/test/built-ins/Atomics/wait/shared-nonint-views.js
+++ b/test/built-ins/Atomics/wait/shared-nonint-views.js
@@ -12,12 +12,11 @@ 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 156b2617f..c2e11cb0e 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,13 +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); // 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 43fa02309..d2ee14e0c 100644
--- a/test/built-ins/Atomics/wake/counts.js
+++ b/test/built-ins/Atomics/wake/counts.js
@@ -14,7 +14,5 @@ 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 19ad2f2b3..4c704e0e3 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 91461303b..555cd9c80 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 cffc184e1..8e86e2385 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 7f8ab41ed..c5b4521d3 100644
--- a/test/built-ins/Atomics/wake/shared-nonint-views.js
+++ b/test/built-ins/Atomics/wake/shared-nonint-views.js
@@ -12,12 +12,11 @@ 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 f7378b888..55dbd0486 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 abafe52ad..0e013de27 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 f61eca099..db56eedc2 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 252fa91f9..a4e8868ad 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 de30c7cef..49cb06092 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 8223683b9..fee30a954 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 75419e067..5d436facb 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 fa76081d3..f2df4033a 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 c51cf02ee..151986926 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 73a3535cb..395eaeacb 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 6cbec2e5e..195baba02 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 145286c89..0ab8b408e 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 b9b683f3b..29e742048 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 de67259c4..cc786ec7f 100644
--- a/test/built-ins/BigInt/asIntN/arithmetic.js
+++ b/test/built-ins/BigInt/asIntN/arithmetic.js
@@ -14,53 +14,57 @@ 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 5846d39f9..e2663a00b 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
-}), 1 n, "ToPrimitive: @@toPrimitive takes precedence");
+}), 1n, "ToPrimitive: @@toPrimitive takes precedence");
assert.sameValue(BigInt.asIntN(2, {
valueOf: function() {
return "1";
},
toString: err
-}), 1 n, "ToPrimitive: valueOf takes precedence over toString");
+}), 1n, "ToPrimitive: valueOf takes precedence over toString");
assert.sameValue(BigInt.asIntN(2, {
toString: function() {
return "1";
}
-}), 1 n, "ToPrimitive: toString with no valueOf");
+}), 1n, "ToPrimitive: toString with no valueOf");
assert.sameValue(BigInt.asIntN(2, {
[Symbol.toPrimitive]: undefined,
valueOf: function() {
return "1";
}
-}), 1 n, "ToPrimitive: skip @@toPrimitive when it's undefined");
+}), 1n, "ToPrimitive: skip @@toPrimitive when it's undefined");
assert.sameValue(BigInt.asIntN(2, {
[Symbol.toPrimitive]: null,
valueOf: function() {
return "1";
}
-}), 1 n, "ToPrimitive: skip @@toPrimitive when it's null");
+}), 1n, "ToPrimitive: skip @@toPrimitive when it's null");
assert.sameValue(BigInt.asIntN(2, {
valueOf: null,
toString: function() {
return "1";
}
-}), 1 n, "ToPrimitive: skip valueOf when it's not callable");
+}), 1n, "ToPrimitive: skip valueOf when it's not callable");
assert.sameValue(BigInt.asIntN(2, {
valueOf: 1,
toString: function() {
return "1";
}
-}), 1 n, "ToPrimitive: skip valueOf when it's not callable");
+}), 1n, "ToPrimitive: skip valueOf when it's not callable");
assert.sameValue(BigInt.asIntN(2, {
valueOf: {},
toString: function() {
return "1";
}
-}), 1 n, "ToPrimitive: skip valueOf when it's not callable");
+}), 1n, "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";
}
-}), 1 n, "ToPrimitive: skip valueOf when it returns an object");
+}), 1n, "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";
}
-}), 1 n, "ToPrimitive: skip valueOf when it returns an object");
+}), 1n, "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 f0cd9807d..2ee3a6c6b 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(0 n)), 0 n, "ToPrimitive: unbox object with internal slot");
+assert.sameValue(BigInt.asIntN(2, Object(0n)), 0n, "ToPrimitive: unbox object with internal slot");
assert.sameValue(BigInt.asIntN(2, {
[Symbol.toPrimitive]: function() {
- return 0 n;
+ return 0n;
}
-}), 0 n, "ToPrimitive: @@toPrimitive");
+}), 0n, "ToPrimitive: @@toPrimitive");
assert.sameValue(BigInt.asIntN(2, {
valueOf: function() {
- return 0 n;
+ return 0n;
}
-}), 0 n, "ToPrimitive: valueOf");
+}), 0n, "ToPrimitive: valueOf");
assert.sameValue(BigInt.asIntN(2, {
toString: function() {
- return 0 n;
+ return 0n;
}
-}), 0 n, "ToPrimitive: toString");
-assert.sameValue(BigInt.asIntN(2, Object(true)), 1 n,
+}), 0n, "ToPrimitive: toString");
+assert.sameValue(BigInt.asIntN(2, Object(true)), 1n,
"ToBigInt: unbox object with internal slot => true => 1n");
assert.sameValue(BigInt.asIntN(2, {
[Symbol.toPrimitive]: function() {
return true;
}
-}), 1 n, "ToBigInt: @@toPrimitive => true => 1n");
+}), 1n, "ToBigInt: @@toPrimitive => true => 1n");
assert.sameValue(BigInt.asIntN(2, {
valueOf: function() {
return true;
}
-}), 1 n, "ToBigInt: valueOf => true => 1n");
+}), 1n, "ToBigInt: valueOf => true => 1n");
assert.sameValue(BigInt.asIntN(2, {
toString: function() {
return true;
}
-}), 1 n, "ToBigInt: toString => true => 1n");
-assert.sameValue(BigInt.asIntN(2, Object("1")), 1 n,
+}), 1n, "ToBigInt: toString => true => 1n");
+assert.sameValue(BigInt.asIntN(2, Object("1")), 1n,
"ToBigInt: unbox object with internal slot => parse BigInt");
assert.sameValue(BigInt.asIntN(2, {
[Symbol.toPrimitive]: function() {
return "1";
}
-}), 1 n, "ToBigInt: @@toPrimitive => parse BigInt");
+}), 1n, "ToBigInt: @@toPrimitive => parse BigInt");
assert.sameValue(BigInt.asIntN(2, {
valueOf: function() {
return "1";
}
-}), 1 n, "ToBigInt: valueOf => parse BigInt");
+}), 1n, "ToBigInt: valueOf => parse BigInt");
assert.sameValue(BigInt.asIntN(2, {
toString: function() {
return "1";
}
-}), 1 n, "ToBigInt: toString => parse BigInt");
+}), 1n, "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 24c1317be..892c48017 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, 0 n);
+ BigInt.asIntN(-1, 0n);
}, "ToIndex: throw when integerIndex < 0");
assert.throws(RangeError, function() {
- BigInt.asIntN(-2.5, 0 n);
+ BigInt.asIntN(-2.5, 0n);
}, "ToIndex: throw when integerIndex < 0");
assert.throws(RangeError, function() {
- BigInt.asIntN("-2.5", 0 n);
+ BigInt.asIntN("-2.5", 0n);
}, "ToIndex: parse Number => throw when integerIndex < 0");
assert.throws(RangeError, function() {
- BigInt.asIntN(-Infinity, 0 n);
+ BigInt.asIntN(-Infinity, 0n);
}, "ToIndex: throw when integerIndex < 0");
assert.throws(RangeError, function() {
- BigInt.asIntN(9007199254740992, 0 n);
+ BigInt.asIntN(9007199254740992, 0n);
}, "ToIndex: throw when integerIndex > 2**53-1");
assert.throws(RangeError, function() {
- BigInt.asIntN(Infinity, 0 n);
+ BigInt.asIntN(Infinity, 0n);
}, "ToIndex: throw when integerIndex > 2**53-1");
assert.throws(TypeError, function() {
- BigInt.asIntN(0 n, 0 n);
+ BigInt.asIntN(0n, 0n);
}, "ToIndex: BigInt => TypeError");
assert.throws(TypeError, function() {
- BigInt.asIntN(Object(0 n), 0 n);
+ BigInt.asIntN(Object(0n), 0n);
}, "ToIndex: unbox object with internal slot => BigInt => TypeError");
assert.throws(TypeError, function() {
BigInt.asIntN({
[Symbol.toPrimitive]: function() {
- return 0 n;
+ return 0n;
}
- }, 0 n);
+ }, 0n);
}, "ToIndex: @@toPrimitive => BigInt => TypeError");
assert.throws(TypeError, function() {
BigInt.asIntN({
valueOf: function() {
- return 0 n;
+ return 0n;
}
- }, 0 n);
+ }, 0n);
}, "ToIndex: valueOf => BigInt => TypeError");
assert.throws(TypeError, function() {
BigInt.asIntN({
toString: function() {
- return 0 n;
+ return 0n;
}
- }, 0 n);
+ }, 0n);
}, "ToIndex: toString => BigInt => TypeError");
assert.throws(TypeError, function() {
- BigInt.asIntN(Symbol("1"), 0 n);
+ BigInt.asIntN(Symbol("1"), 0n);
}, "ToIndex: Symbol => TypeError");
assert.throws(TypeError, function() {
- BigInt.asIntN(Object(Symbol("1")), 0 n);
+ BigInt.asIntN(Object(Symbol("1")), 0n);
}, "ToIndex: unbox object with internal slot => Symbol => TypeError");
assert.throws(TypeError, function() {
BigInt.asIntN({
[Symbol.toPrimitive]: function() {
return Symbol("1");
}
- }, 0 n);
+ }, 0n);
}, "ToIndex: @@toPrimitive => Symbol => TypeError");
assert.throws(TypeError, function() {
BigInt.asIntN({
valueOf: function() {
return Symbol("1");
}
- }, 0 n);
+ }, 0n);
}, "ToIndex: valueOf => Symbol => TypeError");
assert.throws(TypeError, function() {
BigInt.asIntN({
toString: function() {
return Symbol("1");
}
- }, 0 n);
+ }, 0n);
}, "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 49b0a3041..c6b874a84 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
-}, 1 n), -1 n, "ToPrimitive: @@toPrimitive takes precedence");
+}, 1n), -1n, "ToPrimitive: @@toPrimitive takes precedence");
assert.sameValue(BigInt.asIntN({
valueOf: function() {
return 1;
},
toString: err
-}, 1 n), -1 n, "ToPrimitive: valueOf takes precedence over toString");
+}, 1n), -1n, "ToPrimitive: valueOf takes precedence over toString");
assert.sameValue(BigInt.asIntN({
toString: function() {
return 1;
}
-}, 1 n), -1 n, "ToPrimitive: toString with no valueOf");
+}, 1n), -1n, "ToPrimitive: toString with no valueOf");
assert.sameValue(BigInt.asIntN({
[Symbol.toPrimitive]: undefined,
valueOf: function() {
return 1;
}
-}, 1 n), -1 n, "ToPrimitive: skip @@toPrimitive when it's undefined");
+}, 1n), -1n, "ToPrimitive: skip @@toPrimitive when it's undefined");
assert.sameValue(BigInt.asIntN({
[Symbol.toPrimitive]: null,
valueOf: function() {
return 1;
}
-}, 1 n), -1 n, "ToPrimitive: skip @@toPrimitive when it's null");
+}, 1n), -1n, "ToPrimitive: skip @@toPrimitive when it's null");
assert.sameValue(BigInt.asIntN({
valueOf: null,
toString: function() {
return 1;
}
-}, 1 n), -1 n, "ToPrimitive: skip valueOf when it's not callable");
+}, 1n), -1n, "ToPrimitive: skip valueOf when it's not callable");
assert.sameValue(BigInt.asIntN({
valueOf: 1,
toString: function() {
return 1;
}
-}, 1 n), -1 n, "ToPrimitive: skip valueOf when it's not callable");
+}, 1n), -1n, "ToPrimitive: skip valueOf when it's not callable");
assert.sameValue(BigInt.asIntN({
valueOf: {},
toString: function() {
return 1;
}
-}, 1 n), -1 n, "ToPrimitive: skip valueOf when it's not callable");
+}, 1n), -1n, "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;
}
-}, 1 n), -1 n, "ToPrimitive: skip valueOf when it returns an object");
+}, 1n), -1n, "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;
}
-}, 1 n), -1 n, "ToPrimitive: skip valueOf when it returns an object");
+}, 1n), -1n, "ToPrimitive: skip valueOf when it returns an object");
assert.throws(TypeError, function() {
BigInt.asIntN({
[Symbol.toPrimitive]: 1
- }, 0 n);
+ }, 0n);
}, "ToPrimitive: throw when @@toPrimitive is not callable");
assert.throws(TypeError, function() {
BigInt.asIntN({
[Symbol.toPrimitive]: {}
- }, 0 n);
+ }, 0n);
}, "ToPrimitive: throw when @@toPrimitive is not callable");
assert.throws(TypeError, function() {
BigInt.asIntN({
[Symbol.toPrimitive]: function() {
return Object(1);
}
- }, 0 n);
+ }, 0n);
}, "ToPrimitive: throw when @@toPrimitive returns an object");
assert.throws(TypeError, function() {
BigInt.asIntN({
[Symbol.toPrimitive]: function() {
return {};
}
- }, 0 n);
+ }, 0n);
}, "ToPrimitive: throw when @@toPrimitive returns an object");
assert.throws(MyError, function() {
BigInt.asIntN({
[Symbol.toPrimitive]: function() {
throw new MyError();
}
- }, 0 n);
+ }, 0n);
}, "ToPrimitive: propagate errors from @@toPrimitive");
assert.throws(MyError, function() {
BigInt.asIntN({
valueOf: function() {
throw new MyError();
}
- }, 0 n);
+ }, 0n);
}, "ToPrimitive: propagate errors from valueOf");
assert.throws(MyError, function() {
BigInt.asIntN({
toString: function() {
throw new MyError();
}
- }, 0 n);
+ }, 0n);
}, "ToPrimitive: propagate errors from toString");
assert.throws(TypeError, function() {
BigInt.asIntN({
valueOf: null,
toString: null
- }, 0 n);
+ }, 0n);
}, "ToPrimitive: throw when skipping both valueOf and toString");
assert.throws(TypeError, function() {
BigInt.asIntN({
valueOf: 1,
toString: 1
- }, 0 n);
+ }, 0n);
}, "ToPrimitive: throw when skipping both valueOf and toString");
assert.throws(TypeError, function() {
BigInt.asIntN({
valueOf: {},
toString: {}
- }, 0 n);
+ }, 0n);
}, "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);
}
- }, 0 n);
+ }, 0n);
}, "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 {};
}
- }, 0 n);
+ }, 0n);
}, "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 647829e64..cb9a5832a 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), 1 n), 0 n, "ToPrimitive: unbox object with internal slot");
+assert.sameValue(BigInt.asIntN(Object(0), 1n), 0n, "ToPrimitive: unbox object with internal slot");
assert.sameValue(BigInt.asIntN({
[Symbol.toPrimitive]: function() {
return 0;
}
-}, 1 n), 0 n, "ToPrimitive: @@toPrimitive");
+}, 1n), 0n, "ToPrimitive: @@toPrimitive");
assert.sameValue(BigInt.asIntN({
valueOf: function() {
return 0;
}
-}, 1 n), 0 n, "ToPrimitive: valueOf");
+}, 1n), 0n, "ToPrimitive: valueOf");
assert.sameValue(BigInt.asIntN({
toString: function() {
return 0;
}
-}, 1 n), 0 n, "ToPrimitive: toString");
-assert.sameValue(BigInt.asIntN(Object(NaN), 1 n), 0 n,
+}, 1n), 0n, "ToPrimitive: toString");
+assert.sameValue(BigInt.asIntN(Object(NaN), 1n), 0n,
"ToIndex: unbox object with internal slot => NaN => 0");
assert.sameValue(BigInt.asIntN({
[Symbol.toPrimitive]: function() {
return NaN;
}
-}, 1 n), 0 n, "ToIndex: @@toPrimitive => NaN => 0");
+}, 1n), 0n, "ToIndex: @@toPrimitive => NaN => 0");
assert.sameValue(BigInt.asIntN({
valueOf: function() {
return NaN;
}
-}, 1 n), 0 n, "ToIndex: valueOf => NaN => 0");
+}, 1n), 0n, "ToIndex: valueOf => NaN => 0");
assert.sameValue(BigInt.asIntN({
toString: function() {
return NaN;
}
-}, 1 n), 0 n, "ToIndex: toString => NaN => 0");
+}, 1n), 0n, "ToIndex: toString => NaN => 0");
assert.sameValue(BigInt.asIntN({
[Symbol.toPrimitive]: function() {
return undefined;
}
-}, 1 n), 0 n, "ToIndex: @@toPrimitive => undefined => NaN => 0");
+}, 1n), 0n, "ToIndex: @@toPrimitive => undefined => NaN => 0");
assert.sameValue(BigInt.asIntN({
valueOf: function() {
return undefined;
}
-}, 1 n), 0 n, "ToIndex: valueOf => undefined => NaN => 0");
+}, 1n), 0n, "ToIndex: valueOf => undefined => NaN => 0");
assert.sameValue(BigInt.asIntN({
toString: function() {
return undefined;
}
-}, 1 n), 0 n, "ToIndex: toString => undefined => NaN => 0");
+}, 1n), 0n, "ToIndex: toString => undefined => NaN => 0");
assert.sameValue(BigInt.asIntN({
[Symbol.toPrimitive]: function() {
return null;
}
-}, 1 n), 0 n, "ToIndex: @@toPrimitive => null => 0");
+}, 1n), 0n, "ToIndex: @@toPrimitive => null => 0");
assert.sameValue(BigInt.asIntN({
valueOf: function() {
return null;
}
-}, 1 n), 0 n, "ToIndex: valueOf => null => 0");
+}, 1n), 0n, "ToIndex: valueOf => null => 0");
assert.sameValue(BigInt.asIntN({
toString: function() {
return null;
}
-}, 1 n), 0 n, "ToIndex: toString => null => 0");
-assert.sameValue(BigInt.asIntN(Object(true), 1 n), -1 n,
+}, 1n), 0n, "ToIndex: toString => null => 0");
+assert.sameValue(BigInt.asIntN(Object(true), 1n), -1n,
"ToIndex: unbox object with internal slot => true => 1");
assert.sameValue(BigInt.asIntN({
[Symbol.toPrimitive]: function() {
return true;
}
-}, 1 n), -1 n, "ToIndex: @@toPrimitive => true => 1");
+}, 1n), -1n, "ToIndex: @@toPrimitive => true => 1");
assert.sameValue(BigInt.asIntN({
valueOf: function() {
return true;
}
-}, 1 n), -1 n, "ToIndex: valueOf => true => 1");
+}, 1n), -1n, "ToIndex: valueOf => true => 1");
assert.sameValue(BigInt.asIntN({
toString: function() {
return true;
}
-}, 1 n), -1 n, "ToIndex: toString => true => 1");
-assert.sameValue(BigInt.asIntN(Object("1"), 1 n), -1 n,
+}, 1n), -1n, "ToIndex: toString => true => 1");
+assert.sameValue(BigInt.asIntN(Object("1"), 1n), -1n,
"ToIndex: unbox object with internal slot => parse Number");
assert.sameValue(BigInt.asIntN({
[Symbol.toPrimitive]: function() {
return "1";
}
-}, 1 n), -1 n, "ToIndex: @@toPrimitive => parse Number");
+}, 1n), -1n, "ToIndex: @@toPrimitive => parse Number");
assert.sameValue(BigInt.asIntN({
valueOf: function() {
return "1";
}
-}, 1 n), -1 n, "ToIndex: valueOf => parse Number");
+}, 1n), -1n, "ToIndex: valueOf => parse Number");
assert.sameValue(BigInt.asIntN({
toString: function() {
return "1";
}
-}, 1 n), -1 n, "ToIndex: toString => parse Number");
+}, 1n), -1n, "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 c2646fbab..b3b8acad9 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 9e8154f7b..5ab7b235c 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 65008e1aa..15bfa4775 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
-}), 1 n, "ToPrimitive: @@toPrimitive takes precedence");
+}), 1n, "ToPrimitive: @@toPrimitive takes precedence");
assert.sameValue(BigInt.asUintN(2, {
valueOf: function() {
return "1";
},
toString: err
-}), 1 n, "ToPrimitive: valueOf takes precedence over toString");
+}), 1n, "ToPrimitive: valueOf takes precedence over toString");
assert.sameValue(BigInt.asUintN(2, {
toString: function() {
return "1";
}
-}), 1 n, "ToPrimitive: toString with no valueOf");
+}), 1n, "ToPrimitive: toString with no valueOf");
assert.sameValue(BigInt.asUintN(2, {
[Symbol.toPrimitive]: undefined,
valueOf: function() {
return "1";
}
-}), 1 n, "ToPrimitive: skip @@toPrimitive when it's undefined");
+}), 1n, "ToPrimitive: skip @@toPrimitive when it's undefined");
assert.sameValue(BigInt.asUintN(2, {
[Symbol.toPrimitive]: null,
valueOf: function() {
return "1";
}
-}), 1 n, "ToPrimitive: skip @@toPrimitive when it's null");
+}), 1n, "ToPrimitive: skip @@toPrimitive when it's null");
assert.sameValue(BigInt.asUintN(2, {
valueOf: null,
toString: function() {
return "1";
}
-}), 1 n, "ToPrimitive: skip valueOf when it's not callable");
+}), 1n, "ToPrimitive: skip valueOf when it's not callable");
assert.sameValue(BigInt.asUintN(2, {
valueOf: 1,
toString: function() {
return "1";
}
-}), 1 n, "ToPrimitive: skip valueOf when it's not callable");
+}), 1n, "ToPrimitive: skip valueOf when it's not callable");
assert.sameValue(BigInt.asUintN(2, {
valueOf: {},
toString: function() {
return "1";
}
-}), 1 n, "ToPrimitive: skip valueOf when it's not callable");
+}), 1n, "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";
}
-}), 1 n, "ToPrimitive: skip valueOf when it returns an object");
+}), 1n, "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";
}
-}), 1 n, "ToPrimitive: skip valueOf when it returns an object");
+}), 1n, "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 f7750a420..49741b939 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(0 n)), 0 n, "ToPrimitive: unbox object with internal slot");
+assert.sameValue(BigInt.asUintN(2, Object(0n)), 0n, "ToPrimitive: unbox object with internal slot");
assert.sameValue(BigInt.asUintN(2, {
[Symbol.toPrimitive]: function() {
- return 0 n;
+ return 0n;
}
-}), 0 n, "ToPrimitive: @@toPrimitive");
+}), 0n, "ToPrimitive: @@toPrimitive");
assert.sameValue(BigInt.asUintN(2, {
valueOf: function() {
- return 0 n;
+ return 0n;
}
-}), 0 n, "ToPrimitive: valueOf");
+}), 0n, "ToPrimitive: valueOf");
assert.sameValue(BigInt.asUintN(2, {
toString: function() {
- return 0 n;
+ return 0n;
}
-}), 0 n, "ToPrimitive: toString");
-assert.sameValue(BigInt.asUintN(2, Object(true)), 1 n,
+}), 0n, "ToPrimitive: toString");
+assert.sameValue(BigInt.asUintN(2, Object(true)), 1n,
"ToBigInt: unbox object with internal slot => true => 1n");
assert.sameValue(BigInt.asUintN(2, {
[Symbol.toPrimitive]: function() {
return true;
}
-}), 1 n, "ToBigInt: @@toPrimitive => true => 1n");
+}), 1n, "ToBigInt: @@toPrimitive => true => 1n");
assert.sameValue(BigInt.asUintN(2, {
valueOf: function() {
return true;
}
-}), 1 n, "ToBigInt: valueOf => true => 1n");
+}), 1n, "ToBigInt: valueOf => true => 1n");
assert.sameValue(BigInt.asUintN(2, {
toString: function() {
return true;
}
-}), 1 n, "ToBigInt: toString => true => 1n");
-assert.sameValue(BigInt.asUintN(2, Object("1")), 1 n,
+}), 1n, "ToBigInt: toString => true => 1n");
+assert.sameValue(BigInt.asUintN(2, Object("1")), 1n,
"ToBigInt: unbox object with internal slot => parse BigInt");
assert.sameValue(BigInt.asUintN(2, {
[Symbol.toPrimitive]: function() {
return "1";
}
-}), 1 n, "ToBigInt: @@toPrimitive => parse BigInt");
+}), 1n, "ToBigInt: @@toPrimitive => parse BigInt");
assert.sameValue(BigInt.asUintN(2, {
valueOf: function() {
return "1";
}
-}), 1 n, "ToBigInt: valueOf => parse BigInt");
+}), 1n, "ToBigInt: valueOf => parse BigInt");
assert.sameValue(BigInt.asUintN(2, {
toString: function() {
return "1";
}
-}), 1 n, "ToBigInt: toString => parse BigInt");
+}), 1n, "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 4ee6e8e73..9b42b295d 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, 0 n);
+ BigInt.asUintN(-1, 0n);
}, "ToIndex: throw when integerIndex < 0");
assert.throws(RangeError, function() {
- BigInt.asUintN(-2.5, 0 n);
+ BigInt.asUintN(-2.5, 0n);
}, "ToIndex: throw when integerIndex < 0");
assert.throws(RangeError, function() {
- BigInt.asUintN("-2.5", 0 n);
+ BigInt.asUintN("-2.5", 0n);
}, "ToIndex: parse Number => throw when integerIndex < 0");
assert.throws(RangeError, function() {
- BigInt.asUintN(-Infinity, 0 n);
+ BigInt.asUintN(-Infinity, 0n);
}, "ToIndex: throw when integerIndex < 0");
assert.throws(RangeError, function() {
- BigInt.asUintN(9007199254740992, 0 n);
+ BigInt.asUintN(9007199254740992, 0n);
}, "ToIndex: throw when integerIndex > 2**53-1");
assert.throws(RangeError, function() {
- BigInt.asUintN(Infinity, 0 n);
+ BigInt.asUintN(Infinity, 0n);
}, "ToIndex: throw when integerIndex > 2**53-1");
assert.throws(TypeError, function() {
- BigInt.asUintN(0 n, 0 n);
+ BigInt.asUintN(0n, 0n);
}, "ToIndex: BigInt => TypeError");
assert.throws(TypeError, function() {
- BigInt.asUintN(Object(0 n), 0 n);
+ BigInt.asUintN(Object(0n), 0n);
}, "ToIndex: unbox object with internal slot => BigInt => TypeError");
assert.throws(TypeError, function() {
BigInt.asUintN({
[Symbol.toPrimitive]: function() {
- return 0 n;
+ return 0n;
}
- }, 0 n);
+ }, 0n);
}, "ToIndex: @@toPrimitive => BigInt => TypeError");
assert.throws(TypeError, function() {
BigInt.asUintN({
valueOf: function() {
- return 0 n;
+ return 0n;
}
- }, 0 n);
+ }, 0n);
}, "ToIndex: valueOf => BigInt => TypeError");
assert.throws(TypeError, function() {
BigInt.asUintN({
toString: function() {
- return 0 n;
+ return 0n;
}
- }, 0 n);
+ }, 0n);
}, "ToIndex: toString => BigInt => TypeError");
assert.throws(TypeError, function() {
- BigInt.asUintN(Symbol("1"), 0 n);
+ BigInt.asUintN(Symbol("1"), 0n);
}, "ToIndex: Symbol => TypeError");
assert.throws(TypeError, function() {
- BigInt.asUintN(Object(Symbol("1")), 0 n);
+ BigInt.asUintN(Object(Symbol("1")), 0n);
}, "ToIndex: unbox object with internal slot => Symbol => TypeError");
assert.throws(TypeError, function() {
BigInt.asUintN({
[Symbol.toPrimitive]: function() {
return Symbol("1");
}
- }, 0 n);
+ }, 0n);
}, "ToIndex: @@toPrimitive => Symbol => TypeError");
assert.throws(TypeError, function() {
BigInt.asUintN({
valueOf: function() {
return Symbol("1");
}
- }, 0 n);
+ }, 0n);
}, "ToIndex: valueOf => Symbol => TypeError");
assert.throws(TypeError, function() {
BigInt.asUintN({
toString: function() {
return Symbol("1");
}
- }, 0 n);
+ }, 0n);
}, "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 d8cde7652..68a0421a9 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
-}, 1 n), 1 n, "ToPrimitive: @@toPrimitive takes precedence");
+}, 1n), 1n, "ToPrimitive: @@toPrimitive takes precedence");
assert.sameValue(BigInt.asUintN({
valueOf: function() {
return 1;
},
toString: err
-}, 1 n), 1 n, "ToPrimitive: valueOf takes precedence over toString");
+}, 1n), 1n, "ToPrimitive: valueOf takes precedence over toString");
assert.sameValue(BigInt.asUintN({
toString: function() {
return 1;
}
-}, 1 n), 1 n, "ToPrimitive: toString with no valueOf");
+}, 1n), 1n, "ToPrimitive: toString with no valueOf");
assert.sameValue(BigInt.asUintN({
[Symbol.toPrimitive]: undefined,
valueOf: function() {
return 1;
}
-}, 1 n), 1 n, "ToPrimitive: skip @@toPrimitive when it's undefined");
+}, 1n), 1n, "ToPrimitive: skip @@toPrimitive when it's undefined");
assert.sameValue(BigInt.asUintN({
[Symbol.toPrimitive]: null,
valueOf: function() {
return 1;
}
-}, 1 n), 1 n, "ToPrimitive: skip @@toPrimitive when it's null");
+}, 1n), 1n, "ToPrimitive: skip @@toPrimitive when it's null");
assert.sameValue(BigInt.asUintN({
valueOf: null,
toString: function() {
return 1;
}
-}, 1 n), 1 n, "ToPrimitive: skip valueOf when it's not callable");
+}, 1n), 1n, "ToPrimitive: skip valueOf when it's not callable");
assert.sameValue(BigInt.asUintN({
valueOf: 1,
toString: function() {
return 1;
}
-}, 1 n), 1 n, "ToPrimitive: skip valueOf when it's not callable");
+}, 1n), 1n, "ToPrimitive: skip valueOf when it's not callable");
assert.sameValue(BigInt.asUintN({
valueOf: {},
toString: function() {
return 1;
}
-}, 1 n), 1 n, "ToPrimitive: skip valueOf when it's not callable");
+}, 1n), 1n, "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;
}
-}, 1 n), 1 n, "ToPrimitive: skip valueOf when it returns an object");
+}, 1n), 1n, "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;
}
-}, 1 n), 1 n, "ToPrimitive: skip valueOf when it returns an object");
+}, 1n), 1n, "ToPrimitive: skip valueOf when it returns an object");
assert.throws(TypeError, function() {
BigInt.asUintN({
[Symbol.toPrimitive]: 1
- }, 0 n);
+ }, 0n);
}, "ToPrimitive: throw when @@toPrimitive is not callable");
assert.throws(TypeError, function() {
BigInt.asUintN({
[Symbol.toPrimitive]: {}
- }, 0 n);
+ }, 0n);
}, "ToPrimitive: throw when @@toPrimitive is not callable");
assert.throws(TypeError, function() {
BigInt.asUintN({
[Symbol.toPrimitive]: function() {
return Object(1);
}
- }, 0 n);
+ }, 0n);
}, "ToPrimitive: throw when @@toPrimitive returns an object");
assert.throws(TypeError, function() {
BigInt.asUintN({
[Symbol.toPrimitive]: function() {
return {};
}
- }, 0 n);
+ }, 0n);
}, "ToPrimitive: throw when @@toPrimitive returns an object");
assert.throws(MyError, function() {
BigInt.asUintN({
[Symbol.toPrimitive]: function() {
throw new MyError();
}
- }, 0 n);
+ }, 0n);
}, "ToPrimitive: propagate errors from @@toPrimitive");
assert.throws(MyError, function() {
BigInt.asUintN({
valueOf: function() {
throw new MyError();
}
- }, 0 n);
+ }, 0n);
}, "ToPrimitive: propagate errors from valueOf");
assert.throws(MyError, function() {
BigInt.asUintN({
toString: function() {
throw new MyError();
}
- }, 0 n);
+ }, 0n);
}, "ToPrimitive: propagate errors from toString");
assert.throws(TypeError, function() {
BigInt.asUintN({
valueOf: null,
toString: null
- }, 0 n);
+ }, 0n);
}, "ToPrimitive: throw when skipping both valueOf and toString");
assert.throws(TypeError, function() {
BigInt.asUintN({
valueOf: 1,
toString: 1
- }, 0 n);
+ }, 0n);
}, "ToPrimitive: throw when skipping both valueOf and toString");
assert.throws(TypeError, function() {
BigInt.asUintN({
valueOf: {},
toString: {}
- }, 0 n);
+ }, 0n);
}, "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);
}
- }, 0 n);
+ }, 0n);
}, "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 {};
}
- }, 0 n);
+ }, 0n);
}, "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 d6d78b317..3b78835cd 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), 1 n), 0 n, "ToPrimitive: unbox object with internal slot");
+assert.sameValue(BigInt.asUintN(Object(0), 1n), 0n, "ToPrimitive: unbox object with internal slot");
assert.sameValue(BigInt.asUintN({
[Symbol.toPrimitive]: function() {
return 0;
}
-}, 1 n), 0 n, "ToPrimitive: @@toPrimitive");
+}, 1n), 0n, "ToPrimitive: @@toPrimitive");
assert.sameValue(BigInt.asUintN({
valueOf: function() {
return 0;
}
-}, 1 n), 0 n, "ToPrimitive: valueOf");
+}, 1n), 0n, "ToPrimitive: valueOf");
assert.sameValue(BigInt.asUintN({
toString: function() {
return 0;
}
-}, 1 n), 0 n, "ToPrimitive: toString");
-assert.sameValue(BigInt.asUintN(Object(NaN), 1 n), 0 n,
+}, 1n), 0n, "ToPrimitive: toString");
+assert.sameValue(BigInt.asUintN(Object(NaN), 1n), 0n,
"ToIndex: unbox object with internal slot => NaN => 0");
assert.sameValue(BigInt.asUintN({
[Symbol.toPrimitive]: function() {
return NaN;
}
-}, 1 n), 0 n, "ToIndex: @@toPrimitive => NaN => 0");
+}, 1n), 0n, "ToIndex: @@toPrimitive => NaN => 0");
assert.sameValue(BigInt.asUintN({
valueOf: function() {
return NaN;
}
-}, 1 n), 0 n, "ToIndex: valueOf => NaN => 0");
+}, 1n), 0n, "ToIndex: valueOf => NaN => 0");
assert.sameValue(BigInt.asUintN({
toString: function() {
return NaN;
}
-}, 1 n), 0 n, "ToIndex: toString => NaN => 0");
+}, 1n), 0n, "ToIndex: toString => NaN => 0");
assert.sameValue(BigInt.asUintN({
[Symbol.toPrimitive]: function() {
return undefined;
}
-}, 1 n), 0 n, "ToIndex: @@toPrimitive => undefined => NaN => 0");
+}, 1n), 0n, "ToIndex: @@toPrimitive => undefined => NaN => 0");
assert.sameValue(BigInt.asUintN({
valueOf: function() {
return undefined;
}
-}, 1 n), 0 n, "ToIndex: valueOf => undefined => NaN => 0");
+}, 1n), 0n, "ToIndex: valueOf => undefined => NaN => 0");
assert.sameValue(BigInt.asUintN({
toString: function() {
return undefined;
}
-}, 1 n), 0 n, "ToIndex: toString => undefined => NaN => 0");
+}, 1n), 0n, "ToIndex: toString => undefined => NaN => 0");
assert.sameValue(BigInt.asUintN({
[Symbol.toPrimitive]: function() {
return null;
}
-}, 1 n), 0 n, "ToIndex: @@toPrimitive => null => 0");
+}, 1n), 0n, "ToIndex: @@toPrimitive => null => 0");
assert.sameValue(BigInt.asUintN({
valueOf: function() {
return null;
}
-}, 1 n), 0 n, "ToIndex: valueOf => null => 0");
+}, 1n), 0n, "ToIndex: valueOf => null => 0");
assert.sameValue(BigInt.asUintN({
toString: function() {
return null;
}
-}, 1 n), 0 n, "ToIndex: toString => null => 0");
-assert.sameValue(BigInt.asUintN(Object(true), 1 n), 1 n,
+}, 1n), 0n, "ToIndex: toString => null => 0");
+assert.sameValue(BigInt.asUintN(Object(true), 1n), 1n,
"ToIndex: unbox object with internal slot => true => 1");
assert.sameValue(BigInt.asUintN({
[Symbol.toPrimitive]: function() {
return true;
}
-}, 1 n), 1 n, "ToIndex: @@toPrimitive => true => 1");
+}, 1n), 1n, "ToIndex: @@toPrimitive => true => 1");
assert.sameValue(BigInt.asUintN({
valueOf: function() {
return true;
}
-}, 1 n), 1 n, "ToIndex: valueOf => true => 1");
+}, 1n), 1n, "ToIndex: valueOf => true => 1");
assert.sameValue(BigInt.asUintN({
toString: function() {
return true;
}
-}, 1 n), 1 n, "ToIndex: toString => true => 1");
-assert.sameValue(BigInt.asUintN(Object("1"), 1 n), 1 n,
+}, 1n), 1n, "ToIndex: toString => true => 1");
+assert.sameValue(BigInt.asUintN(Object("1"), 1n), 1n,
"ToIndex: unbox object with internal slot => parse Number");
assert.sameValue(BigInt.asUintN({
[Symbol.toPrimitive]: function() {
return "1";
}
-}, 1 n), 1 n, "ToIndex: @@toPrimitive => parse Number");
+}, 1n), 1n, "ToIndex: @@toPrimitive => parse Number");
assert.sameValue(BigInt.asUintN({
valueOf: function() {
return "1";
}
-}, 1 n), 1 n, "ToIndex: valueOf => parse Number");
+}, 1n), 1n, "ToIndex: valueOf => parse Number");
assert.sameValue(BigInt.asUintN({
toString: function() {
return "1";
}
-}, 1 n), 1 n, "ToIndex: toString => parse Number");
+}, 1n), 1n, "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 7318fc88e..7d774bc33 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 b3a02ab0b..95b89af32 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,3 +22,4 @@ 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 e8b2fb52b..73abca373 100644
--- a/test/built-ins/BigInt/constructor-empty-string.js
+++ b/test/built-ins/BigInt/constructor-empty-string.js
@@ -14,3 +14,4 @@ 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 35cfda0ac..6e30de3bf 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,6 +31,7 @@ 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 c732b7f7a..34ad01795 100644
--- a/test/built-ins/BigInt/constructor-from-decimal-string.js
+++ b/test/built-ins/BigInt/constructor-from-decimal-string.js
@@ -24,3 +24,4 @@ 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 f26b9d269..4ae408ee2 100644
--- a/test/built-ins/BigInt/constructor-from-hex-string.js
+++ b/test/built-ins/BigInt/constructor-from-hex-string.js
@@ -22,3 +22,4 @@ 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 59d18c64d..aada81a52 100644
--- a/test/built-ins/BigInt/constructor-from-octal-string.js
+++ b/test/built-ins/BigInt/constructor-from-octal-string.js
@@ -20,3 +20,4 @@ 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 8db1a76ea..ccdad852b 100644
--- a/test/built-ins/BigInt/constructor-trailing-leading-spaces.js
+++ b/test/built-ins/BigInt/constructor-trailing-leading-spaces.js
@@ -18,3 +18,4 @@ 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 aaf91b117..a240eecb7 100644
--- a/test/built-ins/BigInt/new-target-throws.js
+++ b/test/built-ins/BigInt/new-target-throws.js
@@ -16,8 +16,6 @@ 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 835e35224..146369719 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(3 n), "[object BigInt]");
-assert.sameValue(Object.prototype.toString.call(Object(3 n)), "[object BigInt]");
+assert.sameValue(Object.prototype.toString.call(3n), "[object BigInt]");
+assert.sameValue(Object.prototype.toString.call(Object(3n)), "[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(3 n), "[object FooBar]");
-assert.sameValue(Object.prototype.toString.call(Object(3 n)), "[object FooBar]");
+assert.sameValue(Object.prototype.toString.call(3n), "[object FooBar]");
+assert.sameValue(Object.prototype.toString.call(Object(3n)), "[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 f67ca293c..78ae9bd68 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,25 +22,17 @@ features: [BigInt, Symbol.toPrimitive]
var toString = BigInt.prototype.toString;
assert.throws(TypeError, function() {
- toString.call({
- x: 1 n
- });
+ toString.call({x: 1n});
}, '{x: 1n}');
assert.throws(TypeError, function() {
- toString.call([1 n]);
+ toString.call([1n]);
}, '[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 887b5f921..de7336057 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 671a9b94c..690b0fa94 100644
--- a/test/built-ins/BigInt/value-of-throws.js
+++ b/test/built-ins/BigInt/value-of-throws.js
@@ -14,16 +14,13 @@ 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 c19b7eefe..64461bc2e 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 e9dc0bb55..375786f57 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 ab9b2a1b3..56e663367 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 18a8bf587..dc85899bf 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 f465fbb22..cd1686531 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 6d91cb6d7..9e5aa4061 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 fc5d516d5..787b6a1c7 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 6d56be832..25168c58d 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 5937d38e5..097fff4fb 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 7dc740ee1..980936ebe 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 218632c66..080daa3eb 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 cf32db61a..fa1b30538 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 399a3676c..d949b83b6 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 df5ad2fe8..7331619e9 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 8ada5d746..ae3cded49 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 f3df79be2..c13b361d1 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 277cf2646..382dc7cd2 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 99776dd85..a6dca911d 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,31 +12,27 @@ 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 743e1966c..257721b86 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 095d0daaa..2cdc5fe69 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 0651f8cb3..f878faef2 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 6e2af85b2..3596de93b 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 f66950631..560843e41 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 816ef97d7..93f19a68a 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 3f645a0bf..138ed48c2 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,31 +12,27 @@ 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 2e493d64e..163513c77 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 b25d05470..e2aae6435 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 53fd563ae..ed1b5a8c6 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 517265314..57e75e8e9 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 2b17f822b..eb466a69d 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 6e71746c8..51a723d82 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,16 +23,8 @@ 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 14e27dad6..ceb131104 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), 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)");
+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)");
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 d6fcf8f71..daa5790ae 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), -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, 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, 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");
+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");
diff --git a/test/built-ins/DataView/prototype/getBigInt64/return-values.js b/test/built-ins/DataView/prototype/getBigInt64/return-values.js
index 66a7ee008..a9b6fdd83 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), 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, 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, 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");
+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");
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 cf8682a05..1dad1108d 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 d0be65d63..9ab87b5e1 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), 0xff n, "no argument");
+assert.sameValue(sample.getBigInt64(0), 0xffn, "no argument");
-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,
+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,
"ToBoolean: Number != 0 => true");
-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,
+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,
"ToBoolean: String .length > 0 => true");
-assert.sameValue(sample.getBigInt64(0, "false"), -0x100000000000000 n,
+assert.sameValue(sample.getBigInt64(0, "false"), -0x100000000000000n,
"ToBoolean: String .length > 0 => true");
-assert.sameValue(sample.getBigInt64(0, " "), -0x100000000000000 n,
+assert.sameValue(sample.getBigInt64(0, " "), -0x100000000000000n,
"ToBoolean: String .length > 0 => true");
-assert.sameValue(sample.getBigInt64(0, Symbol("1")), -0x100000000000000 n,
+assert.sameValue(sample.getBigInt64(0, Symbol("1")), -0x100000000000000n,
"ToBoolean: Symbol => true");
-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,
+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,
"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 bfa9c9c99..c96648cec 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(0 n);
+ sample.getBigInt64(0n);
}, "ToIndex: BigInt => TypeError");
assert.throws(TypeError, function() {
- sample.getBigInt64(Object(0 n));
+ sample.getBigInt64(Object(0n));
}, "ToIndex: unbox object with internal slot => BigInt => TypeError");
assert.throws(TypeError, function() {
sample.getBigInt64({
[Symbol.toPrimitive]: function() {
- return 0 n;
+ return 0n;
}
});
}, "ToIndex: @@toPrimitive => BigInt => TypeError");
assert.throws(TypeError, function() {
sample.getBigInt64({
valueOf: function() {
- return 0 n;
+ return 0n;
}
});
}, "ToIndex: valueOf => BigInt => TypeError");
assert.throws(TypeError, function() {
sample.getBigInt64({
toString: function() {
- return 0 n;
+ return 0n;
}
});
}, "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 9d345ac24..f5476694a 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
-}), 0x20602800080017f n, "ToPrimitive: @@toPrimitive takes precedence");
+}), 0x20602800080017fn, "ToPrimitive: @@toPrimitive takes precedence");
assert.sameValue(sample.getBigInt64({
valueOf: function() {
return 1;
},
toString: err
-}), 0x20602800080017f n, "ToPrimitive: valueOf takes precedence over toString");
+}), 0x20602800080017fn, "ToPrimitive: valueOf takes precedence over toString");
assert.sameValue(sample.getBigInt64({
toString: function() {
return 1;
}
-}), 0x20602800080017f n, "ToPrimitive: toString with no valueOf");
+}), 0x20602800080017fn, "ToPrimitive: toString with no valueOf");
assert.sameValue(sample.getBigInt64({
[Symbol.toPrimitive]: undefined,
valueOf: function() {
return 1;
}
-}), 0x20602800080017f n, "ToPrimitive: skip @@toPrimitive when it's undefined");
+}), 0x20602800080017fn, "ToPrimitive: skip @@toPrimitive when it's undefined");
assert.sameValue(sample.getBigInt64({
[Symbol.toPrimitive]: null,
valueOf: function() {
return 1;
}
-}), 0x20602800080017f n, "ToPrimitive: skip @@toPrimitive when it's null");
+}), 0x20602800080017fn, "ToPrimitive: skip @@toPrimitive when it's null");
assert.sameValue(sample.getBigInt64({
valueOf: null,
toString: function() {
return 1;
}
-}), 0x20602800080017f n, "ToPrimitive: skip valueOf when it's not callable");
+}), 0x20602800080017fn, "ToPrimitive: skip valueOf when it's not callable");
assert.sameValue(sample.getBigInt64({
valueOf: 1,
toString: function() {
return 1;
}
-}), 0x20602800080017f n, "ToPrimitive: skip valueOf when it's not callable");
+}), 0x20602800080017fn, "ToPrimitive: skip valueOf when it's not callable");
assert.sameValue(sample.getBigInt64({
valueOf: {},
toString: function() {
return 1;
}
-}), 0x20602800080017f n, "ToPrimitive: skip valueOf when it's not callable");
+}), 0x20602800080017fn, "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;
}
-}), 0x20602800080017f n, "ToPrimitive: skip valueOf when it returns an object");
+}), 0x20602800080017fn, "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;
}
-}), 0x20602800080017f n, "ToPrimitive: skip valueOf when it returns an object");
+}), 0x20602800080017fn, "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 b0baccc94..cddda9ee4 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)), 0x2702060280008001 n,
+assert.sameValue(sample.getBigInt64(Object(0)), 0x2702060280008001n,
"ToPrimitive: unbox object with internal slot");
assert.sameValue(sample.getBigInt64({
[Symbol.toPrimitive]: function() {
return 0;
}
-}), 0x2702060280008001 n, "ToPrimitive: @@toPrimitive");
+}), 0x2702060280008001n, "ToPrimitive: @@toPrimitive");
assert.sameValue(sample.getBigInt64({
valueOf: function() {
return 0;
}
-}), 0x2702060280008001 n, "ToPrimitive: valueOf");
+}), 0x2702060280008001n, "ToPrimitive: valueOf");
assert.sameValue(sample.getBigInt64({
toString: function() {
return 0;
}
-}), 0x2702060280008001 n, "ToPrimitive: toString");
-assert.sameValue(sample.getBigInt64(Object(NaN)), 0x2702060280008001 n,
+}), 0x2702060280008001n, "ToPrimitive: toString");
+assert.sameValue(sample.getBigInt64(Object(NaN)), 0x2702060280008001n,
"ToIndex: unbox object with internal slot => NaN => 0");
assert.sameValue(sample.getBigInt64({
[Symbol.toPrimitive]: function() {
return NaN;
}
-}), 0x2702060280008001 n, "ToIndex: @@toPrimitive => NaN => 0");
+}), 0x2702060280008001n, "ToIndex: @@toPrimitive => NaN => 0");
assert.sameValue(sample.getBigInt64({
valueOf: function() {
return NaN;
}
-}), 0x2702060280008001 n, "ToIndex: valueOf => NaN => 0");
+}), 0x2702060280008001n, "ToIndex: valueOf => NaN => 0");
assert.sameValue(sample.getBigInt64({
toString: function() {
return NaN;
}
-}), 0x2702060280008001 n, "ToIndex: toString => NaN => 0");
+}), 0x2702060280008001n, "ToIndex: toString => NaN => 0");
assert.sameValue(sample.getBigInt64({
[Symbol.toPrimitive]: function() {
return undefined;
}
-}), 0x2702060280008001 n, "ToIndex: @@toPrimitive => undefined => NaN => 0");
+}), 0x2702060280008001n, "ToIndex: @@toPrimitive => undefined => NaN => 0");
assert.sameValue(sample.getBigInt64({
valueOf: function() {
return undefined;
}
-}), 0x2702060280008001 n, "ToIndex: valueOf => undefined => NaN => 0");
+}), 0x2702060280008001n, "ToIndex: valueOf => undefined => NaN => 0");
assert.sameValue(sample.getBigInt64({
toString: function() {
return undefined;
}
-}), 0x2702060280008001 n, "ToIndex: toString => undefined => NaN => 0");
+}), 0x2702060280008001n, "ToIndex: toString => undefined => NaN => 0");
assert.sameValue(sample.getBigInt64({
[Symbol.toPrimitive]: function() {
return null;
}
-}), 0x2702060280008001 n, "ToIndex: @@toPrimitive => null => 0");
+}), 0x2702060280008001n, "ToIndex: @@toPrimitive => null => 0");
assert.sameValue(sample.getBigInt64({
valueOf: function() {
return null;
}
-}), 0x2702060280008001 n, "ToIndex: valueOf => null => 0");
+}), 0x2702060280008001n, "ToIndex: valueOf => null => 0");
assert.sameValue(sample.getBigInt64({
toString: function() {
return null;
}
-}), 0x2702060280008001 n, "ToIndex: toString => null => 0");
-assert.sameValue(sample.getBigInt64(Object(true)), 0x20602800080017f n,
+}), 0x2702060280008001n, "ToIndex: toString => null => 0");
+assert.sameValue(sample.getBigInt64(Object(true)), 0x20602800080017fn,
"ToIndex: unbox object with internal slot => true => 1");
assert.sameValue(sample.getBigInt64({
[Symbol.toPrimitive]: function() {
return true;
}
-}), 0x20602800080017f n, "ToIndex: @@toPrimitive => true => 1");
+}), 0x20602800080017fn, "ToIndex: @@toPrimitive => true => 1");
assert.sameValue(sample.getBigInt64({
valueOf: function() {
return true;
}
-}), 0x20602800080017f n, "ToIndex: valueOf => true => 1");
+}), 0x20602800080017fn, "ToIndex: valueOf => true => 1");
assert.sameValue(sample.getBigInt64({
toString: function() {
return true;
}
-}), 0x20602800080017f n, "ToIndex: toString => true => 1");
-assert.sameValue(sample.getBigInt64(Object("1")), 0x20602800080017f n,
+}), 0x20602800080017fn, "ToIndex: toString => true => 1");
+assert.sameValue(sample.getBigInt64(Object("1")), 0x20602800080017fn,
"ToIndex: unbox object with internal slot => parse Number");
assert.sameValue(sample.getBigInt64({
[Symbol.toPrimitive]: function() {
return "1";
}
-}), 0x20602800080017f n, "ToIndex: @@toPrimitive => parse Number");
+}), 0x20602800080017fn, "ToIndex: @@toPrimitive => parse Number");
assert.sameValue(sample.getBigInt64({
valueOf: function() {
return "1";
}
-}), 0x20602800080017f n, "ToIndex: valueOf => parse Number");
+}), 0x20602800080017fn, "ToIndex: valueOf => parse Number");
assert.sameValue(sample.getBigInt64({
toString: function() {
return "1";
}
-}), 0x20602800080017f n, "ToIndex: toString => parse Number");
+}), 0x20602800080017fn, "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 d9367fd3c..70a5cdba8 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), 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,
+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,
"ToIndex: undefined => NaN => 0");
-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,
+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,
"ToIndex: parse Number => NaN => 0");
-assert.sameValue(sample.getBigInt64("true"), 0x2702060280008001 n,
+assert.sameValue(sample.getBigInt64("true"), 0x2702060280008001n,
"ToIndex: parse Number => NaN => 0");
-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,
+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,
"toIndex: parse Number => truncate towards 0");
-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,
+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,
"toIndex: parse Number => truncate towards 0");
-assert.sameValue(sample.getBigInt64([0]), 0x2702060280008001 n,
+assert.sameValue(sample.getBigInt64([0]), 0x2702060280008001n,
'ToIndex: [0].toString() => "0" => 0');
-assert.sameValue(sample.getBigInt64(["1"]), 0x20602800080017f n,
+assert.sameValue(sample.getBigInt64(["1"]), 0x20602800080017fn,
'ToIndex: ["1"].toString() => "1" => 1');
-assert.sameValue(sample.getBigInt64({}), 0x2702060280008001 n,
+assert.sameValue(sample.getBigInt64({}), 0x2702060280008001n,
'ToIndex: ({}).toString() => "[object Object]" => NaN => 0');
-assert.sameValue(sample.getBigInt64([]), 0x2702060280008001 n,
+assert.sameValue(sample.getBigInt64([]), 0x2702060280008001n,
'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 894b55068..a96d8c9c5 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 4155c6d69..9b0fb3d27 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 de42ea298..b3fdb8b29 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 7f25d2e67..88f38cb64 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 ea981f687..3216d86c8 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 5482c5d1b..4f7bb9596 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,16 +11,8 @@ 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 37de5946e..25ee7766d 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), 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)");
+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)");
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 26cb5349f..074c8a279 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), 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, 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, 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");
+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");
diff --git a/test/built-ins/DataView/prototype/getBigUint64/return-values.js b/test/built-ins/DataView/prototype/getBigUint64/return-values.js
index 4ed45b127..7b6b4250b 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), 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, 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, 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");
+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");
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 4c3d250c6..a60b3cca3 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 fd14414eb..4885dfe41 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), 0xff n, "no argument");
+assert.sameValue(sample.getBigUint64(0), 0xffn, "no argument");
-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,
+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,
"ToBoolean: Number != 0 => true");
-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,
+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,
"ToBoolean: String .length > 0 => true");
-assert.sameValue(sample.getBigUint64(0, "false"), 0xff00000000000000 n,
+assert.sameValue(sample.getBigUint64(0, "false"), 0xff00000000000000n,
"ToBoolean: String .length > 0 => true");
-assert.sameValue(sample.getBigUint64(0, " "), 0xff00000000000000 n,
+assert.sameValue(sample.getBigUint64(0, " "), 0xff00000000000000n,
"ToBoolean: String .length > 0 => true");
-assert.sameValue(sample.getBigUint64(0, Symbol("1")), 0xff00000000000000 n,
+assert.sameValue(sample.getBigUint64(0, Symbol("1")), 0xff00000000000000n,
"ToBoolean: Symbol => true");
-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,
+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,
"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 2dcbcacfc..c11af740c 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(0 n);
+ sample.getBigUint64(0n);
}, "ToIndex: BigInt => TypeError");
assert.throws(TypeError, function() {
- sample.getBigUint64(Object(0 n));
+ sample.getBigUint64(Object(0n));
}, "ToIndex: unbox object with internal slot => BigInt => TypeError");
assert.throws(TypeError, function() {
sample.getBigUint64({
[Symbol.toPrimitive]: function() {
- return 0 n;
+ return 0n;
}
});
}, "ToIndex: @@toPrimitive => BigInt => TypeError");
assert.throws(TypeError, function() {
sample.getBigUint64({
valueOf: function() {
- return 0 n;
+ return 0n;
}
});
}, "ToIndex: valueOf => BigInt => TypeError");
assert.throws(TypeError, function() {
sample.getBigUint64({
toString: function() {
- return 0 n;
+ return 0n;
}
});
}, "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 33d9f8307..243e23015 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
-}), 0x20602800080017f n, "ToPrimitive: @@toPrimitive takes precedence");
+}), 0x20602800080017fn, "ToPrimitive: @@toPrimitive takes precedence");
assert.sameValue(sample.getBigUint64({
valueOf: function() {
return 1;
},
toString: err
-}), 0x20602800080017f n, "ToPrimitive: valueOf takes precedence over toString");
+}), 0x20602800080017fn, "ToPrimitive: valueOf takes precedence over toString");
assert.sameValue(sample.getBigUint64({
toString: function() {
return 1;
}
-}), 0x20602800080017f n, "ToPrimitive: toString with no valueOf");
+}), 0x20602800080017fn, "ToPrimitive: toString with no valueOf");
assert.sameValue(sample.getBigUint64({
[Symbol.toPrimitive]: undefined,
valueOf: function() {
return 1;
}
-}), 0x20602800080017f n, "ToPrimitive: skip @@toPrimitive when it's undefined");
+}), 0x20602800080017fn, "ToPrimitive: skip @@toPrimitive when it's undefined");
assert.sameValue(sample.getBigUint64({
[Symbol.toPrimitive]: null,
valueOf: function() {
return 1;
}
-}), 0x20602800080017f n, "ToPrimitive: skip @@toPrimitive when it's null");
+}), 0x20602800080017fn, "ToPrimitive: skip @@toPrimitive when it's null");
assert.sameValue(sample.getBigUint64({
valueOf: null,
toString: function() {
return 1;
}
-}), 0x20602800080017f n, "ToPrimitive: skip valueOf when it's not callable");
+}), 0x20602800080017fn, "ToPrimitive: skip valueOf when it's not callable");
assert.sameValue(sample.getBigUint64({
valueOf: 1,
toString: function() {
return 1;
}
-}), 0x20602800080017f n, "ToPrimitive: skip valueOf when it's not callable");
+}), 0x20602800080017fn, "ToPrimitive: skip valueOf when it's not callable");
assert.sameValue(sample.getBigUint64({
valueOf: {},
toString: function() {
return 1;
}
-}), 0x20602800080017f n, "ToPrimitive: skip valueOf when it's not callable");
+}), 0x20602800080017fn, "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;
}
-}), 0x20602800080017f n, "ToPrimitive: skip valueOf when it returns an object");
+}), 0x20602800080017fn, "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;
}
-}), 0x20602800080017f n, "ToPrimitive: skip valueOf when it returns an object");
+}), 0x20602800080017fn, "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 c59cdba2c..8803f393c 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)), 0x2702060280008001 n,
+assert.sameValue(sample.getBigUint64(Object(0)), 0x2702060280008001n,
"ToPrimitive: unbox object with internal slot");
assert.sameValue(sample.getBigUint64({
[Symbol.toPrimitive]: function() {
return 0;
}
-}), 0x2702060280008001 n, "ToPrimitive: @@toPrimitive");
+}), 0x2702060280008001n, "ToPrimitive: @@toPrimitive");
assert.sameValue(sample.getBigUint64({
valueOf: function() {
return 0;
}
-}), 0x2702060280008001 n, "ToPrimitive: valueOf");
+}), 0x2702060280008001n, "ToPrimitive: valueOf");
assert.sameValue(sample.getBigUint64({
toString: function() {
return 0;
}
-}), 0x2702060280008001 n, "ToPrimitive: toString");
-assert.sameValue(sample.getBigUint64(Object(NaN)), 0x2702060280008001 n,
+}), 0x2702060280008001n, "ToPrimitive: toString");
+assert.sameValue(sample.getBigUint64(Object(NaN)), 0x2702060280008001n,
"ToIndex: unbox object with internal slot => NaN => 0");
assert.sameValue(sample.getBigUint64({
[Symbol.toPrimitive]: function() {
return NaN;
}
-}), 0x2702060280008001 n, "ToIndex: @@toPrimitive => NaN => 0");
+}), 0x2702060280008001n, "ToIndex: @@toPrimitive => NaN => 0");
assert.sameValue(sample.getBigUint64({
valueOf: function() {
return NaN;
}
-}), 0x2702060280008001 n, "ToIndex: valueOf => NaN => 0");
+}), 0x2702060280008001n, "ToIndex: valueOf => NaN => 0");
assert.sameValue(sample.getBigUint64({
toString: function() {
return NaN;
}
-}), 0x2702060280008001 n, "ToIndex: toString => NaN => 0");
+}), 0x2702060280008001n, "ToIndex: toString => NaN => 0");
assert.sameValue(sample.getBigUint64({
[Symbol.toPrimitive]: function() {
return undefined;
}
-}), 0x2702060280008001 n, "ToIndex: @@toPrimitive => undefined => NaN => 0");
+}), 0x2702060280008001n, "ToIndex: @@toPrimitive => undefined => NaN => 0");
assert.sameValue(sample.getBigUint64({
valueOf: function() {
return undefined;
}
-}), 0x2702060280008001 n, "ToIndex: valueOf => undefined => NaN => 0");
+}), 0x2702060280008001n, "ToIndex: valueOf => undefined => NaN => 0");
assert.sameValue(sample.getBigUint64({
toString: function() {
return undefined;
}
-}), 0x2702060280008001 n, "ToIndex: toString => undefined => NaN => 0");
+}), 0x2702060280008001n, "ToIndex: toString => undefined => NaN => 0");
assert.sameValue(sample.getBigUint64({
[Symbol.toPrimitive]: function() {
return null;
}
-}), 0x2702060280008001 n, "ToIndex: @@toPrimitive => null => 0");
+}), 0x2702060280008001n, "ToIndex: @@toPrimitive => null => 0");
assert.sameValue(sample.getBigUint64({
valueOf: function() {
return null;
}
-}), 0x2702060280008001 n, "ToIndex: valueOf => null => 0");
+}), 0x2702060280008001n, "ToIndex: valueOf => null => 0");
assert.sameValue(sample.getBigUint64({
toString: function() {
return null;
}
-}), 0x2702060280008001 n, "ToIndex: toString => null => 0");
-assert.sameValue(sample.getBigUint64(Object(true)), 0x20602800080017f n,
+}), 0x2702060280008001n, "ToIndex: toString => null => 0");
+assert.sameValue(sample.getBigUint64(Object(true)), 0x20602800080017fn,
"ToIndex: unbox object with internal slot => true => 1");
assert.sameValue(sample.getBigUint64({
[Symbol.toPrimitive]: function() {
return true;
}
-}), 0x20602800080017f n, "ToIndex: @@toPrimitive => true => 1");
+}), 0x20602800080017fn, "ToIndex: @@toPrimitive => true => 1");
assert.sameValue(sample.getBigUint64({
valueOf: function() {
return true;
}
-}), 0x20602800080017f n, "ToIndex: valueOf => true => 1");
+}), 0x20602800080017fn, "ToIndex: valueOf => true => 1");
assert.sameValue(sample.getBigUint64({
toString: function() {
return true;
}
-}), 0x20602800080017f n, "ToIndex: toString => true => 1");
-assert.sameValue(sample.getBigUint64(Object("1")), 0x20602800080017f n,
+}), 0x20602800080017fn, "ToIndex: toString => true => 1");
+assert.sameValue(sample.getBigUint64(Object("1")), 0x20602800080017fn,
"ToIndex: unbox object with internal slot => parse Number");
assert.sameValue(sample.getBigUint64({
[Symbol.toPrimitive]: function() {
return "1";
}
-}), 0x20602800080017f n, "ToIndex: @@toPrimitive => parse Number");
+}), 0x20602800080017fn, "ToIndex: @@toPrimitive => parse Number");
assert.sameValue(sample.getBigUint64({
valueOf: function() {
return "1";
}
-}), 0x20602800080017f n, "ToIndex: valueOf => parse Number");
+}), 0x20602800080017fn, "ToIndex: valueOf => parse Number");
assert.sameValue(sample.getBigUint64({
toString: function() {
return "1";
}
-}), 0x20602800080017f n, "ToIndex: toString => parse Number");
+}), 0x20602800080017fn, "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 e43ab67de..fbc74dd2f 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), 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,
+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,
"ToIndex: undefined => NaN => 0");
-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,
+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,
"ToIndex: parse Number => NaN => 0");
-assert.sameValue(sample.getBigUint64("true"), 0x2702060280008001 n,
+assert.sameValue(sample.getBigUint64("true"), 0x2702060280008001n,
"ToIndex: parse Number => NaN => 0");
-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,
+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,
"toIndex: parse Number => truncate towards 0");
-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,
+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,
"toIndex: parse Number => truncate towards 0");
-assert.sameValue(sample.getBigUint64([0]), 0x2702060280008001 n,
+assert.sameValue(sample.getBigUint64([0]), 0x2702060280008001n,
'ToIndex: [0].toString() => "0" => 0');
-assert.sameValue(sample.getBigUint64(["1"]), 0x20602800080017f n,
+assert.sameValue(sample.getBigUint64(["1"]), 0x20602800080017fn,
'ToIndex: ["1"].toString() => "1" => 1');
-assert.sameValue(sample.getBigUint64({}), 0x2702060280008001 n,
+assert.sameValue(sample.getBigUint64({}), 0x2702060280008001n,
'ToIndex: ({}).toString() => "[object Object]" => NaN => 0');
-assert.sameValue(sample.getBigUint64([]), 0x2702060280008001 n,
+assert.sameValue(sample.getBigUint64([]), 0x2702060280008001n,
'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 48a491cb6..7a96e21ca 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,11 +12,7 @@ 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 4361bb71a..3b25b9497 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, 0 n);
+ sample.setBigInt64(0, 0n);
});
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 0852b5498..a092a47c3 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,9 +12,7 @@ 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 420adff59..17664246e 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, 39 n);
+ sample.setBigInt64(Infinity, 39n);
}, "getIndex == Infinity");
assert.throws(RangeError, function() {
- sample.setBigInt64(13, 39 n);
+ sample.setBigInt64(13, 39n);
}, "13 + 8 > 12");
assert.throws(RangeError, function() {
- sample.setBigInt64(12, 39 n);
+ sample.setBigInt64(12, 39n);
}, "12 + 8 > 12");
assert.throws(RangeError, function() {
- sample.setBigInt64(11, 39 n);
+ sample.setBigInt64(11, 39n);
}, "11 + 8 > 12");
assert.throws(RangeError, function() {
- sample.setBigInt64(10, 39 n);
+ sample.setBigInt64(10, 39n);
}, "10 + 8 > 12");
assert.throws(RangeError, function() {
- sample.setBigInt64(9, 39 n);
+ sample.setBigInt64(9, 39n);
}, "9 + 8 > 12");
assert.throws(RangeError, function() {
- sample.setBigInt64(8, 39 n);
+ sample.setBigInt64(8, 39n);
}, "8 + 8 > 12");
assert.throws(RangeError, function() {
- sample.setBigInt64(7, 39 n);
+ sample.setBigInt64(7, 39n);
}, "7 + 8 > 12");
assert.throws(RangeError, function() {
- sample.setBigInt64(6, 39 n);
+ sample.setBigInt64(6, 39n);
}, "6 + 8 > 12");
assert.throws(RangeError, function() {
- sample.setBigInt64(5, 39 n);
+ sample.setBigInt64(5, 39n);
}, "5 + 8 > 12");
sample = new DataView(buffer, 8);
assert.throws(RangeError, function() {
- sample.setBigInt64(1, 39 n);
+ sample.setBigInt64(1, 39n);
}, "1 + 8 > 4 (offset)");
sample = new DataView(buffer, 9);
assert.throws(RangeError, function() {
- sample.setBigInt64(0, 39 n);
+ sample.setBigInt64(0, 39n);
}, "0 + 8 > 3 (offset)");
sample = new DataView(buffer, 0, 8);
assert.throws(RangeError, function() {
- sample.setBigInt64(1, 39 n);
+ sample.setBigInt64(1, 39n);
}, "1 + 8 > 8 (length)");
sample = new DataView(buffer, 0, 7);
assert.throws(RangeError, function() {
- sample.setBigInt64(0, 39 n);
+ sample.setBigInt64(0, 39n);
}, "0 + 8 > 7 (length)");
sample = new DataView(buffer, 4, 8);
assert.throws(RangeError, function() {
- sample.setBigInt64(1, 39 n);
+ sample.setBigInt64(1, 39n);
}, "1 + 8 > 8 (offset+length)");
sample = new DataView(buffer, 4, 7);
assert.throws(RangeError, function() {
- sample.setBigInt64(0, 39 n);
+ sample.setBigInt64(0, 39n);
}, "0 + 8 > 7 (offset+length)");
sample = new DataView(buffer, 0);
-assert.sameValue(sample.getBigInt64(0), 0 n, "[0] no value was set");
-assert.sameValue(sample.getBigInt64(4), 0 n, "[1] no value was set");
+assert.sameValue(sample.getBigInt64(0), 0n, "[0] no value was set");
+assert.sameValue(sample.getBigInt64(4), 0n, "[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 9ad011062..fcb35cf21 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, 39 n);
+ sample.setBigInt64(-1, 39n);
}, "DataView access at index -1 should throw");
-assert.sameValue(sample.getBigInt64(0), 0 n, "-1 - no value was set");
+assert.sameValue(sample.getBigInt64(0), 0n, "-1 - no value was set");
assert.throws(RangeError, function() {
- sample.setBigInt64(-Infinity, 39 n);
+ sample.setBigInt64(-Infinity, 39n);
}, "DataView access at index -Infinity should throw");
-assert.sameValue(sample.getBigInt64(0), 0 n, "-Infinity - no value was set");
+assert.sameValue(sample.getBigInt64(0), 0n, "-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 6c05febdd..85e88974c 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,11 +10,7 @@ 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 d09e12b13..0411fe56b 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,16 +11,8 @@ 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 566a7d54f..caddbafdb 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, 1 n);
+ sample.setBigInt64(s, 1n);
});
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 52ae143fd..c54224dec 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,21 +11,13 @@ 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, 1 n);
+ sample.setBigInt64(bo1, 1n);
}, "valueOf");
assert.throws(Test262Error, function() {
- sample.setBigInt64(bo2, 1 n);
+ sample.setBigInt64(bo2, 1n);
}, "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 7716f66a3..9edb9da5b 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, -0x6f80ff08 n, true);
+result = sample.setBigInt64(0, -0x6f80ff08n, true);
assert.sameValue(result, undefined, "returns undefined #1");
-assert.sameValue(sample.getBigInt64(0), -0x7ff806f00000001 n);
+assert.sameValue(sample.getBigInt64(0), -0x7ff806f00000001n);
-result = sample.setBigInt64(0, -0x7ff8070 n, true);
+result = sample.setBigInt64(0, -0x7ff8070n, true);
assert.sameValue(result, undefined, "returns undefined #2");
-assert.sameValue(sample.getBigInt64(0), -0x6f80ff0700000001 n);
+assert.sameValue(sample.getBigInt64(0), -0x6f80ff0700000001n);
-result = sample.setBigInt64(0, 0x6f80ff08 n, true);
+result = sample.setBigInt64(0, 0x6f80ff08n, true);
assert.sameValue(result, undefined, "returns undefined #3");
-assert.sameValue(sample.getBigInt64(0), 0x8ff806f00000000 n);
+assert.sameValue(sample.getBigInt64(0), 0x8ff806f00000000n);
-result = sample.setBigInt64(0, 0x8ff806f n, true);
+result = sample.setBigInt64(0, 0x8ff806fn, true);
assert.sameValue(result, undefined, "returns undefined #4");
-assert.sameValue(sample.getBigInt64(0), 0x6f80ff0800000000 n);
+assert.sameValue(sample.getBigInt64(0), 0x6f80ff0800000000n);
-result = sample.setBigInt64(0, 0xf8007f90 n, true);
+result = sample.setBigInt64(0, 0xf8007f90n, true);
assert.sameValue(result, undefined, "returns undefined #5");
-assert.sameValue(sample.getBigInt64(0), -0x6f80ff0800000000 n);
+assert.sameValue(sample.getBigInt64(0), -0x6f80ff0800000000n);
-result = sample.setBigInt64(0, 0x907f00f8 n, true);
+result = sample.setBigInt64(0, 0x907f00f8n, true);
assert.sameValue(result, undefined, "returns undefined #6");
-assert.sameValue(sample.getBigInt64(0), -0x7ff807000000000 n);
+assert.sameValue(sample.getBigInt64(0), -0x7ff807000000000n);
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 4e2d481c1..a92ede6c6 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 8311d9b3d..760dd8f62 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, 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");
+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");
// True
-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");
+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");
diff --git a/test/built-ins/DataView/prototype/setBigInt64/toindex-byteoffset.js b/test/built-ins/DataView/prototype/setBigInt64/toindex-byteoffset.js
index 169aba7d1..a55f905ae 100644
--- a/test/built-ins/DataView/prototype/setBigInt64/toindex-byteoffset.js
+++ b/test/built-ins/DataView/prototype/setBigInt64/toindex-byteoffset.js
@@ -11,81 +11,73 @@ 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, 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");
+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");
diff --git a/test/built-ins/DataView/prototype/setInt32/toindex-byteoffset.js b/test/built-ins/DataView/prototype/setInt32/toindex-byteoffset.js
index 0d71d4dfb..f5b45a5ae 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");
+assert.sameValue(sample.getInt32(0), 0, "no arg"); \ No newline at end of file
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 395a20bbc..b2f1f1c01 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 24722c8dd..fd4915737 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 4d627a809..c461b0e87 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 7e6baff63..af7e4e3e6 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 3265980f9..a787643e8 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 875e3a8a4..648c8bbce 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 ef574b965..086ed9a6c 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 0f1d0df2c..6a6ed02fd 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 dac4065f5..5288bf7b9 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 cf02c44a1..6f31096ca 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 b10c64585..d94064962 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 bb2848b63..cf4ed45a9 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 b1549d400..1b2c23946 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 8b34dd84b..d1b0a43fa 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 8fde48a2f..b3ff5fc8c 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 890ce6643..6f7174902 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,34 +17,30 @@ 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 bc3fc2503..3dbe78ff7 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,45 +17,41 @@ 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 2280edf5d..ff59c4e69 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,56 +17,52 @@ 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 49a0d15d2..c9377d599 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,67 +17,63 @@ 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 f7bf7f204..646a93696 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,78 +17,74 @@ 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 8eebc2ec6..16f6dedb8 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,89 +17,85 @@ 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 e9f2d545c..9c98a6a64 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 90c8ac12d..28a0f459f 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 cc3c1a289..83e35fd24 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 f7d549bb9..aec94cc40 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 69d00640c..db3d3e990 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 ae5c324d7..e222772c2 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 bd82eadd9..ebde6e4bd 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 80e2dacd8..3cc1825c6 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 7957670f6..02b7842b7 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 dd0652d88..3090a39e0 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 162bf922f..0c8633861 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 066e575b0..96d9b652f 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 7def6880c..8f30c2988 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 a6c590a81..6a930ef7f 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 3db47612a..af50c5f72 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 ced511687..3846946cd 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 79d0468c7..ce29d4b9d 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 99fc8db1b..e14dccda3 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 ccdefb1d1..bbca1753e 100644
--- a/test/built-ins/Date/UTC/coercion-errors.js
+++ b/test/built-ins/Date/UTC/coercion-errors.js
@@ -17,16 +17,8 @@ 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 ec0bcd940..eb1d00c5f 100644
--- a/test/built-ins/Date/UTC/coercion-order.js
+++ b/test/built-ins/Date/UTC/coercion-order.js
@@ -18,49 +18,14 @@ 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 0fee93fd6..f0362a4c0 100644
--- a/test/built-ins/Date/UTC/infinity-make-day.js
+++ b/test/built-ins/Date/UTC/infinity-make-day.js
@@ -25,3 +25,4 @@ 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 32f11d815..70aef6382 100644
--- a/test/built-ins/Date/coercion-errors.js
+++ b/test/built-ins/Date/coercion-errors.js
@@ -21,16 +21,8 @@ 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 6ecba56b9..f794b4d91 100644
--- a/test/built-ins/Date/coercion-order.js
+++ b/test/built-ins/Date/coercion-order.js
@@ -22,49 +22,14 @@ 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 49c7ac425..bafb8bcdd 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 e820b95d0..48587d9d6 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 65bb436f5..1b7e25f8d 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 28de1c497..b91821807 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 83b526abc..bfec5f908 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 50c4f3128..dc2af6291 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 5e2de082f..404fbfa25 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 584534f08..e40edd102 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 4e8aa39a4..03fa78a01 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 2eed4f1eb..dc4be9ce9 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 0ee361179..9aefb6afe 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 c069dc245..45f26ff7b 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 93d0473d5..748d927dd 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 03d792523..1c3a6f0fa 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 d4e616a3b..eb79567f3 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 956c54030..bb6927638 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 1702b4f79..7f28f0e7e 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 a97e2830e..4c6c2369d 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 a808725ad..2e12494f1 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 8d697d665..22a6ea411 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 4e8e7e1c6..f99b87ae6 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 901af6df6..6decf276d 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 1ea076f8b..8ea541620 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 e6e74d724..f45c81f91 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 a1bfd2a82..f4131a387 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 b0c5d9914..1bfad7edd 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 121995f93..d023a173d 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 91af4cab8..fa1eb9a96 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 f6b144d32..004239f0b 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 7e06d8020..77de3c964 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 8dab8344e..63cc54853 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 62bf0c5fe..745978484 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 a3fa23e11..945c9f495 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 dce48a446..2b04f057b 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 5cfb076ed..29ca2ca87 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 9477085b7..757515d0a 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 c9fe329cb..73e634993 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 e65718a73..87df1a922 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 64f801900..332509563 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 19e349e8b..086486601 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 85f07b5f2..e64d4dade 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 4810950ba..887364be2 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 c2a98b414..ef6a352ad 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 4fa278360..7eff33046 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 1c88f55bd..2d76fab11 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 1b4ce8b06..562c03ec1 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 0798b7148..b5d13f4bf 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 b32f6858f..096cb7f62 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 879e1bfc9..af8535a37 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 61dc0ef4c..c6c4eb4b4 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 207f28c6a..61e0ee127 100644
--- a/test/built-ins/Date/prototype/Symbol.toPrimitive/hint-invalid.js
+++ b/test/built-ins/Date/prototype/Symbol.toPrimitive/hint-invalid.js
@@ -48,9 +48,5 @@ 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 7b31914c4..015869e87 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 fb7f63813..1969ffc3e 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 585613408..4c0bd7cb3 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 49cd15ab2..e7fe30436 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 b5beb2284..529e66b44 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 d920a2e81..e913c47d3 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 3a75f29c6..602a86f0e 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 61047cc75..1b88c0dfa 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 76ad845df..8c8984d23 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 4756c8aa0..14a92d6e3 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 464dd1a2f..d52223e2d 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 1838bde8e..2bfb76a14 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 31eb39ad3..6734712ca 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,9 +16,7 @@ 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 dd0195edc..646100bc1 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 dc5b54584..2524225ed 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 d7c241aaa..ec4cc8a1a 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 f9ab23268..a1d10c6dc 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 fa7ea6a93..44019e9b9 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 e0c5e04e3..8d062a86b 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 f03661dd9..71adf2c09 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,9 +16,7 @@ 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 54897a558..e965ed28d 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 bfc30f439..087abbffb 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 bc6e97309..e410c9213 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 e6126c6a1..76682ac39 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 9bdbc7d89..8b35eb11b 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 7fedce52a..36e66960f 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 f191bd5a6..db86b65f9 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,9 +16,7 @@ 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 b587f199e..77a92e2fd 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 08824758c..b0c1a1677 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 eb6d46501..b9a4dd05b 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 81af2ec44..675c26289 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 2f00e05fd..44b400259 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 ad3d3e28a..57b77bb9d 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 075c0dd9a..7c922a9b2 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,9 +16,7 @@ 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 d1e27ba34..765dcd7e0 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 41309fa45..f4e40a3e0 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 38483bcc4..3e16f9726 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 e564b8cb8..8ad8bf927 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 02f01b39e..47e7ee0fd 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 303c244a2..fd1e1c674 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 284cbcbfe..1c71dc383 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,9 +16,7 @@ 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 b41afec04..f3d30e6bf 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 a21989305..0ef201732 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 5992ea3fe..bf774828d 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 6b83032da..92f972fb1 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 f8b013db8..7d6952bf7 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 92454620e..35b1fe5fa 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 1eca182ac..b8e220a5a 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,9 +16,7 @@ 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 a21e5c917..98da5f955 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 1ebae46de..82c5bc31f 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 ad2707c4c..45b981bf7 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 369327b27..57b392e3c 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 f138e4541..7352f0fe7 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 ef10bf216..6f8e68167 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 0dbd2ef09..35e9a49c8 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,9 +16,7 @@ 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 c3ecf9670..2a323bf2f 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 0f5b25ac6..5a54ceef2 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 c8ef094ed..8bdef21e5 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 4670ca41c..2421448a4 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 6bf3900c9..0d15087da 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 5f3a77b80..f60e80489 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 01b061bb6..e2068723e 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,9 +16,7 @@ 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 d64c25bda..48649c664 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 c492eeb3e..f8989220a 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 03899aedb..c390183cc 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 bfb10ee71..3c5840532 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 ed9a191ef..7a966b47f 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 9c70eb7d3..bdd9c3d20 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 5e97078b7..ee4bb53d5 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,9 +16,7 @@ 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 f3a664fcb..7255118e1 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 553711f41..721d0a657 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 6665c7a28..d52abbf4c 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 606a8b167..75f1923f7 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 2d122a878..68b62628a 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 07d60f18a..e49b97ebe 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 a2babe656..5cda48211 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,9 +16,7 @@ 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 a0dbe95e8..2d827c88a 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 90ab47a5d..70c26e283 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 e91f04ae8..522c090fc 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 d9a4b4075..92141a35e 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 de279e6ea..e03366735 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 5f7607bda..780ec6ea4 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 19c4ffdb2..d2dae6634 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,9 +16,7 @@ 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 b461a8e7b..e7d0f56a3 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 05074a1e1..526741c0a 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 3c7bc11a9..49aeeec1b 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 616287d5b..f506616e0 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 e16a345ee..0eac97f72 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 edbb9776c..00f0e984c 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 156fe2099..a7cbdb953 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,9 +16,7 @@ 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 c96f0d581..b1fa8320d 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 db54c4e56..1af48d17c 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 76ac39c61..1a306a52a 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 392c4f227..106f8dbfd 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 12616454f..587a257d1 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 973396f11..a2f421570 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 b64b3df41..deb4325ec 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,9 +16,7 @@ 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 a34f02109..7836d0c30 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 da81ad63d..d874fb162 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 1109de1d0..fd140cd31 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 1d9e61e9f..040c4f959 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 9a83ba968..9d5cc2186 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 f8f01c1f6..4e567e4fa 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 5a094cf77..6eeee6196 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,9 +16,7 @@ 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 7ca02ffca..66f8ac106 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 5d8c8b31f..63c9005a2 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 0c0a8d319..dcb538084 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 2d8a11c1b..b14b5e9a4 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 9b079694f..665f2989e 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 7a33960ae..3e9443080 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 6c20b2ed7..f819746d1 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,9 +16,7 @@ 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 de48fbbab..3ddc4e156 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 04951c393..7bca0c22d 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 bcf79fcdc..2cac17d36 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 0704d95d0..ec48a5454 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 c33ebaaea..6991e9530 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 b5b26ff33..de2100e16 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 10e42c208..d1ce694e4 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,9 +16,7 @@ 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 7e18abfda..705c403c3 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 a36fde2db..9ea891483 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 bdff66e89..70498de04 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 987754bcc..c75a98145 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 7f1b9e911..da0788086 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 f2258b315..f6755a860 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 cfb11a6a9..0dacaba82 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,9 +16,7 @@ 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 634414bb1..b12f8f56c 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 4a56c810f..80019c13e 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 c72724973..1d0051b56 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 e621eb0bc..80a364e36 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 8ee7aa797..37ca26af5 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 2a3556675..208feef43 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 7e05c1440..0b4fc5f08 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,9 +16,7 @@ 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 44bf2281f..9745d426d 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 106d19e4f..ead65ce16 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 90cdad160..9d30e635b 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 c85ae0c50..51be0cd06 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 83862dd21..d58c65078 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 52762004e..2a523fedb 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 b09fd4e3e..8cfe10631 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,9 +23,7 @@ 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 446066cec..cde7bec69 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 87c6dfcec..f148514c4 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 2614ce2be..6b430e528 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 506cc0869..2ecf10d65 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 4cab3b334..0a49250a5 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 5dab62ff4..ba5017746 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 170c26f65..565a1f80a 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 9a4d316d3..ece79ddc4 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,9 +23,7 @@ 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 95b5a5a21..7b709c759 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 a46d72b43..fbca2081e 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 9d005c8e7..614e46e97 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 7b8bfb66a..e000d2ab6 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 83d468f5d..c15bc6d2e 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 d33d529cd..318de235b 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 e1f4fc3be..1f0c79bff 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,9 +23,7 @@ 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 ff1c5768b..5942a2006 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 7af41c60d..2bbc4a908 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 9f8624a50..304c43553 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 e784ed356..4d123f0ee 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 44772a4fb..c53633c55 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 f0af044b5..264f0c077 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 7e8d6c2fe..4ec16e589 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 f0b001094..df836da90 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,9 +23,7 @@ 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 66a039333..0eb55d509 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 050e72b87..a326bb1dc 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 aa2534cba..7df0448c5 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 307c3faf8..63b492e5a 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 2defce23d..027585d5f 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 8d0ec1215..90f2d2a07 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 dfd21f485..dfb851f09 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,9 +23,7 @@ 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 c38de0214..db7ec51ac 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 9c1ab2a20..a2d3318c1 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 14a0d1537..2998b51cf 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 8a5de9ca4..dd68de3b0 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 efca28cee..17adaeb47 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 ef07cbb5c..8169cab41 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 6d16b1ff4..282894467 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,9 +23,7 @@ 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 519120b36..1ebdb5b51 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 f9f122a64..43b17d0f8 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 8d960dcb6..f4215dd83 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 a2fe30e52..49c6c9083 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 be61ed9a8..ef7f322d8 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 5a281d8d0..bfd04c09d 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 e63ed9c37..23821c06a 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,9 +23,7 @@ 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 2a56bf3ae..1358fd8f9 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 2e872fd72..1718c4213 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 0a9fd6ce5..ed64ee5ed 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 f7f68712d..0b47d76ce 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 f804e38d9..95b02e0d5 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 cdd444a6b..1981007be 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 ca4ade5b2..c2fb0f4b6 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,9 +23,7 @@ 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 c296387b8..fb0106d71 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 3ef3186fa..5cb5c8bb1 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 90decdc77..f99b22fcc 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 3cbefe81a..4e810092e 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 5e29f15a8..732f6bf78 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 ffebf0797..eb097a6ac 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 fa2e021e2..ff165c535 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 1d8a1262c..a12b7435d 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 7abfca465..1a388a682 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 1c332dd81..185a24888 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 a2228d589..a35c41590 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 6ef0033d8..f67269dc1 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 887d73eca..f59d7877c 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 c314b25bd..48a615ba2 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 e7645db48..a7355fa1d 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 aff70c61e..4101fa7e6 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 907b8712e..6f4e2dd0d 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 c80cf6219..745bfc88f 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 a1d0a1947..76f4e76b0 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 4d8fc8fa5..75d82db9e 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 c24ff83d5..caebe55dd 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 345a3e3d3..881c01fcc 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 f70f57b13..57cd4142a 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 a47a18c29..6dde346d8 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 44c08e64f..688f48e21 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 3bde3ee4d..9d9f27c44 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 edc715a86..cce942cbf 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 bf0efd476..c6aa7f7d0 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 5b19af2ea..d512247e6 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 0614a194b..28b7f7499 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 da43ff45f..078ac39c1 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 9790d9a99..48de38d72 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 ed7332bd2..ed6ca3fe1 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 682dd9f72..a4c5d29ed 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 07e8dda60..82c3bf8b4 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 1fee64d56..d02f44bbe 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 903d2dc77..2e7d84561 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 7d3d1d09e..0e74c82ad 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 eb427b1ff..1ca934a4a 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 edcc69006..5dc03a2ad 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 26c083340..b05658309 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 2cb04dd62..17ec0c0ee 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 ce21f347a..c133ffc5a 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 e72d1fbd8..3afef1875 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 ab2d1e72d..a17110e05 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 32c140ce9..0248330b0 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 19bc54bb6..090b9646d 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 0f83f7f21..6c52d43db 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 9f7cffda7..5ea87075e 100644
--- a/test/built-ins/Date/prototype/toDateString/invalid-date.js
+++ b/test/built-ins/Date/prototype/toDateString/invalid-date.js
@@ -13,3 +13,5 @@ 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 f94e964d4..596f80343 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 b08fa6538..63feb9075 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 2086f48a9..5e976d17e 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 71a9232eb..431a79c41 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 7dc2be64a..49a859c59 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 752120dfc..f08686324 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 d3be4f9fb..e27b08feb 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 9703836e1..f2c53adbf 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 d2f2e391e..f27f7e0ae 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 0dc17db6f..35359f902 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 dda74767f..53b001d87 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 517fb7453..b4d5bc800 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 e85077c6c..3c55da5fa 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 04c9fd69c..8907ccb68 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 baafe4540..16804d115 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 8e976f0ed..0c41bc3be 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 656300446..045c649f0 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 6a8cef0a6..704b25ff7 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 5b7959dc7..96541c978 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 85565c6bc..75c0ad18a 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 63440c550..f015937cd 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 4f20c546b..a2d621c88 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 44476c8e4..845ad90eb 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 aa96373cb..2aa877b57 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 29ba76ea9..7713b34ae 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 161ab9541..4deaaa40a 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 506819909..c5d11f4e8 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 eec3df6ac..3c1aa5317 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 4fc755ef2..564821c33 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 5e7cff2a0..50d48f8d7 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 14f226a02..9471cf556 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 8e02b4e6f..1a034dba4 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 53aea089b..6562daad4 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 c4938dc06..04e6d7ffa 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 e39133756..63c170fe6 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 382fc242c..1317b0abd 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 a5026ecfd..861d62cab 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 3bc1f906c..b264985cb 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 0c4a7fe58..15c54f020 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 3d0885b9c..4273975b1 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 9ca9f0008..4739c7cf1 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 0b0ecf006..2c4d753a9 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 6d4babc06..b8b070ebd 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 880915233..305b2a96a 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 92e4da323..f05985402 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 6476bf513..36232375d 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 39cc97528..1078d9557 100644
--- a/test/built-ins/Date/prototype/toTimeString/invalid-date.js
+++ b/test/built-ins/Date/prototype/toTimeString/invalid-date.js
@@ -13,3 +13,5 @@ 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 3fee728b2..de0313086 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 caca517fc..d515e3446 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 6149d52a9..27d217a35 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 ad2262d32..8d56631ed 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 26cebb299..b001e606c 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 c3e445fb5..e5a2ae8c6 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 7f164060f..ce9cdfaab 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 0f81fe11e..3430e4b3c 100644
--- a/test/built-ins/Date/prototype/toUTCString/invalid-date.js
+++ b/test/built-ins/Date/prototype/toUTCString/invalid-date.js
@@ -13,3 +13,4 @@ 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 465827090..a50dc18b3 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 9492a8ae8..6a33b59ee 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 d6a5b8eb0..96d3028b5 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 81f7098e9..dd791639f 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 8a95d40db..514ec3605 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 3ad642916..cdebc7dd5 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 dfedf8c62..e7ab16930 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 457e126aa..732217448 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,9 +39,7 @@ 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 3f2ae125c..50ff50e29 100644
--- a/test/built-ins/Date/value-to-primitive-result-faulty.js
+++ b/test/built-ins/Date/value-to-primitive-result-faulty.js
@@ -40,9 +40,7 @@ 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 a30502f42..351059e76 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 5e0c1bd83..72f734359 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 b6709d8cc..6add7727b 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 5892170d2..d45ddac8e 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 804116b32..4ea3e05ef 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 5848bcd4c..6ad2ef59f 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 4cd39953a..8c653807f 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 c0074b6a8..534d5f032 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 6cf25327a..41e8e6b76 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 b7da126aa..e7bc80e56 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 d8ab08a9e..29a397af7 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 2d2c78f91..d76e90fb5 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,21 +11,19 @@ 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 258f205e2..1770637ce 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 c3b9afef4..cbb35f4bb 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 bb85666d1..80f6cbc2b 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 72b2daf6b..e514df09a 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 354fd7802..751033a83 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 01508f865..ced9d0090 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 5a530d90f..14869ce39 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 303078ba8..6860135a9 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 a5cad6d0e..14517881b 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 de519ef06..7df0656c1 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 3c3a6475a..9f9acadf0 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 8ee95946e..05f044cc7 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 f4a2b6357..dd30cf0ea 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 0235303d8..efd54b91d 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 c10b3a9f6..28db42997 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 7aa42aa76..835145acb 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 7534084cb..b79e46eed 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 be197606b..2f86f3150 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 d5d22db6f..bcd99d2f7 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 de13b6242..35ce0d95e 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 dabfb8ab7..e03cedaf5 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 9c6706de1..8caa5e5f7 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 4ed4ad8c9..7f670f147 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 204f9724b..29adf517d 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 95e89dd53..a1d3cf431 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 155a55fd6..858a9d7ac 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 6017374b1..00db23462 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 debbe409b..90d419572 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 6f840ef8d..5d5362cbb 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 e82253bc1..dd1d6e55a 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 a9ec023b0..2795b4ddf 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 a80d3e15f..fef8fdade 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 ee28fb1ef..129fa7834 100644
--- a/test/built-ins/Function/15.3.5-1gs.js
+++ b/test/built-ins/Function/15.3.5-1gs.js
@@ -10,7 +10,6 @@ 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 70f1e76a9..70be7b5f0 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 8303b2068..25824f937 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 a63cb49e0..4b1fc5363 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 0ad5d98a6..2d641a9d6 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 dd7bae085..0df946d58 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 beb5bf508..73478f877 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 bcc4de265..8046f5457 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 2aa9d93b0..4a911e805 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 87b858905..01aba8242 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 71aba8065..be861cf0c 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 97d6b0615..302881fcc 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 579f9624a..0e2a8219a 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 67c4da277..a99ee52a7 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 cd0e1fbae..363d5b4e2 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 f1bc42f74..e57bf63ab 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 3e7b58f3a..327752133 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 03f885642..f4c7b216e 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 c37e20a70..0fdee36d2 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 ba70939a0..9c3b4388c 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 3d70c7489..70fa7f3ee 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 5aeff3ea9..5f792dbb8 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 f942fcf19..fed111eb2 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 bec9e4323..d49e9861e 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,18 +11,17 @@ 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 2a041c132..9401b802e 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 a1300daca..9b5ae34a6 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 6508770f4..9f366b3f6 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,19 +10,18 @@ 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 257211176..7c028bcbf 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 f6e683ba2..2c4d8c6c4 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 ded271ba8..5625d5fbf 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,16 +11,15 @@ 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 8a515705b..d3eab113f 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 998fecee0..d824dc0a2 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 1f7ee2cca..5a651dd7b 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 05378cc29..ec2224106 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 3e616381f..102b70265 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 5cf5456b5..2e17cff15 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 7d5deece0..43af9ac80 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 c09efeb66..40f2e23cb 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 8ce197b44..c23e618ab 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 175bdae72..e2745596d 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 c120259a7..6dea39b00 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 a845ba280..180c64dd2 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 1b15f29f1..7a06d7280 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,16 +9,12 @@ 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 36b004570..a53963530 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,17 +10,12 @@ 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 eae7c646d..3f03d5202 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 30d3c2676..2c7ab8abf 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,16 +9,12 @@ 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 f99cf0245..f087b3180 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,17 +10,12 @@ 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 7bd5c98fd..b996eadf7 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,16 +10,12 @@ 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 662870cbf..50bfb37e3 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,17 +11,12 @@ 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 dc45d8916..6182bd6e1 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,16 +10,12 @@ 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 35a776849..9656eecfb 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,17 +11,12 @@ 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 28094f41b..ab4190fda 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,19 +10,13 @@ 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 4d2be9314..771c4a0bf 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,15 +10,12 @@ 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 796733335..d903bdc47 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,15 +10,12 @@ 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 6df2cdfc9..75d85d2fd 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,15 +10,12 @@ 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 299e8ce1b..6e6f67821 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 2064f51c4..eed2e180a 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,15 +10,12 @@ 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 fb1ed900f..696449b69 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,15 +10,12 @@ 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 e2ca68809..57dd44c7a 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,15 +10,12 @@ 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 2f8cf457c..83dbe0b4f 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,16 +10,13 @@ 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 b4b18805f..a95d82a41 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,16 +11,12 @@ 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 7fe4ebbcb..6062b1d81 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,15 +10,12 @@ 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 ef1d045d9..1c410c7e7 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,15 +10,12 @@ 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 2c1e85967..76308260f 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,15 +10,12 @@ 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 37667415d..0f23492bd 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,16 +10,13 @@ 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 664a8003d..0572d8603 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,16 +11,12 @@ 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 5a3ca1b07..425f3dcc8 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 67c58c301..0ce9f72af 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,15 +10,12 @@ 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 73977b200..3c3a1567e 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,15 +10,12 @@ 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 a2db6d625..7cd70c9da 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,15 +10,12 @@ 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 0c463d764..c616c07e4 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,16 +10,13 @@ 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 4918478c2..e1c730c23 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,16 +11,12 @@ 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 8f02e17e7..b39e30f70 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,17 +11,11 @@ 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 51bb190b2..9da118714 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,15 +11,10 @@ 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 fa9345310..572e38205 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,15 +11,10 @@ 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 7ee58dd31..80aa51604 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,15 +11,10 @@ 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 6754f8fd0..e0814d0d2 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,15 +11,10 @@ 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 9630356d3..f66abe159 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 17efe2a02..aa03f3ec2 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,15 +11,10 @@ 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 d4a12ba2f..e3f028da4 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,15 +11,10 @@ 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 101a01f50..7a78c1726 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,16 +11,11 @@ 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 a7ba40be0..940e7d7e4 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,16 +12,10 @@ 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 0246f8b6a..ecc1e152d 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,15 +11,10 @@ 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 8dcb404c6..ff899ce7c 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,15 +11,10 @@ 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 f8375dd90..c617f4eb7 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,15 +11,10 @@ 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 37e027c76..c2ba65142 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,16 +11,11 @@ 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 58ee449f0..7d1b0825c 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,16 +12,10 @@ 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 ed310abed..ec574b3a7 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,15 +11,10 @@ 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 437514a5a..dd20678dd 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 8ad718946..bbab075d1 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,15 +11,10 @@ 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 ccab0095c..1049047f0 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,15 +11,10 @@ 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 9a2f49972..8ff2abc39 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,16 +11,11 @@ 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 8fe3b1120..bad743269 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,16 +12,10 @@ 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 81bcd689a..fefc31e18 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 34f7c5b64..836017045 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 03dc813f5..bb601c08f 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 61c923331..7c4d7474b 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 07c0decbc..08fbd5cb3 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 3a9d96b63..503a17fd3 100644
--- a/test/built-ins/Function/S10.1.1_A1_T3.js
+++ b/test/built-ins/Function/S10.1.1_A1_T3.js
@@ -12,8 +12,6 @@ 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 8175c337d..43129631d 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 52e20e1fd..12c037b04 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,11 +14,7 @@ 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 {
@@ -26,6 +22,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 764e5b2a0..f1ed2fe5c 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 74248f283..18baa8e9a 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 81d816f38..bc4646e08 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 09942b2c5..fbc01fc89 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 a1424960b..0e971af37 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,17 +16,13 @@ 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
@@ -35,6 +31,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 25e9f5493..aec811fe1 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 2b9be51a5..2d862279d 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 c7c3df4c0..9cde6597f 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 548718444..9ed5398b4 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 bb68c4257..23bde2777 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 e17847cbd..0b1c5d4db 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 e007a4af0..8316ce12a 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 241712a5b..e02bc648f 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 dee237ec5..afa0b05de 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 d2e54ebb2..973be30e4 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,13 +11,9 @@ 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 {
@@ -27,11 +23,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 bc9b1f0b4..70ca03e73 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,27 +11,23 @@ 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 0d658808d..15fe4beb5 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,27 +11,23 @@ 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 b5c796b35..3a1013ecd 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,23 +19,15 @@ 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 684c1e7da..1945adbbe 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,18 +19,14 @@ 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 1091a94b3..f547d6973 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 a87f0ba3e..a3698bbfd 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 e2d5c251a..f74d02cf6 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 38af3ccdf..0d7a87192 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 43796ef88..e3f6eb2bd 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 069ddeabf..1649e9fad 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,18 +18,14 @@ 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
@@ -38,6 +34,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 29454c2f9..4ba1f0f48 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,25 +19,16 @@ 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 7a0ec0d00..e817ba1b3 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 47a69636b..67887edd3 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 f39efaffc..129c462f2 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 de41763f2..fa680f6b5 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 33d353c92..2e3c36110 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 d4134cb37..4d5d1a042 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 a498f0131..05200e212 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 b4fb57879..a22a560d0 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 00b25df86..16f1e7ae3 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 5a233d07f..861e754d4 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 92448aaf0..f7cc03dd0 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 1c3de3f64..6fbc17a5c 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 8574cfb87..97d3d2ec9 100644
--- a/test/built-ins/Function/S15.3_A3_T1.js
+++ b/test/built-ins/Function/S15.3_A3_T1.js
@@ -11,11 +11,7 @@ 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;");
@@ -27,6 +23,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 aa0fe3961..72f827fea 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 7ac27927d..7c2b0d6d7 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 769f6bbb4..69c045d2d 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 753410f5c..3129b520c 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 fa88d7e5a..44af50aaa 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 5371dbf61..84c73661f 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 0ee96c124..2a8ee4e26 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 ff5452aaa..09f5776a6 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 2e773dda3..ccc4b1043 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 dc6f91375..7684cd918 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 882152b04..f65035071 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 02d981a45..c10714b3f 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 e6cb737b3..2482faecd 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 818d82d63..ed321e683 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 894c65e92..14f9cc410 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 8e1d150c6..c67c5f6a5 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 44e16e8f8..cdf721374 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 f06c15489..af9795ab9 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,9 +10,7 @@ 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) {
@@ -21,9 +19,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 8642fe1d6..280e6d3a5 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 9feac6cb2..17f5d057b 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,10 +15,8 @@ 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 b54a90c55..b1b163bb5 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 cd8afff2f..ebfcef721 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 5ddc03b77..48dffef53 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 5b4b159cd..f72522a14 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 7f8550234..2d31234ce 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 eb6eaa1aa..5fdee9b54 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 8e97762be..33d46760d 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,9 +16,7 @@ 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 daeed835d..7ee954176 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 0c792e14a..a717204bd 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 f62f5d967..762c5c593 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 244c35acd..ce9541aa0 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,9 +17,7 @@ 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 dcab5610c..18da556b6 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 50ea57ee8..c84faf776 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 bf25dfed3..ce11c7e88 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 77e0ffe08..c8a7711c8 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 ad2b14770..8d65c78db 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 872e46597..a56a6b4d1 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 2864ae8e3..b2667397c 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 c4fe40482..de2baaba0 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,10 +12,8 @@ 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 1065e8d27..7138f11cd 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 94449eb37..bec48bd99 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,10 +12,8 @@ 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 4fe65248a..e7055f830 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 937f8cb9f..b0a73eab7 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 79d6cf816..88e6a92cb 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 eeb07e45e..8ec4feae5 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,12 +10,9 @@ 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 527311ae9..65230c6eb 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,10 +10,7 @@ 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 8d88bfdd1..b4947b223 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,11 +9,9 @@ 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 ffabe93c3..3a852f770 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,11 +9,9 @@ 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 f99dfe61f..3aea79d4c 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 26ce5a6ec..3e7ff7743 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 a21265dd3..ddeca4bbb 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 313e89d79..2fa2501c3 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 018dcc7bd..afa24ed01 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 7a77fd2d1..8e518ebd6 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 f54f65d30..fbfadbdb7 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 d4ce5fc1d..1f27d4ef2 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,17 +9,13 @@ 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 9a747b4a1..a88cc9e73 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,19 +11,13 @@ 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 44ab20da0..26d0b1a28 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 23e9ac8ec..2e2f76d64 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 59dbd059a..0ee4e41ee 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 f0c0215cd..b3cf86486 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 d478bc629..8781ceff1 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 75eeb6534..0279d3e1e 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 94169ef9d..ea44af1c2 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 6a5c1ec34..721390cf7 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 757d27d50..7486fce8d 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 cc302b88d..924da6e02 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 c1dfb471a..76a189908 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 a99ce8cd2..d0aedf906 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 c712aad44..b2a968ed3 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 8fe162a20..152d1eb8b 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 c95236da2..fcf6139fa 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 8b50e1347..038084b1a 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 e2ca7cfe8..ff341342e 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 11cad43ed..19ed95b0d 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 8c5f06f4c..f0305bbe4 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 1ac7dc4c6..f0f5a41e6 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,17 +8,16 @@ 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 447d9d617..9a0e9fe66 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,14 +8,13 @@ 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 ddec313c6..385cc179a 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 2bb3449a6..0a1d79541 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 4fe22c9ad..22274ec43 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 d351a8085..b7cc355aa 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 cb8b5bb00..a6b2d2536 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 bb5299cb6..ac81d90cb 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 8e99cd6f6..0745139ad 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 48710b1df..64b0899f7 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 83c763a95..887441b2c 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 55832a1c1..4d72a31fe 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 83f9770a8..17fc39e38 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 38baf8fa0..72842e357 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 c4c97b310..b33445051 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 893d19b53..935f654cb 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 d659c61b0..e9924b7d2 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 124f1f87e..8df945394 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 99474ac4d..79efe3ccf 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 f16e2404f..337e8b6da 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 ce141fdab..c07b78a05 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 b3f830dbb..15516ceb6 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 2d7c5dfca..8779bc06d 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 34bf7d6f2..c132f9d09 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 f6aab4e45..0a88f6d3b 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 5a2427399..89e32473e 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 7d46c866e..d4d1b0996 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 3febd3790..2f3939817 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 8ac9fab50..416294bc0 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 b770d4876..e6718ada4 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 ea79e26d2..a3cc6aaac 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 f1c1bdb02..914e18209 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 4f12d470a..e75c71ee1 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 d32741530..4abb56c50 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 a5037a2f4..7dc8018d1 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 8ccd3143f..65bf83aad 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 6f2465005..bedb8acfb 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 71eda47c4..3ef542bdc 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 7edffd174..cc9ca589b 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 b2e9a05b6..ff231a57b 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 e8f93ad8d..597e3ca15 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 d29e6ada9..9d386aa4f 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 48116b915..13c4a05bc 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,14 +8,12 @@ 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 5f9e6167e..162dfdbc2 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,14 +8,12 @@ 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 c2ac2a3dd..0185bd3e2 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,15 +8,13 @@ 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 5bf792565..477b95d8e 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,15 +8,13 @@ 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 8090b28f3..3c844f557 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,15 +8,13 @@ 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 d10b5a53b..772059d8f 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,15 +8,13 @@ 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 77ad47716..329b1e78c 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,14 +9,12 @@ 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 138e22f6c..c0bb824d0 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 c7575ddc3..829615fff 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 40f2188b4..7342bbdd3 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 4188a07b6..88da5973c 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,14 +8,12 @@ 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 a541eaaad..2e90afd02 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,14 +8,12 @@ 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 405ece18f..7203696e8 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,14 +8,12 @@ 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 d3c13c4e4..496a18584 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,14 +8,12 @@ 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 b71c21678..5088d7335 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 182b4bcec..c3a9014e1 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 7588ba3c6..1d385d081 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 cc813fe58..2a3ab1bf2 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 d31433b28..ad86f0904 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 2650b236f..e893ad5a8 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 4109332f1..cdee9fae6 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 4e191f160..535e38e0e 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 c668db2ac..2fdf32fd3 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 dc04a872e..1bc2037b5 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,18 +8,16 @@ 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 90fe291b0..1afb3b7cf 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 217c01c90..085e9545e 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 2dc27e06c..4207a187c 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 ff53ee612..4c25b405d 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 cae9bb2ae..02d66d06d 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,14 +7,9 @@ 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 b53e5d61c..92d5f82d8 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 d7dd27869..25ef64935 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,14 +7,9 @@ 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 97e37f9e4..465b4664e 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,7 +16,6 @@ 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 a8b869699..b889634db 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,7 +15,6 @@ 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 5177da492..f183dbf79 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,7 +14,6 @@ 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 fa8a94894..8664a6eea 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,7 +15,6 @@ 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 2b8ce18d6..a9ad72bb8 100644
--- a/test/built-ins/Function/prototype/bind/instance-name-chained.js
+++ b/test/built-ins/Function/prototype/bind/instance-name-chained.js
@@ -13,9 +13,7 @@ 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 63e74038d..4ef412a19 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,54 +16,42 @@ 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 b69f8c655..1750d98d1 100644
--- a/test/built-ins/Function/prototype/bind/instance-name.js
+++ b/test/built-ins/Function/prototype/bind/instance-name.js
@@ -12,9 +12,7 @@ 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 1963de281..76e163d46 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 a7e12df0d..a4f618bb1 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 27563643a..687003b5c 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 cc7fb1998..a92bdea11 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 bf2aa724c..dd8819d49 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,9 +17,7 @@ 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 830678ae9..c9be0531d 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 dde3a6c71..a75e65fcb 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 383666a13..2bde783dd 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 7d3f3dddb..993391795 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 de04b43dd..a07cbd0ef 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 a6c9d6ead..45f06ff71 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 df370cdee..de55a0129 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 297d48abf..20a4d2fad 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,10 +12,8 @@ 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 d6a3e721b..b31ef5ae4 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 60ec21eb9..06362d1a0 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,10 +12,8 @@ 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 94e0aecc7..ead02bfc2 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 91db8755e..7e09b3902 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 84b8fc456..dd6f658ce 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 b4d2167fd..d71867222 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,12 +10,9 @@ 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 23fa06219..b0799cf00 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,10 +10,7 @@ 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 9857f09e4..a2e307928 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,11 +9,9 @@ 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 7ffe1a4d6..e8fe5d4d8 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,11 +9,9 @@ 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 9dc90b7ca..7cbce9229 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 9955eb6d5..debf82396 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 089063475..f8e0aba15 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 be97b1f58..fed1b7aad 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 5620f4077..989080fa0 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 05368a6c2..b70556e03 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,17 +11,13 @@ 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) {
@@ -29,7 +25,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 312557514..5b51b1d8e 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,19 +11,13 @@ 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 ac798300c..b049d45ce 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 7956ab5ac..597feba63 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 2c29c4725..cfce0647d 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 1978d9acf..9601af80c 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 99bf13b9d..d93a3e2a1 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 7cec40c13..f3dee9603 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 8bf0e67bb..d88e10c02 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 1faf047ba..5010b3dee 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 e069ee7c9..bd4003298 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 c9d1d4495..804d9e17f 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 de753afdd..43cce215e 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 dd75ab84f..2f0362a8d 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 35a5a7a7e..523f1cd2a 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 99c46fb0e..7391b67ed 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,9 +17,7 @@ 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 5f367dd45..4cba0c3b5 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,9 +12,7 @@ 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 e85937944..a3d4e3b16 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 23b8b0ee2..b730a6ec2 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 62fab71ae..06990b14c 100644
--- a/test/built-ins/Function/prototype/toString/arrow-function.js
+++ b/test/built-ins/Function/prototype/toString/arrow-function.js
@@ -6,10 +6,9 @@ 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 1dff802ee..39a2a0388 100644
--- a/test/built-ins/Function/prototype/toString/async-arrow-function.js
+++ b/test/built-ins/Function/prototype/toString/async-arrow-function.js
@@ -7,10 +7,9 @@ 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 c1f62a5f0..4b909bbf7 100644
--- a/test/built-ins/Function/prototype/toString/async-function-declaration.js
+++ b/test/built-ins/Function/prototype/toString/async-function-declaration.js
@@ -8,8 +8,6 @@ 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 6d38d2746..6b7f26bd5 100644
--- a/test/built-ins/Function/prototype/toString/async-function-expression.js
+++ b/test/built-ins/Function/prototype/toString/async-function-expression.js
@@ -8,10 +8,8 @@ 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 f4bdcde60..9a5bb3f3d 100644
--- a/test/built-ins/Function/prototype/toString/async-generator-declaration.js
+++ b/test/built-ins/Function/prototype/toString/async-generator-declaration.js
@@ -7,8 +7,6 @@ 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 1332f6c93..60a712820 100644
--- a/test/built-ins/Function/prototype/toString/async-generator-expression.js
+++ b/test/built-ins/Function/prototype/toString/async-generator-expression.js
@@ -7,10 +7,8 @@ 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 fbe7fd3a9..03ac897e2 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,15 +8,9 @@ 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 f51f2ee2c..3c9848558 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,15 +8,9 @@ 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 bdbd18607..58d5835eb 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,15 +8,9 @@ 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 acd8b9a52..1001b983c 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,15 +8,9 @@ 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 f6b2760c5..58a274a85 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,15 +8,9 @@ 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 b2bc520ee..8388c4dda 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,15 +8,9 @@ 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 a4c84fc76..dcacd9c9d 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,15 +8,9 @@ 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 641489fbf..56e27d0ea 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,15 +8,9 @@ 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 c5a00b124..50f512607 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,15 +8,9 @@ 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 99e6e7670..de117ed4f 100644
--- a/test/built-ins/Function/prototype/toString/async-method-object.js
+++ b/test/built-ins/Function/prototype/toString/async-method-object.js
@@ -9,15 +9,9 @@ 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 f8eca49a5..b6ceb116e 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 b2956cf56..dbf60ee83 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,7 +6,6 @@ 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 a015ab88d..c3b4b264f 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,13 +6,8 @@ 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 bb89e2969..9dea84bb6 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,14 +6,9 @@ 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 c6fdcc5b1..93d744847 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,12 +6,8 @@ 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 07b2a9a00..91ab62134 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,11 +6,9 @@ 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 3b5acaa73..7ff7971e0 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,9 +6,6 @@ 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 0d2db3877..a0446ba71 100644
--- a/test/built-ins/Function/prototype/toString/function-declaration.js
+++ b/test/built-ins/Function/prototype/toString/function-declaration.js
@@ -6,8 +6,6 @@ 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 5c67dd8af..b1bcedaf4 100644
--- a/test/built-ins/Function/prototype/toString/function-expression.js
+++ b/test/built-ins/Function/prototype/toString/function-expression.js
@@ -6,10 +6,8 @@ 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 cab7f840d..133f9af8c 100644
--- a/test/built-ins/Function/prototype/toString/generator-function-declaration.js
+++ b/test/built-ins/Function/prototype/toString/generator-function-declaration.js
@@ -6,8 +6,6 @@ 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 6d1dae971..d175055ec 100644
--- a/test/built-ins/Function/prototype/toString/generator-function-expression.js
+++ b/test/built-ins/Function/prototype/toString/generator-function-expression.js
@@ -6,10 +6,8 @@ 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 041fcbcc6..f5cb5d218 100644
--- a/test/built-ins/Function/prototype/toString/generator-method.js
+++ b/test/built-ins/Function/prototype/toString/generator-method.js
@@ -7,12 +7,9 @@ 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 e220cf435..009d92127 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,15 +7,9 @@ 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 b5e1d9d69..7b3eef410 100644
--- a/test/built-ins/Function/prototype/toString/getter-class-expression.js
+++ b/test/built-ins/Function/prototype/toString/getter-class-expression.js
@@ -7,15 +7,9 @@ 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 411a51cbd..4ac72bccd 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,15 +7,9 @@ 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 768500ad2..83139c33c 100644
--- a/test/built-ins/Function/prototype/toString/getter-class-statement.js
+++ b/test/built-ins/Function/prototype/toString/getter-class-statement.js
@@ -7,15 +7,9 @@ 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 2a7625cd9..3e794d04b 100644
--- a/test/built-ins/Function/prototype/toString/getter-object.js
+++ b/test/built-ins/Function/prototype/toString/getter-object.js
@@ -7,15 +7,9 @@ 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 61cbff78b..dc1319596 100644
--- a/test/built-ins/Function/prototype/toString/intrinsics.js
+++ b/test/built-ins/Function/prototype/toString/intrinsics.js
@@ -8,48 +8,11 @@ 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 8b362356f..93f653936 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 d71053779..4e55706f6 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,36 +1 @@
-// 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 35d0a9cf5..69b785543 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 752c9d085..9a81f8f10 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,15 +7,9 @@ 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 a77b6b163..cdfe9643e 100644
--- a/test/built-ins/Function/prototype/toString/method-class-expression.js
+++ b/test/built-ins/Function/prototype/toString/method-class-expression.js
@@ -7,15 +7,9 @@ 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 5bb809870..f8e9817a8 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,15 +7,9 @@ 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 63f7e3871..3ee83d514 100644
--- a/test/built-ins/Function/prototype/toString/method-class-statement.js
+++ b/test/built-ins/Function/prototype/toString/method-class-statement.js
@@ -7,15 +7,9 @@ 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 af4d893be..dcf692d23 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,14 +6,8 @@ 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 0e1567873..6930964ed 100644
--- a/test/built-ins/Function/prototype/toString/method-object.js
+++ b/test/built-ins/Function/prototype/toString/method-object.js
@@ -6,8 +6,6 @@ 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 f276c8657..ab0b1ede4 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,15 +7,9 @@ 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 954d6d52f..b34b4128e 100644
--- a/test/built-ins/Function/prototype/toString/setter-class-expression.js
+++ b/test/built-ins/Function/prototype/toString/setter-class-expression.js
@@ -7,15 +7,9 @@ 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 dec3c2471..7a5a37de0 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,15 +7,9 @@ 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 4534d8aa1..7c0c2b3e0 100644
--- a/test/built-ins/Function/prototype/toString/setter-class-statement.js
+++ b/test/built-ins/Function/prototype/toString/setter-class-statement.js
@@ -7,15 +7,9 @@ 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 0e207d25c..20adbe3e0 100644
--- a/test/built-ins/Function/prototype/toString/setter-object.js
+++ b/test/built-ins/Function/prototype/toString/setter-object.js
@@ -7,15 +7,9 @@ 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 a46303ef9..fa176fac2 100644
--- a/test/built-ins/Function/prototype/toString/unicode.js
+++ b/test/built-ins/Function/prototype/toString/unicode.js
@@ -9,13 +9,6 @@ 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 4328a904e..265cffc02 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 3b5ad67f8..80d176b78 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 1cec55dd7..8225a4776 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 0951a1a2a..fb1389f73 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 88fcd961a..5dab8a312 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 e542b8964..3f6db037d 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 419360a88..a04982da8 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 564810fa1..cb5bf8e8a 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 7b7ac8429..a32adad02 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 204d5a30b..928f73374 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 279bfd129..e49ddcbc4 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 b989303de..f118d1de6 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 2d517748b..99f02561c 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 313fd4baa..b8215acf4 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 87cb43184..26c4370b1 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 ca9f59099..4a7134769 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 e28a1d04b..1ba38ae8a 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 3986c63d0..3f6332163 100644
--- a/test/built-ins/GeneratorPrototype/next/consecutive-yields.js
+++ b/test/built-ins/GeneratorPrototype/next/consecutive-yields.js
@@ -8,10 +8,7 @@ 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 aff5667ad..5e6f3ed5a 100644
--- a/test/built-ins/GeneratorPrototype/next/context-method-invocation.js
+++ b/test/built-ins/GeneratorPrototype/next/context-method-invocation.js
@@ -9,13 +9,8 @@ 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 2a05f8c2f..29461cc11 100644
--- a/test/built-ins/GeneratorPrototype/next/from-state-executing.js
+++ b/test/built-ins/GeneratorPrototype/next/from-state-executing.js
@@ -37,11 +37,9 @@ 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 0a444cbc1..cae93289b 100644
--- a/test/built-ins/GeneratorPrototype/next/lone-return.js
+++ b/test/built-ins/GeneratorPrototype/next/lone-return.js
@@ -8,9 +8,7 @@ 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 c909af148..76199c672 100644
--- a/test/built-ins/GeneratorPrototype/next/lone-yield.js
+++ b/test/built-ins/GeneratorPrototype/next/lone-yield.js
@@ -8,9 +8,7 @@ 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 25727d062..dee7dfc4e 100644
--- a/test/built-ins/GeneratorPrototype/next/this-val-not-generator.js
+++ b/test/built-ins/GeneratorPrototype/next/this-val-not-generator.js
@@ -27,60 +27,44 @@ 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 c42b5777f..646590b6f 100644
--- a/test/built-ins/GeneratorPrototype/next/this-val-not-object.js
+++ b/test/built-ins/GeneratorPrototype/next/this-val-not-object.js
@@ -26,90 +26,66 @@ 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 203c1a746..9cf5a78bd 100644
--- a/test/built-ins/GeneratorPrototype/return/from-state-executing.js
+++ b/test/built-ins/GeneratorPrototype/return/from-state-executing.js
@@ -37,7 +37,6 @@ 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 34e6eebfb..b20ad0aed 100644
--- a/test/built-ins/GeneratorPrototype/return/from-state-suspended-start.js
+++ b/test/built-ins/GeneratorPrototype/return/from-state-suspended-start.js
@@ -10,7 +10,6 @@ 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 dd0ff4b33..1af04d299 100644
--- a/test/built-ins/GeneratorPrototype/return/this-val-not-generator.js
+++ b/test/built-ins/GeneratorPrototype/return/this-val-not-generator.js
@@ -27,60 +27,44 @@ 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 c8431b407..edf0b124e 100644
--- a/test/built-ins/GeneratorPrototype/return/this-val-not-object.js
+++ b/test/built-ins/GeneratorPrototype/return/this-val-not-object.js
@@ -26,90 +26,66 @@ 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 d7c40026d..f1b1bdc44 100644
--- a/test/built-ins/GeneratorPrototype/return/try-catch-before-try.js
+++ b/test/built-ins/GeneratorPrototype/return/try-catch-before-try.js
@@ -10,7 +10,6 @@ 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 b7880cea8..f354530be 100644
--- a/test/built-ins/GeneratorPrototype/return/try-catch-following-catch.js
+++ b/test/built-ins/GeneratorPrototype/return/try-catch-following-catch.js
@@ -11,7 +11,6 @@ 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 a995017d2..16c9573f6 100644
--- a/test/built-ins/GeneratorPrototype/return/try-catch-within-catch.js
+++ b/test/built-ins/GeneratorPrototype/return/try-catch-within-catch.js
@@ -11,7 +11,6 @@ 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 2d86cb3bf..3e925ba10 100644
--- a/test/built-ins/GeneratorPrototype/return/try-catch-within-try.js
+++ b/test/built-ins/GeneratorPrototype/return/try-catch-within-try.js
@@ -11,7 +11,6 @@ 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 24be6db3c..1f1522fbb 100644
--- a/test/built-ins/GeneratorPrototype/return/try-finally-before-try.js
+++ b/test/built-ins/GeneratorPrototype/return/try-finally-before-try.js
@@ -10,11 +10,12 @@ 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 665e968b4..9066852be 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 937a0bd28..25e1c134e 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,7 +13,6 @@ 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 6bfef0e30..42ff56701 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 9d8d5b6ae..8cb4b6ba1 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,7 +13,6 @@ 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 5e056c140..2342f69a6 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,7 +13,6 @@ features: [generators]
var inCatch = 0;
var inFinally = 0;
var unreachable = 0;
-
function* g() {
try {
try {
@@ -30,7 +29,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 7121ebd77..f97d9bb48 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,7 +13,6 @@ 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 fbec889d9..4ea893dc3 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 336c0389b..5b0dce6ef 100644
--- a/test/built-ins/GeneratorPrototype/return/try-finally-within-try.js
+++ b/test/built-ins/GeneratorPrototype/return/try-finally-within-try.js
@@ -12,7 +12,6 @@ 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 209ab9fed..3d8e6cbf5 100644
--- a/test/built-ins/GeneratorPrototype/throw/from-state-completed.js
+++ b/test/built-ins/GeneratorPrototype/throw/from-state-completed.js
@@ -9,16 +9,13 @@ 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 df1601517..2af2f73ab 100644
--- a/test/built-ins/GeneratorPrototype/throw/from-state-executing.js
+++ b/test/built-ins/GeneratorPrototype/throw/from-state-executing.js
@@ -37,7 +37,6 @@ 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 3bf6296c3..53d44904e 100644
--- a/test/built-ins/GeneratorPrototype/throw/from-state-suspended-start.js
+++ b/test/built-ins/GeneratorPrototype/throw/from-state-suspended-start.js
@@ -10,7 +10,6 @@ features: [generators]
---*/
function E() {}
-
function* G() {
yield 1;
yield 2;
@@ -18,9 +17,7 @@ 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 fae6fe7b7..8667ad897 100644
--- a/test/built-ins/GeneratorPrototype/throw/this-val-not-generator.js
+++ b/test/built-ins/GeneratorPrototype/throw/this-val-not-generator.js
@@ -27,60 +27,44 @@ 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 8122f2b38..8b4d342be 100644
--- a/test/built-ins/GeneratorPrototype/throw/this-val-not-object.js
+++ b/test/built-ins/GeneratorPrototype/throw/this-val-not-object.js
@@ -26,90 +26,66 @@ 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 bc2707e5c..bfd3086c7 100644
--- a/test/built-ins/GeneratorPrototype/throw/try-catch-before-try.js
+++ b/test/built-ins/GeneratorPrototype/throw/try-catch-before-try.js
@@ -10,7 +10,6 @@ features: [generators]
---*/
var unreachable = 0;
-
function* g() {
yield 1;
unreachable += 1;
@@ -32,9 +31,7 @@ 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 1866ad20d..1e6912542 100644
--- a/test/built-ins/GeneratorPrototype/throw/try-catch-following-catch.js
+++ b/test/built-ins/GeneratorPrototype/throw/try-catch-following-catch.js
@@ -11,7 +11,6 @@ features: [generators]
var obj = {};
var unreachable = 0;
-
function* g() {
yield 1;
try {
@@ -42,9 +41,7 @@ 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 937004428..176b4cc41 100644
--- a/test/built-ins/GeneratorPrototype/throw/try-catch-within-catch.js
+++ b/test/built-ins/GeneratorPrototype/throw/try-catch-within-catch.js
@@ -10,7 +10,6 @@ features: [generators]
---*/
var unreachable = 0;
-
function* g() {
yield 1;
try {
@@ -39,9 +38,7 @@ 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 e63430ce6..af352ae29 100644
--- a/test/built-ins/GeneratorPrototype/throw/try-catch-within-try.js
+++ b/test/built-ins/GeneratorPrototype/throw/try-catch-within-try.js
@@ -10,7 +10,6 @@ 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 daad602d0..4ecd883b9 100644
--- a/test/built-ins/GeneratorPrototype/throw/try-finally-before-try.js
+++ b/test/built-ins/GeneratorPrototype/throw/try-finally-before-try.js
@@ -10,7 +10,6 @@ features: [generators]
---*/
var unreachable = 0;
-
function* g() {
yield 1;
unreachable += 1;
@@ -34,9 +33,7 @@ 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,
@@ -48,7 +45,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 aac9dd130..fdc9fa55d 100644
--- a/test/built-ins/GeneratorPrototype/throw/try-finally-following-finally.js
+++ b/test/built-ins/GeneratorPrototype/throw/try-finally-following-finally.js
@@ -10,7 +10,6 @@ features: [generators]
---*/
var unreachable = 0;
-
function* g() {
yield 1;
try {
@@ -40,9 +39,7 @@ 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 16c78fe31..c69d12f42 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,7 +11,6 @@ features: [generators]
---*/
var unreachable = 0;
-
function* g() {
try {
yield 1;
@@ -48,9 +47,7 @@ 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 eb691f39c..8c5392ea7 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,7 +10,6 @@ features: [generators]
---*/
var unreachable = 0;
-
function* g() {
try {
yield 1;
@@ -39,9 +38,7 @@ 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 20c833b45..6b0ae2647 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,7 +11,6 @@ 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 cb1c4318b..93c9cbad5 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,7 +11,6 @@ features: [generators]
---*/
var unreachable = 0;
-
function* g() {
try {
yield 1;
@@ -58,9 +57,7 @@ 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 5ce3a0516..942234e3c 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,7 +11,6 @@ features: [generators]
---*/
var unreachable = 0;
-
function* g() {
try {
yield 1;
@@ -44,9 +43,7 @@ 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 628987116..8a83967c5 100644
--- a/test/built-ins/GeneratorPrototype/throw/try-finally-within-finally.js
+++ b/test/built-ins/GeneratorPrototype/throw/try-finally-within-finally.js
@@ -10,7 +10,6 @@ features: [generators]
---*/
var unreachable = 0;
-
function* g() {
yield 1;
try {
@@ -36,9 +35,7 @@ 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 91105b8b7..19764d8b7 100644
--- a/test/built-ins/GeneratorPrototype/throw/try-finally-within-try.js
+++ b/test/built-ins/GeneratorPrototype/throw/try-finally-within-try.js
@@ -10,7 +10,6 @@ features: [generators]
---*/
var unreachable = 0;
-
function* g() {
yield 1;
try {
@@ -42,9 +41,7 @@ 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 4c713b591..a2e63985e 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 5895191bd..063168d55 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 1575771b2..0a6435466 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 ea99c3061..d6c409387 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 09b1a7467..8e8433f4d 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 73dadfecc..fe9c76f6d 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 1d0776cc7..7dcb5975b 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 5c086b533..924b54991 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 4e082c49f..4a511110a 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 804c33687..565dcc95b 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 6134ce18f..d1bb9eecd 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 e2e3f87e1..8254a4d62 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 32fe77231..fb213cb00 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 879335aa1..34b31816c 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 59aff18b6..e18222fd2 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 ff2889373..cfaf7d050 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 d342003b9..fa7bb87b3 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 5deb8a581..e669bb290 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 3b0ccd470..4325a2899 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 f42e2c7a8..4c71c01a7 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 7de418059..80e533c41 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 03684d8f5..b00e82b55 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 97a669bbb..cf4a5d47f 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 6015ce798..d7b8a4584 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 a5d434e6d..5022dcbca 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 da95a89e9..9d13dbb69 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 9e584f0ff..e222184eb 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 5ba676d88..d03a29920 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 d6085f082..e577bd6f6 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 2bb777949..7d3cc1d3e 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 fe9569381..40ebfdb2f 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 de7d3f825..068cf69fc 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 d307ad6d0..a2a42946f 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 24f298c88..0f3c73ac1 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 6af5601ae..d577d5b76 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 0bd6dc9e9..20f19e1b2 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 819f7160f..755f4578f 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 ebd3e27be..1b0a6240b 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 80f4a5de6..c4fb8b863 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 ed1db8a09..2cb912b1f 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 ae58602b3..ab571c59f 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 02b7bb72d..ab7ca39cc 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 fbcb3aa46..fe3686849 100644
--- a/test/built-ins/JSON/parse/revived-proxy.js
+++ b/test/built-ins/JSON/parse/revived-proxy.js
@@ -35,10 +35,7 @@ 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 d62dbaf89..c42cff0a6 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,9 +30,7 @@ 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 edded21fa..d596d4e27 100644
--- a/test/built-ins/JSON/parse/reviver-object-delete-err.js
+++ b/test/built-ins/JSON/parse/reviver-object-delete-err.js
@@ -28,9 +28,7 @@ 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 5cc4240c7..c79c6f026 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 08e864d0c..3f5fe1ec0 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 76e41ffb8..d8a575973 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 c59045ebb..f15173196 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,6 +8,4 @@ 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 f4da04f92..da886044b 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,8 +8,4 @@ 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 1238189a0..5fdfea838 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,6 +8,4 @@ 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 22b244c0b..e98f67116 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,8 +8,4 @@ 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 5a4b35c96..d2cb93191 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,6 +8,4 @@ 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 23f89c2f9..e9d92d5c2 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,48 +9,46 @@ 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 972323629..fe8a268b6 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,48 +9,46 @@ 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 6766a4e19..721fe41e3 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,48 +9,46 @@ 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 052e394f2..c372e890f 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,48 +9,46 @@ 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 adc1c36c8..f6dc5e862 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,6 +8,4 @@ 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 8c9bc2783..6b7c2e6f4 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,48 +9,46 @@ 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 ca7e598d6..e22b848cc 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,48 +9,46 @@ 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 eec132500..238b6c35f 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,48 +9,46 @@ 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 982968f34..c19435273 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,48 +9,46 @@ 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 3fc4140a2..17a9c9631 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,48 +9,46 @@ 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 9a26fa418..146d71200 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,48 +9,46 @@ 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 142160ce5..a04f354a0 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 d68148698..0f7eafd11 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 0304b03c2..719f653c9 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,15 +8,6 @@ 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 baf3d06f5..034123aec 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,15 +8,6 @@ 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 2d7e6386f..fd0d4ded4 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,15 +8,6 @@ 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 16349f1f3..1cfe50a80 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,15 +8,6 @@ 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 d178f1eef..d5eea1024 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,16 +8,7 @@ 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 504e939e6..d1bf8401b 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,16 +8,7 @@ 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 92db3c825..9310f9470 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,16 +8,7 @@ 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 e492e43a3..de0330367 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,17 +8,8 @@ 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 fd579d854..e16a25e6f 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,15 +8,6 @@ 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 7fc0583f6..c95e950e6 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,15 +8,6 @@ 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 eacd51d52..0443eb753 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,15 +8,6 @@ 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 072eb9d53..6d4bc3eb8 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,15 +8,6 @@ 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 7ac1a28ec..d13b9c5c8 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,15 +8,6 @@ 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 4f05d178f..56532c4ec 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,15 +8,6 @@ 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 447652a8b..6f6fa62da 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,11 +8,9 @@ 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 aa418fefd..b665d8004 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,11 +8,9 @@ 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 6f4eaccdf..9a192f26c 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,11 +8,9 @@ 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 aefb5d77c..853acb01d 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,6 +8,4 @@ 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 87b0df0ac..7888996d7 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,6 +8,4 @@ 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 a26ae4b2f..adb582fe2 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,6 +8,4 @@ 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 40b42f574..f9b5f68ab 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 299853c91..a79907bd0 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 feb1a6c9c..30d0a4339 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,13 +6,9 @@ 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 a6de33687..7dc1d9672 100644
--- a/test/built-ins/JSON/stringify/bigint-order.js
+++ b/test/built-ins/JSON/stringify/bigint-order.js
@@ -27,19 +27,16 @@ let step;
function replacer(x, k, v)
{
assert.sameValue(step++, 1);
- assert.sameValue(v, 1 n);
+ assert.sameValue(v, 1n);
return x;
}
-BigInt.prototype.toJSON = function() {
- assert.sameValue(step++, 0);
- return 1 n;
-};
+BigInt.prototype.toJSON = function () { assert.sameValue(step++, 0); return 1n; };
step = 0;
-assert.throws(TypeError, () => JSON.stringify(0 n, (k, v) => replacer(2 n, k, v)));
+assert.throws(TypeError, () => JSON.stringify(0n, (k, v) => replacer(2n, k, v)));
assert.sameValue(step, 2);
step = 0;
-assert.throws(TypeError, () => JSON.stringify(0 n, (k, v) => replacer(Object(2 n), k, v)));
+assert.throws(TypeError, () => JSON.stringify(0n, (k, v) => replacer(Object(2n), 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 72e19c149..03878ec5c 100644
--- a/test/built-ins/JSON/stringify/bigint-replacer.js
+++ b/test/built-ins/JSON/stringify/bigint-replacer.js
@@ -14,13 +14,11 @@ 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 c314d74bd..bf4f531f2 100644
--- a/test/built-ins/JSON/stringify/bigint-tojson.js
+++ b/test/built-ins/JSON/stringify/bigint-tojson.js
@@ -14,7 +14,5 @@ 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 bba26f4dc..80d17799e 100644
--- a/test/built-ins/JSON/stringify/bigint.js
+++ b/test/built-ins/JSON/stringify/bigint.js
@@ -9,6 +9,4 @@ 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 8ec585a98..9ac8d5bb5 100644
--- a/test/built-ins/JSON/stringify/replacer-proxy.js
+++ b/test/built-ins/JSON/stringify/replacer-proxy.js
@@ -36,14 +36,10 @@ 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 81cd50d98..24b34f5dc 100644
--- a/test/built-ins/JSON/stringify/value-proxy-revoked.js
+++ b/test/built-ins/JSON/stringify/value-proxy-revoked.js
@@ -38,9 +38,5 @@ 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 3b512eb4b..989cab985 100644
--- a/test/built-ins/Map/iterable-calls-set.js
+++ b/test/built-ins/Map/iterable-calls-set.js
@@ -18,10 +18,7 @@ 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 321c0a729..144d74373 100644
--- a/test/built-ins/Map/iterator-close-after-set-failure.js
+++ b/test/built-ins/Map/iterator-close-after-set-failure.js
@@ -20,19 +20,14 @@ 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 8c9bc4fe8..4e8e10a6c 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,10 +27,7 @@ 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 aceebcef7..18b2b6df2 100644
--- a/test/built-ins/Map/iterator-items-are-not-object.js
+++ b/test/built-ins/Map/iterator-items-are-not-object.js
@@ -44,7 +44,5 @@ 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 89fc9ce3c..d4ec50d3f 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,8 +23,5 @@ 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 e46330ead..3aab35f3d 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 0206d23b1..a9589a4cc 100644
--- a/test/built-ins/Map/newtarget.js
+++ b/test/built-ins/Map/newtarget.js
@@ -25,10 +25,7 @@ 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 e5341fbdd..b6580d0a4 100644
--- a/test/built-ins/Map/prototype/clear/clear-map.js
+++ b/test/built-ins/Map/prototype/clear/clear-map.js
@@ -17,14 +17,11 @@ 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 80fe0ac78..59f28de2e 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 e83b87d5c..f49aefda0 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,11 +20,7 @@ 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 ce4cfcff2..1e1d662aa 100644
--- a/test/built-ins/Map/prototype/clear/returns-undefined.js
+++ b/test/built-ins/Map/prototype/clear/returns-undefined.js
@@ -16,10 +16,7 @@ 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 6d01496fe..4bf8688ef 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 1a788fdc0..895a7ecef 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,11 +16,7 @@ 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 d1db1c97c..2f2300d35 100644
--- a/test/built-ins/Map/prototype/delete/returns-false.js
+++ b/test/built-ins/Map/prototype/delete/returns-false.js
@@ -15,10 +15,7 @@ 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 1f4ccb52e..02ad4b12d 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,10 +16,7 @@ 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 96626b244..b2a8ef5c4 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 f377e9c6e..d61bb4e2d 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,9 +19,7 @@ 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 84f511184..42744d8c6 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 86c0897c0..0be565021 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 bcdaa0418..591f45109 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 5d84eb8a2..8e5d43069 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 93b99dcd9..3cc9f6f62 100644
--- a/test/built-ins/Map/prototype/set/append-new-values.js
+++ b/test/built-ins/Map/prototype/set/append-new-values.js
@@ -17,11 +17,7 @@ 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 427e7eb2c..991c8a277 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,15 +16,11 @@ 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 f211e63a5..447a8c4d9 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,9 +17,7 @@ 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 21f48ea88..35b339dc6 100644
--- a/test/built-ins/Map/prototype/set/replaces-a-value.js
+++ b/test/built-ins/Map/prototype/set/replaces-a-value.js
@@ -16,9 +16,7 @@ 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 68782caab..9d80385e5 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,10 +16,7 @@ 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 0190d8c35..93e0c4cef 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,10 +16,7 @@ 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 56d0a4cd4..968f79a34 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,10 +17,7 @@ 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 875ba5f36..06ac501d2 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,10 +17,7 @@ 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 912f5f15e..dccb08c52 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,10 +17,7 @@ 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 79822a393..55a61d9a3 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,10 +17,7 @@ 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 da4ec1890..4584dc9c9 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 b58e45dd5..4917b4905 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 33d88207c..0c2fda965 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 fafadc81b..0b1d92a2a 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 5c0ea9823..19f2509a1 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,7 +20,8 @@ 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 5472b973f..ef663e63f 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 de7ff4e1e..64dc40028 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,13 +12,14 @@ 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 9148c1bb4..b144e4bb5 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 9ac640cab..a1f9fcde0 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 e7d83a78f..0a5a2657c 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 6339e327e..e600908cb 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 c37068f60..74e605aab 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 b951f80d4..9f6f71592 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 8d3ca7f5a..a22ee05a7 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 ef100a283..b567b4406 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 ddb544539..7c36a759a 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 11ea36c45..db4ba2d12 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 6f8e4ca46..32054e3e6 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 a4bb1e204..94d37dc2f 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 65aa97904..3d62cc398 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 a74af8c6e..2cdb90486 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 290ce4931..0d35398ca 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 2f19b43a7..37b598401 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 5fbe0deaa..4106a0a77 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 b95438b2a..93854fdfc 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 045b73c50..1cf45192e 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 341ea36e0..5a8411b76 100644
--- a/test/built-ins/Math/log10/Log10-specialVals.js
+++ b/test/built-ins/Math/log10/Log10-specialVals.js
@@ -1,32 +1,33 @@
-// 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 bd3bb510a..3feeb1df4 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 4fb9984f5..a305b5b25 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 8507e9102..04aea82ec 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 7055503d3..fab69fcf3 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 0a396aead..ef52ac785 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 2c90b2865..3ec27bf76 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 e4f16bed2..d2555044c 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 fc788b35f..a21cdb0be 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 f44e1d30c..536b51474 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 daac829f4..9096d37fb 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 e5ab5e270..a987088d6 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 565353c2c..ddf01dada 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 41d840c29..d0dc29cc2 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 5a2cf3b0e..f5b246ed6 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 807519549..de41acd01 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 4104d287b..826a4305b 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 7fa5ecc46..e0edd6acf 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 1d8fa231a..a5bf6f33a 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 4b5db856b..10cc9f466 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 b5743303f..cfc81a02a 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 0447ef01c..8c0fff3b7 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 a96cd1124..ffb74f313 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 ed92c8bf5..ad26e408e 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 9026c223c..0e63fe895 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 beda3cd0f..cc93825cb 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 8cfd5fc32..45bf9cba5 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 a26b2af2a..27e9e5752 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 a99c6cb50..92834c730 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 19efbf6b6..a1d6e1cb2 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 f775484db..c8638ede8 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 0fe23aa65..2ed88aa61 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 f2654376c..e357fbe37 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 475c1eb9b..c9e072c4b 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 a4ec30485..797f52438 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 e867affdb..e4bba35d8 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 6b24e6c17..7b620b069 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 0a23c4427..8378470ec 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 83c607d58..0435aa0df 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 d6a7450bd..2136e588d 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 a087f3247..f13ec952d 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 1d094a056..e42b6a024 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 0b41b4d39..f38fa26dd 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 37106c76d..ba99b0608 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 0782599cb..bf524cd4c 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 3bf26e28e..9f7f11f08 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 069c25eb8..d01bc8419 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 0e66e69d2..dfe4f3e3f 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 9b1bff195..7c9dadce0 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 03ce9dfd5..c6b326159 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 3c2013129..7afcbf2bb 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 449a75274..7b79c2a4f 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 6c7afa9e3..043024634 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 c3ea2aeac..b77d07173 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 83ff9a762..4958bef8e 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 3643e41ae..22fe3db00 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 947f8358e..7c64a6a7f 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 762d85b11..4c5eb4a23 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 a7a260d10..fd36a65b1 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 f9ca248a6..ea01590a5 100644
--- a/test/built-ins/Number/S8.12.8_A3.js
+++ b/test/built-ins/Number/S8.12.8_A3.js
@@ -13,19 +13,12 @@ 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 1cd3cbf01..1a1aa0894 100644
--- a/test/built-ins/Number/S8.12.8_A4.js
+++ b/test/built-ins/Number/S8.12.8_A4.js
@@ -13,18 +13,11 @@ 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 458f74711..b08118159 100644
--- a/test/built-ins/Number/S9.1_A1_T1.js
+++ b/test/built-ins/Number/S9.1_A1_T1.js
@@ -12,27 +12,13 @@ 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 0730f5017..030b81834 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 2f3206e5a..b13c0855e 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 3d1ec721f..b33d96633 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 4435832ca..57ff2f175 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 08414f98b..f356b228c 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 e00fce7d7..5b83689c8 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 41efa9880..5428195b7 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 8600d6eac..a41a110fb 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 1ab8affeb..0bccc171d 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 5c17b0996..1982f636a 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 697c5e723..e52c47e0e 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 c6a4614bf..76c6c6f8f 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 32f800a36..1fbf9ab10 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 8ca71ebe3..d2f8a03dd 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 c0d57edbc..18cf4300d 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 c1970da5a..7f439f729 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 671da26d2..0a9649393 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 a392efa30..526af63de 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 4a2eba667..95a1c4803 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 83c798659..d7fe6d8cb 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 b08f67907..f62f3a778 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 f2e43e227..261bd8b1e 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 4a328c468..6cc699d2b 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 143ae0031..31f860763 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 cb69897cc..2b1a70c10 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 b9ed8acd7..0fd742865 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 13708e3bf..5e1307fe7 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 83d5b961e..5046e90f3 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 2b84aa762..a1223636c 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 d73f0d793..2b2e68f8d 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 940ca1fc0..4edb53988 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 4e763ee48..04a125010 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 8726eb9e7..ca4e35d08 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 a12a7d66f..35b9c8fab 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 88110ad6f..6094444ec 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 1f3cbd96c..36cc4ccd0 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 798b22369..42321e8d8 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 bdf4e43b8..23af423dc 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 e00d195ea..5536e9739 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,78 +60,56 @@ 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 0d3bd2a22..dbb49123f 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 5abcc2012..5f86ce5fa 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 a314e8c9c..a9c7aab46 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 46fc97dd6..102060a35 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 c4f97672c..d233dc7e1 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 ffae90cb4..ad9b3ec4f 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 11d7b1c40..76bb43fca 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 5d54261f7..7ff9bccfd 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 4860f866d..71efe0c73 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 edf58debf..fcd674d13 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 f6f025f63..8560ade75 100644
--- a/test/built-ins/Number/prototype/toExponential/range.js
+++ b/test/built-ins/Number/prototype/toExponential/range.js
@@ -17,3 +17,5 @@ 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 37dd400ed..726ceadd1 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 7732b7ee5..00d8c8065 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 7fc8f1485..ab98bf30c 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 cb96395d0..459fcd998 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 e577c80f0..e2318bff2 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 ad7bf816c..280def376 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 106be090e..9bbfeeb86 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 5c5b39cb0..ddaed46e7 100644
--- a/test/built-ins/Number/prototype/toPrecision/range.js
+++ b/test/built-ins/Number/prototype/toPrecision/range.js
@@ -18,3 +18,4 @@ 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 fb57dde96..7100e7673 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 73b2fb8e9..48f0f4a84 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 8ed410a74..16c179d44 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 fd829eee8..20c270d5d 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 2bf3e565b..2d3d73c36 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 e6f6d98f8..33979bd07 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 d6f7c812d..f1a4eb7f4 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 80da9e51e..8b9866606 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 aac01ee0a..3422a253c 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 334a1205f..131adda25 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 50d674dee..c66838283 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 98014b16c..e4a090353 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 6a2f03a54..5804302f3 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 010360671..277dc3921 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 86b09f7ee..eead1a532 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 22947fb57..01b284aaf 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 9daf9df1a..ed1c70aae 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 2154961ee..5355c100f 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 b2c9559b1..5367718ef 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 93469824b..bc51f7c3a 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 3c0aa4a40..f5ebae949 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 1ccdc57c6..a42479834 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 762ef884d..8ee2cae70 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 d7bb9b9e9..6588d3e70 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 90f3a18f5..f9e726d49 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 4d959df96..7a8be29a9 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 a17f09419..46b4b8c66 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 69bb10dc8..534de71ec 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 f80f78216..71cd09775 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 e76d24393..f8dd136b8 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 1785e33be..deda5fc2e 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 13d43a251..c675984c0 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 41055500e..abe038384 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 b14849bfa..9f0187a6a 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 9de1cca33..99543d170 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 55fb04064..be9013758 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 82f8fea87..7c2cfabbc 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 cc6b6aadc..bc2190c3e 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,57 +8,65 @@ 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 1033c384f..e26c3aa29 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,57 +8,65 @@ 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 8c7b1ca54..a61229326 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,57 +8,65 @@ 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 5a42dc9cf..9437e809c 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,57 +8,65 @@ 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 44d3c72f8..f057f3b1c 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 23a395ee1..ba45672d6 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 c0fb16314..182a873aa 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 32950e329..bb62879f2 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 fc0f76e86..01e34d92a 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,31 +11,27 @@ 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 0bb16d143..1345810ac 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 ff22bf71f..4f4a44389 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 dc32174b4..eae012d63 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 61c6c6369..56521db0a 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 503ca141e..5d7a68dcd 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 af1438ba8..e6011f8d3 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 eb862fd33..625dc68de 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,31 +11,27 @@ 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 7f840db50..36d2d44bf 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,3 +26,4 @@ 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 888e62fb1..1b48592c9 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,3 +37,5 @@ 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 ed1059c68..a7b755444 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 d49d7c709..db9f99a70 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 47685eae4..4f572b14e 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 15a35d0a0..ebfbe5d23 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 bf5563312..5d1bf5bfe 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 48bfbfd6e..a6d56a54a 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 c0f0606d7..bc3778df1 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 03ca6fbcc..53e4e3884 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,12 +14,10 @@ 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 820956ed6..da3f46fd0 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,9 +9,7 @@ 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") {
@@ -24,7 +22,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 d301fb5ec..09ba92926 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 69e429931..02fe89f79 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 d9241c2ce..1a71e961e 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 f0dc0a615..8a99ff966 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 21090a7a1..6d9cd33c8 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,9 +9,7 @@ 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') {
@@ -21,6 +19,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 ff1c17d8b..0b2304089 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 0d1d4a3bb..9621af10f 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 33d4117cd..27fa0b2b8 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 a55517655..16b04489f 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,9 +9,7 @@ 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') {
@@ -21,6 +19,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 223566efc..c41c5b646 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,10 +19,8 @@ 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 de23e0a57..49a0d680c 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 a19658eaa..9e4739970 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 6d45592da..5666f47ed 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 f2ca067e8..bacba29d8 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 9d073d215..a54cffbef 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 754853b21..f6845dd28 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 c04305b17..36b2fe8d5 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 b2835a9b8..ccd859a6b 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 1740d2fb2..ef78c47ba 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,9 +9,7 @@ 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 58fb4f0b5..20dcf2ab4 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,9 +9,7 @@ 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 2321141c2..b6676e112 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 a0bb96454..ece80f456 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 f2cdbfbf7..dd35d07dc 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,6 +21,4 @@ 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 a4cf47654..f2d898fa7 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,9 +14,7 @@ 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 a1aca13ca..c1904f5e7 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 5b4a35edf..d70da9bcf 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 8210a7d3e..e79b57a34 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 f3238f139..247ad06ea 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 c84eeeed5..7e39823db 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 9515740fc..0cf324997 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 ec8809219..658cf0e17 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 722d6b38d..7e5572401 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 ae1d15c91..188734c9b 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 1ea06e2c9..0d4e8ec8c 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,9 +9,7 @@ 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) {
@@ -24,11 +22,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 23f73a818..45d034977 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 537ed6e54..136338da6 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 cee0898ba..b7e307151 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 663f1eaaf..0b7564f50 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 cdff0f5ad..0c72e3283 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 b8bc45d87..6cbac35e0 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 b52753539..0c10e8736 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 7421de20c..36e813e8c 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 a303eafc9..f6ff7e642 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 566177e3a..b6c19d4a6 100644
--- a/test/built-ins/Object/S9.9_A6.js
+++ b/test/built-ins/Object/S9.9_A6.js
@@ -9,33 +9,31 @@ 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 625669111..dab26f33f 100644
--- a/test/built-ins/Object/assign/ObjectOverride-sameproperty.js
+++ b/test/built-ins/Object/assign/ObjectOverride-sameproperty.js
@@ -7,13 +7,7 @@ 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 8621d75dd..49ade3cb5 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 cb0f60a8e..efe94452e 100644
--- a/test/built-ins/Object/assign/Override.js
+++ b/test/built-ins/Object/assign/Override.js
@@ -7,9 +7,7 @@ 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.
@@ -17,15 +15,9 @@ 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 b41e102fc..8e8da3d2f 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 9989bb209..eae453e21 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 78e006461..fe2a8adf6 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 457190cbf..d41c4ba5d 100644
--- a/test/built-ins/Object/assign/Target-Boolean.js
+++ b/test/built-ins/Object/assign/Target-Boolean.js
@@ -7,8 +7,6 @@ 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 07223a7e4..d5eb7803e 100644
--- a/test/built-ins/Object/assign/Target-Null.js
+++ b/test/built-ins/Object/assign/Target-Null.js
@@ -7,8 +7,4 @@ 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 0dde68edc..0971ca3d1 100644
--- a/test/built-ins/Object/assign/Target-Number.js
+++ b/test/built-ins/Object/assign/Target-Number.js
@@ -7,8 +7,6 @@ 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 2aa73287f..d3ba7da0f 100644
--- a/test/built-ins/Object/assign/Target-Object.js
+++ b/test/built-ins/Object/assign/Target-Object.js
@@ -7,12 +7,8 @@ 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 0ecbe714c..2adecfb31 100644
--- a/test/built-ins/Object/assign/Target-String.js
+++ b/test/built-ins/Object/assign/Target-String.js
@@ -7,8 +7,6 @@ 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 0917822f4..2c24f4b50 100644
--- a/test/built-ins/Object/assign/Target-Symbol.js
+++ b/test/built-ins/Object/assign/Target-Symbol.js
@@ -9,9 +9,7 @@ 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 03189f177..9df5bee10 100644
--- a/test/built-ins/Object/assign/Target-Undefined.js
+++ b/test/built-ins/Object/assign/Target-Undefined.js
@@ -7,8 +7,4 @@ 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 6cb22e25c..ba9dd0fbb 100644
--- a/test/built-ins/Object/assign/name.js
+++ b/test/built-ins/Object/assign/name.js
@@ -28,3 +28,4 @@ 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 cea4275b9..c6b7297fb 100644
--- a/test/built-ins/Object/assign/source-own-prop-error.js
+++ b/test/built-ins/Object/assign/source-own-prop-error.js
@@ -13,9 +13,7 @@ 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 ad4b9704f..4d751c595 100644
--- a/test/built-ins/Object/assign/target-set-not-writable.js
+++ b/test/built-ins/Object/assign/target-set-not-writable.js
@@ -21,7 +21,5 @@ 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 8aec2c095..b235b983e 100644
--- a/test/built-ins/Object/assign/target-set-user-error.js
+++ b/test/built-ins/Object/assign/target-set-user-error.js
@@ -23,7 +23,5 @@ 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 93e026783..dfec56794 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 d15171aa3..36226f322 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 5e88a60a5..2a8aa4b63 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 c748a5f1f..e33ef8ddb 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 1b44ca375..645c0c974 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 4b340210c..a9a8c7b83 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 a3687ef84..d853baffe 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 94e4050b6..a63a939ad 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 cbcefe768..be6c0fa63 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,19 +11,11 @@ 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 55d42da32..b62c3b3c4 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 d219852c9..17f2ea33b 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 84bcf29eb..a1aac19d6 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 88aebe8b6..d8fbe1baa 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 cd95c4308..6217dc79a 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,20 +11,21 @@ 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 1d9346fd8..8505738f0 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 fbd5ea25b..afff08cca 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 b96690f70..721181e09 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 0f1b7c646..696cf4410 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,22 +11,23 @@ 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 bd69f790e..af1168978 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 c8e9df1d8..c744dacb9 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 7f997a244..4dbd85f61 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 0f45922d8..12e0454de 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 523c329b8..2acc75b9b 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 e698085cf..81b491fb2 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 2708a2dcf..26b9e8698 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 31e69df69..6ddb9994d 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 959214dc4..d7ad3da62 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 30ec5cb10..861bd8b65 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 4f1723e21..0def02aaa 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 07a0c5613..7fcd8a59d 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 8b26b7a59..2d92b08bb 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 0050973e4..fd7b0a164 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 c0e966771..0ca99d135 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 2bb11aab7..5e9ebc1be 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 08a36f4bc..13d7609e5 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,18 +9,16 @@ 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 595dacfa3..664fdd276 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 1ea05541e..9109a0ca0 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 4e100ce38..03d1db1eb 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 39f7fc359..f66387a56 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 c8a10125c..3d0500799 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 14c74b047..11cc44982 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 41bd013b7..582f529fd 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 83769b6ca..7bada285c 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 e855085d7..a4fdf40a2 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 15f848797..0377fd5f7 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 2a06c3559..cd3482627 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 a6de3a3d7..e74cde5e4 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 d675ebc24..7b4d6b03f 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 bb2ea1bfd..c00e28b6a 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 ba189488c..884d3f95f 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 c08906457..2a8115615 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 297f6d4cd..f821b6172 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 13945c1dd..91c6fe65c 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,24 +8,21 @@ 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 6157350c5..c4407af61 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 c421aa649..9ad3bb849 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 eac935f59..706c93be6 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 fd08e43a9..2c13898bf 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 0a5e3ecc5..a77690f05 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 fa55b5b90..59b7607b2 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 049de634b..b187b2c79 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 014dd54d4..c5966f17c 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,21 +8,19 @@ 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 ac9616597..d5b9cd927 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 6497f5171..97856238d 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,21 +8,19 @@ 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 9ed32d00d..a39b6ec1a 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 897b65106..0652a29d9 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 df9898760..d10a65491 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 87f943344..9e468d7d7 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 95975d00b..6d173dedb 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 37fa24eb3..9da761bcb 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 f3a2f4ce2..7161dc784 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 7c587f7a3..4a8fb1a79 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 de5d28109..1f31f645b 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 c23265613..4ed1f46a4 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 73880fd38..7916c17fe 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 fae08097f..692a8589f 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 637b2c0ea..ad384083c 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 70c676c9d..ec528e311 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 4dedb1f63..2f3d0e80f 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 a4d92bcbc..d3a0f706b 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 f5342706b..df8cb009b 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 d5e05f8a8..0e844df15 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 84ce5be59..2f4959e6c 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 67c5abeb8..bb2fd7d99 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 9f649ef30..529e7b3fe 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 e483b13a4..8083d035f 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 308b568a2..b3c650792 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 a603d0dff..7dce49956 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 e2ec0f839..6b467c8b0 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 d44156cc8..01a704169 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 4ea8dd8f6..49aabea53 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 e1adbd723..ef17be9ef 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,14 +9,12 @@ 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 5b9d67cbe..58825c2a8 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 e2ce679db..d07158967 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 1c71b6ebc..cde7f79f2 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 9096b53fd..4bd85b5c0 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 ccc5f3940..3f335be92 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 036f352af..dd7c4798c 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 7421e6f51..aab02965a 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 5d35785a0..abd7e52bd 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 c87b09d6e..fdc42d8e6 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 9798108c0..e1152493b 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 d72fadb91..38eafffcc 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 9410fedc0..4419c8873 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 25ae2dfc3..46aef9df2 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,16 +10,14 @@ 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 1f4ef0c78..0ff9668f9 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 b2d519292..dce154b89 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 a2d96068e..b58182e55 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,21 +10,19 @@ 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 ab546cbf0..974137f75 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 01ec48139..6adc60591 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 5736037e6..a4c1d21ba 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 cd2347e58..55fb8cc62 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 3995d3864..75defcd96 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 38ce45508..4a10a2d35 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 fdf8704b5..826b411ee 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 c1e428849..549af5c86 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 2a9ed8b67..b0d111992 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 080865960..773eec561 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 a0c5c354c..5a158b32b 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 2f5badee0..f5583aafd 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 55d89504a..205a6f616 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,21 +9,19 @@ 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 02121c841..2dd103625 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 26bd33b2f..c887e94ef 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 62ef93115..64db1e0ee 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 aa4244002..4f4250068 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 e7b26dcb0..96aec2071 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 393433939..94ac43212 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 c7f0534cc..1c256cfe2 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 727d04f5f..178b2dcf6 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 dd792fb50..3fb67d967 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 859704cac..72da9c9d0 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 8f2ec73fe..b68ad748c 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 4a6cedb23..69ee1f25b 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 1e18925d2..9e82743a1 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 85825fb99..0a5b0e187 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 3388d3869..eb3b062e8 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 5aba7363a..2bab6a186 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 96b727847..64a7de9c3 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 13da7f701..6965d7881 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 0de4cee28..3ee831a57 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 c26e1170b..7cf13ce5c 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 80789555e..d380fc50c 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 2f03b51e3..28e848af1 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 7df7e01fd..5a7b95b49 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 21ec7f049..e5e392749 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 65b98ccab..5c428978e 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 5836e8c5e..25f359e78 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,18 +8,16 @@ 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 bbe28fcc2..6b8ffee24 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 b3baf808b..b4ed3b4ac 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 9dce4997c..f7ebf041f 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,27 +9,25 @@ 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 7741e30f6..392cacd8b 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 5228e544f..d758b8a8d 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 1c0eca86e..f7edbce48 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 f9b8addaf..d0f6b3979 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 84cbca969..6d53c01f2 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 b900beba5..67474ae09 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 7a559dd09..dd0bab3da 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 b0dae46f4..9ff6e5ec1 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 b9e656c9a..bd1d72427 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 b15bd2eb0..33af12730 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 2388668b6..3e9958961 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 30e9186d0..82839e1df 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 b3bf67ded..a5621412b 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 bad9246a9..ceca51dcc 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 f18c3865d..05b2a2014 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 cc43ee0b1..d1c448d76 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 0c3a7f11b..98bdaae83 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 bc93c97d2..83543f250 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 a13afb818..2307c1f41 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 a1ac6c835..441c41f6f 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 afbf4ec88..514416040 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 dd0d7abb4..d4aa1a079 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 1d3ca0e74..861c07e15 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 a94cdb032..eceff600f 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 96441ccf6..e5cd76b90 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 1adfcf355..06515f7f2 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 17708dec2..e315a8ae4 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,16 +9,14 @@ 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 6a008d56a..1fb8acfc8 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 00e9fd1bf..ca56dae00 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 8adec71c7..e20c4f14b 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 9546d55a5..f4ae695fa 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 d7f814f30..90605aece 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 76d525ff0..031bdfd56 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 987227bc3..8a7f3f955 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 2736a816d..f02da1a38 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 eac85ecd0..36e92fb03 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 a52a337ec..7711341d2 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 39336cdc3..b631d8719 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 16dcec95b..60f58383e 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 b10039dc2..d09f86e98 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 116c6961b..913f3b4e1 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 cbf40fba6..229ab9928 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 53a136202..81e2538bb 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 d26d4a51d..210068b1b 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 110ab43e9..4d274295a 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 7172878c6..38d4b172a 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 6a1ae3a29..3db96d6f0 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 c4f80fded..da31aa0b6 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 d62abfeff..32768a89c 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 feddd569f..a90edec9a 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 cf8f31431..6dde3c534 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 447cbbc96..ad5b99f6f 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 8d5d2621f..870f30857 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 1714c3d58..e21b55dff 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 ffc1d532f..88805140c 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 17a6634c2..16bbd2655 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 c0581d999..58777acf2 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 04a3b4b42..1bf31557b 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 faf579591..15e839baf 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 6b86ddf6a..6057e68fb 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 8e52a0aab..1db623aa7 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 204be5072..f14ebb667 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,23 +9,21 @@ 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 b840b79a3..bcd6fdb51 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 33c423a27..b412aa9d0 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 5f18a390e..a13e18d5b 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 ca1d2ed80..b5141d316 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 e383baec9..0253d46f9 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 5d27c9b84..db9776e03 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 dc615210a..9912d0806 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 36a3c9acb..0365a10f8 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 2b680d63e..e47f6121d 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 592654ea1..5d998fb97 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 f8d67b7f9..13b59d8af 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 c261cbe15..4e350f9e7 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 a7f9180cb..41acad4d2 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 8fbe8eda1..9d9b0dc59 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 365fc271d..459a8580e 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 c0ae83d2e..bae6d8dff 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 360854265..225047a59 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 a4fbb8236..328c209d4 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 fd79b1d4a..3f9e40703 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 ef8c63a26..07980d287 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 a9143455b..98930055a 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,12 +11,13 @@ 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 7bb081770..45044ed2f 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 33fb66612..e61fac09d 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 fa6f42a1e..c9e5b2cf4 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 12f4b4e57..d6e54fa17 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 9ab55313b..0a0d7f57e 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 d7e7c5964..7fd8b2b12 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 d4bfc58cf..096ac14ad 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,28 +10,26 @@ 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 2f42172f4..bc43715d4 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,32 +8,31 @@ description: >
numerical names (15.2.3.7 step 7)
---*/
-function getFunc() {
- return 20;
-}
+ function getFunc() {
+ return 20;
+ }
+ function setFunc() { }
-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
- }
-});
+ 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 1f940b5e7..2e4d7c436 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 3bc37eca7..28684d926 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 c2d007dea..33bf19e07 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 2a7a7664c..effb3e92e 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 5e11b46b3..f11823460 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 ba4098ae5..dcef0aea4 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,19 +9,16 @@ 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 50cd1a2eb..b0ffcabf0 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,15 +9,13 @@ 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 7b644636a..6bd0d2a9a 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,25 +9,19 @@ 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 852786420..5cf42f78e 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 2cc93673b..91c14b190 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 b7ecc9285..d74dd58cd 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 6facce654..424a2be66 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 e8ea28ed6..f3ca54ea4 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 1f2f43ba9..18073ec96 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 1c76337e7..653c33ccb 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 2e8c022ec..b0bc6c13b 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 2fa461678..1fc56ec9d 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 390d8f526..5c4b6e0b4 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 a829bdbd9..77261ab26 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 d599cb116..f348366e0 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 eec68263f..72e4b5269 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 593b35ab4..88e7e2778 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 91a8e862c..66d732240 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 504ad406e..46ae8e51b 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 f04ce911a..1ca9d8db5 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 9c6e201cf..3111507b4 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 d0fb5995d..1d71a5d36 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 217831b9c..d39fd5035 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 4e91fc6fa..2054d70d5 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 00ea9000b..0c85eb4e6 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 09df5f96c..d216b379a 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 cd92635b7..06cc1e975 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 293d2886d..5bdb0912f 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 79b165669..cd237f4bd 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 3a4cd5862..0af44b539 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 52b6a9b30..dcb8a6f23 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 d0761a6fd..d4e700a4a 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 66058d213..3a893bfc2 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 d054525f7..c9daddf94 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 8c11147ab..6a1c26234 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 78b361b4d..59f418322 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,20 +9,18 @@ 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 f6ae81d93..daee331b9 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 866b12b2b..2d6ecb8dd 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 b7a5491d6..46c315745 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 0ed2539aa..b67405d35 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 8b0934415..6971654ac 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 c3546aba7..8c69638b0 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 269796c4b..3924258d3 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 bad5567d7..c3d8cb290 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 34ba24c02..1b85d21f9 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 be16e9002..472f164d2 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 4ef160b83..d87b1b6e3 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 d0bfc0567..84207e382 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 2e0270763..27f1fde73 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 d275e9bb4..c86ae44b3 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 32c0cebc1..d0a69d948 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 09f5f79f5..c0721deed 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 7afe54587..b7aa0da3a 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 5c88021eb..d089bb611 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 bb363c4c3..d31f4e86a 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 deb4b0d8b..83e38608f 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 2f17fa9d5..b8c211e18 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 36682e2ea..564f8ac0c 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 b953f2f2b..21fc225b8 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 4d6e1ea42..c9ea3746e 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 3943f2353..535b22ee1 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 b2713f7d0..1ac6ded11 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 8b53b8303..4f33838fc 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,20 +8,18 @@ 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 c564ef7ae..8250c6f28 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 0acd1124b..86b471b8c 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 74b55f635..49b6b8214 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 59e1a1880..cff852151 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 2768ba555..9bb699700 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 96e829390..6bf9439ef 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 f18488819..b4eae1229 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 211adc261..0974b1a06 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 06c6cc73c..673f98608 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 41a1e98e7..c6b27773c 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 02a5807c2..4f8ca8d07 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 a9e6b3cdb..87ca4be77 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;
+ var obj = {};
+ var props = [];
+ var result = false;
+
+ Object.defineProperty(props, "prop", {
+ get: function () {
+ result = this instanceof Array;
+ return {};
+ },
+ enumerable: true
+ });
-Object.defineProperty(props, "prop", {
- get: function() {
- result = this instanceof Array;
- 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-11.js b/test/built-ins/Object/defineProperties/15.2.3.7-2-11.js
index 6ac6227e8..49e5f4208 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 103a8ea8d..83f088938 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;
+ var obj = {};
+ var props = new Date();
+ var result = false;
+
+ Object.defineProperty(props, "prop", {
+ get: function () {
+ result = this instanceof Date;
+ return {};
+ },
+ enumerable: true
+ });
-Object.defineProperty(props, "prop", {
- get: function() {
- result = this instanceof Date;
- 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-13.js b/test/built-ins/Object/defineProperties/15.2.3.7-2-13.js
index 35ad5d75d..bea1c4158 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;
+ var obj = {};
+ var props = new RegExp();
+ var result = false;
+
+ Object.defineProperty(props, "prop", {
+ get: function () {
+ result = this instanceof RegExp;
+ return {};
+ },
+ enumerable: true
+ });
-Object.defineProperty(props, "prop", {
- get: function() {
- result = this instanceof RegExp;
- 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-14.js b/test/built-ins/Object/defineProperties/15.2.3.7-2-14.js
index 0196e7406..4cb5a056a 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 974c0a973..9a69dc5c2 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;
+ var result = false;
+
+ Object.defineProperty(props, "prop", {
+ get: function () {
+ result = this instanceof Error;
+ return {};
+ },
+ enumerable: true
+ });
-Object.defineProperty(props, "prop", {
- get: function() {
- result = this instanceof Error;
- 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-16.js b/test/built-ins/Object/defineProperties/15.2.3.7-2-16.js
index 2d2138c99..702db6f17 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 b95a3e235..e36e3f666 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 0d3dea7b0..5366c8b9a 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 ca7acb7fa..828a76bdb 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 3c3a45bdc..6b5e9f202 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 c5de32012..ba0c4c8ce 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,9 +8,7 @@ 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 a27b7f4b3..c18fee56f 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;
+ var obj = {};
+ var props = new Number(-12);
+ var result = false;
+
+ Object.defineProperty(props, "prop", {
+ get: function () {
+ result = this instanceof Number;
+ return {};
+ },
+ enumerable: true
+ });
-Object.defineProperty(props, "prop", {
- get: function() {
- result = this instanceof Number;
- 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-7.js b/test/built-ins/Object/defineProperties/15.2.3.7-2-7.js
index fcd9bc721..169fbe906 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,9 +8,7 @@ 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 62e50e5b9..f880ec47a 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;
+ var obj = {};
+ var props = new String();
+ var result = false;
+
+ Object.defineProperty(props, "prop", {
+ get: function () {
+ result = this instanceof String;
+ return {};
+ },
+ enumerable: true
+ });
-Object.defineProperty(props, "prop", {
- get: function() {
- result = this instanceof String;
- 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-9.js b/test/built-ins/Object/defineProperties/15.2.3.7-2-9.js
index 0d4cd7b7c..16acd8a06 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;
+ var obj = {};
+ var props = function () { };
+ var result = false;
+
+ Object.defineProperty(props, "prop", {
+ get: function () {
+ result = this instanceof Function;
+ return {};
+ },
+ enumerable: true
+ });
-Object.defineProperty(props, "prop", {
- get: function() {
- result = this instanceof Function;
- 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-3-1.js b/test/built-ins/Object/defineProperties/15.2.3.7-3-1.js
index 482305d74..c6d7775e2 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 56ec632a6..3b32199bf 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 26cb92f2b..d4dc3cafc 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 a7f5b3fcb..bbafb06c9 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 eba9a4daa..40efb3be2 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 d2ad59b0d..7efb02f66 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 65c83d741..828fd9d14 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 64808eae6..33d3a9f85 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 1df310470..eb800c8e1 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 7c64562ae..a1bfc9a68 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 1b73ab286..8a7abc5e9 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 014b19296..f13acf2b5 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 bf4aaa78f..22ea0f97f 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 5d91d5840..a5c31d9bb 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 534964790..07dc678c4 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 1a3215844..2363f6785 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 a6022defe..5d2cba017 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 0e709cf85..9cbd29821 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 b1d39d8e8..ce3cae1f6 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 df6c63c75..79180ee5f 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 eac8f218b..f25ba775b 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 2ca106448..9516041f8 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 8cb526c35..a08c7d71b 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 4172d63b7..76d2a34a6 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 c394944d8..679a4acaf 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 0717a78ad..7eaf6bd16 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 92b92c34e..2161abbeb 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 1c7424996..931dbcfff 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 0696cef21..8fb9548c0 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 db8215422..74577f689 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 4a1ab03d5..dce33a54c 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 509aa4d1d..7b2464f4e 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 54061c8ad..a45f02039 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 d02aa0cfb..2d4540410 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 d9f5f2436..68bd1992d 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 2100bf806..4a99de902 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 3204be998..c7fe92461 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 4f7e59769..bd7381728 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 f80e6667d..60cd9d5f0 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 63076a932..900faf15c 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 86c1b279d..91a7cd1e9 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 a4350ff1a..f053943dc 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 05a4bbeb2..a1d384f96 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 543d649bd..57270ab35 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 d3e3f1df4..56c96530f 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 9128a4dac..981841728 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 b3f4d6e7d..3bb8efb11 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 377de2f55..d093f3e5e 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 9e5d68fbd..0bbec160b 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 119815eb0..3862ad1c2 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 a03009b31..2092ebed2 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 9fb173c87..983674ece 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 b861fbaac..0a4c48f91 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 065846ce0..7912b1555 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 bdfc29b45..608948206 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 4ef78bad9..a46b6f6e0 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 3ea1c53be..0d7d1b807 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 d567ff22a..fd46216dc 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 455e6ecc5..e841730be 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 14edec2a9..75eb5a7de 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 a10e3a907..edfd9426f 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 cb7be1428..61e00df18 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 48f2701b8..75d124af0 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 bf16fc4de..1030ea5b6 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 5e16d72e4..13b2ce71f 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 211d5b200..db7177f09 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 38655acf6..3f8ddb587 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 f7f187621..c7f832119 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,9 +12,10 @@ 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 c5817704c..01f7c1737 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 73ef83af8..da4ca839d 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,10 +12,11 @@ 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 203fa2551..05f254dfb 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 43065040e..3d319e4bb 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 7c4bd1ade..64da944b9 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,28 +12,27 @@ 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 7342ee90c..80575a3dd 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 39364f00d..0f311be2b 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 a3cf7d943..86aba4c5f 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 3e3142136..302bf7a6f 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 5dcb1f264..45e785054 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 c87263952..945010451 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 3371b60a8..7acb69ba8 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 63ca7a036..882c0e852 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 1a3d1598e..0fd11782e 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 bf2af0539..1f2af9b85 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 950abea99..f6d920c94 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 028fcbee1..fdcedefc1 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 a51c6f1f4..31758d4e3 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 deceb19f8..c578ae4f7 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 7e4ab1f8f..d8c78aab4 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 c586bddf2..76b0daa55 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,8 +17,9 @@ 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 d13ecf6fb..9bd06f4ef 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 0bfdb3473..b7a6286d6 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 517ad0fbe..800d53d65 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 a3048ac30..cb7960448 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,15 +12,16 @@ 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 c029c8c73..0cf594b05 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 8d99816a0..7d93f439e 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 84d38c866..bd1610aa7 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 e3a0e968a..1dfa84151 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 e3361c080..bf9e5ac37 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,10 +12,11 @@ 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 f1fb979e8..90488b012 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 9d1e031ab..3b33e4782 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,10 +12,11 @@ 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 67df372e7..10aeb9376 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 0f0e05fe2..b7a2cf5a5 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,10 +12,11 @@ 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 a61ec4f20..c828a02ac 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,10 +12,11 @@ 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 ad3898e77..adbe19cbc 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 0c6728b25..019ce3f20 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 a67609cca..259a2948b 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,10 +12,11 @@ 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 cb4a16a29..6d3ee51c0 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 d188cb9a1..23b0377fd 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 619619a44..6434bd5e6 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 9d9adb525..952b57cd8 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 4fc2e2ede..ddeb6b920 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 78fcee288..44323283a 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 525c8ae3c..8812433df 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 94b32d4ae..d3611a335 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 8563d4f3b..4d8cb3ec9 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 223af3f11..0127529df 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 013fe4fde..c7d1069d0 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 1dadf7f4b..5f69925d0 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 3ce2a2cd9..5b9d21e6a 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 7c21d0311..93da155d8 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 14aeec5dd..3cce69156 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 f35df834d..8d08b9bf3 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 95170617c..693beb411 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 d502222b0..623b6e111 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 0f5a1c6ab..0b5ac282c 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 140bed063..e6910e88d 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 99531a4b0..d38ac2dce 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 586acb78d..6931583a6 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 bd562d76c..25abe43bb 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 6828cb641..e75e2a810 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 18ef102f5..ad065ec41 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 2c3cf0a1d..3cced9703 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 156e9cebd..c7fa6e5ea 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 9b0f3d3aa..77fa9fd97 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 34d8e72e7..683fe441a 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 5777b8c2a..b3cff0d0a 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 2a80a4665..1615f7be3 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 ee493da54..2cd46064c 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 b8cbce77f..c92704618 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 eba777f18..5c2468064 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 53fbe1f63..2f1bceec8 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 8e22fc44e..d0914e4ce 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 c49f295f5..687a062c8 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 88cb8ea1e..a4dec6de0 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 f103f0d99..bc0dcad7a 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 f49214a03..6a7ff611f 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 7630822e2..2ae4481c8 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 34af6cc3e..75f7d4a49 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 40fc4c607..add8aeee1 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 63d81384a..862bac611 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 25363284b..26f4eeb5b 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 8fa141a7e..06f9e3e49 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 5af8d0275..391538ddb 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 b74681d94..adb34766f 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 2806a23d7..84dd886f1 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 f508b1465..d684f624d 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 7ca189288..982cddb9b 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 6905d2d7d..57e21ef35 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 7fc6d9c5a..74e72ca9b 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 86b207273..da6e91356 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 4100de611..c7f08514b 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,4 +25,5 @@ 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 ac5080da9..28010e240 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 46e1b3bd3..5554bdbc3 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 1dac44959..57d4230ba 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 892b35b12..b15fbd6ec 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 248fa97ad..082f642f7 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 fd72ee008..74230afae 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 ba3faea40..613cd5dec 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 9d6d288b3..323f7f972 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 72caa7243..e98a8856e 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 e0632b5e7..3c5f3888a 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 5ef60526c..cd17ab0b9 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 9d10628a1..044694163 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 118cc7af0..fbdd5fe22 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 9495abc63..bab103cc6 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 d1ac8ed46..62895cd66 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 bc61c54f3..d8df00083 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 3e4d4117f..10187cbb8 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 6ef7c239d..56bc91903 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 bacb037e6..5324d0334 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 a8d8f226e..b6c0da717 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 af68740f0..3e0f737a2 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 ba64235fb..c0815c7b0 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 62eacf536..20779fb24 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,28 +9,22 @@ 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 8f4872780..f09421051 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 2492ea6eb..01e17e58b 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 bfbc5cba0..5003f3e48 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 1859b0d61..e35a948b5 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 45c770645..11d390a2b 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 f9854b10a..acbcc7ed2 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 30610bf59..85e6c6b88 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 716a52957..848af0730 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 adf18c55d..cdf054713 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 48eef7429..3b9c9f2a6 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 e1eb3ad6f..f0fed05eb 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 5813bf1bf..5587e1765 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 04908eec0..1587c5de2 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 6fdda0cbf..945e4a276 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 da7fd3915..900b3b090 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 855fdb9ee..ab347d29b 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 a0c0da3e5..473f0ef00 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 5a685d85e..cba662cf5 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 d6b5a3eda..6fa274f40 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 b7056d743..4d8a33928 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 a1e75b530..919b4258e 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 d66f3e09e..8a8d9568a 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 e4b76b595..5ca9aaee0 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 e5714b54d..b5804ca84 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 b8e53420a..4768009aa 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 ce9a34971..1429ef412 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 762fd8ec3..451a7794d 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 8c764e415..ee430f83c 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 8e25fa5a7..9a9c3a557 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 798a60df0..f5986377a 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 9a74d14f4..b36a0fa72 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 176abbb6e..7b79f6d81 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 507b5c814..d76bdf16d 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 1195c7e9e..952f524d0 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 ac8eb96f1..df7e53b1c 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 7075fa2fb..fdca287d0 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 7c70e64b3..a79b3cd31 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 48c40d9bd..cbf2194ed 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 43bbef150..27a60e51d 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 7f99adc4a..0a9d41888 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 228b1d019..6ad0a15cd 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 49c821968..b2c580c1b 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 2914a728b..9136dc45d 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 5362f99a7..8ef7474cb 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;
+ var obj = {};
+ var accessed = false;
+ var arg;
+
+ (function fun() {
+ arg = arguments;
+ }(1, 2, 3));
-(function fun() {
- arg = arguments;
-}(1, 2, 3));
-
-Object.defineProperties(obj, {
- prop: {
- enumerable: arg
- }
-});
-for (var property in obj) {
- if (property === "prop") {
- accessed = true;
- }
-}
+ 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 131d8b40c..aae77824a 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 5861410d1..4c796095a 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 0f0171055..7f3278392 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 864ca29da..cc8495057 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 0183f9412..147b520d0 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 f8bba3918..80c2a5db1 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 f2fd420cf..3db823b9d 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 f21405565..ba84be285 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 a369fcef1..2978706b4 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 f7c555bba..b5257eddc 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 cc9a8c9df..ed481bf7c 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 cca4ddea3..fe7272240 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 2b6557a0a..77278e6cd 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 45739752c..9001883d4 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 3b5a9ec03..00e4a9820 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 f5f2bdc5f..afbd90c14 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 2d12bf1c4..148454b1f 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 58905fa9e..47b64cb93 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 35d7545ca..ad903b294 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 923d90277..3687f4416 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 b891e55f0..03d2e2f88 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 3052a4e47..8b20c3bbf 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 d158fcb8a..05bd0876a 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 c498f4d9b..44f498425 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 6fe2d9e0b..9b966b7c2 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 f7566c1b0..47be8aae9 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 b5945f326..3c4d2415f 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,21 +8,19 @@ 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 6f7747efc..99ab9c525 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 848aa0a47..08b5b03fc 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 21acc1eec..eea14bf01 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 818aa68c7..a662240fe 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 7a474b608..5e1dada7b 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 29ba52b31..c183338e0 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 b60113a8e..968960c5e 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 e6517a31e..a0a3e9f9f 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 e4641b79f..7a6bf9f15 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 c05d12bd6..7aa7a3ace 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 0a79e7870..29c4381b0 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 d7eedac45..ee8de8ca5 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 bba7b7065..740063a78 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 5e611f0af..7eeee70d4 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 5fe27e730..384aaca35 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 1afd1a598..484c74cef 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 8b3d12915..991dbb9d8 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 ccda98869..1a96f98e6 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 87e2578e3..63ccc0d77 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 836db8a7d..105d97478 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 6cb3dfbdb..e282f5607 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 c51406543..ed64214cf 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 550966238..2b9e962db 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 78710b6c1..3dc962b7d 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,28 +14,27 @@ 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 b1a52361c..6380660b8 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,24 +13,23 @@ 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 7636e1ed3..bc9eb4e89 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 ee6c4afaf..1492ad4ab 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 334206b66..54713ca36 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,47 +8,45 @@ 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 7f7efb05a..325c9d5ed 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 36387ff35..e87e8bbe0 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,24 +13,23 @@ 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 5f19489b0..a848f6f98 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,24 +13,23 @@ 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 1eb1ff342..73cafcb44 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,31 +14,29 @@ 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 fc8f60d3a..2909b6d86 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 70616a1a9..2d6dd716a 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,26 +13,25 @@ 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);
@@ -50,3 +49,4 @@ 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 6f25f5041..41a28895a 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 04e0961d8..e22b9a9ea 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,19 +8,17 @@ 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 108151ec2..e9286e341 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,22 +9,20 @@ 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 3d5a76ff0..e89046cad 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,12 +12,10 @@ 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 f696eab09..33e474f2f 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,12 +12,10 @@ 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 e5b536727..75bde091c 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 8a9aeec7b..4c300f6d7 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,11 +10,9 @@ 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 2af457048..ab0fecce7 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,11 +10,9 @@ 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 7276c22bc..95ab99ed5 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 8e50d51d0..e249d698a 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,15 +10,13 @@ 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 62e92a46b..c6c089f33 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 6c5edbb40..f5d279022 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,9 +14,7 @@ includes: [propertyHelper.js]
var arr = [];
Object.defineProperties(arr, {
- length: {
- writable: false
- }
+ length: { writable: false }
});
verifyEqualTo(arr, "length", 0);
@@ -26,3 +24,4 @@ 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 0ddd7d8ac..2c62ae0e9 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,12 +9,10 @@ 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 537afaa85..ff7a58b01 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,12 +9,10 @@ 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 1ac2b4e76..f91cf3bb3 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,12 +9,10 @@ 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 dc155dba6..50abc6041 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,12 +9,10 @@ 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 20c7a54b7..d3f8838af 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,12 +9,10 @@ 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 cd96fbb77..a6d959af0 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,12 +9,10 @@ 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 153b3e836..23a8af3c3 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,12 +9,10 @@ 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 ccf5343c8..23a5a1f6e 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,12 +9,10 @@ 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 b1b51dd59..e432de73f 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 ea15dcbf4..072e438a7 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 c1323e470..ff246ba32 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 4e8941b57..ada55d4a5 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 456ca93d3..16015d3bb 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 a6dc04cf2..c5c56bf55 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 7ff543c69..c9b787f8d 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 87d7bf692..5f9b707fd 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 2654f5126..1613213e8 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 ac8e062b8..ebc116b2d 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 c3e14cc13..26485cc64 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 60f77a8d1..1239e6adf 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 a07faad54..fe0134274 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 81bb4fec3..ba7093b93 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 d65aac4f4..ae2debbf9 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 274003360..be1c55b0b 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 b159518ae..0e13bf117 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 92cf90034..d724d2d0f 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 bfaa2ff1a..d63b5611a 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 a4e2b52b8..96214d41d 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 ab4cf6864..0e9d72a6a 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 5b092a84b..d70d2214f 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 e06e22eda..c509c5305 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 510ef8b41..8a899c662 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 7fd3d267c..7f6dc1136 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 c9ca3eb24..090d2e650 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 30326c0b7..bf9c3b8d1 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 ff368c41c..fddc31217 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 b31bcc2af..b765653ef 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 fd2f95996..f2bd0349c 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 4e26d7c43..c3fece46a 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 1ac667a0a..c98990822 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 21fbeacb8..51e462ce4 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 61769efc5..450bba1f2 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 2d54c78ac..a3eb0b4b6 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 88a9d623b..94801d363 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 5b53ce3f7..264929a73 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 c84659c61..40756f8da 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 af2cbd543..ea479bad0 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,20 +17,21 @@ 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 2234686ce..6d83613b9 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 2c08f8a3f..a6bd8e38c 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 5a5d04235..ac2bf4417 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 0692d34d7..c93f4a78e 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 0fc11411b..0b72ac3d6 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 e3ece34fb..43bc0511b 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 108d5e28e..bb5450464 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 8907e2757..ca3db2cb9 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 a2c837074..938699559 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 de0b12fe0..0664450db 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 80c672016..569dc35df 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 970f0e6b2..c4a266ad4 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 228c529c1..e5c014707 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,23 +17,24 @@ 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 6af474432..57fb6e284 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 3b4dae0d0..3beabc6fa 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 4da0d9d1f..7fa434696 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 fdba2202b..57026dbdf 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 85f89a62a..1e2c4de0d 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 061fcc241..a04bc26f8 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 8b785e358..53f196422 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 618a11bb0..fc8c6fa11 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 05c864486..3fe016ff4 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 04268e171..3698753c5 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 1421ccc13..e5f5943f6 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 b19e15195..239da3b32 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 0d7c7939f..a5895c270 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 b9daf11b0..43dcd4991 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 262f370b7..255d3fdc6 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 7d18bc591..7ecdc01b2 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 e084173ff..c074029e5 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 e561d95d0..5c064cd64 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 cfa67482c..1f6f92161 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 e52aa66a3..7241a38ef 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 13ef4b2a9..f787b9c7e 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 bd8358cec..4d826caed 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 d2a90405a..20bdac360 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 e6ee90417..2d19fa185 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 2800e7da7..3be40ccde 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 037a2eba3..4565c67a7 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,3 +33,4 @@ 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 2a6a08acd..c6256b2e2 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 5a26d73f9..cc35be1c1 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,3 +28,4 @@ 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 b4b0a7c72..999c5ba75 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 febd6c62a..b9c049421 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 e5bb72fba..39d5ee0a6 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 c120b0c91..806e428be 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 e1ebc8eac..08243fb84 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 510fbad6e..850cffa94 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 9aefa195c..a70e5e30a 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,22 +13,21 @@ 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());
@@ -37,3 +36,4 @@ 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 79607b34a..e20e68697 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 2620f9b4f..a7186caa0 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 f516ad3d0..242d0abfa 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 8eb9e5d41..ae4eae8af 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 f282f7cb3..5264f7457 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 6414e5e35..7d734171f 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 205082296..29609ef25 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 0492fc989..3efb78355 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 98155875e..311a412c6 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 543f09d23..85185125e 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,3 +29,4 @@ 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 a518691b6..1e4cbc9c4 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,3 +29,4 @@ 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 5d44c3834..b0f97e9f3 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,17 +13,15 @@ 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);
@@ -34,3 +32,4 @@ 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 35ac3a739..8ad990d37 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,3 +28,4 @@ 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 eb5f17481..03026ecbe 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 4f86b5e13..748ce948f 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,3 +29,4 @@ 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 7644225b8..debb4e15a 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 6e26cc004..7d8f78cf7 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 6bcd5d2b8..da7a0bac9 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,3 +28,4 @@ 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 1392677bc..70563553e 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,3 +29,4 @@ 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 05a09c6c6..7c33a6566 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,3 +28,4 @@ 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 dae3f933e..70706f009 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,3 +28,4 @@ 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 653550a21..58bdad714 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 a250ae9d8..7eaededb8 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 af726bb47..07f79fba3 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 f73689086..77e9b5712 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 65eab1859..5211ef404 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 03d8e1cfd..8010987b0 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 3980d3d26..3bceb0c4d 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 a9e97ed64..b7e595b56 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 6b05968e0..1d32ba931 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 d8a49387c..9cd2f3b62 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 b0d4a4ca9..ee9913799 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 2874c575f..12f1bdf6b 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 491f525f5..f80453b6b 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 47298404e..1bf7cfbe7 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 36c03a768..602c6232e 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,36 +14,32 @@ 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 74406da4a..79a4db019 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 814abc3ec..68874dde0 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 e9e5140eb..7077984f7 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 7d465cd8a..bdc27f3ec 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 c4037f25d..f18c954ae 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 a4f6b477d..254a77b65 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,15 +17,16 @@ 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 e80d3aae0..dde8f1693 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,3 +26,4 @@ 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 5d0431684..8dc6f3b24 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 25b2ca47f..1af6dc847 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,3 +26,4 @@ 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 f6549a433..3597664af 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 0cfd563b5..b9e5ace9a 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,3 +26,4 @@ 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 bc07d4e52..a4f6abd72 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 5d462269c..e9d04518a 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,3 +26,4 @@ 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 34fafda67..3d8a8044c 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,3 +28,4 @@ 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 930ca2baa..d97250fe6 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 10d568585..8321e0c54 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 c71b8b28c..202953c71 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 7ef402276..21f3d4fa1 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,21 +15,22 @@ 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 ebe68bdd9..be6f9065e 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 bfc6e92ee..5c9552d4d 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 6aaeef9a9..507a1c249 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 cef2a2c89..2afcae34b 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 95d0592bf..f00373abd 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,20 +15,21 @@ 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 89c37c33c..c0b2e5600 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,27 +15,26 @@ 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 aab9995f9..d0dbf4145 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 03833d7c4..5fa17de2b 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 c20b84c7f..66cc2afd9 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 886cbecff..8183fd327 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,5 +31,6 @@ 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 3a2ac372d..504bb0dd0 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,20 +14,19 @@ 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());
@@ -38,5 +37,6 @@ 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 7c9b38e2a..442ce615a 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,28 +11,26 @@ 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 5a5f33fbb..fbd5296bc 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,5 +30,6 @@ 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 6e5601ac3..a2b935595 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 128bdf8be..3d82d9457 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 00e6605b9..a305f8b0e 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 deacff500..b6a732615 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 c300e411d..5a403be99 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 8d1baaab9..8154599e0 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,37 +14,36 @@ 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 1dbc7bb0f..8a1dfa710 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 5da3d5c05..a185104aa 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 c77ec6b47..13c7086f3 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 b8bcd8b2e..b2acfa15a 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 17f8a4a9a..d2df5266b 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,26 +16,25 @@ 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 5e6dff816..9b31ad36e 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 4e90dcae8..4f4d8ef57 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 9254d3da3..45585e97c 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 01c1bdf28..ab2c28488 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 a00a24558..151852c14 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 b7401b4e2..dbe08b59f 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 80f05bf0f..362cc2dfb 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 3b7581a9c..c65a852dc 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 df2778efb..798298cf8 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 0bcc9bc3e..b2ed708b4 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 42169d9c8..223497d04 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 fb45a1a6f..3080c1615 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,16 +9,14 @@ 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 8fb59187a..3c8440c16 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 c885c76ce..eb1a968f7 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,26 +16,25 @@ 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 da3cc57d1..be6a0ea58 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 6a9c04852..d0f9cc9f8 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 13b0269da..ef8834ed3 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 42dc477b5..6b23dcafa 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 7be2e646e..569a0618a 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 e59a4f51b..c481b0d27 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 5247a1c02..82d464a7f 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 f8483571d..409ca275b 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 44393b004..aa93f1f02 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 56f43b86f..2811ce85e 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,17 +14,16 @@ 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 1042edc13..d49318a5c 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 686311e13..0a4d2f117 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 616737e3f..f327628ac 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 f9fa042ff..162369ec9 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,24 +11,23 @@ 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 8c3d0a57f..6de139ec5 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,35 +11,34 @@ 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 111feb5bc..a066ade12 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 14968edc0..e1ae25ad5 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 f4309ee3a..34fafef04 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 6052175b1..8e014dbf0 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 2ec2e38b7..81d10db5a 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 034c2820b..9666304b4 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,3 +26,4 @@ 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 6c252eac4..923709023 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,44 +11,43 @@ 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 eacfb495e..e01e0c624 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 331f6565f..5195da8d4 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 17291265a..5e2bbfb0e 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 e1dd0c862..97f3e79dd 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 c92629f04..db3c9ed05 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,13 +9,11 @@ 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 8df808343..bc699d003 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,19 +11,20 @@ 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 4e928915b..3c3d69ebc 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 9f6e931c1..49e2d514b 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,3 +32,4 @@ 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 424240fd0..172e71d51 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 3ec607f81..6670ea99c 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,3 +32,4 @@ 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 1f8a55196..9cdf31fce 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,20 +12,18 @@ 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 b984b2fb1..2ab69a8e8 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,9 +14,7 @@ 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 a1532cb67..e3659e52d 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,3 +29,4 @@ 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 861d548cb..e1c624b55 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 cde59dc5e..688821a53 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,28 +13,27 @@ 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());
@@ -43,3 +42,4 @@ 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 4151bdaaf..de330744d 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,3 +26,4 @@ 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 a61da8f00..0c8907b68 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,15 +12,13 @@ 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);
@@ -29,3 +27,4 @@ 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 39f1d83f8..51c96244c 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,15 +12,13 @@ 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);
@@ -29,3 +27,4 @@ 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 3eff29133..9ff1d5bef 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,17 +12,16 @@ 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 bda21bfe2..33d369c4a 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,29 +12,27 @@ 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 1a7348c64..e8cc5df2b 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,29 +12,27 @@ 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 638593200..b14bf5030 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,15 +12,13 @@ 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 910dbf79d..34d4dc158 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 381073f31..08978d57c 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,15 +13,13 @@ 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 6159e5341..3f13a5f7c 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,33 +10,32 @@ 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 ca3ebff2e..96d7b3463 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 2184bd1ef..d05bf78b4 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,15 +12,13 @@ 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 ec6ec8925..c649cb77a 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 7b1f7f637..df9ed9f8e 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,18 +12,14 @@ 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 19e37a704..cfbb1fe19 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,19 +12,15 @@ 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 56ae78800..2037ebf6c 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,15 +12,13 @@ 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 3d6000d30..f4c47b700 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,17 +12,14 @@ 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 67c6bc267..fb8470edc 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,20 +13,21 @@ 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 c7a9d7c87..ecbde1f77 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 f74d2a2fd..4220a3787 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 1f3930f59..cdd976461 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 4c619fd07..39e0c2e8e 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 14b726244..78d9e185d 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 7f7511776..4c18015ff 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 b7c53b94e..860effe4e 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 1fcaaa890..fa18f21d7 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 96f9243e6..a784e4fab 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 1295aa86f..3e068c2d2 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 702943705..3b26b5018 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 94d360b5e..f90e5acd4 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,32 +13,33 @@ 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 8a5b27f21..d1615f974 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 8df102770..e0fb47e8e 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 a9aa8688f..f46b1a03a 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 da3efb8d3..63693367f 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 4b1fa5183..1e4ebef1e 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 45b00d5b2..a7e08fd5d 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 65dbed0c1..b277a1b1a 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 0554f87c1..359fcbffb 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 7d66ee61a..7f3c41cb4 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,17 +15,18 @@ 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 9bc65e056..8e45b20b1 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 bdda83d93..76e45b219 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 ac98a36dc..2a65114e6 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,3 +31,4 @@ 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 e364fa603..78f718e2f 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 119c27d79..923f4fdc9 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 ba37ac598..736f2945e 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 99a88342d..f44d56dd5 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 10eff312d..e40729c33 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 6288ea2b3..958e08ed9 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 f78066f0c..9ccb8b5c0 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,23 +14,21 @@ 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 35932acd6..78e078fa7 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,20 +14,18 @@ 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 9ff21468b..7f5d016ed 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,38 +13,34 @@ 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 120d7ecce..a6ede93bf 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 762302ec8..4792d6dc7 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,21 +14,22 @@ 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 13dbde09c..c62ac4b97 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,32 +14,33 @@ 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 bc961e8ff..a8ef44e7f 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 0c2d713de..778ba138b 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 35f88c16d..1b703ad31 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 c8407d1e8..2002a2c7a 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,24 +14,23 @@ 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 ec80c007b..3698daffb 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 2af77cd28..adfd982a3 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 2b77c05db..50e80f248 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 ccab6d7e8..cfbe9f516 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 040fd17b3..ff5d40563 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 3f871066b..89feb4d5f 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 4e3c784f2..2562a0ad0 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 1df8a4132..2955e6ff4 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 08a0229e8..387c062a1 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 18e7cb5d0..8fec3fa53 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 015b74be7..197be1c81 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 37e8dc012..cfd9cd94c 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 055a3c849..ce93bc299 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 e507ae0bc..e552666a3 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 d78f0fa01..07851ab52 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 29698ff4a..ad1ef64aa 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 22322c244..7fac12e1b 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 a2368fcc0..2f0f77464 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 bc863a7be..c3459ee28 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 1b8589db2..7858e8907 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 c3b52b74d..6c8c201fe 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 576f3f968..bfc039d84 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 fb1fed3da..63ef4f254 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 2a2bb96bc..230e0f1c7 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 54800b7b3..5283705b2 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 f14f48452..e6dbae772 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 94ccfaa86..e3a21b972 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 d0aa983f8..2a57a5d35 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 ae62d9a03..9e8bb2ddb 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 205de24a2..0dbaf2e38 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 3cdcfc0d4..bda77ab5e 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 68d62dd21..31d6fb887 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 fc3d896c0..06d8aa82a 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 d21b1b707..287d8c1dd 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 dc5764ddb..e803f48de 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 3422c1317..3839f960d 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 be331a8ac..da1d927b5 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 79d010d5b..740c0e3dd 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 5499e7f55..e514f84ac 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 535f6c4b3..889ff4480 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 dee948966..ac3077dbf 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 b897ff648..c4cd44599 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 e9d58d50c..076c40166 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 9dee13a29..774bb3305 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 844d7b7f3..59dd29568 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 c34e5ae81..fee7a1109 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 5749d1c9b..4e62e4a16 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 35b64a5a9..c8d127e5d 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 c5dfc603d..85150e3fc 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 91e27ced4..1e63f2334 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 84c75005a..92fae11cd 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 3a60248f4..97470527a 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 8574694e1..37a927863 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 b971991d7..5089fa099 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 cda36d2b5..af780b296 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 a605fd7eb..dcfcdc5d9 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 194379fa1..f2eab5c8b 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 6d65a48c5..699492a0b 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 796bf8a94..ce1c4987e 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 992db6eee..09a51c198 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 49c5bbc73..cca20e2ee 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 b242a1786..1fa4963c1 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 792148aa7..4de8a76c9 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 001da3752..c0310cf55 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 6034791bf..2915e96e4 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 305ffc905..907eb445b 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 c0776bb6e..5dd887196 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 021ab11fa..409ef356e 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 030b5d02b..f3acf87e5 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,17 +12,12 @@ 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 ebb7f5bd4..d15bb70e5 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,14 +12,12 @@ 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 5c49f9552..a792d3866 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,11 +9,9 @@ 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 58ceddc3b..6f424df92 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,17 +8,15 @@ 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 f28ee3366..956bdee57 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,11 +9,9 @@ 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 442ccffbe..ca816d3b3 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,11 +9,9 @@ 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 0de5f8d98..eee093efb 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,9 +11,7 @@ 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 c899a8e44..a96eceabe 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,11 +9,9 @@ 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 4a6edd949..35b086b0d 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,11 +9,9 @@ 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 4268d5d75..bfe8d6199 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,17 +8,15 @@ 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 b80fa4633..533e2176e 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,17 +8,15 @@ 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 26f6c4059..ffd7940fe 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,11 +9,9 @@ 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 6de92ffa5..28e657393 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,14 +12,12 @@ 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 9205a2b59..fa8d9108e 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,17 +8,15 @@ 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 4608840f9..03e65d3c8 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 a09d35399..8b0def7fd 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,17 +8,15 @@ 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 9f0d8f5e9..59b678107 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,17 +8,15 @@ 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 46972c084..c6a3e8cd2 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,17 +8,15 @@ 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 09b23a6b9..5907d7b81 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,17 +8,15 @@ 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 9309ae735..2803afbe0 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,17 +8,15 @@ 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 04d74d887..2daeab199 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,17 +8,15 @@ 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 29356c1aa..76e6ed6d3 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 07013e09b..7b4ff65cf 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 023cb1f85..fd0ff1197 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,14 +12,12 @@ 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 9e7009358..74acbbe02 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 ed80e3969..d7c924ad5 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,23 +8,21 @@ 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 5af18a032..b89b54fc3 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 4cd00a0ca..b4f1995e7 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 4b16e7dbb..9c948ddaa 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 055c95867..e6e27c455 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,12 +8,10 @@ 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 a732f78a9..2356a57b6 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 1549cb62c..6c0767ea0 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 384450224..47111101f 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,14 +12,12 @@ 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 ad3067672..d57fa6425 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,19 +9,17 @@ 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 bba5ca3f3..6490829bf 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 4b37f1d2a..dac5ac76f 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 96ba2888b..0fbac7b7c 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 bde2857dd..25e3a8e4f 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 7283eba4f..81361b3a5 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 da1a2d699..6a3a9207e 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 da9ec587c..aafeec5ff 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 7d8496fe5..1c0616d17 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,21 +9,19 @@ 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 630261a0f..dc4bb72be 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 86afdeca5..544b80e06 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 ea5c09dbf..68037deef 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,16 +12,12 @@ 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 0a5328e01..2427bce09 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 3864f44ed..5dcb9fc1e 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 01ceb708f..7168b9b07 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 4dfde83fd..531b40470 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 65e2d2982..b7c70877d 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 236907cd7..9daa893ce 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 fcab64dff..855177b2c 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 7e3e52951..e321f1990 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 684510495..2d38e639f 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 013d64c9f..5a243de1c 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 9c5905d7f..738ae2d0e 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 2fa41afc5..0b7d5c75c 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 6ba4c290a..28fd27b9d 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 b8a123223..fc99527fb 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 075a30d02..2a28c6b51 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 66dca2c14..5974a207b 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 d08b1716d..516717351 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 1e9363c73..0e7a99843 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 644b34466..7ce7e83e2 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,14 +9,12 @@ 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 164e85521..4385351de 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,14 +9,12 @@ 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 f3f1d5483..03bca14f1 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 e0d0737af..afa1640a3 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 d355d3c45..1b9eb1efe 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,3 +20,4 @@ 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 15eeb6e1c..d2ae3647f 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 b94627520..68f33cd8e 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 87423da12..da6d6e075 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 4e5a49d4e..18ef468a6 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 27c98e78b..eb343016d 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 29d46ba9f..38c165388 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 fa99dd2e7..32dbd5341 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 3ed6b9190..e56a08412 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 d30abd312..b363def64 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 7072dc507..e2e626d34 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 e5081410b..1c3b3c7e9 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,10 +13,11 @@ 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 3615ce5c6..bbdf9eed7 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 baaa4a1a3..4c5e7b06c 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 d790fc6e4..2daa9523d 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 c0e137038..3895b6f61 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 3ed3f5223..66bc45603 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 2422bbd2e..2781bbe76 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 6fa37c460..e5227ee79 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 955db2b90..9514ee522 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 9ae7ebb96..347024234 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 ce57f9745..a81721331 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 c6c675e9c..431adb9f6 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 dc0d5554f..4fbbfc386 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 72f31b2e0..855ddf4b2 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 6a88ed9c5..bd586b4b1 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 6f5f3065b..d0d86774f 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 b5941c8bf..a10aa1b7d 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 15f8cc9e8..4cbcfcf9f 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 c75e3af14..abcd93fc0 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 424ac5008..8c1f6a605 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 ec74c5a4f..78f95f7d2 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 2b9aa032b..cb368f7d0 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 552d3ed01..073df7987 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 ee58430a9..e29059c3b 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 6ea481862..cc32ea6b4 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,21 +9,19 @@ 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 37644833d..f816f7acf 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,21 +9,19 @@ 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 76ea0c955..c044f4dd9 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 354b342f1..77d1123e1 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 88c9e3f0d..ec43702bc 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,11 +9,9 @@ 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 ad1868068..c2f3bcd67 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 5eeabe40e..41365f9ce 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,17 +8,15 @@ 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 7b40135c2..dba196310 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,11 +9,9 @@ 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 2d818dba2..559b4e64d 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,11 +9,9 @@ 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 9b20abc03..815482b16 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,9 +11,7 @@ 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 d788c3d23..a7829b766 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,11 +9,9 @@ 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 883316e49..3e057091e 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,14 +9,13 @@ 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 59c0376b2..1239edb9d 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,17 +8,15 @@ 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 3c393647a..91c91c7f5 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,17 +8,15 @@ 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 e23005612..51fca69ec 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,9 +11,7 @@ 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 02bd96fe6..c3da81e30 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,17 +8,15 @@ 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 f4053d85c..c10821348 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 12ace4eb7..a87d465a0 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 bae79913a..0bed96abc 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,17 +8,15 @@ 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 b7c3568f1..86a87b423 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,17 +8,15 @@ 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 9cec27586..66f9558d0 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,17 +8,15 @@ 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 b79826339..df8ac1084 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,17 +8,15 @@ 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 992e8da92..339bfc4c2 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,17 +8,15 @@ 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 62c4cd7d7..2ce077a6e 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,17 +8,15 @@ 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 702cffb78..550d69b6b 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 f7e0e2cb1..f5ccb8883 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,17 +8,15 @@ 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 7b9d8aa35..ffd301e24 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,17 +8,15 @@ 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 50c5a0faf..082d367fe 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,17 +12,12 @@ 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 1fba3a8b8..1873ba03e 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 8ce95c3dd..286cb4f5d 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,21 +8,17 @@ 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 1a662e73f..52ee4bbd6 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 9d4a5239e..cb0c0e497 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,17 +9,15 @@ 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 07341a6ce..a8d61b311 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,17 +8,15 @@ 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 0aa07865d..4d1f8183b 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 b7ee5eb85..004e92a78 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 f0d1e1537..720e1e1c0 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 acfd6d48a..3be19510a 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 65e76e89c..06e83faf6 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 b8054e9b4..24baf80a0 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 8f62b01be..52122a629 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 ba3085b96..543ef14fb 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 4eb0b303c..9cf8718b8 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 a0839ccfe..2b51e1554 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 b4bbb8442..b740fedec 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 cd74bb102..0e03885d0 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 d8a9c0098..f80e5aa70 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 78ed6f0f0..4454a148e 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 ea8476132..af3ba07d2 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 3237a5db9..4b1b50bb7 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 65f8a003e..777e4b1e1 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 561257b21..4586f5b9d 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 858e65ee7..e09e9b43b 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 e84ef2f7f..12816889e 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 093721583..90284ea2d 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 70a954f19..5984602a4 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 f62fd3eb7..d23d5d32a 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 b2b3af569..2782d5443 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 04f5d8af6..539969123 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 d8849c6a2..cb7c01393 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 e9de0f518..165f297a7 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 dd6e0d050..4e2957df9 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 3b6b143c4..aff1cffe0 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 fc96a2d1d..cac536761 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 f65c6e74a..df394a642 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 8531ea1b9..63ccc8a3a 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 f7d951013..404626ea1 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 69c0c2b1f..3b694afa2 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 cd5a996ed..a61ca0f0c 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 2f6acb4b1..89b7ba7df 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,15 +9,13 @@ 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 3bed3952c..abacba3aa 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,16 +9,14 @@ 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 b45a048a3..bb1b20d09 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 69a884b8f..2a894faeb 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 b9c1fab4b..3352bff3c 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 78e0e141e..1556b1c7b 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 97cec2135..e4b65b842 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 a52ba6e96..8a09f51b0 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 8060ed559..6f940328b 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 6b1fcfc71..ee2a0704c 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 90a83a52f..fc8ab6600 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 fe6ed9ef3..bccb1de1e 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 20efcfc13..3a148ce82 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 159da6087..17bf99c8a 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 a1b53d312..132baba02 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 a324607a0..f343f73a4 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 0989ddcdb..1696066e4 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 87f88a3dd..5953cc76f 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,3 +25,4 @@ 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 aaada824f..d3c9b3b05 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 ad5c22ada..7de4f4b3f 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 222c7aca7..4ff3487ad 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 7097d1770..2f473b986 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 11845419a..12f19e894 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 b431308da..dce84e78b 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 5bbdda116..2b278d63b 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 372576ab9..10055b5c8 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 0549855c4..bfededf6b 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 f4799b729..6ea5a518d 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 5e7f2ddd2..9bbccaff9 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 72e1288dd..749f8bc33 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 199d853db..549dcd00e 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 56d185832..96622fe50 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 5aa8e6a57..322dfe1f0 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 3d774064d..9b3a47fe4 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 3c5799b94..215cd639d 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 04d4f46f0..15c2b421e 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 fd1f42cf8..058730c2f 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 5b3a9c5db..86747c4b8 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 885adc176..67353422e 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 86693a8ac..a0fe03339 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 e11ce787d..944e77f98 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 48c857b9b..0b250f10f 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,18 +9,16 @@ 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 f75b5de0e..3ec7fdcf0 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,17 +9,15 @@ 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 cb6114b6c..cddcf00fa 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 993707e94..17a785f86 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 bf605c2c8..517fd8067 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 7e5c6c1c2..0b8522c7f 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 05c981290..83cb14573 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 013382fe9..0de7fce4a 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,30 +9,28 @@ 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 c7a432892..665c3218e 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 d701420b4..9e0d0f396 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,15 +12,12 @@ 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 cfc961d17..54be326f7 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 f628d6422..476cf5038 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 112d61a29..b1981975f 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 60d9644e4..17f152928 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 60abcc95d..98980b1d5 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 d17143545..6a54cf172 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 1d9464652..83aba5145 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 3d47c1b36..908e603b1 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 a38b4988b..00b780f0a 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 fe685c511..a385748a7 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 da7627450..2ca7f9ab9 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 4cd927281..d9e83be1f 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 b7cf88d53..291f1b0e3 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 0fe274646..c49dc19dc 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 d3851c5f6..ea7b3809f 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 2ea93ddfc..54bc49d18 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 605f7a5f9..476162159 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 209074cda..e740fecf1 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,15 +12,12 @@ 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 a9250c89c..6f2548ffd 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 1d87040b4..46975d82c 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 562a96cd8..c53c41840 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 5c25f8002..6475a5ceb 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 cec338131..41e13499f 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 9e287b18d..909994b82 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 c1565948e..7a799db39 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,20 +9,18 @@ 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 f4a0f9de7..8c2be1cae 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,20 +9,18 @@ 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 eedac149c..98538314a 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 ded4ff967..9e6003e7c 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 3a927f0f2..2ed3c5efd 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,17 +8,15 @@ 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 c42943fe7..d1e420ea8 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,17 +8,15 @@ 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 f24a82be3..bed11ffd6 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,17 +8,15 @@ 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 e2290434d..763fbca7a 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,14 +12,12 @@ 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 aa6c0582e..91a8d0906 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,17 +8,15 @@ 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 4b5e1dffc..ddea2dfa7 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,17 +8,15 @@ 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 19ad09b8d..2fb433b80 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,17 +8,15 @@ 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 9b22a839b..aaa5fef8e 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,17 +8,15 @@ 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 0eb6de95d..479ed01b7 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,17 +8,15 @@ 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 7357b3c82..bba81e43e 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,17 +8,15 @@ 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 8bf0c1e6a..ff875f28a 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,17 +8,15 @@ 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 78c6e6928..ec0bb7376 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,17 +8,15 @@ 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 2cb29dd7a..be5dd1d8d 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 6a4e73e7e..404f491ef 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,17 +8,15 @@ 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 333d6a1d8..be4b9302e 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,14 +12,12 @@ 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 c1a4fc7b7..b8a43aeb7 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,17 +8,15 @@ 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 7d46bdf7b..1e963978c 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,17 +8,15 @@ 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 cb2aef8d0..60be30065 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,17 +8,15 @@ 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 ef607344f..a18690aac 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,17 +8,15 @@ 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 4cd67c97d..8ede8c20e 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,17 +8,15 @@ 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 0be3df181..57380cd63 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,17 +8,15 @@ 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 0d07de5d2..ec2550435 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,17 +8,15 @@ 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 f2993f58d..fe4c45f0e 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,17 +8,15 @@ 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 e5b19c83e..842b98eb2 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,20 +8,16 @@ 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 b9690c2bb..54556c303 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,14 +12,12 @@ 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 f3b46f3d6..ded68d14c 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,17 +8,15 @@ 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 d32608e8a..d732a9523 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,17 +9,15 @@ 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 1da2600b6..64bd3d7e2 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,17 +9,15 @@ 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 cc482c6c8..baac16ea6 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 d5c2b4ba9..c6fc62d82 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,11 +9,9 @@ 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 29eabf5bd..57de46485 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 649f877b3..39e2e863a 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 849e2ce6e..9d80e8cb7 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 b6c53ec3f..7373f4374 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 047d7763f..175d52cd6 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 95eac7daf..31591f85f 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,14 +12,12 @@ 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 d89c14ee7..c89606b69 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 136567ae3..a4f3021f6 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 25c3a1db6..ac8473eff 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 b39b5cf91..a11deb24a 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 73297b372..5b646c9ad 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 3d8051dc5..0d4c6548c 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,4 +29,6 @@ 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 687d2cd7b..016698c0e 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 d50eee13c..bccb67715 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 8d7386e46..b28cb6881 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 7473126e8..ed16679ea 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 c5b2ee9fb..c0708bbe1 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 9accbf112..4060b4f3a 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 f0fd7d2f0..2ee6e1792 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 b693ffbca..f39c1ed8d 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 a3f036a73..e0fe885c6 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,16 +12,12 @@ 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 542a8eebb..d867abbc6 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 a5904b051..e3d3251d9 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 d0a8e2927..2191b771e 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 934094a5e..e87007a5a 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 f02615e75..8665effb5 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 1afb86767..b245dc17d 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 775057ba8..b34879406 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 f79298d35..3657fd461 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 aa834b6bb..293602b42 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 a3a3f4d30..f7cd3d9aa 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 e86e3bd9a..28d5de387 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 f37dab149..f0063df45 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 3dad6f88b..53a448dd0 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,20 +9,18 @@ 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 1730ebf40..97b7217a6 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,20 +9,18 @@ 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 26be7d83b..5480de3fa 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 b809de323..f78b899c8 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,11 +9,9 @@ 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 00a540894..8dfc4e949 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,12 +14,10 @@ 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 71145b2c8..9c6022243 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,31 +14,22 @@ 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 efda2cd61..b3d524226 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,3 +23,4 @@ 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 bd15bb566..2d32ed31d 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,9 +13,7 @@ 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");
@@ -23,3 +21,4 @@ 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 5ad0a75c5..01fd9bdb5 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,9 +13,7 @@ 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");
@@ -23,3 +21,4 @@ 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 44f7cb2fb..9a082b26a 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,12 +13,11 @@ 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);
@@ -27,3 +26,4 @@ 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 1a2b93d2a..74fa125da 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,3 +27,4 @@ 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 8059ec365..67a9b88f0 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,3 +30,4 @@ 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 c6a9e58fd..598d0a06e 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,3 +31,4 @@ 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 f888deb39..ee85f3e49 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 14f5eb822..2e967e1cb 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 8b7123a39..80c2b1ce4 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 aa07d64e5..a189d2109 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,31 +14,22 @@ 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 459f7b702..834b0959d 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 dfdd3d42e..c61565170 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 85bde155a..1b0201c10 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 7ec7a57bf..a40b2b652 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 c8f90bfcc..c1b9f1774 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 702324b47..5cb28ab76 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,29 +14,27 @@ 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 2e0c7b7fa..65a3d68c6 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,16 +8,14 @@ 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 6e8f17960..2fd599c0b 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, "2", {
- configurable: false
- });
-
- Object.defineProperty(arrObj, "length", {
- value: 1
- });
+ 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 f1bef7cb1..6890b115a 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 ecc53f25a..b189fc5c6 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,31 +12,24 @@ 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 61098e3ef..62f3f419f 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 0679c6b54..3122743c3 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 5dd8d1d42..d65953e87 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 ab1a64da7..f807ba252 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 e5940a064..b178a24d3 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,3 +23,4 @@ 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 2cd5d4ee9..32c822833 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 4eca508ef..17c5c77b0 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 5c8680749..ca691383c 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 3784c89bc..29a46e6e9 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 96c7b8a9e..6bb132493 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 badd02ccc..6666176e9 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,29 +12,22 @@ description: >
non-configurable accessor properties to data properties
---*/
-var o = {};
+ var o = {};
-// create an accessor property; all other attributes default to false.
+ // 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);
-// 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
-};
+ // 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 ce0d5bba0..d4d9bf8b7 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 3458c6ca7..3a0b3de42 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 2fc557ce7..d431841b1 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 1f5373e66..990f4c190 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 598061012..6141877b5 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 8e5876ef0..fa36e838f 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 6804e776f..a4b4c1b79 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 ddf5cde58..1e58b7dad 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 0ec1ead0d..b1f9b8fc6 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 30fdd1657..13a4b9380 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 e38bf445e..7a4cbf272 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,27 +12,23 @@ 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 c3c3a831a..65d068b74 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 fed04a925..a39d1564a 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 8924cd6c7..8880cf8cf 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 d304794f2..55b9b1ffd 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 9259a153e..be700ec76 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 5f14b513c..8909f1994 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 2cc6ec6af..565369fb7 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 7549f17bd..4274ebbb3 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 aac1a6d50..19cb735ae 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 d00974ad7..dbcbc3fa3 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 ce8de772a..838309ba6 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,28 +12,21 @@ 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 4aef28ab8..caafe2291 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 ddddccf16..4cce14207 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 d9812947d..e3975ad9e 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 dbaefd338..dc60afadf 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 b940cb001..c499969dd 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 1801b334f..b9bfd0689 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 09db6bd97..010a2237c 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 ecf1b7df3..24b4e08ee 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 7e143736b..06246ef3e 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 78b883a3f..4b7db063c 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,25 +12,20 @@ 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 db884901e..889d911df 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 5c0c453d6..881a01347 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 d1103d1bb..dd21806a7 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 77c932472..99ad98928 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 73e614da2..c8a0513c7 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 ffa15660d..4a72cda65 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 c080747ef..85c2e654d 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 a2de291b8..0a481d5c7 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 d03d1325a..1cb70eb37 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 ec14c9514..15aff6190 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 9b93e9efb..8f4ad3a85 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,24 +12,20 @@ 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 3f9622bbb..4650c357e 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 f3283840c..29cef1594 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 b6f14808a..11e3ff7ff 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 a0179d45a..27a85d434 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 ee5deb2f9..422632e80 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 23357a32c..4e7d05ceb 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 475d082d9..4d1d9ac03 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 c856a3d7b..f9c666b27 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(arrObj, "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.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-178.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-178.js
index 4df1e5802..10a208b9b 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 5026a63d9..d59c20d30 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 36e9117d5..9701c6e9d 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,29 +12,23 @@ 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 11dcd7d49..68b0f0daa 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 340149c4e..9f3e38ad0 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 7a668ddac..3fa0485eb 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 3e1ca6947..b3678ae48 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 69843271a..c99ce7106 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 560214a26..0af8105b0 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 dd975e31a..e6050fceb 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,12 +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
+ });
+
+ Object.defineProperty(arrObj, 1, {
+ value: "abc"
+ });
-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 889e6d237..53b68caf9 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 1c61ecf6f..f67443f47 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 f148c9622..2758d9847 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,26 +12,20 @@ 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 098e05861..438fe21f4 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 1b4fb59bd..6f98b428d 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 65c0025e1..5e28dc2d3 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 2507d3c33..03c38b4db 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 990f8f92b..7cacb2d47 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 491372f01..4181928c0 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,39 +11,38 @@ 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 f40f1cfd4..7ddb2e1dd 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 5887be340..4fc4f1e83 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 0ecd59a2f..27354b58d 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,12 +9,10 @@ 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 58c486b4c..5052ac886 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,3 +24,4 @@ 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 a97cbedfc..ef6d4e2e5 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,16 +12,14 @@ 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 d16ab047c..d38088903 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,28 +13,21 @@ 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 9f5256890..63077a0cb 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,3 +27,4 @@ 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 f0482af89..7b3f9f33a 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,3 +26,4 @@ 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 d6bdee22b..0c987dfff 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,3 +26,4 @@ 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 abee7a278..82a8aeb45 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,3 +26,4 @@ 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 e19e46508..899fc6f99 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,3 +26,4 @@ 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 04c926f70..58020eb3b 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 a21a365d1..50a9bc2ad 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 338b788ef..8f9c19117 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 540472ce3..6c3814e9d 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 315efeb87..d9ce590c6 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 5f357e7b3..5fa94235b 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,25 +12,21 @@ 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 0cd5779c4..2c9c13ac6 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,3 +22,4 @@ 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 030a92221..e02b3584c 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,18 +13,17 @@ 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 a7abee310..1ba665155 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,3 +29,4 @@ 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 2b691bf41..96b57c408 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 eacdbcdc4..ec961abde 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,27 +15,25 @@ 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 49bff01a3..1ed17f2be 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,13 +12,9 @@ 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");
@@ -26,3 +22,4 @@ 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 ec465e9c2..b5efb6f80 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,13 +12,9 @@ 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");
@@ -26,3 +22,4 @@ 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 a8851cf79..c57e94ea6 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,13 +12,9 @@ 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 c81c6c055..c393a72a7 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,26 +13,22 @@ 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 d2f045ce5..3e9acbdd0 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,26 +13,22 @@ 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 02e527405..6643da65d 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 10696ad39..e4a6b3aa3 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,13 +13,9 @@ 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 d2a4ae6ad..aff5f3150 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,27 +14,25 @@ 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 ed3c0936c..f2e6a291b 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,13 +13,9 @@ 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");
@@ -27,3 +23,4 @@ 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 03029236f..310795319 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,27 +14,25 @@ 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 de19df976..1751ddc12 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,13 +13,9 @@ 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");
@@ -27,3 +23,4 @@ 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 c2da23fe6..a9ccc96f4 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,27 +14,25 @@ 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 5b7e7edd2..eec15afe1 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,17 +13,11 @@ 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");
@@ -31,3 +25,4 @@ 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 7eabcaaad..59184c388 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,35 +13,29 @@ 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 3e873291d..4ad03d8e7 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,13 +13,9 @@ 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");
@@ -27,3 +23,4 @@ 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 859a41f62..90ece61c7 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,14 +13,9 @@ 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 6b59c0e79..6acf72daa 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 d2d6797a6..4f70bbbdc 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,20 +15,19 @@ 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 b8cac4a63..ed12f8ca5 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,25 +15,23 @@ 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 757da898b..b814729f4 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,16 +14,12 @@ 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 1fb647246..e6ebeb804 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,20 +13,18 @@ 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 20d6f364b..4c622249d 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,13 +13,9 @@ 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");
@@ -27,3 +23,4 @@ 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 bc5cf2789..06e3e2c7b 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,14 +13,9 @@ 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");
@@ -28,3 +23,4 @@ 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 3ca288600..29fc96410 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,13 +13,9 @@ 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 bbcd44437..5b17acde0 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,13 +13,9 @@ 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");
@@ -27,3 +23,4 @@ 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 bbcac3d55..abdca9f4f 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 0863f52f5..c680ee224 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 0a0e6bd27..a1e7f654f 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 4b6b824e8..b5b0993cf 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 1cad6cfc8..3615552c3 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 d0cd2bd47..796c4d0bf 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,3 +27,4 @@ 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 862326c37..249a4b0ec 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 bca8f0606..0f8a8ab4b 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 2e8572a93..94d5e325f 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,24 +16,25 @@ 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 1c9e01206..993eba0fc 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,3 +34,4 @@ 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 71a507f31..44106866a 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 9684f81e7..ad2a61ac9 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 caefee79c..3d26d0479 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 0bec01913..91f7cec22 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 8467c4e60..e30b88ebf 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 5987bb657..6b3c2a884 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,25 +17,26 @@ 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 1d9d42a44..0dafb044a 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 607e0d752..9a50cf741 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 23fdaab4c..6d5de0343 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,30 +15,27 @@ 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 4d9f341fe..3454a5e9c 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 3885a37c5..be181bb01 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,30 +14,29 @@ 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 233b2deac..a12ad1cc8 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,3 +31,4 @@ 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 054edeca8..b82ea6fd2 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,30 +17,31 @@ 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 5082b79ff..b362fd4c1 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 d8563de26..37aafce38 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,19 +14,18 @@ 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 fc823796a..53d53f56e 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,3 +24,4 @@ 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 11d17e672..d7d3f6160 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,3 +24,4 @@ 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 42cd36095..5a6c52ba5 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 81452c8a3..53b6be800 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,3 +23,4 @@ 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 00983ec92..22b6bde12 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,3 +23,4 @@ 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 3ab254e83..200656186 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,3 +24,4 @@ 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 383acb95b..9572c45b8 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,3 +24,4 @@ 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 cff7a2c80..68c0c1b6b 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,3 +25,4 @@ 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 e0c5c88cc..ea1fe6a87 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 404c0b27b..58c677ac6 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,18 +13,17 @@ 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 0b277d2b3..22929edfa 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 77eb27765..065e96b8a 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 d745c8ec7..377757089 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 b6064724d..01f897d3b 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 2139b32e7..dcbb81896 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 b6e062cfa..f61deec36 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 85c7d938e..9e3f26cc6 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,18 +13,17 @@ 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 96cd481ae..bf3d1c439 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,25 +15,24 @@ 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 fa14d9a5d..3ffc0976a 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 54a9dc7c4..314b3a9a6 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 fc39726c9..ec26b3097 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 bd2d31b64..63ad1e663 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,3 +28,4 @@ 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 1a2a67150..663a41f2b 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,18 +14,17 @@ 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 cc89be686..38d117e60 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,24 +14,23 @@ 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 8e4ce0c27..e2918e4bb 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 b6001dca1..49ff7a928 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,3 +28,4 @@ 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 e222043de..8d56e858b 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 4aaa7cc07..0d374be65 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 f86d1ce0e..ecc7280f6 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 1ef365e86..abc5fc8c9 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 1de36f3b1..145ce3c7b 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,34 +15,33 @@ 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 529988204..89daab9eb 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 354519f6b..e1f3ffda4 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 a0290cf04..0ab89201a 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 e254dc76f..1549e47f4 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,26 +13,25 @@ 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);
- }
+ if (a !== 0) {
+ $ERROR("Expected a === 0, actually " + a);
+ }
+
+ verifyEqualTo(arguments, "0", 10);
- 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-289.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-289.js
index feef9e44e..084dc93ef 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,19 +11,20 @@ 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 e2553691a..249380afc 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 0cd20ff34..303a2570d 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,31 +13,29 @@ 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 bb6143ac5..6214d72d3 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,27 +11,25 @@ description: >
includes: [propertyHelper.js]
---*/
-(function() {
- delete arguments[0];
+(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 getFunc() {
- return 10;
- }
+ verifyWritable(arguments, "0", "setVerifyHelpProp");
- function setFunc(value) {
- this.setVerifyHelpProp = value;
- }
- Object.defineProperty(arguments, "0", {
- get: getFunc,
- set: setFunc,
- enumerable: true,
- configurable: true
- });
- verifyEqualTo(arguments, "0", getFunc());
+ verifyEnumerable(arguments, "0");
- verifyWritable(arguments, "0", "setVerifyHelpProp");
-
- verifyEnumerable(arguments, "0");
-
- verifyConfigurable(arguments, "0");
-}(0, 1, 2));
+ 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 4b75da8ad..bbb1c94d7 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,31 +12,30 @@ description: >
includes: [propertyHelper.js]
---*/
-(function(a, b, c) {
- function getFunc1() {
- return 10;
- }
- Object.defineProperty(arguments, "0", {
- get: getFunc1,
- enumerable: true,
- configurable: true
- });
+(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 getFunc2() {
- return 20;
- }
- Object.defineProperty(arguments, "0", {
- get: getFunc2,
- enumerable: false,
- configurable: false
- });
- if (a !== 0) {
- $ERROR('Expected a === 0, actually ' + a);
- }
+ verifyEqualTo(arguments, "0", getFunc2());
- verifyEqualTo(arguments, "0", getFunc2());
+ 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-291.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-291.js
index 17755a5de..d63f267c7 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,27 +11,26 @@ description: >
includes: [propertyHelper.js]
---*/
-(function() {
- function getFunc1() {
- return 10;
- }
- Object.defineProperty(arguments, "0", {
- get: getFunc1,
- enumerable: true,
- configurable: true
- });
+(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 getFunc2() {
- return 20;
- }
- Object.defineProperty(arguments, "0", {
- get: getFunc2,
- enumerable: false,
- configurable: false
- });
- verifyEqualTo(arguments, "0", getFunc2());
+ 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-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-292-1.js
index 9c20ee459..a3d45777b 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 1e9fec466..d76c7156d 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 97aec8b7c..7af204af1 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,18 +11,19 @@ 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 b9e13227a..34617245b 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,19 +12,20 @@ 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 10e87a7fb..d994ce03e 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) {
- Object.defineProperty(arguments, "0", {
- value: 10,
- writable: false,
- enumerable: false,
- configurable: false
- });
- try {
+(function (a, b, c) {
Object.defineProperty(arguments, "0", {
- value: 20
+ value: 10,
+ writable: false,
+ enumerable: false,
+ configurable: false
});
- $ERROR("Expected an exception.");
+ try {
+ Object.defineProperty(arguments, "0", {
+ value: 20
+ });
+ $ERROR("Expected an exception.");
+
+ } catch (e) {
- } catch (e) {
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + 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-293-3.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-293-3.js
index 9ba1c6d05..20aa562ff 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 384e59654..2396c2d7b 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 4f4245931..14c60ff60 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() {
- Object.defineProperty(arguments, "0", {
- value: 10,
- writable: false,
- enumerable: false,
- configurable: false
- });
- try {
+(function () {
Object.defineProperty(arguments, "0", {
- value: 20
+ value: 10,
+ writable: false,
+ enumerable: false,
+ configurable: false
});
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyEqualTo(arguments, "0", 10);
+ try {
+ Object.defineProperty(arguments, "0", {
+ value: 20
+ });
+ $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");
+ verifyNotConfigurable(arguments, "0");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ 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 7ece96050..ad6a9bd02 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,36 +14,37 @@ includes: [propertyHelper.js]
flags: [noStrict]
---*/
-(function(a, b, c) {
- Object.defineProperty(arguments, "0", {
- value: 10,
- writable: false,
- enumerable: false,
- configurable: false
- });
- try {
+(function (a, b, c) {
Object.defineProperty(arguments, "0", {
- writable: true
+ value: 10,
+ writable: false,
+ enumerable: false,
+ configurable: false
});
- $ERROR("Expected an exception.");
- } catch (e) {
+ try {
+ Object.defineProperty(arguments, "0", {
+ writable: true
+ });
+ $ERROR("Expected an exception.");
+ } catch (e) {
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + 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-294.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-294.js
index 33567f400..e2447d157 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() {
- Object.defineProperty(arguments, "0", {
- value: 10,
- writable: false,
- enumerable: false,
- configurable: false
- });
- try {
+(function () {
Object.defineProperty(arguments, "0", {
- writable: true
+ value: 10,
+ writable: false,
+ enumerable: false,
+ configurable: false
});
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyEqualTo(arguments, "0", 10);
+ try {
+ Object.defineProperty(arguments, "0", {
+ writable: true
+ });
+ $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");
+ verifyNotConfigurable(arguments, "0");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ 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 c430603b4..55fca4ff6 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) {
- Object.defineProperty(arguments, "0", {
- value: 10,
- writable: false,
- enumerable: true,
- configurable: false
- });
- try {
+(function (a, b, c) {
Object.defineProperty(arguments, "0", {
- enumerable: false
+ value: 10,
+ writable: false,
+ enumerable: true,
+ configurable: false
});
- $ERROR("Expected an exception.");
- } catch (e) {
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ try {
+ Object.defineProperty(arguments, "0", {
+ enumerable: false
+ });
+ $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 1aec126bb..0b224a8cf 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() {
- Object.defineProperty(arguments, "0", {
- value: 10,
- writable: false,
- enumerable: true,
- configurable: false
- });
- try {
+(function () {
Object.defineProperty(arguments, "0", {
- enumerable: false
+ value: 10,
+ writable: false,
+ enumerable: true,
+ configurable: false
});
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyEqualTo(arguments, "0", 10);
+ try {
+ Object.defineProperty(arguments, "0", {
+ enumerable: false
+ });
+ $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");
+ verifyNotConfigurable(arguments, "0");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ 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 6c092c6ee..32abc599d 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) {
- Object.defineProperty(arguments, "0", {
- value: 10,
- writable: false,
- enumerable: false,
- configurable: false
- });
- try {
+(function (a, b, c) {
Object.defineProperty(arguments, "0", {
- configurable: true
+ value: 10,
+ writable: false,
+ enumerable: false,
+ configurable: false
});
- $ERROR("Expected an exception.");
- } catch (e) {
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ try {
+ Object.defineProperty(arguments, "0", {
+ configurable: true
+ });
+ $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 6791a73d7..0903bade7 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() {
- Object.defineProperty(arguments, "0", {
- value: 10,
- writable: false,
- enumerable: false,
- configurable: false
- });
- try {
+(function () {
Object.defineProperty(arguments, "0", {
- configurable: true
+ value: 10,
+ writable: false,
+ enumerable: false,
+ configurable: false
});
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyEqualTo(arguments, "0", 10);
+ try {
+ Object.defineProperty(arguments, "0", {
+ configurable: true
+ });
+ $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");
+ verifyNotConfigurable(arguments, "0");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ 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 184c9a58c..f5236683f 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,38 +13,37 @@ description: >
includes: [propertyHelper.js]
---*/
-(function(a, b, c) {
- function getFunc1() {
- return 10;
- }
- Object.defineProperty(arguments, "0", {
- get: getFunc1,
- enumerable: false,
- configurable: false
- });
-
- function getFunc2() {
- return 20;
- }
- try {
+(function (a, b, c) {
+ function getFunc1() {
+ return 10;
+ }
Object.defineProperty(arguments, "0", {
- get: getFunc2
+ get: getFunc1,
+ enumerable: false,
+ configurable: false
});
- $ERROR("Expected an exception.");
- } catch (e) {
- if (a !== 0) {
- $ERROR('Expected a === 0, actually ' + a);
+ function getFunc2() {
+ return 20;
}
+ 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");
+ verifyNotConfigurable(arguments, "0");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ 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 974e8ecdb..55c7428fb 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,34 +11,33 @@ description: >
includes: [propertyHelper.js]
---*/
-(function() {
- function getFunc1() {
- return 10;
- }
- Object.defineProperty(arguments, "0", {
- get: getFunc1,
- enumerable: false,
- configurable: false
- });
-
- function getFunc2() {
- return 20;
- }
- try {
+(function () {
+ function getFunc1() {
+ return 10;
+ }
Object.defineProperty(arguments, "0", {
- get: getFunc2
+ get: getFunc1,
+ enumerable: false,
+ configurable: false
});
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyEqualTo(arguments, "0", getFunc1());
+ function getFunc2() {
+ return 20;
+ }
+ try {
+ Object.defineProperty(arguments, "0", {
+ get: getFunc2
+ });
+ $ERROR("Expected an exception.");
+ } catch (e) {
+ verifyEqualTo(arguments, "0", getFunc1());
- verifyNotEnumerable(arguments, "0");
+ verifyNotEnumerable(arguments, "0");
- verifyNotConfigurable(arguments, "0");
+ verifyNotConfigurable(arguments, "0");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ 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 0b2827750..bddc9dde7 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,39 +13,38 @@ description: >
includes: [propertyHelper.js]
---*/
-(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 {
+(function (a, b, c) {
+ function getFunc() {
+ return 10;
+ }
Object.defineProperty(arguments, "0", {
- set: setFunc
+ get: getFunc,
+ set: undefined,
+ enumerable: false,
+ configurable: false
});
- $ERROR("Expected an exception.");
- } catch (e) {
- if (a !== 0) {
- $ERROR('Expected a === 0, actually ' + a);
+ function setFunc(value) {
+ this.setVerifyHelpProp = value;
}
+ 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");
+ verifyNotConfigurable(arguments, "0");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ 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 14ac5ab6a..1036ffbd6 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,35 +11,34 @@ description: >
includes: [propertyHelper.js]
---*/
-(function() {
- function getFunc() {
- return 10;
- }
- Object.defineProperty(arguments, "0", {
- get: getFunc,
- set: undefined,
- enumerable: false,
- configurable: false
- });
-
- function setFunc(value) {
- this.setVerifyHelpProp = value;
- }
- try {
+(function () {
+ function getFunc() {
+ return 10;
+ }
Object.defineProperty(arguments, "0", {
- set: setFunc
+ get: getFunc,
+ set: undefined,
+ enumerable: false,
+ configurable: false
});
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyEqualTo(arguments, "0", getFunc());
+ function setFunc(value) {
+ this.setVerifyHelpProp = value;
+ }
+ try {
+ Object.defineProperty(arguments, "0", {
+ set: setFunc
+ });
+ $ERROR("Expected an exception.");
+ } catch (e) {
+ verifyEqualTo(arguments, "0", getFunc());
- verifyNotEnumerable(arguments, "0");
+ verifyNotEnumerable(arguments, "0");
- verifyNotConfigurable(arguments, "0");
+ verifyNotConfigurable(arguments, "0");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ 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 671be8644..544a70266 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;
- }
- Object.defineProperty(arguments, "0", {
- get: getFunc,
- enumerable: true,
- configurable: false
- });
- try {
+(function (a, b, c) {
+ function getFunc() {
+ return 10;
+ }
Object.defineProperty(arguments, "0", {
- enumerable: false
+ get: getFunc,
+ enumerable: true,
+ configurable: false
});
- $ERROR("Expected an exception.");
- } catch (e) {
- if (a !== 0) {
- $ERROR('Expected a === 0, actually ' + a);
- }
- verifyEqualTo(arguments, "0", getFunc());
+ 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");
+ verifyEnumerable(arguments, "0");
- verifyNotConfigurable(arguments, "0");
+ verifyNotConfigurable(arguments, "0");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ 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 38c23592e..0075afdc5 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;
- }
- Object.defineProperty(arguments, "0", {
- get: getFunc,
- enumerable: true,
- configurable: false
- });
- try {
+(function () {
+ function getFunc() {
+ return 10;
+ }
Object.defineProperty(arguments, "0", {
- enumerable: false
+ get: getFunc,
+ enumerable: true,
+ configurable: false
});
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyEqualTo(arguments, "0", getFunc());
+ try {
+ Object.defineProperty(arguments, "0", {
+ enumerable: false
+ });
+ $ERROR("Expected an exception.");
+ } catch (e) {
+ verifyEqualTo(arguments, "0", getFunc());
- verifyEnumerable(arguments, "0");
+ verifyEnumerable(arguments, "0");
- verifyNotConfigurable(arguments, "0");
+ verifyNotConfigurable(arguments, "0");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ 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 845cc0173..0eb4b5756 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,21 +12,17 @@ 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
+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
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 de6eda229..3c42e298d 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 04174e0bc..4f28e9379 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;
- }
- Object.defineProperty(arguments, "0", {
- get: getFunc,
- enumerable: true,
- configurable: false
- });
- try {
+(function (a, b, c) {
+ function getFunc() {
+ return 0;
+ }
Object.defineProperty(arguments, "0", {
- configurable: true
+ get: getFunc,
+ enumerable: true,
+ configurable: false
});
- $ERROR("Expected an exception.");
- } catch (e) {
- if (a !== 0) {
- $ERROR('Expected a === 0, actually ' + a);
- }
- verifyEqualTo(arguments, "0", getFunc());
+ 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");
+ verifyEnumerable(arguments, "0");
- verifyNotConfigurable(arguments, "0");
+ verifyNotConfigurable(arguments, "0");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ 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 89f3607be..2b7c8baaf 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;
- }
- Object.defineProperty(arguments, "0", {
- get: getFunc,
- enumerable: true,
- configurable: false
- });
- try {
+(function () {
+ function getFunc() {
+ return 10;
+ }
Object.defineProperty(arguments, "0", {
- configurable: true
+ get: getFunc,
+ enumerable: true,
+ configurable: false
});
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyEqualTo(arguments, "0", getFunc());
+ try {
+ Object.defineProperty(arguments, "0", {
+ configurable: true
+ });
+ $ERROR("Expected an exception.");
+ } catch (e) {
+ verifyEqualTo(arguments, "0", getFunc());
- verifyEnumerable(arguments, "0");
+ verifyEnumerable(arguments, "0");
- verifyNotConfigurable(arguments, "0");
+ verifyNotConfigurable(arguments, "0");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ 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 68f714814..205a5dc25 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,22 +12,23 @@ 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 6dc4637f9..8bfc2369c 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,19 +12,20 @@ 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 2abc9a5ca..6d81eb5f8 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,30 +13,28 @@ description: >
includes: [propertyHelper.js]
---*/
-(function(a, b, c) {
- delete 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: false,
+ configurable: false
+ });
+ if (a !== 0) {
+ $ERROR('Expected a === 0, actually ' + a);
+ }
+ verifyEqualTo(arguments, "0", getFunc());
- function getFunc() {
- return 10;
- }
+ verifyWritable(arguments, "0", "setVerifyHelpProp");
- 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());
+ verifyNotEnumerable(arguments, "0");
- verifyWritable(arguments, "0", "setVerifyHelpProp");
-
- 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.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-302.js
index fd92a564f..516c7d377 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,27 +12,25 @@ description: >
includes: [propertyHelper.js]
---*/
-(function() {
- delete arguments[0];
+(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 getFunc() {
- return 10;
- }
+ verifyWritable(arguments, "0", "setVerifyHelpProp");
- function setFunc(value) {
- this.setVerifyHelpProp = value;
- }
- Object.defineProperty(arguments, "0", {
- get: getFunc,
- set: setFunc,
- enumerable: false,
- configurable: false
- });
- verifyEqualTo(arguments, "0", getFunc());
+ verifyNotEnumerable(arguments, "0");
- verifyWritable(arguments, "0", "setVerifyHelpProp");
-
- 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-303.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-303.js
index 33605ec77..2b8de6f01 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,27 +12,26 @@ description: >
includes: [propertyHelper.js]
---*/
-(function() {
- function getFunc1() {
- return 10;
- }
- Object.defineProperty(arguments, "0", {
- get: getFunc1,
- enumerable: true,
- configurable: true
- });
+(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 getFunc2() {
- return 20;
- }
- Object.defineProperty(arguments, "0", {
- get: getFunc2,
- enumerable: false,
- configurable: false
- });
- verifyEqualTo(arguments, "0", getFunc2());
+ 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-304.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-304.js
index c775554ae..0700b56e0 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,18 +12,19 @@ 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 e02038bfa..4c7193201 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() {
- Object.defineProperty(arguments, "0", {
- value: 0,
- writable: false,
- configurable: false
- });
-
- try {
+(function () {
Object.defineProperty(arguments, "0", {
- value: 10
+ value: 0,
+ writable: false,
+ configurable: false
});
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyEqualTo(arguments, "0", 0);
- verifyNotWritable(arguments, "0");
+ try {
+ Object.defineProperty(arguments, "0", {
+ value: 10
+ });
+ $ERROR("Expected an exception.");
+ } catch (e) {
+ verifyEqualTo(arguments, "0", 0);
- verifyNotEnumerable(arguments, "0");
+ verifyNotWritable(arguments, "0");
- verifyNotConfigurable(arguments, "0");
+ verifyNotEnumerable(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 5cd489d47..93ba566f1 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() {
- Object.defineProperty(arguments, "0", {
- value: 0,
- writable: false,
- enumerable: false,
- configurable: false
- });
- try {
+(function () {
Object.defineProperty(arguments, "0", {
- writable: true
+ value: 0,
+ writable: false,
+ enumerable: false,
+ configurable: false
});
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyEqualTo(arguments, "0", 0);
+ try {
+ Object.defineProperty(arguments, "0", {
+ writable: true
+ });
+ $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");
+ verifyNotConfigurable(arguments, "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-307.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-307.js
index 043ae972f..82bdebdbf 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() {
- Object.defineProperty(arguments, "0", {
- value: 0,
- writable: false,
- enumerable: true,
- configurable: false
- });
- try {
+(function () {
Object.defineProperty(arguments, "0", {
- enumerable: false
+ value: 0,
+ writable: false,
+ enumerable: true,
+ configurable: false
});
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyEqualTo(arguments, "0", 0);
+ try {
+ Object.defineProperty(arguments, "0", {
+ enumerable: false
+ });
+ $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");
+ verifyNotConfigurable(arguments, "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-308.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-308.js
index 33aff6bdb..d38bd2a2a 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() {
- Object.defineProperty(arguments, "0", {
- value: 0,
- writable: false,
- enumerable: false,
- configurable: false
- });
- try {
+(function () {
Object.defineProperty(arguments, "0", {
- configurable: true
+ value: 0,
+ writable: false,
+ enumerable: false,
+ configurable: false
});
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyEqualTo(arguments, "0", 0);
+ try {
+ Object.defineProperty(arguments, "0", {
+ configurable: true
+ });
+ $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");
+ verifyNotConfigurable(arguments, "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-309.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-309.js
index f35c9908c..cc26f96be 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,34 +12,33 @@ description: >
includes: [propertyHelper.js]
---*/
-(function() {
- function getFunc1() {
- return 0;
- }
- Object.defineProperty(arguments, "0", {
- get: getFunc1,
- enumerable: false,
- configurable: false
- });
-
- function getFunc2() {
- return 10;
- }
- try {
+(function () {
+ function getFunc1() {
+ return 0;
+ }
Object.defineProperty(arguments, "0", {
- get: getFunc2
+ get: getFunc1,
+ enumerable: false,
+ configurable: false
});
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyEqualTo(arguments, "0", getFunc1());
+ function getFunc2() {
+ return 10;
+ }
+ try {
+ Object.defineProperty(arguments, "0", {
+ get: getFunc2
+ });
+ $ERROR("Expected an exception.");
+ } catch (e) {
+ verifyEqualTo(arguments, "0", getFunc1());
- verifyNotEnumerable(arguments, "0");
+ verifyNotEnumerable(arguments, "0");
- verifyNotConfigurable(arguments, "0");
+ verifyNotConfigurable(arguments, "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-31.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-31.js
index 5ba147afa..3a2098e1e 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 69301af5f..bc48c6d5c 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,35 +12,34 @@ description: >
includes: [propertyHelper.js]
---*/
-(function() {
- function getFunc() {
- return 0;
- }
- Object.defineProperty(arguments, "0", {
- get: getFunc,
- set: undefined,
- enumerable: false,
- configurable: false
- });
-
- function setFunc(value) {
- this.setVerifyHelpProp = value;
- }
- try {
+(function () {
+ function getFunc() {
+ return 0;
+ }
Object.defineProperty(arguments, "0", {
- set: setFunc
+ get: getFunc,
+ set: undefined,
+ enumerable: false,
+ configurable: false
});
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyEqualTo(arguments, "0", getFunc());
+ function setFunc(value) {
+ this.setVerifyHelpProp = value;
+ }
+ try {
+ Object.defineProperty(arguments, "0", {
+ set: setFunc
+ });
+ $ERROR("Expected an exception.");
+ } catch (e) {
+ verifyEqualTo(arguments, "0", getFunc());
- verifyNotEnumerable(arguments, "0");
+ verifyNotEnumerable(arguments, "0");
- verifyNotConfigurable(arguments, "0");
+ verifyNotConfigurable(arguments, "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-311.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-311.js
index 4d574987c..ab56a5add 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;
- }
- Object.defineProperty(arguments, "0", {
- get: getFunc,
- enumerable: true,
- configurable: false
- });
- try {
+(function () {
+ function getFunc() {
+ return 0;
+ }
Object.defineProperty(arguments, "0", {
- enumerable: false
+ get: getFunc,
+ enumerable: true,
+ configurable: false
});
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyEqualTo(arguments, "0", getFunc());
+ try {
+ Object.defineProperty(arguments, "0", {
+ enumerable: false
+ });
+ $ERROR("Expected an exception.");
+ } catch (e) {
+ verifyEqualTo(arguments, "0", getFunc());
- verifyEnumerable(arguments, "0");
+ verifyEnumerable(arguments, "0");
- verifyNotConfigurable(arguments, "0");
+ verifyNotConfigurable(arguments, "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-312.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-312.js
index a78e3f2c5..68a0e4479 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,28 +12,29 @@ description: >
includes: [propertyHelper.js]
---*/
-(function() {
- function getFunc() {}
- Object.defineProperty(arguments, "0", {
- get: getFunc,
- enumerable: true,
- configurable: false
- });
- try {
+(function () {
+ function getFunc() {
+ }
Object.defineProperty(arguments, "0", {
- configurable: true
+ get: getFunc,
+ enumerable: true,
+ configurable: false
});
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyEqualTo(arguments, "0", getFunc());
+ try {
+ Object.defineProperty(arguments, "0", {
+ configurable: true
+ });
+ $ERROR("Expected an exception.");
+ } catch (e) {
+ verifyEqualTo(arguments, "0", getFunc());
- verifyEnumerable(arguments, "0");
+ verifyEnumerable(arguments, "0");
- verifyNotConfigurable(arguments, "0");
+ verifyNotConfigurable(arguments, "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-313-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-313-1.js
index 7e90583b8..7385b374d 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,18 +11,19 @@ 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 05d378ee2..cbe180e17 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,18 +11,19 @@ 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 8ed0c58c0..97b466ce6 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,25 +11,24 @@ description: >
includes: [propertyHelper.js]
---*/
-(function(a, b, c) {
- function getFunc() {
- return "getFunctionString";
- }
+(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 setFunc(value) {
- this.testgetFunction = value;
- }
- Object.defineProperty(arguments, "genericProperty", {
- get: getFunc,
- set: setFunc,
- enumerable: true,
- configurable: true
- });
- verifyEqualTo(arguments, "genericProperty", getFunc());
+ verifyWritable(arguments, "genericProperty", "testgetFunction");
- verifyWritable(arguments, "genericProperty", "testgetFunction");
+ 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.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-314.js
index 916707797..a7ea9e957 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,25 +11,24 @@ description: >
includes: [propertyHelper.js]
---*/
-(function() {
- function getFunc() {
- return "getFunctionString";
- }
+(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 setFunc(value) {
- this.testgetFunction = value;
- }
- Object.defineProperty(arguments, "genericProperty", {
- get: getFunc,
- set: setFunc,
- enumerable: true,
- configurable: true
- });
- verifyEqualTo(arguments, "genericProperty", getFunc());
+ verifyWritable(arguments, "genericProperty", "testgetFunction");
- verifyWritable(arguments, "genericProperty", "testgetFunction");
+ 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-315-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-315-1.js
index a223dc3d4..d809fe96b 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,40 +11,38 @@ 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 023026644..a6986d75b 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,36 +11,34 @@ description: >
includes: [propertyHelper.js]
---*/
-(function() {
- Object.defineProperty(arguments, "genericProperty", {
- get: function() {
- return 1001;
- },
- set: function(value) {
- this.testgetFunction1 = value;
- },
- enumerable: true,
- configurable: true
- });
+(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 getFunc() {
- return "getFunctionString";
- }
+ verifyWritable(arguments, "genericProperty", "testgetFunction");
- function setFunc(value) {
- this.testgetFunction = value;
- }
- Object.defineProperty(arguments, "genericProperty", {
- get: getFunc,
- set: setFunc,
- enumerable: false,
- configurable: false
- });
- verifyEqualTo(arguments, "genericProperty", getFunc());
+ verifyNotEnumerable(arguments, "genericProperty");
- verifyWritable(arguments, "genericProperty", "testgetFunction");
-
- 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-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-316-1.js
index 3b84cf6e3..e412d2e31 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,23 +11,24 @@ 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 5383d137e..0b80a5b24 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,23 +11,24 @@ 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 b8263cf93..542b7ca83 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) {
- Object.defineProperty(arguments, "genericProperty", {
- value: 1001,
- writable: false,
- configurable: false
- });
- try {
+(function (a, b, c) {
Object.defineProperty(arguments, "genericProperty", {
- value: 1002
+ value: 1001,
+ writable: false,
+ configurable: false
});
- $ERROR("Expected an exception.");
- } catch (e) {
- if (b !== 2) {
- $ERROR('Expected "b === 2;", actually ' + b);
- }
+ 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);
+ verifyEqualTo(arguments, "genericProperty", 1001);
- 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-317.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-317.js
index 737aa02bd..829f23872 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() {
- Object.defineProperty(arguments, "genericProperty", {
- value: 1001,
- writable: false,
- configurable: false
- });
- try {
+(function () {
Object.defineProperty(arguments, "genericProperty", {
- value: 1002
+ value: 1001,
+ writable: false,
+ configurable: false
});
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyEqualTo(arguments, "genericProperty", 1001);
+ try {
+ Object.defineProperty(arguments, "genericProperty", {
+ value: 1002
+ });
+ $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");
+ 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-318-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-318-1.js
index 563f91211..15a8a573a 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) {
- Object.defineProperty(arguments, "genericProperty", {
- writable: false,
- configurable: false
- });
- try {
+(function (a, b, c) {
Object.defineProperty(arguments, "genericProperty", {
- writable: true
+ writable: false,
+ configurable: false
});
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyEqualTo(arguments, "genericProperty", undefined);
+ try {
+ Object.defineProperty(arguments, "genericProperty", {
+ writable: true
+ });
+ $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-318.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-318.js
index 8ffe4fac9..68dd7dd69 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() {
- Object.defineProperty(arguments, "genericProperty", {
- writable: false,
- configurable: false
- });
- try {
+(function () {
Object.defineProperty(arguments, "genericProperty", {
- writable: true
+ writable: false,
+ configurable: false
});
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyEqualTo(arguments, "genericProperty", undefined);
+ try {
+ Object.defineProperty(arguments, "genericProperty", {
+ writable: true
+ });
+ $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 43ba1dee9..070ea10a9 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) {
- Object.defineProperty(arguments, "genericProperty", {
- enumerable: true,
- configurable: false
- });
- try {
+(function (a, b, c) {
Object.defineProperty(arguments, "genericProperty", {
- enumerable: false
+ enumerable: true,
+ configurable: false
});
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyEqualTo(arguments, "genericProperty", undefined);
+ try {
+ Object.defineProperty(arguments, "genericProperty", {
+ enumerable: false
+ });
+ $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 4df5a0c9b..50697d9d2 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() {
- Object.defineProperty(arguments, "genericProperty", {
- enumerable: true,
- configurable: false
- });
- try {
+(function () {
Object.defineProperty(arguments, "genericProperty", {
- enumerable: false
+ enumerable: true,
+ configurable: false
});
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyEqualTo(arguments, "genericProperty", undefined);
+ try {
+ Object.defineProperty(arguments, "genericProperty", {
+ enumerable: false
+ });
+ $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-32.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-32.js
index 127cf711d..858591bc5 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 abf523f65..aa9cb3e7f 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) {
- Object.defineProperty(arguments, "genericProperty", {
- configurable: false
- });
- try {
+(function (a, b, c) {
Object.defineProperty(arguments, "genericProperty", {
- configurable: true
+ configurable: false
});
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyEqualTo(arguments, "genericProperty", undefined);
+ try {
+ Object.defineProperty(arguments, "genericProperty", {
+ configurable: true
+ });
+ $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-320.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-320.js
index 67d041b9f..a1d0b7318 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() {
- Object.defineProperty(arguments, "genericProperty", {
- configurable: false
- });
- try {
+(function () {
Object.defineProperty(arguments, "genericProperty", {
- configurable: true
+ configurable: false
});
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyEqualTo(arguments, "genericProperty", undefined);
+ try {
+ Object.defineProperty(arguments, "genericProperty", {
+ configurable: true
+ });
+ $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 c1cd750ee..5b8195c0f 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,42 +12,41 @@ description: >
includes: [propertyHelper.js]
---*/
-(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 {
+(function (a, b, c) {
+ function getFunc() {
+ return "genericPropertyString";
+ }
+ function setFunc(value) {
+ this.helpVerifyGet = value;
+ }
Object.defineProperty(arguments, "genericProperty", {
- get: function() {
- return "overideGenericPropertyString";
- }
+ get: getFunc,
+ set: setFunc,
+ configurable: false
});
- $ERROR("Expected an exception.");
- } catch (e) {
- if (a !== 1) {
- $ERROR('Expected a === 1, actually ' + a);
- }
+ 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());
+ verifyEqualTo(arguments, "genericProperty", getFunc());
- verifyWritable(arguments, "genericProperty", "helpVerifyGet");
+ verifyWritable(arguments, "genericProperty", "helpVerifyGet");
- 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.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-321.js
index 18efcbf7e..66a537da7 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,38 +11,37 @@ description: >
includes: [propertyHelper.js]
---*/
-(function() {
- function getFunc() {
- return "genericPropertyString";
- }
-
- function setFunc(value) {
- this.helpVerifyGet = value;
- }
- Object.defineProperty(arguments, "genericProperty", {
- get: getFunc,
- set: setFunc,
- configurable: false
- });
- try {
+(function () {
+ function getFunc() {
+ return "genericPropertyString";
+ }
+ function setFunc(value) {
+ this.helpVerifyGet = value;
+ }
Object.defineProperty(arguments, "genericProperty", {
- get: function() {
- return "overideGenericPropertyString";
- }
+ get: getFunc,
+ set: setFunc,
+ configurable: false
});
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyEqualTo(arguments, "genericProperty", getFunc());
+ try {
+ Object.defineProperty(arguments, "genericProperty", {
+ get: function () {
+ return "overideGenericPropertyString";
+ }
+ });
+ $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");
+ 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-322-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-322-1.js
index b4da0dc39..16a87c954 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;
- }
- Object.defineProperty(arguments, "genericProperty", {
- set: setFunc,
- configurable: false
- });
- try {
+(function (a, b, c) {
+ function setFunc(value) {
+ this.genericPropertyString = value;
+ }
Object.defineProperty(arguments, "genericProperty", {
- set: function(value) {
- this.genericPropertyString1 = value;
- }
+ set: setFunc,
+ configurable: false
});
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyWritable(arguments, "genericProperty", "genericPropertyString");
+ try {
+ Object.defineProperty(arguments, "genericProperty", {
+ set: function (value) {
+ this.genericPropertyString1 = value;
+ }
+ });
+ $ERROR("Expected an exception.");
+ } catch (e) {
+ verifyWritable(arguments, "genericProperty", "genericPropertyString");
- 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-322.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-322.js
index b14567fe7..f8597ced1 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;
- }
- Object.defineProperty(arguments, "genericProperty", {
- set: setFunc,
- configurable: false
- });
- try {
+(function () {
+ function setFunc(value) {
+ this.genericPropertyString = value;
+ }
Object.defineProperty(arguments, "genericProperty", {
- set: function(value) {
- this.genericPropertyString1 = value;
- }
+ set: setFunc,
+ configurable: false
});
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyWritable(arguments, "genericProperty", "genericPropertyString");
+ try {
+ Object.defineProperty(arguments, "genericProperty", {
+ set: function (value) {
+ this.genericPropertyString1 = value;
+ }
+ });
+ $ERROR("Expected an exception.");
+ } catch (e) {
+ verifyWritable(arguments, "genericProperty", "genericPropertyString");
- 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-323-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-323-1.js
index 9f6c3f0e9..14ce76e95 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;
- }
- Object.defineProperty(arguments, "genericProperty", {
- set: setFunc,
- enumerable: true,
- configurable: false
- });
- try {
+(function (a, b, c) {
+ function setFunc(value) {
+ this.genericPropertyString = value;
+ }
Object.defineProperty(arguments, "genericProperty", {
- enumerable: false
+ set: setFunc,
+ enumerable: true,
+ configurable: false
});
- $ERROR("Expected an exception.");
- } catch (e) {
- if (c !== 3) {
- $ERROR('Expected c === 3, actually ' + c);
- }
- verifyWritable(arguments, "genericProperty", "genericPropertyString");
+ 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");
+ 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-323.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-323.js
index b7104257d..905770f05 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;
- }
- Object.defineProperty(arguments, "genericProperty", {
- set: setFunc,
- enumerable: true,
- configurable: false
- });
- try {
+(function () {
+ function setFunc(value) {
+ this.genericPropertyString = value;
+ }
Object.defineProperty(arguments, "genericProperty", {
- enumerable: false
+ set: setFunc,
+ enumerable: true,
+ configurable: false
});
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyWritable(arguments, "genericProperty", "genericPropertyString");
+ try {
+ Object.defineProperty(arguments, "genericProperty", {
+ enumerable: false
+ });
+ $ERROR("Expected an exception.");
+ } catch (e) {
+ verifyWritable(arguments, "genericProperty", "genericPropertyString");
- 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-324-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-324-1.js
index ef6ec1c0d..846f093a5 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;
- }
- Object.defineProperty(arguments, "genericProperty", {
- set: setFunc,
- configurable: false
- });
- try {
+(function (a, b, c) {
+ function setFunc(value) {
+ this.genericPropertyString = value;
+ }
Object.defineProperty(arguments, "genericProperty", {
- configurable: true
+ set: setFunc,
+ configurable: false
});
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyWritable(arguments, "genericProperty", "genericPropertyString");
+ try {
+ Object.defineProperty(arguments, "genericProperty", {
+ configurable: true
+ });
+ $ERROR("Expected an exception.");
+ } catch (e) {
+ verifyWritable(arguments, "genericProperty", "genericPropertyString");
- 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-324.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-324.js
index 0986e4a5b..7d5eacf71 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;
- }
- Object.defineProperty(arguments, "genericProperty", {
- set: setFunc,
- configurable: false
- });
- try {
+(function () {
+ function setFunc(value) {
+ this.genericPropertyString = value;
+ }
Object.defineProperty(arguments, "genericProperty", {
- configurable: true
+ set: setFunc,
+ configurable: false
});
- $ERROR("Expected an exception.");
- } catch (e) {
- verifyWritable(arguments, "genericProperty", "genericPropertyString");
+ try {
+ Object.defineProperty(arguments, "genericProperty", {
+ configurable: true
+ });
+ $ERROR("Expected an exception.");
+ } catch (e) {
+ verifyWritable(arguments, "genericProperty", "genericPropertyString");
- 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);
+ }
- }
- 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 2c3f0c653..e91a4651c 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,17 +11,15 @@ 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 f710f39c0..b0204f081 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,17 +10,15 @@ 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 64001fbf3..4ec0121f3 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 b23770c5b..97d2ddcc7 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 88c5d3641..70c4b2669 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 adbb6100a..b184812e7 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 e5f3df8a8..0f95d6cf5 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 aeebc3870..98ef3f69f 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 7f7a95b71..86300a83e 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 9bea7a897..80b01079f 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 40a30010e..b67a2a2e2 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,3 +31,4 @@ 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 672ddb6d7..226f17c35 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 a52e55457..e8a45d3f6 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 b6353b226..d91292788 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,3 +31,4 @@ 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 5b416a760..a74dc8fda 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,3 +33,4 @@ 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 e5f4c63c3..1779e740b 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 cff0a8b7e..cb4f8fa5e 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 0d2f0a3a2..955b03487 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,3 +31,4 @@ 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 b32f5fc53..128da1b7d 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,3 +31,4 @@ 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 4cebcc068..da792059f 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,3 +33,4 @@ 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 7d87b54c0..de964513d 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 cfe91358e..fc22ccde7 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 b6e4a6cf4..f4322915e 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 eebfebf57..d7a4f1ec5 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 e67228041..61256748e 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 c62c50d2f..a09c71134 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 356445fd6..45425687a 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 5cbb3950e..f4523b9af 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 2694ee194..d2efb019b 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 4188ac5df..dedf8ce8f 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 ce959873b..35d2aa614 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 8a1123417..1cce212b2 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 b275043fb..323bd5e01 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 f87c237eb..d54903654 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 c2515c453..1a2324b5f 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 6544fcaf9..3ccac9871 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 c3bfa8cb8..7d9169e97 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 c78933d70..6e61cad2d 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 367859f22..8909632d9 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 edbeeae3b..ecd43d652 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 5356d0e82..dcefdd011 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 fb067ad3a..90804ded5 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 bbcfa17b5..5572ca864 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 198074994..b6f3fb3b3 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 bdc583e44..ad0446494 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 a4a48f90b..4007343fa 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 c3a7ec650..e06bcef7a 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 f6ce4a256..7f90efce2 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 250dde1b0..ec5df9f4e 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,3 +31,4 @@ 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 61ff2684d..6d6912d72 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,3 +31,4 @@ 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 0ee0d5a4e..1e2c2184e 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,3 +31,4 @@ 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 780fee5e5..ac85dafe0 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,3 +33,4 @@ 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 ad1e8d85e..597b7454a 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,11 +13,12 @@ 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 7432ccdd3..351aab70e 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 46bf18f41..5ee6d41a8 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,3 +31,4 @@ 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 f1f5cb86c..6a32d0ca0 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,3 +32,4 @@ 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 0b48c16cc..641f44ad2 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 81fb76e89..5755ad6d1 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 712fde363..ffe8e1a3b 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 e764e8b28..7b08f6ee6 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 abcbdcef6..c31bf7e1b 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 88a79a479..7af95b48c 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 867414802..e475c264e 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 6536821e1..cae4f4c7f 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 ab6dedcd9..207e87585 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 1d4d3db75..68d77e7cc 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 ca58ca4fb..c7cf7e7f2 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 b47a62077..29ab089dc 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 ea0f6506d..87d14d4fb 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 bee8167d3..3e68d2ec7 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 069e007cf..72b34e7d0 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 d13e35646..1e5d40c2e 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 17f928bda..0a34bd053 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 75f086e41..2bca77ac7 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 81006c4b8..e64f411e9 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 95b7014a5..1b8309916 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 9b9e0cb18..2626b69fa 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 96db2fbed..a9caeef64 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 d0a0fb9bb..1950c4a80 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 96bbf30e2..c27cbbc78 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 84042d502..96e8bc9e2 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 9cff15820..ce74180fd 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 706fe0181..23d887263 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 f430e1e2b..7e32a7a11 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 8e7e19a67..90e0d9d9f 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,23 +9,22 @@ 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 93537a5ae..1af367932 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 96651adc6..310fee16e 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 7e748275d..068452b19 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 52430b44d..ca9b1ab78 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 d7b5f4561..8d52b1bb0 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 8a2d9ccfd..0489a3548 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,18 +11,19 @@ includes: [propertyHelper.js]
---*/
try {
- Object.defineProperty(Math, "foo", {
- value: 12,
- configurable: true
- });
+ Object.defineProperty(Math, "foo", {
+ value: 12,
+ configurable: true
+ });
+
+ verifyEqualTo(Math, "foo", 12);
- verifyEqualTo(Math, "foo", 12);
+ verifyNotWritable(Math, "foo");
- verifyNotWritable(Math, "foo");
+ verifyNotEnumerable(Math, "foo");
- verifyNotEnumerable(Math, "foo");
-
- verifyConfigurable(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 5cb151869..8797d6d55 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 51ed16c60..93a371d41 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 705e91afd..6a13ff503 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 38d55b278..16e5e19d0 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 e7a3c51c8..cf51444dd 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 d4dc8814d..397487f5c 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,16 +8,14 @@ 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 112cd69dd..44f100f09 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 8da74faf3..0e8c8b77d 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 9287bc675..cef375818 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 464ff9ea7..4777b4566 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 62173de61..8e26fa442 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 6025d9fae..c60d8330b 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 d43ce7655..4d8b67005 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 79cf9e516..dd614a623 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 8d32bbf87..2d00d4687 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 51fdeaec1..f5e858877 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 a37d12bb3..de734ce6d 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 165689aee..2fb0eff84 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 92f7a3531..e368a8e9b 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 62911ed65..c3aadc108 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 00ce04677..0967e3d18 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 8cbf79c11..83d8922f6 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 o = {};
+
+ var desc = {};
+ Object.defineProperty(o, "foo", desc);
-var desc = {};
-Object.defineProperty(o, "foo", desc);
+ var propDesc = Object.getOwnPropertyDescriptor(o, "foo");
-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
+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 1ce253431..bfff5ac93 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 13ebd7a1f..1ef35f2bc 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 9039016e7..989f5d5e9 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 bae93ad81..5cd579892 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 a6baa7252..3f7a50438 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
-});
+ Object.defineProperty(Number.prototype, "prop", {
+ value: 1001,
+ writable: false,
+ enumerable: false,
+ configurable: true
+ });
+
+ var numObj = new Number();
-var numObj = new Number();
-
-assert(!numObj.hasOwnProperty("prop"));
-verifyNotWritable(numObj, "prop", "noCheckOwnProp");
+ 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 b68b6c4cc..25ede11d5 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 4b5f67bb6..eeabd495e 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 d7d291df0..c1223a55c 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 3966b302f..8dd96da0b 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 b9c4cb1be..83b86dbd7 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,3 +25,4 @@ 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 d8efd15d9..7c7a84256 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 c19bd7905..b8d82ce40 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 e9fc63842..03459242f 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 c168e5eb8..9c832eed1 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 801915c95..d0d7f1ea4 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 74596c8c6..fa7a07c40 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 2d8308868..510662766 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 d43581a35..6df596d40 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 cf49b910a..d2c0ab532 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 b1ff3a222..e175d090f 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 94147d9ee..2ca95325b 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 61e0d7a4a..f403f9b34 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 8bfc1a459..120ffe0fd 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 d616795c4..af1d66714 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 22145fef6..8f3e9ae5b 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 ef50f24f1..1cfca488e 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 86e8a7d0d..f088516cc 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 f8d02fa44..645d4286b 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 e891baa30..0aad297c2 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 df07ef319..1e52d201b 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 a81c5f63d..3501ac669 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 bf28f6e87..4146385ec 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,18 +9,16 @@ 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 bd0f2560d..315581b82 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 f80f41183..ad0e57ba9 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 6e03e42e4..dc57d00b1 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 8cf33d7cd..e374de5ab 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 30d4a3257..b767db801 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 3ed0e6ee8..c95379168 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 2bdca2dc7..56a876802 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 b12de9e8b..1ad84c659 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 68fc31929..54ea036a5 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 885ea7fad..ce40ec27b 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 3f07f5fad..cbdec5470 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 039993477..2a44e2278 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 2faca9506..72f9bf32f 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 c1ebaabbe..b20c7d664 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 8868623ca..06fe5d84f 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 80cf08840..2e29668de 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 5d4b94e6a..83a537a9c 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 29400f464..9e464a5eb 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 890d97d88..c86437c68 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 3a3fb7f0d..8454c88fe 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 20fabf0ab..8f846042f 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 879174ee5..8b3da549b 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 01ccab698..ef9fb05c2 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 e180f9c4c..c673a5394 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 1dc9a7a40..c0780c55b 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 80fc87b8b..52e445972 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 8626d0143..baad82466 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 e6c683654..d909bfd1d 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);
+ 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-457.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-457.js
index 9cdb490ad..7f90aa379 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 c069ec8e4..97868514a 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 e0c30c91f..7f5fbeb97 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 4fbc77bcf..6bb80f608 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 fdae5fabf..0ff4a8016 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 95a8fa78c..0def8453a 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 63380aa1b..3e1a0de3b 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 c23898424..2df1dddc7 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 28eecc8f0..bd4d6d709 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 52e31f678..a3f5ed2ea 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 b89d8d49d..9bbd3affe 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 66de51eda..9bd1e448e 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 f79b26f7e..0ad4ce436 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 b492d13ca..391bbf7ae 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 079b50517..2dc07f0c5 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,3 +25,4 @@ 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 d725daa99..9686379c5 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 1edb26951..1d0099628 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 c22ce621a..1502c79c1 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 ab525133f..a9c65d14d 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 27355b6c5..c3b2af60e 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 77b5946d7..1ea58556c 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 5ca6b3223..c9203cdd7 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 965e6c0f9..0285a1f9b 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 8d604495f..519d80e7b 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 2625d302c..8faf0c6c1 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 14b658aad..6b57a7c2c 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,3 +25,4 @@ 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 0fdba161c..d3c67c802 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 f9219bfc3..a876dad7e 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 502550fcf..a0ed01131 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 f957a1dd0..5ff0c4423 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 000f16cd3..92329f3d7 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 de21112f7..2a1a18a85 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 40f2608fa..2f5f0e3b0 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 d3f9ccc5d..8aaf8e2ba 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 feb156428..1f310fae3 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 8b09d6cc8..18e561052 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 98db24fdd..8bbe80ad4 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,3 +24,4 @@ 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 2ce9c7276..a397f74ee 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 db3c1fba4..04c26899b 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 1cdf9be44..8365a46aa 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 6d9039cb3..8e51a7fd8 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 aa2ca2bc5..307059771 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 88e0b13c0..924720e5e 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 01e69ac78..2e63e773b 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 56cd7c4d0..f2079be32 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 dc83bf088..2289b4393 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 23e5d1856..d07f52810 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 8ce00687b..1bafed8ad 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,33 +13,28 @@ 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 71b2c8d1a..efe6ef67f 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,3 +24,4 @@ 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 aee530e20..ed20f1ac7 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 8e08bb907..6e0b509f6 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 e34e339b3..7a2ef9839 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 88f45cc23..76320b704 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 9de8384ee..f1534efb0 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 0d4931588..f15171ddc 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 0156fa1ba..402a33861 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 96f2c3ff3..f5ffda634 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 c355e64e1..5aba3d35e 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 4a5aaa080..697a1b3c4 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 58b2ff240..c5866cbee 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,15 +9,13 @@ 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);
@@ -27,3 +25,4 @@ 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 1ca3ab85a..41e43cbeb 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 04577039c..d3c44cf0b 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 3aae36099..c7627d864 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 8e7a5afc6..f44cb451a 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 09ea483b5..6b80aa137 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 68f8ec750..b87f8abd5 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 29e30b240..523204109 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 fd7bd5d47..d47836e41 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 2c04a1f97..bbf3dbf0c 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 98382e84f..ee0a43eab 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 1908bdf01..171df640c 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,3 +21,4 @@ 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 241b8ba74..166779005 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 56745554a..26ed78b25 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 95715c56e..7b4a2b78a 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 2423be8bf..8c1377dc0 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 0020bc962..2bdc20ca6 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 c1320bc65..1ac4af8f8 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 f861fa1c0..620c61a24 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 d7174363b..a1cc85f9a 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 12189aeb1..31510895a 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);
+ 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-529.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-529.js
index 6c1379041..891797eb9 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 454f0f8f5..784f6499c 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 2a5620740..794b0bdc7 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 e24cd71d1..aec2d504d 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 9d6ac91a6..39aec7cfa 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 ed85b1d96..006eba6b0 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 2cb8b6a77..ab79cd60e 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 7d290be2d..eec71d694 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 5016c0b40..18edd69ae 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 16bd7a199..e0e3eded8 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 cc97b6371..8f6b3eaa0 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 64e8ede81..8bb261f1f 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,3 +29,4 @@ 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 f120c9fe5..ebd0d7c6c 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 bf61045fe..dcb124023 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 69e401856..ee3370eaf 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 e750f0f51..7c26ccedb 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 0bed7486f..c6acdc49d 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 9dc369ef8..7235c3f78 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 93ad10992..f3ff2e36a 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 15de96a3d..06c2d5faf 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 3b65218cc..21426bfe9 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 78d2ca97b..e33824934 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,3 +59,5 @@ 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 fdc987cfd..010ad008e 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,3 +58,5 @@ 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 5c90ba8f9..c991bea62 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 3b97da4a8..ee5808341 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,3 +54,6 @@ 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 d1ee1d3a3..6d06b7a1f 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 6fa06bee3..3d6c34dba 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 396bcfba3..65219f6d3 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;
- }
- });
+ Object.defineProperty(obj, "property", {
+ set: function (value) {
+ obj.verifySetFunction1 = value;
+ }
+ });
} catch (e) {
- if (!result) {
- $ERROR('Expected result to be true, actually ' + result);
- }
-
- verifyEqualTo(obj, "property", getFunc());
+ if (!result) {
+ $ERROR('Expected result to be true, actually ' + result);
+ }
+
+ 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-10.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-10.js
index 9b05fab44..42279065b 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 6d5e5a4fd..52c2bfe09 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;
- }
- });
+ Object.defineProperty(obj, "0", {
+ set: function (value) {
+ obj.verifySetFunction1 = value;
+ }
+ });
} catch (e) {
- if (!result) {
- $ERROR('Expected result to be true, actually ' + result);
- }
-
- verifyEqualTo(obj, "0", getFunc());
+ if (!result ) {
+ $ERROR('Expected result to be true, actually ' + result );
+ }
+
+ verifyEqualTo(obj, "0", getFunc());
- verifyWritable(obj, "0", "verifySetFunction");
+ verifyWritable(obj, "0", "verifySetFunction");
- verifyNotEnumerable(obj, "0");
+ verifyNotEnumerable(obj, "0");
- verifyNotConfigurable(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-3.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-3.js
index 0b7b5bcdc..011fb4fbb 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 4ab77fa5f..7db3da876 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 945dc58d8..04d921614 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 778a22ac5..26a9524cc 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;
- }
- });
+ Object.defineProperty(obj, "0", {
+ set: function (value) {
+ obj.verifySetFunction1 = value;
+ }
+ });
} catch (e) {
- if (!result) {
- $ERROR('Expected result to be true, actually ' + result);
- }
-
- verifyEqualTo(obj, "0", getFunc());
+ if (!result) {
+ $ERROR('Expected result to be true, actually ' + result);
+ }
+
+ verifyEqualTo(obj, "0", getFunc());
- verifyWritable(obj, "0", "verifySetFunction");
+ verifyWritable(obj, "0", "verifySetFunction");
- verifyNotEnumerable(obj, "0");
+ verifyNotEnumerable(obj, "0");
- verifyNotConfigurable(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 b953deb29..c67b0e581 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;
- }
- });
+ Object.defineProperty(obj, "prop", {
+ set: function (value) {
+ obj.verifySetFunction1 = value;
+ }
+ });
} catch (e1) {
- if (!result) {
- $ERROR('Expected result to be true, actually ' + result);
- }
-
+ if (!result) {
+ $ERROR('Expected result to be true, actually ' + result);
+ }
+
- verifyEqualTo(obj, "prop", getFunc());
+ verifyEqualTo(obj, "prop", getFunc());
- verifyWritable(obj, "prop", "verifySetFunction");
+ verifyWritable(obj, "prop", "verifySetFunction");
- verifyNotEnumerable(obj, "prop");
+ verifyNotEnumerable(obj, "prop");
- verifyNotConfigurable(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 d9df97b88..f59421aa9 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;
- }
- });
+ Object.defineProperty(obj, "0", {
+ set: function (value) {
+ obj.verifySetFunction1 = value;
+ }
+ });
} catch (e) {
- if (!result) {
- $ERROR('Expected result to be true, actually ' + result);
- }
-
- verifyEqualTo(obj, "0", getFunc());
+ if (!result ) {
+ $ERROR('Expected result to be true, actually ' + result );
+ }
+
+ verifyEqualTo(obj, "0", getFunc());
- verifyWritable(obj, "0", "verifySetFunction");
+ verifyWritable(obj, "0", "verifySetFunction");
- verifyNotEnumerable(obj, "0");
+ verifyNotEnumerable(obj, "0");
- verifyNotConfigurable(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-9.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-9.js
index b0259ddce..b2354b2e1 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 6ca07a414..141ecc9f5 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 46d603d74..4651f86e4 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 900872e59..8382e3cec 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 4f57461d9..7afe42f31 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 7e74c4f8d..c8b18272f 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 d166513f3..f6150509a 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 74dca6bda..ce460d2c0 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 359362b86..9c0d1cc4c 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 (!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"));
- }
+ verifyEqualTo(obj, "0", getFunc());
+ verifyWritable(obj, "0", "verifySetFunc");
- verifyEqualTo(obj, "0", getFunc());
+ verifyEnumerable(obj, "0");
- verifyWritable(obj, "0", "verifySetFunc");
+ verifyNotConfigurable(obj, "0");
- verifyEnumerable(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-547-2.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-547-2.js
index 6a08c62d6..dbb08ef9c 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 (!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"));
- }
+ verifyEqualTo(obj, "prop", getFunc());
+ verifyWritable(obj, "prop", "verifySetFunc");
- verifyEqualTo(obj, "prop", getFunc());
+ verifyEnumerable(obj, "prop");
- verifyWritable(obj, "prop", "verifySetFunc");
+ verifyNotConfigurable(obj, "prop");
+
- verifyEnumerable(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/defineProperty/15.2.3.6-4-547-3.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-547-3.js
index db807f2b6..3caf081e4 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 (!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"));
- }
+ verifyEqualTo(obj, "prop", getFunc());
+ verifyWritable(obj, "prop", "verifySetFunc");
- verifyEqualTo(obj, "prop", getFunc());
+ verifyEnumerable(obj, "prop");
- verifyWritable(obj, "prop", "verifySetFunc");
+ verifyNotConfigurable(obj, "prop");
- verifyEnumerable(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/defineProperty/15.2.3.6-4-547-4.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-547-4.js
index fd8fe6f5b..c7ab2851c 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 (!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 (desc2.hasOwnProperty("value")) {
- $ERROR('Expected !desc2.hasOwnProperty("value") to be true, actually ' + !desc2.hasOwnProperty("value"));
- }
+ verifyWritable(obj, "0", "verifySetFunc");
- verifyEqualTo(obj, "0", getFunc());
+ verifyEnumerable(obj, "0");
- verifyWritable(obj, "0", "verifySetFunc");
+ verifyNotConfigurable(obj, "0");
- verifyEnumerable(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-547.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-547.js
index ee342321c..a75fb8782 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 06148ad7f..fc6d76d47 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 4448f293a..a8cd117d9 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 3453d9198..4c3747d7b 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 e61cb23e6..bb17ddc1b 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 6002a2509..1cd7d71c7 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 edb2b6cb8..34fe59a86 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 ef243fdd9..62695097d 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 608f5f42f..248611615 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 89dbef084..aa5eda936 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 2ff92d6d1..0e91ba3b5 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 1c3312d01..be2d5d46c 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 9eae2cd02..1bcd85f7c 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 f0a3b8c51..f2f308b34 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 6e0ccaa92..dd42a9569 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 75751e6f3..40a31583e 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 077cfdfb4..376507ea1 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 7591887dc..874f22ea2 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 a4bc20ffa..56423191a 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 81f0cc5a5..6b205e636 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 ad1c54da4..6876df415 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 b878b5e1f..f3deecae4 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 65022ccab..b61e13a1f 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 6277ce348..9a37b39d5 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 555136872..9c1564a68 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 e94a09d88..dc56011a0 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 c06f383b7..5aa6cada3 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 7037e7c8d..308b6693b 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 84e9e1ffd..74d43c55a 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 6dff586f7..f6d79774d 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 ea9a74c7b..0d63001c6 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 d2eb6b26c..7a0601c56 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 2723d7053..36c181458 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 5d3156e76..a7bba5a0e 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 7b5c723c8..eee9a7cfe 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 c8ecdb820..e910f3335 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 4fa1be7ba..2870587d2 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,3 +22,4 @@ 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 b88e32e56..d4c99db07 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 9df0254a2..2931f9c8f 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 af5292564..7895b7455 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 88590d4b9..97b7352fd 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 c12f8d013..716431a7b 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 7a292295a..b58e59416 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 44fdf5191..37c718de9 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 2994155b0..441dfe023 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 38cb3ff2c..09d635b64 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 6bfcba317..d3c303a97 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 e8eeb3ca6..f8928ac1f 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,16 +13,15 @@ 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 58b2a46f9..3e326be2e 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 8b1eb7312..fd0e92199 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 26d450b26..40784147f 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 7d53609fa..877f17efb 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 f3194743e..8d5726679 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 f533cbdc6..2f800ac1c 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 98ba76b3d..5489deaa0 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 832008560..9a46c54cd 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 b1a5e8a5c..55420c69f 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;
- }
-}
+ for (var prop in Object) {
+ if (prop === "getPrototypeOf") {
+ isEnumerable = true;
+ }
+ }
+
+ delete Object.getPrototypeOf;
-delete Object.getPrototypeOf;
-
-var isConfigurable = !Object.hasOwnProperty("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 129ad5402..00e61a739 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 0d4c3e19f..f96e56cab 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 12e6d66da..906ae5460 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,9 +14,7 @@ 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");
@@ -24,3 +22,4 @@ 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 c9775c52f..7f1ab0b27 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;
- }
-}
+ for (var prop in Object) {
+ if (prop === "getOwnPropertyNames") {
+ isEnumerable = true;
+ }
+ }
+
+ delete Object.getOwnPropertyNames;
-delete Object.getOwnPropertyNames;
-
-var isConfigurable = !Object.hasOwnProperty("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 930b2b841..b9bcd8dc3 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;
- }
-}
+ for (var prop in Object) {
+ if (prop === "create") {
+ isEnumerable = true;
+ }
+ }
+
+ delete Object.create;
-delete Object.create;
-
-var isConfigurable = !Object.hasOwnProperty("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 61eb16bb6..d2f6f0de2 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 0fb05283a..7959a39ee 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;
- }
-}
+ for (var prop in Object) {
+ if (prop === "defineProperties") {
+ isEnumerable = true;
+ }
+ }
+
+ delete Object.defineProperties;
-delete Object.defineProperties;
-
-var isConfigurable = !Object.hasOwnProperty("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 ec234ccef..497ebad75 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;
- }
-}
+ for (var prop in Object) {
+ if (prop === "seal") {
+ isEnumerable = true;
+ }
+ }
+
+ delete Object.seal;
-delete Object.seal;
-
-var isConfigurable = !Object.hasOwnProperty("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 bf120a7f0..45952f26c 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;
- }
-}
+ for (var prop in Object) {
+ if (prop === "freeze") {
+ isEnumerable = true;
+ }
+ }
+
+ delete Object.freeze;
-delete Object.freeze;
-
-var isConfigurable = !Object.hasOwnProperty("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 7a6a177e2..a3621fdd1 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;
- }
-}
+ for (var prop in Object) {
+ if (prop === "preventExtensions") {
+ isEnumerable = true;
+ }
+ }
+
+ delete Object.preventExtensions;
-delete Object.preventExtensions;
-
-var isConfigurable = !Object.hasOwnProperty("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 0713aace0..88beb3e67 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;
- }
-}
+ for (var prop in Object) {
+ if (prop === "isSealed") {
+ isEnumerable = true;
+ }
+ }
+
+ delete Object.isSealed;
-delete Object.isSealed;
-
-var isConfigurable = !Object.hasOwnProperty("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 c16a7ad9c..f752bc678 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;
- }
-}
+ for (var prop in Object) {
+ if (prop === "isFrozen") {
+ isEnumerable = true;
+ }
+ }
+
+ delete Object.isFrozen;
-delete Object.isFrozen;
-
-var isConfigurable = !Object.hasOwnProperty("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 767111461..aa12befa7 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;
- }
-}
+ for (var prop in Object) {
+ if (prop === "isExtensible") {
+ isEnumerable = true;
+ }
+ }
+
+ delete Object.isExtensible;
-delete Object.isExtensible;
-
-var isConfigurable = !Object.hasOwnProperty("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 59ece6097..a07c7e4dd 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,13 +12,9 @@ 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");
@@ -26,3 +22,4 @@ 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 36a508a23..07cc6c4d8 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;
- }
-}
+ for (var prop in Object) {
+ if (prop === "keys") {
+ isEnumerable = true;
+ }
+ }
+
+ delete Object.keys;
-delete Object.keys;
-
-var isConfigurable = !Object.hasOwnProperty("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 65d279313..aa0a5b9ce 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;
- }
-}
+ for (var prop in Function.prototype) {
+ if (prop === "bind") {
+ isEnumerable = true;
+ }
+ }
+
+ delete Function.prototype.bind;
-delete Function.prototype.bind;
-
-var isConfigurable = !Function.prototype.hasOwnProperty("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 d643c1b20..74ff9cba3 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 b775e09e9..58bf1afa6 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 1a4b20786..cd393df4c 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 837e8922f..172758c2c 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 73a58e8dd..4a53ab993 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 64509a0a0..7e41f46c4 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 1bac706cd..27492e2e3 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 7a16d04bd..408f1417d 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 34ae7d592..6e1344b5b 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,13 +12,9 @@ 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");
@@ -26,3 +22,4 @@ 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 dc134044b..e2a9f56f5 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 547d0f7f2..b7e2ebf5c 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 6a537f6b9..c587d33d4 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 d36c2cb57..f96eb0c02 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 e95f78499..5b6abba13 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 bef1e27b4..e5285a4b9 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,17 +8,12 @@ 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 a336364bb..0c89597d3 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,13 +11,9 @@ 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 b079432a3..05cf0f67d 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,27 +12,23 @@ 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 d420ffa4e..329a9293a 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,26 +12,22 @@ 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 457c20314..128e8a607 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,9 +14,7 @@ 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");
@@ -24,3 +22,4 @@ 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 5331d82f4..b681149f4 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,13 +13,9 @@ 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");
@@ -27,3 +23,4 @@ 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 8f3f2a3ac..b2892e41b 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,9 +14,7 @@ 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");
@@ -24,3 +22,4 @@ 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 a7b26daf9..ca1faa868 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,13 +12,9 @@ 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");
@@ -26,3 +22,4 @@ 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 1c0cf64e9..036161d3a 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,23 +12,17 @@ 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 716f34d96..cc5354fdb 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,9 +14,7 @@ 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");
@@ -24,3 +22,4 @@ 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 ec1d4d9b9..e2d5ae2e3 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,17 +12,11 @@ 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");
@@ -30,3 +24,4 @@ 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 c0acc806f..1ee4fd7e5 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,18 +12,12 @@ 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");
@@ -31,3 +25,4 @@ 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 eb436b8ff..0a478b234 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,13 +12,9 @@ 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");
@@ -26,3 +22,4 @@ 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 6a413f5ab..4f20edeee 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,14 +12,9 @@ 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");
@@ -27,3 +22,4 @@ 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 833298e2a..ab6aa88b3 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,21 +13,18 @@ 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 7473dbac8..7be62f266 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,26 +13,23 @@ 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 4dbddfefa..2573a5b58 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,16 +13,12 @@ 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 e49b9787d..773592d73 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,20 +12,18 @@ 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 62476d0bc..b88d4b839 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,13 +12,9 @@ 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");
@@ -26,3 +22,4 @@ 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 90115f997..f9467c096 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,27 +14,20 @@ 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 c71b320e5..71050073a 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,14 +12,9 @@ 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");
@@ -27,3 +22,4 @@ 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 26939a862..5a7c25ec9 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,13 +12,9 @@ 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 f7e965c62..7cafbaa6f 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 ee190b024..ff1075e57 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 293711b61..e4f8e8ce9 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 7c20a6c1a..34294da07 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 d7905a3f1..120a65e49 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 d3c9a5a46..c53a47d84 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 d03591c06..fb191540c 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 5f2f3bf39..c3362692e 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 c999cf1bb..608f07aee 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 7aead07ee..80c1c7ce0 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 54fcb81c5..6e704bbbd 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 be5111135..9eead22a1 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 7ab721798..89e42a486 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 629a5e9df..0aa883113 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 cd26dfba0..d0f960060 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 137b1ba4c..1fa1daa88 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 8bb814914..676cd48a5 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 af0980148..bf0880cb3 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 0d11ba790..5a3da0fb0 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 cc9bb95f2..86cb8b09b 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 15ee855b7..818f0afeb 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 9d6c0c23b..a18058bdf 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 230531fd8..56794eab3 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 2d660c23c..fd9beee2c 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 71081cb23..ceb54f6c4 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,13 +12,9 @@ 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 6bcec607f..dd76c7c36 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 701d3ef46..1fc19e563 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 7499fb8b5..1c8a83810 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 e302bff64..5d58e5e4a 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,28 +13,26 @@ 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 a7edd420c..658c02738 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,28 +13,26 @@ 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 fb949aa34..df0b9cce9 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,15 +14,13 @@ 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 dbbf9c619..84efee09b 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,28 +13,26 @@ 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 2c3b16687..4b1db5430 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,28 +14,21 @@ 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 9466f4b07..76fd36ba7 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,14 +15,12 @@ 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 0f9ae100e..22b598ddb 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,27 +14,25 @@ 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 925c95364..407a86365 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,14 +15,12 @@ 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 867b24e24..d9cbc7563 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,27 +14,25 @@ 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 ab9e26598..d348eb05a 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,19 +14,15 @@ 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");
@@ -34,3 +30,4 @@ 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 4157be577..593676afc 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,36 +14,30 @@ 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 0f8ebadfa..db6e38287 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,17 +14,15 @@ 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 501e58cb3..4203a94f0 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 eb0f2a07c..b849e2970 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,22 +14,19 @@ 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 ee0111080..5991d786c 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 752352146..17e8b1667 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,23 +8,17 @@ 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 57e529247..00ab01527 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,25 +8,19 @@ 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 b74d2533d..f64da3594 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,20 +8,14 @@ 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 e99ebffe5..118ff856f 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,22 +8,16 @@ 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 151157c48..4042dd3da 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,12 +12,10 @@ 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 05e6aa3c1..b672f9b85 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,13 +10,8 @@ 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 c4dba3f55..0720a47f0 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 75e73145e..de90d9d6c 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 7f336d253..ec6db2ffc 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 f8843919a..09eca7b16 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 3007fe051..c3e3cc721 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 7953236d1..05ef0d512 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 d43cc5530..d80b50651 100644
--- a/test/built-ins/Object/entries/observable-operations.js
+++ b/test/built-ins/Object/entries/observable-operations.js
@@ -10,31 +10,27 @@ 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 d753ee64e..076c16777 100644
--- a/test/built-ins/Object/entries/symbols-omitted.js
+++ b/test/built-ins/Object/entries/symbols-omitted.js
@@ -13,14 +13,9 @@ 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 cea8a87bb..1ad4e18a2 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 7217292f0..10e8a6d5f 100644
--- a/test/built-ins/Object/entries/tamper-with-object-keys.js
+++ b/test/built-ins/Object/entries/tamper-with-object-keys.js
@@ -9,12 +9,10 @@ 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 261f61d80..45b5cd824 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 0d8e14854..76978ce78 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 91a2e93a1..9249c022a 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 6a97759d8..81c279ee8 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 cd3b22403..067469bcc 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 d606706a2..a60b13e98 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 8dc4b4658..18d4ea221 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 ba48691d6..61ebe20c1 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 5c171f1ac..19114667e 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 ba3d34bae..2de41643a 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 914894864..91f1c1a01 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,9 +11,7 @@ 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);
@@ -22,3 +20,4 @@ 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 ed8efa0fd..1abca86d8 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,11 +9,7 @@ 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 23e20c425..b5a0f7536 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,11 +10,9 @@ 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 f84894b00..f623c5e93 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 e8d22fca0..6a5212d02 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 598187ff9..1ffa486a1 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 6295b1f08..3f5bb5c03 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 75024a84b..4f24b0f63 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,9 +9,7 @@ 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 e4b21256b..c7dcdf73c 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 96de0e1f7..46362bcd3 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,9 +30,10 @@ 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 150f18635..5c6f4c28a 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,17 +48,18 @@ 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 ea4ad70ea..12bd46769 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,3 +37,4 @@ 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 59bdbad51..e40f69a8d 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,20 +13,19 @@ 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 5f0d7c1d2..06f74d5b6 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,3 +66,4 @@ 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 6723c16f0..53cfacb65 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 08e133137..5a7b953d7 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 4476444b0..00b492ac8 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 e361b904f..0abb0a7ee 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 160f13969..02994757c 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 bd55c8c7e..3b22cfa10 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 1b82d6561..f07460a8c 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 d8245d903..b855a071c 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 7afbbd574..34e2648c4 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 2779fd7e8..877a8ba88 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,10 +6,8 @@ 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 64a970518..be171a5d4 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 dabf74a65..68169779a 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 3bf475a59..1dd1d3350 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 8c4098a1f..4e3623cac 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 06bd2366a..bc63911fa 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 b342f2573..09b858714 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 c964e63f8..580a6811b 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 fd890bfbb..f11a5206e 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 ce7d31d50..b2713da64 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 dc5742fb7..579f005bf 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 93cd1929d..51c962ec8 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,10 +8,8 @@ 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 f21d393e1..6096a9edd 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,10 +8,8 @@ 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 75f4f8c8b..dd07bbf9d 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,10 +8,8 @@ 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 aa55b35d8..aaf67dc7e 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,10 +8,8 @@ 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 a41bb95af..4ec76de3f 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,10 +8,8 @@ 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 dd9c09a85..5550e02a1 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,10 +8,8 @@ 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 785f6861a..9806a60dc 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,10 +8,8 @@ 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 a3c9d6f18..e665e5f7b 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,10 +8,8 @@ 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 2ef0990de..52629a60e 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,10 +8,8 @@ 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 fb0f4d6db..2efc16d3a 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,10 +8,8 @@ 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 df6c5fdcb..ec8e54687 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 649393d82..b2cc6480b 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,10 +8,8 @@ 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 d56079fe2..a11547398 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,10 +8,8 @@ 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 b9dd09417..80cbf6f4e 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,10 +8,8 @@ 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 27f12e818..2398ebc57 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,10 +8,8 @@ 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 4cef9d9ea..b3cf0bb3c 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,10 +8,8 @@ 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 e4aac303b..cab2b57b4 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,10 +8,8 @@ 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 b7fdd5710..2b096d817 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,10 +8,8 @@ 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 4036580a7..9cda3a078 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,10 +8,8 @@ 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 de8d35cbc..907ef5941 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,10 +8,8 @@ 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 1ab3f7e78..345059589 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,10 +8,8 @@ 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 890f7e161..0d6b39044 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,12 +6,10 @@ 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 399b98b97..765ffb584 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,11 +8,9 @@ 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 038d7c37a..6012c8bc1 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,10 +8,8 @@ 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 dbda5e591..e3769e7bd 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,10 +8,8 @@ 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 70e270e0f..15f3eb2ae 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,10 +8,8 @@ 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 ee9bab0ba..e6eb6681e 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,10 +8,8 @@ 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 dd19c246c..d0de7e71e 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,10 +8,8 @@ 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 73a1dec32..e8fa1a164 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,10 +8,8 @@ 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 13294c6af..8fe16690b 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,10 +8,8 @@ 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 2c6dabd18..6d3ae0135 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,10 +8,8 @@ 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 f1ee178ea..92c9d4f62 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,10 +8,8 @@ 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 37174cc8b..9cdca680f 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,10 +8,8 @@ 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 d83d4dd44..d81050692 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,10 +8,8 @@ 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 fdf304e46..88ab0b4c4 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,10 +8,8 @@ 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 645b79668..ecc16066c 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,16 +8,14 @@ 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 782eff3ec..fbfb42f51 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,17 +8,14 @@ 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 5ba605c21..115f34333 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,24 +9,22 @@ 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 1df1af980..aa318dc2f 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,23 +8,20 @@ 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 9c1e96bb6..4527a76d3 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,24 +9,22 @@ 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 cd99194fd..f07c6f385 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,28 +9,25 @@ 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 5ab62d5a6..5a332dfaa 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,10 +8,8 @@ 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 f1f764c8e..66f9b1dd6 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,10 +8,8 @@ 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 0eb07a4ae..5077f4049 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,10 +8,8 @@ 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 675c6e197..0b38934c2 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,10 +8,8 @@ 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 ed5f3da40..88bd6bda1 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,10 +8,8 @@ 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 5c1f6f09e..cb66bc4f4 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 06586605d..724625909 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 da3072f64..2640e9092 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 30e82b197..d6fce8e89 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 c502df6bd..3f12ff690 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 19d53b257..09f56f6de 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 2c9e90de3..930eccc68 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 851c54d28..a01c60d49 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 01ec7c316..0baa73874 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 ad3d38a42..c2e77346d 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 564bc9312..b8caeb90d 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 82728fcea..05e0bcd20 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 e91378c74..c2f364066 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 99b4f77ad..5a6ffb8f2 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 658afee5d..d82974ad9 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 44ae3836f..78551fec9 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 ebbfc0431..dfdb37d1b 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 863357238..302bc798e 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 5c5bcb827..57806ffe6 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 c9871c201..66f69b55e 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 8332ba5c9..5643e8feb 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 3a66c0f5e..9db500843 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 467105fc7..9df5a4812 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 913855a31..fe1004579 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 a0313c2d4..8001e1dd6 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 347b69fa6..18a41a127 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 3a5449311..8410bc968 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 0b31471e4..8d7a89f55 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 3fc765308..445f7adb0 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 4e2bb6f10..c4d1aecc8 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 282a755b5..e111b361a 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 2f4e0059e..7cc8f4b45 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 b366d8e21..023c9a9ef 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 a68cf618a..bc009fc36 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 699ddb6a4..157058626 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 b6edce9c3..2915ede2a 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 072a3824c..4bd159bf5 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 ebeca9afc..6516d8917 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 281de8f6c..421ca744e 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 5e1a8e725..789e7ba06 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 69292234f..b6dcb8c6b 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 119bba91f..4d315aca0 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 32e9a2c36..ec29ff460 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 c33ec2bb5..4df71b5a7 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 d90f9e4ee..00c26597d 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 487801924..b5ff8f449 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 d2303ab38..ce2f09bf8 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 dec075638..5f6d6e805 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 f2d24056d..458a9962a 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 96254062b..0b2198275 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 3f941517e..2859d423c 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 d2073d8aa..3e8f04704 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 f16b291a8..e0346638a 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 138ca19db..feac0f29d 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 35426608d..5b2400161 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 97bf10aba..9b10d0800 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 0c4dd78ad..0044448d2 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 6e864a412..fd380809e 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 6f76ec36c..81c76f8bd 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 2470827df..211b12fd7 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 340b107b4..72a228dc0 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 7169eb0f9..6c0fd95aa 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 d81d4d854..91dd4ffa9 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 c05885e1b..7ae252610 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 c5a00e480..122df12b7 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 216e06a4d..75f7919ce 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 9896d210d..68f15d923 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 fd70e967a..3bf72cdb3 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 daaa37d00..ac79016a3 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 78e5c6bce..3676e7f49 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 346a0756e..b64b5f214 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 eb997ea64..273256a21 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 ce9e912a1..fc30bbdd0 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 4a88b8102..b76953686 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 ed3050321..06c70b3b4 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 ca3144601..78e8b7f8a 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 944934287..18a6dc058 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 ff105c4e3..1d3cf47cd 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 c3afb3bd2..1bd2da199 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 6d369d11a..717ba8b69 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 4771e8aca..387f8b6b0 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 f27755cc6..adaffc79e 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 a43ddbd1a..03a417465 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 63d99d5f5..90c3efd9a 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 63feefb43..1e4890e17 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 342d1fdef..1b2e42315 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 57fdc472b..2deebcd6f 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 f7e3c19f8..f5de8176f 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 0c46e234c..e60eb6edc 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 167229a64..38702336b 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 d523d25c0..210e33fdf 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 63988f6cd..e7a59840e 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 81a80b963..3cac6f215 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 69d4fe2d8..52dfbd152 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 84a7f63a9..7f5b4903d 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 77e69b8ce..6a38e5f06 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 c97cc2a77..d7ced8dab 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 757965b98..65412185c 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 d82ef21fe..33da0a40b 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 eb4ace4bc..3501500ff 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 db8b5907b..465abc470 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 a3edb4d6d..ce028abd7 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 f03206192..157dc97c7 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 cb44f5afb..21c83658f 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 6e0c6c586..31a6e9cfb 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 87190a131..b7111c0fa 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 09dc4911d..950f690be 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 c1ea61453..f190508dc 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 5a38e0bd6..4f351bf89 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 6ab1950b2..e20fb56dc 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 e11dfa836..b0e4b8e0b 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 6e606a500..41d92a8bf 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 bb4b35d8c..96cca8650 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 15a70904d..c1b5a1fbb 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 04dd89bdd..e09636d45 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 f813e407f..660e7d41b 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 f93608eb6..1f02fbb74 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 351b968d0..57fbdce5b 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 c07126696..1c444266c 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 38618857a..7cd42f388 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 178947ac2..68bafbcb8 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 33fef6d03..5eb7df674 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 04f964d8e..2b203feb9 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 d9a515d09..e91ce89ba 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 17fe2a4fa..703820573 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 a2bdee661..1025fa7ac 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 c0576988e..a311883b6 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 8edc43d25..6134a8182 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 80b7234bb..df90c6489 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 d5aa1bfb5..0c062b3a3 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 557e7ac86..57b44134e 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 eb28300aa..be1a29328 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 4f2745343..38c6a0721 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 7e0755d36..f76fd7801 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 2155ea564..53ee976e3 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 99ccb2e3c..524d5a940 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 826b53abd..d78a100e2 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 09cacdbf2..96f15d285 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 ea9d5b7c7..9ee73cee5 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 b8ab7e2a3..3c480f1fe 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 00f08b513..78ad6671d 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 ba924ab64..9472c9a6c 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 da32c84bb..77a19e11e 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 d4655ca9e..26be6babd 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 9124cd3ad..14882f661 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,10 +8,8 @@ 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 f02e8e9e8..1c84fe826 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,12 +8,10 @@ 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 660f3fd56..a0efcad80 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,17 +9,15 @@ 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 569f772b8..326e8d419 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,16 +9,14 @@ 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 2f57a84ce..bb608b306 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,10 +8,8 @@ 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 385ae6dd3..7bd355aae 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,12 +9,10 @@ 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 174442068..667429b87 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,17 +9,15 @@ 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 74b35992f..ffb6f0a00 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 afaa39146..0e8d7c920 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,16 +9,14 @@ 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 4d336b129..a93538a55 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,10 +9,8 @@ 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 02ccc8b18..43203e281 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,12 +9,10 @@ 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 693cf215b..8bffb2b62 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,17 +9,15 @@ 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 b28a8f78c..d4c6ea9d8 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,16 +9,14 @@ 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 5586e0d2d..37c5c80d2 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,10 +9,8 @@ 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 e0b8746f0..960fc5cf3 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,12 +9,10 @@ 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 396557046..1117ab125 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,17 +9,15 @@ 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 d86824cd2..5e877a51d 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,16 +9,14 @@ 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 b5fb69c81..121640167 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 0660d0871..6fec737dc 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 d5f9a19d5..35f469594 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 d70e6b556..0f0ce2813 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 36efa073e..d7800ba62 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 81e50951b..6fbe77530 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 4083a3b2d..143521597 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 c89e5efdd..35d73454d 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 e0ac8701f..210ace76f 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 55639d950..06bd87e7a 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,10 +8,8 @@ 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 1045ad7ad..210d9286c 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 7d3530a5e..e19f7efce 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 2fe24a597..6eadcabf3 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 48ea22abd..f2863cbe8 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 c5de0e95b..5428c62a3 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 9d8bbda42..7b223ebda 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 2680da34c..0c01763f6 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 8c838d5dd..05b1775bf 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 a21bed132..51507f70b 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,19 +8,15 @@ 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 0d40c18b1..4b21dcaee 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 5b74a6048..7d0c1791d 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 49f9d712a..df0942fea 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 a2c1a65fe..ce6709d7c 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 d03c4335c..ee5c0a2f7 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 d86d83684..f3032e900 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 fb38e03fc..eb0099b59 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 b8ff48109..bd67212c3 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 6045ad5c5..4221bd930 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 af26127eb..88845ce6c 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 4036f9c96..a81aad268 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 9c478e84b..41ff7c2ed 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 2b875fbb3..837182940 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 f1ab2659c..cc6ebd337 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 ab7385cc0..aeee8d512 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 7c704c1de..9203bfce7 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 e7907fd9d..50148ed31 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 35444efa1..ff1b0d9ed 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 fba28178c..932f02c60 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 f489b2715..eded49311 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 26eb89557..969af5e53 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 042a2654d..d99651e90 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 8863e635c..c8edbe16d 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 79f11c572..ea44b8ff6 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 c6cf7ae47..5081cc373 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 e7ccc2f29..82c22d316 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 f04a0a715..04a7d7a2b 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 449e316c6..993393559 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 0bd51a9a1..02d6dc70f 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 650421808..22bce1956 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 084062b38..ccc1c60d1 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 7e32febd9..0f2610129 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 d6fc407fa..1e4a06e23 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 a4a7c106c..c1322e64c 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 e0d8154a6..d01a7fad8 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 faef9f6a3..0bdc7d40e 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 999d0feb9..f1cc35138 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 fe18d2639..51b1254de 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 18069fc8e..dae2b940f 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 22e86425a..ebc3efd6d 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 2fcfbb893..9d6819d2d 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 5201eb059..cdd962662 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 067ea8590..d1f0b5a91 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 9a1a642ad..1c410ce45 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 490a683ed..5a3348774 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 0933b3769..20b8f3cd4 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 37e0191e2..f3a6a9a48 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 01c265da1..a1b0a5073 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 c722ac3d8..6bfd04221 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 90b7a5ff2..4044ddd37 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 56f378d61..63118de08 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 dfcac3a7e..26793f300 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 a25d88620..e81d1eb99 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 78adbeba7..094fcbd88 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 62c619c15..577756342 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 e8c198478..d399238b1 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 0ffd73dd7..3412ec421 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 ecf34debd..25ab07de3 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 fdc0b7dcd..463d1e39d 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 6b1dae720..4b5880d4e 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 28821a842..130d2d45a 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 0f53f7bc6..b392e5979 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 a45bc6592..ff648971c 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 332e44ec0..2f8c72527 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 fcebf3673..674acf087 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 edda1be2d..553bf70bc 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 cf4a5027d..76fcf8ae1 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 72aa5a495..13159813f 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 61d619258..603e590b4 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 822780fdd..2c3e9ca5b 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 c27ae870c..3833480fd 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 29c3ed941..0fa81e545 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 c7d152060..c11aee65f 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 c2e98cf19..1c1f3a6b7 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 574dbb8ed..1522f5936 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 c7f70689c..90582f0e4 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptors/observable-operations.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptors/observable-operations.js
@@ -10,25 +10,21 @@ 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 3ce4b71a9..4c7141411 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptors/primitive-strings.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptors/primitive-strings.js
@@ -30,3 +30,4 @@ 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 f6bf1e078..b03df1304 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 cbfa831d6..2cf49a087 100644
--- a/test/built-ins/Object/getOwnPropertyDescriptors/symbols-included.js
+++ b/test/built-ins/Object/getOwnPropertyDescriptors/symbols-included.js
@@ -13,16 +13,9 @@ 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 4fc046ae6..7239b18d8 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 bfe13dd0d..6427b3d87 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,6 +19,4 @@ 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 586f94fbc..51ce6f35f 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 441dc14ad..4a9ac3a33 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 d57800a19..09ead9782 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 a03c0e002..e2de141ea 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 8b2f12312..b34eac414 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 da93b1a02..8d9c373e2 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 28e403c0d..12a1f7418 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 b1419378e..d34305209 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 4eb034bec..fd42435c7 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 d6c02ef65..c4a893ccd 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,11 +8,9 @@ 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 865477923..558377801 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 45cdcecde..97b14fd89 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 4530e7016..8348c8209 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,17 +8,15 @@ 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 54da883cc..7ee68cada 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 ed30ce1e0..525a25320 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,10 +8,8 @@ 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 2c4970de1..1992e3168 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 5ecb545f8..1597725f1 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 61f889e95..376e30846 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 dfa85c7f0..4f81f8454 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 8f8bf48ab..b3ae879d9 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 ad7799a2a..c6f5c4432 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 cc155a5ee..5772ef4d0 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 0e3d3586f..85773d0cd 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 32c031b16..ac4193f20 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 bdb85cf3b..61299ad64 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 bb7f61ce9..442681b96 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 d6cc46ff2..d83127151 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 e7cdae41d..988774204 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 ac9096e50..30a910696 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,33 +9,31 @@ 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 701f6c594..27e4eaaf9 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,17 +10,15 @@ 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 41b36b325..fdcec3355 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,15 +8,13 @@ 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 f4dff9c43..d6c3a2528 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,17 +10,15 @@ 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 c25be8efc..c46672f7a 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,15 +8,13 @@ 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 28bb663bc..96102bf16 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,3 +16,5 @@ 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 e1ffb9420..26a288b03 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,3 +16,5 @@ 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 92fc6a78a..9f8eb76e0 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 453fb2e6b..3f73a4c07 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 158a99b77..c0e3b2b89 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 bd53bc4fb..6802de900 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 a57fb8099..062f7af14 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 eaf9741a2..8652973e5 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 c6a7cbdf5..13d845f54 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 0ccd5b9ff..7b825d970 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 50cf883e6..8a0759e13 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 9cac45393..0c4707881 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 52d9062f7..7b033a2ca 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 bf88c87ff..9851559ac 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 7d2fb9911..a10b2bbaa 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 3ef083881..9fcd1fac8 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 22eb267e3..4970e7826 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,16 +19,13 @@ 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 93e2fc7c8..736ccf3ee 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,20 +19,17 @@ 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 596c60c2c..4d80030e9 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,14 +18,11 @@ 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 38ccdcc64..38ab43d2d 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,10 +16,7 @@ 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 1f20bd106..da73e1a4b 100644
--- a/test/built-ins/Object/is/name.js
+++ b/test/built-ins/Object/is/name.js
@@ -15,3 +15,4 @@ 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 afeb1bf3d..c364bc11b 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,3 +17,4 @@ 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 b10ec42c2..7ec854c37 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 f7c9f4b8a..6def9622d 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 b564172ac..28ccc0a78 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 0f6ff22b4..203f6d061 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,10 +59,11 @@ 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 f99164239..cd770d098 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,3 +16,4 @@ 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 cc2ddf11e..e7a7ec3f9 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 4e70febdb..4a58a0927 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,3 +13,5 @@ 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 d3c3e04d1..61dbcf81c 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 7e0549a7c..0a2533af1 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 a1dac5f7f..eda4c0622 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 bbc81c9cf..e57ddd177 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 1703a565f..731bc9ada 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 9bada76d8..1eda1dae2 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 336899779..1552eca76 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 5acb42f30..663ccbbae 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,3 +9,4 @@ 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 297fcdb1d..f55619ab6 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 5da2f584a..9478698b9 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 a00976821..3e369b386 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 b9d8a8afe..e15307478 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 f6ac3e9df..7a630e282 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 0f0b67881..cbb2a4e12 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 1e85cdba9..040ecbd67 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 fa7fa7ef5..d47a560da 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 9ff4791f1..d8a6a3af7 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 f7de75356..d61214cb3 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 2fbf18885..91f0c3293 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 0da24ff0f..cadbe6cf3 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 c82066c73..53a4d7741 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 8f497f341..6c6e1a4c1 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 c0294879f..617caf025 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 9910ac50d..ba0449c59 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 fdb218499..63b05a7c5 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 proto = {};
+ Object.preventExtensions(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-26.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-26.js
index 2bf9bb31e..58c811599 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 cb9c229e3..b123e2518 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 bee167cf6..27fa4c54f 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 487138b54..ffa63fd8b 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 69b1fae1f..aff9de634 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 6141fc689..73e132cf6 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 16293acf6..b7f4dbc18 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 3cafa5da5..8fa92d614 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 5a3d0b540..4da573d20 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 961068ca9..04c9d7704 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 4bcccdf03..c1b503894 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 06329b88a..a956a69f4 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 6f11d3568..74d543db3 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 109ed310e..45c4f61a7 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 91e68ede6..04a495bc1 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 d3168dddc..1c8e88cd0 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 4aedb181c..5d9df9679 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,10 +8,6 @@ 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 86e9f0608..eeafda571 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 3c7de20a1..29dbb7d46 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 b4c795992..e7fa25860 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,25 +8,24 @@ description: >
into the for each loop
---*/
-var proto = {};
+ var proto = {};
+
+ function get_func() {
+ return 10;
+ }
+ function set_func() { }
-function get_func() {
- return 10;
-}
+ Object.defineProperty(proto, "Father", {
+ get: get_func,
+ set: set_func,
+ configurable: true
+ });
-function set_func() {}
+ var Con = function () { };
+ Con.prototype = proto;
-Object.defineProperty(proto, "Father", {
- get: get_func,
- set: set_func,
- configurable: true
-});
+ var child = new Con();
-var Con = function() {};
-Con.prototype = proto;
-
-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-a-1.js b/test/built-ins/Object/isFrozen/15.2.3.12-2-a-1.js
index e736ff86e..b254239ce 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 9f8ffba27..b937a4f69 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 6d3886377..9c1031b95 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 01ba00c36..bdcdb212d 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() {};
+ var obj = function () { };
+
+ Object.defineProperty(obj, "property", {
+ value: 12,
+ writable: true,
+ configurable: false
+ });
-Object.defineProperty(obj, "property", {
- 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-14.js b/test/built-ins/Object/isFrozen/15.2.3.12-2-a-14.js
index dc0b65f3f..66eb7cf7e 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 d769a465a..b1714fd6a 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 7fc07b2b6..80b28f1ac 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 d9e2ce407..318d43be5 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 db4bf0df1..0164b8a7a 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 47cbc5062..f010ceee0 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 34310b0a9..054f21626 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 251b7760c..7ebdca6bc 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 ca7903b33..4a1edc14b 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 3d4603ee7..d56ce37ac 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 ad7d4e076..b1e4d1f19 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,20 +8,19 @@ description: >
accessor property
---*/
-var obj = {};
+ var obj = {};
-function get_func() {
- return 10;
-}
+ function get_func() {
+ return 10;
+ }
+ function set_func() { }
-function set_func() {}
+ Object.defineProperty(obj, "foo", {
+ get: get_func,
+ set: set_func,
+ configurable: true
+ });
-Object.defineProperty(obj, "foo", {
- get: get_func,
- set: set_func,
- 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-3-10.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-10.js
index 29e85f0b2..10574131c 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 76bec9198..56d3cc613 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 d8c46943e..1990a4753 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 7cd89226e..a23a21495 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 63abccb27..84878798d 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 ca66a01a5..8792cdae9 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 1e873c82a..98ad1f1d7 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 cfecb1f86..17fbf439d 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 120f9f023..a2afec3b8 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 27540052d..3ed4a1a02 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 d430fa061..608346f73 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 2390d1b45..598f3d746 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 23ce9738d..3c04257c3 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 0872dd4ca..b9ca47ad7 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 0f97a743c..e04d9582e 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 11f725e2c..dd468ba64 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 be3e3f3bd..2d222a0a6 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 c93ac5547..657d66790 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 5a03f01ed..05c395fce 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 9462b94cb..8bebd4ece 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,28 +8,27 @@ 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 get_func() {
+ return 10;
+ }
+ function set_func() { }
-function set_func() {}
+ Object.defineProperty(obj, "foo2", {
+ get: get_func,
+ set: set_func,
+ configurable: false
+ });
-Object.defineProperty(obj, "foo2", {
- get: get_func,
- set: set_func,
- configurable: false
-});
-
-Object.preventExtensions(obj);
+ 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 50901f10e..8911f64dd 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 2c677139e..0c3cacdfe 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 4a0ea7303..a4c70fff9 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 5f2e0531a..d3e9faa56 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 de24a2caf..fce437065 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 2c79c441a..caa6c4c38 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 9d37dd788..ad482d825 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 9e0a143b1..53d2c5190 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 f0a14907d..ec43eb5c7 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 676ae785a..726b81344 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 b3a9f75d2..d9f961663 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 dc6d09025..c14303965 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 03464976a..0e6484ede 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 3d5ce6363..663d6fae8 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 8ae66ffa6..20f8f82b5 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 5655bbd12..d5a720f9a 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 14168a425..7e019b180 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 c515e713e..5d009ad4e 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 9d536645a..76147bf79 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 39a783dda..f870603af 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 7402f2ae4..6fcc308ea 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 db352fe93..3deb97a26 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 c45c2e31d..5519b667e 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 772fff43d..47c86f229 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 63c9f3bad..e8e181fa0 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 7fd0e3d60..701280588 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 dfad7091a..16676f93f 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 8804364c0..cbcf00153 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 8eb014422..2d72b5092 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 bfdbb73a3..e3acd56f9 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 e2cd6604a..66f00fd51 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 bb6865144..1a5fd782f 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 e10e502d9..7d76da8ac 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 086d81815..2c0fd3e58 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 38dfa9883..dbea6040b 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 1697ade0f..404294cfb 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 280af951e..b876f99e3 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 2bce7c0fd..e7ba5f33d 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 57c584576..426324b88 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 3bbfc5872..fdc5d31ee 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 90e9d3a6d..fa00eb9e0 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 fbc22455a..5f2d8f7cb 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,11 +6,8 @@ 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 9383f5baf..2ebe4b0d6 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,12 +6,9 @@ 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 f712fe05f..0692d2ad9 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,15 +6,12 @@ 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 c4b3c134d..231c1e761 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,11 +6,8 @@ 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 ac6bd951f..53c37a839 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,11 +6,8 @@ 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 77fb6260e..9026527d6 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,11 +6,8 @@ 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 d2134fdd9..81506d56d 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 3b2141a30..079e50eca 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 a958a69ed..c54f50d55 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,12 +8,9 @@ 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 4e869eef7..2f40b3bfa 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 923809d3c..9d6d1276b 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 8df65c15a..2d11275d4 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,26 +8,24 @@ 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 b7e549ead..ed4c7b7cb 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,13 +6,11 @@ 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 783da2d8b..582c493bb 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 040cdca51..cea8ccdca 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,25 +8,22 @@ 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 3ad642ebd..57f7ab5a0 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,26 +6,23 @@ 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 38b86bb5c..8f576efd9 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 9c6a93b14..7c78da96c 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 cacc8fdf2..3a6c31e0c 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 8418f0262..0e565cc0d 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 4c87e4d47..1dd461cab 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 2f9bd9617..6b9c3ae25 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 78c95371b..c7805c030 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 327c196f4..1031fd08c 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 d88f54188..917ad1cf6 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 9bfa83434..45d321cfe 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,27 +8,24 @@ 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 92d237cdd..ed6346c08 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 3be1366f9..996f595a1 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 e5ff23f98..104055137 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 c40e03400..8fb146cd2 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 87fa6a75b..37acf9b4f 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 b3001fa90..f88c546c0 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 b186f7c27..15cabe73b 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,13 +8,11 @@ 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 5d57f077a..10f811ac6 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,15 +8,13 @@ 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 6c6a27f67..25c069329 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,18 +8,16 @@ 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 5a5287821..78b67c338 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,14 +8,12 @@ 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 c6b18372b..6c5766333 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,18 +6,14 @@ 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 e6c869cfe..884abd796 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 bed89a28d..c3a1537e0 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 8607da50b..108056b33 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 cacc8f39c..b10ea7615 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 4bd098a3e..9e5984a78 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 f9b2a155a..ac349430f 100644
--- a/test/built-ins/Object/keys/proxy-keys.js
+++ b/test/built-ins/Object/keys/proxy-keys.js
@@ -32,34 +32,22 @@ 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";
}
};
@@ -86,25 +74,15 @@ 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 74af3456d..8f3e64dc3 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 e52f9af71..12e4a96cb 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 0032e685e..908256f0d 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 f65649363..19d939b75 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 058bfb29d..a2b491530 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 2781b8fac..08a98ccae 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 765580072..a8e4b2e41 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 c3a60819f..f6507af2d 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 b42f94651..c9ee327e0 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 f58147ef4..49ec6fbd1 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,3 +18,4 @@ 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 ba2145a1c..cdaafc240 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 09778460e..071c01260 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,3 +18,4 @@ 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 67c952a06..6bc3159ee 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 26d198d1e..560bec496 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 02de9e3ba..f9c4d8b48 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,13 +8,11 @@ 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 b7c93c497..f857d410b 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,13 +8,11 @@ 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 b0f8796a5..7e8006326 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 443c2a61e..f644100e6 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 f70509eca..def72f4f6 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,13 +8,11 @@ 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 9fb953b99..6bb4bdf18 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,12 +20,13 @@ 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 636b72df5..fb0ddee7f 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 a182b4f73..44b0ea6e6 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,9 +9,7 @@ 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 96ee379f6..996c86525 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 d2ffa50ca..5b7c6e5ea 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 f92c6b479..9fd0c15bb 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 a9fe41761..07679b274 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 a4330a78e..29e824587 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 ae6b1928a..0e5e905e3 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,11 +8,7 @@ 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 2b78847eb..d4f3d3903 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,12 +8,7 @@ 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 a462ab199..99004855e 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,10 +8,8 @@ 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 33cfbaac2..c12d0c344 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,11 +8,8 @@ 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 f021397a3..0dcb8a61a 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,11 +8,8 @@ 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 5086fe3bd..54baa8f1a 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,11 +8,8 @@ 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 397f69ab0..6474f7f80 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,12 +8,8 @@ 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 36c5ce1b6..ac6c14ab3 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,12 +8,8 @@ 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 521513632..8b8120c5c 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,12 +8,8 @@ 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 bda83b039..6eec46644 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,13 +8,8 @@ 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 a10bb3821..9e51b6eb9 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,8 +6,6 @@ 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 60febfc14..4c6c466f3 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,10 +6,6 @@ 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 f8795d0f5..aa8236e3b 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,9 +6,6 @@ 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 e18229b91..b23a22bfc 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,12 +8,6 @@ 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 7f025a822..4e2587b1c 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,11 +6,7 @@ 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 641f96b32..cf1cac60b 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,10 +6,7 @@ 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 e2620ce47..fdb1e6d3a 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,13 +8,7 @@ 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 a80a34623..fd15435b5 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,11 +8,7 @@ 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 5940f377e..6d8b4634d 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,12 +8,7 @@ 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 122313417..19bcb8142 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,12 +8,7 @@ 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 d048b990f..01587705d 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,13 +8,7 @@ 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 5e3001064..8c851da5a 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,9 +6,7 @@ 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 7cc54bf8c..5d12f52ff 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,10 +8,7 @@ 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 915cf98a0..0e9e30575 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,11 +8,7 @@ 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 0723ab84b..f0a345b0b 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,11 +8,7 @@ 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 1cdaa72f6..1b7e60c21 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,12 +8,7 @@ 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 4fb47b26e..2b34bf9b6 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,13 +8,7 @@ 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 5479c80e4..01ef0ead2 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,14 +8,7 @@ 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 43f18c8eb..a07762869 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,14 +8,7 @@ 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 518209e48..1938b5a2c 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,15 +8,7 @@ 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 2c9bbbfbb..801ecdaee 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,12 +8,8 @@ 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 1fbdea763..5a0e15903 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,13 +8,8 @@ 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 ecb418e5b..dac63b029 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,9 +8,7 @@ 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 b2f7e70bc..a04fd4369 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,13 +8,8 @@ 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 9e94e6664..bf0dbd47d 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,14 +8,8 @@ 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 705516ffb..97bab311f 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,11 +8,8 @@ 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 a66ec81a8..baa392b1f 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,12 +8,8 @@ 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 111459fe2..07b368234 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,12 +8,8 @@ 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 1e160d7bb..68c0517cc 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,13 +8,8 @@ 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 aaecbc8cc..1ff589a9b 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,14 +8,8 @@ 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 abbb759e0..16bc5d71b 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,15 +8,8 @@ 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 7f69fbd29..0a9c741ff 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,15 +8,8 @@ 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 b8a66b8d5..d492e9ee8 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,16 +8,8 @@ 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 4a11bd83f..19d6229e9 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,10 +8,7 @@ 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 09a91470d..76bd5649c 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,10 +8,7 @@ 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 34350c2f1..8c6ea6884 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,10 +8,7 @@ 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 633ea1181..384f1c801 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,11 +8,7 @@ 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 12dcc4500..e17903b7c 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,11 +8,7 @@ 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 67b8c7ae8..fee99fa5b 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,9 +19,7 @@ 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 7fa88ceae..27b0f780b 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,9 +17,7 @@ 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 9108ec962..dbe38a78d 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 9318f2321..e49432003 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 78e728269..a4df74d40 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 5f27c33bf..1b87a6c6e 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,20 +9,16 @@ 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");
@@ -52,7 +48,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 a1d728169..264eead2e 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,9 +19,7 @@ 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 3ab10f971..dd63755a1 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 8c959469b..c50e0a097 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 8bef9171c..6450d5b30 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,9 +19,7 @@ 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 a571b5a29..a28b7c621 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,17 +16,13 @@ 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 16aa7b4e2..5df54cfcc 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,9 +20,7 @@ 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") {
@@ -35,11 +33,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 001f70b48..4e093cda9 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 70465fab8..a9a87c5da 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 c1fad81ff..9f81cd598 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 874c1a86a..e07bb39a1 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,9 +19,7 @@ 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 21474c3d6..2ba063780 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 4e6402e8c..adddc36be 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 6aee4b330..d9aea6b89 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 39321f620..9478a50d7 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,9 +17,7 @@ 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 496eec11b..86e338520 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 078962da3..37eedc92a 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 616a35f09..c1081121c 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 6c8e0d7ad..08a81d649 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 8a38eaa0e..5432ecd3b 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 ae3d4adc9..6297a4aeb 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,9 +34,5 @@ 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 26f9f4bbf..48d20a419 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,9 +24,7 @@ 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 c8d3c25a5..83df8a3bd 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,9 +17,7 @@ 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 b09d95dea..a041be8bf 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 bff652786..f576d726f 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 147a31aee..4b296a9c2 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 31e763a47..b138c58dc 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 116cfeec6..7cddd7100 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 7a62551a3..0374674c8 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 b5e10ce3f..0c1e63062 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 ad158cea2..4ab7b5b4f 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 b371d63d0..bbf95febd 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 61befa57c..e8a246064 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 931f2d41f..b9cc6e21f 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 424e64330..384ef8319 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 cac02cc1f..4bfadadec 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 58a6938a6..f07811dfd 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 d28014c5e..25391eeff 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 326915af3..66e063ba5 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 072c6d88c..feaddddbc 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 3a31ff959..039762df6 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 200d09e93..3d5a840ec 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 0fe3efb0a..24397984a 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 5dff8563f..3341b0c9a 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 27975e688..06898cc03 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,3 +20,4 @@ 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 242a1c85c..338af82d8 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,9 +9,7 @@ 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 61e30804f..fe49e0454 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,17 +9,15 @@ 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 ee199e32a..d019f9403 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 8de827bd7..971001347 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 c1057e136..06c75c087 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 7318061ce..f3966899e 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 808ffc80f..24b01f1ed 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 ab00a63d0..58e43d747 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 b86a51857..1ca3c0fc3 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,23 +14,22 @@ 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 2576f3eba..963931fa4 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,30 +14,29 @@ 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 4de248b10..5d455e9eb 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,34 +13,33 @@ 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 514456a66..fe0eb6cfa 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 49a8aef6d..963717c00 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 447a2d5fd..f967549d5 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 a02152abd..5918c5c1f 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 b602648cd..ece59ee7e 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 3976ae55f..05a03fb4b 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 1e50a1602..40de20e29 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 e72ff6259..0535ffd7f 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 0a93350b3..fb65b1fe2 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,12 +6,10 @@ 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 4beb1bd67..c0e9bcc75 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 56ea87c30..65ad90f6e 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 bd6edb2fc..26f0600eb 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 0b3329c80..bf09289f8 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 f4e15aa86..831deb3d5 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,3 +18,4 @@ 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 e8fd7d34f..0c04b4316 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,3 +23,4 @@ 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 f10b06f16..63545034f 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), 0 n);
+assert.sameValue(Object.setPrototypeOf(0n, null), 0n);
diff --git a/test/built-ins/Object/setPrototypeOf/name.js b/test/built-ins/Object/setPrototypeOf/name.js
index d9cffe8f4..73a1c691e 100644
--- a/test/built-ins/Object/setPrototypeOf/name.js
+++ b/test/built-ins/Object/setPrototypeOf/name.js
@@ -28,3 +28,4 @@ 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 0446a33c5..a11b20e69 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 3248b6d6f..35dce7a18 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 7a9c882a1..7f730f141 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 86b61eb9a..a2fc70242 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 05bfdefc6..d54ae3027 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 a9276075c..6893bf858 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 096604baa..d6068d714 100644
--- a/test/built-ins/Object/values/observable-operations.js
+++ b/test/built-ins/Object/values/observable-operations.js
@@ -10,31 +10,27 @@ 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 29273f39b..080b183e9 100644
--- a/test/built-ins/Object/values/symbols-omitted.js
+++ b/test/built-ins/Object/values/symbols-omitted.js
@@ -13,14 +13,9 @@ 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 86d534046..e0a038ff9 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 51dfbf5c4..bdc955011 100644
--- a/test/built-ins/Object/values/tamper-with-object-keys.js
+++ b/test/built-ins/Object/values/tamper-with-object-keys.js
@@ -9,12 +9,10 @@ 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 06f9f6fb6..6292c438e 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 afbef52ee..8da80d846 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 855595e76..0e969f652 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 424b1a7f1..341dd6417 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,16 +10,14 @@ 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 e852b0274..4b3e452e2 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,16 +10,14 @@ 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 26d1cb0ce..d990b5448 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,14 +12,15 @@ 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 da4221c47..418f94069 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 58cdb04d1..3c0548704 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 02c7922d3..597b68aa9 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 e542fadf4..92149f2aa 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 8ab599632..ddeea876d 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 6c893b331..1b61ede66 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 568aae475..77cd2628e 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 1573e1cf2..5dc1568eb 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 9c5887f28..805a05525 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 e838c9898..88e7acb72 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 0f92a96c0..9dcabfadd 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 a594a579b..e2ad6eee7 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,7 +9,8 @@ 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 18ef595bf..2428711a6 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 5621dc927..a3ba1d7a8 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 baf2bba25..73a47330b 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 e8cc200f7..7eb81e9ce 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 546c47254..480147423 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,23 +14,21 @@ 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 4115767c5..7a6d917d0 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,28 +11,24 @@ 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 b726f5879..77d087034 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 128375aae..bb700ae46 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 c644abeb8..6b85ec15e 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,9 +27,7 @@ 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 3cf7629a4..97e7541c3 100644
--- a/test/built-ins/Promise/all/call-resolve-element-items.js
+++ b/test/built-ins/Promise/all/call-resolve-element-items.js
@@ -26,9 +26,7 @@ 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 37be4b02d..fc600d459 100644
--- a/test/built-ins/Promise/all/call-resolve-element.js
+++ b/test/built-ins/Promise/all/call-resolve-element.js
@@ -25,9 +25,7 @@ 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 7f9427dbc..580483b33 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 db4092e66..91ed10864 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 390bf8d25..9124a3a56 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,9 +50,7 @@ var iter = {};
iter[Symbol.iterator] = function() {
return {
next: function() {
- return {
- done: true
- };
+ return { done: true };
},
return: function() {
returnCount += 1;
@@ -62,9 +60,7 @@ 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 57f3e2755..3ad3affde 100644
--- a/test/built-ins/Promise/all/capability-resolve-throws-reject.js
+++ b/test/built-ins/Promise/all/capability-resolve-throws-reject.js
@@ -48,9 +48,7 @@ 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 54c332a02..19db5a8be 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,6 +33,4 @@ 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 aead2b647..ac2ca2824 100644
--- a/test/built-ins/Promise/all/invoke-resolve-error-close.js
+++ b/test/built-ins/Promise/all/invoke-resolve-error-close.js
@@ -30,10 +30,7 @@ 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 22e75e0df..ce43d8ab1 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,9 +30,7 @@ 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 fe683d91e..6786b3188 100644
--- a/test/built-ins/Promise/all/invoke-then-error-close.js
+++ b/test/built-ins/Promise/all/invoke-then-error-close.js
@@ -31,10 +31,7 @@ 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 5023c3d4f..a200b752a 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,10 +31,7 @@ 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 b4778a914..383148f44 100644
--- a/test/built-ins/Promise/all/new-resolve-function.js
+++ b/test/built-ins/Promise/all/new-resolve-function.js
@@ -15,17 +15,14 @@ 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 bd4280ec1..40d282135 100644
--- a/test/built-ins/Promise/all/reject-deferred.js
+++ b/test/built-ins/Promise/all/reject-deferred.js
@@ -25,9 +25,7 @@ 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 6303836d5..2913ba760 100644
--- a/test/built-ins/Promise/all/reject-ignored-deferred.js
+++ b/test/built-ins/Promise/all/reject-ignored-deferred.js
@@ -30,9 +30,7 @@ flags: [async]
var fulfiller = {
then: function(resolve) {
- new Promise(function(resolve) {
- resolve();
- })
+ new Promise(function(resolve) { resolve(); })
.then(function() {
resolve();
});
@@ -40,9 +38,7 @@ 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 0c8d848f2..3294503da 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,9 +39,7 @@ 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 3f09d3ceb..0ecb2a179 100644
--- a/test/built-ins/Promise/all/resolve-before-loop-exit.js
+++ b/test/built-ins/Promise/all/resolve-before-loop-exit.js
@@ -39,9 +39,7 @@ 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 570222b0f..fff03cde8 100644
--- a/test/built-ins/Promise/all/resolve-element-function-extensible.js
+++ b/test/built-ins/Promise/all/resolve-element-function-extensible.js
@@ -16,13 +16,10 @@ 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 87938eb4d..6b1570582 100644
--- a/test/built-ins/Promise/all/resolve-element-function-length.js
+++ b/test/built-ins/Promise/all/resolve-element-function-length.js
@@ -20,13 +20,10 @@ 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 2af12b808..f975ef3ac 100644
--- a/test/built-ins/Promise/all/resolve-element-function-name.js
+++ b/test/built-ins/Promise/all/resolve-element-function-name.js
@@ -19,13 +19,10 @@ 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 7da037347..4c329a4b0 100644
--- a/test/built-ins/Promise/all/resolve-element-function-nonconstructor.js
+++ b/test/built-ins/Promise/all/resolve-element-function-nonconstructor.js
@@ -17,16 +17,11 @@ 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 f7c66f97c..c809e78c6 100644
--- a/test/built-ins/Promise/all/resolve-element-function-prototype.js
+++ b/test/built-ins/Promise/all/resolve-element-function-prototype.js
@@ -18,13 +18,10 @@ 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 430026ff8..02cc9b982 100644
--- a/test/built-ins/Promise/all/resolve-from-same-thenable.js
+++ b/test/built-ins/Promise/all/resolve-from-same-thenable.js
@@ -39,9 +39,7 @@ 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 191175a69..53de258c7 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 905eff387..c39de44bb 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 9c8107532..0e0db97c4 100644
--- a/test/built-ins/Promise/all/same-reject-function.js
+++ b/test/built-ins/Promise/all/same-reject-function.js
@@ -13,17 +13,14 @@ 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 43ed463d6..0311392b0 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 67b539538..d15764391 100644
--- a/test/built-ins/Promise/executor-function-extensible.js
+++ b/test/built-ins/Promise/executor-function-extensible.js
@@ -11,10 +11,9 @@ 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 0558e97b5..01fdedcaa 100644
--- a/test/built-ins/Promise/executor-function-length.js
+++ b/test/built-ins/Promise/executor-function-length.js
@@ -15,10 +15,9 @@ 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 f571504fc..ceb4aa98d 100644
--- a/test/built-ins/Promise/executor-function-name.js
+++ b/test/built-ins/Promise/executor-function-name.js
@@ -14,10 +14,9 @@ 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 e8686c60e..53c1c4595 100644
--- a/test/built-ins/Promise/executor-function-nonconstructor.js
+++ b/test/built-ins/Promise/executor-function-nonconstructor.js
@@ -12,14 +12,11 @@ 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 c334f4f5b..83d84e46e 100644
--- a/test/built-ins/Promise/executor-function-prototype.js
+++ b/test/built-ins/Promise/executor-function-prototype.js
@@ -13,10 +13,9 @@ 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 139ed3a1b..2ac312176 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 23e3452d8..c8719d738 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,5 +10,6 @@ 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 958bb552e..abd62d615 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 20e81c5ac..1dfed96c3 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 6606fdcdc..a13171c31 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,10 +14,11 @@ 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 e0194fc4a..b04fbf630 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,10 +14,11 @@ 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 70f9f418a..905dd966a 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,29 +24,21 @@ 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 20c29cfe6..1feffa35b 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,37 +38,25 @@ 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 697bea0b3..648b7dd6f 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 b8e57281c..1193119fb 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 ed75b1687..794677b57 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 1390a523f..eb82103da 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 02e539b6f..262f1be84 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 1fb248ac9..6e583527c 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,29 +11,30 @@ 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 0a8de6365..15a8eac64 100644
--- a/test/built-ins/Promise/prototype/finally/species-symbol.js
+++ b/test/built-ins/Promise/prototype/finally/species-symbol.js
@@ -9,14 +9,12 @@ 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 ca812c499..5db1a5f49 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,9 +8,7 @@ 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 8e80ab43d..db1b151cd 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,9 +8,7 @@ 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 6bed146e0..16d9f8d76 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,9 +11,7 @@ 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 253e22fe3..cdeccdadd 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,11 +11,9 @@ 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 99e124db0..d8afd2612 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 e8603f88e..7fff8d51a 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 78aa38e01..fd1519766 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 971c411f9..cb02aa58a 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 4f02681ab..5c099d775 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 1208cdb89..1b430f281 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,28 +14,30 @@ 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 f7ce622d9..79d7906b5 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 0d07a720b..b22c332d4 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,12 +9,14 @@ 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 723ff6aac..b05925ef5 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 13b4bf050..bcaa7e48d 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,10 +9,11 @@ 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 244c9105b..ee43a0a4a 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 5a8bf136e..2032211c2 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 a4198cde0..eecbe9af8 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 b802575c5..e4b503df0 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 51fd71dad..7a9f02a5e 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 4b4d801e0..fdf1105bc 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 1455350ad..7af732e0b 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 f72869ba3..5006c282d 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 28f4b15b6..d230947d6 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 585850ed9..51e00ad78 100644
--- a/test/built-ins/Promise/prototype/then/ctor-access-count.js
+++ b/test/built-ins/Promise/prototype/then/ctor-access-count.js
@@ -29,9 +29,7 @@ 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;
@@ -40,12 +38,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 d41a71a15..080d26a1c 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 1532089f7..c6b52cb40 100644
--- a/test/built-ins/Promise/prototype/then/ctor-throws.js
+++ b/test/built-ins/Promise/prototype/then/ctor-throws.js
@@ -26,14 +26,10 @@ 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 285e12f9c..3db69300a 100644
--- a/test/built-ins/Promise/prototype/then/prfm-fulfilled.js
+++ b/test/built-ins/Promise/prototype/then/prfm-fulfilled.js
@@ -20,16 +20,14 @@ 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 b0251ddfe..64c3542a4 100644
--- a/test/built-ins/Promise/prototype/then/prfm-pending-fulfulled.js
+++ b/test/built-ins/Promise/prototype/then/prfm-pending-fulfulled.js
@@ -21,18 +21,16 @@ 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 998ecae2e..062acafc2 100644
--- a/test/built-ins/Promise/prototype/then/prfm-pending-rejected.js
+++ b/test/built-ins/Promise/prototype/then/prfm-pending-rejected.js
@@ -21,18 +21,16 @@ 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 de59061bc..22e3b81b5 100644
--- a/test/built-ins/Promise/prototype/then/prfm-rejected.js
+++ b/test/built-ins/Promise/prototype/then/prfm-rejected.js
@@ -20,16 +20,14 @@ 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 5fce956c1..985591977 100644
--- a/test/built-ins/Promise/prototype/then/reject-pending-fulfilled.js
+++ b/test/built-ins/Promise/prototype/then/reject-pending-fulfilled.js
@@ -22,27 +22,23 @@ 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 03ff2902b..7d881d19e 100644
--- a/test/built-ins/Promise/prototype/then/reject-pending-rejected.js
+++ b/test/built-ins/Promise/prototype/then/reject-pending-rejected.js
@@ -23,27 +23,23 @@ 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 97876bec0..8845061ad 100644
--- a/test/built-ins/Promise/prototype/then/reject-settled-fulfilled.js
+++ b/test/built-ins/Promise/prototype/then/reject-settled-fulfilled.js
@@ -29,25 +29,21 @@ 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 3b0ae8f1c..8cfa17fb3 100644
--- a/test/built-ins/Promise/prototype/then/reject-settled-rejected.js
+++ b/test/built-ins/Promise/prototype/then/reject-settled-rejected.js
@@ -29,25 +29,21 @@ 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 1866a7c0e..afd23f08a 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,24 +22,22 @@ 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 f67aae302..72daa6189 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,28 +26,24 @@ 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 bf5912812..7b2147f4d 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,24 +30,22 @@ 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 0a1f979c4..299bd5467 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,12 +30,8 @@ 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) {
@@ -43,18 +39,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 16afaee98..f27f9034d 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,29 +24,27 @@ 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 1d32eca24..9df8932aa 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,27 +30,23 @@ 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 01f09f241..27ba9746f 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,24 +23,22 @@ 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 61bc8613c..85178a822 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,28 +27,24 @@ 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 800d11004..83e53f804 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,24 +31,22 @@ 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 d1bbd6737..2d4e1c011 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,12 +31,8 @@ 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) {
@@ -44,18 +40,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 2a3b37978..7ae0c23e3 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,29 +25,27 @@ 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 94cc16e86..933ce34ec 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,27 +31,23 @@ 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 f57576ee8..003d0ee61 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,22 +28,20 @@ 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 5065cd131..484c6f6aa 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,25 +33,21 @@ 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 8ac375540..303044a53 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,22 +36,20 @@ 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 abcea8a24..f3d108dfa 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,12 +36,8 @@ 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) {
@@ -49,16 +45,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 1091fe75d..99f1d05a4 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,27 +30,25 @@ 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 98a718bf2..0baaa5c0d 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,25 +36,21 @@ 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 a4828310a..3a8992d39 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,22 +28,20 @@ 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 13e72aba0..8e4b424fd 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,25 +33,21 @@ 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 a60f1b10c..6087049a9 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,22 +36,20 @@ 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 babecd9e1..68f661a11 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,12 +36,8 @@ 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) {
@@ -49,16 +45,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 9d7f13693..877edfc7d 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,27 +30,25 @@ 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 333bbeb14..1a3855254 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,25 +36,21 @@ 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 4a9918517..a956ab8a3 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 c8b9966ed..e431a2793 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 992051775..9024a896d 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 460ee909c..a2f763a51 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 4accef172..e0cb6215d 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 2241de9c7..f75ee39ed 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 24b30c088..de2005b03 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 e95e55d49..f848a8a2e 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 9842201f5..19cbbc9ec 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 848a88538..2363577e8 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 b1497b0a0..40ef4bfd6 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 fe8054f9a..3588f64dd 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 eb70b6e6c..3fe4b09c6 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 58b185a91..217e10e4d 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 69102cfbd..b92440669 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 2e14c7ead..a3b3fd963 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 d53b5da14..87a7c610a 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,10 +11,11 @@ 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 18da6d071..cca930722 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,10 +9,11 @@ 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 790c51a75..d8aa443f9 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,15 +15,16 @@ 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 b3d90e6fc..21b3a098d 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,7 +11,8 @@ 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 07c20f570..e16e02a03 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,9 +11,7 @@ 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 95dde51bd..a325a995b 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,16 +11,17 @@ 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 cb8912b97..00ac77d1b 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,25 +11,26 @@ 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 2093f8bee..e5b7526fd 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 81d6152a4..90c46e37e 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 c3e0364b3..b28ccdb51 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 ada1fba26..517df57b3 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 2b2dbc962..f0f12a4e5 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 4e03609a1..7e0f286c8 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 2f9d3cb67..3f24b602d 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 7628a4664..02dad7f9d 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,18 +9,14 @@ 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 91803cce5..535116ea1 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,20 +9,17 @@ 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 652f3201c..7e21ce01e 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 ae52d9c10..be31cf297 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 df90989cb..36651be4e 100644
--- a/test/built-ins/Promise/race/invoke-resolve-error-close.js
+++ b/test/built-ins/Promise/race/invoke-resolve-error-close.js
@@ -29,10 +29,7 @@ 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 cc874421c..d2958b5b3 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,9 +29,7 @@ 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 07d80abab..a9df84f49 100644
--- a/test/built-ins/Promise/race/invoke-then-error-close.js
+++ b/test/built-ins/Promise/race/invoke-then-error-close.js
@@ -31,10 +31,7 @@ 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 9dbb52017..93f095ee2 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,10 +30,7 @@ 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 c7e321a36..59f891510 100644
--- a/test/built-ins/Promise/race/reject-deferred.js
+++ b/test/built-ins/Promise/race/reject-deferred.js
@@ -24,9 +24,7 @@ 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 43df80e3f..c64b70da4 100644
--- a/test/built-ins/Promise/race/reject-ignored-deferred.js
+++ b/test/built-ins/Promise/race/reject-ignored-deferred.js
@@ -29,9 +29,7 @@ flags: [async]
var fulfiller = {
then: function(resolve) {
- new Promise(function(resolve) {
- resolve();
- })
+ new Promise(function(resolve) { resolve(); })
.then(function() {
resolve();
});
@@ -39,9 +37,7 @@ 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 07c6317a2..238785a50 100644
--- a/test/built-ins/Promise/race/resolve-prms-cstm-then.js
+++ b/test/built-ins/Promise/race/resolve-prms-cstm-then.js
@@ -35,9 +35,7 @@ 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 565bc94e5..6fc2a3820 100644
--- a/test/built-ins/Promise/race/resolve-self.js
+++ b/test/built-ins/Promise/race/resolve-self.js
@@ -33,9 +33,7 @@ var thenable = {
};
try {
- Promise.resolve = function(v) {
- return v;
- };
+ Promise.resolve = function(v) { return v; };
self = Promise.race([thenable]);
} finally {
Promise.resolve = builtinResolve;
@@ -44,15 +42,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 b67e4ff41..dbcdf7c5b 100644
--- a/test/built-ins/Promise/race/same-reject-function.js
+++ b/test/built-ins/Promise/race/same-reject-function.js
@@ -13,17 +13,14 @@ 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 10b6bfec6..b20ee7242 100644
--- a/test/built-ins/Promise/race/same-resolve-function.js
+++ b/test/built-ins/Promise/race/same-resolve-function.js
@@ -13,17 +13,14 @@ 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 b32fd7ef4..26e2fd039 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 cf77ab828..752a7c9e1 100644
--- a/test/built-ins/Promise/reject-function-nonconstructor.js
+++ b/test/built-ins/Promise/reject-function-nonconstructor.js
@@ -17,6 +17,4 @@ 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 9e5a978b4..3e0855acf 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 b272e50f0..90cdaaa5c 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 d9a5018af..118c0b448 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 c4194c4a8..b4a6e556a 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 c51a6f177..71be43108 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 12bdde783..9bd28ff33 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 1d1576a1c..24333fb0f 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 e48cbe002..3c83ea5ca 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 90573149a..eec1b98df 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 469656417..95decca57 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 cf83e8bcf..6bd6b5f9f 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 0f9fdc394..47fb6d93a 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,7 +9,8 @@ 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 f1632f40f..0fc52baa2 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 42e0978e7..8aa286ba8 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 9fc397676..3a9c6891a 100644
--- a/test/built-ins/Promise/reject/capability-invocation.js
+++ b/test/built-ins/Promise/reject/capability-invocation.js
@@ -17,9 +17,7 @@ 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 5603b8010..32e89382a 100644
--- a/test/built-ins/Promise/resolve-function-nonconstructor.js
+++ b/test/built-ins/Promise/resolve-function-nonconstructor.js
@@ -17,6 +17,4 @@ 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 a78396daf..8bdd314e4 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 7c5eefb26..2b5cafbf8 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 36a380b0e..4cd93b663 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 3bb74c10b..b9400d266 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 e760edb11..d39c04bbe 100644
--- a/test/built-ins/Promise/resolve-non-thenable-deferred.js
+++ b/test/built-ins/Promise/resolve-non-thenable-deferred.js
@@ -22,24 +22,22 @@ 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 1c2463a8b..5f7b13b67 100644
--- a/test/built-ins/Promise/resolve-non-thenable-immed.js
+++ b/test/built-ins/Promise/resolve-non-thenable-immed.js
@@ -22,9 +22,7 @@ flags: [async]
---*/
var returnValue = null;
-var nonThenable = {
- then: null
-};
+var nonThenable = { then: null };
var promise = new Promise(function(resolve) {
returnValue = resolve(nonThenable);
});
@@ -32,12 +30,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 2b2a3419b..ad3239355 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 cb7d4c29c..22658f20a 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 542df5b65..d167f2a8e 100644
--- a/test/built-ins/Promise/resolve-prms-cstm-then-deferred.js
+++ b/test/built-ins/Promise/resolve-prms-cstm-then-deferred.js
@@ -27,9 +27,7 @@ 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;
});
@@ -39,15 +37,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 3936c9700..bc292a8c4 100644
--- a/test/built-ins/Promise/resolve-prms-cstm-then-immed.js
+++ b/test/built-ins/Promise/resolve-prms-cstm-then-immed.js
@@ -27,9 +27,7 @@ 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);
@@ -46,16 +44,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 ed519fa82..02a75bd27 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 ea7ce79b0..2c0602aea 100644
--- a/test/built-ins/Promise/resolve-thenable-deferred.js
+++ b/test/built-ins/Promise/resolve-thenable-deferred.js
@@ -27,23 +27,21 @@ 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 4be0fc547..7d90a5e1c 100644
--- a/test/built-ins/Promise/resolve-thenable-immed.js
+++ b/test/built-ins/Promise/resolve-thenable-immed.js
@@ -25,9 +25,7 @@ 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);
});
@@ -35,12 +33,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 b4d5943c7..07c4e02f0 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 6b79535d6..15718a0a6 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 294bf71fc..2b471179f 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,20 +9,18 @@ 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 a17137231..3ea901fc8 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,22 +9,20 @@ 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 568d089b4..1da71f6c7 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 2ae973406..3eb8f83f9 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,16 +11,14 @@ 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 f67bff242..61f5e7eae 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 c243d9c3a..1cb07bbe9 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 37074d240..1db7b9483 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 58dfe71d6..cbc6b97ae 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 c59cabeb2..7e20d493b 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 76d6483a5..40d1e1ece 100644
--- a/test/built-ins/Promise/resolve/resolve-from-promise-capability.js
+++ b/test/built-ins/Promise/resolve/resolve-from-promise-capability.js
@@ -16,9 +16,7 @@ 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 ba8adcd9a..c010cbf3e 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 032ad20f7..4b764c799 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 98d7f3d99..0da129a2d 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 2b7bccc95..fd345394c 100644
--- a/test/built-ins/Promise/resolve/resolve-prms-cstm-then.js
+++ b/test/built-ins/Promise/resolve/resolve-prms-cstm-then.js
@@ -23,9 +23,7 @@ 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) {
@@ -33,10 +31,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 2ea723f3b..3781e7fed 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 347e4bb4e..db07eb6e3 100644
--- a/test/built-ins/Proxy/apply/call-parameters.js
+++ b/test/built-ins/Proxy/apply/call-parameters.js
@@ -12,16 +12,14 @@ 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 1f3bf53d2..0348f4f01 100644
--- a/test/built-ins/Proxy/apply/call-result.js
+++ b/test/built-ins/Proxy/apply/call-result.js
@@ -10,14 +10,12 @@ 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 cdc7461d1..5906aef04 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 db3f6bfa5..8542e64f6 100644
--- a/test/built-ins/Proxy/apply/return-abrupt.js
+++ b/test/built-ins/Proxy/apply/return-abrupt.js
@@ -6,15 +6,13 @@ 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 b6e74f1ef..b033e8dd4 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 8bb87786c..e19cf8445 100644
--- a/test/built-ins/Proxy/apply/trap-is-null.js
+++ b/test/built-ins/Proxy/apply/trap-is-null.js
@@ -31,9 +31,7 @@ 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 898fad362..9cb26e365 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 a8df9f34b..cc9c1ff41 100644
--- a/test/built-ins/Proxy/apply/trap-is-undefined.js
+++ b/test/built-ins/Proxy/apply/trap-is-undefined.js
@@ -31,9 +31,7 @@ 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 dab0f8512..714b1db4b 100644
--- a/test/built-ins/Proxy/construct/call-parameters-new-target.js
+++ b/test/built-ins/Proxy/construct/call-parameters-new-target.js
@@ -15,25 +15,22 @@ 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 7d0e9cc1e..f52f7b842 100644
--- a/test/built-ins/Proxy/construct/call-parameters.js
+++ b/test/built-ins/Proxy/construct/call-parameters.js
@@ -13,18 +13,17 @@ 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 7740f1fe8..f47ddb901 100644
--- a/test/built-ins/Proxy/construct/call-result.js
+++ b/test/built-ins/Proxy/construct/call-result.js
@@ -11,14 +11,12 @@ 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 816d04d4f..3c6032161 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 c0d41aa4e..de42204fd 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 5c40d5c8c..0edd139a8 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 7e97a803b..a7e27c6a8 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 ca2f5af05..4de604814 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 963812950..ade72bfae 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 347dd3dd9..9547263b9 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 41bc0c700..f0c66394a 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 9bc1ab29f..0a895bc57 100644
--- a/test/built-ins/Proxy/construct/trap-is-null.js
+++ b/test/built-ins/Proxy/construct/trap-is-null.js
@@ -27,18 +27,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, {
- 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 4157f7b23..a50384f59 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,13 +16,10 @@ 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 97580c6d6..d1a6c7106 100644
--- a/test/built-ins/Proxy/construct/trap-is-undefined.js
+++ b/test/built-ins/Proxy/construct/trap-is-undefined.js
@@ -27,18 +27,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, {
- 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 151ad36f4..5126e4cb0 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 e1846af10..891c1826b 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 c22244d25..7abcc0b2d 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 262a99067..7cb41f20b 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 3882b313e..25f1982ec 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 78234d8e2..380133423 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 78a78ba64..8dd8f172b 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 b29ed9cd0..7bb2dae6c 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 f369b5ef2..7bce1979c 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 fb8b118de..f68607b36 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 d8b9f1856..d43e653e9 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 af64c1e46..845cb6592 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 ba7889344..2dae22e79 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 aa1fcd96f..d442b2e15 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 825e7145a..a3569f23d 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 42895cf62..9cda79c82 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 6afb6f5ba..ade8bb971 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 aa83c1ff0..ffbf14733 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 0f7594a14..2e4699cbf 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 5914eacf6..574c72816 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 25bf88171..620ffbd89 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 14ce2cc24..229b373e2 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 1a671b3a0..595766db9 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 ca6f80c86..730e25e6f 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 9f5a53c7d..8596b704d 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 d75b21567..a0e9500ed 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 3fe044b29..58b63dbbb 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 a401653c5..969c52aae 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 4419f0a19..148a7b81a 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 93345e580..fe506f109 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 bfd8e3b08..e84586345 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 ddc6c8d8a..1b280f79e 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 6c485ec64..c0785c90b 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 befa2c60a..94d33a91e 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 7e9f76bf4..c22fd398f 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 7923974dc..d0299d5d9 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 d3d2d7739..fc70773fa 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 29ee6d64c..60c76025d 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 0f174367f..3adf23123 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 d1c1df2bf..070fba7f5 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 b37f51b56..e501f9160 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 922a6ffd0..08968ff92 100644
--- a/test/built-ins/Proxy/get-fn-realm.js
+++ b/test/built-ins/Proxy/get-fn-realm.js
@@ -22,8 +22,6 @@ 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 4427d5b80..e8735486e 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 b4f0e11d3..648ddc9ad 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 ce6f0a1fc..af8cb6739 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 0be40457c..82dc3a187 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 c632d8e5f..f0a8e7e42 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 e50ae367e..560bd5650 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 feadb297d..46ddaeff0 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 5afb94229..930265b6e 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 31d494104..1ad1eca0a 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 f26b48638..a95e79201 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 7e1b945f7..d045e1492 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 50b129401..addd53529 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 c25ea6ca2..c9d107f59 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 3cf99140b..f900e251f 100644
--- a/test/built-ins/Proxy/get/trap-is-undefined-receiver.js
+++ b/test/built-ins/Proxy/get/trap-is-undefined-receiver.js
@@ -13,14 +13,12 @@ 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 b06d57330..4c2257aa6 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 dada9a171..d0d6222d7 100644
--- a/test/built-ins/Proxy/getOwnPropertyDescriptor/call-parameters.js
+++ b/test/built-ins/Proxy/getOwnPropertyDescriptor/call-parameters.js
@@ -13,17 +13,15 @@ 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 61a59ce02..a908e072b 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 a19bfedbc..0e35b7780 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 6d62c28bf..1bc732006 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 651005509..1d092e2c7 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 fb881aeba..fb8d21829 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 4b54cba83..d27054cf4 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,9 +16,7 @@ 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 1e706893c..23fcd2bad 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 b256f6907..28fd426c6 100644
--- a/test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-is-invalid-descriptor.js
+++ b/test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-is-invalid-descriptor.js
@@ -17,17 +17,15 @@ 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 bc99d971b..4184e28ea 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 4dba72b98..338883edb 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 ed8dd3bcf..13f46ca31 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 928039e34..cc25cc694 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 805f068e6..26d7c69b6 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 ce9fd5886..a6bfeef4c 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 4471bc1ec..75d7099be 100644
--- a/test/built-ins/Proxy/getOwnPropertyDescriptor/trap-is-undefined.js
+++ b/test/built-ins/Proxy/getOwnPropertyDescriptor/trap-is-undefined.js
@@ -14,9 +14,7 @@ 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 a61199942..e9e16eb2a 100644
--- a/test/built-ins/Proxy/getPrototypeOf/extensible-target-return-handlerproto.js
+++ b/test/built-ins/Proxy/getPrototypeOf/extensible-target-return-handlerproto.js
@@ -22,9 +22,7 @@ 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 0569ed4ed..a834aca9e 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,9 +25,7 @@ info: |
...
---*/
-var target = Object.create({
- foo: 1
-});
+var target = Object.create({ foo: 1 });
var p = new Proxy(target, {
getPrototypeOf: function() {
@@ -38,5 +36,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 376841980..38c8e7e49 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 f81d3ffe3..bf04b9e54 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 3920ee73d..e6335e46a 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 7a534ddc9..c8c0543ba 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 628e0868c..d0533f518 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 29033521e..34bea0d5f 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 0c88056ee..9b47cf9a9 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 ea4aeff85..8e5143d3d 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 f51d824db..1bdc92772 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 4bcbe2ca5..9b80cad11 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 1efe91f2c..59e567ffc 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 68320160b..06bd4eaf0 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 8cc5d8ea3..90deca388 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 fb3e6f463..5847413a2 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 dc5e3a3b9..b1f9c5190 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 cb7ebd738..d008f1ad2 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 52bc88f4f..7a74041c4 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 a6a551709..43c59aa01 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 71f882c22..581a4113f 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 9e42c2d05..d7a7c5a4b 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 e4ff88601..46824ac2d 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 1e58f30f7..145073b72 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 187ef0030..9c5a409da 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 5ee560de8..9186074a7 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 951ebcf43..1153bd364 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 63f494357..712419824 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 4c3ec37c2..26a98bebb 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 3327adc8c..b43ea5619 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 0ff2c1b37..d8d14bf7c 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 ae7591d53..aacd87bd0 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 5c8bf4e3f..29d54369e 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 50a76377d..d40f45293 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 0c8406f46..4858765c3 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 7db8f4cf6..845cd0b57 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 112a31da8..9ddf4c865 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 f788aa291..ea802c424 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 6723d9104..9ea0cdf6c 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 6c3cc745e..3fc49524d 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,12 +13,10 @@ 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 63b06910a..ad4073ac0 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 cb256baca..88b7b88a1 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 fb6eddf5f..22cc02791 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 a491ffb6d..f7d6832df 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 653e1fc86..e703ece13 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 9cd1c90b4..70a898d5d 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 405fbbfba..fd48e0f9c 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 45e22b3a0..58d211c2f 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 c3bd07242..2f0896491 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 78cc7335f..e6f3a3aa2 100644
--- a/test/built-ins/Proxy/ownKeys/return-type-throws-array.js
+++ b/test/built-ins/Proxy/ownKeys/return-type-throws-array.js
@@ -25,9 +25,7 @@ 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 0eb431e7d..030d6b5e8 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,9 +19,7 @@ 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 20ed2a8fd..6b95478ae 100644
--- a/test/built-ins/Proxy/ownKeys/trap-is-not-callable.js
+++ b/test/built-ins/Proxy/ownKeys/trap-is-not-callable.js
@@ -16,12 +16,10 @@ 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 3b42a49e1..2b9830262 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 7774224b8..2eb15a364 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 e8067f063..12b7ee865 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 dbe0c5994..c448d70e8 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 cb3384df6..cfe31cb7e 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 9f922da8e..8f1707312 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 db2287b49..14143824f 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 2a42bfdd9..b3826aa21 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 3884cd44d..9613eb4b9 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 9b8566e92..b06a7a886 100644
--- a/test/built-ins/Proxy/proxy-undefined-newtarget.js
+++ b/test/built-ins/Proxy/proxy-undefined-newtarget.js
@@ -16,3 +16,4 @@ 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 32d4c27cd..b08d73c2e 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 1dd225538..02fc9aa5c 100644
--- a/test/built-ins/Proxy/revocable/revocation-function-nonconstructor.js
+++ b/test/built-ins/Proxy/revocable/revocation-function-nonconstructor.js
@@ -14,6 +14,4 @@ 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 7f30f31c9..0e7100cfc 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 20ae2d490..c6ca59a13 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 a1c4f2259..58380a602 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 78f8d8ec5..9d3783668 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 a17dd5a3f..3d05404a9 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 3b2fa4234..812333e92 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 637c43a46..3b2035085 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 6f6ee2b25..1da66bbda 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 20e5f2a95..11f356387 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 89547216d..0277b54c1 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 730ecafe1..0bd1f6328 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 3fd7a5a95..314d164ef 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 582336903..5cdb2926a 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 9bfd14990..3e46bc33d 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 cd3622d7c..1aef3ff16 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 512cb83e1..f0b29b0ff 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 4c915c494..f0074b9f1 100644
--- a/test/built-ins/Proxy/set/trap-is-undefined-receiver.js
+++ b/test/built-ins/Proxy/set/trap-is-undefined-receiver.js
@@ -14,14 +14,12 @@ 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 06cadd7a0..82399fa34 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 ff44703df..d85199ec0 100644
--- a/test/built-ins/Proxy/setPrototypeOf/call-parameters.js
+++ b/test/built-ins/Proxy/setPrototypeOf/call-parameters.js
@@ -15,19 +15,17 @@ 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 8a78bc965..4d4a7a6b6 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 292515d93..cb2ffaff1 100644
--- a/test/built-ins/Proxy/setPrototypeOf/return-abrupt-from-trap.js
+++ b/test/built-ins/Proxy/setPrototypeOf/return-abrupt-from-trap.js
@@ -12,13 +12,11 @@ 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 e87fdf93d..f20f03326 100644
--- a/test/built-ins/Proxy/setPrototypeOf/toboolean-trap-result-false.js
+++ b/test/built-ins/Proxy/setPrototypeOf/toboolean-trap-result-false.js
@@ -32,44 +32,30 @@ 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 5353aaf00..189bc701a 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,43 +36,31 @@ 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 7e7b7212d..bb0e9cf4b 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 c6977adb3..6a4d3395e 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 bf07a0bfb..b5b3d97a2 100644
--- a/test/built-ins/Reflect/apply/call-target.js
+++ b/test/built-ins/Reflect/apply/call-target.js
@@ -15,7 +15,6 @@ 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 b506a8091..9780efdf8 100644
--- a/test/built-ins/Reflect/apply/return-target-call-result.js
+++ b/test/built-ins/Reflect/apply/return-target-call-result.js
@@ -13,7 +13,6 @@ 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 90f816297..0f9294850 100644
--- a/test/built-ins/Reflect/construct/return-with-newtarget-argument.js
+++ b/test/built-ins/Reflect/construct/return-with-newtarget-argument.js
@@ -15,7 +15,6 @@ 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 db88a02a2..ef5ef9a2b 100644
--- a/test/built-ins/Reflect/construct/return-without-newtarget-argument.js
+++ b/test/built-ins/Reflect/construct/return-without-newtarget-argument.js
@@ -14,7 +14,6 @@ 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 78a069ae5..da84e3fb7 100644
--- a/test/built-ins/Reflect/defineProperty/return-boolean.js
+++ b/test/built-ins/Reflect/defineProperty/return-boolean.js
@@ -17,22 +17,16 @@ 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 c000d52c5..605a0784f 100644
--- a/test/built-ins/Reflect/get/return-value.js
+++ b/test/built-ins/Reflect/get/return-value.js
@@ -55,9 +55,7 @@ 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 4168de3ec..da87197bd 100644
--- a/test/built-ins/Reflect/getOwnPropertyDescriptor/return-from-accessor-descriptor.js
+++ b/test/built-ins/Reflect/getOwnPropertyDescriptor/return-from-accessor-descriptor.js
@@ -46,7 +46,8 @@ 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 79694d89a..41ea3103f 100644
--- a/test/built-ins/Reflect/getOwnPropertyDescriptor/return-from-data-descriptor.js
+++ b/test/built-ins/Reflect/getOwnPropertyDescriptor/return-from-data-descriptor.js
@@ -22,7 +22,8 @@ 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 496773613..7332d0ba5 100644
--- a/test/built-ins/Reflect/getOwnPropertyDescriptor/symbol-property.js
+++ b/test/built-ins/Reflect/getOwnPropertyDescriptor/symbol-property.js
@@ -29,7 +29,8 @@ 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 0f97d52c5..6de0bd7e5 100644
--- a/test/built-ins/Reflect/getOwnPropertyDescriptor/undefined-own-property.js
+++ b/test/built-ins/Reflect/getOwnPropertyDescriptor/undefined-own-property.js
@@ -17,9 +17,7 @@ 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 f035cb328..7532b4ade 100644
--- a/test/built-ins/Reflect/getPrototypeOf/skip-own-properties.js
+++ b/test/built-ins/Reflect/getPrototypeOf/skip-own-properties.js
@@ -13,10 +13,7 @@ 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 6b74da5f5..7d971705b 100644
--- a/test/built-ins/Reflect/has/return-boolean.js
+++ b/test/built-ins/Reflect/has/return-boolean.js
@@ -33,7 +33,5 @@ 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 103875e68..e2ca63512 100644
--- a/test/built-ins/Reflect/ownKeys/return-empty-array.js
+++ b/test/built-ins/Reflect/ownKeys/return-empty-array.js
@@ -16,8 +16,6 @@ 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 282b90baa..f3eab256e 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 8b99a236b..bed865533 100644
--- a/test/built-ins/Reflect/set/creates-a-data-descriptor.js
+++ b/test/built-ins/Reflect/set/creates-a-data-descriptor.js
@@ -75,3 +75,4 @@ 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 fab96a084..191c1c21e 100644
--- a/test/built-ins/Reflect/set/different-property-descriptors.js
+++ b/test/built-ins/Reflect/set/different-property-descriptors.js
@@ -52,9 +52,7 @@ 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 bbabeddb3..b3f32bac6 100644
--- a/test/built-ins/Reflect/set/receiver-is-not-object.js
+++ b/test/built-ins/Reflect/set/receiver-is-not-object.js
@@ -29,9 +29,7 @@ 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 9f484da63..4f820eb4a 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,3 +42,4 @@ 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 6aeaaa2f4..3d8291cb2 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,9 +30,7 @@ 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(
@@ -40,12 +38,8 @@ 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 6e905fc60..f9c79821d 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 8245cb8dd..624547011 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 1aabb2cc0..fc9c25790 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 ca7a56f73..cfaa01bbf 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 676dda30e..44d78f511 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 034688f20..bd04b4980 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 f114cbe20..246027320 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 386080551..0b27a8845 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 da514d132..d461df5c2 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 3a10610e2..5d3eb8afa 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 d8050b763..3be64a51c 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 fde444c9a..58130c947 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 f926b910a..68be6d283 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 b3641bfbe..adfd0967a 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 69ef89717..1d3e53b57 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 d39c4b6b9..91cbdc7f9 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 405e199a7..a12c544b1 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 746fdf093..c2fb1bd6e 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 0dae484f9..3a7049b72 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 fdd2fa800..3f99f9eef 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 6d1b5d627..3d84b9216 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 d7dfb0fd0..0e0ed3092 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 f6f418d72..0b2c0e38a 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 935042ce2..d60ab2f73 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 90f8b136d..e08eafa6a 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,9 +523,7 @@ 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 144e903d4..51f6443ad 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 7bb1112f9..3ca8bb9b2 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 bbf68f870..a0f1f8a3f 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 dd3b18ba5..b3c139993 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 0d2a442db..d89d60310 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,9 +516,7 @@ 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 7c30b022b..4779d6aa3 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 23b859f61..d86881a26 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 f23510977..be9a87442 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 864e99d48..ef1284ea0 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 d5450cdb4..2a868ee15 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 e46e495ea..b11e5b46f 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 aedc5aa2f..3e7157c58 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 6f8eed6ed..e0b1289c2 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 003de301d..fea5d3b20 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 e8a2b2abf..7980c5a22 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 12305f94d..305ba64c7 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 c99a80f5f..e1113ee2a 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 4ccf17afd..f8497c56c 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 4a4f3f397..bd91138b4 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 7322d0c00..fa4186607 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 4175862dd..3cc2a104d 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 ba3b8babc..c0bfe30ee 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 f1a0f50f8..d40bae9a9 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 3696b1197..ad99d4604 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 3b88334a5..808957c86 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 0b1119f3b..bbc3eea3c 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 309b66274..717f4e3a8 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 ae2a04746..118e97754 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 ed751e113..b07244788 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 c4c792707..b425136a7 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 6bef4680b..8c56381a4 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 b71a8e2d0..7f1b7a8f3 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 a746ec0fe..1b65af0b9 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 45b63c0ba..5db2c8a2f 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 cfe8a187c..1e146ed67 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 6f72faa34..41fa114e9 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 edb1e7217..72b8f362b 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 19adb92ae..2e9192931 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 7900c9667..7ea19db23 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 decc349ee..b17d762c4 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 2e43ffef1..b5fa6aa78 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 b14bf9a83..abe4f9e85 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 1ffeede38..a300eaf42 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 cd90cf571..5a52eefb4 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 88d00a8b8..ba59484a0 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 4d362fd14..b1f4c7f73 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 9cc3d5788..ae7800435 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 be8039a23..866a2190e 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 f2c87ad11..4eb9e7140 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 6984efbb6..6880d52e0 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 50803306b..9ddad9ee7 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 35db425f6..8bd881ecd 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 74334e4a0..7d0fb22e3 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 b5bb8bb09..0072be941 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 404cbff86..5a4e4c391 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 40d2ce455..db3165b87 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 0fe47bfb0..2b47b233c 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 62334ca9b..8a25edacd 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 e75d7e8d1..a9ba20a5f 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 55f1e86f7..212c5454b 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 dd1c9cb09..1990ea775 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 6dc726ae3..1d2407842 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 98a17d6a0..63ba14403 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 8969d132f..e6b87b488 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 e772129dd..1045301ea 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 5899bb4d7..9b91aeead 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 d1e402dcd..71e84fc34 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 41e90cd88..77f53e08c 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 f65e924e2..6bce82385 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 32516d36f..760666986 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 96a353500..d976e5194 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 cc70764fa..6d0b45234 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 6cce5af79..62d81b080 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 bb30b7271..beebc2349 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 76fe52219..bdd269b9b 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 b9327953c..e7a2232f1 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 708e7e429..196b513db 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 f85caaae8..31406ee33 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 6e2db75b3..02e5ec81a 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 35bb9f9f0..3ea1242f7 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 778be632b..43c91673a 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 a83a22768..d074680e4 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 49d44a838..71bfab090 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 5d6c74ca5..8ec1fa72f 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 515e80299..78ed63552 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 3b366a5e2..5cb7e7a32 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 1e597f91a..a0d365bb8 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 bc99d1437..d2bf9c0d2 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 213125985..488bb63a0 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 4d407f8e2..0ced85fe0 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 9869d3456..2fb0c67eb 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 2eca25140..03ca482e5 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 458c1d576..5a63327d9 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 2330fa26c..86d8dc778 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 38caf9afa..d6a7f0914 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 f226a21ac..6b65ab266 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 36e4be4ca..ce657c9b5 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 1f5c46884..bbb173b11 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 00df52987..29393f0ad 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 389006122..9ea5be2b9 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 62d632164..7e660850b 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 9e3241c2a..ece297f65 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 b4c9ef27e..bcbb8b0c9 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 79326b76c..729ecc618 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 6c2505d6a..0a2906599 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 ae0956e6f..86709f1fa 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 b464a8f07..7243bfabb 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 e85f7744a..b5e67b726 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 42b1f0241..f50659e42 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 b220f3882..c13919e91 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 a2c34158d..51523e43c 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 0432503ce..060407424 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 c62dd1441..a5ca2b115 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 397aa6383..e67c8d9d1 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 e844416e7..b1fc175fe 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 68f0b16e9..a019c6d1b 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 0d59db23f..77bdd6b53 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 eb88e50dc..7150d522c 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 220eaee83..77880ddb2 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 f9699320c..c071d8009 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 b974c27c6..c69aac7da 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 576902a41..b24492525 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 6c17255d9..e0e0bb42f 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 32e225481..f2aab4aa2 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 c0f80cfa1..4ae39e2c0 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 0b6223385..f041a8e8f 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 82bae81ee..5550511be 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 f4e7e3a55..bd7fefa60 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 49ed3934e..315775278 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 c279e3739..e0e29ca20 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 c19873c2a..e4d91c3ea 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 545beb17d..93fb400bc 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 19c0afa37..fb1255f5d 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 35a6dac2c..672a36920 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 507ef10a5..7eee46bf7 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 5f7986a08..3f9a62100 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 e7c91a375..22d8ee9f9 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 6e8f3f3b3..8522ca9ce 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 1eca04493..a04d59e2f 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 e8fc33383..3372ab113 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 daea40fcd..376ac498a 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 58e6c17e2..f7df23257 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 922a44d04..d3311f334 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 593fbf016..f6f480113 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 ee6373848..4f042b900 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 66944df9a..0bf29b8cd 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 2b1118007..09a5ec3a9 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 aa7a5745d..51029b789 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 0dc01ed29..1c6705d59 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 add5f297e..26125791d 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 b8f86f3c5..d56cf6e2a 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 d88e9dc88..32e8dfcb3 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 11339ed56..a01a6cfe4 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 a8c29e8c4..81ea28c7a 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 59291226c..95c95bb79 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 b3e5c57f8..fa7c83537 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 f973e84f6..1c0db1e9c 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 0384fd275..bab82b143 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 7364f69a3..2a9de52ad 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 1aa0743b6..f046fb1fc 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 17f64fade..3dfcfb2d9 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 e3185632b..5242db863 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 07a1e3386..317fd309e 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 7b873ac71..d5cb2be7b 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 00f46a858..9ef923453 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 1bfb6cf45..b430c8859 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 f19b67bef..9201d4c6b 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 d98ebd9fc..e9af6cb75 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 e8907a4e0..af586602f 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 a421d09e9..090adf085 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 0139648df..f251c5899 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 01fe1f97a..e29e4c24c 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 115df9dfa..586726b2e 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 3e4c7feeb..f078746d2 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 6a333777c..645611799 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 cf5c85bc3..2bf469f6e 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 17108a29b..b70b42af0 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 9bcbb9d24..6dca42d24 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 2c9096b78..c471fc2d2 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 5a486c0f9..d076e2ef5 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 c9be7d87c..9db765459 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 9c7f4dc88..af32a18d4 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 1b4ae926c..70971cea6 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 abf3b3b76..639bd4418 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 6f8ec08b5..148747555 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 e3355626f..65a188212 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 2bd5c0c7e..0ff489005 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 70a90aaee..26e67e6ed 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 58d7dd0a6..c23c145b8 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 6f16f0ec6..acd87fdf8 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 946f80632..a3e19636c 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 fa3df8305..521ccb574 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 17817c2a6..0cdbb3ed5 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 9fc2f139f..405d3a236 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 ebf44966e..22e0ddcd3 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 46ebecde2..a076f126c 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 202a6dd9d..0dc0ffed8 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 371930389..884dcd9b6 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 b6027f2b7..17379e290 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 d46e2f427..4c813338d 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 3688356ca..9b9f8cd00 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 b8ca45215..7f49b3fe7 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 d828cdf8e..a74d0d2e4 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 6c838e528..bd78fde08 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 41e6f8853..41a46fa76 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 09f836958..1c6d37559 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 613f1fd6b..0c13f607e 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 1312a5dd4..73cdaa3d6 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 55ba72e10..0ae792c8b 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 00f3ea1d8..1914219cc 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 cbcf26dd6..21ff449c5 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 aaf6db673..4a6094382 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 a4d6d73b8..8c5777393 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 bb34799b4..4cb889534 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 0e6e139dc..419d7e4e1 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 b247a8fc4..ae949468d 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 0c2143492..3cf99843b 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 821027ec2..84bdd79bd 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 503ba1c1c..3cf22e3ef 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 d00bc6920..efebcaac4 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 67cf77547..008fe13a9 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 bc20cc946..c4209a18f 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 7a8378827..774bd23cf 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 9acb16276..2d77da10f 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 0d3563036..e5268e296 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 206bb8a25..a8d8313a8 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 f1a8401ed..2040ef9c6 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 f5c432035..ccbc98197 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 6745b6034..197d3de34 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 5c4e855b5..4ee93307e 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 2aacc7deb..4d598bc68 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 053dc7378..3088fd08c 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 4a29869d4..f4647025b 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 ff6eb1099..99385202e 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 f1b5d5983..4d58e957a 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 316ec4965..2e4389980 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 e572f8370..46511a6a5 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 95ed08438..d165c04ff 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 0a6f898b4..7f6a2c61d 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 b3bcc8a7f..222e740fd 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 d7212ee1d..b51f7948a 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 b2dbc0fef..c636d32d6 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 02e4e39c7..79067208e 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 b296c2a52..2a2b46edc 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 3acb5a4d4..5288ce7e4 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 be49cb219..1caea9d73 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 a6612cfd3..a23895599 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 9569ff491..d84b98fe3 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 1c44aaf4d..345cc1112 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 4131d002f..972ed33fa 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 e0f528a9b..60e86bbc2 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 ff69d930c..67079d3cd 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 9228e64b3..16e866376 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 93c9090f2..4da3e6fe5 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 ebd0e8951..d65ecc0e7 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 6f148d50f..cd750fb9d 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 8e6b2e7b4..a47a45c97 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 f64a69eda..27752d9bb 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 978937533..7e974f5f0 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 6b01cade8..f3c400e2b 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 a8108f0ca..82f567ddd 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 a27e53b1a..4a122d15c 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 1eb78a151..777aa82f8 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 e1cfc1f21..28d9b5384 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 e2bbc60f4..8e028ec86 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 2d7ef9066..f041a02b6 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 bf4d94b66..3cce8f11f 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 b0821bf50..b4614efea 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 0e2704b77..304d4e3d8 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 cefeb9f33..b59a54d64 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 0f19d72ed..24599175b 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 596dbff14..979691b2a 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 8197542d7..42fb18903 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 4b59585f3..6c30ce8c0 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 4d1f6b64f..2edd5268b 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 0b2c48bc1..706298b3c 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 fedcd7750..77f1a0b4c 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 f4b2359af..2d43f56b8 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 90b4b631f..9f934ce59 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 0ab6b7aec..105daa3b6 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 67953918f..6d69d1db3 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 cb1401cc8..c311af54a 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 61f0fe911..45b1bcd81 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 5589b330b..b76942c43 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 fe82987ad..a26ce200a 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 1306d39a8..5afd7b265 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 f6f5711bf..2671822ad 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 02c0cc609..b718e3f32 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 c0b0fa020..0ef212562 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 0358e6ff4..6c3bfb0ac 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 1dd2a19ad..b97e62d57 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 a3f9d4a5e..9ebce76ca 100644
--- a/test/built-ins/RegExp/S15.10.2_A1_T1.js
+++ b/test/built-ins/RegExp/S15.10.2_A1_T1.js
@@ -46,42 +46,41 @@ 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 653bb0a61..80e248317 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 2be111163..a40609dcb 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 a73fdc6e5..42fe6507e 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 72453d3e5..9416e9ee7 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 59658029c..9e826ff86 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 b4af65a7d..61e7e6874 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 df67961a7..51f01d47a 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 2eb733cd3..086b41c71 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 2737fa7ad..a65663218 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,18 +11,14 @@ 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 5e6e04c04..d038262d1 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 ef0fce22e..bbcfff4d9 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 40eacdfa5..21f523524 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 f03b42870..9585f8479 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 79f7c6cd6..e318c03fb 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 c632d9537..1fb6251a8 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 c3fee8b28..f9db74f33 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 be9b3e42b..ab2f6ebf4 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 ca987b8ad..7fbffaa1a 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 70882c2cb..8aebbec67 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 2d005f34c..6113d779e 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 5cb04e03a..4949563ed 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 756e3b78d..6cf250705 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 159e00841..683024052 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 f15d5131e..a88675aae 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 69e5cbb15..432b4eddd 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,11 +13,9 @@ 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 add5ef6b9..0ab30d722 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 f9f2b87cf..e4d0d102e 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 18fb09072..f3edd64f6 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 e5c086b6b..c1a063c85 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 189c20bbd..23dbb0d1a 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 3aa637f80..1e38cc318 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 a8d1c9f41..988bd7c40 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,14 +11,9 @@ 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 11ba74a1c..e69d236f2 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,13 +11,9 @@ 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 f17f8819b..ed7b3b7ce 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,31 +7,29 @@ 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 8fd699f48..17855d660 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,35 +9,29 @@ 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 463482d2b..e2aeb3168 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,39 +9,29 @@ 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 7c2b13d60..c451a0df7 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,33 +9,29 @@ 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 8ef204406..63d049009 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,13 +11,9 @@ 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 ff5d38866..a28ed37ae 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,14 +11,9 @@ 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 32987b295..7e9cea428 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,13 +11,9 @@ 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 c0061c11f..48746e19a 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 063b5d3f7..84f56e4ce 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 6ae0d4b3f..49ea6f331 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 689422dab..0e245efe9 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 c2e3cd0a0..d048f8985 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 a0f41bf64..d32dfeb60 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 4978ec3a9..6dc911159 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 19fa62eec..32a29be58 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 411f9e721..96dfbeb1d 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 67dc970fa..8d403ad85 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 bc65ba08a..b93fa54cd 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 27a105a53..956d9e6fd 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 6972182a8..1c2a4e3e9 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,7 +15,6 @@ 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 ae2186464..062bff033 100644
--- a/test/built-ins/RegExp/lookBehind/back-references.js
+++ b/test/built-ins/RegExp/lookBehind/back-references.js
@@ -40,3 +40,4 @@ 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 83d32592c..819045ec1 100644
--- a/test/built-ins/RegExp/named-groups/functional-replace-global.js
+++ b/test/built-ins/RegExp/named-groups/functional-replace-global.js
@@ -22,34 +22,35 @@ 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 54d2a0b7e..0572a0545 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 1bbc2a9e5..4542868a8 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,9 +29,7 @@ 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 88cb12cb2..ab3da38e9 100644
--- a/test/built-ins/RegExp/named-groups/groups-object-subclass.js
+++ b/test/built-ins/RegExp/named-groups/groups-object-subclass.js
@@ -19,9 +19,7 @@ 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 bf832a217..fea8fd0bf 100644
--- a/test/built-ins/RegExp/named-groups/groups-object-undefined.js
+++ b/test/built-ins/RegExp/named-groups/groups-object-undefined.js
@@ -28,8 +28,6 @@ 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 8b9df648c..fb0bdca8f 100644
--- a/test/built-ins/RegExp/named-groups/groups-object-unmatched.js
+++ b/test/built-ins/RegExp/named-groups/groups-object-unmatched.js
@@ -28,11 +28,7 @@ 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 8b3f7da38..32a85bf75 100644
--- a/test/built-ins/RegExp/named-groups/groups-object.js
+++ b/test/built-ins/RegExp/named-groups/groups-object.js
@@ -18,9 +18,7 @@ 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");
@@ -36,8 +34,6 @@ 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 a0c6ea377..9d7aa66f2 100644
--- a/test/built-ins/RegExp/named-groups/groups-properties.js
+++ b/test/built-ins/RegExp/named-groups/groups-properties.js
@@ -16,16 +16,12 @@ 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 1748732ef..e3926bc97 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 7255c4704..7904c75e4 100644
--- a/test/built-ins/RegExp/named-groups/non-unicode-match.js
+++ b/test/built-ins/RegExp/named-groups/non-unicode-match.js
@@ -19,11 +19,7 @@ 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");
@@ -42,6 +38,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 390f628ca..9c02d0b51 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 4a283aa7f..33d62a3f0 100644
--- a/test/built-ins/RegExp/named-groups/non-unicode-references.js
+++ b/test/built-ins/RegExp/named-groups/non-unicode-references.js
@@ -20,10 +20,7 @@ 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 4ae21e7f8..76f134cc8 100644
--- a/test/built-ins/RegExp/named-groups/string-replace-nocaptures.js
+++ b/test/built-ins/RegExp/named-groups/string-replace-nocaptures.js
@@ -29,3 +29,4 @@ 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 516624b30..c825df398 100644
--- a/test/built-ins/RegExp/named-groups/string-replace-numbered.js
+++ b/test/built-ins/RegExp/named-groups/string-replace-numbered.js
@@ -26,3 +26,4 @@ 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 87ae6134c..5c9c131a4 100644
--- a/test/built-ins/RegExp/named-groups/unicode-malformed.js
+++ b/test/built-ins/RegExp/named-groups/unicode-malformed.js
@@ -26,3 +26,4 @@ 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 c72a292c8..a8e1059bd 100644
--- a/test/built-ins/RegExp/named-groups/unicode-match.js
+++ b/test/built-ins/RegExp/named-groups/unicode-match.js
@@ -19,11 +19,7 @@ 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");
@@ -42,15 +38,11 @@ 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 a8007cce0..24e4a6ade 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 9f8df10f5..1f95a2f40 100644
--- a/test/built-ins/RegExp/named-groups/unicode-references.js
+++ b/test/built-ins/RegExp/named-groups/unicode-references.js
@@ -33,10 +33,7 @@ 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 21f75822e..f351d2b74 100644
--- a/test/built-ins/RegExp/property-escapes/generated/Any.js
+++ b/test/built-ins/RegExp/property-escapes/generated/Any.js
@@ -28,6 +28,7 @@ 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 05c035447..a1d12241f 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 e65d4797f..3b3136cfb 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 7941aca9a..a34b24306 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 6f37f0678..1ad8fa95e 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 a39576d7d..48bf65f19 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,16 +10,14 @@ 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 b01c39d27..1330fa46e 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 6c0f0fe99..be0d16957 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 8b0b0de88..9cf925c6b 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 a850481d6..8b42fecce 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 57deb31e6..94688c022 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,9 +32,7 @@ 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 c5109072c..e6af1fc36 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 a75af7385..a6510b684 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,9 +35,7 @@ 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 6d551469a..b579d13fb 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,13 +30,9 @@ 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 7e5a605a2..14b24a188 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,9 +43,7 @@ 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 b83b3f989..ef566fb25 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,9 +32,7 @@ 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 fa34869db..c33934f66 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 a88a41ed7..77c03e4be 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 1ebc0461e..40e1af119 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 c8f3e2c2c..ae4780bd1 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,9 +29,7 @@ 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 5a9497f4d..399b91a97 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 daf9b803d..9fea45f93 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 e1cc62d30..f90e75596 100644
--- a/test/built-ins/RegExp/prototype/Symbol.match/coerce-global.js
+++ b/test/built-ins/RegExp/prototype/Symbol.match/coerce-global.js
@@ -28,9 +28,7 @@ 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;
@@ -64,9 +62,7 @@ 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 63d840851..999a03a0a 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,9 +23,7 @@ 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 1a6bd1030..73d0f249a 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,9 +15,7 @@ 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 81b2e70ce..a3fb320ad 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 fc6c81d1e..4341d85fe 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,9 +32,7 @@ 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 f98a9d07a..3427d2f51 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,9 +30,7 @@ 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 f30e987bb..ca52115e7 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 7d7461abc..4cf5c10f0 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 5407bc371..cd3815a71 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 f66c7be9b..c7da00f59 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 a1b654b8e..7c1330c07 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 c0809c650..b12647ba1 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 991ab6587..dab31fc7d 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 5195e7124..af11c4b92 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 e4ed04613..c98886c52 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 c2d5a2464..41547753a 100644
--- a/test/built-ins/RegExp/prototype/Symbol.replace/coerce-global.js
+++ b/test/built-ins/RegExp/prototype/Symbol.replace/coerce-global.js
@@ -15,9 +15,7 @@ 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;
@@ -45,9 +43,7 @@ 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 6ea18eda9..498ea8856 100644
--- a/test/built-ins/RegExp/prototype/Symbol.replace/coerce-unicode.js
+++ b/test/built-ins/RegExp/prototype/Symbol.replace/coerce-unicode.js
@@ -15,9 +15,7 @@ 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 cc25a77df..ebfe89cea 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 978375317..5ecc7b47b 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 120866908..b35ba4435 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 a1d32ab57..301a4673d 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 62aec4b30..5f9a58aee 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 44c2a570b..2b556a8b4 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 7b49452e5..a6a97f753 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,9 +22,7 @@ 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 7447ac6d8..2a03846f9 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,17 +29,9 @@ 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 2af11e676..000ba643b 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,17 +29,9 @@ 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 8d5bf5b79..902ae4423 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,9 +19,7 @@ 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 e1ff4fee2..33df517c2 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 136ea6c23..62ecbb9bf 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 c59779e41..22a0e3dd1 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 5d9a60511..a42a59168 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 0f7276a32..828e247fe 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 52d19ea03..17287cd44 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 6b255d458..a84e790cc 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 95df622a4..8cae30de4 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 c13bf187c..20649e518 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 d571c7979..a9824f815 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 10dd25140..81fee39c5 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 ee76f1a92..5b2746f38 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 ce69827b0..889dbdac7 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 01645c749..9b59d5d83 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 ccd4e4889..398209d38 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,9 +25,7 @@ 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 5b4c75ca0..458f57691 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 f3333c64c..8f85a5e11 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,9 +15,7 @@ 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();
@@ -32,9 +30,7 @@ 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 948673373..e8bd0ee00 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 eae1d9a17..913b64516 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 e23fec9a1..3edf19d28 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 fc2b372a0..fc69ddb02 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 093f3ec2f..5d66443c4 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 32c3c0ee3..aae507223 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 88194a186..58ad484d6 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 26fbbad46..f9b662f50 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,10 +22,7 @@ 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 2550e2e00..3425f4623 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,9 +19,7 @@ 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 26faf1117..b83974bee 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,7 +31,5 @@ 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 d99763cf6..7d6dfdd82 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 5e89b6c19..0292e0846 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,9 +42,7 @@ 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 5f1bb6e79..6e987a56a 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 c6bea6bd6..9d3f5964e 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 8b0f5e497..c4fe2036a 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 67858db7c..a10409309 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 c4b57d4a6..c781dde5e 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 8cbc45e38..476dbf950 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 767c4d842..1e370c193 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 4ccfba20f..ab93d95a8 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 3b8b33029..5c69cca8e 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,9 +15,7 @@ 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 cbac6ac4c..1fd0f84ac 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 0b7c3689c..f76ef50e6 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 dc640a28d..824d63114 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 10dc7b5c5..e1cbaccf1 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 1fef458d1..f019f3ceb 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,19 +11,15 @@ 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
@@ -42,7 +38,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 ef9f1b47f..806522d57 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 ab68f596c..f52b8ffb8 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 d9cd5c4af..8a19ebf50 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,19 +9,15 @@ 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
@@ -40,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 = /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 371f41238..a0a229e5f 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 6b2c1501e..b8b290bc3 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 bcee432f1..5095f634c 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 e56a3b0e9..e5d74add5 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 3823541a1..38f3be48b 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 245fd746e..b6bbf42f9 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 d6499080c..ad8205338 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 d0de1daf6..f65da3263 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 580ced07a..e5ecd573a 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,19 +11,15 @@ 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
@@ -42,7 +38,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 c0344cfa2..2bb8b42d5 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,22 +12,15 @@ 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
@@ -46,7 +39,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 56ab7b92e..e80bc22ba 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,17 +11,15 @@ 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
@@ -40,7 +38,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 ba3a84f04..27e416f17 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,13 +13,9 @@ 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 dbea95b38..ee0dad0cd 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,12 +13,7 @@ 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 60704445a..2fe4adc12 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 0bea5bf1b..da9044c91 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 61b203f0f..d76e16ca9 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 8a1d3bf5b..461f4dafe 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 b7cbc10ff..ae0fefba1 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 c71ddfcd8..8cd33f8c3 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 1b75152ed..146eeacf4 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 8238d3f8d..5c2fa4f00 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 6d19fc062..7c0a55e09 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 bc35c777a..8c31afbbf 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 5ee95865a..f71557bf6 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 14ad64b90..4052d931a 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 756ec7a45..34a0fe65a 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!"
-
-var NEVERMORE = 11;
+ "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 __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 52f8f6ff8..8afc2f5a5 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!"
-
-var NEVERMORE_AND_EVERMORE = 12;
+ "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 __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 b652749b6..278549a27 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!"
-
-var ALL_THE_HOPELESS_MORE = 18;
+ "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 __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 2ed60a686..bd8109d4e 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 fa53c3d24..8bef077da 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 822ba2de7..57d17d1f2 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 0e837302f..2f080253f 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 48a01b27e..404c48956 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,31 +21,27 @@ __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;
@@ -57,22 +53,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 d9e466e2d..b375c31d9 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,31 +21,27 @@ __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;
@@ -53,7 +49,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 770b1cc40..34693e335 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,34 +22,27 @@ __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;
@@ -61,22 +54,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 1947c862e..ab07be7a4 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 a664bf88a..e770aec3e 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 f87975591..249609f65 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 3043cb53d..295aac596 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 4a9f46912..3c852b308 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 5b555279a..e3f478c52 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 10315051d..b82c014f4 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 5f710578e..7dc9e0ffa 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 0ee3bf9c0..a7b9e0283 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 c2a6c7a47..9bd529e02 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 8458728a6..f65ed4937 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 22b98fa19..c891da096 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 5ba6e38de..a6c26e1e5 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 7a86bd138..e1997fbbf 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,3 +30,4 @@ 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 a4f42010a..bc00e211f 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 a03c1881c..482640969 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 8fbc65542..60fecfef5 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 fdfe258b1..7969581b1 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 62308d478..3b0ca4dde 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 d246cbf20..01344abce 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 0cf733d86..2cd4e7807 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,9 +15,7 @@ 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 8bdaa0b16..5fcda8dca 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 6257f4fac..de045b10f 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 2a31a4458..0663d82c9 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 bfe91eaea..40e81bc40 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,14 +9,10 @@ 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 35cc9c8b4..bf1374b1a 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 e81f96766..813a98cdb 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 aa38d1a65..ff62b3be7 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,14 +9,10 @@ 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 730d5c0d6..7aa80a6cb 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 829f24d84..030933e71 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 be53956ae..7b05aba06 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 c9fc6b7d6..7ac446dbc 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 ce4876517..1450311d4 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 e739a9167..15bf3b7bc 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 880d6d231..aa7ca1595 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 fc5f9d30b..73af4f879 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 8851e7cfe..6ce78d065 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 953ec5b0a..444fbebb3 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,14 +9,10 @@ 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 c8fb25eb2..fd79faab4 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,17 +10,10 @@ 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 2dcb863c3..9391e3eca 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,10 +12,6 @@ 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 87b085bcd..b51f07c96 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,13 +11,9 @@ 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 7902bbd72..3380f6b60 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,12 +11,7 @@ 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 45d0268d9..5ff8d3dec 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 ab12ae41c..e3f540e24 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 19ed78f64..85f5cd90c 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 dbf2ab6dc..5040c3dde 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 646cc8020..f94a6fa0f 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 4a1709205..fdc0c6aff 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 52de15e0c..ce3af8384 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,16 +12,14 @@ 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 1d57d4f64..a54502d5c 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 ad495948e..13cc68d81 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 0f619e93d..ea4099dba 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 8346de727..8d8135160 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 61f2b4233..5d8cf797a 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 b1c3907a4..a7e86715b 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 b8a2669fb..336a36f08 100644
--- a/test/built-ins/RegExp/unicode_restricted_identity_escape_c.js
+++ b/test/built-ins/RegExp/unicode_restricted_identity_escape_c.js
@@ -19,9 +19,7 @@ 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)) {
@@ -36,9 +34,7 @@ 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 f32c80758..ad46ab816 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 966ec80df..fe5f45fb1 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 775cd37a8..f902a2134 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 37519db7e..ae21ec5e0 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 670481946..0298ce808 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 7ea0c2f46..b7749a9dc 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 3d770e4c9..98a5dfd95 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 b60455a02..73930249c 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 eac255331..6dbdb631e 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 1726e96cd..15ed3a2e1 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 772a742d0..f654ca200 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 8bed7599a..05bd32934 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 49ba06e75..92d63cfd3 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 7b04f8461..b3e1b02c3 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 7a2604657..dae711e14 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 b785272e1..78e71e499 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,3 +19,4 @@ 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 f5065081a..7b3f8a0b8 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 db02a7bbb..d3c6c401b 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 4f9121c9f..e58e93263 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 ad077f633..fa2c30b9d 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,19 +25,14 @@ 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 171abef9c..9879baf9b 100644
--- a/test/built-ins/Set/set-iterator-next-failure.js
+++ b/test/built-ins/Set/set-iterator-next-failure.js
@@ -15,7 +15,6 @@ 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 ac45b116f..04e943a41 100644
--- a/test/built-ins/Set/set-iterator-value-failure.js
+++ b/test/built-ins/Set/set-iterator-value-failure.js
@@ -17,7 +17,6 @@ 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 d5d9613e0..fb7cd1d67 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 8f2562fe9..6f1269bdb 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,10 +17,7 @@ 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 1c622ba8d..1d589b0fe 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,10 +17,7 @@ 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 a5f0c47cf..04e44f985 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,10 +17,7 @@ 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 db067b0af..6e3055f6f 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 9a744c30b..5fe703335 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 57d025952..3f0f40e49 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 e9957b4a6..f7ab35ebe 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,7 +12,6 @@ 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 65da03f28..6c5fcb58e 100644
--- a/test/built-ins/SharedArrayBuffer/prototype/slice/end-exceeds-length.js
+++ b/test/built-ins/SharedArrayBuffer/prototype/slice/end-exceeds-length.js
@@ -12,17 +12,14 @@ 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 cfb7288ad..efdcbeec1 100644
--- a/test/built-ins/SharedArrayBuffer/prototype/slice/negative-end.js
+++ b/test/built-ins/SharedArrayBuffer/prototype/slice/negative-end.js
@@ -12,17 +12,14 @@ 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 19e276a65..9312d273d 100644
--- a/test/built-ins/SharedArrayBuffer/prototype/slice/negative-start.js
+++ b/test/built-ins/SharedArrayBuffer/prototype/slice/negative-start.js
@@ -12,17 +12,14 @@ 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 ca61abaa9..98770045b 100644
--- a/test/built-ins/SharedArrayBuffer/prototype/slice/nonconstructor.js
+++ b/test/built-ins/SharedArrayBuffer/prototype/slice/nonconstructor.js
@@ -17,6 +17,4 @@ 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 ea4595dc0..b3f045652 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,9 +13,7 @@ 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 4e5e392fc..e403a69a0 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,9 +16,7 @@ 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 9e1398108..350ba71c4 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,9 +16,7 @@ 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 6a4809c21..83ef93ec3 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,7 +11,6 @@ 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 20b05d817..2f2e3a47f 100644
--- a/test/built-ins/SharedArrayBuffer/prototype/slice/start-exceeds-end.js
+++ b/test/built-ins/SharedArrayBuffer/prototype/slice/start-exceeds-end.js
@@ -12,7 +12,6 @@ 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 98c0f6eef..acbb0c897 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 9efad2dcd..851636111 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 a493c5990..9b9f81b51 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 dc6f98679..5f67b04a2 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 25546a0c4..555772630 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 8ffbdbb7b..e02a8931c 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 fc2e535d7..04818478c 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 3054072d8..7f0787391 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 1b60af205..6f974d61f 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 92d91bf23..9243d4049 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 d9ecc4a7d..6c19ec9e6 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 3bbe6005f..c1f7e04c0 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 f23c8f9fe..8d3cea0d6 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 8cf1869b1..be718e79a 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 85c920644..65ae34d4c 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 55598c4bc..794b4f033 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 6ce2f8542..9543e370e 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 dfb9def71..2a199ca72 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 2d92a9509..02253bd81 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 43d5585df..415e69900 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 dff5f4d4c..80e4b332f 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 69947b9bc..fa12b41b4 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 85434eb86..408fb4bf6 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 22a25a26a..0ef5d12d1 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 5e58d64fd..4fee548c6 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 6fd826c4c..288a13b3c 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 b09319278..204d8e37b 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 b85534d51..95d0ea131 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 9ec1596f1..19f7db066 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 29d6ea6f4..75f049b4e 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 6b0596e2b..a275bd9f6 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 3df6c62b5..f6c6e8a60 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,19 +11,17 @@ 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 );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -31,7 +29,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 5a8e58cc1..c6b05e738 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,16 +9,14 @@ 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 );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,7 +24,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 2a8956433..2c395acf3 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 2b7c835f7..cff64fd34 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 1b7950e2f..46c0474f1 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,11 +11,9 @@ 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;
@@ -24,7 +22,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 );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -32,7 +30,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 );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -40,7 +38,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 f44791a9b..b3eaf733b 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,15 +11,11 @@ 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);
@@ -28,7 +24,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 );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -36,15 +32,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 76bb3c6eb..092aab239 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,15 +12,9 @@ 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
@@ -28,8 +22,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 45f064f13..dbda18dcf 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,17 +12,9 @@ description: >
exception throw
---*/
-var __obj = {
- toString: function() {
- return f;
+var __obj = {toString:function(){return f; function f(){}}};
- function f() {}
- }
-};
-
-__obj.valueOf = function() {
- throw "invalueof"
-};
+__obj.valueOf=function(){throw "invalueof"};
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
@@ -30,8 +22,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 c5b6bc6d2..332769625 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 745ab818b..3e9248ebe 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 e6d950545..600c76266 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 223aa2abf..8bef6916c 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 bb1bee390..e9e3cd3ef 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 b9716333c..b46ea66cb 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 3d268119b..cc4687d03 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 34b722abd..786ecadf7 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 c3b481fd6..50db9d851 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 9ff917a50..5ce2ae1ac 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,9 +11,7 @@ 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({});
@@ -22,7 +20,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 );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,15 +28,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 c01b4bb1e..35402bae1 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,18 +11,16 @@ 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 );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,15 +28,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 95b97e6b4..4a23ee97c 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,14 +11,12 @@ 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 );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,15 +24,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 35de60592..63374d22e 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 387bdf10a..fa3bdafb8 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 de6499d46..7360cf3f1 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 eb019eaf6..584b4e29f 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 8fb4899cc..42c6ad170 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 969b7c099..6537b2dd9 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 9d039cba0..764e7bd01 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 8309818e3..8cdd06221 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 d41526fc8..2df5f77c6 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 67510ea00..08fb07240 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 7aa4181a3..e169e1170 100644
--- a/test/built-ins/String/S15.5.5.1_A5.js
+++ b/test/built-ins/String/S15.5.5.1_A5.js
@@ -14,22 +14,18 @@ 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 );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -37,7 +33,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 883b4106b..b5d7bdde3 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 68ff2408c..f7c992b59 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 3bc78fd2b..ed236183a 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 cc5df5159..6281a6daf 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 04250ab47..d4f2dd5c0 100644
--- a/test/built-ins/String/S8.12.8_A1.js
+++ b/test/built-ins/String/S8.12.8_A1.js
@@ -12,17 +12,13 @@ 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 6618d2cdd..4ffda0d94 100644
--- a/test/built-ins/String/S8.12.8_A2.js
+++ b/test/built-ins/String/S8.12.8_A2.js
@@ -15,19 +15,12 @@ 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 4d92be3f0..7090e3234 100644
--- a/test/built-ins/String/S9.1_A1_T2.js
+++ b/test/built-ins/String/S9.1_A1_T2.js
@@ -12,27 +12,13 @@ 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 13f63f7cc..f93fb59f1 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 147215751..846d1ce46 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 e9df51408..a6b798a3d 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 4959ead61..4f78283a6 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 fbac3d864..e6f969054 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,54 +55,38 @@ 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 1a1050b81..0b9edd0cc 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 30ac54bc7..9fbae6ddc 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 57d7aaa11..8c394c851 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 1e7d423a5..f13e04fe7 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 b3489a479..b29a55043 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 935d50a57..513c563a5 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 3af06a059..fd601b409 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,51 +8,26 @@ 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)));
}
@@ -66,62 +41,37 @@ 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 84dac44c2..da054bb2f 100644
--- a/test/built-ins/String/fromCodePoint/to-number-conversions.js
+++ b/test/built-ins/String/fromCodePoint/to-number-conversions.js
@@ -25,10 +25,6 @@ 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 7b19a381c..839a7cdf8 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 ae4163e2f..0c621f1e3 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 160a7d3e0..fac9d45a5 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 5fecfb2c2..ae4759657 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 6f7a145fb..e94cfe27e 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,21 +11,19 @@ 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 44c686476..1b12c336f 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 b36246e30..227ed079c 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 bc5edd1c3..c63a61dcf 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 79c9d0ec5..a89daec9b 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,11 +7,7 @@ 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;
@@ -19,8 +15,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 21de5fc4c..ad3379461 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,21 +13,19 @@ 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 2d376a2dc..bb5b5cb34 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 c47d9c5c5..d88cec69a 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 10c5d32b2..b92349adc 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,17 +7,13 @@ 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 39930f228..42ad5f81b 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 c69163edf..6296bb163 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 dcf127bde..f3d40ae7a 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,12 +10,8 @@ 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 e611efe88..73d3ab390 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 ed0b9c4e5..067418236 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 cb5f85ffc..ef0d83882 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 46f5c6d60..6137d3e04 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 b83c11f8d..9616be531 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 daf222d95..185d7950d 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 bc71de8a5..5216b646e 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 79556c519..0771bc7f5 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 3f3665233..ab0ddbffa 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 fadadc996..266fc6ae1 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,12 +9,10 @@ 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
}
//////////////////////////////////////////////////////////////////////////////
@@ -24,7 +22,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 a5a00a328..1e3114e6a 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 a43cc85f4..5afab205b 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 d18cf8044..51dc2ca11 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 6414fbe44..9e3d36bee 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 ea9c7dac9..24ac13274 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,11 +7,7 @@ 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;
@@ -19,8 +15,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 39c531e38..a22bf9d0e 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,21 +13,19 @@ 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 f35538135..1137dff67 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 8c31caede..5cd5570ea 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 c1391358e..74b3895c5 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,17 +7,13 @@ 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 1013fba88..547304029 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 05ee919d8..8b0b253dc 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 b3535ed20..a80b2b0ca 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,12 +10,8 @@ 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 d09356f16..3ddf8b0e7 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 e8f6d6410..a59910356 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 860c1d4ec..8a6b06344 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 e1f00f767..9a336549c 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 3c06c1b08..290fad88b 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 c46f0f2b8..29301ca72 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,12 +9,10 @@ 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
}
//////////////////////////////////////////////////////////////////////////////
@@ -24,7 +22,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 97e0f9b83..4098f04d2 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 d21d56d81..23aa00ba8 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 6c3fe2a90..e70cadbd2 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 b09375f23..6c39315e2 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 599b763ab..00258a5e5 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,21 +13,19 @@ 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 1896234ed..69016d99a 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 bec80ca92..647cb30b5 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 fa908ae16..006d0b65d 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,34 +7,19 @@ 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 1b2b1a799..974b29823 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 13b2e3793..f243a077d 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 a47b10436..7bad9d2e0 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,12 +12,8 @@ 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 5d7824d60..e633a6afa 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 09f682933..10e915663 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 297fe08ae..4ededc053 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 bfd2bac54..08d70fd86 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 d9acfba8c..b16030c88 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 0c477fd9e..3b2301578 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 4fb246b17..8d2167924 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,18 +9,14 @@ 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 d743b9a45..1e326035f 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,29 +9,21 @@ 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 f52f1a31e..4da0d1454 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 9ff301ab0..bfb422a43 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 c8613d934..51e74575b 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 6e92461a8..dbb079290 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 1081b4e59..3650972ed 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 fbceb8735..e3bf5290a 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 7ce937b59..a5725856e 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,21 +13,19 @@ 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 173f1b556..db610fbe1 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 ef3079ba4..f3bc0fb9b 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 52c005605..16c1d275b 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,23 +7,15 @@ 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 145b6519c..b641ced38 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 15645c345..c20692bb2 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,12 +15,8 @@ __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 fc998a006..d9f26b932 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 0a189320d..61d8e7037 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,12 +12,8 @@ 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 8e7b5e3e4..4279d8f7e 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 4eee2242f..485239896 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 eae58fcbb..1232528e7 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,15 +9,13 @@ 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 49f56f4d8..69dd4c039 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 62aecd071..a2e046ce2 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 58362dbdd..f342413d7 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 cff1c33cb..f7e1100b8 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 f39afbeec..bf82c55e6 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 133abbee3..3e59d66f6 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 b5921b250..359661a10 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 192b7edc9..9a17c22de 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,12 +13,8 @@ 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 eca493a17..ae24f56f0 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,27 +9,19 @@ 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 ee769a9ae..85f5aa298 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,30 +11,19 @@ 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 6bf5f2046..2374c6792 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,24 +9,13 @@ 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 578eb5c09..59a05c692 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,28 +9,20 @@ 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 d40f319ce..97ab2def6 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,20 +11,9 @@ 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;
@@ -36,19 +25,15 @@ 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 4823a08d1..eef162fed 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 a66021f9e..b6f09b64c 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 f5075e15c..f13ef4847 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 a7f3ceb92..1d89cb311 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 8ea838dc4..95262eb4e 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 9e82edeab..c8456ed37 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 296e90732..406153de7 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 11b58ce8e..b1bdd51e0 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 41c2e2d8d..4c5256a81 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 3ea088e2c..71a9ebd06 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 9a0f3da50..c4e98a007 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("", 0 n);
+ "".indexOf("", 0n);
}, "ToInteger: BigInt => TypeError");
assert.throws(TypeError, function() {
- "".indexOf("", Object(0 n));
+ "".indexOf("", Object(0n));
}, "ToInteger: unbox object with internal slot => BigInt => TypeError");
assert.throws(TypeError, function() {
"".indexOf("", {
[Symbol.toPrimitive]: function() {
- return 0 n;
+ return 0n;
}
});
}, "ToInteger: @@toPrimitive => BigInt => TypeError");
assert.throws(TypeError, function() {
"".indexOf("", {
valueOf: function() {
- return 0 n;
+ return 0n;
}
});
}, "ToInteger: valueOf => BigInt => TypeError");
assert.throws(TypeError, function() {
"".indexOf("", {
toString: function() {
- return 0 n;
+ return 0n;
}
});
}, "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 29cab5f26..ea0b4e2a5 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(0 n), 2, "ToString: BigInt to String");
-assert.sameValue("__0__".indexOf(Object(0 n)), 2,
+assert.sameValue("__0__".indexOf(0n), 2, "ToString: BigInt to String");
+assert.sameValue("__0__".indexOf(Object(0n)), 2,
"ToString: unbox object with internal slot => BigInt to String");
assert.sameValue("__0__".indexOf({
[Symbol.toPrimitive]: function() {
- return 0 n;
+ return 0n;
}
}), 2, "ToString: @@toPrimitive => BigInt to String");
assert.sameValue("__0__".indexOf({
valueOf: function() {
- return 0 n;
+ return 0n;
},
toString: null
}), 2, "ToString: valueOf => BigInt to String");
assert.sameValue("__0__".indexOf({
toString: function() {
- return 0 n;
+ return 0n;
}
}), 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 ea24cf5f2..cf5a46c38 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,21 +15,19 @@ 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 e30042895..4ffaeb11f 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 43ef35657..9c97a086e 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 4ee4bf2d6..afc3bc4b8 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,23 +9,15 @@ 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 ddb271087..293237feb 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 41a74156b..27072b7b7 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,12 +15,8 @@ __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 0c91d1d25..ebed93a09 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 42cd7e1b2..69ab01061 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,12 +12,8 @@ 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 d151e20e3..9517f5e65 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 b7c047e15..a68a8d5ab 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 ffa75b06f..29068e54e 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,15 +9,13 @@ 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 0eec7b4ce..ff3b8527c 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 51e9c2a20..5f71a0eaf 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,27 +9,19 @@ 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 6df1e9860..fec80696c 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,30 +11,19 @@ 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 39beb28b8..1d92ea6d1 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,22 +9,13 @@ 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 232fc191c..bd1e7613f 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,28 +9,20 @@ 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 b1ea6070f..08f5fed5b 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,20 +11,9 @@ 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;
@@ -36,19 +25,15 @@ 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 49063652b..96170a0ca 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 bbe092d51..31aa5fcd8 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 44fb7852e..61be576d1 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 e1e5cdd26..06517ec3a 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 4123b624f..365a80595 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 f50b0ff8d..7af411b70 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,21 +15,19 @@ 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 d2b382111..4cd0b2bce 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 c1d231158..36c1e7019 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 65aa3fbf3..be41eeb44 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 01b7a4006..19001efc7 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 b52cc3ba6..b70beafa0 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 928d8f703..137c85bb3 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 544ffe9d9..af1145e50 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 4b71f1900..009ca6ab1 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,18 +7,14 @@ 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 ea732163a..01c8767eb 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,22 +9,18 @@ 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 1acb9a21d..9f6049a40 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,25 +9,18 @@ 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 8a9cb164f..64e9be70b 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,19 +9,12 @@ 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]) );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -29,7 +22,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 5ef04584d..fb112c3fa 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 e657e1bf3..dd8713565 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,15 +10,14 @@ 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 7d67a718b..d81fcf57f 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 a8ca7399d..f0a41f16f 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,12 +10,8 @@ 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 f88921461..9fd224f52 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 a07e6f768..b59c69173 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 36f3d0802..13aa23e55 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,18 +7,16 @@ 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 );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -26,7 +24,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 );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -34,16 +32,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 df8ab7b60..a9ce29da4 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 d45e716aa..4f74b0689 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 6a23ef54e..5a5c5f382 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 c34a0c874..8bf987ea9 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 760e6a107..c89079514 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 3424023d2..4a6175599 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 673f1fb0c..92b559388 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 1f222e684..b2101492c 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 6fb716b82..ac72b075f 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 2721f7871..9cd4f7848 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 00ac312bc..9f8c8b30e 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 4d156a3c7..27e46bbb2 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 3d42695ab..26e6dd68e 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 bf143c5e3..37c6ec04e 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 f2fc03437..22044d86b 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 7a1422d91..1be783adf 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 18e1477be..48a7ba461 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 635952659..27cf7c407 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 730494c45..b37f8ec73 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 e2f257c4b..e7b44f13f 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 c1b66b3a6..f3ab3f402 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 dedeedfd4..d07bced4d 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 71b5ba725..e6c8b7d8a 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 89688b5da..674b25cad 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 47765c59f..65488e526 100644
--- a/test/built-ins/String/prototype/match/this-val-bool.js
+++ b/test/built-ins/String/prototype/match/this-val-bool.js
@@ -15,12 +15,8 @@ __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 65b477392..62c178186 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 1efb22b12..81ca29036 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,18 +23,14 @@ 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 96d9d2859..1bd167844 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 7736d7ff0..ef89429a2 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 2c4b5ff0c..949d4d927 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 d37b167d9..0b6b7db74 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 ebfe78c89..38315b3c4 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 fbcb05454..73f543544 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 c6ea23939..7d08deae0 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 9f85fe4f6..66521f28c 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 824978a80..0b63be0e4 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 260ecda04..dfb9a0f26 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 c59125079..5cc4a8ce9 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 a733aa05a..76846ee1f 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,21 +13,19 @@ 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 78b3472ae..5b9af5f11 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 0dea5dd0f..66ba29f7f 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 1e8384155..0ccd9a781 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 c044c8515..552c478ff 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,23 +10,15 @@ 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 9957654db..e6da57621 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,27 +10,19 @@ 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 b7fb48f1f..d56fe57fd 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,30 +11,19 @@ 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 47f4cd103..0a3b6feff 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,29 +11,18 @@ 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 0068bb2ff..e37a5abec 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 f6a6011c9..6156897ad 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,11 +7,7 @@ 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);
@@ -21,10 +17,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 7954b1f9a..e29fe2002 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,13 +13,7 @@ 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"};
@@ -30,7 +24,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 89a3a605e..979101a3a 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 342007437..b8c56f315 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,12 +15,8 @@ __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 f647a286e..e38a39444 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,16 +11,8 @@ 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 1b285d190..cbd9c74fe 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,12 +11,8 @@ 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 4bb87896c..b593f4f93 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 aebeaffc2..8c2ec1311 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 24bfc5d14..81c9a9c4a 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,14 +9,12 @@ 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 950aa347a..9c4ebe9e2 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,18 +10,16 @@ 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 14975453a..faf12bdc5 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 0a8d22f4c..aabe0d9ae 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 3c4026889..b5290edf2 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 231fe1bca..ca30baccb 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 53b4143d0..3d6e58a3b 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 734dcb247..a3c907e2b 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 3ba195faf..c0811cbee 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 3c475e5f1..327071a44 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 38accef87..45c09ddfd 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 175a4df67..946f10372 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 2bd1e5d2d..07cc9cc72 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 10b7df2c5..103dc9ec3 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 83060fd58..3b1a30458 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 99a1b6f3a..e695fe572 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 83489c51d..141966c06 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 e60121203..fcd736f85 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 199688c6c..b272fa8d7 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 37a6bb1fb..22128bc6e 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 f71770ae6..5ba2416ab 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 e88a11ca1..848f6bd1e 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 536529b43..3ad4ba953 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 0d198db9e..55b188a5e 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 3a7a27f67..9b1186132 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,21 +13,19 @@ 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 13e25ac57..3e71c196d 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 2ef942e49..1813eaac2 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 02515864e..8e6a7efc5 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,18 +9,14 @@ 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 dec9e127e..8367e9ae3 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,22 +9,18 @@ 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 09d8fcee6..b53f64452 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,25 +9,18 @@ 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 92c121f58..edec536de 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,19 +9,12 @@ 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 8a12d8fa8..a8245be47 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 103332f71..61d0ec886 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,12 +13,8 @@ __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 d7245d11e..c3e0aa669 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 297c1719d..a1407792f 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,12 +10,8 @@ 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 f2b4f7654..074d2d68f 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 f4512a691..dc79e77e2 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 77a619c6a..9686f918f 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,15 +9,13 @@ 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 000e2f3d7..d94e1307f 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 3e7755ee4..67cd389fc 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 5e1946c29..31a6f4123 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 6d9640d7b..221a60249 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 98e9ccd3f..2edc13e4a 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 a2c4d80fd..40b750cc8 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 3acba0c77..b6787c22c 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 7581a0a85..4dad5ae95 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 bc46040ef..1481639f7 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 af4e03407..099e69e6f 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 8e6d1e94d..7b56f3270 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 d6e6f751c..e34449aac 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 300413c01..e51d88ad6 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 1abba4346..544791040 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 b01969682..190575259 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,21 +13,19 @@ 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 e5ea943ba..df758f408 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 5ec85372c..5158fdf5b 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 14dd4a2c0..6f6100e61 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,23 +9,15 @@ 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 5c45b1ceb..1e5d7e9a7 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,27 +9,19 @@ 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 b111b08e5..351daa7f7 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,30 +11,19 @@ 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 50e38d195..82799f1ab 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,29 +10,18 @@ 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 ab3b2dbbd..d7b718ac8 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 747902faa..b7017e4db 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 b2932ddb8..dd945f581 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,12 +15,8 @@ __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 b3dd30a6d..1fda0a114 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,12 +12,8 @@ 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 516aefbc9..d75481ec2 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,22 +10,18 @@ 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 a0e18491b..38aa85042 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 1ac08f088..3926ea9df 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 9eb7c5b31..106fd8a1e 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,15 +9,13 @@ 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 e26a1a66d..9c927f1f2 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 d691c9710..88790f7e7 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 1dda10c23..cadc98532 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 3ca0043d5..2cd542d17 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 6a31bfee9..db80ad757 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 92ff1765a..e889dedce 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 905fea791..73383aaeb 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 1badb971a..5a6e272b3 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 ad8c991f2..9559e7b75 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 196575b08..9b13cb8df 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 1bfa9b1c0..b60a25f06 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 5d1c65a58..4335b1e82 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 8092dd587..2ed9d7ff0 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,18 +9,14 @@ 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 889019cfd..e07c09aae 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,22 +9,20 @@ 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 5c97de6aa..0e9643aa6 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 d4f6b3fc7..9e4042b08 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 ce8ca68af..f45ea3180 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 153a57b56..f4f331cb6 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,21 +13,19 @@ 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 e5ca3139e..b3a94684f 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 69ca40343..9acfda6b3 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 c56b54de7..bc79057f8 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,16 +15,8 @@ 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);
@@ -32,7 +24,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 );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -40,7 +32,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 );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -48,7 +40,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 );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -56,7 +48,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 73d4917a7..ddf8fe760 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,27 +15,19 @@ 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 5fe372049..ba6a0efed 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,30 +15,19 @@ 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 eded7e4c0..d97ac63db 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,26 +15,15 @@ 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 );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -42,7 +31,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 );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -50,7 +39,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 );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -58,7 +47,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] );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -66,7 +55,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 df6ee1d69..412513ed5 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,28 +15,20 @@ 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 52c2fc9ca..46cf12809 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,20 +16,9 @@ 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;
@@ -41,19 +30,15 @@ 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 4fb875732..ff3d9ef00 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,19 +14,15 @@ 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 95124d9cd..9d7b34da2 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 4c8fdbfb6..48bccb512 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 775ac3f56..e099b49fa 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,14 +18,12 @@ 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 );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -33,7 +31,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 );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -41,7 +39,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 cb21c14a1..a7725324f 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,53 +14,48 @@ 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 f2931438d..e0f5e3294 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 982309d1a..5515c76a9 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,14 +15,12 @@ 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 );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,7 +28,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 );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -38,7 +36,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 );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -46,7 +44,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] );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -54,7 +52,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 815d13d19..74a9b6d77 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 02cfc0165..bb030f4e2 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 05eb86148..3a7d671f3 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,16 +14,14 @@ 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 );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -31,7 +29,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 );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -39,7 +37,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 );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -47,7 +45,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 eb545020d..e78ae20d0 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 fdf968d87..0674e6091 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 eff95ed19..64ad57b26 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 b29dc9e0e..08951717a 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 7696dfa9e..e3cde172c 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 067bf5aeb..1dfd75e25 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 ec0899acb..0ee0bd42d 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 2a580f29e..dea226994 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 4a3bceb58..a7664c43b 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 e76f25688..f21647307 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 65971fdd3..8e8f76073 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 b9a9b2a74..bfd2b88a6 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 bedfcf81b..ccf7ca484 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 b927eeb09..dc5250fa8 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 dfe48ffd3..ea7759b72 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 2000c8067..f57cd2035 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 495b83a60..e50b1d847 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 49c6a0f1c..7efcab337 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 ae70cca74..e8f450156 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 3646139de..27f6d41d6 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 c7fd8c546..865c38c87 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 6ef0a4657..634a2b4cb 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 fa342d632..b93e14102 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 6dd024d4a..0b16fee4d 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 5323ad072..7f17c7f3d 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 15adead0f..45fb07dc2 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 208852941..926a61515 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 3d1269637..3f6695e9b 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 c40f3993a..4132da25a 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 c82748bf2..22a23453c 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 20e3e84f2..d79d2d72d 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 1fa443388..05850c859 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 fd0b4b97a..1ca64e502 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 ee012e98d..c9e9569ca 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 69bed2044..95f73fc13 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 2f11e0f0f..8ae1dcfc9 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 d8e21db1e..76940f644 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 5b9b69fc8..3998246a3 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 1ec04cfc4..13a5d18ec 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 1c8618b6d..bced5a65c 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 e9d469d4a..b7c5dc2ad 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 e0e5f0ca3..31a269a9c 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 ec0170f44..6f571dd08 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 8d7da32de..47aed96ec 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 f9494680c..0b1cc3a24 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 0958d37c5..4193458cb 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 07f2d68c3..57b559c75 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 58670f6d0..ae6a6f525 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 137d8465a..4e4190bf0 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,11 +10,7 @@ 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;
@@ -23,7 +19,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 );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -31,15 +27,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 36f0fb2b2..4fdbc54d4 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 ad0cdda56..5d59496dc 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 c68a29ee1..5e8882c5d 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 661bf4e36..da708173f 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 e1a309ef2..197e89afd 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 b3bf706cf..4694e6d8f 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 8306e88d7..3086e76b7 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 296ac5ee5..26a49a0aa 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 32503116d..a23f5e726 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 05cc593e5..820d433fe 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 72683da88..e9d93c574 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 a3e264a31..52ebdc475 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 88d744ae3..ecfd109af 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 b97b9aa5d..5b669ab81 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 5fecb0dca..fcea734ec 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 68a70929c..8121de01b 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 3df56dacf..f9de8ea34 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 b6d9396e8..5454f5281 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 cddd4f260..5825800d0 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 16485eb04..8dbfb55ad 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 8ab1e54bf..1aed36c4a 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 2118c1e0e..6cfc3d655 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 e946d99b5..5ea67cedc 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 59cc456a5..16f05e87a 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 047e8d44e..791426679 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 4c713ecb8..b57bc9bdb 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 ed7869865..0f1354a76 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 0a8a68942..cb69ee51e 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 85a4f3b34..dc4d0275e 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 4ecc5fac7..2f4d49ed8 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 bea17ccf4..2d4ac920a 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 85d6a2e7c..8d714bf6d 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 13b7b1d0c..7aeac1323 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 4f0cd2184..640f04120 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 131d8017e..c63153264 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 d588fd061..295687133 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 c59e390c1..792a205e7 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,21 +13,19 @@ 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 b09a01d2d..020b8a0c5 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 a653a6ee5..c737a2f30 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 355476880..2770321ed 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,23 +9,15 @@ 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 e3b97ed32..f17b396d9 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,27 +9,19 @@ 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 43ae7ac78..b8f9af963 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,30 +11,19 @@ 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 8efdfb328..f74970094 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,29 +10,18 @@ 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 4f85a9e09..e9e4d0750 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 37c4bc704..50af2e9d8 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 658ce9d2b..21abf6d49 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,12 +15,8 @@ __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 aaf8f7e24..8e5be04b6 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,12 +11,8 @@ 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 9efb6cc77..2f716f58a 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,19 +9,17 @@ 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 d9538d5f6..d41f4b1c2 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 fa599a546..eecbb5da7 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 1279d0ebe..c7e0a5953 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,14 +9,12 @@ 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 1720c35f4..b4b0053b9 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 499a890e7..a87e1b4e5 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 c98235acd..44c719d2e 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 3fec5dfee..179af831e 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 3fab39c9b..18201d070 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 95095d5e1..d10dc05a3 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 15c49967a..6d5d0a849 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 9e78388c9..aec40ce40 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 d510a6481..4ce872828 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 41618595e..e73ef3e64 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 3f5dbcad5..4ba78e6d7 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 2a26bc88d..feff7d77e 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 4a7fd0ac3..e2920aafb 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,18 +14,16 @@ 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 e4238cc57..a55770141 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 e03694767..dd187638f 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 6cfa98872..4d93dfb75 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 12b14f241..064d643fc 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 1405841b4..95eb172cc 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 29bba1594..0ee3e9695 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 d8d84a122..8305324ec 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,18 +11,14 @@ 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 60729b827..ca339a846 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 1fc65965c..75623a9ee 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 f16156445..bc4cccb70 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 9cf25cfb1..14440737f 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 36af36356..b48d4db02 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 803b98b5e..26e1c976a 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 3168e925a..399651837 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,21 +15,19 @@ 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 28a5f7aab..c6ca64f03 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 181691a71..b929ade1d 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 afc5510af..cfdc535d8 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,17 +9,13 @@ 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 802f832ee..10c4df6a2 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,21 +9,17 @@ 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 6754da40c..716a6d917 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,24 +9,17 @@ 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 11d49736b..eb19ac07c 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,20 +9,13 @@ 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() );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,7 +23,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 978a4932b..95da90ec3 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 fe95c5cd6..d20cef4b2 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 a4aee2c5e..00eca997a 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 7336d0cd3..04b36119a 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 d97884e82..fb3d25143 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,12 +10,8 @@ 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 93cfe7ed4..6339d0011 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 01751fa42..fcd3a61e2 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 b9219740a..17ccebbee 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 3c122f6d6..94129acfc 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 0fa680559..715dee843 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 7ee83f78f..de23fd2e5 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 408d0e59e..03faefe86 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 e421581f6..8699a7657 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 42dbf02a7..a4c0873dc 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 9ee03545e..34289893b 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,21 +15,19 @@ 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 c55ed8da0..da53d2892 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 128481712..e58f9b38a 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 0e0bd3fbe..6bcc86f58 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,17 +9,13 @@ 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 ba8ef4900..45a9a2087 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,11 +9,7 @@ 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
@@ -21,8 +17,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 a473a9bb4..185ea8fcb 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,23 +9,16 @@ 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 a73b5c9d5..3b1b61817 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,19 +9,12 @@ 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() );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -29,7 +22,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 71d330aaa..8c2104cc7 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 533a4294d..425c58fc1 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 04432731a..1de801a89 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 1b144d679..3cea1ebf0 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 d28e77888..f1da20120 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,12 +10,8 @@ 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 6d69d494d..5088fcb8d 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 1a24a8824..0c710d629 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 ef2c7b26c..968e66738 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 ff1ea5933..debdee1dd 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 32986be8b..39cf66d2c 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 ba3d6e8f2..498dbfaa5 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 75f8ac013..3f57102ee 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 0043fa412..c1f69036c 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 ec9102e6d..36c4c6c82 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 6cc53960b..37b044c1e 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,21 +15,19 @@ 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 6f4f7e826..f05e554ca 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 467141034..62a744bc9 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 6c36aa0ea..8e5b25c86 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,18 +9,14 @@ 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 922da6901..1e47da862 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,21 +9,17 @@ 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 38427815e..df60a2502 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,24 +9,17 @@ 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 f3d3b396b..2b3e12789 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,20 +9,13 @@ 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() );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,7 +23,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 0c3e21058..5693649fa 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 b54c9754c..d5ed914c9 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 39b4a54ec..35a215e6f 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 7a9da2162..145ad95bd 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 7b1e62c44..0082c8caf 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,12 +10,8 @@ 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 961534476..915b9bc6a 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 ac4ac806a..efb0be3d4 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 bf1daa0e1..12d8e4982 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 823e01128..713b5ced9 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 472f9a243..23824d463 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 056ad2ca1..4504be730 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 4e800e64b..4d8c14efe 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 0681d09cf..779e3d2b0 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 4d3bc2aef..2b680311f 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 9b397fe4b..b83c5b183 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 328e8c177..568f1a93f 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 ddeb249a6..2720ba435 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 73a7b7529..933030ef5 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 ba121d025..8f1721db5 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 8862f4fe8..56896801c 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,14 +10,12 @@ 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"] );
}
//
@@ -30,7 +28,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 dfa848162..51b235fe1 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 01356cb51..f4b51a90a 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 b1b96a0d0..b88e37c58 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,21 +15,19 @@ 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 fb9baed90..3747a63f4 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 c5093c5a5..951eafd2c 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 505d785b8..0da16d896 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,17 +9,13 @@ 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 4eccc3afc..63a68975a 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,20 +9,16 @@ 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 6695033cd..7ec6f11d7 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,23 +9,16 @@ 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 a4f0e26f3..f3c9080f8 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,20 +9,13 @@ 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() );
}
//
//////////////////////////////////////////////////////////////////////////////
@@ -30,7 +23,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 0c13deac2..38d64db46 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 fda139b74..e07861a9e 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 c095aa910..127023d0d 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 752d08837..a0f71334a 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 e9dbfcaf3..1e179135b 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,12 +10,8 @@ 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 43fb1fc12..85fc4f0e3 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 2c94d95cc..d5ea87140 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 d4297d85f..289d7d1d7 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 4a5327174..10a3f1b23 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 7ed0d7de9..b6b76ea34 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 7d1512f5a..e870a1a9b 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 b11b32063..bd2d26e8a 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 b388e38a6..d5deefd6d 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 5cf505e07..9e33d4b01 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 cd7a756f4..429a17b07 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 d44536ab5..bd0bcaa1f 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 728d40f5a..d91241da2 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 874f8110d..3b93eb173 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 69ada3281..cd09927dd 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 925c82e1e..163254129 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 6d93265b0..2536716de 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 d3e91e5f1..4edb83c72 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 260eb88cc..a9233a47d 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 2c7faa8ec..393625ce0 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 0bad8928f..1c9446bdc 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 9da700970..3dbead788 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 82d31dc33..c8c99d70a 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 a01462f13..f68088fa3 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,8 +8,6 @@ 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 88e71dcb9..7eb3a04b3 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 a59a845ca..7dff7b940 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 525f8e8e8..d47c31beb 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,8 +8,6 @@ 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 b2fae943c..0d7794575 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 1c2c946b6..c488c91ee 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 33666c924..9abc0fdfa 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 209698561..13a98eb6c 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 1f331ee47..2affe2261 100644
--- a/test/built-ins/String/prototype/trimEnd/this-value-number.js
+++ b/test/built-ins/String/prototype/trimEnd/this-value-number.js
@@ -45,3 +45,4 @@ 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 77170a1c7..3a85af554 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,7 +53,5 @@ 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 127dc03f9..f7bdb4e5e 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,21 +33,15 @@ 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 3c65454e0..50e78cb60 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,20 +48,16 @@ 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 b2a16798c..fe327468e 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,9 +57,7 @@ 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 d043708aa..e53131a6a 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,8 +19,6 @@ 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 c187cbad9..2a4a518ea 100644
--- a/test/built-ins/String/prototype/trimStart/this-value-number.js
+++ b/test/built-ins/String/prototype/trimStart/this-value-number.js
@@ -45,3 +45,4 @@ 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 e74d0569b..15de7e415 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,7 +53,5 @@ 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 f16a325f8..b6db92121 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,21 +33,15 @@ 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 f4fb1f201..af3d34873 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,20 +48,16 @@ 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 1f4e67cea..6ebbda736 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,9 +57,7 @@ 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 f49280759..e66f2e85d 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,8 +19,6 @@ 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 6e42dcfbf..a3080da71 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 88a5de7e4..553ccf768 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 20f48c09b..cbeb4dd01 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 495b720c5..e7beb039a 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 4c8cf8269..4e4613a5e 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 ec48d9f96..efaa7ef5d 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,14 +9,12 @@ 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"] );
}
//
@@ -29,7 +27,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 2c360832d..8c130ffe0 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 09181e3b9..1d1c5f270 100644
--- a/test/built-ins/String/raw/special-characters.js
+++ b/test/built-ins/String/raw/special-characters.js
@@ -8,13 +8,12 @@ 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 343894724..509bce29d 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 73fd41cb1..8ed98172b 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 cfae79396..4e13ddd00 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 137486df6..aee000995 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 d61f85227..41c0703cf 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 936f05416..e62f06c8f 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 e4493006c..2059f7b84 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 74512b6ba..b0e1dcb4c 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,3 +20,4 @@ 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 5264f2437..d6a13d498 100644
--- a/test/built-ins/Symbol/species/subclassing.js
+++ b/test/built-ins/Symbol/species/subclassing.js
@@ -9,6 +9,8 @@ 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 b25660179..3fb412296 100644
--- a/test/built-ins/ThrowTypeError/distinct-cross-realm.js
+++ b/test/built-ins/ThrowTypeError/distinct-cross-realm.js
@@ -13,10 +13,7 @@ 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 ac42dadf9..c6c93ae28 100644
--- a/test/built-ins/ThrowTypeError/extensible.js
+++ b/test/built-ins/ThrowTypeError/extensible.js
@@ -12,9 +12,6 @@ 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 7532de505..d4d8cbda9 100644
--- a/test/built-ins/ThrowTypeError/forbidden-arguments.js
+++ b/test/built-ins/ThrowTypeError/forbidden-arguments.js
@@ -25,9 +25,6 @@ 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 6aa2fb62c..e2d7bece1 100644
--- a/test/built-ins/ThrowTypeError/forbidden-caller.js
+++ b/test/built-ins/ThrowTypeError/forbidden-caller.js
@@ -25,9 +25,6 @@ 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 76c9b6ec7..011f62f8c 100644
--- a/test/built-ins/ThrowTypeError/frozen.js
+++ b/test/built-ins/ThrowTypeError/frozen.js
@@ -14,9 +14,6 @@ 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 b3d15916d..553a8fe41 100644
--- a/test/built-ins/ThrowTypeError/is-function.js
+++ b/test/built-ins/ThrowTypeError/is-function.js
@@ -12,9 +12,6 @@ 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 5a14e231b..5e74e1745 100644
--- a/test/built-ins/ThrowTypeError/length.js
+++ b/test/built-ins/ThrowTypeError/length.js
@@ -13,10 +13,7 @@ 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 d894ee12f..d2cb287c3 100644
--- a/test/built-ins/ThrowTypeError/name.js
+++ b/test/built-ins/ThrowTypeError/name.js
@@ -12,9 +12,6 @@ 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 fcb92f431..4ad20323b 100644
--- a/test/built-ins/ThrowTypeError/prototype.js
+++ b/test/built-ins/ThrowTypeError/prototype.js
@@ -19,9 +19,6 @@ 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 b2df50ca1..577dc4560 100644
--- a/test/built-ins/ThrowTypeError/throws-type-error.js
+++ b/test/built-ins/ThrowTypeError/throws-type-error.js
@@ -13,10 +13,7 @@ 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 47fdb00d1..a5235f1c3 100644
--- a/test/built-ins/ThrowTypeError/unique-per-realm-function-proto.js
+++ b/test/built-ins/ThrowTypeError/unique-per-realm-function-proto.js
@@ -12,10 +12,7 @@ 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 f30052e0b..a69be6bf4 100644
--- a/test/built-ins/ThrowTypeError/unique-per-realm-non-simple.js
+++ b/test/built-ins/ThrowTypeError/unique-per-realm-non-simple.js
@@ -12,10 +12,7 @@ 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 057225298..66dee2bd4 100644
--- a/test/built-ins/ThrowTypeError/unique-per-realm-unmapped-args.js
+++ b/test/built-ins/ThrowTypeError/unique-per-realm-unmapped-args.js
@@ -12,10 +12,7 @@ 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 87599eb3b..1cc2bd738 100644
--- a/test/built-ins/TypedArray/from/arylk-to-length-error.js
+++ b/test/built-ins/TypedArray/from/arylk-to-length-error.js
@@ -13,9 +13,7 @@ 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 f5831d833..906ec4746 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 589665226..ac7d1cc9e 100644
--- a/test/built-ins/TypedArray/from/this-is-not-constructor.js
+++ b/test/built-ins/TypedArray/from/this-is-not-constructor.js
@@ -15,9 +15,7 @@ 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 29ee64382..af8f8c8b6 100644
--- a/test/built-ins/TypedArray/of/invoked-as-func.js
+++ b/test/built-ins/TypedArray/of/invoked-as-func.js
@@ -17,5 +17,6 @@ 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 264e2e5b1..eb91d74a3 100644
--- a/test/built-ins/TypedArray/of/this-is-not-constructor.js
+++ b/test/built-ins/TypedArray/of/this-is-not-constructor.js
@@ -15,9 +15,7 @@ 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 7e8489831..1cd62be56 100644
--- a/test/built-ins/TypedArray/prototype/copyWithin/coerced-values-end.js
+++ b/test/built-ins/TypedArray/prototype/copyWithin/coerced-values-end.js
@@ -29,42 +29,48 @@ 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 c6f766c08..96819e395 100644
--- a/test/built-ins/TypedArray/prototype/copyWithin/coerced-values-start.js
+++ b/test/built-ins/TypedArray/prototype/copyWithin/coerced-values-start.js
@@ -28,56 +28,64 @@ 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 44348b90f..8d0c2816d 100644
--- a/test/built-ins/TypedArray/prototype/copyWithin/coerced-values-target.js
+++ b/test/built-ins/TypedArray/prototype/copyWithin/coerced-values-target.js
@@ -28,56 +28,64 @@ 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 5e90c95bc..96c9823f8 100644
--- a/test/built-ins/TypedArray/prototype/copyWithin/negative-end.js
+++ b/test/built-ins/TypedArray/prototype/copyWithin/negative-end.js
@@ -31,56 +31,64 @@ 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 cfd1c71b4..7c55118aa 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,70 +31,80 @@ 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 ead2f737e..4fdc4eb12 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,56 +29,64 @@ 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 32b4818ad..dc46906d3 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,28 +29,32 @@ 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 4552cab64..df73879d4 100644
--- a/test/built-ins/TypedArray/prototype/copyWithin/negative-start.js
+++ b/test/built-ins/TypedArray/prototype/copyWithin/negative-start.js
@@ -29,42 +29,48 @@ 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 ad290241d..dfc252b1e 100644
--- a/test/built-ins/TypedArray/prototype/copyWithin/negative-target.js
+++ b/test/built-ins/TypedArray/prototype/copyWithin/negative-target.js
@@ -29,21 +29,24 @@ 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 9a71f2a7d..9767106c0 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,28 +22,32 @@ 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 4dfbf4f4d..f1cc0504a 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,45 +22,52 @@ 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 f237de5a4..4dec6eff8 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,25 +22,29 @@ 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 21d0ec476..c8cd09f17 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,21 +22,24 @@ 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]'
);
@@ -54,14 +57,16 @@ 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 fe03f4332..bd011026f 100644
--- a/test/built-ins/TypedArray/prototype/copyWithin/undefined-end.js
+++ b/test/built-ins/TypedArray/prototype/copyWithin/undefined-end.js
@@ -29,14 +29,16 @@ 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 2e944bb49..a3e62feb8 100644
--- a/test/built-ins/TypedArray/prototype/every/callbackfn-this.js
+++ b/test/built-ins/TypedArray/prototype/every/callbackfn-this.js
@@ -27,9 +27,7 @@ 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 e45dd0aac..63cbe4d6b 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,7 +26,8 @@ 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 eaf69d7fb..84bdfc8ce 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,9 +28,12 @@ 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 a4f6bf9c4..d9afa33bb 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 a681825e4..f5e1bd6b7 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,13 +18,10 @@ 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 2bd3f1716..1d8cd4b6a 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 53774de8a..70da31da6 100644
--- a/test/built-ins/TypedArray/prototype/fill/fill-values.js
+++ b/test/built-ins/TypedArray/prototype/fill/fill-values.js
@@ -31,7 +31,8 @@ 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 183bea070..1fc599c7c 100644
--- a/test/built-ins/TypedArray/prototype/filter/callbackfn-this.js
+++ b/test/built-ins/TypedArray/prototype/filter/callbackfn-this.js
@@ -18,9 +18,7 @@ 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 b716641ec..bbd292d14 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,13 +19,9 @@ 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 c1b0ac9af..de558f97e 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,7 +22,8 @@ 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 6ae2811eb..f46bf483d 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,13 +25,14 @@ 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 bb501ccf4..a63bd2e53 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,9 +28,7 @@ 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 565da5179..6308fe92f 100644
--- a/test/built-ins/TypedArray/prototype/filter/speciesctor-get-ctor.js
+++ b/test/built-ins/TypedArray/prototype/filter/speciesctor-get-ctor.js
@@ -37,9 +37,7 @@ 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 8e2256efa..858dd0fa7 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,8 +40,6 @@ 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 2cfb9bcb8..ad8313a26 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,9 +47,7 @@ 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 abf9ef13e..35f48124c 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,8 +36,6 @@ 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 fcf4bb693..35228670d 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,14 +37,10 @@ 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 00836dd75..28e12b135 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,9 +48,7 @@ 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 22b227163..1b24d310e 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 7ef152f17..c9f16b8df 100644
--- a/test/built-ins/TypedArray/prototype/filter/values-are-set.js
+++ b/test/built-ins/TypedArray/prototype/filter/values-are-set.js
@@ -20,9 +20,7 @@ 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 ee2332f31..b62f9170f 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,9 +49,7 @@ 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 129eed845..556fb9851 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 1feb9da2f..a2d0302c6 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,28 +49,18 @@ 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 2206d72aa..0133a6948 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,33 +41,21 @@ 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 98d22f449..99566c3d5 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,9 +47,7 @@ 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 97652222c..84efabc26 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 31c43d21f..68175c781 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 18fdf425f..5b97bf74a 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,3 +62,4 @@ 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 c1e0ce751..9e4880f22 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,28 +49,18 @@ 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 69f204717..f3367fbfa 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,33 +39,21 @@ 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 97b5ec91e..d387ae038 100644
--- a/test/built-ins/TypedArray/prototype/forEach/arraylength-internal.js
+++ b/test/built-ins/TypedArray/prototype/forEach/arraylength-internal.js
@@ -19,9 +19,7 @@ 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++;
@@ -46,3 +44,4 @@ 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 e3595b538..926a219bc 100644
--- a/test/built-ins/TypedArray/prototype/forEach/callbackfn-this.js
+++ b/test/built-ins/TypedArray/prototype/forEach/callbackfn-this.js
@@ -27,9 +27,7 @@ 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 125923bb5..10b311356 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 8f317131a..eb10a80bd 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,19 +21,13 @@ 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 9fd299266..2703a0519 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,19 +20,13 @@ 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 edb4b0e8f..694f81db0 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,19 +61,10 @@ 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 7cdbdddd2..94caedf65 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,23 +91,14 @@ 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 6b51c26e4..076d0b8d8 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,19 +20,13 @@ 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 7d23a4e1a..0f9ec0807 100644
--- a/test/built-ins/TypedArray/prototype/map/arraylength-internal.js
+++ b/test/built-ins/TypedArray/prototype/map/arraylength-internal.js
@@ -18,9 +18,7 @@ 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++;
@@ -42,3 +40,4 @@ 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 525de88e3..43d3159bc 100644
--- a/test/built-ins/TypedArray/prototype/map/callbackfn-this.js
+++ b/test/built-ins/TypedArray/prototype/map/callbackfn-this.js
@@ -18,9 +18,7 @@ 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 329faaffe..d2345b13c 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 356e94943..8c56605bc 100644
--- a/test/built-ins/TypedArray/prototype/reduce/callbackfn-this.js
+++ b/test/built-ins/TypedArray/prototype/reduce/callbackfn-this.js
@@ -26,9 +26,7 @@ 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 af963b379..e091df1f9 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 56752442a..acddf6dd3 100644
--- a/test/built-ins/TypedArray/prototype/reduceRight/callbackfn-this.js
+++ b/test/built-ins/TypedArray/prototype/reduceRight/callbackfn-this.js
@@ -27,9 +27,7 @@ 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 b4e720ca7..fb93d3e20 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 529006e21..a5ab52773 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,18 +86,10 @@ 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 5cd1fe72e..d5e346f11 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 c7e54c720..0256df84e 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,9 +35,7 @@ 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 a32337c72..7f63cb996 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,18 +84,10 @@ 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 7ff46d746..8d572f230 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 a4d33b2a9..537b423a2 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 13d68874d..2a9be9406 100644
--- a/test/built-ins/TypedArray/prototype/slice/tointeger-end.js
+++ b/test/built-ins/TypedArray/prototype/slice/tointeger-end.js
@@ -40,7 +40,8 @@ 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 2f6c2d7cb..f67ee090c 100644
--- a/test/built-ins/TypedArray/prototype/slice/tointeger-start.js
+++ b/test/built-ins/TypedArray/prototype/slice/tointeger-start.js
@@ -40,7 +40,8 @@ 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 92cc10ad4..d15699b80 100644
--- a/test/built-ins/TypedArray/prototype/some/callbackfn-this.js
+++ b/test/built-ins/TypedArray/prototype/some/callbackfn-this.js
@@ -27,9 +27,7 @@ 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 bf61d170e..00741adbe 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,7 +26,8 @@ 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 113f53f83..c11fdae90 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,9 +36,12 @@ 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 c31d93fc5..acfbe6dbb 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 2c2afb573..c8a3c2cde 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 23a4312d7..f95885080 100644
--- a/test/built-ins/TypedArray/prototype/sort/return-same-instance.js
+++ b/test/built-ins/TypedArray/prototype/sort/return-same-instance.js
@@ -20,8 +20,6 @@ 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 8b9f5a50e..6da5dd1ba 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 a3343cd46..6e1ac2f64 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 4ef1daf2a..eaa4e9ddd 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 3d38c2080..abf503cb8 100644
--- a/test/built-ins/TypedArray/prototype/subarray/tointeger-begin.js
+++ b/test/built-ins/TypedArray/prototype/subarray/tointeger-begin.js
@@ -40,7 +40,8 @@ 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 b59ee07d3..4797bf5b2 100644
--- a/test/built-ins/TypedArray/prototype/subarray/tointeger-end.js
+++ b/test/built-ins/TypedArray/prototype/subarray/tointeger-end.js
@@ -40,7 +40,8 @@ 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 334f9a363..0e3269c48 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 edb4ffc9e..b16c2d205 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 b1d032690..aabe797e7 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 b68697556..4ff4f19f5 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 73331d125..b8936e8cd 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,11 +16,6 @@ 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 570ef171f..c8c3eb34b 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,11 +16,6 @@ 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 f01ec911b..739d1cdd2 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 20c363748..269bc2de0 100644
--- a/test/built-ins/TypedArrays/from/arylk-to-length-error.js
+++ b/test/built-ins/TypedArrays/from/arylk-to-length-error.js
@@ -13,9 +13,7 @@ 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 ec2cfb112..df90a868a 100644
--- a/test/built-ins/TypedArrays/from/nan-conversion.js
+++ b/test/built-ins/TypedArrays/from/nan-conversion.js
@@ -24,7 +24,8 @@ testWithTypedArrayConstructors(function(TA) {
assert.sameValue(result[1], NaN);
assert.sameValue(result.constructor, TA);
assert.sameValue(Object.getPrototypeOf(result), TA.prototype);
-}, [
+},
+[
Float32Array,
Float64Array
]);
@@ -36,7 +37,8 @@ testWithTypedArrayConstructors(function(TA) {
assert.sameValue(result[1], 0);
assert.sameValue(result.constructor, TA);
assert.sameValue(Object.getPrototypeOf(result), TA.prototype);
-}, [
+},
+[
Int8Array,
Int32Array,
Int16Array,
@@ -45,4 +47,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 100d0049d..b29d4de6f 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,7 +24,8 @@ testWithTypedArrayConstructors(function(TA) {
assert.sameValue(result[3], NaN);
assert.sameValue(result.constructor, TA);
assert.sameValue(Object.getPrototypeOf(result), TA.prototype);
-}, [
+},
+[
Float32Array,
Float64Array
]);
@@ -39,7 +40,8 @@ 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 8b8bc9d27..2eef7a2a8 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,7 +22,8 @@ testWithTypedArrayConstructors(function(TA) {
assert.sameValue(result[5], NaN);
assert.sameValue(result.constructor, TA);
assert.sameValue(Object.getPrototypeOf(result), TA.prototype);
-}, [
+},
+[
Float32Array,
Float64Array
]);
@@ -39,7 +40,8 @@ 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 a8bb4a850..ef06c4b93 100644
--- a/test/built-ins/TypedArrays/from/new-instance-from-zero.js
+++ b/test/built-ins/TypedArrays/from/new-instance-from-zero.js
@@ -15,7 +15,8 @@ testWithTypedArrayConstructors(function(TA) {
assert.sameValue(result[1], 0, "+0 => 0");
assert.sameValue(result.constructor, TA);
assert.sameValue(Object.getPrototypeOf(result), TA.prototype);
-}, [
+},
+[
Float32Array,
Float64Array
]);
@@ -27,7 +28,8 @@ 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,
@@ -35,4 +37,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 83ecbaa3b..1dab90235 100644
--- a/test/built-ins/TypedArrays/from/this-is-not-constructor.js
+++ b/test/built-ins/TypedArrays/from/this-is-not-constructor.js
@@ -14,9 +14,7 @@ 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 39a11f109..19323c66d 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,9 +55,7 @@ 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 26cb90caa..f78228c5b 100644
--- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/conversion-operation.js
+++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/conversion-operation.js
@@ -47,9 +47,7 @@ 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 c6c8dd156..6572c1f94 100644
--- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/desc-value-throws.js
+++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/desc-value-throws.js
@@ -35,8 +35,6 @@ 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 e413ab78d..a1039636f 100644
--- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/detached-buffer.js
+++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/detached-buffer.js
@@ -129,8 +129,6 @@ 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 b51c1b602..193d91665 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 4d498e45f..845a9afbe 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,9 +21,7 @@ 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 20bfb67ca..e74c95f12 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,9 +22,7 @@ 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 5b3005e86..a0baaf57e 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,9 +25,7 @@ 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 8768f035a..ff71bee90 100644
--- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/set-value.js
+++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/set-value.js
@@ -29,17 +29,13 @@ 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 63ff80219..5e586c775 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,14 +22,10 @@ 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 af6468946..d1975ee63 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,22 +32,24 @@ 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 24d118ed6..21293026c 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,9 +48,7 @@ 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 271716483..53824ad34 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,9 +31,7 @@ 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 0a585a99a..1d05d06bc 100644
--- a/test/built-ins/TypedArrays/internals/Get/key-is-symbol.js
+++ b/test/built-ins/TypedArrays/internals/Get/key-is-symbol.js
@@ -32,9 +32,7 @@ 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 3683a6f55..81b274361 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,9 +29,7 @@ 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 5605b8d5b..308a2973f 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,9 +22,7 @@ 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 8344b203f..35b6fa01c 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,9 +38,7 @@ 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 1d008d21f..57fd606ae 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,9 +29,7 @@ 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 d0e3b1f0d..6b440e119 100644
--- a/test/built-ins/TypedArrays/internals/GetOwnProperty/key-is-symbol.js
+++ b/test/built-ins/TypedArrays/internals/GetOwnProperty/key-is-symbol.js
@@ -22,9 +22,7 @@ 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 3eddf77c7..1c235fa81 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,9 +53,7 @@ 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 d7662252d..011e80c0b 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,9 +20,7 @@ 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 10f0c84d9..2c34c3caa 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,9 +22,7 @@ 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 9e79d90cc..7a79bec7b 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 673aec6d8..7e20c5b24 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,9 +43,7 @@ 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 e6e187a56..53cfc5768 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,9 +23,7 @@ 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 f6d1a1bfb..f3b6e6758 100644
--- a/test/built-ins/TypedArrays/internals/HasProperty/key-is-symbol.js
+++ b/test/built-ins/TypedArrays/internals/HasProperty/key-is-symbol.js
@@ -22,9 +22,7 @@ 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 45e9c76af..86a4b867b 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 ecc1b08e8..f9af0defe 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,9 +17,8 @@ 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 764447eab..41fc55509 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 e9b548230..ad6db0877 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 63122f682..571ad77ad 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 019cbb79c..bda57f8cd 100644
--- a/test/built-ins/TypedArrays/of/argument-number-value-throws.js
+++ b/test/built-ins/TypedArrays/of/argument-number-value-throws.js
@@ -40,3 +40,4 @@ 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 6a7ee304b..4f040e4e9 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 e16dfe286..382bf1cd9 100644
--- a/test/built-ins/TypedArrays/of/invoked-as-func.js
+++ b/test/built-ins/TypedArrays/of/invoked-as-func.js
@@ -19,6 +19,7 @@ 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 8e3ca40ae..4444f1286 100644
--- a/test/built-ins/TypedArrays/of/nan-conversion.js
+++ b/test/built-ins/TypedArrays/of/nan-conversion.js
@@ -24,7 +24,8 @@ testWithTypedArrayConstructors(function(TA) {
assert.sameValue(result[1], NaN);
assert.sameValue(result.constructor, TA);
assert.sameValue(Object.getPrototypeOf(result), TA.prototype);
-}, [
+},
+[
Float32Array,
Float64Array
]);
@@ -36,7 +37,8 @@ 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 783e5b3b2..ecffd9c36 100644
--- a/test/built-ins/TypedArrays/of/new-instance-from-zero.js
+++ b/test/built-ins/TypedArrays/of/new-instance-from-zero.js
@@ -15,7 +15,8 @@ testWithTypedArrayConstructors(function(TA) {
assert.sameValue(result[1], 0, "+0 => 0");
assert.sameValue(result.constructor, TA);
assert.sameValue(Object.getPrototypeOf(result), TA.prototype);
-}, [
+},
+[
Float32Array,
Float64Array
]);
@@ -27,7 +28,8 @@ 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 dedf72bce..be5b3b65a 100644
--- a/test/built-ins/TypedArrays/of/this-is-not-constructor.js
+++ b/test/built-ins/TypedArrays/of/this-is-not-constructor.js
@@ -15,9 +15,7 @@ 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 b2716b242..8ee2fba54 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 37484659b..978f42af6 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 8a656718f..c485cae13 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,9 +33,7 @@ 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 ad7dfa659..135634646 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,9 +45,7 @@ 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 6c0d590d2..2072aa96d 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,9 +37,7 @@ 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 cd0cc0c25..b171826cf 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 4125eee93..e7bbc1d10 100644
--- a/test/built-ins/WeakMap/iterable.js
+++ b/test/built-ins/WeakMap/iterable.js
@@ -27,10 +27,7 @@ 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 57a0d05d5..e2abc9479 100644
--- a/test/built-ins/WeakMap/iterator-close-after-set-failure.js
+++ b/test/built-ins/WeakMap/iterator-close-after-set-failure.js
@@ -20,19 +20,14 @@ 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 bc8c4d059..ebec4f91b 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,10 +28,7 @@ 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 5cb3959d5..1af895570 100644
--- a/test/built-ins/WeakMap/iterator-items-are-not-object.js
+++ b/test/built-ins/WeakMap/iterator-items-are-not-object.js
@@ -45,7 +45,5 @@ 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 baa4d1014..7aafce494 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 1927f697b..6768aba52 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,9 +22,7 @@ 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 76d7ef16d..77eddd8ba 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 47990a97d..2afc923dc 100644
--- a/test/built-ins/WeakMap/prototype/get/returns-value.js
+++ b/test/built-ins/WeakMap/prototype/get/returns-value.js
@@ -21,9 +21,7 @@ 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 e4eea0129..81e8f36ae 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,8 +18,6 @@ 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 fed192c8c..dcd971380 100644
--- a/test/built-ins/WeakSet/iterator-close-after-add-failure.js
+++ b/test/built-ins/WeakSet/iterator-close-after-add-failure.js
@@ -20,19 +20,14 @@ 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 1fbaa8409..9febed308 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 eacb101f7..0a3363e2d 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 60e1a4bd8..fcd724045 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,12 +13,7 @@ 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 fe8b1522c..33fa65d21 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,12 +16,7 @@ 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 20ed6651e..9752e4298 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,12 +16,7 @@ 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 ef1bd2624..8c8e4e824 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,12 +17,7 @@ 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 ffc0a9814..acb718faf 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,12 +17,7 @@ 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 f7f0f8d51..226bdb476 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,12 +17,7 @@ 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 6905a3853..2ee47854c 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 5f6354bf6..5a30805bb 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,12 +13,7 @@ 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 234066125..5944e67bf 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,12 +13,7 @@ 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 642313140..477ef8460 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 a609d0114..71e8c31d4 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 + ' ');
- }
- indexO = index;
+ 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 ccc2da700..a5517ed7e 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 3d64f22d1..c088525b2 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 216de1349..e3789fbdf 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,51 +10,26 @@ 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)));
}
@@ -68,38 +43,20 @@ 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)));
}
@@ -111,14 +68,7 @@ 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 18a31ed6c..a46be4f62 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,12 +13,7 @@ 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 523333d22..da331c911 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,12 +16,7 @@ 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 a28d0d88f..1a0c176a4 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,12 +16,7 @@ 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 6cebbac3e..4fabab2a7 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,12 +17,7 @@ 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 d0584a7c1..dfe26fb48 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,12 +17,7 @@ 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 524b484c0..91c59946a 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,12 +17,7 @@ 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 8f7812a52..6a072c6ba 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 9f02d80e7..32d2f4564 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,12 +13,7 @@ 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 a8710a8c8..f12e15c84 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,12 +13,7 @@ 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 a84fa9b91..5ffde47cf 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 e2412648c..e8d46165b 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 376bff510..e01cd5502 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 5717f3f82..cb27193eb 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,51 +10,26 @@ 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)));
}
@@ -68,38 +43,20 @@ 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)));
}
@@ -111,14 +68,7 @@ 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 adc678581..4b8dbcca1 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 + ' ');
- }
- indexO = index;
+ 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 7dfba5982..95460bf13 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 + ' ');
- }
- indexO = index;
+ 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 57fdbecfa..5dad9e2d7 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 196f9bab0..6a99e8337 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 bc7c7fc8e..955a4038b 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,51 +10,26 @@ 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)));
}
@@ -68,38 +43,20 @@ 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)));
}
@@ -111,14 +68,7 @@ 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 1920d60ae..49b3f0d91 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 + ' ');
- }
- indexO = index;
+ 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 beb7a06df..fa95eb034 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 + ' ');
- }
- indexO = index;
+ 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 04fa7a5f2..505232e05 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 c00a36b94..94c2dc87a 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 3dca74696..2011de0a0 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,51 +10,26 @@ 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)));
}
@@ -68,38 +43,20 @@ 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)));
}
@@ -111,14 +68,7 @@ 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 97ac7252c..4cc4fb6a8 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 c1748605b..6e93567b3 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 0ef1eb17f..b5cf69ff5 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 507e07e5f..6a3e87eaa 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 6bcae2396..bda9016fd 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 cb8f60ae4..ec1bc94e7 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 44d2fc16c..51359c334 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 2717f918e..4e24b9d46 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 16de4c0eb..0497a078c 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 92f8258e1..5f8940512 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 6eac1483d..5652ac2d0 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 758529a92..690f44913 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 4dce306c2..2d0c18861 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 3abffff7c..6ee2522bf 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 366759ceb..27c8da5cc 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 2fbeaf9c0..80f2386eb 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 b5fdc2cb2..f52c65f62 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 9dc8843d5..bdfb2dcfd 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 ccde02b7f..195ca44b7 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 07c20cb74..c2d4f98a4 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 9cc1fa88f..d011b2a39 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 e14c7b111..9dbb49b35 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 427a4bcf5..7de8a86ae 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 1a7ca5862..ee07c7359 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 ee17f77c4..ec0482d2a 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 4c61acec8..4a3c5517f 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 aa5078240..1bdf92179 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 dd52eb829..276818897 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 4aa1326a2..ecbbd49c5 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 68a3dfbf9..6bb61a7ef 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 83f2868f0..18d89f5b4 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 aed814768..796612aca 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 3fbdfd1ae..e2a730aaa 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 d135fcde6..fd3ab6b66 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,49 +10,24 @@ 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)));
}
@@ -66,38 +41,20 @@ 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)));
}
@@ -109,14 +66,7 @@ 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 5e38fc4fa..d17cbca4b 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 4d39ca400..5013eea27 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 66902d7fa..19984b429 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 6665d34be..bc2d2a590 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,3 +19,4 @@ 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 617db6cd9..f5655726d 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,49 +10,24 @@ 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)));
}
@@ -66,38 +41,20 @@ 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)));
}
@@ -109,14 +66,7 @@ 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 359035302..7d4c6c7aa 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 1eeaec01f..0dc23b6fa 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,51 +10,26 @@ 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)));
}
@@ -68,38 +43,20 @@ 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)));
}
@@ -111,14 +68,7 @@ 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 cbb1b7733..a4b58e9f9 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 d644f3604..7be4f90d5 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 980f9dc9a..9f0148669 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 81b667e8c..90c7ddbe4 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 5b8fdfcbf..bf5ed5294 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 d6becd026..070ffbc4d 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 8a0ee2974..960783ecc 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 b29cc4267..4140b2036 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 61510e57a..e03da48ec 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 78ab60a76..2c3a24308 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 c5159d7e1..5f13f195f 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 12282235e..d57747088 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 49918799e..f49d5ca8c 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');
}
}