From a01de4a722d088055a7d84d8c691ddd7109edb34 Mon Sep 17 00:00:00 2001 From: Rick Waldron <waldron.rick@gmail.com> Date: Fri, 9 Feb 2018 11:35:37 -0500 Subject: [PATCH] js-beautify: make all indentation consistent (depth & character) (#1409) --- test/built-ins/Array/15.4.5-1.js | 4 +- test/built-ins/Array/15.4.5.1-5-1.js | 4 +- test/built-ins/Array/15.4.5.1-5-2.js | 4 +- test/built-ins/Array/S15.4.1_A1.1_T2.js | 4 +- test/built-ins/Array/S15.4.1_A1.2_T1.js | 4 +- test/built-ins/Array/S15.4.1_A2.1_T1.js | 4 +- test/built-ins/Array/S15.4.1_A2.2_T1.js | 20 +- test/built-ins/Array/S15.4.1_A3.1_T1.js | 2 +- test/built-ins/Array/S15.4.2.1_A1.1_T1.js | 2 +- test/built-ins/Array/S15.4.2.1_A1.1_T2.js | 4 +- test/built-ins/Array/S15.4.2.1_A1.2_T1.js | 4 +- test/built-ins/Array/S15.4.2.1_A2.1_T1.js | 4 +- test/built-ins/Array/S15.4.2.1_A2.2_T1.js | 20 +- test/built-ins/Array/S15.4.5.1_A1.2_T2.js | 10 +- test/built-ins/Array/S15.4.5.1_A2.1_T1.js | 24 +- test/built-ins/Array/S15.4.5.1_A2.2_T1.js | 12 +- test/built-ins/Array/S15.4.5.1_A2.3_T1.js | 8 +- test/built-ins/Array/S15.4.5.2_A1_T1.js | 12 +- test/built-ins/Array/S15.4.5.2_A1_T2.js | 8 +- test/built-ins/Array/S15.4.5.2_A2_T1.js | 10 +- test/built-ins/Array/S15.4.5.2_A3_T1.js | 8 +- test/built-ins/Array/S15.4.5.2_A3_T2.js | 14 +- test/built-ins/Array/S15.4.5.2_A3_T3.js | 8 +- test/built-ins/Array/S15.4_A1.1_T10.js | 4 +- test/built-ins/Array/S15.4_A1.1_T4.js | 6 +- test/built-ins/Array/S15.4_A1.1_T5.js | 8 +- test/built-ins/Array/S15.4_A1.1_T6.js | 8 +- test/built-ins/Array/S15.4_A1.1_T7.js | 8 +- test/built-ins/Array/S15.4_A1.1_T8.js | 8 +- test/built-ins/Array/S15.4_A1.1_T9.js | 80 +++++- ...ay.from_forwards-length-for-array-likes.js | 4 +- .../from/calling-from-valid-1-noStrict.js | 2 +- .../from/calling-from-valid-1-onlyStrict.js | 2 +- .../Array/from/calling-from-valid-2.js | 2 +- .../Array/from/elements-added-after.js | 31 +- .../Array/from/elements-deleted-after.js | 17 +- .../Array/from/elements-updated-after.js | 19 +- test/built-ins/Array/from/iter-cstm-ctor.js | 4 +- test/built-ins/Array/from/iter-map-fn-args.js | 14 +- .../Array/from/iter-map-fn-return.js | 14 +- .../Array/from/iter-map-fn-this-arg.js | 14 +- .../Array/from/iter-map-fn-this-non-strict.js | 18 +- .../Array/from/iter-map-fn-this-strict.js | 14 +- .../Array/from/iter-set-elem-prop-err.js | 12 +- .../Array/from/iter-set-elem-prop.js | 15 +- .../Array/from/iter-set-length-err.js | 6 +- test/built-ins/Array/from/iter-set-length.js | 12 +- .../Array/from/mapfn-throws-exception.js | 9 +- .../Array/from/source-array-boundary.js | 11 +- .../Array/from/source-object-iterator-1.js | 38 +-- .../Array/from/source-object-iterator-2.js | 38 +-- .../Array/from/source-object-length.js | 12 +- .../Array/from/source-object-missing.js | 10 +- .../Array/from/source-object-without.js | 8 +- test/built-ins/Array/isArray/15.4.3.2-0-4.js | 10 +- test/built-ins/Array/isArray/15.4.3.2-1-13.js | 2 +- test/built-ins/Array/isArray/15.4.3.2-1-7.js | 2 +- test/built-ins/Array/isArray/15.4.3.2-2-1.js | 2 +- test/built-ins/Array/isArray/15.4.3.2-2-2.js | 8 +- test/built-ins/Array/isArray/15.4.3.2-2-3.js | 6 +- test/built-ins/Array/length/15.4.5.1-3.d-1.js | 2 +- test/built-ins/Array/length/15.4.5.1-3.d-2.js | 2 +- test/built-ins/Array/length/15.4.5.1-3.d-3.js | 4 +- .../Array/length/S15.4.2.2_A2.2_T1.js | 6 +- .../Array/length/S15.4.2.2_A2.2_T2.js | 6 +- .../Array/length/S15.4.2.2_A2.2_T3.js | 6 +- .../Array/length/S15.4.5.1_A1.1_T1.js | 6 +- .../Array/length/S15.4.5.1_A1.1_T2.js | 8 +- .../Array/length/S15.4.5.1_A1.2_T1.js | 2 +- .../Array/length/S15.4.5.1_A1.2_T3.js | 2 +- .../Array/length/S15.4.5.1_A1.3_T2.js | 66 ++++- .../built-ins/Array/length/S15.4.5.2_A3_T4.js | 2 +- .../concat/15.4.4.4-5-b-iii-3-b-1.js | 42 +-- .../prototype/concat/15.4.4.4-5-c-i-1.js | 44 +-- ...ncat_array-like-length-to-string-throws.js | 6 +- ..._array-like-primitive-non-number-length.js | 14 +- ...ototype.concat_array-like-string-length.js | 7 +- ...type.concat_array-like-to-length-throws.js | 12 +- .../Array.prototype.concat_array-like.js | 7 +- ...prototype.concat_holey-sloppy-arguments.js | 4 +- ...rray.prototype.concat_large-typed-array.js | 4 +- .../Array.prototype.concat_length-throws.js | 4 +- .../Array.prototype.concat_non-array.js | 4 +- ...rototype.concat_sloppy-arguments-throws.js | 8 +- ...type.concat_sloppy-arguments-with-dupes.js | 8 +- ...Array.prototype.concat_sloppy-arguments.js | 8 +- ...rray.prototype.concat_small-typed-array.js | 4 +- ...otype.concat_spreadable-boolean-wrapper.js | 2 +- ...ay.prototype.concat_spreadable-function.js | 4 +- ...ototype.concat_spreadable-getter-throws.js | 4 +- ...totype.concat_spreadable-number-wrapper.js | 2 +- ...ray.prototype.concat_spreadable-reg-exp.js | 2 +- ...ototype.concat_spreadable-sparse-object.js | 4 +- ...Array.prototype.concat_strict-arguments.js | 9 +- .../Array/prototype/concat/S15.4.4.4_A1_T1.js | 6 +- .../Array/prototype/concat/S15.4.4.4_A1_T2.js | 4 +- .../Array/prototype/concat/S15.4.4.4_A1_T3.js | 2 +- .../Array/prototype/concat/S15.4.4.4_A1_T4.js | 4 +- .../Array/prototype/concat/S15.4.4.4_A2_T1.js | 4 +- .../Array/prototype/concat/S15.4.4.4_A3_T1.js | 4 +- .../Array/prototype/concat/S15.4.4.4_A3_T2.js | 1 - .../Array/prototype/concat/S15.4.4.4_A3_T3.js | 1 - .../prototype/concat/create-non-array.js | 4 +- .../copyWithin/coerced-values-end.js | 18 +- .../copyWithin/coerced-values-start.js | 24 +- .../copyWithin/coerced-values-target.js | 24 +- .../prototype/copyWithin/negative-end.js | 24 +- .../copyWithin/negative-out-of-bounds-end.js | 30 +- .../negative-out-of-bounds-start.js | 24 +- .../negative-out-of-bounds-target.js | 12 +- .../prototype/copyWithin/negative-start.js | 18 +- .../prototype/copyWithin/negative-target.js | 9 +- .../non-negative-out-of-bounds-end.js | 12 +- ...negative-out-of-bounds-target-and-start.js | 45 +-- .../non-negative-target-and-start.js | 12 +- .../non-negative-target-start-and-end.js | 15 +- .../copyWithin/return-abrupt-from-end.js | 1 - .../copyWithin/return-abrupt-from-start.js | 1 - .../prototype/copyWithin/undefined-end.js | 6 +- .../Array/prototype/every/15.4.4.16-1-4.js | 1 + .../Array/prototype/every/15.4.4.16-1-5.js | 1 + .../Array/prototype/every/15.4.4.16-1-6.js | 1 + .../Array/prototype/every/15.4.4.16-1-9.js | 2 +- .../Array/prototype/every/15.4.4.16-2-10.js | 8 +- .../Array/prototype/every/15.4.4.16-2-11.js | 2 +- .../Array/prototype/every/15.4.4.16-2-12.js | 17 +- .../Array/prototype/every/15.4.4.16-2-13.js | 10 +- .../Array/prototype/every/15.4.4.16-2-14.js | 5 +- .../Array/prototype/every/15.4.4.16-2-17.js | 4 +- .../Array/prototype/every/15.4.4.16-2-19.js | 2 +- .../Array/prototype/every/15.4.4.16-2-3.js | 6 +- .../Array/prototype/every/15.4.4.16-2-4.js | 1 + .../Array/prototype/every/15.4.4.16-2-5.js | 8 +- .../Array/prototype/every/15.4.4.16-2-6.js | 6 +- .../Array/prototype/every/15.4.4.16-2-7.js | 6 +- .../Array/prototype/every/15.4.4.16-2-8.js | 10 +- .../Array/prototype/every/15.4.4.16-2-9.js | 10 +- .../Array/prototype/every/15.4.4.16-3-1.js | 5 +- .../Array/prototype/every/15.4.4.16-3-10.js | 5 +- .../Array/prototype/every/15.4.4.16-3-11.js | 7 +- .../Array/prototype/every/15.4.4.16-3-12.js | 7 +- .../Array/prototype/every/15.4.4.16-3-13.js | 7 +- .../Array/prototype/every/15.4.4.16-3-14.js | 19 +- .../Array/prototype/every/15.4.4.16-3-15.js | 7 +- .../Array/prototype/every/15.4.4.16-3-16.js | 7 +- .../Array/prototype/every/15.4.4.16-3-17.js | 7 +- .../Array/prototype/every/15.4.4.16-3-18.js | 6 +- .../Array/prototype/every/15.4.4.16-3-19.js | 20 +- .../Array/prototype/every/15.4.4.16-3-2.js | 6 +- .../Array/prototype/every/15.4.4.16-3-20.js | 8 +- .../Array/prototype/every/15.4.4.16-3-21.js | 28 +- .../Array/prototype/every/15.4.4.16-3-22.js | 44 +-- .../Array/prototype/every/15.4.4.16-3-23.js | 68 ++--- .../Array/prototype/every/15.4.4.16-3-24.js | 19 +- .../Array/prototype/every/15.4.4.16-3-25.js | 24 +- .../Array/prototype/every/15.4.4.16-3-29.js | 22 +- .../Array/prototype/every/15.4.4.16-3-3.js | 15 +- .../Array/prototype/every/15.4.4.16-3-4.js | 15 +- .../Array/prototype/every/15.4.4.16-3-5.js | 15 +- .../Array/prototype/every/15.4.4.16-3-6.js | 19 +- .../Array/prototype/every/15.4.4.16-3-7.js | 19 +- .../Array/prototype/every/15.4.4.16-3-8.js | 15 +- .../Array/prototype/every/15.4.4.16-3-9.js | 15 +- .../Array/prototype/every/15.4.4.16-4-1.js | 4 +- .../Array/prototype/every/15.4.4.16-4-10.js | 19 +- .../Array/prototype/every/15.4.4.16-4-11.js | 27 +- .../Array/prototype/every/15.4.4.16-4-12.js | 6 +- .../Array/prototype/every/15.4.4.16-4-15.js | 38 +-- .../Array/prototype/every/15.4.4.16-4-3.js | 4 +- .../Array/prototype/every/15.4.4.16-4-4.js | 4 +- .../Array/prototype/every/15.4.4.16-4-5.js | 4 +- .../Array/prototype/every/15.4.4.16-4-6.js | 4 +- .../Array/prototype/every/15.4.4.16-4-7.js | 4 +- .../Array/prototype/every/15.4.4.16-4-8.js | 23 +- .../Array/prototype/every/15.4.4.16-4-9.js | 31 +- .../Array/prototype/every/15.4.4.16-5-1-s.js | 14 +- .../Array/prototype/every/15.4.4.16-5-1.js | 10 +- .../Array/prototype/every/15.4.4.16-5-10.js | 12 +- .../Array/prototype/every/15.4.4.16-5-11.js | 12 +- .../Array/prototype/every/15.4.4.16-5-12.js | 12 +- .../Array/prototype/every/15.4.4.16-5-13.js | 12 +- .../Array/prototype/every/15.4.4.16-5-14.js | 10 +- .../Array/prototype/every/15.4.4.16-5-15.js | 12 +- .../Array/prototype/every/15.4.4.16-5-16.js | 12 +- .../Array/prototype/every/15.4.4.16-5-17.js | 10 +- .../Array/prototype/every/15.4.4.16-5-18.js | 12 +- .../Array/prototype/every/15.4.4.16-5-19.js | 18 +- .../Array/prototype/every/15.4.4.16-5-2.js | 17 +- .../Array/prototype/every/15.4.4.16-5-21.js | 10 +- .../Array/prototype/every/15.4.4.16-5-22.js | 10 +- .../Array/prototype/every/15.4.4.16-5-23.js | 10 +- .../Array/prototype/every/15.4.4.16-5-24.js | 10 +- .../Array/prototype/every/15.4.4.16-5-3.js | 17 +- .../Array/prototype/every/15.4.4.16-5-4.js | 21 +- .../Array/prototype/every/15.4.4.16-5-5.js | 21 +- .../Array/prototype/every/15.4.4.16-5-6.js | 19 +- .../Array/prototype/every/15.4.4.16-5-7.js | 10 +- .../Array/prototype/every/15.4.4.16-5-9.js | 12 +- .../Array/prototype/every/15.4.4.16-7-1.js | 20 +- .../Array/prototype/every/15.4.4.16-7-2.js | 18 +- .../Array/prototype/every/15.4.4.16-7-3.js | 18 +- .../Array/prototype/every/15.4.4.16-7-4.js | 18 +- .../Array/prototype/every/15.4.4.16-7-5.js | 22 +- .../Array/prototype/every/15.4.4.16-7-6.js | 24 +- .../Array/prototype/every/15.4.4.16-7-7.js | 18 +- .../Array/prototype/every/15.4.4.16-7-8.js | 16 +- .../Array/prototype/every/15.4.4.16-7-9.js | 30 +- .../Array/prototype/every/15.4.4.16-7-b-1.js | 19 +- .../Array/prototype/every/15.4.4.16-7-b-10.js | 32 ++- .../Array/prototype/every/15.4.4.16-7-b-11.js | 29 +- .../Array/prototype/every/15.4.4.16-7-b-12.js | 37 +-- .../Array/prototype/every/15.4.4.16-7-b-13.js | 32 +-- .../Array/prototype/every/15.4.4.16-7-b-14.js | 27 +- .../Array/prototype/every/15.4.4.16-7-b-15.js | 42 +-- .../Array/prototype/every/15.4.4.16-7-b-16.js | 42 +-- .../Array/prototype/every/15.4.4.16-7-b-2.js | 30 +- .../Array/prototype/every/15.4.4.16-7-b-3.js | 30 +- .../Array/prototype/every/15.4.4.16-7-b-4.js | 42 +-- .../Array/prototype/every/15.4.4.16-7-b-5.js | 40 +-- .../Array/prototype/every/15.4.4.16-7-b-6.js | 42 +-- .../Array/prototype/every/15.4.4.16-7-b-7.js | 40 +-- .../Array/prototype/every/15.4.4.16-7-b-8.js | 41 +-- .../Array/prototype/every/15.4.4.16-7-b-9.js | 39 +-- .../prototype/every/15.4.4.16-7-c-i-1.js | 22 +- .../prototype/every/15.4.4.16-7-c-i-10.js | 28 +- .../prototype/every/15.4.4.16-7-c-i-11.js | 39 +-- .../prototype/every/15.4.4.16-7-c-i-12.js | 30 +- .../prototype/every/15.4.4.16-7-c-i-13.js | 58 ++-- .../prototype/every/15.4.4.16-7-c-i-14.js | 40 +-- .../prototype/every/15.4.4.16-7-c-i-15.js | 36 +-- .../prototype/every/15.4.4.16-7-c-i-16.js | 26 +- .../prototype/every/15.4.4.16-7-c-i-17.js | 22 +- .../prototype/every/15.4.4.16-7-c-i-18.js | 20 +- .../prototype/every/15.4.4.16-7-c-i-19.js | 24 +- .../prototype/every/15.4.4.16-7-c-i-2.js | 10 +- .../prototype/every/15.4.4.16-7-c-i-20.js | 22 +- .../prototype/every/15.4.4.16-7-c-i-21.js | 28 +- .../prototype/every/15.4.4.16-7-c-i-22.js | 18 +- .../prototype/every/15.4.4.16-7-c-i-25.js | 16 +- .../prototype/every/15.4.4.16-7-c-i-26.js | 28 +- .../prototype/every/15.4.4.16-7-c-i-27.js | 28 +- .../prototype/every/15.4.4.16-7-c-i-28.js | 44 +-- .../prototype/every/15.4.4.16-7-c-i-29.js | 46 +-- .../prototype/every/15.4.4.16-7-c-i-3.js | 29 +- .../prototype/every/15.4.4.16-7-c-i-30.js | 36 ++- .../prototype/every/15.4.4.16-7-c-i-31.js | 35 +-- .../prototype/every/15.4.4.16-7-c-i-4.js | 15 +- .../prototype/every/15.4.4.16-7-c-i-5.js | 46 +-- .../prototype/every/15.4.4.16-7-c-i-6.js | 22 +- .../prototype/every/15.4.4.16-7-c-i-7.js | 28 +- .../prototype/every/15.4.4.16-7-c-i-8.js | 16 +- .../prototype/every/15.4.4.16-7-c-i-9.js | 31 +- .../prototype/every/15.4.4.16-7-c-ii-1.js | 12 +- .../prototype/every/15.4.4.16-7-c-ii-10.js | 10 +- .../prototype/every/15.4.4.16-7-c-ii-11.js | 10 +- .../prototype/every/15.4.4.16-7-c-ii-12.js | 10 +- .../prototype/every/15.4.4.16-7-c-ii-13.js | 10 +- .../prototype/every/15.4.4.16-7-c-ii-16.js | 15 +- .../prototype/every/15.4.4.16-7-c-ii-17.js | 15 +- .../prototype/every/15.4.4.16-7-c-ii-18.js | 15 +- .../prototype/every/15.4.4.16-7-c-ii-19.js | 17 +- .../prototype/every/15.4.4.16-7-c-ii-2.js | 14 +- .../prototype/every/15.4.4.16-7-c-ii-20.js | 19 +- .../prototype/every/15.4.4.16-7-c-ii-21.js | 26 +- .../prototype/every/15.4.4.16-7-c-ii-22.js | 26 +- .../prototype/every/15.4.4.16-7-c-ii-23.js | 16 +- .../prototype/every/15.4.4.16-7-c-ii-3.js | 21 +- .../prototype/every/15.4.4.16-7-c-ii-4.js | 25 +- .../prototype/every/15.4.4.16-7-c-ii-5.js | 34 +-- .../prototype/every/15.4.4.16-7-c-ii-6.js | 23 +- .../prototype/every/15.4.4.16-7-c-ii-7.js | 25 +- .../prototype/every/15.4.4.16-7-c-ii-8.js | 18 +- .../prototype/every/15.4.4.16-7-c-ii-9.js | 10 +- .../prototype/every/15.4.4.16-7-c-iii-1.js | 15 +- .../prototype/every/15.4.4.16-7-c-iii-10.js | 10 +- .../prototype/every/15.4.4.16-7-c-iii-11.js | 10 +- .../prototype/every/15.4.4.16-7-c-iii-12.js | 10 +- .../prototype/every/15.4.4.16-7-c-iii-13.js | 10 +- .../prototype/every/15.4.4.16-7-c-iii-14.js | 10 +- .../prototype/every/15.4.4.16-7-c-iii-15.js | 10 +- .../prototype/every/15.4.4.16-7-c-iii-16.js | 10 +- .../prototype/every/15.4.4.16-7-c-iii-17.js | 10 +- .../prototype/every/15.4.4.16-7-c-iii-18.js | 10 +- .../prototype/every/15.4.4.16-7-c-iii-19.js | 10 +- .../prototype/every/15.4.4.16-7-c-iii-2.js | 15 +- .../prototype/every/15.4.4.16-7-c-iii-20.js | 10 +- .../prototype/every/15.4.4.16-7-c-iii-21.js | 10 +- .../prototype/every/15.4.4.16-7-c-iii-22.js | 10 +- .../prototype/every/15.4.4.16-7-c-iii-23.js | 10 +- .../prototype/every/15.4.4.16-7-c-iii-24.js | 10 +- .../prototype/every/15.4.4.16-7-c-iii-25.js | 10 +- .../prototype/every/15.4.4.16-7-c-iii-27.js | 10 +- .../prototype/every/15.4.4.16-7-c-iii-28.js | 56 ++-- .../prototype/every/15.4.4.16-7-c-iii-29.js | 10 +- .../prototype/every/15.4.4.16-7-c-iii-3.js | 15 +- .../prototype/every/15.4.4.16-7-c-iii-4.js | 15 +- .../prototype/every/15.4.4.16-7-c-iii-5.js | 10 +- .../prototype/every/15.4.4.16-7-c-iii-6.js | 10 +- .../prototype/every/15.4.4.16-7-c-iii-7.js | 10 +- .../prototype/every/15.4.4.16-7-c-iii-8.js | 10 +- .../prototype/every/15.4.4.16-7-c-iii-9.js | 10 +- .../Array/prototype/every/15.4.4.16-8-1.js | 4 +- .../Array/prototype/every/15.4.4.16-8-10.js | 25 +- .../Array/prototype/every/15.4.4.16-8-11.js | 15 +- .../Array/prototype/every/15.4.4.16-8-12.js | 12 +- .../Array/prototype/every/15.4.4.16-8-13.js | 19 +- .../Array/prototype/every/15.4.4.16-8-2.js | 13 +- .../Array/prototype/every/15.4.4.16-8-3.js | 13 +- .../Array/prototype/every/15.4.4.16-8-4.js | 13 +- .../Array/prototype/every/15.4.4.16-8-5.js | 13 +- .../Array/prototype/every/15.4.4.16-8-6.js | 19 +- .../Array/prototype/every/15.4.4.16-8-7.js | 29 +- .../Array/prototype/every/15.4.4.16-8-8.js | 45 +-- .../fill/fill-values-custom-start-and-end.js | 2 +- .../Array/prototype/fill/fill-values.js | 3 +- .../Array/prototype/filter/15.4.4.20-1-1.js | 2 +- .../Array/prototype/filter/15.4.4.20-1-10.js | 12 +- .../Array/prototype/filter/15.4.4.20-1-11.js | 14 +- .../Array/prototype/filter/15.4.4.20-1-12.js | 14 +- .../Array/prototype/filter/15.4.4.20-1-13.js | 12 +- .../Array/prototype/filter/15.4.4.20-1-14.js | 14 +- .../Array/prototype/filter/15.4.4.20-1-15.js | 14 +- .../Array/prototype/filter/15.4.4.20-1-2.js | 2 +- .../Array/prototype/filter/15.4.4.20-1-3.js | 12 +- .../Array/prototype/filter/15.4.4.20-1-4.js | 16 +- .../Array/prototype/filter/15.4.4.20-1-5.js | 12 +- .../Array/prototype/filter/15.4.4.20-1-6.js | 16 +- .../Array/prototype/filter/15.4.4.20-1-7.js | 8 +- .../Array/prototype/filter/15.4.4.20-1-8.js | 10 +- .../Array/prototype/filter/15.4.4.20-1-9.js | 18 +- .../Array/prototype/filter/15.4.4.20-10-1.js | 12 +- .../Array/prototype/filter/15.4.4.20-10-2.js | 18 +- .../Array/prototype/filter/15.4.4.20-10-3.js | 15 +- .../Array/prototype/filter/15.4.4.20-10-4.js | 19 +- .../Array/prototype/filter/15.4.4.20-2-1.js | 20 +- .../Array/prototype/filter/15.4.4.20-2-10.js | 34 +-- .../Array/prototype/filter/15.4.4.20-2-11.js | 29 +- .../Array/prototype/filter/15.4.4.20-2-12.js | 38 +-- .../Array/prototype/filter/15.4.4.20-2-13.js | 41 +-- .../Array/prototype/filter/15.4.4.20-2-14.js | 18 +- .../Array/prototype/filter/15.4.4.20-2-17.js | 14 +- .../Array/prototype/filter/15.4.4.20-2-18.js | 10 +- .../Array/prototype/filter/15.4.4.20-2-19.js | 20 +- .../Array/prototype/filter/15.4.4.20-2-2.js | 8 +- .../Array/prototype/filter/15.4.4.20-2-3.js | 26 +- .../Array/prototype/filter/15.4.4.20-2-4.js | 14 +- .../Array/prototype/filter/15.4.4.20-2-5.js | 52 ++-- .../Array/prototype/filter/15.4.4.20-2-6.js | 24 +- .../Array/prototype/filter/15.4.4.20-2-7.js | 28 +- .../Array/prototype/filter/15.4.4.20-2-8.js | 36 +-- .../Array/prototype/filter/15.4.4.20-2-9.js | 46 +-- .../Array/prototype/filter/15.4.4.20-3-1.js | 19 +- .../Array/prototype/filter/15.4.4.20-3-10.js | 18 +- .../Array/prototype/filter/15.4.4.20-3-11.js | 14 +- .../Array/prototype/filter/15.4.4.20-3-12.js | 14 +- .../Array/prototype/filter/15.4.4.20-3-13.js | 14 +- .../Array/prototype/filter/15.4.4.20-3-14.js | 17 +- .../Array/prototype/filter/15.4.4.20-3-15.js | 14 +- .../Array/prototype/filter/15.4.4.20-3-16.js | 14 +- .../Array/prototype/filter/15.4.4.20-3-17.js | 14 +- .../Array/prototype/filter/15.4.4.20-3-18.js | 18 +- .../Array/prototype/filter/15.4.4.20-3-19.js | 26 +- .../Array/prototype/filter/15.4.4.20-3-2.js | 14 +- .../Array/prototype/filter/15.4.4.20-3-20.js | 26 +- .../Array/prototype/filter/15.4.4.20-3-21.js | 40 +-- .../Array/prototype/filter/15.4.4.20-3-22.js | 44 +-- .../Array/prototype/filter/15.4.4.20-3-23.js | 48 ++-- .../Array/prototype/filter/15.4.4.20-3-24.js | 18 +- .../Array/prototype/filter/15.4.4.20-3-25.js | 18 +- .../Array/prototype/filter/15.4.4.20-3-3.js | 18 +- .../Array/prototype/filter/15.4.4.20-3-4.js | 18 +- .../Array/prototype/filter/15.4.4.20-3-5.js | 18 +- .../Array/prototype/filter/15.4.4.20-3-6.js | 14 +- .../Array/prototype/filter/15.4.4.20-3-7.js | 14 +- .../Array/prototype/filter/15.4.4.20-3-9.js | 18 +- .../Array/prototype/filter/15.4.4.20-4-1.js | 4 +- .../Array/prototype/filter/15.4.4.20-4-10.js | 19 +- .../Array/prototype/filter/15.4.4.20-4-11.js | 27 +- .../Array/prototype/filter/15.4.4.20-4-12.js | 14 +- .../Array/prototype/filter/15.4.4.20-4-15.js | 38 +-- .../Array/prototype/filter/15.4.4.20-4-2.js | 4 +- .../Array/prototype/filter/15.4.4.20-4-3.js | 4 +- .../Array/prototype/filter/15.4.4.20-4-4.js | 4 +- .../Array/prototype/filter/15.4.4.20-4-5.js | 4 +- .../Array/prototype/filter/15.4.4.20-4-6.js | 4 +- .../Array/prototype/filter/15.4.4.20-4-7.js | 4 +- .../Array/prototype/filter/15.4.4.20-4-8.js | 23 +- .../Array/prototype/filter/15.4.4.20-4-9.js | 31 +- .../Array/prototype/filter/15.4.4.20-5-1-s.js | 14 +- .../Array/prototype/filter/15.4.4.20-5-1.js | 16 +- .../Array/prototype/filter/15.4.4.20-5-10.js | 14 +- .../Array/prototype/filter/15.4.4.20-5-11.js | 14 +- .../Array/prototype/filter/15.4.4.20-5-12.js | 14 +- .../Array/prototype/filter/15.4.4.20-5-13.js | 14 +- .../Array/prototype/filter/15.4.4.20-5-14.js | 12 +- .../Array/prototype/filter/15.4.4.20-5-15.js | 14 +- .../Array/prototype/filter/15.4.4.20-5-16.js | 14 +- .../Array/prototype/filter/15.4.4.20-5-17.js | 12 +- .../Array/prototype/filter/15.4.4.20-5-18.js | 14 +- .../Array/prototype/filter/15.4.4.20-5-19.js | 20 +- .../Array/prototype/filter/15.4.4.20-5-2.js | 19 +- .../Array/prototype/filter/15.4.4.20-5-21.js | 12 +- .../Array/prototype/filter/15.4.4.20-5-22.js | 12 +- .../Array/prototype/filter/15.4.4.20-5-23.js | 12 +- .../Array/prototype/filter/15.4.4.20-5-24.js | 12 +- .../Array/prototype/filter/15.4.4.20-5-27.js | 2 +- .../Array/prototype/filter/15.4.4.20-5-28.js | 2 +- .../Array/prototype/filter/15.4.4.20-5-29.js | 2 +- .../Array/prototype/filter/15.4.4.20-5-3.js | 19 +- .../Array/prototype/filter/15.4.4.20-5-30.js | 20 +- .../Array/prototype/filter/15.4.4.20-5-4.js | 21 +- .../Array/prototype/filter/15.4.4.20-5-5.js | 21 +- .../Array/prototype/filter/15.4.4.20-5-6.js | 19 +- .../Array/prototype/filter/15.4.4.20-5-7.js | 12 +- .../Array/prototype/filter/15.4.4.20-5-9.js | 14 +- .../Array/prototype/filter/15.4.4.20-6-1.js | 4 +- .../Array/prototype/filter/15.4.4.20-6-2.js | 13 +- .../Array/prototype/filter/15.4.4.20-6-3.js | 13 +- .../Array/prototype/filter/15.4.4.20-6-4.js | 13 +- .../Array/prototype/filter/15.4.4.20-6-5.js | 13 +- .../Array/prototype/filter/15.4.4.20-6-6.js | 19 +- .../Array/prototype/filter/15.4.4.20-6-7.js | 29 +- .../Array/prototype/filter/15.4.4.20-6-8.js | 45 +-- .../Array/prototype/filter/15.4.4.20-9-1.js | 14 +- .../Array/prototype/filter/15.4.4.20-9-2.js | 22 +- .../Array/prototype/filter/15.4.4.20-9-3.js | 22 +- .../Array/prototype/filter/15.4.4.20-9-4.js | 14 +- .../Array/prototype/filter/15.4.4.20-9-5.js | 18 +- .../Array/prototype/filter/15.4.4.20-9-6.js | 26 +- .../Array/prototype/filter/15.4.4.20-9-7.js | 20 +- .../Array/prototype/filter/15.4.4.20-9-8.js | 18 +- .../Array/prototype/filter/15.4.4.20-9-9.js | 32 ++- .../Array/prototype/filter/15.4.4.20-9-b-1.js | 19 +- .../prototype/filter/15.4.4.20-9-b-10.js | 29 +- .../prototype/filter/15.4.4.20-9-b-11.js | 26 +- .../prototype/filter/15.4.4.20-9-b-12.js | 31 +- .../prototype/filter/15.4.4.20-9-b-13.js | 26 +- .../prototype/filter/15.4.4.20-9-b-14.js | 24 +- .../prototype/filter/15.4.4.20-9-b-15.js | 36 +-- .../prototype/filter/15.4.4.20-9-b-16.js | 36 +-- .../Array/prototype/filter/15.4.4.20-9-b-2.js | 24 +- .../Array/prototype/filter/15.4.4.20-9-b-3.js | 27 +- .../Array/prototype/filter/15.4.4.20-9-b-4.js | 36 +-- .../Array/prototype/filter/15.4.4.20-9-b-5.js | 34 +-- .../Array/prototype/filter/15.4.4.20-9-b-6.js | 36 +-- .../Array/prototype/filter/15.4.4.20-9-b-7.js | 34 +-- .../Array/prototype/filter/15.4.4.20-9-b-8.js | 42 +-- .../Array/prototype/filter/15.4.4.20-9-b-9.js | 36 +-- .../prototype/filter/15.4.4.20-9-c-i-1.js | 16 +- .../prototype/filter/15.4.4.20-9-c-i-10.js | 22 +- .../prototype/filter/15.4.4.20-9-c-i-11.js | 33 ++- .../prototype/filter/15.4.4.20-9-c-i-12.js | 24 +- .../prototype/filter/15.4.4.20-9-c-i-13.js | 52 ++-- .../prototype/filter/15.4.4.20-9-c-i-14.js | 34 +-- .../prototype/filter/15.4.4.20-9-c-i-15.js | 30 +- .../prototype/filter/15.4.4.20-9-c-i-16.js | 20 +- .../prototype/filter/15.4.4.20-9-c-i-17.js | 20 +- .../prototype/filter/15.4.4.20-9-c-i-18.js | 18 +- .../prototype/filter/15.4.4.20-9-c-i-19.js | 22 +- .../prototype/filter/15.4.4.20-9-c-i-2.js | 12 +- .../prototype/filter/15.4.4.20-9-c-i-20.js | 20 +- .../prototype/filter/15.4.4.20-9-c-i-21.js | 26 +- .../prototype/filter/15.4.4.20-9-c-i-22.js | 16 +- .../prototype/filter/15.4.4.20-9-c-i-25.js | 14 +- .../prototype/filter/15.4.4.20-9-c-i-26.js | 26 +- .../prototype/filter/15.4.4.20-9-c-i-27.js | 30 +- .../prototype/filter/15.4.4.20-9-c-i-28.js | 46 +-- .../prototype/filter/15.4.4.20-9-c-i-29.js | 48 ++-- .../prototype/filter/15.4.4.20-9-c-i-3.js | 23 +- .../prototype/filter/15.4.4.20-9-c-i-30.js | 36 ++- .../prototype/filter/15.4.4.20-9-c-i-31.js | 35 +-- .../prototype/filter/15.4.4.20-9-c-i-4.js | 10 +- .../prototype/filter/15.4.4.20-9-c-i-5.js | 50 ++-- .../prototype/filter/15.4.4.20-9-c-i-6.js | 20 +- .../prototype/filter/15.4.4.20-9-c-i-7.js | 22 +- .../prototype/filter/15.4.4.20-9-c-i-8.js | 10 +- .../prototype/filter/15.4.4.20-9-c-i-9.js | 25 +- .../prototype/filter/15.4.4.20-9-c-ii-1.js | 23 +- .../prototype/filter/15.4.4.20-9-c-ii-10.js | 8 +- .../prototype/filter/15.4.4.20-9-c-ii-11.js | 8 +- .../prototype/filter/15.4.4.20-9-c-ii-12.js | 8 +- .../prototype/filter/15.4.4.20-9-c-ii-13.js | 8 +- .../prototype/filter/15.4.4.20-9-c-ii-16.js | 13 +- .../prototype/filter/15.4.4.20-9-c-ii-17.js | 13 +- .../prototype/filter/15.4.4.20-9-c-ii-18.js | 13 +- .../prototype/filter/15.4.4.20-9-c-ii-19.js | 19 +- .../prototype/filter/15.4.4.20-9-c-ii-2.js | 21 +- .../prototype/filter/15.4.4.20-9-c-ii-20.js | 17 +- .../prototype/filter/15.4.4.20-9-c-ii-21.js | 26 +- .../prototype/filter/15.4.4.20-9-c-ii-22.js | 26 +- .../prototype/filter/15.4.4.20-9-c-ii-23.js | 13 +- .../prototype/filter/15.4.4.20-9-c-ii-4.js | 27 +- .../prototype/filter/15.4.4.20-9-c-ii-5.js | 36 +-- .../prototype/filter/15.4.4.20-9-c-ii-6.js | 21 +- .../prototype/filter/15.4.4.20-9-c-ii-7.js | 25 +- .../prototype/filter/15.4.4.20-9-c-ii-8.js | 20 +- .../prototype/filter/15.4.4.20-9-c-ii-9.js | 8 +- .../prototype/filter/15.4.4.20-9-c-iii-1-1.js | 14 +- .../prototype/filter/15.4.4.20-9-c-iii-1-2.js | 18 +- .../prototype/filter/15.4.4.20-9-c-iii-1-3.js | 31 +- .../prototype/filter/15.4.4.20-9-c-iii-1-4.js | 18 +- .../prototype/filter/15.4.4.20-9-c-iii-1-5.js | 27 +- .../prototype/filter/15.4.4.20-9-c-iii-1-6.js | 36 +-- .../prototype/filter/15.4.4.20-9-c-iii-1.js | 16 +- .../prototype/filter/15.4.4.20-9-c-iii-10.js | 8 +- .../prototype/filter/15.4.4.20-9-c-iii-11.js | 8 +- .../prototype/filter/15.4.4.20-9-c-iii-12.js | 8 +- .../prototype/filter/15.4.4.20-9-c-iii-13.js | 12 +- .../prototype/filter/15.4.4.20-9-c-iii-14.js | 12 +- .../prototype/filter/15.4.4.20-9-c-iii-15.js | 8 +- .../prototype/filter/15.4.4.20-9-c-iii-16.js | 8 +- .../prototype/filter/15.4.4.20-9-c-iii-17.js | 8 +- .../prototype/filter/15.4.4.20-9-c-iii-18.js | 8 +- .../prototype/filter/15.4.4.20-9-c-iii-19.js | 8 +- .../prototype/filter/15.4.4.20-9-c-iii-2.js | 17 +- .../prototype/filter/15.4.4.20-9-c-iii-20.js | 8 +- .../prototype/filter/15.4.4.20-9-c-iii-21.js | 8 +- .../prototype/filter/15.4.4.20-9-c-iii-22.js | 8 +- .../prototype/filter/15.4.4.20-9-c-iii-23.js | 8 +- .../prototype/filter/15.4.4.20-9-c-iii-24.js | 8 +- .../prototype/filter/15.4.4.20-9-c-iii-25.js | 8 +- .../prototype/filter/15.4.4.20-9-c-iii-26.js | 8 +- .../prototype/filter/15.4.4.20-9-c-iii-28.js | 9 +- .../prototype/filter/15.4.4.20-9-c-iii-29.js | 18 +- .../prototype/filter/15.4.4.20-9-c-iii-3.js | 17 +- .../prototype/filter/15.4.4.20-9-c-iii-30.js | 8 +- .../prototype/filter/15.4.4.20-9-c-iii-4.js | 17 +- .../prototype/filter/15.4.4.20-9-c-iii-5.js | 13 +- .../prototype/filter/15.4.4.20-9-c-iii-6.js | 12 +- .../prototype/filter/15.4.4.20-9-c-iii-7.js | 12 +- .../prototype/filter/15.4.4.20-9-c-iii-8.js | 12 +- .../prototype/filter/15.4.4.20-9-c-iii-9.js | 8 +- .../filter/create-ctor-non-object.js | 4 +- .../prototype/filter/create-ctor-poisoned.js | 4 +- .../prototype/filter/create-non-array.js | 4 +- .../prototype/filter/create-revoked-proxy.js | 4 +- .../prototype/filter/create-species-abrupt.js | 4 +- .../filter/create-species-non-ctor.js | 4 +- .../filter/create-species-poisoned.js | 4 +- ...rn-found-value-predicate-result-is-true.js | 20 +- ...efined-if-predicate-returns-false-value.js | 20 +- .../return-index-predicate-result-is-true.js | 20 +- ...ve-one-if-predicate-returns-false-value.js | 20 +- .../flatMap/bound-function-argument.js | 4 +- .../prototype/flatMap/depth-always-one.js | 4 +- .../flatMap/non-callable-argument-throws.js | 2 +- .../flatMap/non-object-ctor-throws.js | 1 - .../flatMap/null-undefined-input-throws.js | 1 - .../prototype/flatMap/thisArg-argument.js | 24 +- .../prototype/flatten/bound-function-call.js | 5 +- .../prototype/flatten/empty-array-elements.js | 15 +- .../flatten/empty-object-elements.js | 12 +- .../built-ins/Array/prototype/flatten/name.js | 1 - .../flatten/null-undefined-elements.js | 11 +- .../flatten/null-undefined-input-throws.js | 1 - .../symbol-object-create-null-depth-throws.js | 1 - .../Array/prototype/forEach/15.4.4.18-1-1.js | 2 +- .../Array/prototype/forEach/15.4.4.18-1-10.js | 14 +- .../Array/prototype/forEach/15.4.4.18-1-11.js | 17 +- .../Array/prototype/forEach/15.4.4.18-1-12.js | 17 +- .../Array/prototype/forEach/15.4.4.18-1-13.js | 15 +- .../Array/prototype/forEach/15.4.4.18-1-14.js | 17 +- .../Array/prototype/forEach/15.4.4.18-1-15.js | 17 +- .../Array/prototype/forEach/15.4.4.18-1-2.js | 2 +- .../Array/prototype/forEach/15.4.4.18-1-3.js | 14 +- .../Array/prototype/forEach/15.4.4.18-1-4.js | 19 +- .../Array/prototype/forEach/15.4.4.18-1-5.js | 15 +- .../Array/prototype/forEach/15.4.4.18-1-6.js | 19 +- .../Array/prototype/forEach/15.4.4.18-1-7.js | 11 +- .../Array/prototype/forEach/15.4.4.18-1-8.js | 13 +- .../Array/prototype/forEach/15.4.4.18-1-9.js | 21 +- .../Array/prototype/forEach/15.4.4.18-2-1.js | 23 +- .../Array/prototype/forEach/15.4.4.18-2-10.js | 37 +-- .../Array/prototype/forEach/15.4.4.18-2-11.js | 27 +- .../Array/prototype/forEach/15.4.4.18-2-12.js | 36 +-- .../Array/prototype/forEach/15.4.4.18-2-13.js | 30 +- .../Array/prototype/forEach/15.4.4.18-2-14.js | 15 +- .../Array/prototype/forEach/15.4.4.18-2-17.js | 19 +- .../Array/prototype/forEach/15.4.4.18-2-18.js | 13 +- .../Array/prototype/forEach/15.4.4.18-2-19.js | 23 +- .../Array/prototype/forEach/15.4.4.18-2-2.js | 11 +- .../Array/prototype/forEach/15.4.4.18-2-3.js | 29 +- .../Array/prototype/forEach/15.4.4.18-2-4.js | 17 +- .../Array/prototype/forEach/15.4.4.18-2-5.js | 55 ++-- .../Array/prototype/forEach/15.4.4.18-2-6.js | 27 +- .../Array/prototype/forEach/15.4.4.18-2-7.js | 31 +- .../Array/prototype/forEach/15.4.4.18-2-8.js | 39 +-- .../Array/prototype/forEach/15.4.4.18-2-9.js | 49 ++-- .../Array/prototype/forEach/15.4.4.18-3-1.js | 16 +- .../Array/prototype/forEach/15.4.4.18-3-10.js | 15 +- .../Array/prototype/forEach/15.4.4.18-3-11.js | 16 +- .../Array/prototype/forEach/15.4.4.18-3-12.js | 16 +- .../Array/prototype/forEach/15.4.4.18-3-13.js | 16 +- .../Array/prototype/forEach/15.4.4.18-3-14.js | 15 +- .../Array/prototype/forEach/15.4.4.18-3-15.js | 16 +- .../Array/prototype/forEach/15.4.4.18-3-16.js | 16 +- .../Array/prototype/forEach/15.4.4.18-3-17.js | 16 +- .../Array/prototype/forEach/15.4.4.18-3-18.js | 15 +- .../Array/prototype/forEach/15.4.4.18-3-19.js | 28 +- .../Array/prototype/forEach/15.4.4.18-3-2.js | 17 +- .../Array/prototype/forEach/15.4.4.18-3-20.js | 28 +- .../Array/prototype/forEach/15.4.4.18-3-21.js | 42 +-- .../Array/prototype/forEach/15.4.4.18-3-22.js | 42 +-- .../Array/prototype/forEach/15.4.4.18-3-23.js | 64 ++--- .../Array/prototype/forEach/15.4.4.18-3-24.js | 20 +- .../Array/prototype/forEach/15.4.4.18-3-25.js | 20 +- .../Array/prototype/forEach/15.4.4.18-3-3.js | 16 +- .../Array/prototype/forEach/15.4.4.18-3-4.js | 15 +- .../Array/prototype/forEach/15.4.4.18-3-5.js | 15 +- .../Array/prototype/forEach/15.4.4.18-3-6.js | 16 +- .../Array/prototype/forEach/15.4.4.18-3-7.js | 16 +- .../Array/prototype/forEach/15.4.4.18-3-9.js | 15 +- .../Array/prototype/forEach/15.4.4.18-4-1.js | 4 +- .../Array/prototype/forEach/15.4.4.18-4-10.js | 19 +- .../Array/prototype/forEach/15.4.4.18-4-11.js | 27 +- .../Array/prototype/forEach/15.4.4.18-4-12.js | 11 +- .../Array/prototype/forEach/15.4.4.18-4-15.js | 38 +-- .../Array/prototype/forEach/15.4.4.18-4-2.js | 4 +- .../Array/prototype/forEach/15.4.4.18-4-3.js | 4 +- .../Array/prototype/forEach/15.4.4.18-4-4.js | 4 +- .../Array/prototype/forEach/15.4.4.18-4-5.js | 4 +- .../Array/prototype/forEach/15.4.4.18-4-6.js | 4 +- .../Array/prototype/forEach/15.4.4.18-4-7.js | 4 +- .../Array/prototype/forEach/15.4.4.18-4-8.js | 23 +- .../Array/prototype/forEach/15.4.4.18-4-9.js | 31 +- .../prototype/forEach/15.4.4.18-5-1-s.js | 14 +- .../Array/prototype/forEach/15.4.4.18-5-1.js | 19 +- .../Array/prototype/forEach/15.4.4.18-5-10.js | 12 +- .../Array/prototype/forEach/15.4.4.18-5-11.js | 12 +- .../Array/prototype/forEach/15.4.4.18-5-12.js | 12 +- .../Array/prototype/forEach/15.4.4.18-5-13.js | 12 +- .../Array/prototype/forEach/15.4.4.18-5-14.js | 11 +- .../Array/prototype/forEach/15.4.4.18-5-15.js | 12 +- .../Array/prototype/forEach/15.4.4.18-5-16.js | 12 +- .../Array/prototype/forEach/15.4.4.18-5-17.js | 11 +- .../Array/prototype/forEach/15.4.4.18-5-18.js | 12 +- .../Array/prototype/forEach/15.4.4.18-5-19.js | 18 +- .../Array/prototype/forEach/15.4.4.18-5-2.js | 21 +- .../Array/prototype/forEach/15.4.4.18-5-21.js | 11 +- .../Array/prototype/forEach/15.4.4.18-5-22.js | 10 +- .../Array/prototype/forEach/15.4.4.18-5-23.js | 11 +- .../Array/prototype/forEach/15.4.4.18-5-24.js | 11 +- .../Array/prototype/forEach/15.4.4.18-5-25.js | 23 +- .../Array/prototype/forEach/15.4.4.18-5-3.js | 21 +- .../Array/prototype/forEach/15.4.4.18-5-4.js | 23 +- .../Array/prototype/forEach/15.4.4.18-5-5.js | 23 +- .../Array/prototype/forEach/15.4.4.18-5-6.js | 21 +- .../Array/prototype/forEach/15.4.4.18-5-7.js | 10 +- .../Array/prototype/forEach/15.4.4.18-5-9.js | 12 +- .../Array/prototype/forEach/15.4.4.18-7-1.js | 19 +- .../Array/prototype/forEach/15.4.4.18-7-2.js | 19 +- .../Array/prototype/forEach/15.4.4.18-7-3.js | 17 +- .../Array/prototype/forEach/15.4.4.18-7-4.js | 21 +- .../Array/prototype/forEach/15.4.4.18-7-5.js | 21 +- .../Array/prototype/forEach/15.4.4.18-7-7.js | 18 +- .../Array/prototype/forEach/15.4.4.18-7-8.js | 16 +- .../Array/prototype/forEach/15.4.4.18-7-9.js | 31 +- .../prototype/forEach/15.4.4.18-7-b-1.js | 17 +- .../prototype/forEach/15.4.4.18-7-b-10.js | 39 +-- .../prototype/forEach/15.4.4.18-7-b-11.js | 36 +-- .../prototype/forEach/15.4.4.18-7-b-12.js | 36 +-- .../prototype/forEach/15.4.4.18-7-b-13.js | 32 +-- .../prototype/forEach/15.4.4.18-7-b-14.js | 34 +-- .../prototype/forEach/15.4.4.18-7-b-15.js | 42 +-- .../prototype/forEach/15.4.4.18-7-b-16.js | 52 ++-- .../prototype/forEach/15.4.4.18-7-b-2.js | 30 +- .../prototype/forEach/15.4.4.18-7-b-3.js | 37 +-- .../prototype/forEach/15.4.4.18-7-b-4.js | 42 +-- .../prototype/forEach/15.4.4.18-7-b-5.js | 40 +-- .../prototype/forEach/15.4.4.18-7-b-6.js | 42 +-- .../prototype/forEach/15.4.4.18-7-b-7.js | 40 +-- .../prototype/forEach/15.4.4.18-7-b-8.js | 58 ++-- .../prototype/forEach/15.4.4.18-7-b-9.js | 56 ++-- .../prototype/forEach/15.4.4.18-7-c-i-1.js | 21 +- .../prototype/forEach/15.4.4.18-7-c-i-10.js | 28 +- .../prototype/forEach/15.4.4.18-7-c-i-11.js | 38 +-- .../prototype/forEach/15.4.4.18-7-c-i-12.js | 30 +- .../prototype/forEach/15.4.4.18-7-c-i-13.js | 48 ++-- .../prototype/forEach/15.4.4.18-7-c-i-14.js | 50 ++-- .../prototype/forEach/15.4.4.18-7-c-i-15.js | 36 +-- .../prototype/forEach/15.4.4.18-7-c-i-16.js | 26 +- .../prototype/forEach/15.4.4.18-7-c-i-17.js | 26 +- .../prototype/forEach/15.4.4.18-7-c-i-18.js | 24 +- .../prototype/forEach/15.4.4.18-7-c-i-19.js | 48 ++-- .../prototype/forEach/15.4.4.18-7-c-i-2.js | 14 +- .../prototype/forEach/15.4.4.18-7-c-i-20.js | 36 +-- .../prototype/forEach/15.4.4.18-7-c-i-21.js | 32 +-- .../prototype/forEach/15.4.4.18-7-c-i-22.js | 22 +- .../prototype/forEach/15.4.4.18-7-c-i-25.js | 20 +- .../prototype/forEach/15.4.4.18-7-c-i-26.js | 38 +-- .../prototype/forEach/15.4.4.18-7-c-i-27.js | 42 +-- .../prototype/forEach/15.4.4.18-7-c-i-28.js | 52 ++-- .../prototype/forEach/15.4.4.18-7-c-i-29.js | 54 ++-- .../prototype/forEach/15.4.4.18-7-c-i-3.js | 30 +- .../prototype/forEach/15.4.4.18-7-c-i-30.js | 47 +-- .../prototype/forEach/15.4.4.18-7-c-i-31.js | 46 +-- .../prototype/forEach/15.4.4.18-7-c-i-4.js | 16 +- .../prototype/forEach/15.4.4.18-7-c-i-5.js | 56 ++-- .../prototype/forEach/15.4.4.18-7-c-i-6.js | 26 +- .../prototype/forEach/15.4.4.18-7-c-i-7.js | 28 +- .../prototype/forEach/15.4.4.18-7-c-i-8.js | 16 +- .../prototype/forEach/15.4.4.18-7-c-i-9.js | 31 +- .../prototype/forEach/15.4.4.18-7-c-ii-1.js | 23 +- .../prototype/forEach/15.4.4.18-7-c-ii-10.js | 11 +- .../prototype/forEach/15.4.4.18-7-c-ii-11.js | 11 +- .../prototype/forEach/15.4.4.18-7-c-ii-12.js | 11 +- .../prototype/forEach/15.4.4.18-7-c-ii-13.js | 11 +- .../prototype/forEach/15.4.4.18-7-c-ii-16.js | 16 +- .../prototype/forEach/15.4.4.18-7-c-ii-17.js | 16 +- .../prototype/forEach/15.4.4.18-7-c-ii-18.js | 16 +- .../prototype/forEach/15.4.4.18-7-c-ii-19.js | 26 +- .../prototype/forEach/15.4.4.18-7-c-ii-2.js | 21 +- .../prototype/forEach/15.4.4.18-7-c-ii-20.js | 20 +- .../prototype/forEach/15.4.4.18-7-c-ii-21.js | 28 +- .../prototype/forEach/15.4.4.18-7-c-ii-22.js | 28 +- .../prototype/forEach/15.4.4.18-7-c-ii-23.js | 15 +- .../prototype/forEach/15.4.4.18-7-c-ii-4.js | 27 +- .../prototype/forEach/15.4.4.18-7-c-ii-5.js | 32 +-- .../prototype/forEach/15.4.4.18-7-c-ii-6.js | 23 +- .../prototype/forEach/15.4.4.18-7-c-ii-7.js | 27 +- .../prototype/forEach/15.4.4.18-7-c-ii-8.js | 26 +- .../prototype/forEach/15.4.4.18-7-c-ii-9.js | 11 +- .../Array/prototype/forEach/15.4.4.18-8-1.js | 9 +- .../Array/prototype/forEach/15.4.4.18-8-10.js | 18 +- .../Array/prototype/forEach/15.4.4.18-8-11.js | 12 +- .../Array/prototype/forEach/15.4.4.18-8-12.js | 19 +- .../Array/prototype/forEach/15.4.4.18-8-13.js | 11 +- .../Array/prototype/forEach/15.4.4.18-8-2.js | 18 +- .../Array/prototype/forEach/15.4.4.18-8-3.js | 18 +- .../Array/prototype/forEach/15.4.4.18-8-4.js | 18 +- .../Array/prototype/forEach/15.4.4.18-8-5.js | 18 +- .../Array/prototype/forEach/15.4.4.18-8-6.js | 24 +- .../Array/prototype/forEach/15.4.4.18-8-7.js | 34 ++- .../Array/prototype/forEach/15.4.4.18-8-8.js | 44 +-- .../Array/prototype/forEach/15.4.4.18-8-9.js | 50 ++-- .../Array/prototype/forEach/S15.4.4.18_A1.js | 4 +- .../Array/prototype/forEach/S15.4.4.18_A2.js | 4 +- ...x-equal-or-greater-length-returns-false.js | 2 +- .../search-not-found-returns-false.js | 4 +- .../Array/prototype/includes/sparse.js | 6 +- .../prototype/includes/tolength-length.js | 12 +- .../Array/prototype/indexOf/15.4.4.14-1-1.js | 2 +- .../Array/prototype/indexOf/15.4.4.14-1-10.js | 4 +- .../Array/prototype/indexOf/15.4.4.14-1-11.js | 6 +- .../Array/prototype/indexOf/15.4.4.14-1-12.js | 6 +- .../Array/prototype/indexOf/15.4.4.14-1-13.js | 6 +- .../Array/prototype/indexOf/15.4.4.14-1-14.js | 6 +- .../Array/prototype/indexOf/15.4.4.14-1-15.js | 8 +- .../Array/prototype/indexOf/15.4.4.14-1-2.js | 2 +- .../Array/prototype/indexOf/15.4.4.14-1-3.js | 6 +- .../Array/prototype/indexOf/15.4.4.14-1-4.js | 6 +- .../Array/prototype/indexOf/15.4.4.14-1-5.js | 6 +- .../Array/prototype/indexOf/15.4.4.14-1-6.js | 6 +- .../Array/prototype/indexOf/15.4.4.14-1-8.js | 2 +- .../Array/prototype/indexOf/15.4.4.14-1-9.js | 8 +- .../Array/prototype/indexOf/15.4.4.14-10-1.js | 14 +- .../Array/prototype/indexOf/15.4.4.14-10-2.js | 15 +- .../Array/prototype/indexOf/15.4.4.14-2-1.js | 10 +- .../Array/prototype/indexOf/15.4.4.14-2-10.js | 26 +- .../Array/prototype/indexOf/15.4.4.14-2-11.js | 12 +- .../Array/prototype/indexOf/15.4.4.14-2-12.js | 24 +- .../Array/prototype/indexOf/15.4.4.14-2-13.js | 18 +- .../Array/prototype/indexOf/15.4.4.14-2-14.js | 5 +- .../Array/prototype/indexOf/15.4.4.14-2-17.js | 10 +- .../Array/prototype/indexOf/15.4.4.14-2-18.js | 4 +- .../Array/prototype/indexOf/15.4.4.14-2-19.js | 10 +- .../Array/prototype/indexOf/15.4.4.14-2-2.js | 4 +- .../Array/prototype/indexOf/15.4.4.14-2-3.js | 14 +- .../Array/prototype/indexOf/15.4.4.14-2-4.js | 8 +- .../Array/prototype/indexOf/15.4.4.14-2-5.js | 30 +- .../Array/prototype/indexOf/15.4.4.14-2-6.js | 16 +- .../Array/prototype/indexOf/15.4.4.14-2-7.js | 32 ++- .../Array/prototype/indexOf/15.4.4.14-2-8.js | 24 +- .../Array/prototype/indexOf/15.4.4.14-2-9.js | 34 +-- .../Array/prototype/indexOf/15.4.4.14-3-1.js | 6 +- .../Array/prototype/indexOf/15.4.4.14-3-10.js | 5 +- .../Array/prototype/indexOf/15.4.4.14-3-11.js | 6 +- .../Array/prototype/indexOf/15.4.4.14-3-12.js | 6 +- .../Array/prototype/indexOf/15.4.4.14-3-13.js | 6 +- .../Array/prototype/indexOf/15.4.4.14-3-14.js | 18 +- .../Array/prototype/indexOf/15.4.4.14-3-15.js | 6 +- .../Array/prototype/indexOf/15.4.4.14-3-16.js | 6 +- .../Array/prototype/indexOf/15.4.4.14-3-17.js | 6 +- .../Array/prototype/indexOf/15.4.4.14-3-18.js | 6 +- .../Array/prototype/indexOf/15.4.4.14-3-19.js | 28 +- .../Array/prototype/indexOf/15.4.4.14-3-2.js | 6 +- .../Array/prototype/indexOf/15.4.4.14-3-20.js | 20 +- .../Array/prototype/indexOf/15.4.4.14-3-21.js | 30 +- .../Array/prototype/indexOf/15.4.4.14-3-22.js | 30 +- .../Array/prototype/indexOf/15.4.4.14-3-23.js | 38 +-- .../Array/prototype/indexOf/15.4.4.14-3-24.js | 6 +- .../Array/prototype/indexOf/15.4.4.14-3-25.js | 6 +- .../Array/prototype/indexOf/15.4.4.14-3-28.js | 14 +- .../Array/prototype/indexOf/15.4.4.14-3-29.js | 12 +- .../Array/prototype/indexOf/15.4.4.14-3-3.js | 5 +- .../Array/prototype/indexOf/15.4.4.14-3-4.js | 5 +- .../Array/prototype/indexOf/15.4.4.14-3-5.js | 5 +- .../Array/prototype/indexOf/15.4.4.14-3-6.js | 6 +- .../Array/prototype/indexOf/15.4.4.14-3-7.js | 6 +- .../Array/prototype/indexOf/15.4.4.14-3-8.js | 5 +- .../Array/prototype/indexOf/15.4.4.14-3-9.js | 5 +- .../Array/prototype/indexOf/15.4.4.14-4-1.js | 2 +- .../Array/prototype/indexOf/15.4.4.14-4-10.js | 8 +- .../Array/prototype/indexOf/15.4.4.14-4-11.js | 8 +- .../Array/prototype/indexOf/15.4.4.14-4-2.js | 4 +- .../Array/prototype/indexOf/15.4.4.14-4-3.js | 4 +- .../Array/prototype/indexOf/15.4.4.14-4-4.js | 4 +- .../Array/prototype/indexOf/15.4.4.14-4-5.js | 4 +- .../Array/prototype/indexOf/15.4.4.14-4-6.js | 8 +- .../Array/prototype/indexOf/15.4.4.14-4-7.js | 18 +- .../Array/prototype/indexOf/15.4.4.14-4-8.js | 30 +- .../Array/prototype/indexOf/15.4.4.14-4-9.js | 8 +- .../Array/prototype/indexOf/15.4.4.14-5-1.js | 6 +- .../Array/prototype/indexOf/15.4.4.14-5-10.js | 2 +- .../Array/prototype/indexOf/15.4.4.14-5-11.js | 2 +- .../Array/prototype/indexOf/15.4.4.14-5-12.js | 4 +- .../Array/prototype/indexOf/15.4.4.14-5-16.js | 4 +- .../Array/prototype/indexOf/15.4.4.14-5-18.js | 2 +- .../Array/prototype/indexOf/15.4.4.14-5-19.js | 2 +- .../Array/prototype/indexOf/15.4.4.14-5-2.js | 8 +- .../Array/prototype/indexOf/15.4.4.14-5-20.js | 2 +- .../Array/prototype/indexOf/15.4.4.14-5-21.js | 20 +- .../Array/prototype/indexOf/15.4.4.14-5-22.js | 10 +- .../Array/prototype/indexOf/15.4.4.14-5-23.js | 24 +- .../Array/prototype/indexOf/15.4.4.14-5-24.js | 26 +- .../Array/prototype/indexOf/15.4.4.14-5-25.js | 30 +- .../Array/prototype/indexOf/15.4.4.14-5-26.js | 40 +-- .../Array/prototype/indexOf/15.4.4.14-5-27.js | 48 ++-- .../Array/prototype/indexOf/15.4.4.14-5-28.js | 16 +- .../Array/prototype/indexOf/15.4.4.14-5-29.js | 30 +- .../Array/prototype/indexOf/15.4.4.14-5-3.js | 6 +- .../Array/prototype/indexOf/15.4.4.14-5-30.js | 38 +-- .../Array/prototype/indexOf/15.4.4.14-5-31.js | 2 +- .../Array/prototype/indexOf/15.4.4.14-5-32.js | 2 +- .../Array/prototype/indexOf/15.4.4.14-5-4.js | 4 +- .../Array/prototype/indexOf/15.4.4.14-5-5.js | 4 +- .../Array/prototype/indexOf/15.4.4.14-5-6.js | 4 +- .../Array/prototype/indexOf/15.4.4.14-6-1.js | 8 +- .../Array/prototype/indexOf/15.4.4.14-8-1.js | 10 +- .../Array/prototype/indexOf/15.4.4.14-9-1.js | 14 +- .../Array/prototype/indexOf/15.4.4.14-9-10.js | 8 +- .../Array/prototype/indexOf/15.4.4.14-9-11.js | 16 +- .../Array/prototype/indexOf/15.4.4.14-9-2.js | 14 +- .../Array/prototype/indexOf/15.4.4.14-9-3.js | 10 +- .../Array/prototype/indexOf/15.4.4.14-9-4.js | 12 +- .../Array/prototype/indexOf/15.4.4.14-9-5.js | 20 +- .../Array/prototype/indexOf/15.4.4.14-9-6.js | 10 +- .../Array/prototype/indexOf/15.4.4.14-9-7.js | 4 +- .../Array/prototype/indexOf/15.4.4.14-9-8.js | 4 +- .../Array/prototype/indexOf/15.4.4.14-9-9.js | 20 +- .../prototype/indexOf/15.4.4.14-9-a-1.js | 16 +- .../prototype/indexOf/15.4.4.14-9-a-10.js | 26 +- .../prototype/indexOf/15.4.4.14-9-a-11.js | 30 +- .../prototype/indexOf/15.4.4.14-9-a-12.js | 28 +- .../prototype/indexOf/15.4.4.14-9-a-13.js | 21 +- .../prototype/indexOf/15.4.4.14-9-a-14.js | 18 +- .../prototype/indexOf/15.4.4.14-9-a-15.js | 23 +- .../prototype/indexOf/15.4.4.14-9-a-16.js | 18 +- .../prototype/indexOf/15.4.4.14-9-a-17.js | 16 +- .../prototype/indexOf/15.4.4.14-9-a-18.js | 28 +- .../prototype/indexOf/15.4.4.14-9-a-19.js | 28 +- .../prototype/indexOf/15.4.4.14-9-a-2.js | 18 +- .../prototype/indexOf/15.4.4.14-9-a-3.js | 18 +- .../prototype/indexOf/15.4.4.14-9-a-4.js | 18 +- .../prototype/indexOf/15.4.4.14-9-a-5.js | 17 +- .../prototype/indexOf/15.4.4.14-9-a-6.js | 18 +- .../prototype/indexOf/15.4.4.14-9-a-7.js | 28 +- .../prototype/indexOf/15.4.4.14-9-a-8.js | 26 +- .../prototype/indexOf/15.4.4.14-9-a-9.js | 28 +- .../prototype/indexOf/15.4.4.14-9-b-i-1.js | 7 +- .../prototype/indexOf/15.4.4.14-9-b-i-10.js | 40 +-- .../prototype/indexOf/15.4.4.14-9-b-i-11.js | 16 +- .../prototype/indexOf/15.4.4.14-9-b-i-12.js | 18 +- .../prototype/indexOf/15.4.4.14-9-b-i-13.js | 26 +- .../prototype/indexOf/15.4.4.14-9-b-i-14.js | 28 +- .../prototype/indexOf/15.4.4.14-9-b-i-15.js | 36 +-- .../prototype/indexOf/15.4.4.14-9-b-i-16.js | 48 ++-- .../prototype/indexOf/15.4.4.14-9-b-i-17.js | 10 +- .../prototype/indexOf/15.4.4.14-9-b-i-18.js | 12 +- .../prototype/indexOf/15.4.4.14-9-b-i-19.js | 22 +- .../prototype/indexOf/15.4.4.14-9-b-i-20.js | 30 +- .../prototype/indexOf/15.4.4.14-9-b-i-21.js | 8 +- .../prototype/indexOf/15.4.4.14-9-b-i-22.js | 12 +- .../prototype/indexOf/15.4.4.14-9-b-i-25.js | 8 +- .../prototype/indexOf/15.4.4.14-9-b-i-26.js | 10 +- .../prototype/indexOf/15.4.4.14-9-b-i-27.js | 10 +- .../prototype/indexOf/15.4.4.14-9-b-i-28.js | 38 +-- .../prototype/indexOf/15.4.4.14-9-b-i-29.js | 40 +-- .../prototype/indexOf/15.4.4.14-9-b-i-3.js | 2 +- .../prototype/indexOf/15.4.4.14-9-b-i-30.js | 32 +-- .../prototype/indexOf/15.4.4.14-9-b-i-31.js | 34 +-- .../prototype/indexOf/15.4.4.14-9-b-i-4.js | 8 +- .../prototype/indexOf/15.4.4.14-9-b-i-5.js | 12 +- .../prototype/indexOf/15.4.4.14-9-b-i-6.js | 18 +- .../prototype/indexOf/15.4.4.14-9-b-i-7.js | 6 +- .../prototype/indexOf/15.4.4.14-9-b-i-8.js | 18 +- .../prototype/indexOf/15.4.4.14-9-b-i-9.js | 38 +-- .../prototype/indexOf/15.4.4.14-9-b-ii-1.js | 4 +- .../prototype/indexOf/15.4.4.14-9-b-ii-11.js | 6 +- .../prototype/indexOf/15.4.4.14-9-b-iii-2.js | 36 +-- .../Array/prototype/join/S15.4.4.5_A1.2_T1.js | 2 +- .../Array/prototype/join/S15.4.4.5_A1.2_T2.js | 2 +- .../Array/prototype/join/S15.4.4.5_A1.3_T1.js | 2 +- .../Array/prototype/join/S15.4.4.5_A2_T1.js | 16 +- .../Array/prototype/join/S15.4.4.5_A2_T2.js | 2 +- .../Array/prototype/join/S15.4.4.5_A2_T4.js | 66 ++++- .../Array/prototype/join/S15.4.4.5_A3.1_T1.js | 4 +- .../Array/prototype/join/S15.4.4.5_A3.1_T2.js | 84 +++++- .../Array/prototype/join/S15.4.4.5_A3.2_T1.js | 24 +- .../Array/prototype/join/S15.4.4.5_A3.2_T2.js | 66 ++++- .../Array/prototype/join/S15.4.4.5_A5_T1.js | 4 +- .../Array/prototype/keys/iteration-mutable.js | 2 +- .../prototype/lastIndexOf/15.4.4.15-1-1.js | 2 +- .../prototype/lastIndexOf/15.4.4.15-1-10.js | 4 +- .../prototype/lastIndexOf/15.4.4.15-1-11.js | 6 +- .../prototype/lastIndexOf/15.4.4.15-1-12.js | 6 +- .../prototype/lastIndexOf/15.4.4.15-1-13.js | 6 +- .../prototype/lastIndexOf/15.4.4.15-1-14.js | 6 +- .../prototype/lastIndexOf/15.4.4.15-1-15.js | 6 +- .../prototype/lastIndexOf/15.4.4.15-1-2.js | 2 +- .../prototype/lastIndexOf/15.4.4.15-1-3.js | 4 +- .../prototype/lastIndexOf/15.4.4.15-1-4.js | 6 +- .../prototype/lastIndexOf/15.4.4.15-1-5.js | 4 +- .../prototype/lastIndexOf/15.4.4.15-1-6.js | 6 +- .../prototype/lastIndexOf/15.4.4.15-1-8.js | 2 +- .../prototype/lastIndexOf/15.4.4.15-1-9.js | 8 +- .../prototype/lastIndexOf/15.4.4.15-2-1.js | 6 +- .../prototype/lastIndexOf/15.4.4.15-2-10.js | 24 +- .../prototype/lastIndexOf/15.4.4.15-2-11.js | 12 +- .../prototype/lastIndexOf/15.4.4.15-2-12.js | 24 +- .../prototype/lastIndexOf/15.4.4.15-2-13.js | 18 +- .../prototype/lastIndexOf/15.4.4.15-2-14.js | 5 +- .../prototype/lastIndexOf/15.4.4.15-2-17.js | 12 +- .../prototype/lastIndexOf/15.4.4.15-2-18.js | 4 +- .../prototype/lastIndexOf/15.4.4.15-2-19.js | 10 +- .../prototype/lastIndexOf/15.4.4.15-2-2.js | 4 +- .../prototype/lastIndexOf/15.4.4.15-2-3.js | 14 +- .../prototype/lastIndexOf/15.4.4.15-2-4.js | 8 +- .../prototype/lastIndexOf/15.4.4.15-2-5.js | 30 +- .../prototype/lastIndexOf/15.4.4.15-2-6.js | 14 +- .../prototype/lastIndexOf/15.4.4.15-2-7.js | 17 +- .../prototype/lastIndexOf/15.4.4.15-2-8.js | 24 +- .../prototype/lastIndexOf/15.4.4.15-2-9.js | 34 +-- .../prototype/lastIndexOf/15.4.4.15-3-1.js | 6 +- .../prototype/lastIndexOf/15.4.4.15-3-10.js | 5 +- .../prototype/lastIndexOf/15.4.4.15-3-11.js | 6 +- .../prototype/lastIndexOf/15.4.4.15-3-12.js | 6 +- .../prototype/lastIndexOf/15.4.4.15-3-13.js | 6 +- .../prototype/lastIndexOf/15.4.4.15-3-14.js | 6 +- .../prototype/lastIndexOf/15.4.4.15-3-15.js | 6 +- .../prototype/lastIndexOf/15.4.4.15-3-16.js | 6 +- .../prototype/lastIndexOf/15.4.4.15-3-17.js | 6 +- .../prototype/lastIndexOf/15.4.4.15-3-18.js | 7 +- .../prototype/lastIndexOf/15.4.4.15-3-19.js | 30 +- .../prototype/lastIndexOf/15.4.4.15-3-2.js | 6 +- .../prototype/lastIndexOf/15.4.4.15-3-20.js | 20 +- .../prototype/lastIndexOf/15.4.4.15-3-21.js | 32 +-- .../prototype/lastIndexOf/15.4.4.15-3-22.js | 32 +-- .../prototype/lastIndexOf/15.4.4.15-3-23.js | 38 +-- .../prototype/lastIndexOf/15.4.4.15-3-24.js | 6 +- .../prototype/lastIndexOf/15.4.4.15-3-25.js | 6 +- .../prototype/lastIndexOf/15.4.4.15-3-28.js | 14 +- .../prototype/lastIndexOf/15.4.4.15-3-3.js | 5 +- .../prototype/lastIndexOf/15.4.4.15-3-4.js | 5 +- .../prototype/lastIndexOf/15.4.4.15-3-5.js | 5 +- .../prototype/lastIndexOf/15.4.4.15-3-6.js | 6 +- .../prototype/lastIndexOf/15.4.4.15-3-7.js | 6 +- .../prototype/lastIndexOf/15.4.4.15-3-9.js | 5 +- .../prototype/lastIndexOf/15.4.4.15-4-1.js | 2 +- .../prototype/lastIndexOf/15.4.4.15-4-10.js | 8 +- .../prototype/lastIndexOf/15.4.4.15-4-11.js | 8 +- .../prototype/lastIndexOf/15.4.4.15-4-2.js | 4 +- .../prototype/lastIndexOf/15.4.4.15-4-3.js | 4 +- .../prototype/lastIndexOf/15.4.4.15-4-4.js | 13 +- .../prototype/lastIndexOf/15.4.4.15-4-5.js | 4 +- .../prototype/lastIndexOf/15.4.4.15-4-6.js | 8 +- .../prototype/lastIndexOf/15.4.4.15-4-7.js | 33 ++- .../prototype/lastIndexOf/15.4.4.15-4-8.js | 30 +- .../prototype/lastIndexOf/15.4.4.15-4-9.js | 8 +- .../prototype/lastIndexOf/15.4.4.15-5-1.js | 6 +- .../prototype/lastIndexOf/15.4.4.15-5-10.js | 2 +- .../prototype/lastIndexOf/15.4.4.15-5-11.js | 2 +- .../prototype/lastIndexOf/15.4.4.15-5-12.js | 4 +- .../prototype/lastIndexOf/15.4.4.15-5-16.js | 4 +- .../prototype/lastIndexOf/15.4.4.15-5-18.js | 2 +- .../prototype/lastIndexOf/15.4.4.15-5-19.js | 2 +- .../prototype/lastIndexOf/15.4.4.15-5-2.js | 8 +- .../prototype/lastIndexOf/15.4.4.15-5-20.js | 2 +- .../prototype/lastIndexOf/15.4.4.15-5-21.js | 22 +- .../prototype/lastIndexOf/15.4.4.15-5-22.js | 12 +- .../prototype/lastIndexOf/15.4.4.15-5-23.js | 24 +- .../prototype/lastIndexOf/15.4.4.15-5-24.js | 26 +- .../prototype/lastIndexOf/15.4.4.15-5-25.js | 30 +- .../prototype/lastIndexOf/15.4.4.15-5-26.js | 40 +-- .../prototype/lastIndexOf/15.4.4.15-5-27.js | 48 ++-- .../prototype/lastIndexOf/15.4.4.15-5-28.js | 16 +- .../prototype/lastIndexOf/15.4.4.15-5-29.js | 30 +- .../prototype/lastIndexOf/15.4.4.15-5-3.js | 6 +- .../prototype/lastIndexOf/15.4.4.15-5-30.js | 38 +-- .../prototype/lastIndexOf/15.4.4.15-5-31.js | 2 +- .../prototype/lastIndexOf/15.4.4.15-5-32.js | 2 +- .../prototype/lastIndexOf/15.4.4.15-5-4.js | 6 +- .../prototype/lastIndexOf/15.4.4.15-5-5.js | 6 +- .../prototype/lastIndexOf/15.4.4.15-5-6.js | 4 +- .../prototype/lastIndexOf/15.4.4.15-6-1.js | 6 +- .../prototype/lastIndexOf/15.4.4.15-7-1.js | 8 +- .../prototype/lastIndexOf/15.4.4.15-8-1.js | 10 +- .../prototype/lastIndexOf/15.4.4.15-8-10.js | 8 +- .../prototype/lastIndexOf/15.4.4.15-8-11.js | 16 +- .../prototype/lastIndexOf/15.4.4.15-8-2.js | 14 +- .../prototype/lastIndexOf/15.4.4.15-8-3.js | 10 +- .../prototype/lastIndexOf/15.4.4.15-8-4.js | 12 +- .../prototype/lastIndexOf/15.4.4.15-8-5.js | 20 +- .../prototype/lastIndexOf/15.4.4.15-8-6.js | 10 +- .../prototype/lastIndexOf/15.4.4.15-8-7.js | 4 +- .../prototype/lastIndexOf/15.4.4.15-8-8.js | 4 +- .../prototype/lastIndexOf/15.4.4.15-8-9.js | 18 +- .../prototype/lastIndexOf/15.4.4.15-8-a-1.js | 16 +- .../prototype/lastIndexOf/15.4.4.15-8-a-10.js | 26 +- .../prototype/lastIndexOf/15.4.4.15-8-a-11.js | 30 +- .../prototype/lastIndexOf/15.4.4.15-8-a-12.js | 28 +- .../prototype/lastIndexOf/15.4.4.15-8-a-13.js | 21 +- .../prototype/lastIndexOf/15.4.4.15-8-a-14.js | 18 +- .../prototype/lastIndexOf/15.4.4.15-8-a-15.js | 23 +- .../prototype/lastIndexOf/15.4.4.15-8-a-16.js | 18 +- .../prototype/lastIndexOf/15.4.4.15-8-a-17.js | 16 +- .../prototype/lastIndexOf/15.4.4.15-8-a-18.js | 28 +- .../prototype/lastIndexOf/15.4.4.15-8-a-19.js | 28 +- .../prototype/lastIndexOf/15.4.4.15-8-a-2.js | 18 +- .../prototype/lastIndexOf/15.4.4.15-8-a-3.js | 18 +- .../prototype/lastIndexOf/15.4.4.15-8-a-4.js | 18 +- .../prototype/lastIndexOf/15.4.4.15-8-a-5.js | 17 +- .../prototype/lastIndexOf/15.4.4.15-8-a-6.js | 18 +- .../prototype/lastIndexOf/15.4.4.15-8-a-7.js | 28 +- .../prototype/lastIndexOf/15.4.4.15-8-a-8.js | 26 +- .../prototype/lastIndexOf/15.4.4.15-8-a-9.js | 28 +- .../lastIndexOf/15.4.4.15-8-b-i-1.js | 7 +- .../lastIndexOf/15.4.4.15-8-b-i-10.js | 40 +-- .../lastIndexOf/15.4.4.15-8-b-i-11.js | 16 +- .../lastIndexOf/15.4.4.15-8-b-i-12.js | 18 +- .../lastIndexOf/15.4.4.15-8-b-i-13.js | 26 +- .../lastIndexOf/15.4.4.15-8-b-i-14.js | 28 +- .../lastIndexOf/15.4.4.15-8-b-i-15.js | 36 +-- .../lastIndexOf/15.4.4.15-8-b-i-16.js | 48 ++-- .../lastIndexOf/15.4.4.15-8-b-i-17.js | 10 +- .../lastIndexOf/15.4.4.15-8-b-i-18.js | 12 +- .../lastIndexOf/15.4.4.15-8-b-i-19.js | 24 +- .../lastIndexOf/15.4.4.15-8-b-i-20.js | 22 +- .../lastIndexOf/15.4.4.15-8-b-i-21.js | 8 +- .../lastIndexOf/15.4.4.15-8-b-i-22.js | 12 +- .../lastIndexOf/15.4.4.15-8-b-i-25.js | 8 +- .../lastIndexOf/15.4.4.15-8-b-i-26.js | 10 +- .../lastIndexOf/15.4.4.15-8-b-i-27.js | 2 +- .../lastIndexOf/15.4.4.15-8-b-i-28.js | 38 +-- .../lastIndexOf/15.4.4.15-8-b-i-29.js | 40 +-- .../lastIndexOf/15.4.4.15-8-b-i-3.js | 2 +- .../lastIndexOf/15.4.4.15-8-b-i-30.js | 32 +-- .../lastIndexOf/15.4.4.15-8-b-i-31.js | 34 +-- .../lastIndexOf/15.4.4.15-8-b-i-4.js | 8 +- .../lastIndexOf/15.4.4.15-8-b-i-5.js | 12 +- .../lastIndexOf/15.4.4.15-8-b-i-6.js | 18 +- .../lastIndexOf/15.4.4.15-8-b-i-7.js | 6 +- .../lastIndexOf/15.4.4.15-8-b-i-8.js | 18 +- .../lastIndexOf/15.4.4.15-8-b-i-9.js | 38 +-- .../lastIndexOf/15.4.4.15-8-b-ii-1.js | 4 +- .../lastIndexOf/15.4.4.15-8-b-ii-11.js | 6 +- .../lastIndexOf/15.4.4.15-8-b-iii-2.js | 36 +-- .../prototype/lastIndexOf/15.4.4.15-9-1.js | 14 +- .../prototype/lastIndexOf/15.4.4.15-9-2.js | 15 +- .../Array/prototype/map/15.4.4.19-1-1.js | 2 +- .../Array/prototype/map/15.4.4.19-1-10.js | 12 +- .../Array/prototype/map/15.4.4.19-1-11.js | 14 +- .../Array/prototype/map/15.4.4.19-1-12.js | 14 +- .../Array/prototype/map/15.4.4.19-1-13.js | 12 +- .../Array/prototype/map/15.4.4.19-1-14.js | 14 +- .../Array/prototype/map/15.4.4.19-1-15.js | 14 +- .../Array/prototype/map/15.4.4.19-1-2.js | 2 +- .../Array/prototype/map/15.4.4.19-1-3.js | 12 +- .../Array/prototype/map/15.4.4.19-1-4.js | 16 +- .../Array/prototype/map/15.4.4.19-1-5.js | 12 +- .../Array/prototype/map/15.4.4.19-1-6.js | 16 +- .../Array/prototype/map/15.4.4.19-1-7.js | 8 +- .../Array/prototype/map/15.4.4.19-1-8.js | 10 +- .../Array/prototype/map/15.4.4.19-1-9.js | 18 +- .../Array/prototype/map/15.4.4.19-2-1.js | 20 +- .../Array/prototype/map/15.4.4.19-2-10.js | 34 +-- .../Array/prototype/map/15.4.4.19-2-11.js | 24 +- .../Array/prototype/map/15.4.4.19-2-12.js | 33 ++- .../Array/prototype/map/15.4.4.19-2-13.js | 28 +- .../Array/prototype/map/15.4.4.19-2-14.js | 13 +- .../Array/prototype/map/15.4.4.19-2-17.js | 14 +- .../Array/prototype/map/15.4.4.19-2-18.js | 12 +- .../Array/prototype/map/15.4.4.19-2-19.js | 20 +- .../Array/prototype/map/15.4.4.19-2-2.js | 8 +- .../Array/prototype/map/15.4.4.19-2-3.js | 26 +- .../Array/prototype/map/15.4.4.19-2-4.js | 14 +- .../Array/prototype/map/15.4.4.19-2-5.js | 52 ++-- .../Array/prototype/map/15.4.4.19-2-6.js | 24 +- .../Array/prototype/map/15.4.4.19-2-7.js | 28 +- .../Array/prototype/map/15.4.4.19-2-8.js | 36 +-- .../Array/prototype/map/15.4.4.19-2-9.js | 46 +-- .../Array/prototype/map/15.4.4.19-3-1.js | 12 +- .../Array/prototype/map/15.4.4.19-3-10.js | 13 +- .../Array/prototype/map/15.4.4.19-3-11.js | 15 +- .../Array/prototype/map/15.4.4.19-3-12.js | 15 +- .../Array/prototype/map/15.4.4.19-3-13.js | 15 +- .../Array/prototype/map/15.4.4.19-3-14.js | 13 +- .../Array/prototype/map/15.4.4.19-3-15.js | 15 +- .../Array/prototype/map/15.4.4.19-3-16.js | 15 +- .../Array/prototype/map/15.4.4.19-3-17.js | 15 +- .../Array/prototype/map/15.4.4.19-3-18.js | 12 +- .../Array/prototype/map/15.4.4.19-3-19.js | 26 +- .../Array/prototype/map/15.4.4.19-3-2.js | 13 +- .../Array/prototype/map/15.4.4.19-3-20.js | 26 +- .../Array/prototype/map/15.4.4.19-3-21.js | 40 +-- .../Array/prototype/map/15.4.4.19-3-22.js | 32 +-- .../Array/prototype/map/15.4.4.19-3-23.js | 48 ++-- .../Array/prototype/map/15.4.4.19-3-24.js | 18 +- .../Array/prototype/map/15.4.4.19-3-25.js | 18 +- .../Array/prototype/map/15.4.4.19-3-28.js | 16 +- .../Array/prototype/map/15.4.4.19-3-29.js | 18 +- .../Array/prototype/map/15.4.4.19-3-3.js | 13 +- .../Array/prototype/map/15.4.4.19-3-4.js | 13 +- .../Array/prototype/map/15.4.4.19-3-5.js | 13 +- .../Array/prototype/map/15.4.4.19-3-6.js | 15 +- .../Array/prototype/map/15.4.4.19-3-7.js | 15 +- .../Array/prototype/map/15.4.4.19-3-8.js | 13 +- .../Array/prototype/map/15.4.4.19-3-9.js | 13 +- .../Array/prototype/map/15.4.4.19-4-1.js | 4 +- .../Array/prototype/map/15.4.4.19-4-10.js | 19 +- .../Array/prototype/map/15.4.4.19-4-11.js | 27 +- .../Array/prototype/map/15.4.4.19-4-12.js | 8 +- .../Array/prototype/map/15.4.4.19-4-15.js | 38 +-- .../Array/prototype/map/15.4.4.19-4-2.js | 4 +- .../Array/prototype/map/15.4.4.19-4-3.js | 4 +- .../Array/prototype/map/15.4.4.19-4-4.js | 4 +- .../Array/prototype/map/15.4.4.19-4-5.js | 4 +- .../Array/prototype/map/15.4.4.19-4-6.js | 4 +- .../Array/prototype/map/15.4.4.19-4-7.js | 4 +- .../Array/prototype/map/15.4.4.19-4-8.js | 23 +- .../Array/prototype/map/15.4.4.19-4-9.js | 31 +- .../Array/prototype/map/15.4.4.19-5-1-s.js | 14 +- .../Array/prototype/map/15.4.4.19-5-1.js | 16 +- .../Array/prototype/map/15.4.4.19-5-10.js | 10 +- .../Array/prototype/map/15.4.4.19-5-11.js | 10 +- .../Array/prototype/map/15.4.4.19-5-12.js | 10 +- .../Array/prototype/map/15.4.4.19-5-13.js | 10 +- .../Array/prototype/map/15.4.4.19-5-14.js | 8 +- .../Array/prototype/map/15.4.4.19-5-15.js | 10 +- .../Array/prototype/map/15.4.4.19-5-16.js | 10 +- .../Array/prototype/map/15.4.4.19-5-17.js | 8 +- .../Array/prototype/map/15.4.4.19-5-18.js | 10 +- .../Array/prototype/map/15.4.4.19-5-19.js | 16 +- .../Array/prototype/map/15.4.4.19-5-2.js | 19 +- .../Array/prototype/map/15.4.4.19-5-21.js | 9 +- .../Array/prototype/map/15.4.4.19-5-22.js | 8 +- .../Array/prototype/map/15.4.4.19-5-23.js | 8 +- .../Array/prototype/map/15.4.4.19-5-24.js | 8 +- .../Array/prototype/map/15.4.4.19-5-3.js | 19 +- .../Array/prototype/map/15.4.4.19-5-4.js | 21 +- .../Array/prototype/map/15.4.4.19-5-5.js | 21 +- .../Array/prototype/map/15.4.4.19-5-6.js | 19 +- .../Array/prototype/map/15.4.4.19-5-7.js | 8 +- .../Array/prototype/map/15.4.4.19-5-9.js | 10 +- .../Array/prototype/map/15.4.4.19-6-1.js | 2 +- .../Array/prototype/map/15.4.4.19-6-2.js | 2 +- .../Array/prototype/map/15.4.4.19-8-1.js | 16 +- .../Array/prototype/map/15.4.4.19-8-2.js | 20 +- .../Array/prototype/map/15.4.4.19-8-3.js | 20 +- .../Array/prototype/map/15.4.4.19-8-4.js | 19 +- .../Array/prototype/map/15.4.4.19-8-5.js | 23 +- .../Array/prototype/map/15.4.4.19-8-6.js | 24 +- .../Array/prototype/map/15.4.4.19-8-7.js | 20 +- .../Array/prototype/map/15.4.4.19-8-8.js | 19 +- .../Array/prototype/map/15.4.4.19-8-9.js | 29 +- .../Array/prototype/map/15.4.4.19-8-b-1.js | 19 +- .../Array/prototype/map/15.4.4.19-8-b-10.js | 29 +- .../Array/prototype/map/15.4.4.19-8-b-11.js | 26 +- .../Array/prototype/map/15.4.4.19-8-b-12.js | 39 +-- .../Array/prototype/map/15.4.4.19-8-b-13.js | 34 +-- .../Array/prototype/map/15.4.4.19-8-b-14.js | 24 +- .../Array/prototype/map/15.4.4.19-8-b-15.js | 44 +-- .../Array/prototype/map/15.4.4.19-8-b-16.js | 44 +-- .../Array/prototype/map/15.4.4.19-8-b-2.js | 32 +-- .../Array/prototype/map/15.4.4.19-8-b-3.js | 35 +-- .../Array/prototype/map/15.4.4.19-8-b-4.js | 44 +-- .../Array/prototype/map/15.4.4.19-8-b-5.js | 42 +-- .../Array/prototype/map/15.4.4.19-8-b-6.js | 44 +-- .../Array/prototype/map/15.4.4.19-8-b-7.js | 42 +-- .../Array/prototype/map/15.4.4.19-8-b-8.js | 46 +-- .../Array/prototype/map/15.4.4.19-8-b-9.js | 44 +-- .../Array/prototype/map/15.4.4.19-8-c-i-1.js | 21 +- .../Array/prototype/map/15.4.4.19-8-c-i-10.js | 30 +- .../Array/prototype/map/15.4.4.19-8-c-i-11.js | 39 +-- .../Array/prototype/map/15.4.4.19-8-c-i-12.js | 32 +-- .../Array/prototype/map/15.4.4.19-8-c-i-13.js | 64 +++-- .../Array/prototype/map/15.4.4.19-8-c-i-14.js | 52 ++-- .../Array/prototype/map/15.4.4.19-8-c-i-15.js | 38 +-- .../Array/prototype/map/15.4.4.19-8-c-i-16.js | 28 +- .../Array/prototype/map/15.4.4.19-8-c-i-17.js | 26 +- .../Array/prototype/map/15.4.4.19-8-c-i-18.js | 24 +- .../Array/prototype/map/15.4.4.19-8-c-i-19.js | 36 +-- .../Array/prototype/map/15.4.4.19-8-c-i-2.js | 18 +- .../Array/prototype/map/15.4.4.19-8-c-i-20.js | 56 ++-- .../Array/prototype/map/15.4.4.19-8-c-i-21.js | 32 ++- .../Array/prototype/map/15.4.4.19-8-c-i-22.js | 22 +- .../Array/prototype/map/15.4.4.19-8-c-i-25.js | 22 +- .../Array/prototype/map/15.4.4.19-8-c-i-26.js | 26 +- .../Array/prototype/map/15.4.4.19-8-c-i-27.js | 30 +- .../Array/prototype/map/15.4.4.19-8-c-i-28.js | 58 ++-- .../Array/prototype/map/15.4.4.19-8-c-i-29.js | 60 ++-- .../Array/prototype/map/15.4.4.19-8-c-i-3.js | 29 +- .../Array/prototype/map/15.4.4.19-8-c-i-30.js | 47 +-- .../Array/prototype/map/15.4.4.19-8-c-i-31.js | 46 +-- .../Array/prototype/map/15.4.4.19-8-c-i-4.js | 18 +- .../Array/prototype/map/15.4.4.19-8-c-i-5.js | 58 ++-- .../Array/prototype/map/15.4.4.19-8-c-i-6.js | 28 +- .../Array/prototype/map/15.4.4.19-8-c-i-7.js | 27 +- .../Array/prototype/map/15.4.4.19-8-c-i-8.js | 16 +- .../Array/prototype/map/15.4.4.19-8-c-i-9.js | 32 ++- .../Array/prototype/map/15.4.4.19-8-c-ii-1.js | 23 +- .../prototype/map/15.4.4.19-8-c-ii-10.js | 8 +- .../prototype/map/15.4.4.19-8-c-ii-11.js | 8 +- .../prototype/map/15.4.4.19-8-c-ii-12.js | 8 +- .../prototype/map/15.4.4.19-8-c-ii-13.js | 8 +- .../prototype/map/15.4.4.19-8-c-ii-16.js | 13 +- .../prototype/map/15.4.4.19-8-c-ii-17.js | 13 +- .../prototype/map/15.4.4.19-8-c-ii-18.js | 13 +- .../prototype/map/15.4.4.19-8-c-ii-19.js | 26 +- .../Array/prototype/map/15.4.4.19-8-c-ii-2.js | 21 +- .../prototype/map/15.4.4.19-8-c-ii-20.js | 18 +- .../prototype/map/15.4.4.19-8-c-ii-21.js | 26 +- .../prototype/map/15.4.4.19-8-c-ii-22.js | 26 +- .../prototype/map/15.4.4.19-8-c-ii-23.js | 13 +- .../Array/prototype/map/15.4.4.19-8-c-ii-4.js | 27 +- .../Array/prototype/map/15.4.4.19-8-c-ii-5.js | 32 +-- .../Array/prototype/map/15.4.4.19-8-c-ii-6.js | 21 +- .../Array/prototype/map/15.4.4.19-8-c-ii-7.js | 27 +- .../Array/prototype/map/15.4.4.19-8-c-ii-8.js | 20 +- .../Array/prototype/map/15.4.4.19-8-c-ii-9.js | 8 +- .../prototype/map/15.4.4.19-8-c-iii-1.js | 16 +- .../prototype/map/15.4.4.19-8-c-iii-2.js | 14 +- .../prototype/map/15.4.4.19-8-c-iii-3.js | 18 +- .../prototype/map/15.4.4.19-8-c-iii-4.js | 31 +- .../prototype/map/15.4.4.19-8-c-iii-5.js | 18 +- .../Array/prototype/map/15.4.4.19-9-1.js | 12 +- .../Array/prototype/map/15.4.4.19-9-10.js | 28 +- .../Array/prototype/map/15.4.4.19-9-11.js | 32 +-- .../Array/prototype/map/15.4.4.19-9-12.js | 38 +-- .../Array/prototype/map/15.4.4.19-9-13.js | 14 +- .../Array/prototype/map/15.4.4.19-9-2.js | 12 +- .../Array/prototype/map/15.4.4.19-9-3.js | 13 +- .../Array/prototype/map/15.4.4.19-9-4.js | 19 +- .../Array/prototype/map/15.4.4.19-9-5.js | 14 +- .../Array/prototype/map/15.4.4.19-9-6.js | 16 +- .../Array/prototype/map/15.4.4.19-9-7.js | 20 +- .../Array/prototype/map/15.4.4.19-9-8.js | 20 +- .../Array/prototype/map/15.4.4.19-9-9.js | 20 +- .../prototype/map/create-ctor-non-object.js | 4 +- .../prototype/map/create-ctor-poisoned.js | 4 +- .../map/create-non-array-invalid-len.js | 4 +- .../Array/prototype/map/create-non-array.js | 4 +- .../prototype/map/create-revoked-proxy.js | 4 +- .../prototype/map/create-species-abrupt.js | 4 +- .../prototype/map/create-species-non-ctor.js | 4 +- .../prototype/map/create-species-poisoned.js | 4 +- .../map/create-species-undef-invalid-len.js | 4 +- .../Array/prototype/pop/S15.4.4.6_A1.1_T1.js | 2 +- .../Array/prototype/pop/S15.4.4.6_A1.2_T1.js | 2 +- .../Array/prototype/pop/S15.4.4.6_A2_T1.js | 18 +- .../Array/prototype/pop/S15.4.4.6_A2_T2.js | 2 +- .../Array/prototype/pop/S15.4.4.6_A2_T4.js | 68 ++++- .../Array/prototype/pop/S15.4.4.6_A3_T1.js | 4 +- .../Array/prototype/pop/S15.4.4.6_A3_T2.js | 4 +- .../Array/prototype/pop/S15.4.4.6_A3_T3.js | 2 +- .../Array/prototype/pop/S15.4.4.6_A4_T1.js | 4 +- .../Array/prototype/pop/S15.4.4.6_A4_T2.js | 7 +- .../prototype/pop/clamps-to-integer-limit.js | 14 +- .../pop/length-near-integer-limit.js | 14 +- .../Array/prototype/push/S15.4.4.7_A2_T1.js | 26 +- .../Array/prototype/push/S15.4.4.7_A2_T2.js | 4 +- .../Array/prototype/push/S15.4.4.7_A2_T3.js | 68 ++++- .../Array/prototype/push/S15.4.4.7_A3.js | 6 +- .../Array/prototype/push/S15.4.4.7_A4_T1.js | 12 +- .../Array/prototype/push/S15.4.4.7_A4_T2.js | 6 +- .../Array/prototype/push/S15.4.4.7_A4_T3.js | 12 +- .../Array/prototype/push/S15.4.4.7_A5_T1.js | 4 +- .../prototype/push/clamps-to-integer-limit.js | 14 +- .../push/length-near-integer-limit.js | 12 +- .../push/throws-if-integer-limit-exceeded.js | 6 +- .../Array/prototype/reduce/15.4.4.21-1-1.js | 2 +- .../Array/prototype/reduce/15.4.4.21-1-10.js | 10 +- .../Array/prototype/reduce/15.4.4.21-1-11.js | 12 +- .../Array/prototype/reduce/15.4.4.21-1-12.js | 12 +- .../Array/prototype/reduce/15.4.4.21-1-13.js | 10 +- .../Array/prototype/reduce/15.4.4.21-1-14.js | 12 +- .../Array/prototype/reduce/15.4.4.21-1-15.js | 12 +- .../Array/prototype/reduce/15.4.4.21-1-2.js | 2 +- .../Array/prototype/reduce/15.4.4.21-1-3.js | 10 +- .../Array/prototype/reduce/15.4.4.21-1-4.js | 14 +- .../Array/prototype/reduce/15.4.4.21-1-5.js | 10 +- .../Array/prototype/reduce/15.4.4.21-1-6.js | 14 +- .../Array/prototype/reduce/15.4.4.21-1-7.js | 6 +- .../Array/prototype/reduce/15.4.4.21-1-8.js | 8 +- .../Array/prototype/reduce/15.4.4.21-1-9.js | 16 +- .../Array/prototype/reduce/15.4.4.21-10-1.js | 12 +- .../Array/prototype/reduce/15.4.4.21-10-2.js | 10 +- .../Array/prototype/reduce/15.4.4.21-10-3.js | 9 +- .../Array/prototype/reduce/15.4.4.21-10-4.js | 11 +- .../Array/prototype/reduce/15.4.4.21-10-5.js | 12 +- .../Array/prototype/reduce/15.4.4.21-10-6.js | 13 +- .../Array/prototype/reduce/15.4.4.21-10-7.js | 13 +- .../Array/prototype/reduce/15.4.4.21-10-8.js | 21 +- .../Array/prototype/reduce/15.4.4.21-2-1.js | 18 +- .../Array/prototype/reduce/15.4.4.21-2-10.js | 32 +-- .../Array/prototype/reduce/15.4.4.21-2-11.js | 25 +- .../Array/prototype/reduce/15.4.4.21-2-12.js | 34 ++- .../Array/prototype/reduce/15.4.4.21-2-13.js | 28 +- .../Array/prototype/reduce/15.4.4.21-2-14.js | 13 +- .../Array/prototype/reduce/15.4.4.21-2-17.js | 14 +- .../Array/prototype/reduce/15.4.4.21-2-18.js | 8 +- .../Array/prototype/reduce/15.4.4.21-2-19.js | 18 +- .../Array/prototype/reduce/15.4.4.21-2-2.js | 6 +- .../Array/prototype/reduce/15.4.4.21-2-3.js | 24 +- .../Array/prototype/reduce/15.4.4.21-2-4.js | 12 +- .../Array/prototype/reduce/15.4.4.21-2-5.js | 40 +-- .../Array/prototype/reduce/15.4.4.21-2-6.js | 22 +- .../Array/prototype/reduce/15.4.4.21-2-7.js | 26 +- .../Array/prototype/reduce/15.4.4.21-2-8.js | 34 +-- .../Array/prototype/reduce/15.4.4.21-2-9.js | 56 ++-- .../Array/prototype/reduce/15.4.4.21-3-1.js | 16 +- .../Array/prototype/reduce/15.4.4.21-3-10.js | 15 +- .../Array/prototype/reduce/15.4.4.21-3-11.js | 12 +- .../Array/prototype/reduce/15.4.4.21-3-12.js | 12 +- .../Array/prototype/reduce/15.4.4.21-3-13.js | 12 +- .../Array/prototype/reduce/15.4.4.21-3-14.js | 15 +- .../Array/prototype/reduce/15.4.4.21-3-15.js | 12 +- .../Array/prototype/reduce/15.4.4.21-3-16.js | 12 +- .../Array/prototype/reduce/15.4.4.21-3-17.js | 12 +- .../Array/prototype/reduce/15.4.4.21-3-18.js | 16 +- .../Array/prototype/reduce/15.4.4.21-3-19.js | 24 +- .../Array/prototype/reduce/15.4.4.21-3-2.js | 12 +- .../Array/prototype/reduce/15.4.4.21-3-20.js | 24 +- .../Array/prototype/reduce/15.4.4.21-3-21.js | 38 +-- .../Array/prototype/reduce/15.4.4.21-3-22.js | 44 +-- .../Array/prototype/reduce/15.4.4.21-3-23.js | 58 ++-- .../Array/prototype/reduce/15.4.4.21-3-24.js | 16 +- .../Array/prototype/reduce/15.4.4.21-3-25.js | 16 +- .../Array/prototype/reduce/15.4.4.21-3-3.js | 16 +- .../Array/prototype/reduce/15.4.4.21-3-4.js | 15 +- .../Array/prototype/reduce/15.4.4.21-3-5.js | 15 +- .../Array/prototype/reduce/15.4.4.21-3-6.js | 12 +- .../Array/prototype/reduce/15.4.4.21-3-7.js | 12 +- .../Array/prototype/reduce/15.4.4.21-3-9.js | 13 +- .../Array/prototype/reduce/15.4.4.21-4-1.js | 4 +- .../Array/prototype/reduce/15.4.4.21-4-10.js | 19 +- .../Array/prototype/reduce/15.4.4.21-4-11.js | 27 +- .../Array/prototype/reduce/15.4.4.21-4-12.js | 11 +- .../Array/prototype/reduce/15.4.4.21-4-15.js | 38 +-- .../Array/prototype/reduce/15.4.4.21-4-2.js | 4 +- .../Array/prototype/reduce/15.4.4.21-4-3.js | 4 +- .../Array/prototype/reduce/15.4.4.21-4-4.js | 4 +- .../Array/prototype/reduce/15.4.4.21-4-5.js | 4 +- .../Array/prototype/reduce/15.4.4.21-4-6.js | 4 +- .../Array/prototype/reduce/15.4.4.21-4-7.js | 4 +- .../Array/prototype/reduce/15.4.4.21-4-8.js | 23 +- .../Array/prototype/reduce/15.4.4.21-4-9.js | 31 +- .../Array/prototype/reduce/15.4.4.21-5-1.js | 4 +- .../Array/prototype/reduce/15.4.4.21-5-10.js | 29 +- .../Array/prototype/reduce/15.4.4.21-5-11.js | 37 +-- .../Array/prototype/reduce/15.4.4.21-5-12.js | 25 +- .../Array/prototype/reduce/15.4.4.21-5-13.js | 33 ++- .../Array/prototype/reduce/15.4.4.21-5-2.js | 13 +- .../Array/prototype/reduce/15.4.4.21-5-3.js | 13 +- .../Array/prototype/reduce/15.4.4.21-5-4.js | 13 +- .../Array/prototype/reduce/15.4.4.21-5-5.js | 13 +- .../Array/prototype/reduce/15.4.4.21-5-6.js | 19 +- .../Array/prototype/reduce/15.4.4.21-5-7.js | 29 +- .../Array/prototype/reduce/15.4.4.21-5-8.js | 39 +-- .../Array/prototype/reduce/15.4.4.21-5-9.js | 9 +- .../Array/prototype/reduce/15.4.4.21-7-1.js | 4 +- .../Array/prototype/reduce/15.4.4.21-7-10.js | 4 +- .../Array/prototype/reduce/15.4.4.21-7-11.js | 4 +- .../Array/prototype/reduce/15.4.4.21-7-2.js | 13 +- .../Array/prototype/reduce/15.4.4.21-7-3.js | 13 +- .../Array/prototype/reduce/15.4.4.21-7-4.js | 13 +- .../Array/prototype/reduce/15.4.4.21-7-5.js | 13 +- .../Array/prototype/reduce/15.4.4.21-7-6.js | 19 +- .../Array/prototype/reduce/15.4.4.21-7-7.js | 29 +- .../Array/prototype/reduce/15.4.4.21-7-8.js | 39 +-- .../Array/prototype/reduce/15.4.4.21-7-9.js | 39 +-- .../Array/prototype/reduce/15.4.4.21-8-b-1.js | 22 +- .../Array/prototype/reduce/15.4.4.21-8-b-2.js | 26 +- .../Array/prototype/reduce/15.4.4.21-8-b-3.js | 62 ++-- .../prototype/reduce/15.4.4.21-8-b-ii-1.js | 18 +- .../prototype/reduce/15.4.4.21-8-b-ii-2.js | 21 +- .../prototype/reduce/15.4.4.21-8-b-iii-1-1.js | 22 +- .../reduce/15.4.4.21-8-b-iii-1-10.js | 28 +- .../reduce/15.4.4.21-8-b-iii-1-11.js | 51 ++-- .../reduce/15.4.4.21-8-b-iii-1-12.js | 30 +- .../reduce/15.4.4.21-8-b-iii-1-13.js | 65 +++-- .../reduce/15.4.4.21-8-b-iii-1-14.js | 41 +-- .../reduce/15.4.4.21-8-b-iii-1-15.js | 40 +-- .../reduce/15.4.4.21-8-b-iii-1-16.js | 29 +- .../reduce/15.4.4.21-8-b-iii-1-17.js | 29 +- .../reduce/15.4.4.21-8-b-iii-1-18.js | 25 +- .../reduce/15.4.4.21-8-b-iii-1-19.js | 31 +- .../prototype/reduce/15.4.4.21-8-b-iii-1-2.js | 17 +- .../reduce/15.4.4.21-8-b-iii-1-20.js | 27 +- .../reduce/15.4.4.21-8-b-iii-1-21.js | 36 +-- .../reduce/15.4.4.21-8-b-iii-1-22.js | 25 +- .../reduce/15.4.4.21-8-b-iii-1-25.js | 21 +- .../reduce/15.4.4.21-8-b-iii-1-26.js | 23 +- .../reduce/15.4.4.21-8-b-iii-1-27.js | 25 +- .../reduce/15.4.4.21-8-b-iii-1-28.js | 17 +- .../reduce/15.4.4.21-8-b-iii-1-29.js | 29 +- .../prototype/reduce/15.4.4.21-8-b-iii-1-3.js | 34 ++- .../reduce/15.4.4.21-8-b-iii-1-30.js | 61 ++-- .../reduce/15.4.4.21-8-b-iii-1-31.js | 63 ++-- .../reduce/15.4.4.21-8-b-iii-1-32.js | 37 +-- .../reduce/15.4.4.21-8-b-iii-1-33.js | 33 +-- .../prototype/reduce/15.4.4.21-8-b-iii-1-4.js | 17 +- .../prototype/reduce/15.4.4.21-8-b-iii-1-5.js | 57 ++-- .../prototype/reduce/15.4.4.21-8-b-iii-1-6.js | 27 +- .../prototype/reduce/15.4.4.21-8-b-iii-1-7.js | 30 +- .../prototype/reduce/15.4.4.21-8-b-iii-1-8.js | 21 +- .../prototype/reduce/15.4.4.21-8-b-iii-1-9.js | 33 ++- .../Array/prototype/reduce/15.4.4.21-8-c-1.js | 9 +- .../Array/prototype/reduce/15.4.4.21-8-c-2.js | 13 +- .../Array/prototype/reduce/15.4.4.21-8-c-3.js | 19 +- .../Array/prototype/reduce/15.4.4.21-8-c-4.js | 14 +- .../Array/prototype/reduce/15.4.4.21-8-c-5.js | 20 +- .../Array/prototype/reduce/15.4.4.21-8-c-6.js | 28 +- .../Array/prototype/reduce/15.4.4.21-8-c-7.js | 16 +- .../Array/prototype/reduce/15.4.4.21-8-c-8.js | 24 +- .../Array/prototype/reduce/15.4.4.21-9-1.js | 12 +- .../Array/prototype/reduce/15.4.4.21-9-10.js | 12 +- .../Array/prototype/reduce/15.4.4.21-9-2.js | 14 +- .../Array/prototype/reduce/15.4.4.21-9-3.js | 14 +- .../Array/prototype/reduce/15.4.4.21-9-4.js | 12 +- .../Array/prototype/reduce/15.4.4.21-9-5.js | 15 +- .../Array/prototype/reduce/15.4.4.21-9-6.js | 20 +- .../Array/prototype/reduce/15.4.4.21-9-7.js | 12 +- .../Array/prototype/reduce/15.4.4.21-9-8.js | 31 +- .../Array/prototype/reduce/15.4.4.21-9-9.js | 29 +- .../Array/prototype/reduce/15.4.4.21-9-b-1.js | 9 +- .../prototype/reduce/15.4.4.21-9-b-10.js | 39 +-- .../prototype/reduce/15.4.4.21-9-b-11.js | 36 +-- .../prototype/reduce/15.4.4.21-9-b-12.js | 37 +-- .../prototype/reduce/15.4.4.21-9-b-13.js | 32 +-- .../prototype/reduce/15.4.4.21-9-b-14.js | 34 +-- .../prototype/reduce/15.4.4.21-9-b-15.js | 42 +-- .../prototype/reduce/15.4.4.21-9-b-16.js | 52 ++-- .../prototype/reduce/15.4.4.21-9-b-17.js | 42 +-- .../prototype/reduce/15.4.4.21-9-b-18.js | 40 +-- .../prototype/reduce/15.4.4.21-9-b-19.js | 42 +-- .../Array/prototype/reduce/15.4.4.21-9-b-2.js | 30 +- .../prototype/reduce/15.4.4.21-9-b-20.js | 40 +-- .../prototype/reduce/15.4.4.21-9-b-21.js | 59 ++-- .../prototype/reduce/15.4.4.21-9-b-22.js | 56 ++-- .../prototype/reduce/15.4.4.21-9-b-23.js | 39 +-- .../prototype/reduce/15.4.4.21-9-b-24.js | 36 +-- .../prototype/reduce/15.4.4.21-9-b-25.js | 37 +-- .../prototype/reduce/15.4.4.21-9-b-26.js | 32 +-- .../prototype/reduce/15.4.4.21-9-b-27.js | 34 +-- .../prototype/reduce/15.4.4.21-9-b-28.js | 42 +-- .../prototype/reduce/15.4.4.21-9-b-29.js | 52 ++-- .../Array/prototype/reduce/15.4.4.21-9-b-3.js | 37 +-- .../Array/prototype/reduce/15.4.4.21-9-b-4.js | 42 +-- .../Array/prototype/reduce/15.4.4.21-9-b-5.js | 40 +-- .../Array/prototype/reduce/15.4.4.21-9-b-6.js | 42 +-- .../Array/prototype/reduce/15.4.4.21-9-b-7.js | 40 +-- .../Array/prototype/reduce/15.4.4.21-9-b-8.js | 59 ++-- .../Array/prototype/reduce/15.4.4.21-9-b-9.js | 34 +-- .../Array/prototype/reduce/15.4.4.21-9-c-1.js | 17 +- .../prototype/reduce/15.4.4.21-9-c-i-1.js | 24 +- .../prototype/reduce/15.4.4.21-9-c-i-10.js | 31 +- .../prototype/reduce/15.4.4.21-9-c-i-11.js | 53 ++-- .../prototype/reduce/15.4.4.21-9-c-i-12.js | 33 +-- .../prototype/reduce/15.4.4.21-9-c-i-13.js | 66 +++-- .../prototype/reduce/15.4.4.21-9-c-i-14.js | 43 +-- .../prototype/reduce/15.4.4.21-9-c-i-15.js | 52 ++-- .../prototype/reduce/15.4.4.21-9-c-i-16.js | 31 +- .../prototype/reduce/15.4.4.21-9-c-i-17.js | 31 +- .../prototype/reduce/15.4.4.21-9-c-i-18.js | 27 +- .../prototype/reduce/15.4.4.21-9-c-i-19.js | 51 ++-- .../prototype/reduce/15.4.4.21-9-c-i-2.js | 19 +- .../prototype/reduce/15.4.4.21-9-c-i-20.js | 39 +-- .../prototype/reduce/15.4.4.21-9-c-i-21.js | 38 +-- .../prototype/reduce/15.4.4.21-9-c-i-22.js | 27 +- .../prototype/reduce/15.4.4.21-9-c-i-25.js | 23 +- .../prototype/reduce/15.4.4.21-9-c-i-26.js | 23 +- .../prototype/reduce/15.4.4.21-9-c-i-27.js | 23 +- .../prototype/reduce/15.4.4.21-9-c-i-28.js | 19 +- .../prototype/reduce/15.4.4.21-9-c-i-29.js | 31 +- .../prototype/reduce/15.4.4.21-9-c-i-3.js | 36 ++- .../prototype/reduce/15.4.4.21-9-c-i-30.js | 63 ++-- .../prototype/reduce/15.4.4.21-9-c-i-31.js | 66 +++-- .../prototype/reduce/15.4.4.21-9-c-i-32.js | 39 +-- .../prototype/reduce/15.4.4.21-9-c-i-33.js | 35 +-- .../prototype/reduce/15.4.4.21-9-c-i-4.js | 19 +- .../prototype/reduce/15.4.4.21-9-c-i-5.js | 49 ++-- .../prototype/reduce/15.4.4.21-9-c-i-6.js | 29 +- .../prototype/reduce/15.4.4.21-9-c-i-7.js | 32 ++- .../prototype/reduce/15.4.4.21-9-c-i-8.js | 23 +- .../prototype/reduce/15.4.4.21-9-c-i-9.js | 35 ++- .../prototype/reduce/15.4.4.21-9-c-ii-1.js | 16 +- .../prototype/reduce/15.4.4.21-9-c-ii-10.js | 11 +- .../prototype/reduce/15.4.4.21-9-c-ii-11.js | 11 +- .../prototype/reduce/15.4.4.21-9-c-ii-12.js | 11 +- .../prototype/reduce/15.4.4.21-9-c-ii-13.js | 11 +- .../prototype/reduce/15.4.4.21-9-c-ii-14.js | 11 +- .../prototype/reduce/15.4.4.21-9-c-ii-16.js | 33 ++- .../prototype/reduce/15.4.4.21-9-c-ii-17.js | 25 +- .../prototype/reduce/15.4.4.21-9-c-ii-18.js | 21 +- .../prototype/reduce/15.4.4.21-9-c-ii-19.js | 19 +- .../prototype/reduce/15.4.4.21-9-c-ii-2.js | 27 +- .../prototype/reduce/15.4.4.21-9-c-ii-20.js | 16 +- .../prototype/reduce/15.4.4.21-9-c-ii-21.js | 16 +- .../prototype/reduce/15.4.4.21-9-c-ii-22.js | 16 +- .../prototype/reduce/15.4.4.21-9-c-ii-23.js | 16 +- .../prototype/reduce/15.4.4.21-9-c-ii-24.js | 16 +- .../prototype/reduce/15.4.4.21-9-c-ii-25.js | 18 +- .../prototype/reduce/15.4.4.21-9-c-ii-26.js | 18 +- .../prototype/reduce/15.4.4.21-9-c-ii-27.js | 18 +- .../prototype/reduce/15.4.4.21-9-c-ii-28.js | 18 +- .../prototype/reduce/15.4.4.21-9-c-ii-29.js | 18 +- .../prototype/reduce/15.4.4.21-9-c-ii-3.js | 23 +- .../prototype/reduce/15.4.4.21-9-c-ii-30.js | 16 +- .../prototype/reduce/15.4.4.21-9-c-ii-31.js | 18 +- .../prototype/reduce/15.4.4.21-9-c-ii-32.js | 18 +- .../prototype/reduce/15.4.4.21-9-c-ii-33.js | 16 +- .../prototype/reduce/15.4.4.21-9-c-ii-34.js | 18 +- .../prototype/reduce/15.4.4.21-9-c-ii-35.js | 23 +- .../prototype/reduce/15.4.4.21-9-c-ii-37.js | 16 +- .../prototype/reduce/15.4.4.21-9-c-ii-4-s.js | 17 +- .../prototype/reduce/15.4.4.21-9-c-ii-4.js | 26 +- .../prototype/reduce/15.4.4.21-9-c-ii-5.js | 36 +-- .../prototype/reduce/15.4.4.21-9-c-ii-7.js | 27 +- .../prototype/reduce/15.4.4.21-9-c-ii-8.js | 27 +- .../prototype/reduce/15.4.4.21-9-c-ii-9.js | 11 +- .../prototype/reduceRight/15.4.4.22-1-1.js | 2 +- .../prototype/reduceRight/15.4.4.22-1-10.js | 14 +- .../prototype/reduceRight/15.4.4.22-1-11.js | 16 +- .../prototype/reduceRight/15.4.4.22-1-12.js | 16 +- .../prototype/reduceRight/15.4.4.22-1-13.js | 14 +- .../prototype/reduceRight/15.4.4.22-1-14.js | 16 +- .../prototype/reduceRight/15.4.4.22-1-15.js | 16 +- .../prototype/reduceRight/15.4.4.22-1-2.js | 2 +- .../prototype/reduceRight/15.4.4.22-1-3.js | 14 +- .../prototype/reduceRight/15.4.4.22-1-4.js | 18 +- .../prototype/reduceRight/15.4.4.22-1-5.js | 14 +- .../prototype/reduceRight/15.4.4.22-1-6.js | 18 +- .../prototype/reduceRight/15.4.4.22-1-7.js | 10 +- .../prototype/reduceRight/15.4.4.22-1-8.js | 12 +- .../prototype/reduceRight/15.4.4.22-1-9.js | 20 +- .../prototype/reduceRight/15.4.4.22-10-1.js | 12 +- .../prototype/reduceRight/15.4.4.22-10-2.js | 10 +- .../prototype/reduceRight/15.4.4.22-10-3.js | 9 +- .../prototype/reduceRight/15.4.4.22-10-4.js | 11 +- .../prototype/reduceRight/15.4.4.22-10-5.js | 12 +- .../prototype/reduceRight/15.4.4.22-10-6.js | 13 +- .../prototype/reduceRight/15.4.4.22-10-7.js | 13 +- .../prototype/reduceRight/15.4.4.22-10-8.js | 19 +- .../prototype/reduceRight/15.4.4.22-2-1.js | 22 +- .../prototype/reduceRight/15.4.4.22-2-10.js | 36 +-- .../prototype/reduceRight/15.4.4.22-2-11.js | 26 +- .../prototype/reduceRight/15.4.4.22-2-12.js | 35 +-- .../prototype/reduceRight/15.4.4.22-2-13.js | 30 +- .../prototype/reduceRight/15.4.4.22-2-14.js | 15 +- .../prototype/reduceRight/15.4.4.22-2-17.js | 20 +- .../prototype/reduceRight/15.4.4.22-2-18.js | 14 +- .../prototype/reduceRight/15.4.4.22-2-19.js | 22 +- .../prototype/reduceRight/15.4.4.22-2-2.js | 10 +- .../prototype/reduceRight/15.4.4.22-2-3.js | 28 +- .../prototype/reduceRight/15.4.4.22-2-4.js | 17 +- .../prototype/reduceRight/15.4.4.22-2-5.js | 44 +-- .../prototype/reduceRight/15.4.4.22-2-6.js | 26 +- .../prototype/reduceRight/15.4.4.22-2-7.js | 30 +- .../prototype/reduceRight/15.4.4.22-2-8.js | 38 +-- .../prototype/reduceRight/15.4.4.22-2-9.js | 48 ++-- .../prototype/reduceRight/15.4.4.22-3-1.js | 13 +- .../prototype/reduceRight/15.4.4.22-3-10.js | 13 +- .../prototype/reduceRight/15.4.4.22-3-11.js | 32 ++- .../prototype/reduceRight/15.4.4.22-3-12.js | 32 ++- .../prototype/reduceRight/15.4.4.22-3-13.js | 32 ++- .../prototype/reduceRight/15.4.4.22-3-14.js | 13 +- .../prototype/reduceRight/15.4.4.22-3-15.js | 32 ++- .../prototype/reduceRight/15.4.4.22-3-16.js | 32 ++- .../prototype/reduceRight/15.4.4.22-3-17.js | 32 ++- .../prototype/reduceRight/15.4.4.22-3-18.js | 14 +- .../prototype/reduceRight/15.4.4.22-3-19.js | 67 ++--- .../prototype/reduceRight/15.4.4.22-3-2.js | 13 +- .../prototype/reduceRight/15.4.4.22-3-20.js | 57 ++-- .../prototype/reduceRight/15.4.4.22-3-21.js | 67 ++--- .../prototype/reduceRight/15.4.4.22-3-22.js | 42 +-- .../prototype/reduceRight/15.4.4.22-3-23.js | 78 ++--- .../prototype/reduceRight/15.4.4.22-3-24.js | 32 ++- .../prototype/reduceRight/15.4.4.22-3-25.js | 37 +-- .../prototype/reduceRight/15.4.4.22-3-3.js | 13 +- .../prototype/reduceRight/15.4.4.22-3-4.js | 13 +- .../prototype/reduceRight/15.4.4.22-3-5.js | 13 +- .../prototype/reduceRight/15.4.4.22-3-6.js | 31 +- .../prototype/reduceRight/15.4.4.22-3-7.js | 31 +- .../prototype/reduceRight/15.4.4.22-3-9.js | 13 +- .../prototype/reduceRight/15.4.4.22-4-1.js | 4 +- .../prototype/reduceRight/15.4.4.22-4-10.js | 19 +- .../prototype/reduceRight/15.4.4.22-4-11.js | 27 +- .../prototype/reduceRight/15.4.4.22-4-12.js | 11 +- .../prototype/reduceRight/15.4.4.22-4-15.js | 38 +-- .../prototype/reduceRight/15.4.4.22-4-2.js | 4 +- .../prototype/reduceRight/15.4.4.22-4-3.js | 4 +- .../prototype/reduceRight/15.4.4.22-4-4.js | 4 +- .../prototype/reduceRight/15.4.4.22-4-5.js | 4 +- .../prototype/reduceRight/15.4.4.22-4-6.js | 4 +- .../prototype/reduceRight/15.4.4.22-4-7.js | 4 +- .../prototype/reduceRight/15.4.4.22-4-8.js | 23 +- .../prototype/reduceRight/15.4.4.22-4-9.js | 31 +- .../prototype/reduceRight/15.4.4.22-5-1.js | 4 +- .../prototype/reduceRight/15.4.4.22-5-10.js | 23 +- .../prototype/reduceRight/15.4.4.22-5-11.js | 31 +- .../prototype/reduceRight/15.4.4.22-5-12.js | 19 +- .../prototype/reduceRight/15.4.4.22-5-13.js | 27 +- .../prototype/reduceRight/15.4.4.22-5-2.js | 13 +- .../prototype/reduceRight/15.4.4.22-5-3.js | 13 +- .../prototype/reduceRight/15.4.4.22-5-4.js | 13 +- .../prototype/reduceRight/15.4.4.22-5-5.js | 13 +- .../prototype/reduceRight/15.4.4.22-5-6.js | 19 +- .../prototype/reduceRight/15.4.4.22-5-7.js | 29 +- .../prototype/reduceRight/15.4.4.22-5-8.js | 39 +-- .../prototype/reduceRight/15.4.4.22-5-9.js | 4 +- .../prototype/reduceRight/15.4.4.22-7-1.js | 4 +- .../prototype/reduceRight/15.4.4.22-7-10.js | 4 +- .../prototype/reduceRight/15.4.4.22-7-11.js | 4 +- .../prototype/reduceRight/15.4.4.22-7-2.js | 13 +- .../prototype/reduceRight/15.4.4.22-7-3.js | 13 +- .../prototype/reduceRight/15.4.4.22-7-4.js | 13 +- .../prototype/reduceRight/15.4.4.22-7-5.js | 13 +- .../prototype/reduceRight/15.4.4.22-7-6.js | 19 +- .../prototype/reduceRight/15.4.4.22-7-7.js | 29 +- .../prototype/reduceRight/15.4.4.22-7-8.js | 39 +-- .../prototype/reduceRight/15.4.4.22-7-9.js | 39 +-- .../prototype/reduceRight/15.4.4.22-8-b-1.js | 22 +- .../prototype/reduceRight/15.4.4.22-8-b-2.js | 29 +- .../prototype/reduceRight/15.4.4.22-8-b-3.js | 62 ++-- .../reduceRight/15.4.4.22-8-b-ii-1.js | 18 +- .../reduceRight/15.4.4.22-8-b-ii-2.js | 21 +- .../reduceRight/15.4.4.22-8-b-iii-1-1.js | 21 +- .../reduceRight/15.4.4.22-8-b-iii-1-10.js | 29 +- .../reduceRight/15.4.4.22-8-b-iii-1-11.js | 51 ++-- .../reduceRight/15.4.4.22-8-b-iii-1-12.js | 31 +- .../reduceRight/15.4.4.22-8-b-iii-1-13.js | 64 +++-- .../reduceRight/15.4.4.22-8-b-iii-1-14.js | 49 ++-- .../reduceRight/15.4.4.22-8-b-iii-1-15.js | 40 +-- .../reduceRight/15.4.4.22-8-b-iii-1-16.js | 29 +- .../reduceRight/15.4.4.22-8-b-iii-1-17.js | 29 +- .../reduceRight/15.4.4.22-8-b-iii-1-18.js | 25 +- .../reduceRight/15.4.4.22-8-b-iii-1-19.js | 31 +- .../reduceRight/15.4.4.22-8-b-iii-1-2.js | 17 +- .../reduceRight/15.4.4.22-8-b-iii-1-20.js | 27 +- .../reduceRight/15.4.4.22-8-b-iii-1-21.js | 36 +-- .../reduceRight/15.4.4.22-8-b-iii-1-22.js | 25 +- .../reduceRight/15.4.4.22-8-b-iii-1-25.js | 21 +- .../reduceRight/15.4.4.22-8-b-iii-1-26.js | 21 +- .../reduceRight/15.4.4.22-8-b-iii-1-27.js | 21 +- .../reduceRight/15.4.4.22-8-b-iii-1-28.js | 17 +- .../reduceRight/15.4.4.22-8-b-iii-1-29.js | 27 +- .../reduceRight/15.4.4.22-8-b-iii-1-3.js | 34 ++- .../reduceRight/15.4.4.22-8-b-iii-1-30.js | 61 ++-- .../reduceRight/15.4.4.22-8-b-iii-1-31.js | 64 +++-- .../reduceRight/15.4.4.22-8-b-iii-1-32.js | 33 ++- .../reduceRight/15.4.4.22-8-b-iii-1-33.js | 29 +- .../reduceRight/15.4.4.22-8-b-iii-1-4.js | 17 +- .../reduceRight/15.4.4.22-8-b-iii-1-5.js | 59 ++-- .../reduceRight/15.4.4.22-8-b-iii-1-6.js | 27 +- .../reduceRight/15.4.4.22-8-b-iii-1-7.js | 28 +- .../reduceRight/15.4.4.22-8-b-iii-1-8.js | 21 +- .../reduceRight/15.4.4.22-8-b-iii-1-9.js | 33 ++- .../prototype/reduceRight/15.4.4.22-8-c-1.js | 9 +- .../prototype/reduceRight/15.4.4.22-8-c-2.js | 13 +- .../prototype/reduceRight/15.4.4.22-8-c-3.js | 19 +- .../prototype/reduceRight/15.4.4.22-8-c-4.js | 14 +- .../prototype/reduceRight/15.4.4.22-8-c-5.js | 20 +- .../prototype/reduceRight/15.4.4.22-8-c-6.js | 28 +- .../prototype/reduceRight/15.4.4.22-8-c-7.js | 16 +- .../prototype/reduceRight/15.4.4.22-8-c-8.js | 24 +- .../prototype/reduceRight/15.4.4.22-9-1.js | 12 +- .../prototype/reduceRight/15.4.4.22-9-2.js | 14 +- .../prototype/reduceRight/15.4.4.22-9-3.js | 14 +- .../prototype/reduceRight/15.4.4.22-9-4.js | 12 +- .../prototype/reduceRight/15.4.4.22-9-5.js | 15 +- .../prototype/reduceRight/15.4.4.22-9-6.js | 20 +- .../prototype/reduceRight/15.4.4.22-9-7.js | 12 +- .../prototype/reduceRight/15.4.4.22-9-8.js | 29 +- .../prototype/reduceRight/15.4.4.22-9-9.js | 25 +- .../prototype/reduceRight/15.4.4.22-9-b-1.js | 9 +- .../prototype/reduceRight/15.4.4.22-9-b-10.js | 39 +-- .../prototype/reduceRight/15.4.4.22-9-b-11.js | 36 +-- .../prototype/reduceRight/15.4.4.22-9-b-12.js | 36 +-- .../prototype/reduceRight/15.4.4.22-9-b-13.js | 32 +-- .../prototype/reduceRight/15.4.4.22-9-b-14.js | 34 +-- .../prototype/reduceRight/15.4.4.22-9-b-15.js | 42 +-- .../prototype/reduceRight/15.4.4.22-9-b-16.js | 52 ++-- .../prototype/reduceRight/15.4.4.22-9-b-17.js | 42 +-- .../prototype/reduceRight/15.4.4.22-9-b-18.js | 40 +-- .../prototype/reduceRight/15.4.4.22-9-b-19.js | 42 +-- .../prototype/reduceRight/15.4.4.22-9-b-2.js | 30 +- .../prototype/reduceRight/15.4.4.22-9-b-20.js | 40 +-- .../prototype/reduceRight/15.4.4.22-9-b-21.js | 59 ++-- .../prototype/reduceRight/15.4.4.22-9-b-22.js | 56 ++-- .../prototype/reduceRight/15.4.4.22-9-b-23.js | 39 +-- .../prototype/reduceRight/15.4.4.22-9-b-24.js | 36 +-- .../prototype/reduceRight/15.4.4.22-9-b-25.js | 37 +-- .../prototype/reduceRight/15.4.4.22-9-b-26.js | 32 +-- .../prototype/reduceRight/15.4.4.22-9-b-27.js | 34 +-- .../prototype/reduceRight/15.4.4.22-9-b-28.js | 42 +-- .../prototype/reduceRight/15.4.4.22-9-b-29.js | 52 ++-- .../prototype/reduceRight/15.4.4.22-9-b-3.js | 37 +-- .../prototype/reduceRight/15.4.4.22-9-b-4.js | 42 +-- .../prototype/reduceRight/15.4.4.22-9-b-5.js | 40 +-- .../prototype/reduceRight/15.4.4.22-9-b-6.js | 42 +-- .../prototype/reduceRight/15.4.4.22-9-b-7.js | 40 +-- .../prototype/reduceRight/15.4.4.22-9-b-8.js | 59 ++-- .../prototype/reduceRight/15.4.4.22-9-b-9.js | 56 ++-- .../prototype/reduceRight/15.4.4.22-9-c-1.js | 17 +- .../reduceRight/15.4.4.22-9-c-i-1.js | 22 +- .../reduceRight/15.4.4.22-9-c-i-10.js | 29 +- .../reduceRight/15.4.4.22-9-c-i-11.js | 51 ++-- .../reduceRight/15.4.4.22-9-c-i-12.js | 31 +- .../reduceRight/15.4.4.22-9-c-i-13.js | 64 +++-- .../reduceRight/15.4.4.22-9-c-i-14.js | 41 +-- .../reduceRight/15.4.4.22-9-c-i-15.js | 40 +-- .../reduceRight/15.4.4.22-9-c-i-16.js | 29 +- .../reduceRight/15.4.4.22-9-c-i-17.js | 29 +- .../reduceRight/15.4.4.22-9-c-i-18.js | 25 +- .../reduceRight/15.4.4.22-9-c-i-19.js | 31 +- .../reduceRight/15.4.4.22-9-c-i-2.js | 17 +- .../reduceRight/15.4.4.22-9-c-i-20.js | 27 +- .../reduceRight/15.4.4.22-9-c-i-21.js | 36 +-- .../reduceRight/15.4.4.22-9-c-i-22.js | 25 +- .../reduceRight/15.4.4.22-9-c-i-25.js | 21 +- .../reduceRight/15.4.4.22-9-c-i-26.js | 21 +- .../reduceRight/15.4.4.22-9-c-i-27.js | 21 +- .../reduceRight/15.4.4.22-9-c-i-28.js | 17 +- .../reduceRight/15.4.4.22-9-c-i-29.js | 31 +- .../reduceRight/15.4.4.22-9-c-i-3.js | 34 ++- .../reduceRight/15.4.4.22-9-c-i-30.js | 61 ++-- .../reduceRight/15.4.4.22-9-c-i-31.js | 63 ++-- .../reduceRight/15.4.4.22-9-c-i-32.js | 33 ++- .../reduceRight/15.4.4.22-9-c-i-33.js | 29 +- .../reduceRight/15.4.4.22-9-c-i-4.js | 17 +- .../reduceRight/15.4.4.22-9-c-i-5.js | 57 ++-- .../reduceRight/15.4.4.22-9-c-i-6.js | 27 +- .../reduceRight/15.4.4.22-9-c-i-7.js | 29 +- .../reduceRight/15.4.4.22-9-c-i-8.js | 21 +- .../reduceRight/15.4.4.22-9-c-i-9.js | 33 ++- .../reduceRight/15.4.4.22-9-c-ii-1.js | 16 +- .../reduceRight/15.4.4.22-9-c-ii-10.js | 10 +- .../reduceRight/15.4.4.22-9-c-ii-11.js | 14 +- .../reduceRight/15.4.4.22-9-c-ii-12.js | 18 +- .../reduceRight/15.4.4.22-9-c-ii-13.js | 18 +- .../reduceRight/15.4.4.22-9-c-ii-14.js | 6 +- .../reduceRight/15.4.4.22-9-c-ii-16.js | 21 +- .../reduceRight/15.4.4.22-9-c-ii-17.js | 24 +- .../reduceRight/15.4.4.22-9-c-ii-18.js | 20 +- .../reduceRight/15.4.4.22-9-c-ii-19.js | 18 +- .../reduceRight/15.4.4.22-9-c-ii-2.js | 22 +- .../reduceRight/15.4.4.22-9-c-ii-20.js | 16 +- .../reduceRight/15.4.4.22-9-c-ii-21.js | 16 +- .../reduceRight/15.4.4.22-9-c-ii-22.js | 16 +- .../reduceRight/15.4.4.22-9-c-ii-23.js | 16 +- .../reduceRight/15.4.4.22-9-c-ii-24.js | 16 +- .../reduceRight/15.4.4.22-9-c-ii-25.js | 18 +- .../reduceRight/15.4.4.22-9-c-ii-26.js | 18 +- .../reduceRight/15.4.4.22-9-c-ii-27.js | 18 +- .../reduceRight/15.4.4.22-9-c-ii-28.js | 18 +- .../reduceRight/15.4.4.22-9-c-ii-29.js | 18 +- .../reduceRight/15.4.4.22-9-c-ii-3.js | 23 +- .../reduceRight/15.4.4.22-9-c-ii-30.js | 16 +- .../reduceRight/15.4.4.22-9-c-ii-31.js | 18 +- .../reduceRight/15.4.4.22-9-c-ii-32.js | 18 +- .../reduceRight/15.4.4.22-9-c-ii-33.js | 16 +- .../reduceRight/15.4.4.22-9-c-ii-34.js | 18 +- .../reduceRight/15.4.4.22-9-c-ii-35.js | 23 +- .../reduceRight/15.4.4.22-9-c-ii-37.js | 16 +- .../reduceRight/15.4.4.22-9-c-ii-4-s.js | 17 +- .../reduceRight/15.4.4.22-9-c-ii-4.js | 26 +- .../reduceRight/15.4.4.22-9-c-ii-5.js | 38 +-- .../reduceRight/15.4.4.22-9-c-ii-7.js | 27 +- .../reduceRight/15.4.4.22-9-c-ii-8.js | 23 +- .../reduceRight/15.4.4.22-9-c-ii-9.js | 10 +- .../prototype/reverse/S15.4.4.8_A1_T1.js | 2 +- .../prototype/reverse/S15.4.4.8_A1_T2.js | 38 +-- .../prototype/reverse/S15.4.4.8_A2_T1.js | 38 +-- .../prototype/reverse/S15.4.4.8_A2_T2.js | 38 +-- .../prototype/reverse/S15.4.4.8_A2_T3.js | 38 +-- .../prototype/reverse/S15.4.4.8_A4_T1.js | 4 +- .../prototype/reverse/S15.4.4.8_A4_T2.js | 7 +- ...gth-exceeding-integer-limit-with-object.js | 10 +- ...ngth-exceeding-integer-limit-with-proxy.js | 6 +- .../prototype/shift/S15.4.4.9_A1.1_T1.js | 2 +- .../prototype/shift/S15.4.4.9_A1.2_T1.js | 2 +- .../Array/prototype/shift/S15.4.4.9_A2_T1.js | 18 +- .../Array/prototype/shift/S15.4.4.9_A2_T2.js | 2 +- .../Array/prototype/shift/S15.4.4.9_A2_T5.js | 68 ++++- .../Array/prototype/shift/S15.4.4.9_A3_T3.js | 4 +- .../Array/prototype/shift/S15.4.4.9_A4_T1.js | 4 +- .../Array/prototype/shift/S15.4.4.9_A4_T2.js | 7 +- .../prototype/slice/15.4.4.10-10-c-ii-1.js | 14 +- .../prototype/slice/S15.4.4.10_A1.1_T1.js | 4 +- .../prototype/slice/S15.4.4.10_A1.1_T2.js | 4 +- .../prototype/slice/S15.4.4.10_A1.1_T3.js | 4 +- .../prototype/slice/S15.4.4.10_A1.1_T4.js | 4 +- .../prototype/slice/S15.4.4.10_A1.1_T5.js | 4 +- .../prototype/slice/S15.4.4.10_A1.1_T6.js | 4 +- .../prototype/slice/S15.4.4.10_A1.1_T7.js | 4 +- .../prototype/slice/S15.4.4.10_A1.2_T1.js | 4 +- .../prototype/slice/S15.4.4.10_A1.2_T2.js | 4 +- .../prototype/slice/S15.4.4.10_A1.2_T3.js | 4 +- .../prototype/slice/S15.4.4.10_A1.2_T4.js | 4 +- .../prototype/slice/S15.4.4.10_A1.3_T1.js | 4 +- .../prototype/slice/S15.4.4.10_A1.3_T2.js | 4 +- .../prototype/slice/S15.4.4.10_A1.3_T3.js | 4 +- .../prototype/slice/S15.4.4.10_A1.3_T4.js | 4 +- .../prototype/slice/S15.4.4.10_A1.4_T1.js | 4 +- .../prototype/slice/S15.4.4.10_A1.4_T2.js | 4 +- .../prototype/slice/S15.4.4.10_A1.4_T3.js | 4 +- .../prototype/slice/S15.4.4.10_A1.4_T4.js | 4 +- .../prototype/slice/S15.4.4.10_A1.5_T1.js | 2 +- .../prototype/slice/S15.4.4.10_A1.5_T2.js | 2 +- .../prototype/slice/S15.4.4.10_A2.1_T1.js | 4 +- .../prototype/slice/S15.4.4.10_A2.1_T2.js | 4 +- .../prototype/slice/S15.4.4.10_A2.1_T3.js | 4 +- .../prototype/slice/S15.4.4.10_A2.1_T4.js | 4 +- .../prototype/slice/S15.4.4.10_A2.1_T5.js | 11 +- .../prototype/slice/S15.4.4.10_A2.2_T1.js | 4 +- .../prototype/slice/S15.4.4.10_A2.2_T2.js | 4 +- .../prototype/slice/S15.4.4.10_A2.2_T3.js | 4 +- .../prototype/slice/S15.4.4.10_A2.2_T4.js | 4 +- .../prototype/slice/S15.4.4.10_A2.2_T5.js | 11 +- .../Array/prototype/slice/S15.4.4.10_A2_T1.js | 2 +- .../Array/prototype/slice/S15.4.4.10_A2_T2.js | 2 +- .../Array/prototype/slice/S15.4.4.10_A2_T3.js | 2 +- .../Array/prototype/slice/S15.4.4.10_A2_T4.js | 2 +- .../Array/prototype/slice/S15.4.4.10_A3_T1.js | 4 +- .../Array/prototype/slice/S15.4.4.10_A3_T2.js | 4 +- .../Array/prototype/slice/S15.4.4.10_A3_T3.js | 4 +- .../Array/prototype/slice/create-non-array.js | 4 +- ...h-exceeding-integer-limit-proxied-array.js | 22 +- .../slice/length-exceeding-integer-limit.js | 22 +- .../Array/prototype/some/15.4.4.17-1-1.js | 2 +- .../Array/prototype/some/15.4.4.17-1-10.js | 10 +- .../Array/prototype/some/15.4.4.17-1-11.js | 14 +- .../Array/prototype/some/15.4.4.17-1-12.js | 14 +- .../Array/prototype/some/15.4.4.17-1-13.js | 10 +- .../Array/prototype/some/15.4.4.17-1-14.js | 12 +- .../Array/prototype/some/15.4.4.17-1-15.js | 12 +- .../Array/prototype/some/15.4.4.17-1-2.js | 2 +- .../Array/prototype/some/15.4.4.17-1-3.js | 10 +- .../Array/prototype/some/15.4.4.17-1-4.js | 14 +- .../Array/prototype/some/15.4.4.17-1-5.js | 10 +- .../Array/prototype/some/15.4.4.17-1-6.js | 14 +- .../Array/prototype/some/15.4.4.17-1-7.js | 6 +- .../Array/prototype/some/15.4.4.17-1-8.js | 8 +- .../Array/prototype/some/15.4.4.17-1-9.js | 16 +- .../Array/prototype/some/15.4.4.17-2-1.js | 24 +- .../Array/prototype/some/15.4.4.17-2-10.js | 48 ++-- .../Array/prototype/some/15.4.4.17-2-11.js | 26 +- .../Array/prototype/some/15.4.4.17-2-12.js | 35 +-- .../Array/prototype/some/15.4.4.17-2-13.js | 30 +- .../Array/prototype/some/15.4.4.17-2-14.js | 15 +- .../Array/prototype/some/15.4.4.17-2-17.js | 22 +- .../Array/prototype/some/15.4.4.17-2-18.js | 16 +- .../Array/prototype/some/15.4.4.17-2-19.js | 24 +- .../Array/prototype/some/15.4.4.17-2-2.js | 14 +- .../Array/prototype/some/15.4.4.17-2-3.js | 30 +- .../Array/prototype/some/15.4.4.17-2-4.js | 21 +- .../Array/prototype/some/15.4.4.17-2-5.js | 58 ++-- .../Array/prototype/some/15.4.4.17-2-6.js | 28 +- .../Array/prototype/some/15.4.4.17-2-7.js | 32 +-- .../Array/prototype/some/15.4.4.17-2-8.js | 40 +-- .../Array/prototype/some/15.4.4.17-2-9.js | 64 ++--- .../Array/prototype/some/15.4.4.17-3-1.js | 15 +- .../Array/prototype/some/15.4.4.17-3-10.js | 15 +- .../Array/prototype/some/15.4.4.17-3-11.js | 19 +- .../Array/prototype/some/15.4.4.17-3-12.js | 19 +- .../Array/prototype/some/15.4.4.17-3-13.js | 19 +- .../Array/prototype/some/15.4.4.17-3-14.js | 25 +- .../Array/prototype/some/15.4.4.17-3-15.js | 19 +- .../Array/prototype/some/15.4.4.17-3-16.js | 19 +- .../Array/prototype/some/15.4.4.17-3-17.js | 19 +- .../Array/prototype/some/15.4.4.17-3-18.js | 16 +- .../Array/prototype/some/15.4.4.17-3-19.js | 36 +-- .../Array/prototype/some/15.4.4.17-3-2.js | 18 +- .../Array/prototype/some/15.4.4.17-3-20.js | 36 +-- .../Array/prototype/some/15.4.4.17-3-21.js | 46 +-- .../Array/prototype/some/15.4.4.17-3-22.js | 44 +-- .../Array/prototype/some/15.4.4.17-3-23.js | 68 ++--- .../Array/prototype/some/15.4.4.17-3-24.js | 24 +- .../Array/prototype/some/15.4.4.17-3-25.js | 24 +- .../Array/prototype/some/15.4.4.17-3-28.js | 18 +- .../Array/prototype/some/15.4.4.17-3-29.js | 22 +- .../Array/prototype/some/15.4.4.17-3-3.js | 15 +- .../Array/prototype/some/15.4.4.17-3-4.js | 15 +- .../Array/prototype/some/15.4.4.17-3-5.js | 15 +- .../Array/prototype/some/15.4.4.17-3-6.js | 19 +- .../Array/prototype/some/15.4.4.17-3-7.js | 19 +- .../Array/prototype/some/15.4.4.17-3-8.js | 15 +- .../Array/prototype/some/15.4.4.17-3-9.js | 15 +- .../Array/prototype/some/15.4.4.17-4-1.js | 4 +- .../Array/prototype/some/15.4.4.17-4-10.js | 19 +- .../Array/prototype/some/15.4.4.17-4-11.js | 27 +- .../Array/prototype/some/15.4.4.17-4-12.js | 6 +- .../Array/prototype/some/15.4.4.17-4-15.js | 36 +-- .../Array/prototype/some/15.4.4.17-4-2.js | 4 +- .../Array/prototype/some/15.4.4.17-4-3.js | 4 +- .../Array/prototype/some/15.4.4.17-4-4.js | 4 +- .../Array/prototype/some/15.4.4.17-4-5.js | 4 +- .../Array/prototype/some/15.4.4.17-4-6.js | 4 +- .../Array/prototype/some/15.4.4.17-4-7.js | 4 +- .../Array/prototype/some/15.4.4.17-4-8.js | 23 +- .../Array/prototype/some/15.4.4.17-4-9.js | 31 +- .../Array/prototype/some/15.4.4.17-5-1-s.js | 14 +- .../Array/prototype/some/15.4.4.17-5-1.js | 14 +- .../Array/prototype/some/15.4.4.17-5-10.js | 8 +- .../Array/prototype/some/15.4.4.17-5-11.js | 8 +- .../Array/prototype/some/15.4.4.17-5-12.js | 8 +- .../Array/prototype/some/15.4.4.17-5-13.js | 8 +- .../Array/prototype/some/15.4.4.17-5-14.js | 6 +- .../Array/prototype/some/15.4.4.17-5-15.js | 8 +- .../Array/prototype/some/15.4.4.17-5-16.js | 8 +- .../Array/prototype/some/15.4.4.17-5-17.js | 6 +- .../Array/prototype/some/15.4.4.17-5-18.js | 8 +- .../Array/prototype/some/15.4.4.17-5-19.js | 14 +- .../Array/prototype/some/15.4.4.17-5-2.js | 17 +- .../Array/prototype/some/15.4.4.17-5-21.js | 7 +- .../Array/prototype/some/15.4.4.17-5-22.js | 6 +- .../Array/prototype/some/15.4.4.17-5-23.js | 6 +- .../Array/prototype/some/15.4.4.17-5-24.js | 6 +- .../Array/prototype/some/15.4.4.17-5-25.js | 18 +- .../Array/prototype/some/15.4.4.17-5-3.js | 17 +- .../Array/prototype/some/15.4.4.17-5-4.js | 21 +- .../Array/prototype/some/15.4.4.17-5-5.js | 21 +- .../Array/prototype/some/15.4.4.17-5-6.js | 19 +- .../Array/prototype/some/15.4.4.17-5-7.js | 6 +- .../Array/prototype/some/15.4.4.17-5-9.js | 8 +- .../Array/prototype/some/15.4.4.17-7-1.js | 20 +- .../Array/prototype/some/15.4.4.17-7-2.js | 18 +- .../Array/prototype/some/15.4.4.17-7-3.js | 18 +- .../Array/prototype/some/15.4.4.17-7-4.js | 18 +- .../Array/prototype/some/15.4.4.17-7-5.js | 22 +- .../Array/prototype/some/15.4.4.17-7-6.js | 24 +- .../Array/prototype/some/15.4.4.17-7-8.js | 16 +- .../Array/prototype/some/15.4.4.17-7-9.js | 30 +- .../Array/prototype/some/15.4.4.17-7-b-1.js | 19 +- .../Array/prototype/some/15.4.4.17-7-b-10.js | 32 ++- .../Array/prototype/some/15.4.4.17-7-b-11.js | 29 +- .../Array/prototype/some/15.4.4.17-7-b-12.js | 37 +-- .../Array/prototype/some/15.4.4.17-7-b-13.js | 32 +-- .../Array/prototype/some/15.4.4.17-7-b-14.js | 27 +- .../Array/prototype/some/15.4.4.17-7-b-15.js | 42 +-- .../Array/prototype/some/15.4.4.17-7-b-16.js | 42 +-- .../Array/prototype/some/15.4.4.17-7-b-2.js | 30 +- .../Array/prototype/some/15.4.4.17-7-b-3.js | 30 +- .../Array/prototype/some/15.4.4.17-7-b-4.js | 42 +-- .../Array/prototype/some/15.4.4.17-7-b-5.js | 40 +-- .../Array/prototype/some/15.4.4.17-7-b-6.js | 42 +-- .../Array/prototype/some/15.4.4.17-7-b-7.js | 40 +-- .../Array/prototype/some/15.4.4.17-7-b-8.js | 41 +-- .../Array/prototype/some/15.4.4.17-7-b-9.js | 39 +-- .../Array/prototype/some/15.4.4.17-7-c-i-1.js | 19 +- .../prototype/some/15.4.4.17-7-c-i-10.js | 28 +- .../prototype/some/15.4.4.17-7-c-i-11.js | 48 ++-- .../prototype/some/15.4.4.17-7-c-i-12.js | 30 +- .../prototype/some/15.4.4.17-7-c-i-13.js | 60 ++-- .../prototype/some/15.4.4.17-7-c-i-14.js | 40 +-- .../prototype/some/15.4.4.17-7-c-i-15.js | 36 +-- .../prototype/some/15.4.4.17-7-c-i-16.js | 26 +- .../prototype/some/15.4.4.17-7-c-i-17.js | 24 +- .../prototype/some/15.4.4.17-7-c-i-18.js | 22 +- .../prototype/some/15.4.4.17-7-c-i-19.js | 26 +- .../Array/prototype/some/15.4.4.17-7-c-i-2.js | 14 +- .../prototype/some/15.4.4.17-7-c-i-20.js | 24 +- .../prototype/some/15.4.4.17-7-c-i-21.js | 30 +- .../prototype/some/15.4.4.17-7-c-i-22.js | 20 +- .../prototype/some/15.4.4.17-7-c-i-25.js | 18 +- .../prototype/some/15.4.4.17-7-c-i-26.js | 32 +-- .../prototype/some/15.4.4.17-7-c-i-27.js | 40 +-- .../prototype/some/15.4.4.17-7-c-i-28.js | 48 ++-- .../prototype/some/15.4.4.17-7-c-i-29.js | 50 ++-- .../Array/prototype/some/15.4.4.17-7-c-i-3.js | 28 +- .../prototype/some/15.4.4.17-7-c-i-30.js | 33 ++- .../prototype/some/15.4.4.17-7-c-i-31.js | 33 +-- .../Array/prototype/some/15.4.4.17-7-c-i-4.js | 16 +- .../Array/prototype/some/15.4.4.17-7-c-i-5.js | 54 ++-- .../Array/prototype/some/15.4.4.17-7-c-i-6.js | 26 +- .../Array/prototype/some/15.4.4.17-7-c-i-7.js | 26 +- .../Array/prototype/some/15.4.4.17-7-c-i-8.js | 16 +- .../Array/prototype/some/15.4.4.17-7-c-i-9.js | 30 +- .../prototype/some/15.4.4.17-7-c-ii-1.js | 16 +- .../prototype/some/15.4.4.17-7-c-ii-10.js | 6 +- .../prototype/some/15.4.4.17-7-c-ii-11.js | 6 +- .../prototype/some/15.4.4.17-7-c-ii-12.js | 6 +- .../prototype/some/15.4.4.17-7-c-ii-13.js | 6 +- .../prototype/some/15.4.4.17-7-c-ii-16.js | 11 +- .../prototype/some/15.4.4.17-7-c-ii-17.js | 11 +- .../prototype/some/15.4.4.17-7-c-ii-18.js | 12 +- .../prototype/some/15.4.4.17-7-c-ii-19.js | 17 +- .../prototype/some/15.4.4.17-7-c-ii-2.js | 18 +- .../prototype/some/15.4.4.17-7-c-ii-20.js | 15 +- .../prototype/some/15.4.4.17-7-c-ii-21.js | 30 +- .../prototype/some/15.4.4.17-7-c-ii-22.js | 30 +- .../prototype/some/15.4.4.17-7-c-ii-23.js | 12 +- .../prototype/some/15.4.4.17-7-c-ii-3.js | 21 +- .../prototype/some/15.4.4.17-7-c-ii-4.js | 24 +- .../prototype/some/15.4.4.17-7-c-ii-5.js | 30 +- .../prototype/some/15.4.4.17-7-c-ii-6.js | 13 +- .../prototype/some/15.4.4.17-7-c-ii-7.js | 29 +- .../prototype/some/15.4.4.17-7-c-ii-8.js | 18 +- .../prototype/some/15.4.4.17-7-c-ii-9.js | 6 +- .../prototype/some/15.4.4.17-7-c-iii-1.js | 15 +- .../prototype/some/15.4.4.17-7-c-iii-10.js | 6 +- .../prototype/some/15.4.4.17-7-c-iii-11.js | 6 +- .../prototype/some/15.4.4.17-7-c-iii-12.js | 10 +- .../prototype/some/15.4.4.17-7-c-iii-13.js | 10 +- .../prototype/some/15.4.4.17-7-c-iii-14.js | 6 +- .../prototype/some/15.4.4.17-7-c-iii-15.js | 6 +- .../prototype/some/15.4.4.17-7-c-iii-16.js | 6 +- .../prototype/some/15.4.4.17-7-c-iii-17.js | 6 +- .../prototype/some/15.4.4.17-7-c-iii-18.js | 6 +- .../prototype/some/15.4.4.17-7-c-iii-19.js | 6 +- .../prototype/some/15.4.4.17-7-c-iii-2.js | 15 +- .../prototype/some/15.4.4.17-7-c-iii-20.js | 6 +- .../prototype/some/15.4.4.17-7-c-iii-21.js | 6 +- .../prototype/some/15.4.4.17-7-c-iii-22.js | 6 +- .../prototype/some/15.4.4.17-7-c-iii-23.js | 6 +- .../prototype/some/15.4.4.17-7-c-iii-24.js | 6 +- .../prototype/some/15.4.4.17-7-c-iii-25.js | 6 +- .../prototype/some/15.4.4.17-7-c-iii-26.js | 7 +- .../prototype/some/15.4.4.17-7-c-iii-28.js | 65 +++-- .../prototype/some/15.4.4.17-7-c-iii-29.js | 6 +- .../prototype/some/15.4.4.17-7-c-iii-3.js | 15 +- .../prototype/some/15.4.4.17-7-c-iii-4.js | 11 +- .../prototype/some/15.4.4.17-7-c-iii-5.js | 10 +- .../prototype/some/15.4.4.17-7-c-iii-6.js | 10 +- .../prototype/some/15.4.4.17-7-c-iii-7.js | 10 +- .../prototype/some/15.4.4.17-7-c-iii-8.js | 6 +- .../prototype/some/15.4.4.17-7-c-iii-9.js | 6 +- .../Array/prototype/some/15.4.4.17-8-1.js | 4 +- .../Array/prototype/some/15.4.4.17-8-10.js | 25 +- .../Array/prototype/some/15.4.4.17-8-11.js | 15 +- .../Array/prototype/some/15.4.4.17-8-12.js | 12 +- .../Array/prototype/some/15.4.4.17-8-13.js | 19 +- .../Array/prototype/some/15.4.4.17-8-2.js | 13 +- .../Array/prototype/some/15.4.4.17-8-3.js | 13 +- .../Array/prototype/some/15.4.4.17-8-4.js | 13 +- .../Array/prototype/some/15.4.4.17-8-5.js | 13 +- .../Array/prototype/some/15.4.4.17-8-6.js | 19 +- .../Array/prototype/some/15.4.4.17-8-7.js | 29 +- .../Array/prototype/some/15.4.4.17-8-8.js | 45 +-- .../prototype/sort/S15.4.4.11_A1.2_T2.js | 2 +- .../prototype/sort/S15.4.4.11_A1.4_T2.js | 2 +- .../prototype/sort/S15.4.4.11_A1.5_T1.js | 4 +- .../prototype/sort/S15.4.4.11_A2.1_T2.js | 2 +- .../prototype/sort/S15.4.4.11_A2.1_T3.js | 11 +- .../prototype/sort/S15.4.4.11_A2.2_T1.js | 4 +- .../prototype/sort/S15.4.4.11_A2.2_T2.js | 4 +- .../prototype/sort/S15.4.4.11_A2.2_T3.js | 11 +- .../Array/prototype/sort/S15.4.4.11_A3_T1.js | 24 +- .../Array/prototype/sort/S15.4.4.11_A3_T2.js | 26 +- .../Array/prototype/sort/S15.4.4.11_A5_T1.js | 6 +- .../Array/prototype/sort/S15.4.4.11_A6_T2.js | 7 +- .../Array/prototype/sort/S15.4.4.11_A8.js | 4 +- .../Array/prototype/sort/bug_596_1.js | 8 +- .../Array/prototype/sort/bug_596_2.js | 18 +- .../sort/comparefn-nonfunction-call-throws.js | 2 +- .../Array/prototype/splice/15.4.4.12-9-a-1.js | 4 +- .../prototype/splice/15.4.4.12-9-c-ii-1.js | 36 +-- .../prototype/splice/S15.4.4.12_A1.1_T1.js | 4 +- .../prototype/splice/S15.4.4.12_A1.1_T2.js | 4 +- .../prototype/splice/S15.4.4.12_A1.1_T3.js | 4 +- .../prototype/splice/S15.4.4.12_A1.1_T4.js | 4 +- .../prototype/splice/S15.4.4.12_A1.1_T5.js | 4 +- .../prototype/splice/S15.4.4.12_A1.1_T6.js | 4 +- .../prototype/splice/S15.4.4.12_A1.2_T1.js | 4 +- .../prototype/splice/S15.4.4.12_A1.2_T2.js | 4 +- .../prototype/splice/S15.4.4.12_A1.2_T3.js | 4 +- .../prototype/splice/S15.4.4.12_A1.2_T4.js | 4 +- .../prototype/splice/S15.4.4.12_A1.2_T5.js | 4 +- .../prototype/splice/S15.4.4.12_A1.3_T1.js | 4 +- .../prototype/splice/S15.4.4.12_A1.3_T2.js | 4 +- .../prototype/splice/S15.4.4.12_A1.3_T3.js | 4 +- .../prototype/splice/S15.4.4.12_A1.3_T4.js | 4 +- .../prototype/splice/S15.4.4.12_A1.3_T5.js | 4 +- .../prototype/splice/S15.4.4.12_A1.4_T1.js | 4 +- .../prototype/splice/S15.4.4.12_A1.4_T2.js | 4 +- .../prototype/splice/S15.4.4.12_A1.4_T3.js | 4 +- .../prototype/splice/S15.4.4.12_A1.4_T4.js | 4 +- .../prototype/splice/S15.4.4.12_A1.4_T5.js | 4 +- .../prototype/splice/S15.4.4.12_A1.4_T6.js | 4 +- .../prototype/splice/S15.4.4.12_A1.5_T1.js | 2 +- .../prototype/splice/S15.4.4.12_A1.5_T2.js | 4 +- .../prototype/splice/S15.4.4.12_A2.1_T1.js | 4 +- .../prototype/splice/S15.4.4.12_A2.1_T2.js | 4 +- .../prototype/splice/S15.4.4.12_A2.1_T3.js | 4 +- .../prototype/splice/S15.4.4.12_A2.1_T4.js | 4 +- .../prototype/splice/S15.4.4.12_A2.1_T5.js | 11 +- .../prototype/splice/S15.4.4.12_A2.2_T1.js | 4 +- .../prototype/splice/S15.4.4.12_A2.2_T2.js | 4 +- .../prototype/splice/S15.4.4.12_A2.2_T3.js | 4 +- .../prototype/splice/S15.4.4.12_A2.2_T4.js | 4 +- .../prototype/splice/S15.4.4.12_A2.2_T5.js | 11 +- .../prototype/splice/S15.4.4.12_A2_T1.js | 9 +- .../prototype/splice/S15.4.4.12_A2_T2.js | 7 +- .../prototype/splice/S15.4.4.12_A2_T3.js | 7 +- .../prototype/splice/S15.4.4.12_A2_T4.js | 9 +- .../prototype/splice/S15.4.4.12_A3_T1.js | 8 +- .../prototype/splice/S15.4.4.12_A3_T3.js | 8 +- .../prototype/splice/S15.4.4.12_A4_T1.js | 11 +- .../prototype/splice/S15.4.4.12_A4_T2.js | 11 +- .../prototype/splice/S15.4.4.12_A4_T3.js | 4 +- .../prototype/splice/S15.4.4.12_A6.1_T1.js | 6 +- .../prototype/splice/S15.4.4.12_A6.1_T2.js | 2 +- .../prototype/splice/S15.4.4.12_A6.1_T3.js | 16 +- .../splice/clamps-length-to-integer-limit.js | 14 +- .../prototype/splice/create-non-array.js | 4 +- ...-species-length-exceeding-integer-limit.js | 10 +- ...and-deleteCount-exceeding-integer-limit.js | 20 +- ...th-exceeding-integer-limit-shrink-array.js | 22 +- .../length-near-integer-limit-grow-array.js | 18 +- .../prototype/splice/set_length_no_args.js | 3 +- .../throws-if-integer-limit-exceeded.js | 6 +- .../toLocaleString/S15.4.4.3_A1_T1.js | 6 +- .../toLocaleString/S15.4.4.3_A3_T1.js | 6 +- .../prototype/toString/S15.4.4.2_A1_T1.js | 2 +- .../prototype/toString/S15.4.4.2_A1_T2.js | 4 +- .../prototype/toString/S15.4.4.2_A1_T3.js | 34 +-- .../prototype/toString/S15.4.4.2_A1_T4.js | 66 ++++- .../prototype/unshift/S15.4.4.13_A2_T1.js | 26 +- .../prototype/unshift/S15.4.4.13_A2_T3.js | 66 ++++- .../prototype/unshift/S15.4.4.13_A3_T2.js | 8 +- .../prototype/unshift/S15.4.4.13_A4_T1.js | 4 +- .../unshift/clamps-to-integer-limit.js | 14 +- .../unshift/length-near-integer-limit.js | 18 +- .../throws-if-integer-limit-exceeded.js | 6 +- .../prototype/values/iteration-mutable.js | 2 +- .../data-allocation-after-object-creation.js | 4 +- .../newtarget-prototype-is-not-object.js | 2 +- .../ArrayBuffer/prototype-from-newtarget.js | 2 +- .../slice/end-default-if-undefined.js | 3 +- .../prototype/slice/end-exceeds-length.js | 9 +- .../prototype/slice/negative-end.js | 9 +- .../prototype/slice/negative-start.js | 9 +- .../prototype/slice/nonconstructor.js | 4 +- .../species-constructor-is-not-object.js | 4 +- .../slice/species-is-not-constructor.js | 4 +- .../prototype/slice/species-is-not-object.js | 4 +- .../slice/start-default-if-undefined.js | 3 +- .../prototype/slice/start-exceeds-end.js | 3 +- .../prototype/slice/start-exceeds-length.js | 9 +- .../slice/tointeger-conversion-end.js | 6 +- .../slice/tointeger-conversion-start.js | 6 +- .../AsyncFunction/AsyncFunction-construct.js | 2 +- .../AsyncFunction-is-extensible.js | 2 +- .../AsyncFunction-is-subclass.js | 3 +- .../AsyncFunction/AsyncFunction-length.js | 2 +- .../AsyncFunction/AsyncFunction-name.js | 2 +- .../AsyncFunction/AsyncFunction-prototype.js | 2 +- test/built-ins/AsyncFunction/AsyncFunction.js | 2 +- .../AsyncFunctionPrototype-is-extensible.js | 3 +- .../AsyncFunctionPrototype-prototype.js | 2 +- .../AsyncFunctionPrototype-to-string.js | 2 +- .../instance-construct-throws.js | 2 +- .../AsyncFunction/instance-has-name.js | 2 +- .../AsyncFunction/instance-length.js | 6 +- .../instance-prototype-property.js | 2 +- .../AsyncFunction/is-not-a-global.js | 2 +- test/built-ins/Atomics/add/bad-range.js | 10 +- test/built-ins/Atomics/add/good-views.js | 76 ++--- test/built-ins/Atomics/add/non-views.js | 2 +- .../Atomics/add/nonshared-int-views.js | 4 +- .../Atomics/add/shared-nonint-views.js | 4 +- test/built-ins/Atomics/and/bad-range.js | 10 +- test/built-ins/Atomics/and/good-views.js | 90 +++--- test/built-ins/Atomics/and/non-views.js | 2 +- .../Atomics/and/nonshared-int-views.js | 4 +- .../Atomics/and/shared-nonint-views.js | 4 +- .../Atomics/compareExchange/bad-range.js | 10 +- .../Atomics/compareExchange/good-views.js | 97 ++++--- .../Atomics/compareExchange/non-views.js | 2 +- .../compareExchange/nonshared-int-views.js | 4 +- .../compareExchange/shared-nonint-views.js | 4 +- test/built-ins/Atomics/exchange/bad-range.js | 10 +- test/built-ins/Atomics/exchange/good-views.js | 78 ++--- test/built-ins/Atomics/exchange/non-views.js | 2 +- .../Atomics/exchange/nonshared-int-views.js | 4 +- .../Atomics/exchange/shared-nonint-views.js | 4 +- .../Atomics/isLockFree/corner-cases.js | 23 +- test/built-ins/Atomics/isLockFree/value.js | 68 ++--- test/built-ins/Atomics/load/bad-range.js | 10 +- test/built-ins/Atomics/load/good-views.js | 58 ++-- test/built-ins/Atomics/load/non-views.js | 2 +- .../Atomics/load/nonshared-int-views.js | 4 +- .../Atomics/load/shared-nonint-views.js | 4 +- test/built-ins/Atomics/or/bad-range.js | 10 +- test/built-ins/Atomics/or/good-views.js | 90 +++--- test/built-ins/Atomics/or/non-views.js | 2 +- .../Atomics/or/nonshared-int-views.js | 4 +- .../Atomics/or/shared-nonint-views.js | 4 +- test/built-ins/Atomics/store/bad-range.js | 10 +- test/built-ins/Atomics/store/good-views.js | 74 ++--- test/built-ins/Atomics/store/non-views.js | 2 +- .../Atomics/store/nonshared-int-views.js | 4 +- .../Atomics/store/shared-nonint-views.js | 4 +- test/built-ins/Atomics/sub/bad-range.js | 10 +- test/built-ins/Atomics/sub/good-views.js | 76 ++--- test/built-ins/Atomics/sub/non-views.js | 2 +- .../Atomics/sub/nonshared-int-views.js | 4 +- .../Atomics/sub/shared-nonint-views.js | 4 +- test/built-ins/Atomics/wait/did-timeout.js | 12 +- test/built-ins/Atomics/wait/good-views.js | 12 +- test/built-ins/Atomics/wait/nan-timeout.js | 12 +- .../Atomics/wait/negative-timeout.js | 10 +- .../Atomics/wait/no-spurious-wakeup.js | 20 +- test/built-ins/Atomics/wait/non-views.js | 2 +- .../Atomics/wait/nonshared-int-views.js | 4 +- .../Atomics/wait/shared-nonint-views.js | 9 +- test/built-ins/Atomics/wait/was-woken.js | 13 +- test/built-ins/Atomics/wake/counts.js | 4 +- test/built-ins/Atomics/wake/good-views.js | 12 +- test/built-ins/Atomics/wake/non-views.js | 2 +- .../Atomics/wake/nonshared-int-views.js | 4 +- .../Atomics/wake/shared-nonint-views.js | 9 +- .../built-ins/Atomics/wake/wake-all-on-loc.js | 44 +-- test/built-ins/Atomics/wake/wake-all.js | 44 +-- test/built-ins/Atomics/wake/wake-in-order.js | 36 +-- test/built-ins/Atomics/wake/wake-nan.js | 14 +- test/built-ins/Atomics/wake/wake-negative.js | 14 +- test/built-ins/Atomics/wake/wake-one.js | 42 +-- test/built-ins/Atomics/wake/wake-two.js | 42 +-- test/built-ins/Atomics/wake/wake-zero.js | 42 +-- test/built-ins/Atomics/xor/bad-range.js | 10 +- test/built-ins/Atomics/xor/good-views.js | 92 +++--- test/built-ins/Atomics/xor/non-views.js | 2 +- .../Atomics/xor/nonshared-int-views.js | 4 +- .../Atomics/xor/shared-nonint-views.js | 4 +- test/built-ins/BigInt/asIntN/arithmetic.js | 56 ++-- .../asIntN/bigint-tobigint-toprimitive.js | 20 +- .../asIntN/bigint-tobigint-wrapped-values.js | 30 +- .../BigInt/asIntN/bits-toindex-errors.js | 38 +-- .../BigInt/asIntN/bits-toindex-toprimitive.js | 44 +-- .../asIntN/bits-toindex-wrapped-values.js | 44 +-- test/built-ins/BigInt/asIntN/bits-toindex.js | 2 +- test/built-ins/BigInt/asUintN/arithmetic.js | 40 +-- .../asUintN/bigint-tobigint-toprimitive.js | 20 +- .../asUintN/bigint-tobigint-wrapped-values.js | 30 +- .../BigInt/asUintN/bits-toindex-errors.js | 38 +-- .../asUintN/bits-toindex-toprimitive.js | 44 +-- .../asUintN/bits-toindex-wrapped-values.js | 44 +-- test/built-ins/BigInt/asUintN/bits-toindex.js | 2 +- .../call-value-of-when-to-string-present.js | 1 - .../BigInt/constructor-empty-string.js | 1 - .../BigInt/constructor-from-binary-string.js | 5 +- .../BigInt/constructor-from-decimal-string.js | 1 - .../BigInt/constructor-from-hex-string.js | 1 - .../BigInt/constructor-from-octal-string.js | 1 - .../constructor-trailing-leading-spaces.js | 1 - test/built-ins/BigInt/new-target-throws.js | 4 +- .../BigInt/prototype/Symbol.toStringTag.js | 8 +- .../thisbigintvalue-not-valid-throws.js | 18 +- .../BigInt/prototype/valueOf/return.js | 2 +- test/built-ins/BigInt/value-of-throws.js | 9 +- test/built-ins/Boolean/S15.6.1.1_A1_T1.js | 16 +- test/built-ins/Boolean/S15.6.1.1_A1_T2.js | 32 +-- test/built-ins/Boolean/S15.6.1.1_A1_T3.js | 30 +- test/built-ins/Boolean/S15.6.1.1_A1_T4.js | 30 +- test/built-ins/Boolean/S15.6.1.1_A1_T5.js | 30 +- test/built-ins/Boolean/S15.6.1.1_A2.js | 6 +- test/built-ins/Boolean/S15.6.2.1_A1.js | 8 +- test/built-ins/Boolean/S15.6.3_A1.js | 2 +- test/built-ins/Boolean/S15.6.3_A3.js | 2 +- .../Boolean/prototype/S15.6.3.1_A4.js | 4 +- .../prototype/constructor/S15.6.4.1_A1.js | 2 +- .../prototype/toString/S15.6.4.2_A1_T1.js | 14 +- .../prototype/toString/S15.6.4.2_A1_T2.js | 14 +- .../prototype/toString/S15.6.4.2_A2_T1.js | 16 +- .../prototype/toString/S15.6.4.2_A2_T2.js | 16 +- .../prototype/toString/S15.6.4.2_A2_T3.js | 16 +- .../prototype/toString/S15.6.4.2_A2_T4.js | 16 +- .../prototype/toString/S15.6.4.2_A2_T5.js | 24 +- .../prototype/valueOf/S15.6.4.3_A1_T1.js | 12 +- .../prototype/valueOf/S15.6.4.3_A1_T2.js | 12 +- .../prototype/valueOf/S15.6.4.3_A2_T1.js | 16 +- .../prototype/valueOf/S15.6.4.3_A2_T2.js | 16 +- .../prototype/valueOf/S15.6.4.3_A2_T3.js | 16 +- .../prototype/valueOf/S15.6.4.3_A2_T4.js | 16 +- .../prototype/valueOf/S15.6.4.3_A2_T5.js | 24 +- ...etached-buffer-after-toindex-byteoffset.js | 4 +- ...hed-buffer-before-outofrange-byteoffset.js | 2 +- .../prototype/getBigInt64/detached-buffer.js | 2 +- .../getBigInt64/index-is-out-of-range.js | 14 +- .../getBigInt64/negative-byteoffset-throws.js | 4 +- .../return-abrupt-from-tonumber-byteoffset.js | 12 +- .../return-value-clean-arraybuffer.js | 20 +- .../return-values-custom-offset.js | 20 +- .../prototype/getBigInt64/return-values.js | 36 +-- .../getBigInt64/this-is-not-object.js | 2 +- .../getBigInt64/to-boolean-littleendian.js | 44 +-- .../getBigInt64/toindex-byteoffset-errors.js | 10 +- .../toindex-byteoffset-toprimitive.js | 20 +- .../toindex-byteoffset-wrapped-values.js | 44 +-- .../getBigInt64/toindex-byteoffset.js | 52 ++-- ...etached-buffer-after-toindex-byteoffset.js | 4 +- ...hed-buffer-before-outofrange-byteoffset.js | 2 +- .../prototype/getBigUint64/detached-buffer.js | 2 +- .../getBigUint64/index-is-out-of-range.js | 14 +- .../negative-byteoffset-throws.js | 4 +- .../return-abrupt-from-tonumber-byteoffset.js | 12 +- .../return-value-clean-arraybuffer.js | 20 +- .../return-values-custom-offset.js | 20 +- .../prototype/getBigUint64/return-values.js | 36 +-- .../getBigUint64/this-is-not-object.js | 2 +- .../getBigUint64/to-boolean-littleendian.js | 44 +-- .../getBigUint64/toindex-byteoffset-errors.js | 10 +- .../toindex-byteoffset-toprimitive.js | 20 +- .../toindex-byteoffset-wrapped-values.js | 44 +-- .../getBigUint64/toindex-byteoffset.js | 52 ++-- .../detached-buffer-after-bigint-value.js | 6 +- .../prototype/setBigInt64/detached-buffer.js | 2 +- .../index-check-before-value-conversion.js | 4 +- .../setBigInt64/index-is-out-of-range.js | 36 +-- .../setBigInt64/negative-byteoffset-throws.js | 8 +- .../range-check-after-value-conversion.js | 6 +- .../return-abrupt-from-tobigint-value.js | 12 +- ...-abrupt-from-tonumber-byteoffset-symbol.js | 2 +- .../return-abrupt-from-tonumber-byteoffset.js | 16 +- .../set-values-little-endian-order.js | 24 +- .../set-values-return-undefined.js | 8 +- .../setBigInt64/to-boolean-littleendian.js | 36 +-- .../setBigInt64/toindex-byteoffset.js | 148 +++++----- .../prototype/setInt32/toindex-byteoffset.js | 2 +- test/built-ins/Date/15.9.1.15-1.js | 10 +- test/built-ins/Date/S15.9.2.1_A1.js | 56 ++-- test/built-ins/Date/S15.9.2.1_A2.js | 28 +- test/built-ins/Date/S15.9.3.1_A1_T1.js | 48 ++-- test/built-ins/Date/S15.9.3.1_A1_T2.js | 48 ++-- test/built-ins/Date/S15.9.3.1_A1_T3.js | 48 ++-- test/built-ins/Date/S15.9.3.1_A1_T4.js | 48 ++-- test/built-ins/Date/S15.9.3.1_A1_T5.js | 48 ++-- test/built-ins/Date/S15.9.3.1_A1_T6.js | 48 ++-- test/built-ins/Date/S15.9.3.1_A2_T1.js | 24 +- test/built-ins/Date/S15.9.3.1_A2_T2.js | 24 +- test/built-ins/Date/S15.9.3.1_A2_T3.js | 24 +- test/built-ins/Date/S15.9.3.1_A2_T4.js | 24 +- test/built-ins/Date/S15.9.3.1_A2_T5.js | 24 +- test/built-ins/Date/S15.9.3.1_A2_T6.js | 24 +- test/built-ins/Date/S15.9.3.1_A4_T1.js | 22 +- test/built-ins/Date/S15.9.3.1_A4_T2.js | 28 +- test/built-ins/Date/S15.9.3.1_A4_T3.js | 34 ++- test/built-ins/Date/S15.9.3.1_A4_T4.js | 40 +-- test/built-ins/Date/S15.9.3.1_A4_T5.js | 46 +-- test/built-ins/Date/S15.9.3.1_A4_T6.js | 52 ++-- test/built-ins/Date/S15.9.3.1_A5_T1.js | 2 +- test/built-ins/Date/S15.9.3.1_A6_T1.js | 2 +- test/built-ins/Date/S15.9.3.1_A6_T2.js | 2 +- test/built-ins/Date/S15.9.3.1_A6_T3.js | 2 +- test/built-ins/Date/S15.9.3.1_A6_T4.js | 2 +- test/built-ins/Date/S15.9.3.1_A6_T5.js | 2 +- test/built-ins/Date/S15.9.3.2_A1_T1.js | 32 +-- test/built-ins/Date/S15.9.3.2_A2_T1.js | 16 +- test/built-ins/Date/S15.9.4_A1.js | 2 +- test/built-ins/Date/S15.9.4_A2.js | 2 +- test/built-ins/Date/S15.9.4_A3.js | 2 +- test/built-ins/Date/S15.9.4_A5.js | 2 +- test/built-ins/Date/UTC/S15.9.4.3_A1_T1.js | 2 +- test/built-ins/Date/UTC/S15.9.4.3_A1_T2.js | 2 +- test/built-ins/Date/UTC/S15.9.4.3_A1_T3.js | 4 +- test/built-ins/Date/UTC/S15.9.4.3_A2_T1.js | 4 +- test/built-ins/Date/UTC/S15.9.4.3_A3_T2.js | 2 +- test/built-ins/Date/UTC/S15.9.4.3_A3_T3.js | 4 +- test/built-ins/Date/UTC/coercion-errors.js | 12 +- test/built-ins/Date/UTC/coercion-order.js | 51 +++- test/built-ins/Date/UTC/infinity-make-day.js | 1 - test/built-ins/Date/coercion-errors.js | 12 +- test/built-ins/Date/coercion-order.js | 51 +++- test/built-ins/Date/now/15.9.4.4-0-3.js | 4 +- test/built-ins/Date/parse/S15.9.4.2_A1_T1.js | 2 +- test/built-ins/Date/parse/S15.9.4.2_A1_T2.js | 2 +- test/built-ins/Date/parse/S15.9.4.2_A1_T3.js | 4 +- test/built-ins/Date/parse/S15.9.4.2_A2_T1.js | 4 +- test/built-ins/Date/parse/S15.9.4.2_A3_T2.js | 2 +- test/built-ins/Date/parse/S15.9.4.2_A3_T3.js | 4 +- .../Date/prototype/S15.9.4.1_A1_T3.js | 4 +- .../Date/prototype/S15.9.5_A01_T1.js | 2 +- .../Date/prototype/S15.9.5_A02_T1.js | 2 +- .../Date/prototype/S15.9.5_A03_T1.js | 2 +- .../Date/prototype/S15.9.5_A04_T1.js | 2 +- .../Date/prototype/S15.9.5_A05_T1.js | 2 +- .../Date/prototype/S15.9.5_A06_T1.js | 2 +- .../Date/prototype/S15.9.5_A07_T1.js | 2 +- .../Date/prototype/S15.9.5_A08_T1.js | 2 +- .../Date/prototype/S15.9.5_A09_T1.js | 2 +- .../Date/prototype/S15.9.5_A10_T1.js | 2 +- .../Date/prototype/S15.9.5_A11_T1.js | 2 +- .../Date/prototype/S15.9.5_A12_T1.js | 2 +- .../Date/prototype/S15.9.5_A13_T1.js | 2 +- .../Date/prototype/S15.9.5_A14_T1.js | 2 +- .../Date/prototype/S15.9.5_A15_T1.js | 2 +- .../Date/prototype/S15.9.5_A16_T1.js | 2 +- .../Date/prototype/S15.9.5_A17_T1.js | 2 +- .../Date/prototype/S15.9.5_A18_T1.js | 2 +- .../Date/prototype/S15.9.5_A19_T1.js | 2 +- .../Date/prototype/S15.9.5_A20_T1.js | 2 +- .../Date/prototype/S15.9.5_A21_T1.js | 2 +- .../Date/prototype/S15.9.5_A22_T1.js | 2 +- .../Date/prototype/S15.9.5_A23_T1.js | 2 +- .../Date/prototype/S15.9.5_A24_T1.js | 2 +- .../Date/prototype/S15.9.5_A25_T1.js | 2 +- .../Date/prototype/S15.9.5_A26_T1.js | 2 +- .../Date/prototype/S15.9.5_A27_T1.js | 2 +- .../Date/prototype/S15.9.5_A28_T1.js | 2 +- .../Date/prototype/S15.9.5_A29_T1.js | 2 +- .../Date/prototype/S15.9.5_A30_T1.js | 2 +- .../Date/prototype/S15.9.5_A31_T1.js | 2 +- .../Date/prototype/S15.9.5_A32_T1.js | 2 +- .../Date/prototype/S15.9.5_A33_T1.js | 2 +- .../Date/prototype/S15.9.5_A34_T1.js | 2 +- .../Date/prototype/S15.9.5_A35_T1.js | 2 +- .../Date/prototype/S15.9.5_A36_T1.js | 2 +- .../Date/prototype/S15.9.5_A37_T1.js | 2 +- .../Date/prototype/S15.9.5_A38_T1.js | 2 +- .../Date/prototype/S15.9.5_A39_T1.js | 2 +- .../Date/prototype/S15.9.5_A40_T1.js | 2 +- .../Date/prototype/S15.9.5_A41_T1.js | 2 +- .../Date/prototype/S15.9.5_A42_T1.js | 2 +- .../Symbol.toPrimitive/hint-invalid.js | 6 +- .../prototype/constructor/S15.9.5.1_A1_T1.js | 2 +- .../prototype/constructor/S15.9.5.1_A1_T2.js | 2 +- .../prototype/constructor/S15.9.5.1_A1_T3.js | 4 +- .../prototype/constructor/S15.9.5.1_A2_T1.js | 4 +- .../prototype/constructor/S15.9.5.1_A3_T2.js | 2 +- .../prototype/constructor/S15.9.5.1_A3_T3.js | 4 +- .../prototype/getDate/S15.9.5.14_A1_T1.js | 2 +- .../prototype/getDate/S15.9.5.14_A1_T2.js | 2 +- .../prototype/getDate/S15.9.5.14_A1_T3.js | 4 +- .../prototype/getDate/S15.9.5.14_A2_T1.js | 4 +- .../prototype/getDate/S15.9.5.14_A3_T2.js | 2 +- .../prototype/getDate/S15.9.5.14_A3_T3.js | 4 +- .../prototype/getDate/this-value-non-date.js | 4 +- .../Date/prototype/getDay/S15.9.5.16_A1_T1.js | 2 +- .../Date/prototype/getDay/S15.9.5.16_A1_T2.js | 2 +- .../Date/prototype/getDay/S15.9.5.16_A1_T3.js | 4 +- .../Date/prototype/getDay/S15.9.5.16_A2_T1.js | 4 +- .../Date/prototype/getDay/S15.9.5.16_A3_T2.js | 2 +- .../Date/prototype/getDay/S15.9.5.16_A3_T3.js | 4 +- .../prototype/getDay/this-value-non-date.js | 4 +- .../prototype/getFullYear/S15.9.5.10_A1_T1.js | 2 +- .../prototype/getFullYear/S15.9.5.10_A1_T2.js | 2 +- .../prototype/getFullYear/S15.9.5.10_A1_T3.js | 4 +- .../prototype/getFullYear/S15.9.5.10_A2_T1.js | 4 +- .../prototype/getFullYear/S15.9.5.10_A3_T2.js | 2 +- .../prototype/getFullYear/S15.9.5.10_A3_T3.js | 4 +- .../getFullYear/this-value-non-date.js | 4 +- .../prototype/getHours/S15.9.5.18_A1_T1.js | 2 +- .../prototype/getHours/S15.9.5.18_A1_T2.js | 2 +- .../prototype/getHours/S15.9.5.18_A1_T3.js | 4 +- .../prototype/getHours/S15.9.5.18_A2_T1.js | 4 +- .../prototype/getHours/S15.9.5.18_A3_T2.js | 2 +- .../prototype/getHours/S15.9.5.18_A3_T3.js | 4 +- .../prototype/getHours/this-value-non-date.js | 4 +- .../getMilliseconds/S15.9.5.24_A1_T1.js | 2 +- .../getMilliseconds/S15.9.5.24_A1_T2.js | 2 +- .../getMilliseconds/S15.9.5.24_A1_T3.js | 4 +- .../getMilliseconds/S15.9.5.24_A2_T1.js | 4 +- .../getMilliseconds/S15.9.5.24_A3_T2.js | 2 +- .../getMilliseconds/S15.9.5.24_A3_T3.js | 4 +- .../getMilliseconds/this-value-non-date.js | 4 +- .../prototype/getMinutes/S15.9.5.20_A1_T1.js | 2 +- .../prototype/getMinutes/S15.9.5.20_A1_T2.js | 2 +- .../prototype/getMinutes/S15.9.5.20_A1_T3.js | 4 +- .../prototype/getMinutes/S15.9.5.20_A2_T1.js | 4 +- .../prototype/getMinutes/S15.9.5.20_A3_T2.js | 2 +- .../prototype/getMinutes/S15.9.5.20_A3_T3.js | 4 +- .../getMinutes/this-value-non-date.js | 4 +- .../prototype/getMonth/S15.9.5.12_A1_T1.js | 2 +- .../prototype/getMonth/S15.9.5.12_A1_T2.js | 2 +- .../prototype/getMonth/S15.9.5.12_A1_T3.js | 4 +- .../prototype/getMonth/S15.9.5.12_A2_T1.js | 4 +- .../prototype/getMonth/S15.9.5.12_A3_T2.js | 2 +- .../prototype/getMonth/S15.9.5.12_A3_T3.js | 4 +- .../prototype/getMonth/this-value-non-date.js | 4 +- .../prototype/getSeconds/S15.9.5.22_A1_T1.js | 2 +- .../prototype/getSeconds/S15.9.5.22_A1_T2.js | 2 +- .../prototype/getSeconds/S15.9.5.22_A1_T3.js | 4 +- .../prototype/getSeconds/S15.9.5.22_A2_T1.js | 4 +- .../prototype/getSeconds/S15.9.5.22_A3_T2.js | 2 +- .../prototype/getSeconds/S15.9.5.22_A3_T3.js | 4 +- .../getSeconds/this-value-non-date.js | 4 +- .../Date/prototype/getTime/S15.9.5.9_A1_T1.js | 2 +- .../Date/prototype/getTime/S15.9.5.9_A1_T2.js | 2 +- .../Date/prototype/getTime/S15.9.5.9_A1_T3.js | 4 +- .../Date/prototype/getTime/S15.9.5.9_A2_T1.js | 4 +- .../Date/prototype/getTime/S15.9.5.9_A3_T2.js | 2 +- .../Date/prototype/getTime/S15.9.5.9_A3_T3.js | 4 +- .../prototype/getTime/this-value-non-date.js | 4 +- .../getTimezoneOffset/S15.9.5.26_A1_T1.js | 2 +- .../getTimezoneOffset/S15.9.5.26_A1_T2.js | 2 +- .../getTimezoneOffset/S15.9.5.26_A1_T3.js | 4 +- .../getTimezoneOffset/S15.9.5.26_A2_T1.js | 4 +- .../getTimezoneOffset/S15.9.5.26_A3_T2.js | 2 +- .../getTimezoneOffset/S15.9.5.26_A3_T3.js | 4 +- .../getTimezoneOffset/this-value-non-date.js | 4 +- .../prototype/getUTCDate/S15.9.5.15_A1_T1.js | 2 +- .../prototype/getUTCDate/S15.9.5.15_A1_T2.js | 2 +- .../prototype/getUTCDate/S15.9.5.15_A1_T3.js | 4 +- .../prototype/getUTCDate/S15.9.5.15_A2_T1.js | 4 +- .../prototype/getUTCDate/S15.9.5.15_A3_T2.js | 2 +- .../prototype/getUTCDate/S15.9.5.15_A3_T3.js | 4 +- .../getUTCDate/this-value-non-date.js | 4 +- .../prototype/getUTCDay/S15.9.5.17_A1_T1.js | 2 +- .../prototype/getUTCDay/S15.9.5.17_A1_T2.js | 2 +- .../prototype/getUTCDay/S15.9.5.17_A1_T3.js | 4 +- .../prototype/getUTCDay/S15.9.5.17_A2_T1.js | 4 +- .../prototype/getUTCDay/S15.9.5.17_A3_T2.js | 2 +- .../prototype/getUTCDay/S15.9.5.17_A3_T3.js | 4 +- .../getUTCDay/this-value-non-date.js | 4 +- .../getUTCFullYear/S15.9.5.11_A1_T1.js | 2 +- .../getUTCFullYear/S15.9.5.11_A1_T2.js | 2 +- .../getUTCFullYear/S15.9.5.11_A1_T3.js | 4 +- .../getUTCFullYear/S15.9.5.11_A2_T1.js | 4 +- .../getUTCFullYear/S15.9.5.11_A3_T2.js | 2 +- .../getUTCFullYear/S15.9.5.11_A3_T3.js | 4 +- .../getUTCFullYear/this-value-non-date.js | 4 +- .../prototype/getUTCHours/S15.9.5.19_A1_T1.js | 2 +- .../prototype/getUTCHours/S15.9.5.19_A1_T2.js | 2 +- .../prototype/getUTCHours/S15.9.5.19_A1_T3.js | 4 +- .../prototype/getUTCHours/S15.9.5.19_A2_T1.js | 4 +- .../prototype/getUTCHours/S15.9.5.19_A3_T2.js | 2 +- .../prototype/getUTCHours/S15.9.5.19_A3_T3.js | 4 +- .../getUTCHours/this-value-non-date.js | 4 +- .../getUTCMilliseconds/S15.9.5.25_A1_T1.js | 2 +- .../getUTCMilliseconds/S15.9.5.25_A1_T2.js | 2 +- .../getUTCMilliseconds/S15.9.5.25_A1_T3.js | 4 +- .../getUTCMilliseconds/S15.9.5.25_A2_T1.js | 4 +- .../getUTCMilliseconds/S15.9.5.25_A3_T2.js | 2 +- .../getUTCMilliseconds/S15.9.5.25_A3_T3.js | 4 +- .../getUTCMilliseconds/this-value-non-date.js | 4 +- .../getUTCMinutes/S15.9.5.21_A1_T1.js | 2 +- .../getUTCMinutes/S15.9.5.21_A1_T2.js | 2 +- .../getUTCMinutes/S15.9.5.21_A1_T3.js | 4 +- .../getUTCMinutes/S15.9.5.21_A2_T1.js | 4 +- .../getUTCMinutes/S15.9.5.21_A3_T2.js | 2 +- .../getUTCMinutes/S15.9.5.21_A3_T3.js | 4 +- .../getUTCMinutes/this-value-non-date.js | 4 +- .../prototype/getUTCMonth/S15.9.5.13_A1_T1.js | 2 +- .../prototype/getUTCMonth/S15.9.5.13_A1_T2.js | 2 +- .../prototype/getUTCMonth/S15.9.5.13_A1_T3.js | 4 +- .../prototype/getUTCMonth/S15.9.5.13_A2_T1.js | 4 +- .../prototype/getUTCMonth/S15.9.5.13_A3_T2.js | 2 +- .../prototype/getUTCMonth/S15.9.5.13_A3_T3.js | 4 +- .../getUTCMonth/this-value-non-date.js | 4 +- .../getUTCSeconds/S15.9.5.23_A1_T1.js | 2 +- .../getUTCSeconds/S15.9.5.23_A1_T2.js | 2 +- .../getUTCSeconds/S15.9.5.23_A1_T3.js | 4 +- .../getUTCSeconds/S15.9.5.23_A2_T1.js | 4 +- .../getUTCSeconds/S15.9.5.23_A3_T2.js | 2 +- .../getUTCSeconds/S15.9.5.23_A3_T3.js | 4 +- .../getUTCSeconds/this-value-non-date.js | 4 +- .../prototype/setDate/S15.9.5.36_A1_T1.js | 2 +- .../prototype/setDate/S15.9.5.36_A1_T2.js | 2 +- .../prototype/setDate/S15.9.5.36_A1_T3.js | 4 +- .../prototype/setDate/S15.9.5.36_A2_T1.js | 4 +- .../prototype/setDate/S15.9.5.36_A3_T2.js | 2 +- .../prototype/setDate/S15.9.5.36_A3_T3.js | 4 +- .../prototype/setDate/this-value-non-date.js | 4 +- .../Date/prototype/setFullYear/15.9.5.40_1.js | 2 +- .../prototype/setFullYear/S15.9.5.40_A1_T1.js | 2 +- .../prototype/setFullYear/S15.9.5.40_A1_T2.js | 2 +- .../prototype/setFullYear/S15.9.5.40_A1_T3.js | 4 +- .../prototype/setFullYear/S15.9.5.40_A2_T1.js | 4 +- .../prototype/setFullYear/S15.9.5.40_A3_T2.js | 2 +- .../prototype/setFullYear/S15.9.5.40_A3_T3.js | 4 +- .../setFullYear/this-value-non-date.js | 4 +- .../prototype/setHours/S15.9.5.34_A1_T1.js | 2 +- .../prototype/setHours/S15.9.5.34_A1_T2.js | 2 +- .../prototype/setHours/S15.9.5.34_A1_T3.js | 4 +- .../prototype/setHours/S15.9.5.34_A2_T1.js | 4 +- .../prototype/setHours/S15.9.5.34_A3_T2.js | 2 +- .../prototype/setHours/S15.9.5.34_A3_T3.js | 4 +- .../prototype/setHours/this-value-non-date.js | 4 +- .../setMilliseconds/S15.9.5.28_A1_T1.js | 2 +- .../setMilliseconds/S15.9.5.28_A1_T2.js | 2 +- .../setMilliseconds/S15.9.5.28_A1_T3.js | 4 +- .../setMilliseconds/S15.9.5.28_A2_T1.js | 4 +- .../setMilliseconds/S15.9.5.28_A3_T2.js | 2 +- .../setMilliseconds/S15.9.5.28_A3_T3.js | 4 +- .../setMilliseconds/arg-to-number.js | 2 +- .../setMilliseconds/this-value-non-date.js | 4 +- .../prototype/setMinutes/S15.9.5.32_A1_T1.js | 2 +- .../prototype/setMinutes/S15.9.5.32_A1_T2.js | 2 +- .../prototype/setMinutes/S15.9.5.32_A1_T3.js | 4 +- .../prototype/setMinutes/S15.9.5.32_A2_T1.js | 4 +- .../prototype/setMinutes/S15.9.5.32_A3_T2.js | 2 +- .../prototype/setMinutes/S15.9.5.32_A3_T3.js | 4 +- .../setMinutes/this-value-non-date.js | 4 +- .../prototype/setMonth/S15.9.5.38_A1_T1.js | 2 +- .../prototype/setMonth/S15.9.5.38_A1_T2.js | 2 +- .../prototype/setMonth/S15.9.5.38_A1_T3.js | 4 +- .../prototype/setMonth/S15.9.5.38_A2_T1.js | 4 +- .../prototype/setMonth/S15.9.5.38_A3_T2.js | 2 +- .../prototype/setMonth/S15.9.5.38_A3_T3.js | 4 +- .../prototype/setMonth/this-value-non-date.js | 4 +- .../prototype/setSeconds/S15.9.5.30_A1_T1.js | 2 +- .../prototype/setSeconds/S15.9.5.30_A1_T2.js | 2 +- .../prototype/setSeconds/S15.9.5.30_A1_T3.js | 4 +- .../prototype/setSeconds/S15.9.5.30_A2_T1.js | 4 +- .../prototype/setSeconds/S15.9.5.30_A3_T2.js | 2 +- .../prototype/setSeconds/S15.9.5.30_A3_T3.js | 4 +- .../setSeconds/this-value-non-date.js | 4 +- .../prototype/setTime/S15.9.5.27_A1_T1.js | 2 +- .../prototype/setTime/S15.9.5.27_A1_T2.js | 2 +- .../prototype/setTime/S15.9.5.27_A1_T3.js | 4 +- .../prototype/setTime/S15.9.5.27_A2_T1.js | 4 +- .../prototype/setTime/S15.9.5.27_A3_T2.js | 2 +- .../prototype/setTime/S15.9.5.27_A3_T3.js | 4 +- .../prototype/setTime/this-value-non-date.js | 4 +- .../prototype/setUTCDate/S15.9.5.37_A1_T1.js | 2 +- .../prototype/setUTCDate/S15.9.5.37_A1_T2.js | 2 +- .../prototype/setUTCDate/S15.9.5.37_A1_T3.js | 4 +- .../prototype/setUTCDate/S15.9.5.37_A2_T1.js | 4 +- .../prototype/setUTCDate/S15.9.5.37_A3_T2.js | 2 +- .../prototype/setUTCDate/S15.9.5.37_A3_T3.js | 4 +- .../setUTCFullYear/S15.9.5.41_A1_T1.js | 2 +- .../setUTCFullYear/S15.9.5.41_A1_T2.js | 2 +- .../setUTCFullYear/S15.9.5.41_A1_T3.js | 4 +- .../setUTCFullYear/S15.9.5.41_A2_T1.js | 4 +- .../setUTCFullYear/S15.9.5.41_A3_T2.js | 2 +- .../setUTCFullYear/S15.9.5.41_A3_T3.js | 4 +- .../prototype/setUTCHours/S15.9.5.35_A1_T1.js | 2 +- .../prototype/setUTCHours/S15.9.5.35_A1_T2.js | 2 +- .../prototype/setUTCHours/S15.9.5.35_A1_T3.js | 4 +- .../prototype/setUTCHours/S15.9.5.35_A2_T1.js | 4 +- .../prototype/setUTCHours/S15.9.5.35_A3_T2.js | 2 +- .../prototype/setUTCHours/S15.9.5.35_A3_T3.js | 4 +- .../setUTCMilliseconds/S15.9.5.29_A1_T1.js | 2 +- .../setUTCMilliseconds/S15.9.5.29_A1_T2.js | 2 +- .../setUTCMilliseconds/S15.9.5.29_A1_T3.js | 4 +- .../setUTCMilliseconds/S15.9.5.29_A2_T1.js | 4 +- .../setUTCMilliseconds/S15.9.5.29_A3_T2.js | 2 +- .../setUTCMilliseconds/S15.9.5.29_A3_T3.js | 4 +- .../setUTCMinutes/S15.9.5.33_A1_T1.js | 2 +- .../setUTCMinutes/S15.9.5.33_A1_T2.js | 2 +- .../setUTCMinutes/S15.9.5.33_A1_T3.js | 4 +- .../setUTCMinutes/S15.9.5.33_A2_T1.js | 4 +- .../setUTCMinutes/S15.9.5.33_A3_T2.js | 2 +- .../setUTCMinutes/S15.9.5.33_A3_T3.js | 4 +- .../prototype/setUTCMonth/S15.9.5.39_A1_T1.js | 2 +- .../prototype/setUTCMonth/S15.9.5.39_A1_T2.js | 2 +- .../prototype/setUTCMonth/S15.9.5.39_A1_T3.js | 4 +- .../prototype/setUTCMonth/S15.9.5.39_A2_T1.js | 4 +- .../prototype/setUTCMonth/S15.9.5.39_A3_T2.js | 2 +- .../prototype/setUTCMonth/S15.9.5.39_A3_T3.js | 4 +- .../setUTCSeconds/S15.9.5.31_A1_T1.js | 2 +- .../setUTCSeconds/S15.9.5.31_A1_T2.js | 2 +- .../setUTCSeconds/S15.9.5.31_A1_T3.js | 4 +- .../setUTCSeconds/S15.9.5.31_A2_T1.js | 4 +- .../setUTCSeconds/S15.9.5.31_A3_T2.js | 2 +- .../setUTCSeconds/S15.9.5.31_A3_T3.js | 4 +- .../prototype/toDateString/S15.9.5.3_A1_T1.js | 2 +- .../prototype/toDateString/S15.9.5.3_A1_T2.js | 2 +- .../prototype/toDateString/S15.9.5.3_A1_T3.js | 4 +- .../prototype/toDateString/S15.9.5.3_A2_T1.js | 4 +- .../prototype/toDateString/S15.9.5.3_A3_T2.js | 2 +- .../prototype/toDateString/S15.9.5.3_A3_T3.js | 4 +- .../prototype/toDateString/invalid-date.js | 2 - .../prototype/toISOString/15.9.5.43-0-10.js | 24 +- .../prototype/toISOString/15.9.5.43-0-11.js | 8 +- .../prototype/toISOString/15.9.5.43-0-12.js | 8 +- .../prototype/toISOString/15.9.5.43-0-13.js | 6 +- .../prototype/toISOString/15.9.5.43-0-14.js | 4 +- .../prototype/toISOString/15.9.5.43-0-15.js | 4 +- .../prototype/toISOString/15.9.5.43-0-16.js | 4 +- .../prototype/toISOString/15.9.5.43-0-3.js | 2 +- .../prototype/toISOString/15.9.5.43-0-4.js | 4 +- .../prototype/toISOString/15.9.5.43-0-5.js | 2 +- .../prototype/toISOString/15.9.5.43-0-6.js | 2 +- .../prototype/toISOString/15.9.5.43-0-7.js | 2 +- .../prototype/toISOString/15.9.5.43-0-8.js | 16 +- .../prototype/toISOString/15.9.5.43-0-9.js | 24 +- .../Date/prototype/toJSON/15.9.5.44-0-1.js | 2 +- .../toLocaleDateString/S15.9.5.6_A1_T1.js | 2 +- .../toLocaleDateString/S15.9.5.6_A1_T2.js | 2 +- .../toLocaleDateString/S15.9.5.6_A1_T3.js | 4 +- .../toLocaleDateString/S15.9.5.6_A2_T1.js | 4 +- .../toLocaleDateString/S15.9.5.6_A3_T2.js | 2 +- .../toLocaleDateString/S15.9.5.6_A3_T3.js | 4 +- .../toLocaleString/S15.9.5.5_A1_T1.js | 2 +- .../toLocaleString/S15.9.5.5_A1_T2.js | 2 +- .../toLocaleString/S15.9.5.5_A1_T3.js | 4 +- .../toLocaleString/S15.9.5.5_A2_T1.js | 4 +- .../toLocaleString/S15.9.5.5_A3_T2.js | 2 +- .../toLocaleString/S15.9.5.5_A3_T3.js | 4 +- .../toLocaleTimeString/S15.9.5.7_A1_T1.js | 2 +- .../toLocaleTimeString/S15.9.5.7_A1_T2.js | 2 +- .../toLocaleTimeString/S15.9.5.7_A1_T3.js | 4 +- .../toLocaleTimeString/S15.9.5.7_A2_T1.js | 4 +- .../toLocaleTimeString/S15.9.5.7_A3_T2.js | 2 +- .../toLocaleTimeString/S15.9.5.7_A3_T3.js | 4 +- .../prototype/toString/S15.9.5.2_A1_T1.js | 2 +- .../prototype/toString/S15.9.5.2_A1_T2.js | 2 +- .../prototype/toString/S15.9.5.2_A1_T3.js | 4 +- .../prototype/toString/S15.9.5.2_A2_T1.js | 4 +- .../prototype/toString/S15.9.5.2_A3_T2.js | 2 +- .../prototype/toString/S15.9.5.2_A3_T3.js | 4 +- .../prototype/toString/non-date-receiver.js | 4 +- .../prototype/toTimeString/S15.9.5.4_A1_T1.js | 2 +- .../prototype/toTimeString/S15.9.5.4_A1_T2.js | 2 +- .../prototype/toTimeString/S15.9.5.4_A1_T3.js | 4 +- .../prototype/toTimeString/S15.9.5.4_A2_T1.js | 4 +- .../prototype/toTimeString/S15.9.5.4_A3_T2.js | 2 +- .../prototype/toTimeString/S15.9.5.4_A3_T3.js | 4 +- .../prototype/toTimeString/invalid-date.js | 2 - .../prototype/toUTCString/S15.9.5.42_A1_T1.js | 2 +- .../prototype/toUTCString/S15.9.5.42_A1_T2.js | 2 +- .../prototype/toUTCString/S15.9.5.42_A1_T3.js | 4 +- .../prototype/toUTCString/S15.9.5.42_A2_T1.js | 4 +- .../prototype/toUTCString/S15.9.5.42_A3_T2.js | 2 +- .../prototype/toUTCString/S15.9.5.42_A3_T3.js | 4 +- .../Date/prototype/toUTCString/day-names.js | 14 +- .../prototype/toUTCString/invalid-date.js | 1 - .../Date/prototype/toUTCString/month-names.js | 24 +- .../Date/prototype/valueOf/S15.9.5.8_A1_T1.js | 2 +- .../Date/prototype/valueOf/S15.9.5.8_A1_T2.js | 2 +- .../Date/prototype/valueOf/S15.9.5.8_A1_T3.js | 4 +- .../Date/prototype/valueOf/S15.9.5.8_A2_T1.js | 4 +- .../Date/prototype/valueOf/S15.9.5.8_A3_T2.js | 2 +- .../Date/prototype/valueOf/S15.9.5.8_A3_T3.js | 4 +- .../Date/value-symbol-to-prim-return-obj.js | 4 +- .../Date/value-to-primitive-result-faulty.js | 4 +- test/built-ins/Error/S15.11.1.1_A1_T1.js | 24 +- test/built-ins/Error/S15.11.1.1_A2_T1.js | 6 +- test/built-ins/Error/S15.11.1.1_A3_T1.js | 8 +- test/built-ins/Error/S15.11.1_A1_T1.js | 8 +- test/built-ins/Error/S15.11.2.1_A1_T1.js | 24 +- test/built-ins/Error/S15.11.2.1_A2_T1.js | 6 +- test/built-ins/Error/S15.11.2.1_A3_T1.js | 8 +- test/built-ins/Error/S15.11.3_A1_T1.js | 10 +- test/built-ins/Error/S15.11.3_A2_T1.js | 10 +- .../Error/prototype/S15.11.3.1_A1_T1.js | 6 +- .../Error/prototype/S15.11.3.1_A2_T1.js | 12 +- .../Error/prototype/S15.11.3.1_A3_T1.js | 8 +- .../Error/prototype/S15.11.3.1_A4_T1.js | 2 +- test/built-ins/Error/prototype/S15.11.4_A1.js | 2 +- test/built-ins/Error/prototype/S15.11.4_A2.js | 4 +- test/built-ins/Error/prototype/S15.11.4_A3.js | 6 +- test/built-ins/Error/prototype/S15.11.4_A4.js | 6 +- .../prototype/constructor/S15.11.4.1_A1_T1.js | 2 +- .../prototype/constructor/S15.11.4.1_A1_T2.js | 14 +- .../Error/prototype/message/15.11.4.3-1.js | 6 +- .../Error/prototype/message/S15.11.4.3_A1.js | 2 +- .../Error/prototype/name/15.11.4.2-1.js | 6 +- .../Error/prototype/name/S15.11.4.2_A1.js | 2 +- .../Error/prototype/name/S15.11.4.2_A2.js | 4 +- .../prototype/toString/15.11.4.4-10-1.js | 4 +- .../Error/prototype/toString/15.11.4.4-6-1.js | 2 +- .../Error/prototype/toString/15.11.4.4-6-2.js | 2 +- .../Error/prototype/toString/15.11.4.4-8-1.js | 4 +- .../Error/prototype/toString/15.11.4.4-8-2.js | 4 +- .../Error/prototype/toString/15.11.4.4-9-1.js | 4 +- .../Error/prototype/toString/S15.11.4.4_A1.js | 2 +- .../Error/prototype/toString/S15.11.4.4_A2.js | 14 +- test/built-ins/Function/15.3.2.1-11-1-s.js | 4 +- test/built-ins/Function/15.3.2.1-11-1.js | 2 +- test/built-ins/Function/15.3.2.1-11-2-s.js | 2 +- test/built-ins/Function/15.3.2.1-11-3-s.js | 2 +- test/built-ins/Function/15.3.2.1-11-3.js | 2 +- test/built-ins/Function/15.3.2.1-11-4-s.js | 2 +- test/built-ins/Function/15.3.2.1-11-5-s.js | 4 +- test/built-ins/Function/15.3.2.1-11-5.js | 2 +- test/built-ins/Function/15.3.2.1-11-6-s.js | 2 +- test/built-ins/Function/15.3.2.1-11-7-s.js | 2 +- test/built-ins/Function/15.3.2.1-11-8-s.js | 2 +- test/built-ins/Function/15.3.2.1-11-9-s.js | 2 +- test/built-ins/Function/15.3.5-1gs.js | 1 + test/built-ins/Function/15.3.5.4_2-10gs.js | 4 +- test/built-ins/Function/15.3.5.4_2-11gs.js | 4 +- test/built-ins/Function/15.3.5.4_2-12gs.js | 2 +- test/built-ins/Function/15.3.5.4_2-13gs.js | 4 +- test/built-ins/Function/15.3.5.4_2-14gs.js | 2 +- test/built-ins/Function/15.3.5.4_2-15gs.js | 6 +- test/built-ins/Function/15.3.5.4_2-16gs.js | 8 +- test/built-ins/Function/15.3.5.4_2-17gs.js | 8 +- test/built-ins/Function/15.3.5.4_2-18gs.js | 10 +- test/built-ins/Function/15.3.5.4_2-19gs.js | 8 +- test/built-ins/Function/15.3.5.4_2-1gs.js | 6 +- test/built-ins/Function/15.3.5.4_2-20gs.js | 10 +- test/built-ins/Function/15.3.5.4_2-21gs.js | 12 +- test/built-ins/Function/15.3.5.4_2-22gs.js | 12 +- test/built-ins/Function/15.3.5.4_2-23gs.js | 10 +- test/built-ins/Function/15.3.5.4_2-24gs.js | 14 +- test/built-ins/Function/15.3.5.4_2-25gs.js | 14 +- test/built-ins/Function/15.3.5.4_2-26gs.js | 12 +- test/built-ins/Function/15.3.5.4_2-27gs.js | 14 +- test/built-ins/Function/15.3.5.4_2-28gs.js | 14 +- test/built-ins/Function/15.3.5.4_2-29gs.js | 10 +- test/built-ins/Function/15.3.5.4_2-2gs.js | 8 +- test/built-ins/Function/15.3.5.4_2-30gs.js | 15 +- test/built-ins/Function/15.3.5.4_2-31gs.js | 14 +- test/built-ins/Function/15.3.5.4_2-32gs.js | 12 +- test/built-ins/Function/15.3.5.4_2-33gs.js | 17 +- test/built-ins/Function/15.3.5.4_2-34gs.js | 16 +- test/built-ins/Function/15.3.5.4_2-35gs.js | 14 +- test/built-ins/Function/15.3.5.4_2-36gs.js | 17 +- test/built-ins/Function/15.3.5.4_2-37gs.js | 16 +- test/built-ins/Function/15.3.5.4_2-38gs.js | 12 +- test/built-ins/Function/15.3.5.4_2-39gs.js | 14 +- test/built-ins/Function/15.3.5.4_2-3gs.js | 8 +- test/built-ins/Function/15.3.5.4_2-40gs.js | 14 +- test/built-ins/Function/15.3.5.4_2-41gs.js | 12 +- test/built-ins/Function/15.3.5.4_2-42gs.js | 16 +- test/built-ins/Function/15.3.5.4_2-43gs.js | 16 +- test/built-ins/Function/15.3.5.4_2-44gs.js | 14 +- test/built-ins/Function/15.3.5.4_2-45gs.js | 16 +- test/built-ins/Function/15.3.5.4_2-46gs.js | 16 +- test/built-ins/Function/15.3.5.4_2-47gs.js | 12 +- test/built-ins/Function/15.3.5.4_2-48gs.js | 10 +- test/built-ins/Function/15.3.5.4_2-49gs.js | 11 +- test/built-ins/Function/15.3.5.4_2-4gs.js | 10 +- test/built-ins/Function/15.3.5.4_2-50gs.js | 10 +- test/built-ins/Function/15.3.5.4_2-51gs.js | 11 +- test/built-ins/Function/15.3.5.4_2-52gs.js | 10 +- test/built-ins/Function/15.3.5.4_2-53gs.js | 11 +- test/built-ins/Function/15.3.5.4_2-54gs.js | 10 +- test/built-ins/Function/15.3.5.4_2-55gs.js | 11 +- test/built-ins/Function/15.3.5.4_2-56gs.js | 14 +- test/built-ins/Function/15.3.5.4_2-57gs.js | 9 +- test/built-ins/Function/15.3.5.4_2-58gs.js | 9 +- test/built-ins/Function/15.3.5.4_2-59gs.js | 9 +- test/built-ins/Function/15.3.5.4_2-5gs.js | 8 +- test/built-ins/Function/15.3.5.4_2-60gs.js | 9 +- test/built-ins/Function/15.3.5.4_2-61gs.js | 9 +- test/built-ins/Function/15.3.5.4_2-62gs.js | 9 +- test/built-ins/Function/15.3.5.4_2-63gs.js | 9 +- test/built-ins/Function/15.3.5.4_2-64gs.js | 10 +- test/built-ins/Function/15.3.5.4_2-65gs.js | 9 +- test/built-ins/Function/15.3.5.4_2-66gs.js | 9 +- test/built-ins/Function/15.3.5.4_2-67gs.js | 9 +- test/built-ins/Function/15.3.5.4_2-68gs.js | 9 +- test/built-ins/Function/15.3.5.4_2-69gs.js | 10 +- test/built-ins/Function/15.3.5.4_2-6gs.js | 10 +- test/built-ins/Function/15.3.5.4_2-70gs.js | 9 +- test/built-ins/Function/15.3.5.4_2-71gs.js | 9 +- test/built-ins/Function/15.3.5.4_2-72gs.js | 9 +- test/built-ins/Function/15.3.5.4_2-73gs.js | 9 +- test/built-ins/Function/15.3.5.4_2-74gs.js | 10 +- test/built-ins/Function/15.3.5.4_2-75gs.js | 14 +- test/built-ins/Function/15.3.5.4_2-76gs.js | 11 +- test/built-ins/Function/15.3.5.4_2-77gs.js | 11 +- test/built-ins/Function/15.3.5.4_2-78gs.js | 11 +- test/built-ins/Function/15.3.5.4_2-79gs.js | 11 +- test/built-ins/Function/15.3.5.4_2-7gs.js | 4 +- test/built-ins/Function/15.3.5.4_2-80gs.js | 11 +- test/built-ins/Function/15.3.5.4_2-81gs.js | 11 +- test/built-ins/Function/15.3.5.4_2-82gs.js | 11 +- test/built-ins/Function/15.3.5.4_2-83gs.js | 12 +- test/built-ins/Function/15.3.5.4_2-84gs.js | 11 +- test/built-ins/Function/15.3.5.4_2-85gs.js | 11 +- test/built-ins/Function/15.3.5.4_2-86gs.js | 11 +- test/built-ins/Function/15.3.5.4_2-87gs.js | 11 +- test/built-ins/Function/15.3.5.4_2-88gs.js | 12 +- test/built-ins/Function/15.3.5.4_2-89gs.js | 11 +- test/built-ins/Function/15.3.5.4_2-8gs.js | 4 +- test/built-ins/Function/15.3.5.4_2-90gs.js | 11 +- test/built-ins/Function/15.3.5.4_2-91gs.js | 11 +- test/built-ins/Function/15.3.5.4_2-92gs.js | 11 +- test/built-ins/Function/15.3.5.4_2-93gs.js | 12 +- test/built-ins/Function/15.3.5.4_2-94gs.js | 10 +- test/built-ins/Function/15.3.5.4_2-95gs.js | 6 +- test/built-ins/Function/15.3.5.4_2-96gs.js | 16 +- test/built-ins/Function/15.3.5.4_2-97gs.js | 8 +- test/built-ins/Function/15.3.5.4_2-9gs.js | 4 +- test/built-ins/Function/S10.1.1_A1_T3.js | 6 +- test/built-ins/Function/S15.3.1_A1_T1.js | 2 +- test/built-ins/Function/S15.3.2.1_A1_T1.js | 8 +- test/built-ins/Function/S15.3.2.1_A1_T10.js | 2 +- test/built-ins/Function/S15.3.2.1_A1_T11.js | 2 +- test/built-ins/Function/S15.3.2.1_A1_T12.js | 4 +- test/built-ins/Function/S15.3.2.1_A1_T13.js | 4 +- test/built-ins/Function/S15.3.2.1_A1_T2.js | 12 +- test/built-ins/Function/S15.3.2.1_A1_T3.js | 4 +- test/built-ins/Function/S15.3.2.1_A1_T4.js | 4 +- test/built-ins/Function/S15.3.2.1_A1_T5.js | 4 +- test/built-ins/Function/S15.3.2.1_A1_T6.js | 2 +- test/built-ins/Function/S15.3.2.1_A1_T7.js | 4 +- test/built-ins/Function/S15.3.2.1_A1_T8.js | 2 +- test/built-ins/Function/S15.3.2.1_A2_T1.js | 4 +- test/built-ins/Function/S15.3.2.1_A2_T2.js | 4 +- test/built-ins/Function/S15.3.2.1_A2_T3.js | 4 +- test/built-ins/Function/S15.3.2.1_A2_T4.js | 12 +- test/built-ins/Function/S15.3.2.1_A2_T5.js | 14 +- test/built-ins/Function/S15.3.2.1_A2_T6.js | 14 +- test/built-ins/Function/S15.3.2.1_A3_T1.js | 16 +- test/built-ins/Function/S15.3.2.1_A3_T10.js | 10 +- test/built-ins/Function/S15.3.2.1_A3_T11.js | 4 +- test/built-ins/Function/S15.3.2.1_A3_T12.js | 4 +- test/built-ins/Function/S15.3.2.1_A3_T13.js | 4 +- test/built-ins/Function/S15.3.2.1_A3_T14.js | 4 +- test/built-ins/Function/S15.3.2.1_A3_T15.js | 4 +- test/built-ins/Function/S15.3.2.1_A3_T2.js | 12 +- test/built-ins/Function/S15.3.2.1_A3_T3.js | 17 +- test/built-ins/Function/S15.3.2.1_A3_T4.js | 6 +- test/built-ins/Function/S15.3.2.1_A3_T5.js | 6 +- test/built-ins/Function/S15.3.2.1_A3_T6.js | 4 +- test/built-ins/Function/S15.3.2.1_A3_T7.js | 6 +- test/built-ins/Function/S15.3.2.1_A3_T8.js | 6 +- test/built-ins/Function/S15.3.2.1_A3_T9.js | 6 +- test/built-ins/Function/S15.3.3_A1.js | 2 +- test/built-ins/Function/S15.3.3_A3.js | 2 +- test/built-ins/Function/S15.3.5_A2_T2.js | 2 +- test/built-ins/Function/S15.3.5_A3_T2.js | 4 +- test/built-ins/Function/S15.3_A2_T1.js | 6 +- test/built-ins/Function/S15.3_A2_T2.js | 6 +- test/built-ins/Function/S15.3_A3_T1.js | 8 +- test/built-ins/Function/S15.3_A3_T2.js | 4 +- test/built-ins/Function/S15.3_A3_T3.js | 18 +- test/built-ins/Function/S15.3_A3_T4.js | 6 +- test/built-ins/Function/S15.3_A3_T5.js | 10 +- test/built-ins/Function/S15.3_A3_T6.js | 6 +- test/built-ins/Function/length/15.3.3.2-1.js | 2 +- .../Function/length/S15.3.5.1_A1_T2.js | 2 +- .../Function/length/S15.3.5.1_A1_T3.js | 2 +- .../Function/length/S15.3.5.1_A2_T1.js | 2 +- .../Function/length/S15.3.5.1_A2_T2.js | 2 +- .../Function/length/S15.3.5.1_A2_T3.js | 2 +- .../Function/length/S15.3.5.1_A3_T1.js | 4 +- .../Function/length/S15.3.5.1_A3_T2.js | 4 +- .../Function/length/S15.3.5.1_A3_T3.js | 4 +- .../Function/length/S15.3.5.1_A4_T1.js | 8 +- .../Function/length/S15.3.5.1_A4_T2.js | 10 +- .../Function/length/S15.3.5.1_A4_T3.js | 10 +- .../Function/prototype/S15.3.3.1_A1.js | 10 +- .../Function/prototype/S15.3.3.1_A2.js | 6 +- .../Function/prototype/S15.3.3.1_A4.js | 6 +- .../Function/prototype/S15.3.4_A1.js | 2 +- .../Function/prototype/S15.3.4_A2_T1.js | 2 +- .../Function/prototype/S15.3.4_A2_T2.js | 4 +- .../Function/prototype/S15.3.4_A2_T3.js | 2 +- .../Function/prototype/S15.3.4_A3_T1.js | 4 +- .../Function/prototype/S15.3.4_A3_T2.js | 2 +- .../this-val-poisoned-prototype.js | 4 +- .../Function/prototype/apply/15.3.4.3-1-s.js | 6 +- .../Function/prototype/apply/15.3.4.3-2-s.js | 6 +- .../Function/prototype/apply/15.3.4.3-3-s.js | 6 +- .../Function/prototype/apply/S15.3.4.3_A10.js | 4 +- .../Function/prototype/apply/S15.3.4.3_A11.js | 6 +- .../Function/prototype/apply/S15.3.4.3_A12.js | 2 +- .../Function/prototype/apply/S15.3.4.3_A16.js | 2 +- .../prototype/apply/S15.3.4.3_A1_T1.js | 8 +- .../prototype/apply/S15.3.4.3_A1_T2.js | 6 +- .../prototype/apply/S15.3.4.3_A2_T2.js | 2 +- .../prototype/apply/S15.3.4.3_A3_T5.js | 2 +- .../prototype/apply/S15.3.4.3_A3_T6.js | 6 +- .../prototype/apply/S15.3.4.3_A3_T7.js | 2 +- .../prototype/apply/S15.3.4.3_A3_T8.js | 6 +- .../prototype/apply/S15.3.4.3_A3_T9.js | 2 +- .../prototype/apply/S15.3.4.3_A5_T1.js | 2 +- .../prototype/apply/S15.3.4.3_A5_T2.js | 2 +- .../prototype/apply/S15.3.4.3_A5_T3.js | 7 +- .../prototype/apply/S15.3.4.3_A5_T4.js | 5 +- .../prototype/apply/S15.3.4.3_A5_T5.js | 6 +- .../prototype/apply/S15.3.4.3_A5_T6.js | 6 +- .../prototype/apply/S15.3.4.3_A5_T7.js | 2 +- .../prototype/apply/S15.3.4.3_A5_T8.js | 2 +- .../prototype/apply/S15.3.4.3_A6_T2.js | 4 +- .../prototype/apply/S15.3.4.3_A6_T3.js | 6 +- .../prototype/apply/S15.3.4.3_A7_T1.js | 2 +- .../prototype/apply/S15.3.4.3_A7_T10.js | 8 +- .../prototype/apply/S15.3.4.3_A7_T2.js | 2 +- .../prototype/apply/S15.3.4.3_A7_T3.js | 12 +- .../prototype/apply/S15.3.4.3_A7_T4.js | 14 +- .../prototype/apply/S15.3.4.3_A7_T5.js | 6 +- .../prototype/apply/S15.3.4.3_A7_T6.js | 6 +- .../prototype/apply/S15.3.4.3_A7_T7.js | 6 +- .../prototype/apply/S15.3.4.3_A7_T8.js | 6 +- .../prototype/apply/S15.3.4.3_A7_T9.js | 6 +- .../prototype/apply/S15.3.4.3_A8_T4.js | 2 +- .../prototype/apply/S15.3.4.3_A8_T6.js | 4 +- .../Function/prototype/bind/15.3.4.5-0-1.js | 2 +- .../Function/prototype/bind/15.3.4.5-10-1.js | 4 +- .../Function/prototype/bind/15.3.4.5-11-1.js | 6 +- .../prototype/bind/15.3.4.5-13.b-1.js | 8 +- .../prototype/bind/15.3.4.5-13.b-2.js | 8 +- .../prototype/bind/15.3.4.5-13.b-3.js | 8 +- .../prototype/bind/15.3.4.5-13.b-4.js | 8 +- .../prototype/bind/15.3.4.5-13.b-5.js | 8 +- .../prototype/bind/15.3.4.5-13.b-6.js | 6 +- .../Function/prototype/bind/15.3.4.5-15-1.js | 10 +- .../Function/prototype/bind/15.3.4.5-15-2.js | 10 +- .../Function/prototype/bind/15.3.4.5-15-3.js | 2 +- .../Function/prototype/bind/15.3.4.5-15-4.js | 21 +- .../Function/prototype/bind/15.3.4.5-15-5.js | 15 +- .../Function/prototype/bind/15.3.4.5-16-1.js | 10 +- .../Function/prototype/bind/15.3.4.5-16-2.js | 6 +- .../Function/prototype/bind/15.3.4.5-2-1.js | 10 +- .../Function/prototype/bind/15.3.4.5-2-10.js | 2 +- .../Function/prototype/bind/15.3.4.5-2-11.js | 2 +- .../Function/prototype/bind/15.3.4.5-2-12.js | 2 +- .../Function/prototype/bind/15.3.4.5-2-13.js | 2 +- .../Function/prototype/bind/15.3.4.5-2-14.js | 2 +- .../Function/prototype/bind/15.3.4.5-2-15.js | 2 +- .../Function/prototype/bind/15.3.4.5-2-16.js | 4 +- .../Function/prototype/bind/15.3.4.5-2-2.js | 10 +- .../Function/prototype/bind/15.3.4.5-2-3.js | 4 +- .../Function/prototype/bind/15.3.4.5-2-4.js | 4 +- .../Function/prototype/bind/15.3.4.5-2-5.js | 4 +- .../Function/prototype/bind/15.3.4.5-2-6.js | 4 +- .../Function/prototype/bind/15.3.4.5-2-7.js | 2 +- .../Function/prototype/bind/15.3.4.5-2-8.js | 8 +- .../Function/prototype/bind/15.3.4.5-2-9.js | 4 +- .../Function/prototype/bind/15.3.4.5-20-2.js | 6 +- .../Function/prototype/bind/15.3.4.5-20-3.js | 6 +- .../Function/prototype/bind/15.3.4.5-21-2.js | 6 +- .../Function/prototype/bind/15.3.4.5-21-3.js | 6 +- .../Function/prototype/bind/15.3.4.5-3-1.js | 10 +- .../Function/prototype/bind/15.3.4.5-6-1.js | 6 +- .../Function/prototype/bind/15.3.4.5-6-10.js | 24 +- .../Function/prototype/bind/15.3.4.5-6-11.js | 14 +- .../Function/prototype/bind/15.3.4.5-6-12.js | 6 +- .../Function/prototype/bind/15.3.4.5-6-2.js | 6 +- .../Function/prototype/bind/15.3.4.5-6-3.js | 8 +- .../Function/prototype/bind/15.3.4.5-6-4.js | 24 +- .../Function/prototype/bind/15.3.4.5-6-5.js | 14 +- .../Function/prototype/bind/15.3.4.5-6-6.js | 16 +- .../Function/prototype/bind/15.3.4.5-6-7.js | 16 +- .../Function/prototype/bind/15.3.4.5-6-8.js | 26 +- .../Function/prototype/bind/15.3.4.5-6-9.js | 12 +- .../Function/prototype/bind/15.3.4.5-8-1.js | 8 +- .../Function/prototype/bind/15.3.4.5-8-2.js | 10 +- .../Function/prototype/bind/15.3.4.5-9-1.js | 8 +- .../Function/prototype/bind/15.3.4.5-9-2.js | 8 +- .../Function/prototype/bind/15.3.4.5.1-4-1.js | 8 +- .../prototype/bind/15.3.4.5.1-4-10.js | 12 +- .../prototype/bind/15.3.4.5.1-4-11.js | 12 +- .../prototype/bind/15.3.4.5.1-4-12.js | 14 +- .../prototype/bind/15.3.4.5.1-4-13.js | 14 +- .../prototype/bind/15.3.4.5.1-4-14.js | 14 +- .../prototype/bind/15.3.4.5.1-4-15.js | 14 +- .../Function/prototype/bind/15.3.4.5.1-4-2.js | 12 +- .../Function/prototype/bind/15.3.4.5.1-4-3.js | 8 +- .../Function/prototype/bind/15.3.4.5.1-4-4.js | 8 +- .../Function/prototype/bind/15.3.4.5.1-4-5.js | 8 +- .../Function/prototype/bind/15.3.4.5.1-4-6.js | 12 +- .../Function/prototype/bind/15.3.4.5.1-4-7.js | 12 +- .../Function/prototype/bind/15.3.4.5.1-4-8.js | 12 +- .../Function/prototype/bind/15.3.4.5.1-4-9.js | 12 +- .../Function/prototype/bind/15.3.4.5.2-4-1.js | 16 +- .../prototype/bind/15.3.4.5.2-4-10.js | 10 +- .../prototype/bind/15.3.4.5.2-4-11.js | 10 +- .../prototype/bind/15.3.4.5.2-4-12.js | 10 +- .../prototype/bind/15.3.4.5.2-4-13.js | 10 +- .../prototype/bind/15.3.4.5.2-4-14.js | 10 +- .../Function/prototype/bind/15.3.4.5.2-4-2.js | 16 +- .../Function/prototype/bind/15.3.4.5.2-4-3.js | 10 +- .../Function/prototype/bind/15.3.4.5.2-4-4.js | 10 +- .../Function/prototype/bind/15.3.4.5.2-4-5.js | 18 +- .../Function/prototype/bind/15.3.4.5.2-4-6.js | 10 +- .../Function/prototype/bind/15.3.4.5.2-4-7.js | 10 +- .../Function/prototype/bind/15.3.4.5.2-4-8.js | 10 +- .../Function/prototype/bind/15.3.4.5.2-4-9.js | 10 +- .../Function/prototype/bind/S15.3.4.5_A1.js | 9 +- .../Function/prototype/bind/S15.3.4.5_A16.js | 2 +- .../Function/prototype/bind/S15.3.4.5_A2.js | 9 +- ...e-construct-newtarget-boundtarget-bound.js | 1 + ...nstance-construct-newtarget-boundtarget.js | 1 + .../instance-construct-newtarget-self-new.js | 1 + ...stance-construct-newtarget-self-reflect.js | 1 + .../prototype/bind/instance-name-chained.js | 4 +- .../bind/instance-name-non-string.js | 24 +- .../Function/prototype/bind/instance-name.js | 4 +- .../prototype/bind/proto-from-ctor-realm.js | 2 +- .../Function/prototype/call/15.3.4.4-1-s.js | 6 +- .../Function/prototype/call/15.3.4.4-2-s.js | 6 +- .../Function/prototype/call/15.3.4.4-3-s.js | 6 +- .../Function/prototype/call/S15.3.4.4_A10.js | 4 +- .../Function/prototype/call/S15.3.4.4_A11.js | 4 +- .../Function/prototype/call/S15.3.4.4_A12.js | 2 +- .../Function/prototype/call/S15.3.4.4_A16.js | 2 +- .../prototype/call/S15.3.4.4_A1_T1.js | 8 +- .../prototype/call/S15.3.4.4_A1_T2.js | 6 +- .../prototype/call/S15.3.4.4_A2_T2.js | 2 +- .../prototype/call/S15.3.4.4_A3_T5.js | 2 +- .../prototype/call/S15.3.4.4_A3_T6.js | 6 +- .../prototype/call/S15.3.4.4_A3_T7.js | 2 +- .../prototype/call/S15.3.4.4_A3_T8.js | 6 +- .../prototype/call/S15.3.4.4_A3_T9.js | 2 +- .../prototype/call/S15.3.4.4_A5_T1.js | 2 +- .../prototype/call/S15.3.4.4_A5_T2.js | 2 +- .../prototype/call/S15.3.4.4_A5_T3.js | 7 +- .../prototype/call/S15.3.4.4_A5_T4.js | 5 +- .../prototype/call/S15.3.4.4_A5_T5.js | 6 +- .../prototype/call/S15.3.4.4_A5_T6.js | 6 +- .../prototype/call/S15.3.4.4_A5_T7.js | 2 +- .../prototype/call/S15.3.4.4_A5_T8.js | 2 +- .../prototype/call/S15.3.4.4_A6_T1.js | 2 +- .../prototype/call/S15.3.4.4_A6_T10.js | 8 +- .../prototype/call/S15.3.4.4_A6_T2.js | 4 +- .../prototype/call/S15.3.4.4_A6_T3.js | 14 +- .../prototype/call/S15.3.4.4_A6_T4.js | 14 +- .../prototype/call/S15.3.4.4_A6_T5.js | 6 +- .../prototype/call/S15.3.4.4_A6_T6.js | 6 +- .../prototype/call/S15.3.4.4_A6_T7.js | 6 +- .../prototype/call/S15.3.4.4_A6_T8.js | 6 +- .../prototype/call/S15.3.4.4_A6_T9.js | 6 +- .../prototype/call/S15.3.4.4_A7_T4.js | 2 +- .../prototype/call/S15.3.4.4_A7_T6.js | 4 +- .../restricted-property-arguments.js | 2 +- .../prototype/restricted-property-caller.js | 2 +- .../prototype/toString/AsyncFunction.js | 2 +- .../prototype/toString/AsyncGenerator.js | 2 +- .../Function/prototype/toString/Function.js | 2 +- .../prototype/toString/GeneratorFunction.js | 4 +- .../prototype/toString/S15.3.4.2_A10.js | 4 +- .../prototype/toString/S15.3.4.2_A16.js | 4 +- .../prototype/toString/S15.3.4.2_A6.js | 2 +- .../prototype/toString/S15.3.4.2_A8.js | 6 +- .../prototype/toString/arrow-function.js | 7 +- .../toString/async-arrow-function.js | 7 +- .../toString/async-function-declaration.js | 4 +- .../toString/async-function-expression.js | 6 +- .../toString/async-generator-declaration.js | 4 +- .../toString/async-generator-expression.js | 6 +- ...enerator-method-class-expression-static.js | 12 +- ...async-generator-method-class-expression.js | 12 +- ...generator-method-class-statement-static.js | 12 +- .../async-generator-method-class-statement.js | 12 +- .../toString/async-generator-method-object.js | 12 +- .../async-method-class-expression-static.js | 12 +- .../toString/async-method-class-expression.js | 12 +- .../async-method-class-statement-static.js | 12 +- .../toString/async-method-class-statement.js | 12 +- .../prototype/toString/async-method-object.js | 12 +- .../prototype/toString/bound-function.js | 2 +- .../class-declaration-complex-heritage.js | 3 +- .../class-declaration-explicit-ctor.js | 9 +- .../class-declaration-implicit-ctor.js | 11 +- .../class-expression-explicit-ctor.js | 8 +- .../class-expression-implicit-ctor.js | 8 +- ...n-declaration-non-simple-parameter-list.js | 5 +- .../toString/function-declaration.js | 4 +- .../prototype/toString/function-expression.js | 6 +- .../generator-function-declaration.js | 4 +- .../toString/generator-function-expression.js | 6 +- .../prototype/toString/generator-method.js | 9 +- .../getter-class-expression-static.js | 12 +- .../toString/getter-class-expression.js | 12 +- .../toString/getter-class-statement-static.js | 12 +- .../toString/getter-class-statement.js | 12 +- .../prototype/toString/getter-object.js | 12 +- .../Function/prototype/toString/intrinsics.js | 47 ++- .../line-terminator-normalisation-CR-LF.js | 72 ++--- .../line-terminator-normalisation-CR.js | 37 ++- .../line-terminator-normalisation-LF.js | 24 +- .../method-class-expression-static.js | 12 +- .../toString/method-class-expression.js | 12 +- .../toString/method-class-statement-static.js | 12 +- .../toString/method-class-statement.js | 12 +- .../toString/method-computed-property-name.js | 10 +- .../prototype/toString/method-object.js | 4 +- .../setter-class-expression-static.js | 12 +- .../toString/setter-class-expression.js | 12 +- .../toString/setter-class-statement-static.js | 12 +- .../toString/setter-class-statement.js | 12 +- .../prototype/toString/setter-object.js | 12 +- .../Function/prototype/toString/unicode.js | 9 +- .../GeneratorFunction/extensibility.js | 2 +- .../GeneratorFunction/has-instance.js | 4 +- .../instance-construct-throws.js | 4 +- .../GeneratorFunction/instance-length.js | 2 +- .../GeneratorFunction/instance-name.js | 2 +- .../GeneratorFunction/instance-prototype.js | 2 +- .../instance-yield-expr-in-param.js | 2 +- .../invoked-as-constructor-no-arguments.js | 2 +- .../invoked-as-function-multiple-arguments.js | 2 +- .../invoked-as-function-no-arguments.js | 2 +- .../invoked-as-function-single-argument.js | 2 +- test/built-ins/GeneratorFunction/length.js | 2 +- test/built-ins/GeneratorFunction/name.js | 2 +- .../proto-from-ctor-realm.js | 4 +- .../prototype/constructor.js | 2 +- .../prototype/extensibility.js | 2 +- .../GeneratorFunction/prototype/prop-desc.js | 2 +- .../next/consecutive-yields.js | 5 +- .../next/context-method-invocation.js | 9 +- .../next/from-state-executing.js | 2 + .../GeneratorPrototype/next/lone-return.js | 4 +- .../GeneratorPrototype/next/lone-yield.js | 4 +- .../next/this-val-not-generator.js | 32 ++- .../next/this-val-not-object.js | 48 +++- .../return/from-state-executing.js | 1 + .../return/from-state-suspended-start.js | 1 + .../return/this-val-not-generator.js | 32 ++- .../return/this-val-not-object.js | 48 +++- .../return/try-catch-before-try.js | 1 + .../return/try-catch-following-catch.js | 1 + .../return/try-catch-within-catch.js | 1 + .../return/try-catch-within-try.js | 1 + .../return/try-finally-before-try.js | 5 +- .../return/try-finally-following-finally.js | 4 +- ...y-finally-nested-try-catch-within-catch.js | 1 + ...finally-nested-try-catch-within-finally.js | 4 +- ...nally-nested-try-catch-within-inner-try.js | 1 + ...try-catch-within-outer-try-after-nested.js | 3 +- ...ry-catch-within-outer-try-before-nested.js | 1 + .../return/try-finally-within-finally.js | 4 +- .../return/try-finally-within-try.js | 1 + .../throw/from-state-completed.js | 5 +- .../throw/from-state-executing.js | 1 + .../throw/from-state-suspended-start.js | 5 +- .../throw/this-val-not-generator.js | 32 ++- .../throw/this-val-not-object.js | 48 +++- .../throw/try-catch-before-try.js | 5 +- .../throw/try-catch-following-catch.js | 5 +- .../throw/try-catch-within-catch.js | 5 +- .../throw/try-catch-within-try.js | 1 + .../throw/try-finally-before-try.js | 7 +- .../throw/try-finally-following-finally.js | 5 +- ...y-finally-nested-try-catch-within-catch.js | 5 +- ...finally-nested-try-catch-within-finally.js | 5 +- ...nally-nested-try-catch-within-inner-try.js | 1 + ...try-catch-within-outer-try-after-nested.js | 5 +- ...ry-catch-within-outer-try-before-nested.js | 5 +- .../throw/try-finally-within-finally.js | 5 +- .../throw/try-finally-within-try.js | 5 +- test/built-ins/Infinity/15.1.1.2-0.js | 2 +- test/built-ins/Infinity/S15.1.1.2_A1.js | 8 +- test/built-ins/Infinity/S15.1.1.2_A2_T1.js | 2 +- test/built-ins/Infinity/S15.1.1.2_A2_T2.js | 2 +- test/built-ins/Infinity/S15.1.1.2_A3_T2.js | 2 +- test/built-ins/Infinity/S15.1.1.2_A4.js | 2 +- test/built-ins/JSON/15.12-0-1.js | 2 +- test/built-ins/JSON/15.12-0-2.js | 4 +- test/built-ins/JSON/15.12-0-3.js | 4 +- test/built-ins/JSON/15.12-0-4.js | 12 +- test/built-ins/JSON/parse/15.12.1.1-0-1.js | 2 +- test/built-ins/JSON/parse/15.12.1.1-0-2.js | 2 +- test/built-ins/JSON/parse/15.12.1.1-0-3.js | 2 +- test/built-ins/JSON/parse/15.12.1.1-0-4.js | 2 +- test/built-ins/JSON/parse/15.12.1.1-0-5.js | 2 +- test/built-ins/JSON/parse/15.12.1.1-0-6.js | 2 +- test/built-ins/JSON/parse/15.12.1.1-0-8.js | 2 +- test/built-ins/JSON/parse/15.12.1.1-0-9.js | 10 +- test/built-ins/JSON/parse/15.12.1.1-g1-1.js | 2 +- test/built-ins/JSON/parse/15.12.1.1-g1-2.js | 2 +- test/built-ins/JSON/parse/15.12.1.1-g1-3.js | 2 +- test/built-ins/JSON/parse/15.12.1.1-g1-4.js | 2 +- test/built-ins/JSON/parse/15.12.1.1-g2-4.js | 2 +- test/built-ins/JSON/parse/15.12.1.1-g4-1.js | 2 +- test/built-ins/JSON/parse/15.12.1.1-g4-2.js | 2 +- test/built-ins/JSON/parse/15.12.1.1-g4-3.js | 2 +- test/built-ins/JSON/parse/15.12.1.1-g4-4.js | 2 +- test/built-ins/JSON/parse/15.12.1.1-g5-2.js | 2 +- test/built-ins/JSON/parse/15.12.1.1-g5-3.js | 2 +- test/built-ins/JSON/parse/15.12.2-0-1.js | 2 +- test/built-ins/JSON/parse/15.12.2-0-2.js | 2 +- test/built-ins/JSON/parse/15.12.2-0-3.js | 4 +- test/built-ins/JSON/parse/15.12.2-2-1.js | 76 ++--- test/built-ins/JSON/parse/15.12.2-2-10.js | 76 ++--- test/built-ins/JSON/parse/15.12.2-2-2.js | 76 ++--- test/built-ins/JSON/parse/15.12.2-2-3.js | 76 ++--- test/built-ins/JSON/parse/15.12.2-2-4.js | 76 ++--- test/built-ins/JSON/parse/15.12.2-2-5.js | 76 ++--- test/built-ins/JSON/parse/15.12.2-2-6.js | 76 ++--- test/built-ins/JSON/parse/15.12.2-2-7.js | 76 ++--- test/built-ins/JSON/parse/15.12.2-2-8.js | 76 ++--- test/built-ins/JSON/parse/15.12.2-2-9.js | 76 ++--- test/built-ins/JSON/parse/revived-proxy.js | 5 +- .../parse/reviver-object-define-prop-err.js | 4 +- .../JSON/parse/reviver-object-delete-err.js | 4 +- test/built-ins/JSON/stringify/15.12.3-0-1.js | 2 +- test/built-ins/JSON/stringify/15.12.3-0-2.js | 2 +- test/built-ins/JSON/stringify/15.12.3-0-3.js | 4 +- .../built-ins/JSON/stringify/15.12.3-11-10.js | 4 +- .../built-ins/JSON/stringify/15.12.3-11-11.js | 6 +- .../built-ins/JSON/stringify/15.12.3-11-12.js | 4 +- .../built-ins/JSON/stringify/15.12.3-11-13.js | 6 +- .../built-ins/JSON/stringify/15.12.3-11-15.js | 4 +- .../built-ins/JSON/stringify/15.12.3-11-16.js | 78 ++--- .../built-ins/JSON/stringify/15.12.3-11-17.js | 78 ++--- .../built-ins/JSON/stringify/15.12.3-11-18.js | 78 ++--- .../built-ins/JSON/stringify/15.12.3-11-19.js | 78 ++--- test/built-ins/JSON/stringify/15.12.3-11-2.js | 4 +- .../built-ins/JSON/stringify/15.12.3-11-20.js | 78 ++--- .../built-ins/JSON/stringify/15.12.3-11-21.js | 78 ++--- .../built-ins/JSON/stringify/15.12.3-11-22.js | 78 ++--- .../built-ins/JSON/stringify/15.12.3-11-23.js | 78 ++--- .../built-ins/JSON/stringify/15.12.3-11-24.js | 78 ++--- .../built-ins/JSON/stringify/15.12.3-11-25.js | 78 ++--- .../built-ins/JSON/stringify/15.12.3-11-26.js | 10 +- test/built-ins/JSON/stringify/15.12.3-4-1.js | 2 +- .../JSON/stringify/15.12.3-5-a-i-1.js | 13 +- .../JSON/stringify/15.12.3-5-b-i-1.js | 13 +- .../built-ins/JSON/stringify/15.12.3-6-a-1.js | 13 +- .../built-ins/JSON/stringify/15.12.3-6-a-2.js | 13 +- .../built-ins/JSON/stringify/15.12.3-6-b-1.js | 13 +- .../built-ins/JSON/stringify/15.12.3-6-b-2.js | 13 +- .../built-ins/JSON/stringify/15.12.3-6-b-3.js | 15 +- .../built-ins/JSON/stringify/15.12.3-6-b-4.js | 17 +- .../built-ins/JSON/stringify/15.12.3-7-a-1.js | 13 +- .../built-ins/JSON/stringify/15.12.3-8-a-1.js | 13 +- .../built-ins/JSON/stringify/15.12.3-8-a-2.js | 13 +- .../built-ins/JSON/stringify/15.12.3-8-a-3.js | 13 +- .../built-ins/JSON/stringify/15.12.3-8-a-4.js | 13 +- .../built-ins/JSON/stringify/15.12.3-8-a-5.js | 13 +- .../JSON/stringify/15.12.3_2-2-b-i-1.js | 10 +- .../JSON/stringify/15.12.3_2-2-b-i-2.js | 10 +- .../JSON/stringify/15.12.3_2-2-b-i-3.js | 10 +- .../JSON/stringify/15.12.3_2-3-a-1.js | 4 +- .../JSON/stringify/15.12.3_2-3-a-2.js | 4 +- .../JSON/stringify/15.12.3_2-3-a-3.js | 4 +- .../built-ins/JSON/stringify/15.12.3_4-1-1.js | 6 +- .../built-ins/JSON/stringify/15.12.3_4-1-2.js | 6 +- .../built-ins/JSON/stringify/15.12.3_4-1-3.js | 10 +- test/built-ins/JSON/stringify/bigint-order.js | 11 +- .../JSON/stringify/bigint-replacer.js | 12 +- .../built-ins/JSON/stringify/bigint-tojson.js | 4 +- test/built-ins/JSON/stringify/bigint.js | 4 +- .../JSON/stringify/replacer-proxy.js | 8 +- .../JSON/stringify/value-proxy-revoked.js | 6 +- test/built-ins/Map/iterable-calls-set.js | 5 +- .../Map/iterator-close-after-set-failure.js | 9 +- ...tor-items-are-not-object-close-iterator.js | 5 +- .../Map/iterator-items-are-not-object.js | 4 +- ...terable-throws-when-set-is-not-callable.js | 5 +- test/built-ins/Map/map-iterable.js | 4 +- test/built-ins/Map/newtarget.js | 5 +- .../Map/prototype/clear/clear-map.js | 7 +- test/built-ins/Map/prototype/clear/clear.js | 6 +- .../clear/map-data-list-is-preserved.js | 6 +- .../Map/prototype/clear/returns-undefined.js | 5 +- test/built-ins/Map/prototype/delete/delete.js | 6 +- .../delete/does-not-break-iterators.js | 6 +- .../Map/prototype/delete/returns-false.js | 5 +- .../delete/returns-true-for-deleted-entry.js | 5 +- .../Map/prototype/entries/returns-iterator.js | 6 +- .../forEach/callback-result-is-abrupt.js | 4 +- .../Map/prototype/get/returns-undefined.js | 2 +- .../has/return-false-different-key-types.js | 2 +- .../has/return-true-different-key-types.js | 2 +- .../set/append-new-values-return-map.js | 2 +- .../Map/prototype/set/append-new-values.js | 6 +- .../replaces-a-value-normalizes-zero-key.js | 8 +- .../set/replaces-a-value-returns-map.js | 4 +- .../Map/prototype/set/replaces-a-value.js | 4 +- ...not-have-mapiterator-internal-slots-map.js | 5 +- ...oes-not-have-mapiterator-internal-slots.js | 5 +- .../next/this-not-object-throw-entries.js | 5 +- .../next/this-not-object-throw-keys.js | 5 +- ...his-not-object-throw-prototype-iterator.js | 5 +- .../next/this-not-object-throw-values.js | 5 +- test/built-ins/Math/abs/S15.8.2.1_A3.js | 2 +- test/built-ins/Math/acosh/nan-returns.js | 36 +-- .../built-ins/Math/asinh/asinh-specialVals.js | 36 +-- test/built-ins/Math/atan2/S15.8.2.5_A1.js | 20 +- test/built-ins/Math/atan2/S15.8.2.5_A16.js | 3 +- test/built-ins/Math/atan2/S15.8.2.5_A4.js | 2 +- test/built-ins/Math/atan2/S15.8.2.5_A8.js | 5 +- .../built-ins/Math/atanh/atanh-specialVals.js | 62 ++-- .../built-ins/Math/cbrt/cbrt-specialValues.js | 36 +-- test/built-ins/Math/cbrt/prop-desc.js | 24 +- test/built-ins/Math/ceil/S15.8.2.6_A4.js | 2 +- test/built-ins/Math/ceil/S15.8.2.6_A5.js | 2 +- test/built-ins/Math/ceil/S15.8.2.6_A7.js | 12 +- test/built-ins/Math/cos/S15.8.2.7_A2.js | 2 +- test/built-ins/Math/cos/S15.8.2.7_A3.js | 2 +- test/built-ins/Math/cosh/cosh-specialVals.js | 32 +-- test/built-ins/Math/exp/S15.8.2.8_A2.js | 2 +- test/built-ins/Math/exp/S15.8.2.8_A3.js | 2 +- test/built-ins/Math/exp/S15.8.2.8_A4.js | 2 +- .../built-ins/Math/expm1/expm1-specialVals.js | 36 +-- test/built-ins/Math/floor/S15.8.2.9_A4.js | 2 +- test/built-ins/Math/floor/S15.8.2.9_A5.js | 2 +- test/built-ins/Math/floor/S15.8.2.9_A7.js | 12 +- .../Math/hypot/Math.hypot_Success_2.js | 2 +- test/built-ins/Math/log/S15.8.2.10_A3.js | 4 +- test/built-ins/Math/log/S15.8.2.10_A5.js | 2 +- .../built-ins/Math/log10/Log10-specialVals.js | 65 +++-- test/built-ins/Math/log2/log2-basicTests.js | 68 ++--- test/built-ins/Math/max/S15.8.2.11_A1.js | 2 +- test/built-ins/Math/max/S15.8.2.11_A2.js | 62 ++-- test/built-ins/Math/max/S15.8.2.11_A4.js | 6 +- test/built-ins/Math/min/S15.8.2.12_A1.js | 2 +- test/built-ins/Math/min/S15.8.2.12_A2.js | 62 ++-- test/built-ins/Math/min/S15.8.2.12_A4.js | 6 +- .../Math/pow/applying-the-exp-operator_A10.js | 8 +- .../Math/pow/applying-the-exp-operator_A11.js | 8 +- .../Math/pow/applying-the-exp-operator_A13.js | 8 +- .../Math/pow/applying-the-exp-operator_A14.js | 8 +- .../Math/pow/applying-the-exp-operator_A18.js | 8 +- .../Math/pow/applying-the-exp-operator_A2.js | 8 +- .../Math/pow/applying-the-exp-operator_A21.js | 8 +- .../Math/pow/applying-the-exp-operator_A22.js | 8 +- .../Math/pow/applying-the-exp-operator_A23.js | 2 +- .../Math/pow/applying-the-exp-operator_A3.js | 8 +- .../Math/pow/applying-the-exp-operator_A5.js | 8 +- test/built-ins/Math/random/S15.8.2.14_A1.js | 18 +- test/built-ins/Math/round/S15.8.2.15_A4.js | 2 +- test/built-ins/Math/round/S15.8.2.15_A5.js | 2 +- test/built-ins/Math/round/S15.8.2.15_A6.js | 34 +-- test/built-ins/Math/round/S15.8.2.15_A7.js | 2 +- test/built-ins/Math/sign/sign-specialVals.js | 40 +-- test/built-ins/Math/sinh/sinh-specialVals.js | 36 +-- test/built-ins/Math/sqrt/S15.8.2.17_A5.js | 2 +- test/built-ins/Math/tanh/tanh-specialVals.js | 36 +-- .../built-ins/Math/trunc/trunc-sampleTests.js | 94 +++--- .../built-ins/Math/trunc/trunc-specialVals.js | 32 +-- test/built-ins/NaN/15.1.1.1-0.js | 2 +- test/built-ins/NaN/S15.1.1.1_A2_T1.js | 2 +- test/built-ins/NaN/S15.1.1.1_A2_T2.js | 2 +- test/built-ins/NaN/S15.1.1.1_A3_T2.js | 2 +- test/built-ins/NaN/S15.1.1.1_A4.js | 2 +- test/built-ins/Number/15.7.3-2.js | 2 +- test/built-ins/Number/15.7.4-1.js | 4 +- .../Number/MAX_VALUE/S15.7.3.2_A4.js | 4 +- .../Number/MIN_VALUE/S15.7.3.3_A4.js | 4 +- .../Number/NEGATIVE_INFINITY/S15.7.3.5_A2.js | 2 +- .../Number/POSITIVE_INFINITY/S15.7.3.6_A2.js | 2 +- test/built-ins/Number/S15.7.1.1_A1.js | 16 +- test/built-ins/Number/S15.7.1.1_A2.js | 12 +- test/built-ins/Number/S15.7.2.1_A1.js | 8 +- test/built-ins/Number/S15.7.2.1_A3.js | 2 +- test/built-ins/Number/S15.7.3_A1.js | 2 +- test/built-ins/Number/S15.7.3_A2.js | 2 +- test/built-ins/Number/S15.7.3_A3.js | 2 +- test/built-ins/Number/S15.7.3_A4.js | 2 +- test/built-ins/Number/S15.7.3_A5.js | 2 +- test/built-ins/Number/S15.7.3_A6.js | 2 +- test/built-ins/Number/S15.7.3_A8.js | 2 +- test/built-ins/Number/S15.7.5_A1_T01.js | 4 +- test/built-ins/Number/S15.7.5_A1_T02.js | 4 +- test/built-ins/Number/S15.7.5_A1_T03.js | 4 +- test/built-ins/Number/S15.7.5_A1_T04.js | 4 +- test/built-ins/Number/S15.7.5_A1_T05.js | 4 +- test/built-ins/Number/S15.7.5_A1_T06.js | 4 +- test/built-ins/Number/S15.7.5_A1_T07.js | 4 +- test/built-ins/Number/S8.12.8_A3.js | 11 +- test/built-ins/Number/S8.12.8_A4.js | 11 +- test/built-ins/Number/S9.1_A1_T1.js | 18 +- test/built-ins/Number/S9.3.1_A1.js | 2 +- test/built-ins/Number/S9.3.1_A10.js | 2 +- test/built-ins/Number/S9.3.1_A11.js | 4 +- test/built-ins/Number/S9.3.1_A12.js | 4 +- test/built-ins/Number/S9.3.1_A13.js | 6 +- test/built-ins/Number/S9.3.1_A14.js | 2 +- test/built-ins/Number/S9.3.1_A15.js | 2 +- test/built-ins/Number/S9.3.1_A17.js | 6 +- test/built-ins/Number/S9.3.1_A18.js | 6 +- test/built-ins/Number/S9.3.1_A19.js | 6 +- test/built-ins/Number/S9.3.1_A2.js | 60 ++-- test/built-ins/Number/S9.3.1_A20.js | 6 +- test/built-ins/Number/S9.3.1_A21.js | 6 +- test/built-ins/Number/S9.3.1_A22.js | 6 +- test/built-ins/Number/S9.3.1_A23.js | 6 +- test/built-ins/Number/S9.3.1_A24.js | 6 +- test/built-ins/Number/S9.3.1_A25.js | 6 +- test/built-ins/Number/S9.3.1_A26.js | 8 +- test/built-ins/Number/S9.3.1_A27.js | 8 +- test/built-ins/Number/S9.3.1_A28.js | 8 +- test/built-ins/Number/S9.3.1_A29.js | 8 +- test/built-ins/Number/S9.3.1_A30.js | 8 +- test/built-ins/Number/S9.3.1_A31.js | 8 +- test/built-ins/Number/S9.3.1_A32.js | 8 +- test/built-ins/Number/S9.3.1_A3_T2.js | 4 +- test/built-ins/Number/S9.3.1_A3_T2_U180E.js | 2 +- test/built-ins/Number/S9.3.1_A4_T1.js | 2 +- test/built-ins/Number/S9.3.1_A4_T2.js | 6 +- test/built-ins/Number/S9.3.1_A5_T1.js | 2 +- test/built-ins/Number/S9.3.1_A5_T3.js | 6 +- test/built-ins/Number/S9.3.1_A6_T2.js | 4 +- test/built-ins/Number/S9.3.1_A7.js | 2 +- test/built-ins/Number/S9.3.1_A8.js | 4 +- test/built-ins/Number/S9.3.1_A9.js | 4 +- test/built-ins/Number/S9.3_A2_T1.js | 6 +- test/built-ins/Number/S9.3_A3_T1.js | 4 +- test/built-ins/Number/S9.3_A4.1_T1.js | 2 +- test/built-ins/Number/S9.3_A4.2_T1.js | 4 +- test/built-ins/Number/S9.3_A5_T1.js | 66 +++-- test/built-ins/Number/prototype/15.7.3.1-2.js | 2 +- .../Number/prototype/S15.7.3.1_A3.js | 2 +- test/built-ins/Number/prototype/S15.7.4_A1.js | 2 +- .../Number/prototype/S15.7.4_A3.1.js | 2 +- .../Number/prototype/S15.7.4_A3.2.js | 2 +- .../Number/prototype/S15.7.4_A3.3.js | 2 +- .../Number/prototype/S15.7.4_A3.4.js | 2 +- .../Number/prototype/S15.7.4_A3.5.js | 2 +- .../Number/prototype/S15.7.4_A3.6.js | 2 +- .../Number/prototype/S15.7.4_A3.7.js | 2 +- .../Number/prototype/toExponential/range.js | 2 - .../prototype/toFixed/S15.7.4.5_A1.1_T01.js | 28 +- .../prototype/toFixed/S15.7.4.5_A1.1_T02.js | 28 +- .../prototype/toFixed/S15.7.4.5_A1.3_T01.js | 28 +- .../prototype/toFixed/S15.7.4.5_A1.3_T02.js | 28 +- .../prototype/toFixed/S15.7.4.5_A1.4_T01.js | 28 +- .../prototype/toFixed/S15.7.4.5_A2_T01.js | 4 +- .../Number/prototype/toFixed/return-type.js | 2 +- .../Number/prototype/toPrecision/range.js | 1 - .../prototype/toString/S15.7.4.2_A1_T01.js | 16 +- .../prototype/toString/S15.7.4.2_A1_T02.js | 16 +- .../prototype/toString/S15.7.4.2_A1_T03.js | 16 +- .../prototype/toString/S15.7.4.2_A2_T01.js | 16 +- .../prototype/toString/S15.7.4.2_A2_T02.js | 16 +- .../prototype/toString/S15.7.4.2_A2_T03.js | 16 +- .../prototype/toString/S15.7.4.2_A2_T04.js | 16 +- .../prototype/toString/S15.7.4.2_A2_T05.js | 16 +- .../prototype/toString/S15.7.4.2_A2_T06.js | 16 +- .../prototype/toString/S15.7.4.2_A2_T07.js | 16 +- .../prototype/toString/S15.7.4.2_A2_T08.js | 16 +- .../prototype/toString/S15.7.4.2_A2_T09.js | 16 +- .../prototype/toString/S15.7.4.2_A2_T10.js | 16 +- .../prototype/toString/S15.7.4.2_A2_T11.js | 16 +- .../prototype/toString/S15.7.4.2_A2_T12.js | 16 +- .../prototype/toString/S15.7.4.2_A2_T13.js | 16 +- .../prototype/toString/S15.7.4.2_A2_T14.js | 16 +- .../prototype/toString/S15.7.4.2_A2_T15.js | 16 +- .../prototype/toString/S15.7.4.2_A2_T16.js | 16 +- .../prototype/toString/S15.7.4.2_A2_T17.js | 16 +- .../prototype/toString/S15.7.4.2_A2_T18.js | 16 +- .../prototype/toString/S15.7.4.2_A2_T19.js | 16 +- .../prototype/toString/S15.7.4.2_A2_T20.js | 16 +- .../prototype/toString/S15.7.4.2_A2_T21.js | 16 +- .../prototype/toString/S15.7.4.2_A2_T22.js | 16 +- .../prototype/toString/S15.7.4.2_A2_T23.js | 16 +- .../prototype/toString/S15.7.4.2_A2_T24.js | 16 +- .../prototype/toString/S15.7.4.2_A2_T25.js | 16 +- .../prototype/toString/S15.7.4.2_A2_T26.js | 16 +- .../prototype/toString/S15.7.4.2_A2_T27.js | 16 +- .../prototype/toString/S15.7.4.2_A2_T28.js | 16 +- .../prototype/toString/S15.7.4.2_A2_T29.js | 16 +- .../prototype/toString/S15.7.4.2_A2_T30.js | 16 +- .../prototype/toString/S15.7.4.2_A2_T31.js | 16 +- .../prototype/toString/S15.7.4.2_A2_T32.js | 16 +- .../prototype/toString/S15.7.4.2_A2_T33.js | 16 +- .../prototype/toString/S15.7.4.2_A2_T34.js | 16 +- .../prototype/toString/S15.7.4.2_A3_T01.js | 48 ++-- .../prototype/toString/S15.7.4.2_A3_T02.js | 56 ++-- .../prototype/toString/S15.7.4.2_A3_T03.js | 40 ++- .../prototype/toString/S15.7.4.2_A3_T04.js | 40 ++- .../prototype/toString/S15.7.4.2_A4_T01.js | 20 +- .../prototype/toString/S15.7.4.2_A4_T02.js | 20 +- .../prototype/toString/S15.7.4.2_A4_T03.js | 20 +- .../prototype/toString/S15.7.4.2_A4_T04.js | 20 +- .../prototype/toString/S15.7.4.2_A4_T05.js | 28 +- .../prototype/valueOf/S15.7.4.4_A1_T01.js | 14 +- .../prototype/valueOf/S15.7.4.4_A1_T02.js | 14 +- .../prototype/valueOf/S15.7.4.4_A2_T01.js | 20 +- .../prototype/valueOf/S15.7.4.4_A2_T02.js | 20 +- .../prototype/valueOf/S15.7.4.4_A2_T03.js | 20 +- .../prototype/valueOf/S15.7.4.4_A2_T04.js | 20 +- .../prototype/valueOf/S15.7.4.4_A2_T05.js | 28 +- ...teral-dd-dot-dd-ep-sign-plus-dds-nsl-dd.js | 1 - ...ric-separator-literal-nzd-nsl-dd-one-of.js | 2 - test/built-ins/Object/S15.2.1.1_A1_T1.js | 16 +- test/built-ins/Object/S15.2.1.1_A1_T2.js | 14 +- test/built-ins/Object/S15.2.1.1_A1_T3.js | 16 +- test/built-ins/Object/S15.2.1.1_A1_T4.js | 16 +- test/built-ins/Object/S15.2.1.1_A1_T5.js | 16 +- test/built-ins/Object/S15.2.1.1_A2_T1.js | 2 +- test/built-ins/Object/S15.2.1.1_A2_T10.js | 4 +- test/built-ins/Object/S15.2.1.1_A2_T11.js | 6 +- test/built-ins/Object/S15.2.1.1_A2_T12.js | 6 +- test/built-ins/Object/S15.2.1.1_A2_T13.js | 4 +- test/built-ins/Object/S15.2.1.1_A2_T14.js | 4 +- test/built-ins/Object/S15.2.1.1_A2_T2.js | 4 +- test/built-ins/Object/S15.2.1.1_A2_T3.js | 4 +- test/built-ins/Object/S15.2.1.1_A2_T4.js | 6 +- test/built-ins/Object/S15.2.1.1_A2_T5.js | 4 +- test/built-ins/Object/S15.2.1.1_A2_T6.js | 6 +- test/built-ins/Object/S15.2.1.1_A2_T7.js | 2 +- test/built-ins/Object/S15.2.1.1_A2_T8.js | 6 +- test/built-ins/Object/S15.2.1.1_A2_T9.js | 6 +- test/built-ins/Object/S15.2.1.1_A3_T1.js | 4 +- test/built-ins/Object/S15.2.1.1_A3_T2.js | 2 +- test/built-ins/Object/S15.2.1.1_A3_T3.js | 4 +- test/built-ins/Object/S15.2.2.1_A1_T1.js | 2 +- test/built-ins/Object/S15.2.2.1_A1_T2.js | 2 +- test/built-ins/Object/S15.2.2.1_A1_T3.js | 2 +- test/built-ins/Object/S15.2.2.1_A1_T4.js | 2 +- test/built-ins/Object/S15.2.2.1_A1_T5.js | 2 +- test/built-ins/Object/S15.2.2.1_A2_T1.js | 4 +- test/built-ins/Object/S15.2.2.1_A2_T2.js | 4 +- test/built-ins/Object/S15.2.2.1_A2_T3.js | 2 +- test/built-ins/Object/S15.2.2.1_A2_T5.js | 4 +- test/built-ins/Object/S15.2.2.1_A2_T6.js | 4 +- test/built-ins/Object/S15.2.2.1_A2_T7.js | 4 +- test/built-ins/Object/S15.2.2.1_A3_T1.js | 6 +- test/built-ins/Object/S15.2.2.1_A3_T2.js | 6 +- test/built-ins/Object/S15.2.2.1_A3_T3.js | 6 +- test/built-ins/Object/S15.2.2.1_A4_T1.js | 6 +- test/built-ins/Object/S15.2.2.1_A4_T2.js | 6 +- test/built-ins/Object/S15.2.2.1_A4_T3.js | 6 +- test/built-ins/Object/S15.2.2.1_A5_T1.js | 6 +- test/built-ins/Object/S15.2.2.1_A5_T2.js | 2 +- test/built-ins/Object/S15.2.2.1_A5_T3.js | 6 +- test/built-ins/Object/S15.2.2.1_A5_T4.js | 8 +- test/built-ins/Object/S15.2.2.1_A6_T1.js | 4 +- test/built-ins/Object/S15.2.2.1_A6_T2.js | 2 +- test/built-ins/Object/S15.2.2.1_A6_T3.js | 4 +- test/built-ins/Object/S15.2.3_A1.js | 2 +- test/built-ins/Object/S15.2.3_A3.js | 2 +- test/built-ins/Object/S15.2_A1.js | 6 +- test/built-ins/Object/S9.9_A3.js | 12 +- test/built-ins/Object/S9.9_A4.js | 66 ++--- test/built-ins/Object/S9.9_A5.js | 24 +- test/built-ins/Object/S9.9_A6.js | 16 +- .../assign/ObjectOverride-sameproperty.js | 10 +- .../Object/assign/Override-notstringtarget.js | 4 +- test/built-ins/Object/assign/Override.js | 14 +- .../Object/assign/Source-Null-Undefined.js | 2 +- .../assign/Source-Number-Boolen-Symbol.js | 2 +- test/built-ins/Object/assign/Source-String.js | 2 +- .../built-ins/Object/assign/Target-Boolean.js | 4 +- test/built-ins/Object/assign/Target-Null.js | 6 +- test/built-ins/Object/assign/Target-Number.js | 4 +- test/built-ins/Object/assign/Target-Object.js | 8 +- test/built-ins/Object/assign/Target-String.js | 4 +- test/built-ins/Object/assign/Target-Symbol.js | 4 +- .../Object/assign/Target-Undefined.js | 6 +- test/built-ins/Object/assign/name.js | 1 - .../Object/assign/source-own-prop-error.js | 4 +- .../Object/assign/target-set-not-writable.js | 4 +- .../Object/assign/target-set-user-error.js | 4 +- test/built-ins/Object/create/15.2.3.5-1-1.js | 2 +- test/built-ins/Object/create/15.2.3.5-1-2.js | 2 +- test/built-ins/Object/create/15.2.3.5-1-3.js | 2 +- test/built-ins/Object/create/15.2.3.5-1-4.js | 2 +- test/built-ins/Object/create/15.2.3.5-1.js | 2 +- test/built-ins/Object/create/15.2.3.5-2-1.js | 8 +- test/built-ins/Object/create/15.2.3.5-2-2.js | 2 +- test/built-ins/Object/create/15.2.3.5-3-1.js | 6 +- test/built-ins/Object/create/15.2.3.5-4-1.js | 18 +- test/built-ins/Object/create/15.2.3.5-4-10.js | 20 +- .../built-ins/Object/create/15.2.3.5-4-100.js | 6 +- .../built-ins/Object/create/15.2.3.5-4-101.js | 6 +- .../built-ins/Object/create/15.2.3.5-4-102.js | 24 +- .../built-ins/Object/create/15.2.3.5-4-103.js | 9 +- .../built-ins/Object/create/15.2.3.5-4-104.js | 12 +- .../built-ins/Object/create/15.2.3.5-4-105.js | 24 +- .../built-ins/Object/create/15.2.3.5-4-106.js | 30 +- .../built-ins/Object/create/15.2.3.5-4-107.js | 13 +- .../built-ins/Object/create/15.2.3.5-4-108.js | 16 +- .../built-ins/Object/create/15.2.3.5-4-109.js | 4 +- test/built-ins/Object/create/15.2.3.5-4-11.js | 20 +- .../built-ins/Object/create/15.2.3.5-4-110.js | 12 +- .../built-ins/Object/create/15.2.3.5-4-111.js | 6 +- .../built-ins/Object/create/15.2.3.5-4-112.js | 16 +- .../built-ins/Object/create/15.2.3.5-4-113.js | 16 +- .../built-ins/Object/create/15.2.3.5-4-114.js | 16 +- .../built-ins/Object/create/15.2.3.5-4-115.js | 16 +- .../built-ins/Object/create/15.2.3.5-4-116.js | 16 +- .../built-ins/Object/create/15.2.3.5-4-117.js | 14 +- .../built-ins/Object/create/15.2.3.5-4-118.js | 16 +- .../built-ins/Object/create/15.2.3.5-4-119.js | 16 +- test/built-ins/Object/create/15.2.3.5-4-12.js | 20 +- .../built-ins/Object/create/15.2.3.5-4-120.js | 14 +- .../built-ins/Object/create/15.2.3.5-4-121.js | 16 +- .../built-ins/Object/create/15.2.3.5-4-122.js | 18 +- .../built-ins/Object/create/15.2.3.5-4-124.js | 14 +- .../built-ins/Object/create/15.2.3.5-4-125.js | 6 +- .../built-ins/Object/create/15.2.3.5-4-126.js | 6 +- .../built-ins/Object/create/15.2.3.5-4-127.js | 16 +- .../built-ins/Object/create/15.2.3.5-4-128.js | 6 +- .../built-ins/Object/create/15.2.3.5-4-129.js | 6 +- test/built-ins/Object/create/15.2.3.5-4-13.js | 20 +- .../built-ins/Object/create/15.2.3.5-4-130.js | 6 +- .../built-ins/Object/create/15.2.3.5-4-131.js | 6 +- .../built-ins/Object/create/15.2.3.5-4-132.js | 6 +- .../built-ins/Object/create/15.2.3.5-4-133.js | 16 +- .../built-ins/Object/create/15.2.3.5-4-134.js | 16 +- .../built-ins/Object/create/15.2.3.5-4-135.js | 6 +- .../built-ins/Object/create/15.2.3.5-4-136.js | 16 +- .../built-ins/Object/create/15.2.3.5-4-137.js | 16 +- .../built-ins/Object/create/15.2.3.5-4-138.js | 16 +- .../built-ins/Object/create/15.2.3.5-4-139.js | 16 +- test/built-ins/Object/create/15.2.3.5-4-14.js | 29 +- .../built-ins/Object/create/15.2.3.5-4-140.js | 16 +- .../built-ins/Object/create/15.2.3.5-4-141.js | 16 +- .../built-ins/Object/create/15.2.3.5-4-142.js | 16 +- .../built-ins/Object/create/15.2.3.5-4-143.js | 16 +- .../built-ins/Object/create/15.2.3.5-4-144.js | 16 +- .../built-ins/Object/create/15.2.3.5-4-145.js | 16 +- .../built-ins/Object/create/15.2.3.5-4-146.js | 16 +- .../built-ins/Object/create/15.2.3.5-4-147.js | 20 +- .../built-ins/Object/create/15.2.3.5-4-149.js | 16 +- test/built-ins/Object/create/15.2.3.5-4-15.js | 22 +- .../built-ins/Object/create/15.2.3.5-4-150.js | 16 +- .../built-ins/Object/create/15.2.3.5-4-151.js | 16 +- .../built-ins/Object/create/15.2.3.5-4-152.js | 10 +- .../built-ins/Object/create/15.2.3.5-4-153.js | 8 +- .../built-ins/Object/create/15.2.3.5-4-154.js | 10 +- .../built-ins/Object/create/15.2.3.5-4-155.js | 18 +- .../built-ins/Object/create/15.2.3.5-4-156.js | 20 +- .../built-ins/Object/create/15.2.3.5-4-157.js | 34 +-- .../built-ins/Object/create/15.2.3.5-4-158.js | 18 +- .../built-ins/Object/create/15.2.3.5-4-159.js | 24 +- test/built-ins/Object/create/15.2.3.5-4-16.js | 6 +- .../built-ins/Object/create/15.2.3.5-4-160.js | 28 +- .../built-ins/Object/create/15.2.3.5-4-161.js | 34 +-- .../built-ins/Object/create/15.2.3.5-4-162.js | 16 +- .../built-ins/Object/create/15.2.3.5-4-163.js | 32 +-- .../built-ins/Object/create/15.2.3.5-4-164.js | 22 +- .../built-ins/Object/create/15.2.3.5-4-165.js | 16 +- .../built-ins/Object/create/15.2.3.5-4-166.js | 10 +- .../built-ins/Object/create/15.2.3.5-4-167.js | 10 +- .../built-ins/Object/create/15.2.3.5-4-168.js | 10 +- .../built-ins/Object/create/15.2.3.5-4-169.js | 10 +- test/built-ins/Object/create/15.2.3.5-4-17.js | 12 +- .../built-ins/Object/create/15.2.3.5-4-170.js | 8 +- .../built-ins/Object/create/15.2.3.5-4-171.js | 10 +- .../built-ins/Object/create/15.2.3.5-4-172.js | 10 +- .../built-ins/Object/create/15.2.3.5-4-173.js | 8 +- .../built-ins/Object/create/15.2.3.5-4-174.js | 10 +- .../built-ins/Object/create/15.2.3.5-4-175.js | 12 +- .../built-ins/Object/create/15.2.3.5-4-177.js | 8 +- .../built-ins/Object/create/15.2.3.5-4-178.js | 16 +- .../built-ins/Object/create/15.2.3.5-4-179.js | 6 +- test/built-ins/Object/create/15.2.3.5-4-18.js | 12 +- .../built-ins/Object/create/15.2.3.5-4-180.js | 16 +- .../built-ins/Object/create/15.2.3.5-4-181.js | 24 +- .../built-ins/Object/create/15.2.3.5-4-182.js | 26 +- .../built-ins/Object/create/15.2.3.5-4-183.js | 36 +-- .../built-ins/Object/create/15.2.3.5-4-184.js | 24 +- .../built-ins/Object/create/15.2.3.5-4-185.js | 30 +- .../built-ins/Object/create/15.2.3.5-4-186.js | 34 +-- .../built-ins/Object/create/15.2.3.5-4-187.js | 40 +-- .../built-ins/Object/create/15.2.3.5-4-188.js | 8 +- .../built-ins/Object/create/15.2.3.5-4-189.js | 14 +- test/built-ins/Object/create/15.2.3.5-4-19.js | 16 +- .../built-ins/Object/create/15.2.3.5-4-190.js | 10 +- .../built-ins/Object/create/15.2.3.5-4-191.js | 22 +- .../built-ins/Object/create/15.2.3.5-4-192.js | 16 +- .../built-ins/Object/create/15.2.3.5-4-193.js | 16 +- .../built-ins/Object/create/15.2.3.5-4-194.js | 16 +- .../built-ins/Object/create/15.2.3.5-4-195.js | 16 +- .../built-ins/Object/create/15.2.3.5-4-196.js | 14 +- .../built-ins/Object/create/15.2.3.5-4-197.js | 16 +- .../built-ins/Object/create/15.2.3.5-4-198.js | 16 +- .../built-ins/Object/create/15.2.3.5-4-199.js | 14 +- test/built-ins/Object/create/15.2.3.5-4-2.js | 2 +- test/built-ins/Object/create/15.2.3.5-4-20.js | 16 +- .../built-ins/Object/create/15.2.3.5-4-200.js | 16 +- .../built-ins/Object/create/15.2.3.5-4-201.js | 18 +- .../built-ins/Object/create/15.2.3.5-4-203.js | 14 +- .../built-ins/Object/create/15.2.3.5-4-204.js | 6 +- .../built-ins/Object/create/15.2.3.5-4-205.js | 6 +- .../built-ins/Object/create/15.2.3.5-4-206.js | 14 +- .../built-ins/Object/create/15.2.3.5-4-207.js | 6 +- .../built-ins/Object/create/15.2.3.5-4-208.js | 6 +- .../built-ins/Object/create/15.2.3.5-4-209.js | 6 +- test/built-ins/Object/create/15.2.3.5-4-21.js | 22 +- .../built-ins/Object/create/15.2.3.5-4-210.js | 6 +- .../built-ins/Object/create/15.2.3.5-4-211.js | 6 +- .../built-ins/Object/create/15.2.3.5-4-212.js | 14 +- .../built-ins/Object/create/15.2.3.5-4-213.js | 14 +- .../built-ins/Object/create/15.2.3.5-4-214.js | 4 +- .../built-ins/Object/create/15.2.3.5-4-215.js | 14 +- .../built-ins/Object/create/15.2.3.5-4-216.js | 14 +- .../built-ins/Object/create/15.2.3.5-4-217.js | 14 +- .../built-ins/Object/create/15.2.3.5-4-218.js | 14 +- .../built-ins/Object/create/15.2.3.5-4-219.js | 14 +- test/built-ins/Object/create/15.2.3.5-4-22.js | 22 +- .../built-ins/Object/create/15.2.3.5-4-220.js | 14 +- .../built-ins/Object/create/15.2.3.5-4-221.js | 14 +- .../built-ins/Object/create/15.2.3.5-4-222.js | 14 +- .../built-ins/Object/create/15.2.3.5-4-223.js | 14 +- .../built-ins/Object/create/15.2.3.5-4-224.js | 14 +- .../built-ins/Object/create/15.2.3.5-4-225.js | 14 +- .../built-ins/Object/create/15.2.3.5-4-226.js | 18 +- .../built-ins/Object/create/15.2.3.5-4-228.js | 14 +- .../built-ins/Object/create/15.2.3.5-4-229.js | 14 +- test/built-ins/Object/create/15.2.3.5-4-23.js | 36 +-- .../built-ins/Object/create/15.2.3.5-4-230.js | 14 +- .../built-ins/Object/create/15.2.3.5-4-231.js | 14 +- .../built-ins/Object/create/15.2.3.5-4-232.js | 8 +- .../built-ins/Object/create/15.2.3.5-4-233.js | 14 +- .../built-ins/Object/create/15.2.3.5-4-234.js | 22 +- .../built-ins/Object/create/15.2.3.5-4-235.js | 32 +-- .../built-ins/Object/create/15.2.3.5-4-236.js | 38 +-- .../built-ins/Object/create/15.2.3.5-4-237.js | 22 +- .../built-ins/Object/create/15.2.3.5-4-238.js | 28 +- .../built-ins/Object/create/15.2.3.5-4-239.js | 36 +-- test/built-ins/Object/create/15.2.3.5-4-24.js | 32 +-- .../built-ins/Object/create/15.2.3.5-4-240.js | 42 +-- .../built-ins/Object/create/15.2.3.5-4-241.js | 16 +- .../built-ins/Object/create/15.2.3.5-4-242.js | 34 +-- .../built-ins/Object/create/15.2.3.5-4-243.js | 22 +- .../built-ins/Object/create/15.2.3.5-4-244.js | 14 +- .../built-ins/Object/create/15.2.3.5-4-245.js | 14 +- .../built-ins/Object/create/15.2.3.5-4-246.js | 14 +- .../built-ins/Object/create/15.2.3.5-4-247.js | 14 +- .../built-ins/Object/create/15.2.3.5-4-248.js | 14 +- .../built-ins/Object/create/15.2.3.5-4-249.js | 14 +- test/built-ins/Object/create/15.2.3.5-4-25.js | 42 +-- .../built-ins/Object/create/15.2.3.5-4-250.js | 14 +- .../built-ins/Object/create/15.2.3.5-4-251.js | 12 +- .../built-ins/Object/create/15.2.3.5-4-252.js | 12 +- .../built-ins/Object/create/15.2.3.5-4-253.js | 14 +- .../built-ins/Object/create/15.2.3.5-4-254.js | 16 +- .../built-ins/Object/create/15.2.3.5-4-256.js | 12 +- .../built-ins/Object/create/15.2.3.5-4-257.js | 10 +- .../built-ins/Object/create/15.2.3.5-4-258.js | 10 +- .../built-ins/Object/create/15.2.3.5-4-259.js | 10 +- test/built-ins/Object/create/15.2.3.5-4-26.js | 12 +- .../built-ins/Object/create/15.2.3.5-4-260.js | 10 +- .../built-ins/Object/create/15.2.3.5-4-261.js | 10 +- .../built-ins/Object/create/15.2.3.5-4-262.js | 10 +- .../built-ins/Object/create/15.2.3.5-4-263.js | 10 +- .../built-ins/Object/create/15.2.3.5-4-266.js | 20 +- .../built-ins/Object/create/15.2.3.5-4-267.js | 8 +- .../built-ins/Object/create/15.2.3.5-4-268.js | 20 +- .../built-ins/Object/create/15.2.3.5-4-269.js | 28 +- test/built-ins/Object/create/15.2.3.5-4-27.js | 30 +- .../built-ins/Object/create/15.2.3.5-4-270.js | 36 +-- .../built-ins/Object/create/15.2.3.5-4-271.js | 56 ++-- .../built-ins/Object/create/15.2.3.5-4-272.js | 28 +- .../built-ins/Object/create/15.2.3.5-4-273.js | 34 +-- .../built-ins/Object/create/15.2.3.5-4-274.js | 52 ++-- .../built-ins/Object/create/15.2.3.5-4-275.js | 60 ++-- .../built-ins/Object/create/15.2.3.5-4-276.js | 18 +- .../built-ins/Object/create/15.2.3.5-4-277.js | 32 +-- .../built-ins/Object/create/15.2.3.5-4-278.js | 22 +- .../built-ins/Object/create/15.2.3.5-4-279.js | 20 +- test/built-ins/Object/create/15.2.3.5-4-28.js | 12 +- .../built-ins/Object/create/15.2.3.5-4-280.js | 20 +- .../built-ins/Object/create/15.2.3.5-4-281.js | 20 +- .../built-ins/Object/create/15.2.3.5-4-282.js | 20 +- .../built-ins/Object/create/15.2.3.5-4-283.js | 20 +- .../built-ins/Object/create/15.2.3.5-4-284.js | 18 +- .../built-ins/Object/create/15.2.3.5-4-285.js | 20 +- .../built-ins/Object/create/15.2.3.5-4-286.js | 20 +- .../built-ins/Object/create/15.2.3.5-4-287.js | 18 +- .../built-ins/Object/create/15.2.3.5-4-288.js | 18 +- .../built-ins/Object/create/15.2.3.5-4-289.js | 22 +- test/built-ins/Object/create/15.2.3.5-4-29.js | 12 +- .../built-ins/Object/create/15.2.3.5-4-291.js | 18 +- .../built-ins/Object/create/15.2.3.5-4-292.js | 6 +- .../built-ins/Object/create/15.2.3.5-4-293.js | 10 +- .../built-ins/Object/create/15.2.3.5-4-294.js | 10 +- .../built-ins/Object/create/15.2.3.5-4-295.js | 10 +- .../built-ins/Object/create/15.2.3.5-4-296.js | 10 +- .../built-ins/Object/create/15.2.3.5-4-297.js | 10 +- .../built-ins/Object/create/15.2.3.5-4-298.js | 18 +- test/built-ins/Object/create/15.2.3.5-4-3.js | 2 +- test/built-ins/Object/create/15.2.3.5-4-30.js | 12 +- .../built-ins/Object/create/15.2.3.5-4-300.js | 10 +- .../built-ins/Object/create/15.2.3.5-4-301.js | 12 +- .../built-ins/Object/create/15.2.3.5-4-302.js | 12 +- .../built-ins/Object/create/15.2.3.5-4-303.js | 12 +- .../built-ins/Object/create/15.2.3.5-4-304.js | 12 +- .../built-ins/Object/create/15.2.3.5-4-305.js | 10 +- .../built-ins/Object/create/15.2.3.5-4-306.js | 14 +- .../built-ins/Object/create/15.2.3.5-4-307.js | 10 +- .../built-ins/Object/create/15.2.3.5-4-308.js | 28 +- .../built-ins/Object/create/15.2.3.5-4-309.js | 11 +- test/built-ins/Object/create/15.2.3.5-4-31.js | 12 +- .../built-ins/Object/create/15.2.3.5-4-310.js | 14 +- .../built-ins/Object/create/15.2.3.5-4-311.js | 50 ++-- .../built-ins/Object/create/15.2.3.5-4-312.js | 28 +- .../built-ins/Object/create/15.2.3.5-4-313.js | 10 +- .../built-ins/Object/create/15.2.3.5-4-314.js | 6 +- .../built-ins/Object/create/15.2.3.5-4-315.js | 30 +- .../built-ins/Object/create/15.2.3.5-4-316.js | 49 ++-- test/built-ins/Object/create/15.2.3.5-4-32.js | 12 +- test/built-ins/Object/create/15.2.3.5-4-33.js | 10 +- test/built-ins/Object/create/15.2.3.5-4-34.js | 12 +- test/built-ins/Object/create/15.2.3.5-4-35.js | 12 +- test/built-ins/Object/create/15.2.3.5-4-36.js | 10 +- test/built-ins/Object/create/15.2.3.5-4-37.js | 21 +- test/built-ins/Object/create/15.2.3.5-4-38.js | 14 +- test/built-ins/Object/create/15.2.3.5-4-39.js | 34 ++- test/built-ins/Object/create/15.2.3.5-4-4.js | 20 +- test/built-ins/Object/create/15.2.3.5-4-40.js | 42 +-- test/built-ins/Object/create/15.2.3.5-4-41.js | 6 +- test/built-ins/Object/create/15.2.3.5-4-42.js | 6 +- test/built-ins/Object/create/15.2.3.5-4-43.js | 6 +- test/built-ins/Object/create/15.2.3.5-4-44.js | 6 +- test/built-ins/Object/create/15.2.3.5-4-45.js | 6 +- test/built-ins/Object/create/15.2.3.5-4-46.js | 22 +- test/built-ins/Object/create/15.2.3.5-4-47.js | 18 +- test/built-ins/Object/create/15.2.3.5-4-48.js | 22 +- test/built-ins/Object/create/15.2.3.5-4-49.js | 30 +- test/built-ins/Object/create/15.2.3.5-4-5.js | 20 +- test/built-ins/Object/create/15.2.3.5-4-50.js | 36 +-- test/built-ins/Object/create/15.2.3.5-4-51.js | 52 ++-- test/built-ins/Object/create/15.2.3.5-4-52.js | 30 +- test/built-ins/Object/create/15.2.3.5-4-53.js | 36 +-- test/built-ins/Object/create/15.2.3.5-4-54.js | 40 +-- test/built-ins/Object/create/15.2.3.5-4-55.js | 46 +-- test/built-ins/Object/create/15.2.3.5-4-56.js | 26 +- test/built-ins/Object/create/15.2.3.5-4-57.js | 42 +-- test/built-ins/Object/create/15.2.3.5-4-58.js | 32 +-- test/built-ins/Object/create/15.2.3.5-4-59.js | 22 +- test/built-ins/Object/create/15.2.3.5-4-6.js | 20 +- test/built-ins/Object/create/15.2.3.5-4-60.js | 22 +- test/built-ins/Object/create/15.2.3.5-4-61.js | 22 +- test/built-ins/Object/create/15.2.3.5-4-62.js | 22 +- test/built-ins/Object/create/15.2.3.5-4-63.js | 22 +- test/built-ins/Object/create/15.2.3.5-4-64.js | 20 +- test/built-ins/Object/create/15.2.3.5-4-65.js | 22 +- test/built-ins/Object/create/15.2.3.5-4-66.js | 22 +- test/built-ins/Object/create/15.2.3.5-4-67.js | 20 +- test/built-ins/Object/create/15.2.3.5-4-68.js | 22 +- test/built-ins/Object/create/15.2.3.5-4-69.js | 24 +- test/built-ins/Object/create/15.2.3.5-4-7.js | 20 +- test/built-ins/Object/create/15.2.3.5-4-71.js | 20 +- test/built-ins/Object/create/15.2.3.5-4-72.js | 22 +- test/built-ins/Object/create/15.2.3.5-4-73.js | 22 +- test/built-ins/Object/create/15.2.3.5-4-74.js | 22 +- test/built-ins/Object/create/15.2.3.5-4-75.js | 24 +- test/built-ins/Object/create/15.2.3.5-4-76.js | 22 +- test/built-ins/Object/create/15.2.3.5-4-77.js | 22 +- test/built-ins/Object/create/15.2.3.5-4-78.js | 22 +- test/built-ins/Object/create/15.2.3.5-4-79.js | 22 +- test/built-ins/Object/create/15.2.3.5-4-8.js | 20 +- test/built-ins/Object/create/15.2.3.5-4-80.js | 22 +- test/built-ins/Object/create/15.2.3.5-4-81.js | 22 +- test/built-ins/Object/create/15.2.3.5-4-82.js | 22 +- test/built-ins/Object/create/15.2.3.5-4-83.js | 22 +- test/built-ins/Object/create/15.2.3.5-4-84.js | 22 +- test/built-ins/Object/create/15.2.3.5-4-85.js | 22 +- test/built-ins/Object/create/15.2.3.5-4-86.js | 22 +- test/built-ins/Object/create/15.2.3.5-4-87.js | 22 +- test/built-ins/Object/create/15.2.3.5-4-88.js | 22 +- test/built-ins/Object/create/15.2.3.5-4-89.js | 22 +- test/built-ins/Object/create/15.2.3.5-4-9.js | 20 +- test/built-ins/Object/create/15.2.3.5-4-90.js | 22 +- test/built-ins/Object/create/15.2.3.5-4-91.js | 22 +- test/built-ins/Object/create/15.2.3.5-4-92.js | 22 +- test/built-ins/Object/create/15.2.3.5-4-93.js | 22 +- test/built-ins/Object/create/15.2.3.5-4-94.js | 26 +- test/built-ins/Object/create/15.2.3.5-4-96.js | 22 +- test/built-ins/Object/create/15.2.3.5-4-97.js | 22 +- test/built-ins/Object/create/15.2.3.5-4-98.js | 22 +- test/built-ins/Object/create/15.2.3.5-4-99.js | 16 +- .../Object/defineProperties/15.2.3.7-0-1.js | 2 +- .../Object/defineProperties/15.2.3.7-1-1.js | 2 +- .../Object/defineProperties/15.2.3.7-1-2.js | 2 +- .../Object/defineProperties/15.2.3.7-1-3.js | 2 +- .../Object/defineProperties/15.2.3.7-1-4.js | 2 +- .../Object/defineProperties/15.2.3.7-1.js | 2 +- .../Object/defineProperties/15.2.3.7-2-1.js | 2 +- .../Object/defineProperties/15.2.3.7-2-10.js | 24 +- .../Object/defineProperties/15.2.3.7-2-11.js | 22 +- .../Object/defineProperties/15.2.3.7-2-12.js | 24 +- .../Object/defineProperties/15.2.3.7-2-13.js | 24 +- .../Object/defineProperties/15.2.3.7-2-14.js | 22 +- .../Object/defineProperties/15.2.3.7-2-15.js | 36 +-- .../Object/defineProperties/15.2.3.7-2-16.js | 28 +- .../Object/defineProperties/15.2.3.7-2-18.js | 36 +-- .../Object/defineProperties/15.2.3.7-2-2.js | 2 +- .../Object/defineProperties/15.2.3.7-2-3.js | 4 +- .../Object/defineProperties/15.2.3.7-2-4.js | 22 +- .../Object/defineProperties/15.2.3.7-2-5.js | 6 +- .../Object/defineProperties/15.2.3.7-2-6.js | 24 +- .../Object/defineProperties/15.2.3.7-2-7.js | 6 +- .../Object/defineProperties/15.2.3.7-2-8.js | 24 +- .../Object/defineProperties/15.2.3.7-2-9.js | 24 +- .../Object/defineProperties/15.2.3.7-3-1.js | 14 +- .../Object/defineProperties/15.2.3.7-3-2.js | 14 +- .../Object/defineProperties/15.2.3.7-3-3.js | 20 +- .../Object/defineProperties/15.2.3.7-3-4.js | 18 +- .../Object/defineProperties/15.2.3.7-3-5.js | 18 +- .../Object/defineProperties/15.2.3.7-3-6.js | 24 +- .../Object/defineProperties/15.2.3.7-3-7.js | 26 +- .../Object/defineProperties/15.2.3.7-3-8.js | 26 +- .../Object/defineProperties/15.2.3.7-5-a-1.js | 36 +-- .../defineProperties/15.2.3.7-5-a-10.js | 18 +- .../defineProperties/15.2.3.7-5-a-11.js | 18 +- .../defineProperties/15.2.3.7-5-a-12.js | 10 +- .../defineProperties/15.2.3.7-5-a-13.js | 18 +- .../defineProperties/15.2.3.7-5-a-14.js | 18 +- .../defineProperties/15.2.3.7-5-a-15.js | 10 +- .../defineProperties/15.2.3.7-5-a-16.js | 24 +- .../defineProperties/15.2.3.7-5-a-17.js | 24 +- .../Object/defineProperties/15.2.3.7-5-a-2.js | 40 +-- .../Object/defineProperties/15.2.3.7-5-a-3.js | 40 +-- .../Object/defineProperties/15.2.3.7-5-a-4.js | 44 +-- .../Object/defineProperties/15.2.3.7-5-a-5.js | 22 +- .../Object/defineProperties/15.2.3.7-5-a-6.js | 40 +-- .../Object/defineProperties/15.2.3.7-5-a-7.js | 18 +- .../Object/defineProperties/15.2.3.7-5-a-8.js | 20 +- .../Object/defineProperties/15.2.3.7-5-a-9.js | 18 +- .../Object/defineProperties/15.2.3.7-5-b-1.js | 8 +- .../defineProperties/15.2.3.7-5-b-10.js | 38 +-- .../defineProperties/15.2.3.7-5-b-100.js | 16 +- .../defineProperties/15.2.3.7-5-b-101.js | 16 +- .../defineProperties/15.2.3.7-5-b-102.js | 16 +- .../defineProperties/15.2.3.7-5-b-103.js | 16 +- .../defineProperties/15.2.3.7-5-b-104.js | 16 +- .../defineProperties/15.2.3.7-5-b-105.js | 16 +- .../defineProperties/15.2.3.7-5-b-106.js | 16 +- .../defineProperties/15.2.3.7-5-b-107.js | 24 +- .../defineProperties/15.2.3.7-5-b-109.js | 16 +- .../defineProperties/15.2.3.7-5-b-11.js | 54 ++-- .../defineProperties/15.2.3.7-5-b-110.js | 16 +- .../defineProperties/15.2.3.7-5-b-111.js | 16 +- .../defineProperties/15.2.3.7-5-b-112.js | 12 +- .../defineProperties/15.2.3.7-5-b-113.js | 14 +- .../defineProperties/15.2.3.7-5-b-114.js | 12 +- .../defineProperties/15.2.3.7-5-b-115.js | 20 +- .../defineProperties/15.2.3.7-5-b-116.js | 22 +- .../defineProperties/15.2.3.7-5-b-117.js | 32 +-- .../defineProperties/15.2.3.7-5-b-118.js | 20 +- .../defineProperties/15.2.3.7-5-b-119.js | 26 +- .../defineProperties/15.2.3.7-5-b-12.js | 32 +-- .../defineProperties/15.2.3.7-5-b-120.js | 30 +- .../defineProperties/15.2.3.7-5-b-121.js | 36 +-- .../defineProperties/15.2.3.7-5-b-122.js | 18 +- .../defineProperties/15.2.3.7-5-b-123.js | 34 +-- .../defineProperties/15.2.3.7-5-b-124.js | 24 +- .../defineProperties/15.2.3.7-5-b-125.js | 16 +- .../defineProperties/15.2.3.7-5-b-126.js | 12 +- .../defineProperties/15.2.3.7-5-b-127.js | 12 +- .../defineProperties/15.2.3.7-5-b-128.js | 12 +- .../defineProperties/15.2.3.7-5-b-129.js | 12 +- .../defineProperties/15.2.3.7-5-b-13.js | 38 +-- .../defineProperties/15.2.3.7-5-b-130.js | 10 +- .../defineProperties/15.2.3.7-5-b-131.js | 12 +- .../defineProperties/15.2.3.7-5-b-132.js | 12 +- .../defineProperties/15.2.3.7-5-b-133.js | 10 +- .../defineProperties/15.2.3.7-5-b-134.js | 12 +- .../defineProperties/15.2.3.7-5-b-135.js | 16 +- .../defineProperties/15.2.3.7-5-b-137.js | 10 +- .../defineProperties/15.2.3.7-5-b-138.js | 6 +- .../defineProperties/15.2.3.7-5-b-139.js | 7 +- .../defineProperties/15.2.3.7-5-b-14.js | 42 +-- .../defineProperties/15.2.3.7-5-b-140.js | 7 +- .../defineProperties/15.2.3.7-5-b-141.js | 6 +- .../defineProperties/15.2.3.7-5-b-142.js | 6 +- .../defineProperties/15.2.3.7-5-b-143.js | 17 +- .../defineProperties/15.2.3.7-5-b-144.js | 8 +- .../defineProperties/15.2.3.7-5-b-145.js | 28 +- .../defineProperties/15.2.3.7-5-b-146.js | 12 +- .../defineProperties/15.2.3.7-5-b-147.js | 16 +- .../defineProperties/15.2.3.7-5-b-148.js | 4 +- .../defineProperties/15.2.3.7-5-b-149.js | 12 +- .../defineProperties/15.2.3.7-5-b-15.js | 48 ++-- .../defineProperties/15.2.3.7-5-b-150.js | 6 +- .../defineProperties/15.2.3.7-5-b-151.js | 6 +- .../defineProperties/15.2.3.7-5-b-152.js | 2 +- .../defineProperties/15.2.3.7-5-b-153.js | 2 +- .../defineProperties/15.2.3.7-5-b-154.js | 2 +- .../defineProperties/15.2.3.7-5-b-155.js | 2 +- .../defineProperties/15.2.3.7-5-b-156.js | 12 +- .../defineProperties/15.2.3.7-5-b-157.js | 2 +- .../defineProperties/15.2.3.7-5-b-158.js | 3 +- .../defineProperties/15.2.3.7-5-b-159.js | 12 +- .../defineProperties/15.2.3.7-5-b-16.js | 28 +- .../defineProperties/15.2.3.7-5-b-160.js | 2 +- .../defineProperties/15.2.3.7-5-b-161.js | 15 +- .../defineProperties/15.2.3.7-5-b-163.js | 12 +- .../defineProperties/15.2.3.7-5-b-164.js | 6 +- .../defineProperties/15.2.3.7-5-b-165.js | 6 +- .../defineProperties/15.2.3.7-5-b-166.js | 14 +- .../defineProperties/15.2.3.7-5-b-167.js | 7 +- .../defineProperties/15.2.3.7-5-b-168.js | 6 +- .../defineProperties/15.2.3.7-5-b-169.js | 7 +- .../defineProperties/15.2.3.7-5-b-17.js | 44 +-- .../defineProperties/15.2.3.7-5-b-170.js | 7 +- .../defineProperties/15.2.3.7-5-b-171.js | 7 +- .../defineProperties/15.2.3.7-5-b-172.js | 14 +- .../defineProperties/15.2.3.7-5-b-173.js | 14 +- .../defineProperties/15.2.3.7-5-b-174.js | 7 +- .../defineProperties/15.2.3.7-5-b-175.js | 14 +- .../defineProperties/15.2.3.7-5-b-176.js | 14 +- .../defineProperties/15.2.3.7-5-b-177.js | 14 +- .../defineProperties/15.2.3.7-5-b-178.js | 14 +- .../defineProperties/15.2.3.7-5-b-179.js | 14 +- .../defineProperties/15.2.3.7-5-b-18.js | 34 +-- .../defineProperties/15.2.3.7-5-b-180.js | 14 +- .../defineProperties/15.2.3.7-5-b-181.js | 14 +- .../defineProperties/15.2.3.7-5-b-182.js | 14 +- .../defineProperties/15.2.3.7-5-b-183.js | 14 +- .../defineProperties/15.2.3.7-5-b-184.js | 14 +- .../defineProperties/15.2.3.7-5-b-185.js | 14 +- .../defineProperties/15.2.3.7-5-b-186.js | 20 +- .../defineProperties/15.2.3.7-5-b-188.js | 14 +- .../defineProperties/15.2.3.7-5-b-189.js | 14 +- .../defineProperties/15.2.3.7-5-b-19.js | 24 +- .../defineProperties/15.2.3.7-5-b-190.js | 14 +- .../defineProperties/15.2.3.7-5-b-191.js | 18 +- .../defineProperties/15.2.3.7-5-b-192.js | 16 +- .../defineProperties/15.2.3.7-5-b-193.js | 18 +- .../defineProperties/15.2.3.7-5-b-194.js | 26 +- .../defineProperties/15.2.3.7-5-b-195.js | 32 +-- .../defineProperties/15.2.3.7-5-b-196.js | 40 +-- .../defineProperties/15.2.3.7-5-b-197.js | 24 +- .../defineProperties/15.2.3.7-5-b-198.js | 30 +- .../defineProperties/15.2.3.7-5-b-199.js | 48 ++-- .../Object/defineProperties/15.2.3.7-5-b-2.js | 8 +- .../defineProperties/15.2.3.7-5-b-20.js | 24 +- .../defineProperties/15.2.3.7-5-b-200.js | 56 ++-- .../defineProperties/15.2.3.7-5-b-201.js | 18 +- .../defineProperties/15.2.3.7-5-b-202.js | 38 +-- .../defineProperties/15.2.3.7-5-b-203.js | 24 +- .../defineProperties/15.2.3.7-5-b-204.js | 20 +- .../defineProperties/15.2.3.7-5-b-205.js | 16 +- .../defineProperties/15.2.3.7-5-b-206.js | 16 +- .../defineProperties/15.2.3.7-5-b-207.js | 16 +- .../defineProperties/15.2.3.7-5-b-208.js | 16 +- .../defineProperties/15.2.3.7-5-b-209.js | 14 +- .../defineProperties/15.2.3.7-5-b-21.js | 24 +- .../defineProperties/15.2.3.7-5-b-210.js | 16 +- .../defineProperties/15.2.3.7-5-b-211.js | 16 +- .../defineProperties/15.2.3.7-5-b-212.js | 14 +- .../defineProperties/15.2.3.7-5-b-213.js | 16 +- .../defineProperties/15.2.3.7-5-b-214.js | 20 +- .../defineProperties/15.2.3.7-5-b-216.js | 14 +- .../defineProperties/15.2.3.7-5-b-217.js | 12 +- .../defineProperties/15.2.3.7-5-b-218.js | 12 +- .../defineProperties/15.2.3.7-5-b-219.js | 12 +- .../defineProperties/15.2.3.7-5-b-22.js | 24 +- .../defineProperties/15.2.3.7-5-b-220.js | 12 +- .../defineProperties/15.2.3.7-5-b-221.js | 12 +- .../defineProperties/15.2.3.7-5-b-222.js | 12 +- .../defineProperties/15.2.3.7-5-b-223.js | 18 +- .../defineProperties/15.2.3.7-5-b-226.js | 20 +- .../defineProperties/15.2.3.7-5-b-227.js | 11 +- .../defineProperties/15.2.3.7-5-b-228.js | 20 +- .../defineProperties/15.2.3.7-5-b-229.js | 28 +- .../defineProperties/15.2.3.7-5-b-23.js | 24 +- .../defineProperties/15.2.3.7-5-b-230.js | 36 +-- .../defineProperties/15.2.3.7-5-b-231.js | 60 ++-- .../defineProperties/15.2.3.7-5-b-232.js | 30 +- .../defineProperties/15.2.3.7-5-b-233.js | 36 +-- .../defineProperties/15.2.3.7-5-b-234.js | 52 ++-- .../defineProperties/15.2.3.7-5-b-235.js | 62 ++-- .../defineProperties/15.2.3.7-5-b-236.js | 28 +- .../defineProperties/15.2.3.7-5-b-237.js | 48 ++-- .../defineProperties/15.2.3.7-5-b-238.js | 34 +-- .../defineProperties/15.2.3.7-5-b-239.js | 22 +- .../defineProperties/15.2.3.7-5-b-24.js | 22 +- .../defineProperties/15.2.3.7-5-b-240.js | 22 +- .../defineProperties/15.2.3.7-5-b-241.js | 22 +- .../defineProperties/15.2.3.7-5-b-242.js | 22 +- .../defineProperties/15.2.3.7-5-b-243.js | 22 +- .../defineProperties/15.2.3.7-5-b-244.js | 20 +- .../defineProperties/15.2.3.7-5-b-245.js | 22 +- .../defineProperties/15.2.3.7-5-b-246.js | 22 +- .../defineProperties/15.2.3.7-5-b-247.js | 20 +- .../defineProperties/15.2.3.7-5-b-248.js | 34 ++- .../defineProperties/15.2.3.7-5-b-249.js | 28 +- .../defineProperties/15.2.3.7-5-b-25.js | 24 +- .../defineProperties/15.2.3.7-5-b-252.js | 24 +- .../defineProperties/15.2.3.7-5-b-253.js | 12 +- .../defineProperties/15.2.3.7-5-b-254.js | 12 +- .../defineProperties/15.2.3.7-5-b-255.js | 12 +- .../defineProperties/15.2.3.7-5-b-256.js | 12 +- .../defineProperties/15.2.3.7-5-b-257.js | 12 +- .../defineProperties/15.2.3.7-5-b-258.js | 22 +- .../defineProperties/15.2.3.7-5-b-26.js | 24 +- .../defineProperties/15.2.3.7-5-b-261.js | 16 +- .../defineProperties/15.2.3.7-5-b-262.js | 16 +- .../defineProperties/15.2.3.7-5-b-263.js | 16 +- .../defineProperties/15.2.3.7-5-b-264.js | 16 +- .../defineProperties/15.2.3.7-5-b-27.js | 22 +- .../defineProperties/15.2.3.7-5-b-28.js | 24 +- .../defineProperties/15.2.3.7-5-b-29.js | 30 +- .../Object/defineProperties/15.2.3.7-5-b-3.js | 8 +- .../defineProperties/15.2.3.7-5-b-31.js | 22 +- .../defineProperties/15.2.3.7-5-b-32.js | 24 +- .../defineProperties/15.2.3.7-5-b-33.js | 24 +- .../defineProperties/15.2.3.7-5-b-34.js | 24 +- .../defineProperties/15.2.3.7-5-b-35.js | 24 +- .../defineProperties/15.2.3.7-5-b-36.js | 24 +- .../defineProperties/15.2.3.7-5-b-37.js | 24 +- .../defineProperties/15.2.3.7-5-b-38.js | 24 +- .../defineProperties/15.2.3.7-5-b-39.js | 24 +- .../Object/defineProperties/15.2.3.7-5-b-4.js | 8 +- .../defineProperties/15.2.3.7-5-b-40.js | 24 +- .../defineProperties/15.2.3.7-5-b-41.js | 24 +- .../defineProperties/15.2.3.7-5-b-42.js | 24 +- .../defineProperties/15.2.3.7-5-b-43.js | 24 +- .../defineProperties/15.2.3.7-5-b-44.js | 24 +- .../defineProperties/15.2.3.7-5-b-45.js | 24 +- .../defineProperties/15.2.3.7-5-b-46.js | 24 +- .../defineProperties/15.2.3.7-5-b-47.js | 24 +- .../defineProperties/15.2.3.7-5-b-48.js | 24 +- .../defineProperties/15.2.3.7-5-b-49.js | 24 +- .../Object/defineProperties/15.2.3.7-5-b-5.js | 8 +- .../defineProperties/15.2.3.7-5-b-50.js | 24 +- .../defineProperties/15.2.3.7-5-b-51.js | 24 +- .../defineProperties/15.2.3.7-5-b-52.js | 24 +- .../defineProperties/15.2.3.7-5-b-53.js | 24 +- .../defineProperties/15.2.3.7-5-b-54.js | 34 +-- .../defineProperties/15.2.3.7-5-b-56.js | 24 +- .../defineProperties/15.2.3.7-5-b-57.js | 24 +- .../defineProperties/15.2.3.7-5-b-58.js | 24 +- .../defineProperties/15.2.3.7-5-b-59.js | 18 +- .../Object/defineProperties/15.2.3.7-5-b-6.js | 24 +- .../defineProperties/15.2.3.7-5-b-60.js | 2 +- .../defineProperties/15.2.3.7-5-b-61.js | 18 +- .../defineProperties/15.2.3.7-5-b-62.js | 26 +- .../defineProperties/15.2.3.7-5-b-63.js | 8 +- .../defineProperties/15.2.3.7-5-b-64.js | 12 +- .../defineProperties/15.2.3.7-5-b-65.js | 26 +- .../defineProperties/15.2.3.7-5-b-66.js | 32 +-- .../defineProperties/15.2.3.7-5-b-67.js | 12 +- .../defineProperties/15.2.3.7-5-b-68.js | 16 +- .../defineProperties/15.2.3.7-5-b-69.js | 4 +- .../Object/defineProperties/15.2.3.7-5-b-7.js | 20 +- .../defineProperties/15.2.3.7-5-b-70.js | 12 +- .../defineProperties/15.2.3.7-5-b-71.js | 6 +- .../defineProperties/15.2.3.7-5-b-72.js | 18 +- .../defineProperties/15.2.3.7-5-b-73.js | 18 +- .../defineProperties/15.2.3.7-5-b-74.js | 18 +- .../defineProperties/15.2.3.7-5-b-75.js | 18 +- .../defineProperties/15.2.3.7-5-b-76.js | 18 +- .../defineProperties/15.2.3.7-5-b-77.js | 16 +- .../defineProperties/15.2.3.7-5-b-78.js | 18 +- .../defineProperties/15.2.3.7-5-b-79.js | 18 +- .../Object/defineProperties/15.2.3.7-5-b-8.js | 24 +- .../defineProperties/15.2.3.7-5-b-80.js | 16 +- .../defineProperties/15.2.3.7-5-b-81.js | 18 +- .../defineProperties/15.2.3.7-5-b-82.js | 24 +- .../defineProperties/15.2.3.7-5-b-84.js | 16 +- .../defineProperties/15.2.3.7-5-b-85.js | 6 +- .../defineProperties/15.2.3.7-5-b-86.js | 6 +- .../defineProperties/15.2.3.7-5-b-87.js | 16 +- .../defineProperties/15.2.3.7-5-b-88.js | 6 +- .../defineProperties/15.2.3.7-5-b-89.js | 6 +- .../Object/defineProperties/15.2.3.7-5-b-9.js | 32 +-- .../defineProperties/15.2.3.7-5-b-90.js | 6 +- .../defineProperties/15.2.3.7-5-b-91.js | 6 +- .../defineProperties/15.2.3.7-5-b-92.js | 6 +- .../defineProperties/15.2.3.7-5-b-93.js | 16 +- .../defineProperties/15.2.3.7-5-b-94.js | 16 +- .../defineProperties/15.2.3.7-5-b-95.js | 6 +- .../defineProperties/15.2.3.7-5-b-96.js | 16 +- .../defineProperties/15.2.3.7-5-b-97.js | 16 +- .../defineProperties/15.2.3.7-5-b-98.js | 16 +- .../defineProperties/15.2.3.7-5-b-99.js | 16 +- .../Object/defineProperties/15.2.3.7-6-a-1.js | 22 +- .../defineProperties/15.2.3.7-6-a-10.js | 42 +-- .../defineProperties/15.2.3.7-6-a-100.js | 18 +- .../defineProperties/15.2.3.7-6-a-101.js | 21 +- .../defineProperties/15.2.3.7-6-a-102.js | 19 +- .../defineProperties/15.2.3.7-6-a-103.js | 18 +- .../defineProperties/15.2.3.7-6-a-104.js | 20 +- .../defineProperties/15.2.3.7-6-a-105.js | 80 +++--- .../defineProperties/15.2.3.7-6-a-106.js | 18 +- .../defineProperties/15.2.3.7-6-a-107.js | 19 +- .../defineProperties/15.2.3.7-6-a-108.js | 19 +- .../defineProperties/15.2.3.7-6-a-109.js | 26 +- .../defineProperties/15.2.3.7-6-a-11.js | 32 +-- .../defineProperties/15.2.3.7-6-a-110.js | 30 +- .../defineProperties/15.2.3.7-6-a-111.js | 52 ++-- .../defineProperties/15.2.3.7-6-a-112.js | 20 +- .../defineProperties/15.2.3.7-6-a-113.js | 22 +- .../defineProperties/15.2.3.7-6-a-114-b.js | 6 +- .../defineProperties/15.2.3.7-6-a-114.js | 6 +- .../defineProperties/15.2.3.7-6-a-115.js | 10 +- .../defineProperties/15.2.3.7-6-a-116.js | 10 +- .../defineProperties/15.2.3.7-6-a-117.js | 10 +- .../defineProperties/15.2.3.7-6-a-118.js | 16 +- .../defineProperties/15.2.3.7-6-a-119.js | 16 +- .../defineProperties/15.2.3.7-6-a-12.js | 34 +-- .../defineProperties/15.2.3.7-6-a-120.js | 5 +- .../defineProperties/15.2.3.7-6-a-121.js | 10 +- .../defineProperties/15.2.3.7-6-a-122.js | 10 +- .../defineProperties/15.2.3.7-6-a-123.js | 10 +- .../defineProperties/15.2.3.7-6-a-124.js | 10 +- .../defineProperties/15.2.3.7-6-a-125.js | 10 +- .../defineProperties/15.2.3.7-6-a-126.js | 10 +- .../defineProperties/15.2.3.7-6-a-127.js | 10 +- .../defineProperties/15.2.3.7-6-a-128.js | 10 +- .../defineProperties/15.2.3.7-6-a-129.js | 12 +- .../defineProperties/15.2.3.7-6-a-13.js | 32 +-- .../defineProperties/15.2.3.7-6-a-130.js | 12 +- .../defineProperties/15.2.3.7-6-a-131.js | 12 +- .../defineProperties/15.2.3.7-6-a-132.js | 12 +- .../defineProperties/15.2.3.7-6-a-133.js | 12 +- .../defineProperties/15.2.3.7-6-a-134.js | 12 +- .../defineProperties/15.2.3.7-6-a-135.js | 12 +- .../defineProperties/15.2.3.7-6-a-136.js | 12 +- .../defineProperties/15.2.3.7-6-a-137.js | 12 +- .../defineProperties/15.2.3.7-6-a-138.js | 12 +- .../defineProperties/15.2.3.7-6-a-139.js | 12 +- .../defineProperties/15.2.3.7-6-a-14.js | 32 +-- .../defineProperties/15.2.3.7-6-a-140.js | 12 +- .../defineProperties/15.2.3.7-6-a-141.js | 12 +- .../defineProperties/15.2.3.7-6-a-142.js | 20 +- .../defineProperties/15.2.3.7-6-a-143.js | 20 +- .../defineProperties/15.2.3.7-6-a-144.js | 34 +-- .../defineProperties/15.2.3.7-6-a-145.js | 34 +-- .../defineProperties/15.2.3.7-6-a-146.js | 34 +-- .../defineProperties/15.2.3.7-6-a-147.js | 50 ++-- .../defineProperties/15.2.3.7-6-a-148.js | 12 +- .../defineProperties/15.2.3.7-6-a-149.js | 12 +- .../defineProperties/15.2.3.7-6-a-15.js | 32 +-- .../defineProperties/15.2.3.7-6-a-150.js | 12 +- .../defineProperties/15.2.3.7-6-a-151.js | 12 +- .../defineProperties/15.2.3.7-6-a-152.js | 12 +- .../defineProperties/15.2.3.7-6-a-153.js | 12 +- .../defineProperties/15.2.3.7-6-a-155.js | 12 +- .../defineProperties/15.2.3.7-6-a-156.js | 12 +- .../defineProperties/15.2.3.7-6-a-157.js | 12 +- .../defineProperties/15.2.3.7-6-a-158.js | 18 +- .../defineProperties/15.2.3.7-6-a-159.js | 18 +- .../defineProperties/15.2.3.7-6-a-16.js | 32 +-- .../defineProperties/15.2.3.7-6-a-160.js | 18 +- .../defineProperties/15.2.3.7-6-a-161.js | 14 +- .../defineProperties/15.2.3.7-6-a-162.js | 16 +- .../defineProperties/15.2.3.7-6-a-163.js | 10 +- .../defineProperties/15.2.3.7-6-a-164.js | 27 +- .../defineProperties/15.2.3.7-6-a-165.js | 24 +- .../defineProperties/15.2.3.7-6-a-166.js | 18 +- .../defineProperties/15.2.3.7-6-a-167.js | 14 +- .../defineProperties/15.2.3.7-6-a-168.js | 20 +- .../defineProperties/15.2.3.7-6-a-169.js | 30 +- .../defineProperties/15.2.3.7-6-a-17.js | 22 +- .../defineProperties/15.2.3.7-6-a-170.js | 24 +- .../defineProperties/15.2.3.7-6-a-171.js | 24 +- .../defineProperties/15.2.3.7-6-a-172.js | 26 +- .../defineProperties/15.2.3.7-6-a-173.js | 36 +-- .../defineProperties/15.2.3.7-6-a-174.js | 12 +- .../defineProperties/15.2.3.7-6-a-175.js | 18 +- .../defineProperties/15.2.3.7-6-a-176.js | 33 ++- .../defineProperties/15.2.3.7-6-a-177.js | 10 +- .../defineProperties/15.2.3.7-6-a-178.js | 12 +- .../defineProperties/15.2.3.7-6-a-179.js | 12 +- .../defineProperties/15.2.3.7-6-a-18.js | 32 +-- .../defineProperties/15.2.3.7-6-a-180.js | 12 +- .../defineProperties/15.2.3.7-6-a-181.js | 12 +- .../defineProperties/15.2.3.7-6-a-182.js | 12 +- .../defineProperties/15.2.3.7-6-a-183.js | 18 +- .../defineProperties/15.2.3.7-6-a-184.js | 18 +- .../defineProperties/15.2.3.7-6-a-185.js | 18 +- .../defineProperties/15.2.3.7-6-a-186.js | 22 +- .../defineProperties/15.2.3.7-6-a-187.js | 20 +- .../defineProperties/15.2.3.7-6-a-188.js | 26 +- .../defineProperties/15.2.3.7-6-a-189.js | 30 +- .../defineProperties/15.2.3.7-6-a-19.js | 32 +-- .../defineProperties/15.2.3.7-6-a-190.js | 30 +- .../defineProperties/15.2.3.7-6-a-191.js | 30 +- .../defineProperties/15.2.3.7-6-a-192.js | 30 +- .../defineProperties/15.2.3.7-6-a-193.js | 34 +-- .../defineProperties/15.2.3.7-6-a-194.js | 14 +- .../defineProperties/15.2.3.7-6-a-195.js | 6 +- .../defineProperties/15.2.3.7-6-a-196.js | 18 +- .../defineProperties/15.2.3.7-6-a-197.js | 10 +- .../defineProperties/15.2.3.7-6-a-198.js | 32 +-- .../defineProperties/15.2.3.7-6-a-199.js | 10 +- .../Object/defineProperties/15.2.3.7-6-a-2.js | 15 +- .../defineProperties/15.2.3.7-6-a-20.js | 22 +- .../defineProperties/15.2.3.7-6-a-200.js | 13 +- .../defineProperties/15.2.3.7-6-a-201.js | 18 +- .../defineProperties/15.2.3.7-6-a-202.js | 44 +-- .../defineProperties/15.2.3.7-6-a-203.js | 22 +- .../defineProperties/15.2.3.7-6-a-204.js | 22 +- .../defineProperties/15.2.3.7-6-a-205.js | 36 +-- .../defineProperties/15.2.3.7-6-a-206.js | 2 +- .../defineProperties/15.2.3.7-6-a-207.js | 16 +- .../defineProperties/15.2.3.7-6-a-208.js | 12 +- .../defineProperties/15.2.3.7-6-a-209.js | 18 +- .../defineProperties/15.2.3.7-6-a-21.js | 32 +-- .../defineProperties/15.2.3.7-6-a-210.js | 8 +- .../defineProperties/15.2.3.7-6-a-211.js | 8 +- .../defineProperties/15.2.3.7-6-a-212.js | 8 +- .../defineProperties/15.2.3.7-6-a-213.js | 28 +- .../defineProperties/15.2.3.7-6-a-214.js | 28 +- .../defineProperties/15.2.3.7-6-a-215.js | 8 +- .../defineProperties/15.2.3.7-6-a-216.js | 9 +- .../defineProperties/15.2.3.7-6-a-217.js | 9 +- .../defineProperties/15.2.3.7-6-a-218.js | 13 +- .../defineProperties/15.2.3.7-6-a-219.js | 9 +- .../defineProperties/15.2.3.7-6-a-22.js | 26 +- .../defineProperties/15.2.3.7-6-a-220.js | 11 +- .../defineProperties/15.2.3.7-6-a-221.js | 10 +- .../defineProperties/15.2.3.7-6-a-222.js | 10 +- .../defineProperties/15.2.3.7-6-a-223.js | 9 +- .../defineProperties/15.2.3.7-6-a-224.js | 11 +- .../defineProperties/15.2.3.7-6-a-225.js | 9 +- .../defineProperties/15.2.3.7-6-a-226.js | 9 +- .../defineProperties/15.2.3.7-6-a-227.js | 30 +- .../defineProperties/15.2.3.7-6-a-228.js | 34 +-- .../defineProperties/15.2.3.7-6-a-229.js | 30 +- .../defineProperties/15.2.3.7-6-a-230.js | 30 +- .../defineProperties/15.2.3.7-6-a-231.js | 8 +- .../defineProperties/15.2.3.7-6-a-232.js | 14 +- .../defineProperties/15.2.3.7-6-a-233.js | 30 +- .../defineProperties/15.2.3.7-6-a-234.js | 32 +-- .../defineProperties/15.2.3.7-6-a-235.js | 28 +- .../defineProperties/15.2.3.7-6-a-236.js | 28 +- .../defineProperties/15.2.3.7-6-a-237.js | 28 +- .../defineProperties/15.2.3.7-6-a-238.js | 28 +- .../defineProperties/15.2.3.7-6-a-239.js | 28 +- .../defineProperties/15.2.3.7-6-a-24.js | 14 +- .../defineProperties/15.2.3.7-6-a-240.js | 36 +-- .../defineProperties/15.2.3.7-6-a-241.js | 28 +- .../defineProperties/15.2.3.7-6-a-242.js | 28 +- .../defineProperties/15.2.3.7-6-a-243.js | 8 +- .../defineProperties/15.2.3.7-6-a-244.js | 34 +-- .../defineProperties/15.2.3.7-6-a-245.js | 28 +- .../defineProperties/15.2.3.7-6-a-246.js | 9 +- .../defineProperties/15.2.3.7-6-a-247.js | 7 +- .../defineProperties/15.2.3.7-6-a-248.js | 6 +- .../defineProperties/15.2.3.7-6-a-249.js | 7 +- .../defineProperties/15.2.3.7-6-a-25.js | 16 +- .../defineProperties/15.2.3.7-6-a-250.js | 7 +- .../defineProperties/15.2.3.7-6-a-251.js | 6 +- .../defineProperties/15.2.3.7-6-a-252.js | 7 +- .../defineProperties/15.2.3.7-6-a-253.js | 11 +- .../defineProperties/15.2.3.7-6-a-254.js | 16 +- .../defineProperties/15.2.3.7-6-a-255.js | 14 +- .../defineProperties/15.2.3.7-6-a-256.js | 12 +- .../defineProperties/15.2.3.7-6-a-257.js | 13 +- .../defineProperties/15.2.3.7-6-a-258.js | 10 +- .../defineProperties/15.2.3.7-6-a-259.js | 12 +- .../defineProperties/15.2.3.7-6-a-26.js | 16 +- .../defineProperties/15.2.3.7-6-a-260.js | 14 +- .../defineProperties/15.2.3.7-6-a-261.js | 13 +- .../defineProperties/15.2.3.7-6-a-262.js | 27 +- .../defineProperties/15.2.3.7-6-a-263.js | 14 +- .../defineProperties/15.2.3.7-6-a-264.js | 14 +- .../defineProperties/15.2.3.7-6-a-265.js | 12 +- .../defineProperties/15.2.3.7-6-a-266.js | 15 +- .../defineProperties/15.2.3.7-6-a-267.js | 20 +- .../defineProperties/15.2.3.7-6-a-268.js | 26 +- .../defineProperties/15.2.3.7-6-a-269.js | 13 +- .../defineProperties/15.2.3.7-6-a-27.js | 14 +- .../defineProperties/15.2.3.7-6-a-270.js | 28 +- .../defineProperties/15.2.3.7-6-a-271.js | 28 +- .../defineProperties/15.2.3.7-6-a-272.js | 30 +- .../defineProperties/15.2.3.7-6-a-273.js | 28 +- .../defineProperties/15.2.3.7-6-a-274.js | 39 +-- .../defineProperties/15.2.3.7-6-a-275.js | 26 +- .../defineProperties/15.2.3.7-6-a-276.js | 30 +- .../defineProperties/15.2.3.7-6-a-277.js | 30 +- .../defineProperties/15.2.3.7-6-a-278.js | 14 +- .../defineProperties/15.2.3.7-6-a-279.js | 19 +- .../defineProperties/15.2.3.7-6-a-28.js | 12 +- .../defineProperties/15.2.3.7-6-a-280.js | 58 ++-- .../defineProperties/15.2.3.7-6-a-281.js | 14 +- .../defineProperties/15.2.3.7-6-a-282.js | 34 +-- .../defineProperties/15.2.3.7-6-a-283.js | 36 +-- .../defineProperties/15.2.3.7-6-a-284.js | 36 +-- .../defineProperties/15.2.3.7-6-a-285.js | 36 +-- .../defineProperties/15.2.3.7-6-a-286.js | 42 +-- .../defineProperties/15.2.3.7-6-a-287.js | 44 +-- .../defineProperties/15.2.3.7-6-a-288.js | 34 +-- .../defineProperties/15.2.3.7-6-a-289.js | 34 +-- .../defineProperties/15.2.3.7-6-a-29.js | 20 +- .../defineProperties/15.2.3.7-6-a-290.js | 14 +- .../defineProperties/15.2.3.7-6-a-291.js | 19 +- .../defineProperties/15.2.3.7-6-a-292.js | 22 +- .../defineProperties/15.2.3.7-6-a-293.js | 14 +- .../defineProperties/15.2.3.7-6-a-294.js | 34 +-- .../defineProperties/15.2.3.7-6-a-295.js | 36 +-- .../defineProperties/15.2.3.7-6-a-296.js | 36 +-- .../defineProperties/15.2.3.7-6-a-297.js | 36 +-- .../defineProperties/15.2.3.7-6-a-298.js | 36 +-- .../defineProperties/15.2.3.7-6-a-299.js | 38 +-- .../Object/defineProperties/15.2.3.7-6-a-3.js | 36 +-- .../defineProperties/15.2.3.7-6-a-30.js | 9 +- .../defineProperties/15.2.3.7-6-a-300.js | 34 +-- .../defineProperties/15.2.3.7-6-a-301.js | 34 +-- .../defineProperties/15.2.3.7-6-a-302.js | 16 +- .../defineProperties/15.2.3.7-6-a-303.js | 21 +- .../defineProperties/15.2.3.7-6-a-304.js | 37 +-- .../defineProperties/15.2.3.7-6-a-305.js | 22 +- .../defineProperties/15.2.3.7-6-a-306.js | 36 +-- .../defineProperties/15.2.3.7-6-a-307.js | 34 +-- .../defineProperties/15.2.3.7-6-a-308.js | 34 +-- .../defineProperties/15.2.3.7-6-a-309.js | 32 +-- .../defineProperties/15.2.3.7-6-a-31.js | 13 +- .../defineProperties/15.2.3.7-6-a-310.js | 49 ++-- .../defineProperties/15.2.3.7-6-a-311.js | 40 +-- .../defineProperties/15.2.3.7-6-a-312.js | 36 +-- .../defineProperties/15.2.3.7-6-a-313.js | 34 +-- .../defineProperties/15.2.3.7-6-a-314.js | 24 +- .../defineProperties/15.2.3.7-6-a-32.js | 8 +- .../defineProperties/15.2.3.7-6-a-33.js | 15 +- .../defineProperties/15.2.3.7-6-a-34.js | 26 +- .../defineProperties/15.2.3.7-6-a-35.js | 19 +- .../defineProperties/15.2.3.7-6-a-36.js | 18 +- .../defineProperties/15.2.3.7-6-a-37.js | 21 +- .../defineProperties/15.2.3.7-6-a-38-1.js | 18 +- .../defineProperties/15.2.3.7-6-a-38.js | 4 +- .../defineProperties/15.2.3.7-6-a-39.js | 13 +- .../Object/defineProperties/15.2.3.7-6-a-4.js | 40 +-- .../defineProperties/15.2.3.7-6-a-40.js | 26 +- .../defineProperties/15.2.3.7-6-a-41.js | 7 +- .../defineProperties/15.2.3.7-6-a-42.js | 11 +- .../defineProperties/15.2.3.7-6-a-43.js | 11 +- .../defineProperties/15.2.3.7-6-a-44.js | 11 +- .../defineProperties/15.2.3.7-6-a-45.js | 30 +- .../defineProperties/15.2.3.7-6-a-46.js | 30 +- .../defineProperties/15.2.3.7-6-a-47.js | 10 +- .../defineProperties/15.2.3.7-6-a-48.js | 6 +- .../defineProperties/15.2.3.7-6-a-49.js | 10 +- .../Object/defineProperties/15.2.3.7-6-a-5.js | 33 +-- .../defineProperties/15.2.3.7-6-a-50.js | 6 +- .../defineProperties/15.2.3.7-6-a-51.js | 10 +- .../defineProperties/15.2.3.7-6-a-52.js | 6 +- .../defineProperties/15.2.3.7-6-a-53.js | 14 +- .../defineProperties/15.2.3.7-6-a-54.js | 14 +- .../defineProperties/15.2.3.7-6-a-55.js | 10 +- .../defineProperties/15.2.3.7-6-a-56.js | 13 +- .../defineProperties/15.2.3.7-6-a-57.js | 11 +- .../defineProperties/15.2.3.7-6-a-58.js | 58 ++-- .../defineProperties/15.2.3.7-6-a-59.js | 10 +- .../Object/defineProperties/15.2.3.7-6-a-6.js | 36 +-- .../defineProperties/15.2.3.7-6-a-60.js | 12 +- .../defineProperties/15.2.3.7-6-a-61.js | 12 +- .../defineProperties/15.2.3.7-6-a-62.js | 14 +- .../defineProperties/15.2.3.7-6-a-63.js | 12 +- .../defineProperties/15.2.3.7-6-a-64.js | 10 +- .../defineProperties/15.2.3.7-6-a-65.js | 30 +- .../defineProperties/15.2.3.7-6-a-66-1.js | 32 +-- .../defineProperties/15.2.3.7-6-a-66.js | 34 +-- .../defineProperties/15.2.3.7-6-a-67.js | 33 ++- .../defineProperties/15.2.3.7-6-a-68.js | 32 +-- .../defineProperties/15.2.3.7-6-a-69.js | 64 ++--- .../Object/defineProperties/15.2.3.7-6-a-7.js | 40 +-- .../defineProperties/15.2.3.7-6-a-70.js | 12 +- .../defineProperties/15.2.3.7-6-a-71.js | 34 +-- .../defineProperties/15.2.3.7-6-a-72.js | 34 +-- .../defineProperties/15.2.3.7-6-a-73.js | 14 +- .../defineProperties/15.2.3.7-6-a-74.js | 14 +- .../defineProperties/15.2.3.7-6-a-75.js | 13 +- .../defineProperties/15.2.3.7-6-a-76.js | 34 +-- .../defineProperties/15.2.3.7-6-a-77.js | 34 +-- .../defineProperties/15.2.3.7-6-a-78.js | 13 +- .../defineProperties/15.2.3.7-6-a-79.js | 34 +-- .../Object/defineProperties/15.2.3.7-6-a-8.js | 44 +-- .../defineProperties/15.2.3.7-6-a-80.js | 12 +- .../defineProperties/15.2.3.7-6-a-81.js | 34 +-- .../defineProperties/15.2.3.7-6-a-82.js | 12 +- .../defineProperties/15.2.3.7-6-a-83.js | 32 +-- .../defineProperties/15.2.3.7-6-a-84-1.js | 16 +- .../defineProperties/15.2.3.7-6-a-84.js | 20 +- .../defineProperties/15.2.3.7-6-a-85.js | 44 +-- .../defineProperties/15.2.3.7-6-a-86-1.js | 34 +-- .../defineProperties/15.2.3.7-6-a-86.js | 13 +- .../defineProperties/15.2.3.7-6-a-87.js | 31 +- .../defineProperties/15.2.3.7-6-a-88.js | 40 +-- .../defineProperties/15.2.3.7-6-a-89.js | 20 +- .../Object/defineProperties/15.2.3.7-6-a-9.js | 22 +- .../defineProperties/15.2.3.7-6-a-90.js | 19 +- .../defineProperties/15.2.3.7-6-a-91.js | 42 +-- .../defineProperties/15.2.3.7-6-a-92.js | 36 +-- .../defineProperties/15.2.3.7-6-a-93-1.js | 54 ++-- .../defineProperties/15.2.3.7-6-a-93-2.js | 54 ++-- .../defineProperties/15.2.3.7-6-a-93-3.js | 54 ++-- .../defineProperties/15.2.3.7-6-a-93-4.js | 54 ++-- .../defineProperties/15.2.3.7-6-a-93.js | 16 +- .../defineProperties/15.2.3.7-6-a-94.js | 6 +- .../defineProperties/15.2.3.7-6-a-95.js | 14 +- .../defineProperties/15.2.3.7-6-a-96.js | 14 +- .../defineProperties/15.2.3.7-6-a-97.js | 16 +- .../defineProperties/15.2.3.7-6-a-98.js | 16 +- .../defineProperties/15.2.3.7-6-a-99.js | 16 +- .../Object/defineProperty/15.2.3.6-0-1.js | 2 +- .../Object/defineProperty/15.2.3.6-1-1.js | 2 +- .../Object/defineProperty/15.2.3.6-1-2.js | 2 +- .../Object/defineProperty/15.2.3.6-1-3.js | 2 +- .../Object/defineProperty/15.2.3.6-1-4.js | 2 +- .../Object/defineProperty/15.2.3.6-1.js | 2 +- .../Object/defineProperty/15.2.3.6-2-1.js | 4 +- .../Object/defineProperty/15.2.3.6-2-10.js | 4 +- .../Object/defineProperty/15.2.3.6-2-11.js | 4 +- .../Object/defineProperty/15.2.3.6-2-12.js | 4 +- .../Object/defineProperty/15.2.3.6-2-13.js | 4 +- .../Object/defineProperty/15.2.3.6-2-14.js | 4 +- .../Object/defineProperty/15.2.3.6-2-15.js | 4 +- .../Object/defineProperty/15.2.3.6-2-16.js | 4 +- .../Object/defineProperty/15.2.3.6-2-17-1.js | 4 +- .../Object/defineProperty/15.2.3.6-2-17.js | 4 +- .../Object/defineProperty/15.2.3.6-2-18.js | 4 +- .../Object/defineProperty/15.2.3.6-2-19.js | 4 +- .../Object/defineProperty/15.2.3.6-2-2.js | 4 +- .../Object/defineProperty/15.2.3.6-2-20.js | 4 +- .../Object/defineProperty/15.2.3.6-2-21.js | 4 +- .../Object/defineProperty/15.2.3.6-2-22.js | 4 +- .../Object/defineProperty/15.2.3.6-2-23.js | 4 +- .../Object/defineProperty/15.2.3.6-2-24.js | 4 +- .../Object/defineProperty/15.2.3.6-2-25.js | 4 +- .../Object/defineProperty/15.2.3.6-2-26.js | 4 +- .../Object/defineProperty/15.2.3.6-2-27.js | 4 +- .../Object/defineProperty/15.2.3.6-2-28.js | 4 +- .../Object/defineProperty/15.2.3.6-2-29.js | 4 +- .../Object/defineProperty/15.2.3.6-2-3.js | 4 +- .../Object/defineProperty/15.2.3.6-2-30.js | 4 +- .../Object/defineProperty/15.2.3.6-2-31.js | 4 +- .../Object/defineProperty/15.2.3.6-2-32.js | 4 +- .../Object/defineProperty/15.2.3.6-2-33.js | 4 +- .../Object/defineProperty/15.2.3.6-2-34.js | 4 +- .../Object/defineProperty/15.2.3.6-2-35.js | 4 +- .../Object/defineProperty/15.2.3.6-2-36.js | 4 +- .../Object/defineProperty/15.2.3.6-2-37.js | 4 +- .../Object/defineProperty/15.2.3.6-2-38.js | 4 +- .../Object/defineProperty/15.2.3.6-2-39.js | 4 +- .../Object/defineProperty/15.2.3.6-2-4.js | 4 +- .../Object/defineProperty/15.2.3.6-2-40.js | 4 +- .../Object/defineProperty/15.2.3.6-2-41.js | 4 +- .../Object/defineProperty/15.2.3.6-2-42.js | 4 +- .../Object/defineProperty/15.2.3.6-2-43.js | 14 +- .../Object/defineProperty/15.2.3.6-2-44.js | 16 +- .../Object/defineProperty/15.2.3.6-2-45.js | 28 +- .../Object/defineProperty/15.2.3.6-2-46.js | 28 +- .../Object/defineProperty/15.2.3.6-2-47.js | 28 +- .../Object/defineProperty/15.2.3.6-2-48.js | 34 +-- .../Object/defineProperty/15.2.3.6-2-5.js | 4 +- .../Object/defineProperty/15.2.3.6-2-6.js | 4 +- .../Object/defineProperty/15.2.3.6-2-7.js | 4 +- .../Object/defineProperty/15.2.3.6-2-8.js | 4 +- .../Object/defineProperty/15.2.3.6-2-9.js | 4 +- .../Object/defineProperty/15.2.3.6-3-1.js | 15 +- .../Object/defineProperty/15.2.3.6-3-10.js | 14 +- .../Object/defineProperty/15.2.3.6-3-100.js | 6 +- .../Object/defineProperty/15.2.3.6-3-101.js | 12 +- .../Object/defineProperty/15.2.3.6-3-102.js | 6 +- .../Object/defineProperty/15.2.3.6-3-103.js | 6 +- .../Object/defineProperty/15.2.3.6-3-104.js | 4 +- .../Object/defineProperty/15.2.3.6-3-105.js | 6 +- .../Object/defineProperty/15.2.3.6-3-106.js | 6 +- .../Object/defineProperty/15.2.3.6-3-107.js | 12 +- .../Object/defineProperty/15.2.3.6-3-108.js | 12 +- .../Object/defineProperty/15.2.3.6-3-109.js | 6 +- .../Object/defineProperty/15.2.3.6-3-11.js | 14 +- .../Object/defineProperty/15.2.3.6-3-110.js | 12 +- .../Object/defineProperty/15.2.3.6-3-111.js | 14 +- .../Object/defineProperty/15.2.3.6-3-112.js | 12 +- .../Object/defineProperty/15.2.3.6-3-113.js | 12 +- .../Object/defineProperty/15.2.3.6-3-114.js | 12 +- .../Object/defineProperty/15.2.3.6-3-115.js | 12 +- .../Object/defineProperty/15.2.3.6-3-116.js | 12 +- .../Object/defineProperty/15.2.3.6-3-117.js | 12 +- .../Object/defineProperty/15.2.3.6-3-118.js | 16 +- .../Object/defineProperty/15.2.3.6-3-119.js | 16 +- .../Object/defineProperty/15.2.3.6-3-12.js | 14 +- .../Object/defineProperty/15.2.3.6-3-120.js | 16 +- .../Object/defineProperty/15.2.3.6-3-121.js | 20 +- .../Object/defineProperty/15.2.3.6-3-123.js | 16 +- .../Object/defineProperty/15.2.3.6-3-124.js | 16 +- .../Object/defineProperty/15.2.3.6-3-125.js | 16 +- .../Object/defineProperty/15.2.3.6-3-126.js | 8 +- .../Object/defineProperty/15.2.3.6-3-127.js | 12 +- .../Object/defineProperty/15.2.3.6-3-129.js | 16 +- .../Object/defineProperty/15.2.3.6-3-13.js | 14 +- .../Object/defineProperty/15.2.3.6-3-130.js | 16 +- .../Object/defineProperty/15.2.3.6-3-131.js | 28 +- .../Object/defineProperty/15.2.3.6-3-132.js | 16 +- .../Object/defineProperty/15.2.3.6-3-133.js | 22 +- .../Object/defineProperty/15.2.3.6-3-134.js | 26 +- .../Object/defineProperty/15.2.3.6-3-135.js | 32 +-- .../Object/defineProperty/15.2.3.6-3-136.js | 14 +- .../Object/defineProperty/15.2.3.6-3-137.js | 30 +- .../Object/defineProperty/15.2.3.6-3-138.js | 22 +- .../Object/defineProperty/15.2.3.6-3-139-1.js | 12 +- .../Object/defineProperty/15.2.3.6-3-139.js | 12 +- .../Object/defineProperty/15.2.3.6-3-14.js | 16 +- .../Object/defineProperty/15.2.3.6-3-140-1.js | 8 +- .../Object/defineProperty/15.2.3.6-3-140.js | 8 +- .../Object/defineProperty/15.2.3.6-3-141-1.js | 8 +- .../Object/defineProperty/15.2.3.6-3-141.js | 8 +- .../Object/defineProperty/15.2.3.6-3-142-1.js | 8 +- .../Object/defineProperty/15.2.3.6-3-142.js | 8 +- .../Object/defineProperty/15.2.3.6-3-143-1.js | 8 +- .../Object/defineProperty/15.2.3.6-3-143.js | 8 +- .../Object/defineProperty/15.2.3.6-3-144-1.js | 6 +- .../Object/defineProperty/15.2.3.6-3-144.js | 6 +- .../Object/defineProperty/15.2.3.6-3-145-1.js | 8 +- .../Object/defineProperty/15.2.3.6-3-145.js | 8 +- .../Object/defineProperty/15.2.3.6-3-146-1.js | 8 +- .../Object/defineProperty/15.2.3.6-3-146.js | 8 +- .../Object/defineProperty/15.2.3.6-3-147-1.js | 6 +- .../Object/defineProperty/15.2.3.6-3-147.js | 6 +- .../Object/defineProperty/15.2.3.6-3-148-1.js | 8 +- .../Object/defineProperty/15.2.3.6-3-148.js | 8 +- .../Object/defineProperty/15.2.3.6-3-149-1.js | 10 +- .../Object/defineProperty/15.2.3.6-3-149.js | 10 +- .../Object/defineProperty/15.2.3.6-3-15.js | 4 +- .../Object/defineProperty/15.2.3.6-3-151.js | 6 +- .../Object/defineProperty/15.2.3.6-3-152.js | 3 +- .../Object/defineProperty/15.2.3.6-3-153.js | 2 +- .../Object/defineProperty/15.2.3.6-3-154.js | 16 +- .../Object/defineProperty/15.2.3.6-3-155.js | 22 +- .../Object/defineProperty/15.2.3.6-3-156.js | 24 +- .../Object/defineProperty/15.2.3.6-3-157.js | 34 +-- .../Object/defineProperty/15.2.3.6-3-158.js | 22 +- .../Object/defineProperty/15.2.3.6-3-159.js | 28 +- .../Object/defineProperty/15.2.3.6-3-16.js | 2 +- .../Object/defineProperty/15.2.3.6-3-160.js | 32 +-- .../Object/defineProperty/15.2.3.6-3-161.js | 38 +-- .../Object/defineProperty/15.2.3.6-3-162.js | 3 +- .../Object/defineProperty/15.2.3.6-3-163.js | 10 +- .../Object/defineProperty/15.2.3.6-3-164.js | 4 +- .../Object/defineProperty/15.2.3.6-3-165-1.js | 18 +- .../Object/defineProperty/15.2.3.6-3-165.js | 18 +- .../Object/defineProperty/15.2.3.6-3-166-1.js | 14 +- .../Object/defineProperty/15.2.3.6-3-166.js | 14 +- .../Object/defineProperty/15.2.3.6-3-167-1.js | 14 +- .../Object/defineProperty/15.2.3.6-3-167.js | 14 +- .../Object/defineProperty/15.2.3.6-3-168-1.js | 14 +- .../Object/defineProperty/15.2.3.6-3-168.js | 14 +- .../Object/defineProperty/15.2.3.6-3-169-1.js | 14 +- .../Object/defineProperty/15.2.3.6-3-169.js | 14 +- .../Object/defineProperty/15.2.3.6-3-17.js | 2 +- .../Object/defineProperty/15.2.3.6-3-170-1.js | 12 +- .../Object/defineProperty/15.2.3.6-3-170.js | 12 +- .../Object/defineProperty/15.2.3.6-3-171-1.js | 10 +- .../Object/defineProperty/15.2.3.6-3-171.js | 14 +- .../Object/defineProperty/15.2.3.6-3-172-1.js | 14 +- .../Object/defineProperty/15.2.3.6-3-172.js | 14 +- .../Object/defineProperty/15.2.3.6-3-173-1.js | 12 +- .../Object/defineProperty/15.2.3.6-3-173.js | 12 +- .../Object/defineProperty/15.2.3.6-3-174-1.js | 14 +- .../Object/defineProperty/15.2.3.6-3-174.js | 14 +- .../Object/defineProperty/15.2.3.6-3-175-1.js | 16 +- .../Object/defineProperty/15.2.3.6-3-175.js | 16 +- .../Object/defineProperty/15.2.3.6-3-177.js | 12 +- .../Object/defineProperty/15.2.3.6-3-178.js | 2 +- .../Object/defineProperty/15.2.3.6-3-179.js | 6 +- .../Object/defineProperty/15.2.3.6-3-18.js | 2 +- .../Object/defineProperty/15.2.3.6-3-180.js | 12 +- .../Object/defineProperty/15.2.3.6-3-181.js | 6 +- .../Object/defineProperty/15.2.3.6-3-182.js | 6 +- .../Object/defineProperty/15.2.3.6-3-183.js | 4 +- .../Object/defineProperty/15.2.3.6-3-184.js | 6 +- .../Object/defineProperty/15.2.3.6-3-185.js | 9 +- .../Object/defineProperty/15.2.3.6-3-186.js | 12 +- .../Object/defineProperty/15.2.3.6-3-187.js | 12 +- .../Object/defineProperty/15.2.3.6-3-188.js | 4 +- .../Object/defineProperty/15.2.3.6-3-189.js | 12 +- .../Object/defineProperty/15.2.3.6-3-19.js | 2 +- .../Object/defineProperty/15.2.3.6-3-190.js | 14 +- .../Object/defineProperty/15.2.3.6-3-191.js | 12 +- .../Object/defineProperty/15.2.3.6-3-192.js | 12 +- .../Object/defineProperty/15.2.3.6-3-193.js | 12 +- .../Object/defineProperty/15.2.3.6-3-194.js | 12 +- .../Object/defineProperty/15.2.3.6-3-195.js | 12 +- .../Object/defineProperty/15.2.3.6-3-196.js | 12 +- .../Object/defineProperty/15.2.3.6-3-197.js | 14 +- .../Object/defineProperty/15.2.3.6-3-198.js | 12 +- .../Object/defineProperty/15.2.3.6-3-199.js | 12 +- .../Object/defineProperty/15.2.3.6-3-2.js | 17 +- .../Object/defineProperty/15.2.3.6-3-20.js | 20 +- .../Object/defineProperty/15.2.3.6-3-200.js | 16 +- .../Object/defineProperty/15.2.3.6-3-202.js | 14 +- .../Object/defineProperty/15.2.3.6-3-203.js | 12 +- .../Object/defineProperty/15.2.3.6-3-204.js | 12 +- .../Object/defineProperty/15.2.3.6-3-205.js | 12 +- .../Object/defineProperty/15.2.3.6-3-206.js | 8 +- .../Object/defineProperty/15.2.3.6-3-207.js | 14 +- .../Object/defineProperty/15.2.3.6-3-208.js | 20 +- .../Object/defineProperty/15.2.3.6-3-209.js | 26 +- .../Object/defineProperty/15.2.3.6-3-21.js | 18 +- .../Object/defineProperty/15.2.3.6-3-210.js | 38 +-- .../Object/defineProperty/15.2.3.6-3-211.js | 20 +- .../Object/defineProperty/15.2.3.6-3-212.js | 26 +- .../Object/defineProperty/15.2.3.6-3-213.js | 34 +-- .../Object/defineProperty/15.2.3.6-3-214.js | 40 +-- .../Object/defineProperty/15.2.3.6-3-215.js | 12 +- .../Object/defineProperty/15.2.3.6-3-216.js | 32 +-- .../Object/defineProperty/15.2.3.6-3-217.js | 18 +- .../Object/defineProperty/15.2.3.6-3-218-1.js | 12 +- .../Object/defineProperty/15.2.3.6-3-218.js | 12 +- .../Object/defineProperty/15.2.3.6-3-219-1.js | 12 +- .../Object/defineProperty/15.2.3.6-3-219.js | 12 +- .../Object/defineProperty/15.2.3.6-3-22.js | 20 +- .../Object/defineProperty/15.2.3.6-3-220-1.js | 12 +- .../Object/defineProperty/15.2.3.6-3-220.js | 12 +- .../Object/defineProperty/15.2.3.6-3-221-1.js | 12 +- .../Object/defineProperty/15.2.3.6-3-221.js | 12 +- .../Object/defineProperty/15.2.3.6-3-222-1.js | 12 +- .../Object/defineProperty/15.2.3.6-3-222.js | 12 +- .../Object/defineProperty/15.2.3.6-3-223-1.js | 10 +- .../Object/defineProperty/15.2.3.6-3-223.js | 10 +- .../Object/defineProperty/15.2.3.6-3-224-1.js | 12 +- .../Object/defineProperty/15.2.3.6-3-224.js | 12 +- .../Object/defineProperty/15.2.3.6-3-225-1.js | 12 +- .../Object/defineProperty/15.2.3.6-3-225.js | 12 +- .../Object/defineProperty/15.2.3.6-3-226-1.js | 10 +- .../Object/defineProperty/15.2.3.6-3-226.js | 10 +- .../Object/defineProperty/15.2.3.6-3-227-1.js | 12 +- .../Object/defineProperty/15.2.3.6-3-227.js | 12 +- .../Object/defineProperty/15.2.3.6-3-228-1.js | 14 +- .../Object/defineProperty/15.2.3.6-3-228.js | 14 +- .../Object/defineProperty/15.2.3.6-3-23.js | 30 +- .../Object/defineProperty/15.2.3.6-3-230.js | 10 +- .../Object/defineProperty/15.2.3.6-3-231.js | 8 +- .../Object/defineProperty/15.2.3.6-3-232.js | 12 +- .../Object/defineProperty/15.2.3.6-3-235.js | 16 +- .../Object/defineProperty/15.2.3.6-3-236.js | 6 +- .../Object/defineProperty/15.2.3.6-3-237.js | 16 +- .../Object/defineProperty/15.2.3.6-3-238.js | 24 +- .../Object/defineProperty/15.2.3.6-3-239.js | 32 +-- .../Object/defineProperty/15.2.3.6-3-24.js | 36 +-- .../Object/defineProperty/15.2.3.6-3-240.js | 52 ++-- .../Object/defineProperty/15.2.3.6-3-241.js | 24 +- .../Object/defineProperty/15.2.3.6-3-242.js | 30 +- .../Object/defineProperty/15.2.3.6-3-243.js | 40 +-- .../Object/defineProperty/15.2.3.6-3-244.js | 46 +-- .../Object/defineProperty/15.2.3.6-3-245.js | 3 +- .../Object/defineProperty/15.2.3.6-3-246.js | 14 +- .../Object/defineProperty/15.2.3.6-3-247.js | 4 +- .../Object/defineProperty/15.2.3.6-3-248-1.js | 16 +- .../Object/defineProperty/15.2.3.6-3-248.js | 16 +- .../Object/defineProperty/15.2.3.6-3-249-1.js | 16 +- .../Object/defineProperty/15.2.3.6-3-249.js | 16 +- .../Object/defineProperty/15.2.3.6-3-25.js | 50 ++-- .../Object/defineProperty/15.2.3.6-3-250-1.js | 16 +- .../Object/defineProperty/15.2.3.6-3-250.js | 16 +- .../Object/defineProperty/15.2.3.6-3-251-1.js | 16 +- .../Object/defineProperty/15.2.3.6-3-251.js | 16 +- .../Object/defineProperty/15.2.3.6-3-252-1.js | 16 +- .../Object/defineProperty/15.2.3.6-3-252.js | 16 +- .../Object/defineProperty/15.2.3.6-3-253-1.js | 14 +- .../Object/defineProperty/15.2.3.6-3-253.js | 14 +- .../Object/defineProperty/15.2.3.6-3-254-1.js | 16 +- .../Object/defineProperty/15.2.3.6-3-254.js | 16 +- .../Object/defineProperty/15.2.3.6-3-255-1.js | 16 +- .../Object/defineProperty/15.2.3.6-3-255.js | 16 +- .../Object/defineProperty/15.2.3.6-3-256-1.js | 14 +- .../Object/defineProperty/15.2.3.6-3-256.js | 14 +- .../Object/defineProperty/15.2.3.6-3-257-1.js | 16 +- .../Object/defineProperty/15.2.3.6-3-257.js | 16 +- .../Object/defineProperty/15.2.3.6-3-258-1.js | 18 +- .../Object/defineProperty/15.2.3.6-3-258.js | 18 +- .../Object/defineProperty/15.2.3.6-3-26.js | 28 +- .../Object/defineProperty/15.2.3.6-3-260.js | 14 +- .../Object/defineProperty/15.2.3.6-3-261.js | 2 +- .../Object/defineProperty/15.2.3.6-3-262.js | 16 +- .../Object/defineProperty/15.2.3.6-3-27.js | 34 +-- .../Object/defineProperty/15.2.3.6-3-28.js | 36 +-- .../Object/defineProperty/15.2.3.6-3-29.js | 56 ++-- .../Object/defineProperty/15.2.3.6-3-3.js | 13 +- .../Object/defineProperty/15.2.3.6-3-30.js | 24 +- .../Object/defineProperty/15.2.3.6-3-31.js | 40 +-- .../Object/defineProperty/15.2.3.6-3-32.js | 30 +- .../Object/defineProperty/15.2.3.6-3-33-1.js | 20 +- .../Object/defineProperty/15.2.3.6-3-33.js | 20 +- .../Object/defineProperty/15.2.3.6-3-34-1.js | 20 +- .../Object/defineProperty/15.2.3.6-3-34.js | 20 +- .../Object/defineProperty/15.2.3.6-3-35-1.js | 20 +- .../Object/defineProperty/15.2.3.6-3-35.js | 20 +- .../Object/defineProperty/15.2.3.6-3-36-1.js | 20 +- .../Object/defineProperty/15.2.3.6-3-36.js | 20 +- .../Object/defineProperty/15.2.3.6-3-37-1.js | 20 +- .../Object/defineProperty/15.2.3.6-3-37.js | 20 +- .../Object/defineProperty/15.2.3.6-3-38-1.js | 18 +- .../Object/defineProperty/15.2.3.6-3-38.js | 18 +- .../Object/defineProperty/15.2.3.6-3-39-1.js | 20 +- .../Object/defineProperty/15.2.3.6-3-39.js | 20 +- .../Object/defineProperty/15.2.3.6-3-4.js | 15 +- .../Object/defineProperty/15.2.3.6-3-40-1.js | 20 +- .../Object/defineProperty/15.2.3.6-3-40.js | 20 +- .../Object/defineProperty/15.2.3.6-3-41-1.js | 18 +- .../Object/defineProperty/15.2.3.6-3-41.js | 18 +- .../Object/defineProperty/15.2.3.6-3-42-1.js | 20 +- .../Object/defineProperty/15.2.3.6-3-42.js | 20 +- .../Object/defineProperty/15.2.3.6-3-43-1.js | 22 +- .../Object/defineProperty/15.2.3.6-3-43.js | 22 +- .../Object/defineProperty/15.2.3.6-3-45.js | 18 +- .../Object/defineProperty/15.2.3.6-3-46.js | 20 +- .../Object/defineProperty/15.2.3.6-3-47.js | 18 +- .../Object/defineProperty/15.2.3.6-3-48.js | 18 +- .../Object/defineProperty/15.2.3.6-3-49.js | 18 +- .../Object/defineProperty/15.2.3.6-3-5.js | 14 +- .../Object/defineProperty/15.2.3.6-3-50.js | 18 +- .../Object/defineProperty/15.2.3.6-3-51.js | 18 +- .../Object/defineProperty/15.2.3.6-3-52.js | 18 +- .../Object/defineProperty/15.2.3.6-3-53.js | 18 +- .../Object/defineProperty/15.2.3.6-3-54.js | 18 +- .../Object/defineProperty/15.2.3.6-3-55.js | 18 +- .../Object/defineProperty/15.2.3.6-3-56.js | 18 +- .../Object/defineProperty/15.2.3.6-3-57.js | 18 +- .../Object/defineProperty/15.2.3.6-3-58.js | 20 +- .../Object/defineProperty/15.2.3.6-3-59.js | 18 +- .../Object/defineProperty/15.2.3.6-3-6.js | 14 +- .../Object/defineProperty/15.2.3.6-3-60.js | 18 +- .../Object/defineProperty/15.2.3.6-3-61.js | 18 +- .../Object/defineProperty/15.2.3.6-3-62.js | 18 +- .../Object/defineProperty/15.2.3.6-3-63.js | 18 +- .../Object/defineProperty/15.2.3.6-3-64.js | 18 +- .../Object/defineProperty/15.2.3.6-3-65.js | 18 +- .../Object/defineProperty/15.2.3.6-3-66.js | 18 +- .../Object/defineProperty/15.2.3.6-3-67.js | 18 +- .../Object/defineProperty/15.2.3.6-3-68.js | 22 +- .../Object/defineProperty/15.2.3.6-3-7.js | 14 +- .../Object/defineProperty/15.2.3.6-3-70.js | 18 +- .../Object/defineProperty/15.2.3.6-3-71.js | 18 +- .../Object/defineProperty/15.2.3.6-3-72.js | 18 +- .../Object/defineProperty/15.2.3.6-3-73.js | 2 +- .../Object/defineProperty/15.2.3.6-3-74.js | 6 +- .../Object/defineProperty/15.2.3.6-3-75.js | 14 +- .../Object/defineProperty/15.2.3.6-3-76.js | 8 +- .../Object/defineProperty/15.2.3.6-3-77.js | 24 +- .../Object/defineProperty/15.2.3.6-3-78.js | 34 +-- .../Object/defineProperty/15.2.3.6-3-79.js | 22 +- .../Object/defineProperty/15.2.3.6-3-8.js | 14 +- .../Object/defineProperty/15.2.3.6-3-80.js | 28 +- .../Object/defineProperty/15.2.3.6-3-81.js | 32 +-- .../Object/defineProperty/15.2.3.6-3-82.js | 38 +-- .../Object/defineProperty/15.2.3.6-3-83.js | 4 +- .../Object/defineProperty/15.2.3.6-3-84.js | 10 +- .../Object/defineProperty/15.2.3.6-3-85.js | 8 +- .../Object/defineProperty/15.2.3.6-3-86-1.js | 18 +- .../Object/defineProperty/15.2.3.6-3-86.js | 18 +- .../Object/defineProperty/15.2.3.6-3-87-1.js | 14 +- .../Object/defineProperty/15.2.3.6-3-87.js | 14 +- .../Object/defineProperty/15.2.3.6-3-88-1.js | 14 +- .../Object/defineProperty/15.2.3.6-3-88.js | 14 +- .../Object/defineProperty/15.2.3.6-3-89-1.js | 14 +- .../Object/defineProperty/15.2.3.6-3-89.js | 14 +- .../Object/defineProperty/15.2.3.6-3-9.js | 16 +- .../Object/defineProperty/15.2.3.6-3-90-1.js | 14 +- .../Object/defineProperty/15.2.3.6-3-90.js | 14 +- .../Object/defineProperty/15.2.3.6-3-91-1.js | 12 +- .../Object/defineProperty/15.2.3.6-3-91.js | 12 +- .../Object/defineProperty/15.2.3.6-3-92-1.js | 14 +- .../Object/defineProperty/15.2.3.6-3-92.js | 14 +- .../Object/defineProperty/15.2.3.6-3-93-1.js | 14 +- .../Object/defineProperty/15.2.3.6-3-93.js | 14 +- .../Object/defineProperty/15.2.3.6-3-94-1.js | 12 +- .../Object/defineProperty/15.2.3.6-3-94.js | 12 +- .../Object/defineProperty/15.2.3.6-3-95-1.js | 14 +- .../Object/defineProperty/15.2.3.6-3-95.js | 14 +- .../Object/defineProperty/15.2.3.6-3-96-1.js | 16 +- .../Object/defineProperty/15.2.3.6-3-96.js | 16 +- .../Object/defineProperty/15.2.3.6-3-98.js | 12 +- .../Object/defineProperty/15.2.3.6-3-99.js | 6 +- .../Object/defineProperty/15.2.3.6-4-1.js | 10 +- .../Object/defineProperty/15.2.3.6-4-10.js | 33 ++- .../Object/defineProperty/15.2.3.6-4-100.js | 3 +- .../Object/defineProperty/15.2.3.6-4-101.js | 5 +- .../Object/defineProperty/15.2.3.6-4-102.js | 5 +- .../Object/defineProperty/15.2.3.6-4-103.js | 6 +- .../Object/defineProperty/15.2.3.6-4-104.js | 7 +- .../Object/defineProperty/15.2.3.6-4-105.js | 11 +- .../Object/defineProperty/15.2.3.6-4-106.js | 19 +- .../Object/defineProperty/15.2.3.6-4-107.js | 14 +- .../Object/defineProperty/15.2.3.6-4-108.js | 16 +- .../Object/defineProperty/15.2.3.6-4-109.js | 14 +- .../Object/defineProperty/15.2.3.6-4-11.js | 33 ++- .../Object/defineProperty/15.2.3.6-4-110.js | 12 +- .../Object/defineProperty/15.2.3.6-4-111.js | 38 +-- .../Object/defineProperty/15.2.3.6-4-112.js | 14 +- .../Object/defineProperty/15.2.3.6-4-113.js | 12 +- .../Object/defineProperty/15.2.3.6-4-114.js | 14 +- .../Object/defineProperty/15.2.3.6-4-115.js | 22 +- .../Object/defineProperty/15.2.3.6-4-116.js | 14 +- .../Object/defineProperty/15.2.3.6-4-117.js | 22 +- .../Object/defineProperty/15.2.3.6-4-119.js | 6 +- .../Object/defineProperty/15.2.3.6-4-12.js | 31 +- .../Object/defineProperty/15.2.3.6-4-120.js | 8 +- .../Object/defineProperty/15.2.3.6-4-121.js | 8 +- .../Object/defineProperty/15.2.3.6-4-122.js | 12 +- .../Object/defineProperty/15.2.3.6-4-123.js | 14 +- .../Object/defineProperty/15.2.3.6-4-124.js | 3 +- .../Object/defineProperty/15.2.3.6-4-125.js | 8 +- .../Object/defineProperty/15.2.3.6-4-126.js | 8 +- .../Object/defineProperty/15.2.3.6-4-127.js | 8 +- .../Object/defineProperty/15.2.3.6-4-128.js | 8 +- .../Object/defineProperty/15.2.3.6-4-129.js | 8 +- .../Object/defineProperty/15.2.3.6-4-13.js | 33 ++- .../Object/defineProperty/15.2.3.6-4-130.js | 8 +- .../Object/defineProperty/15.2.3.6-4-131.js | 8 +- .../Object/defineProperty/15.2.3.6-4-132.js | 8 +- .../Object/defineProperty/15.2.3.6-4-133.js | 8 +- .../Object/defineProperty/15.2.3.6-4-134.js | 8 +- .../Object/defineProperty/15.2.3.6-4-135.js | 8 +- .../Object/defineProperty/15.2.3.6-4-136.js | 8 +- .../Object/defineProperty/15.2.3.6-4-137.js | 8 +- .../Object/defineProperty/15.2.3.6-4-138.js | 8 +- .../Object/defineProperty/15.2.3.6-4-139.js | 8 +- .../Object/defineProperty/15.2.3.6-4-14.js | 30 +- .../Object/defineProperty/15.2.3.6-4-140.js | 8 +- .../Object/defineProperty/15.2.3.6-4-141.js | 8 +- .../Object/defineProperty/15.2.3.6-4-142.js | 8 +- .../Object/defineProperty/15.2.3.6-4-143.js | 8 +- .../Object/defineProperty/15.2.3.6-4-144.js | 8 +- .../Object/defineProperty/15.2.3.6-4-145.js | 8 +- .../Object/defineProperty/15.2.3.6-4-146.js | 16 +- .../Object/defineProperty/15.2.3.6-4-147.js | 16 +- .../Object/defineProperty/15.2.3.6-4-148.js | 30 +- .../Object/defineProperty/15.2.3.6-4-149.js | 30 +- .../Object/defineProperty/15.2.3.6-4-15.js | 33 ++- .../Object/defineProperty/15.2.3.6-4-150.js | 30 +- .../Object/defineProperty/15.2.3.6-4-151.js | 38 +-- .../Object/defineProperty/15.2.3.6-4-152.js | 8 +- .../Object/defineProperty/15.2.3.6-4-153.js | 8 +- .../Object/defineProperty/15.2.3.6-4-154.js | 8 +- .../Object/defineProperty/15.2.3.6-4-155.js | 8 +- .../Object/defineProperty/15.2.3.6-4-156.js | 8 +- .../Object/defineProperty/15.2.3.6-4-157.js | 8 +- .../Object/defineProperty/15.2.3.6-4-159.js | 8 +- .../Object/defineProperty/15.2.3.6-4-16.js | 25 +- .../Object/defineProperty/15.2.3.6-4-160.js | 8 +- .../Object/defineProperty/15.2.3.6-4-161.js | 10 +- .../Object/defineProperty/15.2.3.6-4-162.js | 14 +- .../Object/defineProperty/15.2.3.6-4-163.js | 14 +- .../Object/defineProperty/15.2.3.6-4-164.js | 14 +- .../Object/defineProperty/15.2.3.6-4-165.js | 12 +- .../Object/defineProperty/15.2.3.6-4-166.js | 14 +- .../Object/defineProperty/15.2.3.6-4-167.js | 4 +- .../Object/defineProperty/15.2.3.6-4-168.js | 16 +- .../Object/defineProperty/15.2.3.6-4-169.js | 20 +- .../Object/defineProperty/15.2.3.6-4-17.js | 24 +- .../Object/defineProperty/15.2.3.6-4-170.js | 14 +- .../Object/defineProperty/15.2.3.6-4-171.js | 10 +- .../Object/defineProperty/15.2.3.6-4-172.js | 18 +- .../Object/defineProperty/15.2.3.6-4-173.js | 26 +- .../Object/defineProperty/15.2.3.6-4-174.js | 20 +- .../Object/defineProperty/15.2.3.6-4-175.js | 20 +- .../Object/defineProperty/15.2.3.6-4-176.js | 24 +- .../Object/defineProperty/15.2.3.6-4-177.js | 34 +-- .../Object/defineProperty/15.2.3.6-4-178.js | 8 +- .../Object/defineProperty/15.2.3.6-4-179-1.js | 14 +- .../Object/defineProperty/15.2.3.6-4-18.js | 32 ++- .../Object/defineProperty/15.2.3.6-4-181.js | 4 +- .../Object/defineProperty/15.2.3.6-4-182.js | 8 +- .../Object/defineProperty/15.2.3.6-4-183.js | 8 +- .../Object/defineProperty/15.2.3.6-4-184.js | 8 +- .../Object/defineProperty/15.2.3.6-4-185.js | 8 +- .../Object/defineProperty/15.2.3.6-4-186.js | 8 +- .../Object/defineProperty/15.2.3.6-4-187.js | 15 +- .../Object/defineProperty/15.2.3.6-4-188.js | 14 +- .../Object/defineProperty/15.2.3.6-4-189.js | 14 +- .../Object/defineProperty/15.2.3.6-4-19.js | 28 +- .../Object/defineProperty/15.2.3.6-4-190.js | 26 +- .../Object/defineProperty/15.2.3.6-4-191.js | 36 +-- .../Object/defineProperty/15.2.3.6-4-192.js | 24 +- .../Object/defineProperty/15.2.3.6-4-193.js | 26 +- .../Object/defineProperty/15.2.3.6-4-194.js | 28 +- .../Object/defineProperty/15.2.3.6-4-195.js | 41 +-- .../Object/defineProperty/15.2.3.6-4-196.js | 24 +- .../Object/defineProperty/15.2.3.6-4-197.js | 24 +- .../Object/defineProperty/15.2.3.6-4-198.js | 10 +- .../Object/defineProperty/15.2.3.6-4-199.js | 3 +- .../Object/defineProperty/15.2.3.6-4-2.js | 18 +- .../Object/defineProperty/15.2.3.6-4-20.js | 29 +- .../Object/defineProperty/15.2.3.6-4-200.js | 7 +- .../Object/defineProperty/15.2.3.6-4-201.js | 7 +- .../Object/defineProperty/15.2.3.6-4-202.js | 7 +- .../Object/defineProperty/15.2.3.6-4-203.js | 7 +- .../Object/defineProperty/15.2.3.6-4-204.js | 9 +- .../Object/defineProperty/15.2.3.6-4-205.js | 10 +- .../Object/defineProperty/15.2.3.6-4-206.js | 16 +- .../Object/defineProperty/15.2.3.6-4-207.js | 12 +- .../Object/defineProperty/15.2.3.6-4-208.js | 12 +- .../Object/defineProperty/15.2.3.6-4-209.js | 28 +- .../Object/defineProperty/15.2.3.6-4-21.js | 28 +- .../Object/defineProperty/15.2.3.6-4-210.js | 1 - .../Object/defineProperty/15.2.3.6-4-211.js | 13 +- .../Object/defineProperty/15.2.3.6-4-212.js | 9 +- .../Object/defineProperty/15.2.3.6-4-213.js | 24 +- .../Object/defineProperty/15.2.3.6-4-214.js | 26 +- .../Object/defineProperty/15.2.3.6-4-215.js | 9 +- .../Object/defineProperty/15.2.3.6-4-216.js | 9 +- .../Object/defineProperty/15.2.3.6-4-217.js | 8 +- .../Object/defineProperty/15.2.3.6-4-218.js | 24 +- .../Object/defineProperty/15.2.3.6-4-219.js | 24 +- .../Object/defineProperty/15.2.3.6-4-22.js | 18 +- .../Object/defineProperty/15.2.3.6-4-220.js | 8 +- .../Object/defineProperty/15.2.3.6-4-221.js | 26 +- .../Object/defineProperty/15.2.3.6-4-222.js | 9 +- .../Object/defineProperty/15.2.3.6-4-223.js | 26 +- .../Object/defineProperty/15.2.3.6-4-224.js | 9 +- .../Object/defineProperty/15.2.3.6-4-225.js | 26 +- .../Object/defineProperty/15.2.3.6-4-226.js | 13 +- .../Object/defineProperty/15.2.3.6-4-227.js | 34 ++- .../Object/defineProperty/15.2.3.6-4-228.js | 9 +- .../Object/defineProperty/15.2.3.6-4-229.js | 9 +- .../Object/defineProperty/15.2.3.6-4-23.js | 22 +- .../Object/defineProperty/15.2.3.6-4-230.js | 11 +- .../Object/defineProperty/15.2.3.6-4-231.js | 16 +- .../Object/defineProperty/15.2.3.6-4-232.js | 10 +- .../Object/defineProperty/15.2.3.6-4-233.js | 12 +- .../Object/defineProperty/15.2.3.6-4-234.js | 9 +- .../Object/defineProperty/15.2.3.6-4-235.js | 12 +- .../Object/defineProperty/15.2.3.6-4-236.js | 8 +- .../Object/defineProperty/15.2.3.6-4-237.js | 9 +- .../Object/defineProperty/15.2.3.6-4-238.js | 32 +-- .../Object/defineProperty/15.2.3.6-4-239.js | 34 +-- .../Object/defineProperty/15.2.3.6-4-24.js | 30 +- .../Object/defineProperty/15.2.3.6-4-240.js | 26 +- .../Object/defineProperty/15.2.3.6-4-241.js | 26 +- .../Object/defineProperty/15.2.3.6-4-242-1.js | 7 +- .../Object/defineProperty/15.2.3.6-4-242.js | 4 +- .../Object/defineProperty/15.2.3.6-4-243-1.js | 6 +- .../Object/defineProperty/15.2.3.6-4-243-2.js | 21 +- .../Object/defineProperty/15.2.3.6-4-243.js | 9 +- .../Object/defineProperty/15.2.3.6-4-244.js | 26 +- .../Object/defineProperty/15.2.3.6-4-245.js | 28 +- .../Object/defineProperty/15.2.3.6-4-246.js | 24 +- .../Object/defineProperty/15.2.3.6-4-247.js | 24 +- .../Object/defineProperty/15.2.3.6-4-248.js | 24 +- .../Object/defineProperty/15.2.3.6-4-249.js | 25 +- .../Object/defineProperty/15.2.3.6-4-25.js | 30 +- .../Object/defineProperty/15.2.3.6-4-250.js | 24 +- .../Object/defineProperty/15.2.3.6-4-251.js | 27 +- .../Object/defineProperty/15.2.3.6-4-252.js | 24 +- .../Object/defineProperty/15.2.3.6-4-253.js | 27 +- .../Object/defineProperty/15.2.3.6-4-254.js | 5 +- .../Object/defineProperty/15.2.3.6-4-255.js | 31 +- .../Object/defineProperty/15.2.3.6-4-256.js | 28 +- .../Object/defineProperty/15.2.3.6-4-257.js | 11 +- .../Object/defineProperty/15.2.3.6-4-258.js | 3 +- .../Object/defineProperty/15.2.3.6-4-259.js | 3 +- .../Object/defineProperty/15.2.3.6-4-26.js | 26 +- .../Object/defineProperty/15.2.3.6-4-260.js | 3 +- .../Object/defineProperty/15.2.3.6-4-261.js | 3 +- .../Object/defineProperty/15.2.3.6-4-262.js | 3 +- .../Object/defineProperty/15.2.3.6-4-263.js | 3 +- .../Object/defineProperty/15.2.3.6-4-264.js | 7 +- .../Object/defineProperty/15.2.3.6-4-265.js | 12 +- .../Object/defineProperty/15.2.3.6-4-266.js | 9 +- .../Object/defineProperty/15.2.3.6-4-267.js | 8 +- .../Object/defineProperty/15.2.3.6-4-268.js | 8 +- .../Object/defineProperty/15.2.3.6-4-269.js | 6 +- .../Object/defineProperty/15.2.3.6-4-27.js | 32 +-- .../Object/defineProperty/15.2.3.6-4-270.js | 8 +- .../Object/defineProperty/15.2.3.6-4-271.js | 10 +- .../Object/defineProperty/15.2.3.6-4-272.js | 9 +- .../Object/defineProperty/15.2.3.6-4-273.js | 23 +- .../Object/defineProperty/15.2.3.6-4-274.js | 10 +- .../Object/defineProperty/15.2.3.6-4-275.js | 10 +- .../Object/defineProperty/15.2.3.6-4-276.js | 8 +- .../Object/defineProperty/15.2.3.6-4-277.js | 9 +- .../Object/defineProperty/15.2.3.6-4-278.js | 13 +- .../Object/defineProperty/15.2.3.6-4-279.js | 23 +- .../Object/defineProperty/15.2.3.6-4-28.js | 30 +- .../Object/defineProperty/15.2.3.6-4-280.js | 7 +- .../Object/defineProperty/15.2.3.6-4-281.js | 24 +- .../Object/defineProperty/15.2.3.6-4-282.js | 24 +- .../Object/defineProperty/15.2.3.6-4-283.js | 26 +- .../Object/defineProperty/15.2.3.6-4-284.js | 24 +- .../Object/defineProperty/15.2.3.6-4-285.js | 35 +-- .../Object/defineProperty/15.2.3.6-4-286.js | 24 +- .../Object/defineProperty/15.2.3.6-4-287.js | 26 +- .../Object/defineProperty/15.2.3.6-4-288.js | 26 +- .../Object/defineProperty/15.2.3.6-4-289-1.js | 33 +-- .../Object/defineProperty/15.2.3.6-4-289.js | 25 +- .../Object/defineProperty/15.2.3.6-4-29.js | 30 +- .../Object/defineProperty/15.2.3.6-4-290-1.js | 52 ++-- .../Object/defineProperty/15.2.3.6-4-290.js | 40 +-- .../Object/defineProperty/15.2.3.6-4-291-1.js | 47 +-- .../Object/defineProperty/15.2.3.6-4-291.js | 41 +-- .../Object/defineProperty/15.2.3.6-4-292-1.js | 28 +- .../Object/defineProperty/15.2.3.6-4-292-2.js | 28 +- .../Object/defineProperty/15.2.3.6-4-292.js | 23 +- .../Object/defineProperty/15.2.3.6-4-293-1.js | 25 +- .../Object/defineProperty/15.2.3.6-4-293-2.js | 44 +-- .../Object/defineProperty/15.2.3.6-4-293-3.js | 30 +- .../Object/defineProperty/15.2.3.6-4-293-4.js | 30 +- .../Object/defineProperty/15.2.3.6-4-293.js | 38 +-- .../Object/defineProperty/15.2.3.6-4-294-1.js | 45 ++- .../Object/defineProperty/15.2.3.6-4-294.js | 38 +-- .../Object/defineProperty/15.2.3.6-4-295-1.js | 42 +-- .../Object/defineProperty/15.2.3.6-4-295.js | 38 +-- .../Object/defineProperty/15.2.3.6-4-296-1.js | 42 +-- .../Object/defineProperty/15.2.3.6-4-296.js | 38 +-- .../Object/defineProperty/15.2.3.6-4-297-1.js | 51 ++-- .../Object/defineProperty/15.2.3.6-4-297.js | 47 +-- .../Object/defineProperty/15.2.3.6-4-298-1.js | 53 ++-- .../Object/defineProperty/15.2.3.6-4-298.js | 49 ++-- .../Object/defineProperty/15.2.3.6-4-299-1.js | 46 +-- .../Object/defineProperty/15.2.3.6-4-299.js | 40 +-- .../Object/defineProperty/15.2.3.6-4-3.js | 22 +- .../Object/defineProperty/15.2.3.6-4-30.js | 16 +- .../Object/defineProperty/15.2.3.6-4-300-1.js | 46 +-- .../Object/defineProperty/15.2.3.6-4-300.js | 40 +-- .../Object/defineProperty/15.2.3.6-4-301-1.js | 31 +- .../Object/defineProperty/15.2.3.6-4-301.js | 25 +- .../Object/defineProperty/15.2.3.6-4-302-1.js | 44 +-- .../Object/defineProperty/15.2.3.6-4-302.js | 38 +-- .../Object/defineProperty/15.2.3.6-4-303.js | 41 +-- .../Object/defineProperty/15.2.3.6-4-304.js | 23 +- .../Object/defineProperty/15.2.3.6-4-305.js | 38 +-- .../Object/defineProperty/15.2.3.6-4-306.js | 38 +-- .../Object/defineProperty/15.2.3.6-4-307.js | 38 +-- .../Object/defineProperty/15.2.3.6-4-308.js | 38 +-- .../Object/defineProperty/15.2.3.6-4-309.js | 47 +-- .../Object/defineProperty/15.2.3.6-4-31.js | 30 +- .../Object/defineProperty/15.2.3.6-4-310.js | 49 ++-- .../Object/defineProperty/15.2.3.6-4-311.js | 40 +-- .../Object/defineProperty/15.2.3.6-4-312.js | 37 ++- .../Object/defineProperty/15.2.3.6-4-313-1.js | 23 +- .../Object/defineProperty/15.2.3.6-4-313.js | 23 +- .../Object/defineProperty/15.2.3.6-4-314-1.js | 35 +-- .../Object/defineProperty/15.2.3.6-4-314.js | 35 +-- .../Object/defineProperty/15.2.3.6-4-315-1.js | 70 ++--- .../Object/defineProperty/15.2.3.6-4-315.js | 56 ++-- .../Object/defineProperty/15.2.3.6-4-316-1.js | 33 ++- .../Object/defineProperty/15.2.3.6-4-316.js | 33 ++- .../Object/defineProperty/15.2.3.6-4-317-1.js | 42 +-- .../Object/defineProperty/15.2.3.6-4-317.js | 36 +-- .../Object/defineProperty/15.2.3.6-4-318-1.js | 34 +-- .../Object/defineProperty/15.2.3.6-4-318.js | 34 +-- .../Object/defineProperty/15.2.3.6-4-319-1.js | 34 +-- .../Object/defineProperty/15.2.3.6-4-319.js | 34 +-- .../Object/defineProperty/15.2.3.6-4-32.js | 22 +- .../Object/defineProperty/15.2.3.6-4-320-1.js | 32 +-- .../Object/defineProperty/15.2.3.6-4-320.js | 32 +-- .../Object/defineProperty/15.2.3.6-4-321-1.js | 59 ++-- .../Object/defineProperty/15.2.3.6-4-321.js | 53 ++-- .../Object/defineProperty/15.2.3.6-4-322-1.js | 42 +-- .../Object/defineProperty/15.2.3.6-4-322.js | 42 +-- .../Object/defineProperty/15.2.3.6-4-323-1.js | 46 +-- .../Object/defineProperty/15.2.3.6-4-323.js | 40 +-- .../Object/defineProperty/15.2.3.6-4-324-1.js | 38 +-- .../Object/defineProperty/15.2.3.6-4-324.js | 40 +-- .../Object/defineProperty/15.2.3.6-4-325-1.js | 18 +- .../Object/defineProperty/15.2.3.6-4-325.js | 18 +- .../Object/defineProperty/15.2.3.6-4-326.js | 18 +- .../Object/defineProperty/15.2.3.6-4-327.js | 30 +- .../Object/defineProperty/15.2.3.6-4-328.js | 20 +- .../Object/defineProperty/15.2.3.6-4-329.js | 26 +- .../Object/defineProperty/15.2.3.6-4-33.js | 18 +- .../Object/defineProperty/15.2.3.6-4-330.js | 26 +- .../Object/defineProperty/15.2.3.6-4-331.js | 26 +- .../Object/defineProperty/15.2.3.6-4-332.js | 30 +- .../Object/defineProperty/15.2.3.6-4-333-1.js | 9 +- .../defineProperty/15.2.3.6-4-333-10.js | 22 +- .../defineProperty/15.2.3.6-4-333-11.js | 20 +- .../Object/defineProperty/15.2.3.6-4-333-2.js | 9 +- .../Object/defineProperty/15.2.3.6-4-333-3.js | 13 +- .../Object/defineProperty/15.2.3.6-4-333-4.js | 18 +- .../Object/defineProperty/15.2.3.6-4-333-5.js | 22 +- .../Object/defineProperty/15.2.3.6-4-333-6.js | 9 +- .../Object/defineProperty/15.2.3.6-4-333-7.js | 9 +- .../Object/defineProperty/15.2.3.6-4-333-8.js | 13 +- .../Object/defineProperty/15.2.3.6-4-333-9.js | 18 +- .../Object/defineProperty/15.2.3.6-4-333.js | 18 +- .../Object/defineProperty/15.2.3.6-4-334.js | 30 +- .../Object/defineProperty/15.2.3.6-4-335.js | 8 +- .../Object/defineProperty/15.2.3.6-4-336.js | 26 +- .../Object/defineProperty/15.2.3.6-4-337.js | 26 +- .../Object/defineProperty/15.2.3.6-4-338.js | 26 +- .../Object/defineProperty/15.2.3.6-4-339-1.js | 32 +-- .../Object/defineProperty/15.2.3.6-4-339-2.js | 36 +-- .../Object/defineProperty/15.2.3.6-4-339-3.js | 32 +-- .../Object/defineProperty/15.2.3.6-4-339-4.js | 36 +-- .../Object/defineProperty/15.2.3.6-4-339.js | 32 +-- .../Object/defineProperty/15.2.3.6-4-34.js | 18 +- .../Object/defineProperty/15.2.3.6-4-340.js | 18 +- .../Object/defineProperty/15.2.3.6-4-341.js | 24 +- .../Object/defineProperty/15.2.3.6-4-342.js | 20 +- .../Object/defineProperty/15.2.3.6-4-343.js | 26 +- .../Object/defineProperty/15.2.3.6-4-344.js | 26 +- .../Object/defineProperty/15.2.3.6-4-345.js | 26 +- .../Object/defineProperty/15.2.3.6-4-346.js | 30 +- .../Object/defineProperty/15.2.3.6-4-347.js | 18 +- .../Object/defineProperty/15.2.3.6-4-348.js | 24 +- .../Object/defineProperty/15.2.3.6-4-349.js | 8 +- .../Object/defineProperty/15.2.3.6-4-35.js | 18 +- .../Object/defineProperty/15.2.3.6-4-350.js | 26 +- .../Object/defineProperty/15.2.3.6-4-351.js | 26 +- .../Object/defineProperty/15.2.3.6-4-352.js | 26 +- .../Object/defineProperty/15.2.3.6-4-353.js | 32 +-- .../Object/defineProperty/15.2.3.6-4-354-1.js | 9 +- .../defineProperty/15.2.3.6-4-354-10.js | 9 +- .../defineProperty/15.2.3.6-4-354-11.js | 9 +- .../defineProperty/15.2.3.6-4-354-12.js | 13 +- .../defineProperty/15.2.3.6-4-354-15.js | 9 +- .../defineProperty/15.2.3.6-4-354-16.js | 12 +- .../Object/defineProperty/15.2.3.6-4-354-2.js | 9 +- .../Object/defineProperty/15.2.3.6-4-354-3.js | 13 +- .../Object/defineProperty/15.2.3.6-4-354-6.js | 8 +- .../Object/defineProperty/15.2.3.6-4-354-7.js | 12 +- .../Object/defineProperty/15.2.3.6-4-354.js | 8 +- .../Object/defineProperty/15.2.3.6-4-355.js | 30 +- .../Object/defineProperty/15.2.3.6-4-356.js | 20 +- .../Object/defineProperty/15.2.3.6-4-357.js | 26 +- .../Object/defineProperty/15.2.3.6-4-358.js | 26 +- .../Object/defineProperty/15.2.3.6-4-359.js | 26 +- .../Object/defineProperty/15.2.3.6-4-36.js | 18 +- .../Object/defineProperty/15.2.3.6-4-360-1.js | 30 +- .../Object/defineProperty/15.2.3.6-4-360-2.js | 34 +-- .../Object/defineProperty/15.2.3.6-4-360-5.js | 30 +- .../Object/defineProperty/15.2.3.6-4-360-6.js | 34 +-- .../Object/defineProperty/15.2.3.6-4-360.js | 30 +- .../Object/defineProperty/15.2.3.6-4-361.js | 8 +- .../Object/defineProperty/15.2.3.6-4-362.js | 30 +- .../Object/defineProperty/15.2.3.6-4-363.js | 8 +- .../Object/defineProperty/15.2.3.6-4-364.js | 26 +- .../Object/defineProperty/15.2.3.6-4-365.js | 26 +- .../Object/defineProperty/15.2.3.6-4-366.js | 26 +- .../Object/defineProperty/15.2.3.6-4-367.js | 32 +-- .../Object/defineProperty/15.2.3.6-4-368.js | 8 +- .../Object/defineProperty/15.2.3.6-4-369.js | 24 +- .../Object/defineProperty/15.2.3.6-4-37.js | 18 +- .../Object/defineProperty/15.2.3.6-4-370.js | 20 +- .../Object/defineProperty/15.2.3.6-4-371.js | 26 +- .../Object/defineProperty/15.2.3.6-4-372.js | 26 +- .../Object/defineProperty/15.2.3.6-4-373.js | 26 +- .../Object/defineProperty/15.2.3.6-4-374.js | 31 +- .../Object/defineProperty/15.2.3.6-4-375.js | 8 +- .../Object/defineProperty/15.2.3.6-4-376.js | 24 +- .../Object/defineProperty/15.2.3.6-4-377.js | 8 +- .../Object/defineProperty/15.2.3.6-4-378.js | 26 +- .../Object/defineProperty/15.2.3.6-4-379.js | 26 +- .../Object/defineProperty/15.2.3.6-4-38.js | 21 +- .../Object/defineProperty/15.2.3.6-4-380.js | 26 +- .../Object/defineProperty/15.2.3.6-4-381.js | 32 +-- .../Object/defineProperty/15.2.3.6-4-382.js | 10 +- .../Object/defineProperty/15.2.3.6-4-383.js | 10 +- .../Object/defineProperty/15.2.3.6-4-384.js | 10 +- .../Object/defineProperty/15.2.3.6-4-385.js | 14 +- .../Object/defineProperty/15.2.3.6-4-386.js | 12 +- .../Object/defineProperty/15.2.3.6-4-387.js | 12 +- .../Object/defineProperty/15.2.3.6-4-388.js | 12 +- .../Object/defineProperty/15.2.3.6-4-389.js | 12 +- .../Object/defineProperty/15.2.3.6-4-39.js | 18 +- .../Object/defineProperty/15.2.3.6-4-390.js | 12 +- .../Object/defineProperty/15.2.3.6-4-391.js | 12 +- .../Object/defineProperty/15.2.3.6-4-392.js | 12 +- .../Object/defineProperty/15.2.3.6-4-393.js | 12 +- .../Object/defineProperty/15.2.3.6-4-394.js | 10 +- .../Object/defineProperty/15.2.3.6-4-395.js | 10 +- .../Object/defineProperty/15.2.3.6-4-396.js | 10 +- .../Object/defineProperty/15.2.3.6-4-397.js | 10 +- .../Object/defineProperty/15.2.3.6-4-398.js | 10 +- .../Object/defineProperty/15.2.3.6-4-399.js | 10 +- .../Object/defineProperty/15.2.3.6-4-4.js | 18 +- .../Object/defineProperty/15.2.3.6-4-40.js | 18 +- .../Object/defineProperty/15.2.3.6-4-402.js | 14 +- .../Object/defineProperty/15.2.3.6-4-403.js | 16 +- .../Object/defineProperty/15.2.3.6-4-404.js | 26 +- .../Object/defineProperty/15.2.3.6-4-405.js | 20 +- .../Object/defineProperty/15.2.3.6-4-406.js | 26 +- .../Object/defineProperty/15.2.3.6-4-407.js | 14 +- .../Object/defineProperty/15.2.3.6-4-408.js | 16 +- .../Object/defineProperty/15.2.3.6-4-409.js | 26 +- .../Object/defineProperty/15.2.3.6-4-41.js | 5 +- .../Object/defineProperty/15.2.3.6-4-410.js | 18 +- .../Object/defineProperty/15.2.3.6-4-411.js | 24 +- .../Object/defineProperty/15.2.3.6-4-412.js | 48 ++-- .../Object/defineProperty/15.2.3.6-4-413.js | 56 ++-- .../Object/defineProperty/15.2.3.6-4-414.js | 86 +++--- .../Object/defineProperty/15.2.3.6-4-415.js | 24 +- .../Object/defineProperty/15.2.3.6-4-416.js | 86 +++--- .../Object/defineProperty/15.2.3.6-4-417.js | 16 +- .../Object/defineProperty/15.2.3.6-4-418.js | 18 +- .../Object/defineProperty/15.2.3.6-4-419.js | 28 +- .../Object/defineProperty/15.2.3.6-4-42.js | 18 +- .../Object/defineProperty/15.2.3.6-4-420.js | 20 +- .../Object/defineProperty/15.2.3.6-4-421.js | 28 +- .../Object/defineProperty/15.2.3.6-4-422.js | 18 +- .../Object/defineProperty/15.2.3.6-4-423.js | 18 +- .../Object/defineProperty/15.2.3.6-4-424.js | 30 +- .../Object/defineProperty/15.2.3.6-4-425.js | 20 +- .../Object/defineProperty/15.2.3.6-4-426.js | 34 +-- .../Object/defineProperty/15.2.3.6-4-427.js | 36 +-- .../Object/defineProperty/15.2.3.6-4-428.js | 48 ++-- .../Object/defineProperty/15.2.3.6-4-429.js | 10 +- .../Object/defineProperty/15.2.3.6-4-43.js | 20 +- .../Object/defineProperty/15.2.3.6-4-430.js | 24 +- .../Object/defineProperty/15.2.3.6-4-431.js | 18 +- .../Object/defineProperty/15.2.3.6-4-432.js | 18 +- .../Object/defineProperty/15.2.3.6-4-433.js | 30 +- .../Object/defineProperty/15.2.3.6-4-434.js | 8 +- .../Object/defineProperty/15.2.3.6-4-435.js | 34 +-- .../Object/defineProperty/15.2.3.6-4-436.js | 32 +-- .../Object/defineProperty/15.2.3.6-4-437.js | 48 ++-- .../Object/defineProperty/15.2.3.6-4-438.js | 28 +- .../Object/defineProperty/15.2.3.6-4-439.js | 24 +- .../Object/defineProperty/15.2.3.6-4-440.js | 18 +- .../Object/defineProperty/15.2.3.6-4-441.js | 18 +- .../Object/defineProperty/15.2.3.6-4-442.js | 24 +- .../Object/defineProperty/15.2.3.6-4-443.js | 20 +- .../Object/defineProperty/15.2.3.6-4-444.js | 34 +-- .../Object/defineProperty/15.2.3.6-4-445.js | 36 +-- .../Object/defineProperty/15.2.3.6-4-446.js | 48 ++-- .../Object/defineProperty/15.2.3.6-4-447.js | 10 +- .../Object/defineProperty/15.2.3.6-4-448.js | 24 +- .../Object/defineProperty/15.2.3.6-4-449.js | 18 +- .../Object/defineProperty/15.2.3.6-4-45.js | 4 +- .../Object/defineProperty/15.2.3.6-4-450.js | 18 +- .../Object/defineProperty/15.2.3.6-4-451.js | 24 +- .../Object/defineProperty/15.2.3.6-4-452.js | 8 +- .../Object/defineProperty/15.2.3.6-4-453.js | 34 +-- .../Object/defineProperty/15.2.3.6-4-454.js | 32 +-- .../Object/defineProperty/15.2.3.6-4-455.js | 48 ++-- .../Object/defineProperty/15.2.3.6-4-456.js | 30 +- .../Object/defineProperty/15.2.3.6-4-457.js | 24 +- .../Object/defineProperty/15.2.3.6-4-458.js | 26 +- .../Object/defineProperty/15.2.3.6-4-459.js | 28 +- .../Object/defineProperty/15.2.3.6-4-46.js | 20 +- .../Object/defineProperty/15.2.3.6-4-460.js | 46 +-- .../Object/defineProperty/15.2.3.6-4-461.js | 28 +- .../Object/defineProperty/15.2.3.6-4-462.js | 42 +-- .../Object/defineProperty/15.2.3.6-4-463.js | 32 +-- .../Object/defineProperty/15.2.3.6-4-464.js | 56 ++-- .../Object/defineProperty/15.2.3.6-4-465.js | 14 +- .../Object/defineProperty/15.2.3.6-4-466.js | 32 +-- .../Object/defineProperty/15.2.3.6-4-467.js | 26 +- .../Object/defineProperty/15.2.3.6-4-468.js | 28 +- .../Object/defineProperty/15.2.3.6-4-469.js | 46 +-- .../Object/defineProperty/15.2.3.6-4-47.js | 7 +- .../Object/defineProperty/15.2.3.6-4-470.js | 12 +- .../Object/defineProperty/15.2.3.6-4-471.js | 42 +-- .../Object/defineProperty/15.2.3.6-4-472.js | 32 +-- .../Object/defineProperty/15.2.3.6-4-473.js | 56 ++-- .../Object/defineProperty/15.2.3.6-4-474.js | 32 +-- .../Object/defineProperty/15.2.3.6-4-475.js | 32 +-- .../Object/defineProperty/15.2.3.6-4-476.js | 26 +- .../Object/defineProperty/15.2.3.6-4-477.js | 28 +- .../Object/defineProperty/15.2.3.6-4-478.js | 32 +-- .../Object/defineProperty/15.2.3.6-4-479.js | 28 +- .../Object/defineProperty/15.2.3.6-4-48.js | 7 +- .../Object/defineProperty/15.2.3.6-4-480.js | 42 +-- .../Object/defineProperty/15.2.3.6-4-481.js | 32 +-- .../Object/defineProperty/15.2.3.6-4-482.js | 56 ++-- .../Object/defineProperty/15.2.3.6-4-483.js | 14 +- .../Object/defineProperty/15.2.3.6-4-484.js | 32 +-- .../Object/defineProperty/15.2.3.6-4-485.js | 26 +- .../Object/defineProperty/15.2.3.6-4-486.js | 28 +- .../Object/defineProperty/15.2.3.6-4-487.js | 32 +-- .../Object/defineProperty/15.2.3.6-4-488.js | 12 +- .../Object/defineProperty/15.2.3.6-4-489.js | 42 +-- .../Object/defineProperty/15.2.3.6-4-49.js | 7 +- .../Object/defineProperty/15.2.3.6-4-490.js | 32 +-- .../Object/defineProperty/15.2.3.6-4-491.js | 56 ++-- .../Object/defineProperty/15.2.3.6-4-492.js | 32 +-- .../Object/defineProperty/15.2.3.6-4-493.js | 32 +-- .../Object/defineProperty/15.2.3.6-4-494.js | 24 +- .../Object/defineProperty/15.2.3.6-4-495.js | 24 +- .../Object/defineProperty/15.2.3.6-4-496.js | 44 +-- .../Object/defineProperty/15.2.3.6-4-497.js | 26 +- .../Object/defineProperty/15.2.3.6-4-498.js | 34 +-- .../Object/defineProperty/15.2.3.6-4-499.js | 40 +-- .../Object/defineProperty/15.2.3.6-4-5.js | 51 ++-- .../Object/defineProperty/15.2.3.6-4-50.js | 7 +- .../Object/defineProperty/15.2.3.6-4-500.js | 54 ++-- .../Object/defineProperty/15.2.3.6-4-501.js | 14 +- .../Object/defineProperty/15.2.3.6-4-502.js | 30 +- .../Object/defineProperty/15.2.3.6-4-503.js | 24 +- .../Object/defineProperty/15.2.3.6-4-504.js | 24 +- .../Object/defineProperty/15.2.3.6-4-505.js | 44 +-- .../Object/defineProperty/15.2.3.6-4-506.js | 12 +- .../Object/defineProperty/15.2.3.6-4-507.js | 34 +-- .../Object/defineProperty/15.2.3.6-4-508.js | 38 +-- .../Object/defineProperty/15.2.3.6-4-509.js | 54 ++-- .../Object/defineProperty/15.2.3.6-4-51.js | 13 +- .../Object/defineProperty/15.2.3.6-4-510.js | 32 +-- .../Object/defineProperty/15.2.3.6-4-511.js | 30 +- .../Object/defineProperty/15.2.3.6-4-512.js | 24 +- .../Object/defineProperty/15.2.3.6-4-513.js | 24 +- .../Object/defineProperty/15.2.3.6-4-514.js | 30 +- .../Object/defineProperty/15.2.3.6-4-515.js | 26 +- .../Object/defineProperty/15.2.3.6-4-516.js | 34 +-- .../Object/defineProperty/15.2.3.6-4-517.js | 42 +-- .../Object/defineProperty/15.2.3.6-4-518.js | 54 ++-- .../Object/defineProperty/15.2.3.6-4-519.js | 14 +- .../Object/defineProperty/15.2.3.6-4-52.js | 1 - .../Object/defineProperty/15.2.3.6-4-520.js | 30 +- .../Object/defineProperty/15.2.3.6-4-521.js | 24 +- .../Object/defineProperty/15.2.3.6-4-522.js | 24 +- .../Object/defineProperty/15.2.3.6-4-523.js | 30 +- .../Object/defineProperty/15.2.3.6-4-524.js | 12 +- .../Object/defineProperty/15.2.3.6-4-525.js | 34 +-- .../Object/defineProperty/15.2.3.6-4-526.js | 38 +-- .../Object/defineProperty/15.2.3.6-4-527.js | 54 ++-- .../Object/defineProperty/15.2.3.6-4-528.js | 34 +-- .../Object/defineProperty/15.2.3.6-4-529.js | 30 +- .../Object/defineProperty/15.2.3.6-4-53.js | 10 +- .../Object/defineProperty/15.2.3.6-4-530.js | 32 +-- .../Object/defineProperty/15.2.3.6-4-531-1.js | 26 +- .../defineProperty/15.2.3.6-4-531-10.js | 26 +- .../defineProperty/15.2.3.6-4-531-11.js | 26 +- .../defineProperty/15.2.3.6-4-531-12.js | 30 +- .../defineProperty/15.2.3.6-4-531-15.js | 34 +-- .../defineProperty/15.2.3.6-4-531-16.js | 38 +-- .../Object/defineProperty/15.2.3.6-4-531-2.js | 26 +- .../Object/defineProperty/15.2.3.6-4-531-3.js | 30 +- .../Object/defineProperty/15.2.3.6-4-531-6.js | 11 +- .../Object/defineProperty/15.2.3.6-4-531-7.js | 14 +- .../Object/defineProperty/15.2.3.6-4-531.js | 34 +-- .../Object/defineProperty/15.2.3.6-4-532.js | 54 ++-- .../Object/defineProperty/15.2.3.6-4-533.js | 34 +-- .../Object/defineProperty/15.2.3.6-4-534.js | 42 +-- .../Object/defineProperty/15.2.3.6-4-535.js | 38 +-- .../Object/defineProperty/15.2.3.6-4-536.js | 62 ++-- .../Object/defineProperty/15.2.3.6-4-537.js | 18 +- .../Object/defineProperty/15.2.3.6-4-538-1.js | 26 +- .../Object/defineProperty/15.2.3.6-4-538-2.js | 40 ++- .../Object/defineProperty/15.2.3.6-4-538-5.js | 38 ++- .../Object/defineProperty/15.2.3.6-4-538-6.js | 38 +-- .../Object/defineProperty/15.2.3.6-4-538.js | 33 +-- .../Object/defineProperty/15.2.3.6-4-539.js | 32 +-- .../Object/defineProperty/15.2.3.6-4-54.js | 10 +- .../Object/defineProperty/15.2.3.6-4-540-1.js | 66 ++--- .../defineProperty/15.2.3.6-4-540-10.js | 38 +-- .../Object/defineProperty/15.2.3.6-4-540-2.js | 66 ++--- .../Object/defineProperty/15.2.3.6-4-540-3.js | 68 ++--- .../Object/defineProperty/15.2.3.6-4-540-4.js | 34 +-- .../Object/defineProperty/15.2.3.6-4-540-5.js | 38 +-- .../Object/defineProperty/15.2.3.6-4-540-6.js | 66 ++--- .../Object/defineProperty/15.2.3.6-4-540-7.js | 66 ++--- .../Object/defineProperty/15.2.3.6-4-540-8.js | 70 ++--- .../Object/defineProperty/15.2.3.6-4-540-9.js | 34 +-- .../Object/defineProperty/15.2.3.6-4-540.js | 34 +-- .../Object/defineProperty/15.2.3.6-4-541.js | 54 ++-- .../Object/defineProperty/15.2.3.6-4-542.js | 16 +- .../Object/defineProperty/15.2.3.6-4-543.js | 42 +-- .../Object/defineProperty/15.2.3.6-4-544.js | 38 +-- .../Object/defineProperty/15.2.3.6-4-545.js | 62 ++-- .../Object/defineProperty/15.2.3.6-4-546.js | 34 +-- .../Object/defineProperty/15.2.3.6-4-547-1.js | 56 ++-- .../Object/defineProperty/15.2.3.6-4-547-2.js | 62 ++-- .../Object/defineProperty/15.2.3.6-4-547-3.js | 56 ++-- .../Object/defineProperty/15.2.3.6-4-547-4.js | 60 ++-- .../Object/defineProperty/15.2.3.6-4-547.js | 38 +-- .../Object/defineProperty/15.2.3.6-4-548.js | 32 +-- .../Object/defineProperty/15.2.3.6-4-549.js | 34 +-- .../Object/defineProperty/15.2.3.6-4-55.js | 14 +- .../Object/defineProperty/15.2.3.6-4-550.js | 48 ++-- .../Object/defineProperty/15.2.3.6-4-551.js | 34 +-- .../Object/defineProperty/15.2.3.6-4-552.js | 42 +-- .../Object/defineProperty/15.2.3.6-4-553.js | 38 +-- .../Object/defineProperty/15.2.3.6-4-554.js | 72 ++--- .../Object/defineProperty/15.2.3.6-4-555.js | 18 +- .../Object/defineProperty/15.2.3.6-4-556.js | 48 ++-- .../Object/defineProperty/15.2.3.6-4-557.js | 32 +-- .../Object/defineProperty/15.2.3.6-4-558.js | 34 +-- .../Object/defineProperty/15.2.3.6-4-559.js | 48 ++-- .../Object/defineProperty/15.2.3.6-4-56.js | 14 +- .../Object/defineProperty/15.2.3.6-4-560.js | 16 +- .../Object/defineProperty/15.2.3.6-4-561.js | 42 +-- .../Object/defineProperty/15.2.3.6-4-562.js | 38 +-- .../Object/defineProperty/15.2.3.6-4-563.js | 62 ++-- .../Object/defineProperty/15.2.3.6-4-564.js | 30 +- .../Object/defineProperty/15.2.3.6-4-565.js | 38 +-- .../Object/defineProperty/15.2.3.6-4-566.js | 16 +- .../Object/defineProperty/15.2.3.6-4-567.js | 16 +- .../Object/defineProperty/15.2.3.6-4-568.js | 16 +- .../Object/defineProperty/15.2.3.6-4-569.js | 20 +- .../Object/defineProperty/15.2.3.6-4-57.js | 28 +- .../Object/defineProperty/15.2.3.6-4-570.js | 18 +- .../Object/defineProperty/15.2.3.6-4-571.js | 20 +- .../Object/defineProperty/15.2.3.6-4-572.js | 12 +- .../Object/defineProperty/15.2.3.6-4-573.js | 20 +- .../Object/defineProperty/15.2.3.6-4-574.js | 24 +- .../Object/defineProperty/15.2.3.6-4-575.js | 20 +- .../Object/defineProperty/15.2.3.6-4-576.js | 16 +- .../Object/defineProperty/15.2.3.6-4-577.js | 18 +- .../Object/defineProperty/15.2.3.6-4-578.js | 24 +- .../Object/defineProperty/15.2.3.6-4-579.js | 26 +- .../Object/defineProperty/15.2.3.6-4-58.js | 1 - .../Object/defineProperty/15.2.3.6-4-580.js | 36 +-- .../Object/defineProperty/15.2.3.6-4-581.js | 24 +- .../Object/defineProperty/15.2.3.6-4-582.js | 30 +- .../Object/defineProperty/15.2.3.6-4-583.js | 24 +- .../Object/defineProperty/15.2.3.6-4-584.js | 26 +- .../Object/defineProperty/15.2.3.6-4-585.js | 36 +-- .../Object/defineProperty/15.2.3.6-4-586.js | 22 +- .../Object/defineProperty/15.2.3.6-4-587.js | 28 +- .../Object/defineProperty/15.2.3.6-4-588.js | 66 ++--- .../Object/defineProperty/15.2.3.6-4-589.js | 86 +++--- .../Object/defineProperty/15.2.3.6-4-59.js | 9 +- .../Object/defineProperty/15.2.3.6-4-590.js | 106 +++---- .../Object/defineProperty/15.2.3.6-4-591.js | 44 +-- .../Object/defineProperty/15.2.3.6-4-592.js | 88 +++--- .../Object/defineProperty/15.2.3.6-4-593.js | 26 +- .../Object/defineProperty/15.2.3.6-4-594.js | 28 +- .../Object/defineProperty/15.2.3.6-4-595.js | 38 +-- .../Object/defineProperty/15.2.3.6-4-596.js | 24 +- .../Object/defineProperty/15.2.3.6-4-597.js | 32 +-- .../Object/defineProperty/15.2.3.6-4-598.js | 28 +- .../Object/defineProperty/15.2.3.6-4-599.js | 26 +- .../Object/defineProperty/15.2.3.6-4-6.js | 42 +-- .../Object/defineProperty/15.2.3.6-4-60.js | 5 +- .../Object/defineProperty/15.2.3.6-4-600.js | 28 +- .../Object/defineProperty/15.2.3.6-4-601.js | 28 +- .../Object/defineProperty/15.2.3.6-4-602.js | 26 +- .../Object/defineProperty/15.2.3.6-4-603.js | 28 +- .../Object/defineProperty/15.2.3.6-4-604.js | 28 +- .../Object/defineProperty/15.2.3.6-4-605.js | 28 +- .../Object/defineProperty/15.2.3.6-4-606.js | 28 +- .../Object/defineProperty/15.2.3.6-4-607.js | 28 +- .../Object/defineProperty/15.2.3.6-4-608.js | 28 +- .../Object/defineProperty/15.2.3.6-4-609.js | 28 +- .../Object/defineProperty/15.2.3.6-4-61.js | 9 +- .../Object/defineProperty/15.2.3.6-4-610.js | 28 +- .../Object/defineProperty/15.2.3.6-4-611.js | 28 +- .../Object/defineProperty/15.2.3.6-4-612.js | 26 +- .../Object/defineProperty/15.2.3.6-4-613.js | 26 +- .../Object/defineProperty/15.2.3.6-4-614.js | 26 +- .../Object/defineProperty/15.2.3.6-4-615.js | 26 +- .../Object/defineProperty/15.2.3.6-4-616.js | 26 +- .../Object/defineProperty/15.2.3.6-4-617.js | 26 +- .../Object/defineProperty/15.2.3.6-4-618.js | 26 +- .../Object/defineProperty/15.2.3.6-4-619.js | 26 +- .../Object/defineProperty/15.2.3.6-4-62.js | 9 +- .../Object/defineProperty/15.2.3.6-4-620.js | 26 +- .../Object/defineProperty/15.2.3.6-4-621.js | 26 +- .../Object/defineProperty/15.2.3.6-4-622.js | 26 +- .../Object/defineProperty/15.2.3.6-4-623.js | 26 +- .../Object/defineProperty/15.2.3.6-4-624.js | 26 +- .../Object/defineProperty/15.2.3.6-4-625gs.js | 17 +- .../Object/defineProperty/15.2.3.6-4-63.js | 8 +- .../Object/defineProperty/15.2.3.6-4-64.js | 24 +- .../Object/defineProperty/15.2.3.6-4-65.js | 24 +- .../Object/defineProperty/15.2.3.6-4-66.js | 5 +- .../Object/defineProperty/15.2.3.6-4-67.js | 9 +- .../Object/defineProperty/15.2.3.6-4-68.js | 5 +- .../Object/defineProperty/15.2.3.6-4-69.js | 9 +- .../Object/defineProperty/15.2.3.6-4-7.js | 22 +- .../Object/defineProperty/15.2.3.6-4-70.js | 5 +- .../Object/defineProperty/15.2.3.6-4-71.js | 13 +- .../Object/defineProperty/15.2.3.6-4-72.js | 13 +- .../Object/defineProperty/15.2.3.6-4-73.js | 9 +- .../Object/defineProperty/15.2.3.6-4-74.js | 12 +- .../Object/defineProperty/15.2.3.6-4-75.js | 13 +- .../Object/defineProperty/15.2.3.6-4-76.js | 17 +- .../Object/defineProperty/15.2.3.6-4-77.js | 10 +- .../Object/defineProperty/15.2.3.6-4-78.js | 12 +- .../Object/defineProperty/15.2.3.6-4-79.js | 9 +- .../Object/defineProperty/15.2.3.6-4-8.js | 27 +- .../Object/defineProperty/15.2.3.6-4-80.js | 12 +- .../Object/defineProperty/15.2.3.6-4-81.js | 8 +- .../Object/defineProperty/15.2.3.6-4-82-1.js | 10 +- .../Object/defineProperty/15.2.3.6-4-82-10.js | 20 +- .../Object/defineProperty/15.2.3.6-4-82-11.js | 20 +- .../Object/defineProperty/15.2.3.6-4-82-12.js | 18 +- .../Object/defineProperty/15.2.3.6-4-82-13.js | 10 +- .../Object/defineProperty/15.2.3.6-4-82-14.js | 12 +- .../Object/defineProperty/15.2.3.6-4-82-15.js | 10 +- .../Object/defineProperty/15.2.3.6-4-82-16.js | 12 +- .../Object/defineProperty/15.2.3.6-4-82-17.js | 12 +- .../Object/defineProperty/15.2.3.6-4-82-18.js | 10 +- .../Object/defineProperty/15.2.3.6-4-82-19.js | 18 +- .../Object/defineProperty/15.2.3.6-4-82-2.js | 12 +- .../Object/defineProperty/15.2.3.6-4-82-20.js | 20 +- .../Object/defineProperty/15.2.3.6-4-82-21.js | 18 +- .../Object/defineProperty/15.2.3.6-4-82-22.js | 20 +- .../Object/defineProperty/15.2.3.6-4-82-23.js | 20 +- .../Object/defineProperty/15.2.3.6-4-82-24.js | 18 +- .../Object/defineProperty/15.2.3.6-4-82-3.js | 10 +- .../Object/defineProperty/15.2.3.6-4-82-4.js | 12 +- .../Object/defineProperty/15.2.3.6-4-82-5.js | 12 +- .../Object/defineProperty/15.2.3.6-4-82-6.js | 10 +- .../Object/defineProperty/15.2.3.6-4-82-7.js | 18 +- .../Object/defineProperty/15.2.3.6-4-82-8.js | 20 +- .../Object/defineProperty/15.2.3.6-4-82-9.js | 18 +- .../Object/defineProperty/15.2.3.6-4-82.js | 8 +- .../Object/defineProperty/15.2.3.6-4-83.js | 16 +- .../Object/defineProperty/15.2.3.6-4-84.js | 16 +- .../Object/defineProperty/15.2.3.6-4-85.js | 12 +- .../Object/defineProperty/15.2.3.6-4-86.js | 28 +- .../Object/defineProperty/15.2.3.6-4-87.js | 28 +- .../Object/defineProperty/15.2.3.6-4-88.js | 12 +- .../Object/defineProperty/15.2.3.6-4-89.js | 28 +- .../Object/defineProperty/15.2.3.6-4-9.js | 29 +- .../Object/defineProperty/15.2.3.6-4-90.js | 10 +- .../Object/defineProperty/15.2.3.6-4-91.js | 26 +- .../Object/defineProperty/15.2.3.6-4-92.js | 10 +- .../Object/defineProperty/15.2.3.6-4-93.js | 26 +- .../Object/defineProperty/15.2.3.6-4-94.js | 15 +- .../Object/defineProperty/15.2.3.6-4-95.js | 34 ++- .../Object/defineProperty/15.2.3.6-4-96.js | 10 +- .../Object/defineProperty/15.2.3.6-4-97.js | 30 +- .../Object/defineProperty/15.2.3.6-4-98.js | 15 +- .../Object/defineProperty/15.2.3.6-4-99.js | 30 +- .../Object/defineProperty/8.12.9-9-b-i_1.js | 22 +- .../Object/defineProperty/8.12.9-9-b-i_2.js | 26 +- .../Object/defineProperty/8.12.9-9-c-i_1.js | 20 +- .../Object/defineProperty/8.12.9-9-c-i_2.js | 24 +- .../Object/defineProperty/S15.2.3.6_A1.js | 6 +- .../Object/defineProperty/S15.2.3.6_A2.js | 9 +- .../entries/exception-during-enumeration.js | 16 +- .../entries/exception-not-object-coercible.js | 8 +- .../built-ins/Object/entries/function-name.js | 6 +- .../Object/entries/getter-adding-key.js | 10 +- .../getter-making-future-key-nonenumerable.js | 16 +- .../entries/getter-removing-future-key.js | 12 +- .../Object/entries/observable-operations.js | 14 +- .../Object/entries/symbols-omitted.js | 9 +- .../entries/tamper-with-global-object.js | 2 +- .../Object/entries/tamper-with-object-keys.js | 6 +- test/built-ins/Object/freeze/15.2.3.9-0-1.js | 2 +- test/built-ins/Object/freeze/15.2.3.9-1-1.js | 2 +- test/built-ins/Object/freeze/15.2.3.9-1-2.js | 2 +- test/built-ins/Object/freeze/15.2.3.9-1-3.js | 4 +- test/built-ins/Object/freeze/15.2.3.9-1-4.js | 2 +- test/built-ins/Object/freeze/15.2.3.9-1.js | 2 +- test/built-ins/Object/freeze/15.2.3.9-2-1.js | 4 +- test/built-ins/Object/freeze/15.2.3.9-2-2.js | 24 +- test/built-ins/Object/freeze/15.2.3.9-2-3.js | 28 +- test/built-ins/Object/freeze/15.2.3.9-2-4.js | 6 +- .../Object/freeze/15.2.3.9-2-a-11.js | 5 +- .../Object/freeze/15.2.3.9-2-a-13.js | 6 +- .../built-ins/Object/freeze/15.2.3.9-2-a-2.js | 6 +- .../built-ins/Object/freeze/15.2.3.9-2-a-3.js | 14 +- .../built-ins/Object/freeze/15.2.3.9-2-a-4.js | 8 +- .../built-ins/Object/freeze/15.2.3.9-2-a-5.js | 10 +- .../built-ins/Object/freeze/15.2.3.9-2-a-6.js | 18 +- .../built-ins/Object/freeze/15.2.3.9-2-a-7.js | 4 +- .../built-ins/Object/freeze/15.2.3.9-2-a-9.js | 2 +- .../Object/freeze/15.2.3.9-2-b-i-1.js | 13 +- .../Object/freeze/15.2.3.9-2-b-i-2.js | 25 +- .../built-ins/Object/freeze/15.2.3.9-2-c-1.js | 13 +- .../built-ins/Object/freeze/15.2.3.9-2-c-2.js | 13 +- .../built-ins/Object/freeze/15.2.3.9-2-c-3.js | 29 +- .../built-ins/Object/freeze/15.2.3.9-2-c-4.js | 26 +- .../built-ins/Object/freeze/15.2.3.9-2-d-1.js | 4 +- .../built-ins/Object/freeze/15.2.3.9-2-d-2.js | 4 +- .../built-ins/Object/freeze/15.2.3.9-2-d-3.js | 4 +- .../built-ins/Object/freeze/15.2.3.9-2-d-4.js | 4 +- .../built-ins/Object/freeze/15.2.3.9-2-d-5.js | 4 +- .../built-ins/Object/freeze/15.2.3.9-2-d-6.js | 4 +- .../built-ins/Object/freeze/15.2.3.9-2-d-7.js | 4 +- .../built-ins/Object/freeze/15.2.3.9-2-d-8.js | 4 +- .../built-ins/Object/freeze/15.2.3.9-2-d-9.js | 6 +- test/built-ins/Object/freeze/15.2.3.9-3-1.js | 4 +- test/built-ins/Object/freeze/15.2.3.9-4-1.js | 8 +- test/built-ins/Object/freeze/15.2.3.9-4-2.js | 8 +- test/built-ins/Object/freeze/15.2.3.9-4-3.js | 8 +- .../getOwnPropertyDescriptor/15.2.3.3-1-1.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-1-2.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-1-3.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-1-4.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-1.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-2-1.js | 4 +- .../getOwnPropertyDescriptor/15.2.3.3-2-10.js | 6 +- .../getOwnPropertyDescriptor/15.2.3.3-2-11.js | 6 +- .../getOwnPropertyDescriptor/15.2.3.3-2-12.js | 6 +- .../getOwnPropertyDescriptor/15.2.3.3-2-13.js | 6 +- .../getOwnPropertyDescriptor/15.2.3.3-2-14.js | 6 +- .../getOwnPropertyDescriptor/15.2.3.3-2-15.js | 6 +- .../getOwnPropertyDescriptor/15.2.3.3-2-16.js | 6 +- .../getOwnPropertyDescriptor/15.2.3.3-2-17.js | 6 +- .../getOwnPropertyDescriptor/15.2.3.3-2-18.js | 6 +- .../getOwnPropertyDescriptor/15.2.3.3-2-19.js | 6 +- .../getOwnPropertyDescriptor/15.2.3.3-2-2.js | 4 +- .../getOwnPropertyDescriptor/15.2.3.3-2-20.js | 6 +- .../getOwnPropertyDescriptor/15.2.3.3-2-21.js | 6 +- .../getOwnPropertyDescriptor/15.2.3.3-2-22.js | 6 +- .../getOwnPropertyDescriptor/15.2.3.3-2-23.js | 6 +- .../getOwnPropertyDescriptor/15.2.3.3-2-24.js | 6 +- .../getOwnPropertyDescriptor/15.2.3.3-2-25.js | 6 +- .../getOwnPropertyDescriptor/15.2.3.3-2-26.js | 6 +- .../getOwnPropertyDescriptor/15.2.3.3-2-27.js | 6 +- .../getOwnPropertyDescriptor/15.2.3.3-2-28.js | 6 +- .../getOwnPropertyDescriptor/15.2.3.3-2-29.js | 6 +- .../getOwnPropertyDescriptor/15.2.3.3-2-3.js | 8 +- .../getOwnPropertyDescriptor/15.2.3.3-2-30.js | 6 +- .../getOwnPropertyDescriptor/15.2.3.3-2-31.js | 6 +- .../getOwnPropertyDescriptor/15.2.3.3-2-32.js | 6 +- .../getOwnPropertyDescriptor/15.2.3.3-2-33.js | 6 +- .../getOwnPropertyDescriptor/15.2.3.3-2-34.js | 6 +- .../getOwnPropertyDescriptor/15.2.3.3-2-35.js | 6 +- .../getOwnPropertyDescriptor/15.2.3.3-2-36.js | 6 +- .../getOwnPropertyDescriptor/15.2.3.3-2-37.js | 6 +- .../getOwnPropertyDescriptor/15.2.3.3-2-38.js | 6 +- .../getOwnPropertyDescriptor/15.2.3.3-2-39.js | 6 +- .../getOwnPropertyDescriptor/15.2.3.3-2-4.js | 6 +- .../getOwnPropertyDescriptor/15.2.3.3-2-40.js | 6 +- .../getOwnPropertyDescriptor/15.2.3.3-2-41.js | 6 +- .../getOwnPropertyDescriptor/15.2.3.3-2-42.js | 16 +- .../getOwnPropertyDescriptor/15.2.3.3-2-43.js | 17 +- .../getOwnPropertyDescriptor/15.2.3.3-2-44.js | 30 +- .../getOwnPropertyDescriptor/15.2.3.3-2-45.js | 27 +- .../getOwnPropertyDescriptor/15.2.3.3-2-46.js | 30 +- .../getOwnPropertyDescriptor/15.2.3.3-2-47.js | 35 +-- .../getOwnPropertyDescriptor/15.2.3.3-2-5.js | 6 +- .../getOwnPropertyDescriptor/15.2.3.3-2-6.js | 6 +- .../getOwnPropertyDescriptor/15.2.3.3-2-7.js | 6 +- .../getOwnPropertyDescriptor/15.2.3.3-2-8.js | 6 +- .../getOwnPropertyDescriptor/15.2.3.3-2-9.js | 6 +- .../getOwnPropertyDescriptor/15.2.3.3-3-1.js | 8 +- .../getOwnPropertyDescriptor/15.2.3.3-3-10.js | 8 +- .../getOwnPropertyDescriptor/15.2.3.3-3-13.js | 8 +- .../getOwnPropertyDescriptor/15.2.3.3-3-14.js | 4 +- .../getOwnPropertyDescriptor/15.2.3.3-3-15.js | 10 +- .../getOwnPropertyDescriptor/15.2.3.3-3-2.js | 14 +- .../getOwnPropertyDescriptor/15.2.3.3-3-3.js | 16 +- .../getOwnPropertyDescriptor/15.2.3.3-3-4.js | 30 +- .../getOwnPropertyDescriptor/15.2.3.3-3-5.js | 18 +- .../getOwnPropertyDescriptor/15.2.3.3-3-6.js | 24 +- .../getOwnPropertyDescriptor/15.2.3.3-3-7.js | 28 +- .../getOwnPropertyDescriptor/15.2.3.3-3-8.js | 36 +-- .../getOwnPropertyDescriptor/15.2.3.3-3-9.js | 14 +- .../getOwnPropertyDescriptor/15.2.3.3-4-1.js | 6 +- .../getOwnPropertyDescriptor/15.2.3.3-4-10.js | 4 +- .../15.2.3.3-4-100.js | 2 +- .../15.2.3.3-4-101.js | 2 +- .../15.2.3.3-4-102.js | 2 +- .../15.2.3.3-4-103.js | 2 +- .../15.2.3.3-4-104.js | 2 +- .../15.2.3.3-4-105.js | 2 +- .../15.2.3.3-4-106.js | 2 +- .../15.2.3.3-4-107.js | 2 +- .../15.2.3.3-4-108.js | 2 +- .../15.2.3.3-4-109.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-11.js | 4 +- .../15.2.3.3-4-110.js | 2 +- .../15.2.3.3-4-111.js | 2 +- .../15.2.3.3-4-112.js | 2 +- .../15.2.3.3-4-113.js | 2 +- .../15.2.3.3-4-114.js | 2 +- .../15.2.3.3-4-115.js | 2 +- .../15.2.3.3-4-116.js | 2 +- .../15.2.3.3-4-117.js | 2 +- .../15.2.3.3-4-118.js | 2 +- .../15.2.3.3-4-120.js | 2 +- .../15.2.3.3-4-121.js | 2 +- .../15.2.3.3-4-122.js | 2 +- .../15.2.3.3-4-123.js | 2 +- .../15.2.3.3-4-124.js | 2 +- .../15.2.3.3-4-125.js | 2 +- .../15.2.3.3-4-126.js | 2 +- .../15.2.3.3-4-127.js | 2 +- .../15.2.3.3-4-128.js | 2 +- .../15.2.3.3-4-129.js | 2 +- .../15.2.3.3-4-130.js | 2 +- .../15.2.3.3-4-131.js | 2 +- .../15.2.3.3-4-132.js | 2 +- .../15.2.3.3-4-133.js | 2 +- .../15.2.3.3-4-134.js | 2 +- .../15.2.3.3-4-135.js | 2 +- .../15.2.3.3-4-136.js | 2 +- .../15.2.3.3-4-138.js | 2 +- .../15.2.3.3-4-139.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-14.js | 2 +- .../15.2.3.3-4-140.js | 2 +- .../15.2.3.3-4-141.js | 2 +- .../15.2.3.3-4-142.js | 2 +- .../15.2.3.3-4-143.js | 2 +- .../15.2.3.3-4-144.js | 2 +- .../15.2.3.3-4-145.js | 2 +- .../15.2.3.3-4-146.js | 2 +- .../15.2.3.3-4-147.js | 2 +- .../15.2.3.3-4-148.js | 2 +- .../15.2.3.3-4-149.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-15.js | 2 +- .../15.2.3.3-4-150.js | 2 +- .../15.2.3.3-4-151.js | 2 +- .../15.2.3.3-4-152.js | 2 +- .../15.2.3.3-4-153.js | 2 +- .../15.2.3.3-4-154.js | 2 +- .../15.2.3.3-4-156.js | 2 +- .../15.2.3.3-4-157.js | 2 +- .../15.2.3.3-4-158.js | 2 +- .../15.2.3.3-4-159.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-16.js | 2 +- .../15.2.3.3-4-160.js | 2 +- .../15.2.3.3-4-161.js | 2 +- .../15.2.3.3-4-162.js | 2 +- .../15.2.3.3-4-163.js | 2 +- .../15.2.3.3-4-165.js | 2 +- .../15.2.3.3-4-166.js | 2 +- .../15.2.3.3-4-167.js | 2 +- .../15.2.3.3-4-168.js | 2 +- .../15.2.3.3-4-169.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-17.js | 2 +- .../15.2.3.3-4-170.js | 2 +- .../15.2.3.3-4-171.js | 2 +- .../15.2.3.3-4-172.js | 2 +- .../15.2.3.3-4-173.js | 2 +- .../15.2.3.3-4-174.js | 2 +- .../15.2.3.3-4-175.js | 2 +- .../15.2.3.3-4-176.js | 2 +- .../15.2.3.3-4-177.js | 2 +- .../15.2.3.3-4-178.js | 4 +- .../15.2.3.3-4-179.js | 4 +- .../getOwnPropertyDescriptor/15.2.3.3-4-18.js | 2 +- .../15.2.3.3-4-180.js | 4 +- .../15.2.3.3-4-182.js | 2 +- .../15.2.3.3-4-183.js | 2 +- .../15.2.3.3-4-184.js | 2 +- .../15.2.3.3-4-185.js | 2 +- .../15.2.3.3-4-186.js | 2 +- .../15.2.3.3-4-187.js | 4 +- .../15.2.3.3-4-188.js | 4 +- .../15.2.3.3-4-189.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-19.js | 2 +- .../15.2.3.3-4-190.js | 2 +- .../15.2.3.3-4-191.js | 2 +- .../15.2.3.3-4-192.js | 4 +- .../15.2.3.3-4-193.js | 2 +- .../15.2.3.3-4-194.js | 2 +- .../15.2.3.3-4-195.js | 2 +- .../15.2.3.3-4-196.js | 2 +- .../15.2.3.3-4-197.js | 2 +- .../15.2.3.3-4-198.js | 2 +- .../15.2.3.3-4-199.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-2.js | 4 +- .../getOwnPropertyDescriptor/15.2.3.3-4-20.js | 2 +- .../15.2.3.3-4-200.js | 2 +- .../15.2.3.3-4-201.js | 2 +- .../15.2.3.3-4-202.js | 2 +- .../15.2.3.3-4-203.js | 2 +- .../15.2.3.3-4-204.js | 2 +- .../15.2.3.3-4-205.js | 2 +- .../15.2.3.3-4-206.js | 2 +- .../15.2.3.3-4-207.js | 2 +- .../15.2.3.3-4-208.js | 2 +- .../15.2.3.3-4-209.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-21.js | 2 +- .../15.2.3.3-4-210.js | 2 +- .../15.2.3.3-4-211.js | 2 +- .../15.2.3.3-4-212.js | 2 +- .../15.2.3.3-4-213.js | 2 +- .../15.2.3.3-4-214.js | 2 +- .../15.2.3.3-4-215.js | 2 +- .../15.2.3.3-4-216.js | 2 +- .../15.2.3.3-4-217.js | 2 +- .../15.2.3.3-4-218.js | 2 +- .../15.2.3.3-4-219.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-22.js | 2 +- .../15.2.3.3-4-220.js | 2 +- .../15.2.3.3-4-221.js | 2 +- .../15.2.3.3-4-222.js | 2 +- .../15.2.3.3-4-223.js | 6 +- .../15.2.3.3-4-224.js | 8 +- .../15.2.3.3-4-225.js | 18 +- .../15.2.3.3-4-226.js | 12 +- .../15.2.3.3-4-227.js | 6 +- .../15.2.3.3-4-228.js | 8 +- .../15.2.3.3-4-229.js | 18 +- .../getOwnPropertyDescriptor/15.2.3.3-4-23.js | 2 +- .../15.2.3.3-4-230.js | 12 +- .../15.2.3.3-4-231.js | 6 +- .../15.2.3.3-4-232.js | 8 +- .../15.2.3.3-4-233.js | 18 +- .../15.2.3.3-4-234.js | 12 +- .../15.2.3.3-4-235.js | 6 +- .../15.2.3.3-4-236.js | 8 +- .../15.2.3.3-4-237.js | 18 +- .../15.2.3.3-4-238.js | 12 +- .../15.2.3.3-4-239.js | 18 +- .../getOwnPropertyDescriptor/15.2.3.3-4-24.js | 2 +- .../15.2.3.3-4-240.js | 20 +- .../15.2.3.3-4-241.js | 30 +- .../15.2.3.3-4-242.js | 24 +- .../15.2.3.3-4-243.js | 18 +- .../15.2.3.3-4-244.js | 20 +- .../15.2.3.3-4-245.js | 30 +- .../15.2.3.3-4-246.js | 24 +- .../15.2.3.3-4-247.js | 6 +- .../15.2.3.3-4-248.js | 12 +- .../15.2.3.3-4-249.js | 12 +- .../getOwnPropertyDescriptor/15.2.3.3-4-25.js | 2 +- .../15.2.3.3-4-250.js | 12 +- .../getOwnPropertyDescriptor/15.2.3.3-4-26.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-27.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-28.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-29.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-3.js | 16 +- .../getOwnPropertyDescriptor/15.2.3.3-4-30.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-31.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-32.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-33.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-34.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-35.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-36.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-37.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-38.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-39.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-4.js | 4 +- .../getOwnPropertyDescriptor/15.2.3.3-4-40.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-41.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-42.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-43.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-44.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-45.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-46.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-47.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-48.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-49.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-5.js | 4 +- .../getOwnPropertyDescriptor/15.2.3.3-4-50.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-51.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-52.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-53.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-54.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-55.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-56.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-57.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-58.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-59.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-6.js | 4 +- .../getOwnPropertyDescriptor/15.2.3.3-4-60.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-61.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-62.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-63.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-64.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-65.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-66.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-67.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-68.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-69.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-7.js | 4 +- .../getOwnPropertyDescriptor/15.2.3.3-4-70.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-71.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-72.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-73.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-75.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-76.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-77.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-78.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-79.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-8.js | 4 +- .../getOwnPropertyDescriptor/15.2.3.3-4-80.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-81.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-82.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-84.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-85.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-86.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-88.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-89.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-9.js | 4 +- .../getOwnPropertyDescriptor/15.2.3.3-4-90.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-91.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-92.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-93.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-94.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-96.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-97.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-98.js | 2 +- .../getOwnPropertyDescriptor/15.2.3.3-4-99.js | 2 +- .../exception-not-object-coercible.js | 8 +- .../function-name.js | 6 +- .../inherited-properties-omitted.js | 2 +- .../observable-operations.js | 12 +- .../primitive-strings.js | 1 - .../proxy-undefined-descriptor.js | 6 +- .../symbols-included.js | 11 +- .../tamper-with-global-object.js | 2 +- .../tamper-with-object-keys.js | 6 +- .../getOwnPropertyNames/15.2.3.4-1-2.js | 2 +- .../getOwnPropertyNames/15.2.3.4-1-3.js | 2 +- .../getOwnPropertyNames/15.2.3.4-1-4.js | 2 +- .../getOwnPropertyNames/15.2.3.4-1-5.js | 2 +- .../Object/getOwnPropertyNames/15.2.3.4-1.js | 2 +- .../getOwnPropertyNames/15.2.3.4-2-1.js | 4 +- .../getOwnPropertyNames/15.2.3.4-2-2.js | 4 +- .../getOwnPropertyNames/15.2.3.4-2-3.js | 4 +- .../getOwnPropertyNames/15.2.3.4-2-4.js | 12 +- .../getOwnPropertyNames/15.2.3.4-3-1.js | 6 +- .../getOwnPropertyNames/15.2.3.4-4-1.js | 18 +- .../getOwnPropertyNames/15.2.3.4-4-2.js | 4 +- .../getOwnPropertyNames/15.2.3.4-4-36.js | 18 +- .../getOwnPropertyNames/15.2.3.4-4-37.js | 28 +- .../getOwnPropertyNames/15.2.3.4-4-38.js | 6 +- .../getOwnPropertyNames/15.2.3.4-4-39.js | 16 +- .../getOwnPropertyNames/15.2.3.4-4-40.js | 12 +- .../getOwnPropertyNames/15.2.3.4-4-41.js | 22 +- .../getOwnPropertyNames/15.2.3.4-4-42.js | 24 +- .../getOwnPropertyNames/15.2.3.4-4-43.js | 28 +- .../getOwnPropertyNames/15.2.3.4-4-44.js | 8 +- .../getOwnPropertyNames/15.2.3.4-4-45.js | 12 +- .../getOwnPropertyNames/15.2.3.4-4-46.js | 22 +- .../getOwnPropertyNames/15.2.3.4-4-47.js | 18 +- .../getOwnPropertyNames/15.2.3.4-4-48.js | 28 +- .../getOwnPropertyNames/15.2.3.4-4-49.js | 6 +- .../getOwnPropertyNames/15.2.3.4-4-50.js | 14 +- .../getOwnPropertyNames/15.2.3.4-4-b-1.js | 10 +- .../getOwnPropertyNames/15.2.3.4-4-b-2.js | 46 +-- .../getOwnPropertyNames/15.2.3.4-4-b-3.js | 18 +- .../getOwnPropertyNames/15.2.3.4-4-b-4.js | 12 +- .../getOwnPropertyNames/15.2.3.4-4-b-5.js | 18 +- .../getOwnPropertyNames/15.2.3.4-4-b-6.js | 12 +- ...ntains-symbol-property-with-description.js | 2 - ...ins-symbol-property-without-description.js | 2 - .../Object/getPrototypeOf/15.2.3.2-0-3.js | 2 +- .../Object/getPrototypeOf/15.2.3.2-1-2.js | 2 +- .../Object/getPrototypeOf/15.2.3.2-2-19.js | 2 +- .../Object/getPrototypeOf/15.2.3.2-2-2.js | 10 +- .../Object/getPrototypeOf/15.2.3.2-2-20.js | 6 +- .../Object/getPrototypeOf/15.2.3.2-2-21.js | 2 +- .../Object/getPrototypeOf/15.2.3.2-2-22.js | 2 +- .../Object/getPrototypeOf/15.2.3.2-2-23.js | 2 +- .../Object/getPrototypeOf/15.2.3.2-2-24.js | 2 +- .../Object/getPrototypeOf/15.2.3.2-2-25.js | 2 +- .../Object/getPrototypeOf/15.2.3.2-2-26.js | 2 +- .../Object/getPrototypeOf/15.2.3.2-2-27.js | 2 +- .../Object/getPrototypeOf/15.2.3.2-2-28.js | 8 +- .../Object/getPrototypeOf/15.2.3.2-2-30.js | 2 +- .../consistent-value-function-arguments.js | 11 +- .../consistent-value-function-caller.js | 13 +- .../consistent-value-regexp-$1.js | 11 +- .../consistent-writable-regexp-$1.js | 9 +- test/built-ins/Object/is/name.js | 1 - .../Object/is/not-same-value-x-y-null.js | 1 - .../Object/is/not-same-value-x-y-object.js | 24 +- .../Object/is/not-same-value-x-y-string.js | 6 +- .../Object/is/not-same-value-x-y-symbol.js | 12 +- .../Object/is/not-same-value-x-y-type.js | 31 +- .../Object/is/same-value-x-y-null.js | 1 - .../Object/is/same-value-x-y-string.js | 12 +- .../Object/is/symbol-object-is-same-value.js | 2 - .../Object/isExtensible/15.2.3.13-0-1.js | 2 +- .../Object/isExtensible/15.2.3.13-0-3.js | 2 +- .../Object/isExtensible/15.2.3.13-1-1.js | 2 +- .../Object/isExtensible/15.2.3.13-1-2.js | 2 +- .../Object/isExtensible/15.2.3.13-1-3.js | 2 +- .../Object/isExtensible/15.2.3.13-1-4.js | 2 +- .../Object/isExtensible/15.2.3.13-1.js | 2 +- .../Object/isExtensible/15.2.3.13-2-1.js | 1 - .../Object/isExtensible/15.2.3.13-2-10.js | 2 +- .../Object/isExtensible/15.2.3.13-2-11.js | 2 +- .../Object/isExtensible/15.2.3.13-2-12.js | 2 +- .../Object/isExtensible/15.2.3.13-2-13.js | 2 +- .../Object/isExtensible/15.2.3.13-2-14.js | 2 +- .../Object/isExtensible/15.2.3.13-2-15.js | 2 +- .../Object/isExtensible/15.2.3.13-2-16.js | 2 +- .../Object/isExtensible/15.2.3.13-2-17.js | 2 +- .../Object/isExtensible/15.2.3.13-2-18.js | 2 +- .../Object/isExtensible/15.2.3.13-2-19.js | 2 +- .../Object/isExtensible/15.2.3.13-2-2.js | 4 +- .../Object/isExtensible/15.2.3.13-2-20.js | 2 +- .../Object/isExtensible/15.2.3.13-2-21.js | 2 +- .../Object/isExtensible/15.2.3.13-2-22.js | 2 +- .../Object/isExtensible/15.2.3.13-2-23.js | 4 +- .../Object/isExtensible/15.2.3.13-2-24.js | 8 +- .../Object/isExtensible/15.2.3.13-2-25.js | 12 +- .../Object/isExtensible/15.2.3.13-2-26.js | 10 +- .../Object/isExtensible/15.2.3.13-2-27.js | 12 +- .../Object/isExtensible/15.2.3.13-2-3.js | 6 +- .../Object/isExtensible/15.2.3.13-2-4.js | 2 +- .../Object/isExtensible/15.2.3.13-2-5.js | 2 +- .../Object/isExtensible/15.2.3.13-2-6.js | 2 +- .../Object/isExtensible/15.2.3.13-2-7.js | 2 +- .../Object/isExtensible/15.2.3.13-2-8.js | 2 +- .../Object/isExtensible/15.2.3.13-2-9.js | 2 +- .../Object/isFrozen/15.2.3.12-0-1.js | 2 +- .../Object/isFrozen/15.2.3.12-1-1.js | 2 +- .../Object/isFrozen/15.2.3.12-1-2.js | 2 +- .../Object/isFrozen/15.2.3.12-1-3.js | 2 +- .../Object/isFrozen/15.2.3.12-1-4.js | 2 +- .../Object/isFrozen/15.2.3.12-1-5.js | 2 +- .../Object/isFrozen/15.2.3.12-1-6.js | 6 +- .../Object/isFrozen/15.2.3.12-1-7.js | 6 +- test/built-ins/Object/isFrozen/15.2.3.12-1.js | 2 +- .../Object/isFrozen/15.2.3.12-2-1.js | 20 +- .../Object/isFrozen/15.2.3.12-2-2.js | 31 +- .../Object/isFrozen/15.2.3.12-2-a-1.js | 14 +- .../Object/isFrozen/15.2.3.12-2-a-11.js | 10 +- .../Object/isFrozen/15.2.3.12-2-a-12.js | 6 +- .../Object/isFrozen/15.2.3.12-2-a-13.js | 16 +- .../Object/isFrozen/15.2.3.12-2-a-14.js | 6 +- .../Object/isFrozen/15.2.3.12-2-a-2.js | 30 +- .../Object/isFrozen/15.2.3.12-2-a-3.js | 30 +- .../Object/isFrozen/15.2.3.12-2-a-4.js | 16 +- .../Object/isFrozen/15.2.3.12-2-a-5.js | 30 +- .../Object/isFrozen/15.2.3.12-2-a-6.js | 34 +-- .../Object/isFrozen/15.2.3.12-2-a-7.js | 12 +- .../Object/isFrozen/15.2.3.12-2-a-8.js | 30 +- .../Object/isFrozen/15.2.3.12-2-b-i-1.js | 14 +- .../Object/isFrozen/15.2.3.12-2-c-1.js | 14 +- .../Object/isFrozen/15.2.3.12-2-c-2.js | 23 +- .../Object/isFrozen/15.2.3.12-3-10.js | 2 +- .../Object/isFrozen/15.2.3.12-3-11.js | 2 +- .../Object/isFrozen/15.2.3.12-3-12.js | 2 +- .../Object/isFrozen/15.2.3.12-3-13.js | 2 +- .../Object/isFrozen/15.2.3.12-3-14.js | 2 +- .../Object/isFrozen/15.2.3.12-3-15.js | 2 +- .../Object/isFrozen/15.2.3.12-3-16.js | 2 +- .../Object/isFrozen/15.2.3.12-3-17.js | 2 +- .../Object/isFrozen/15.2.3.12-3-18.js | 2 +- .../Object/isFrozen/15.2.3.12-3-19.js | 2 +- .../Object/isFrozen/15.2.3.12-3-2.js | 2 +- .../Object/isFrozen/15.2.3.12-3-20.js | 2 +- .../Object/isFrozen/15.2.3.12-3-21.js | 2 +- .../Object/isFrozen/15.2.3.12-3-22.js | 2 +- .../Object/isFrozen/15.2.3.12-3-23.js | 2 +- .../Object/isFrozen/15.2.3.12-3-24.js | 2 +- .../Object/isFrozen/15.2.3.12-3-25.js | 2 +- .../Object/isFrozen/15.2.3.12-3-26.js | 2 +- .../Object/isFrozen/15.2.3.12-3-27.js | 2 +- .../Object/isFrozen/15.2.3.12-3-28.js | 35 +-- .../Object/isFrozen/15.2.3.12-3-3.js | 2 +- .../Object/isFrozen/15.2.3.12-3-4.js | 2 +- .../Object/isFrozen/15.2.3.12-3-5.js | 2 +- .../Object/isFrozen/15.2.3.12-3-6.js | 2 +- .../Object/isFrozen/15.2.3.12-3-7.js | 2 +- .../Object/isFrozen/15.2.3.12-3-8.js | 2 +- .../Object/isFrozen/15.2.3.12-3-9.js | 2 +- .../Object/isSealed/15.2.3.11-0-1.js | 2 +- test/built-ins/Object/isSealed/15.2.3.11-1.js | 2 +- .../Object/isSealed/15.2.3.11-4-10.js | 2 +- .../Object/isSealed/15.2.3.11-4-11.js | 2 +- .../Object/isSealed/15.2.3.11-4-12.js | 2 +- .../Object/isSealed/15.2.3.11-4-13.js | 2 +- .../Object/isSealed/15.2.3.11-4-14.js | 2 +- .../Object/isSealed/15.2.3.11-4-15.js | 2 +- .../Object/isSealed/15.2.3.11-4-16.js | 2 +- .../Object/isSealed/15.2.3.11-4-17.js | 2 +- .../Object/isSealed/15.2.3.11-4-18.js | 2 +- .../Object/isSealed/15.2.3.11-4-19.js | 2 +- .../Object/isSealed/15.2.3.11-4-2.js | 2 +- .../Object/isSealed/15.2.3.11-4-20.js | 2 +- .../Object/isSealed/15.2.3.11-4-21.js | 2 +- .../Object/isSealed/15.2.3.11-4-22.js | 2 +- .../Object/isSealed/15.2.3.11-4-23.js | 2 +- .../Object/isSealed/15.2.3.11-4-24.js | 2 +- .../Object/isSealed/15.2.3.11-4-25.js | 2 +- .../Object/isSealed/15.2.3.11-4-26.js | 2 +- .../Object/isSealed/15.2.3.11-4-27.js | 2 +- .../Object/isSealed/15.2.3.11-4-3.js | 2 +- .../Object/isSealed/15.2.3.11-4-4.js | 2 +- .../Object/isSealed/15.2.3.11-4-5.js | 2 +- .../Object/isSealed/15.2.3.11-4-6.js | 2 +- .../Object/isSealed/15.2.3.11-4-7.js | 2 +- .../Object/isSealed/15.2.3.11-4-8.js | 2 +- .../Object/isSealed/15.2.3.11-4-9.js | 2 +- test/built-ins/Object/keys/15.2.3.14-0-1.js | 2 +- test/built-ins/Object/keys/15.2.3.14-1-1.js | 2 +- test/built-ins/Object/keys/15.2.3.14-1-2.js | 2 +- test/built-ins/Object/keys/15.2.3.14-1-3.js | 2 +- test/built-ins/Object/keys/15.2.3.14-1-4.js | 2 +- test/built-ins/Object/keys/15.2.3.14-1-5.js | 2 +- test/built-ins/Object/keys/15.2.3.14-2-1.js | 7 +- test/built-ins/Object/keys/15.2.3.14-2-2.js | 9 +- test/built-ins/Object/keys/15.2.3.14-2-3.js | 11 +- test/built-ins/Object/keys/15.2.3.14-2-4.js | 7 +- test/built-ins/Object/keys/15.2.3.14-2-5.js | 7 +- test/built-ins/Object/keys/15.2.3.14-2-6.js | 7 +- test/built-ins/Object/keys/15.2.3.14-2-7.js | 28 +- test/built-ins/Object/keys/15.2.3.14-2-8.js | 38 +-- test/built-ins/Object/keys/15.2.3.14-3-1.js | 7 +- test/built-ins/Object/keys/15.2.3.14-3-2.js | 8 +- test/built-ins/Object/keys/15.2.3.14-3-3.js | 4 +- test/built-ins/Object/keys/15.2.3.14-3-4.js | 38 +-- test/built-ins/Object/keys/15.2.3.14-3-5.js | 12 +- test/built-ins/Object/keys/15.2.3.14-3-6.js | 4 +- test/built-ins/Object/keys/15.2.3.14-3-7.js | 31 +- test/built-ins/Object/keys/15.2.3.14-4-1.js | 31 +- test/built-ins/Object/keys/15.2.3.14-5-1.js | 14 +- test/built-ins/Object/keys/15.2.3.14-5-10.js | 36 +-- test/built-ins/Object/keys/15.2.3.14-5-11.js | 18 +- test/built-ins/Object/keys/15.2.3.14-5-12.js | 34 +-- test/built-ins/Object/keys/15.2.3.14-5-13.js | 36 +-- test/built-ins/Object/keys/15.2.3.14-5-14.js | 30 +- test/built-ins/Object/keys/15.2.3.14-5-15.js | 24 +- test/built-ins/Object/keys/15.2.3.14-5-16.js | 34 +-- test/built-ins/Object/keys/15.2.3.14-5-2.js | 18 +- test/built-ins/Object/keys/15.2.3.14-5-3.js | 37 +-- test/built-ins/Object/keys/15.2.3.14-5-4.js | 44 +-- test/built-ins/Object/keys/15.2.3.14-5-5.js | 28 +- test/built-ins/Object/keys/15.2.3.14-5-6.js | 44 +-- test/built-ins/Object/keys/15.2.3.14-5-7.js | 36 +-- test/built-ins/Object/keys/15.2.3.14-5-8.js | 36 +-- test/built-ins/Object/keys/15.2.3.14-5-9.js | 36 +-- test/built-ins/Object/keys/15.2.3.14-5-a-1.js | 8 +- test/built-ins/Object/keys/15.2.3.14-5-a-2.js | 10 +- test/built-ins/Object/keys/15.2.3.14-5-a-3.js | 20 +- test/built-ins/Object/keys/15.2.3.14-5-a-4.js | 10 +- test/built-ins/Object/keys/15.2.3.14-5-b-1.js | 22 +- test/built-ins/Object/keys/15.2.3.14-6-1.js | 22 +- test/built-ins/Object/keys/15.2.3.14-6-2.js | 22 +- test/built-ins/Object/keys/15.2.3.14-6-3.js | 22 +- test/built-ins/Object/keys/15.2.3.14-6-4.js | 28 +- test/built-ins/Object/keys/15.2.3.14-6-5.js | 26 +- test/built-ins/Object/keys/proxy-keys.js | 36 ++- .../Object/preventExtensions/15.2.3.10-0-1.js | 2 +- .../Object/preventExtensions/15.2.3.10-1-1.js | 2 +- .../Object/preventExtensions/15.2.3.10-1-2.js | 2 +- .../Object/preventExtensions/15.2.3.10-1-3.js | 2 +- .../Object/preventExtensions/15.2.3.10-1-4.js | 2 +- .../Object/preventExtensions/15.2.3.10-1.js | 2 +- .../Object/preventExtensions/15.2.3.10-2-1.js | 16 +- .../Object/preventExtensions/15.2.3.10-2.js | 6 +- .../Object/preventExtensions/15.2.3.10-3-1.js | 6 +- .../preventExtensions/15.2.3.10-3-10.js | 1 - .../preventExtensions/15.2.3.10-3-11.js | 4 +- .../preventExtensions/15.2.3.10-3-12.js | 1 - .../preventExtensions/15.2.3.10-3-13.js | 2 +- .../preventExtensions/15.2.3.10-3-21.js | 4 +- .../preventExtensions/15.2.3.10-3-22.js | 10 +- .../preventExtensions/15.2.3.10-3-23.js | 10 +- .../preventExtensions/15.2.3.10-3-24.js | 14 +- .../Object/preventExtensions/15.2.3.10-3-3.js | 2 +- .../Object/preventExtensions/15.2.3.10-3-5.js | 10 +- ...bject-contains-symbol-properties-strict.js | 7 +- test/built-ins/Object/prototype/15.2.3.1.js | 2 +- .../Object/prototype/S15.2.3.1_A1.js | 4 +- .../Object/prototype/S15.2.3.1_A2.js | 6 +- .../Object/prototype/S15.2.3.1_A3.js | 2 +- .../Object/prototype/S15.2.4_A1_T2.js | 2 +- .../prototype/constructor/S15.2.4.1_A1_T2.js | 2 +- .../prototype/hasOwnProperty/8.12.1-1_1.js | 2 +- .../prototype/hasOwnProperty/8.12.1-1_10.js | 8 +- .../prototype/hasOwnProperty/8.12.1-1_11.js | 9 +- .../prototype/hasOwnProperty/8.12.1-1_12.js | 8 +- .../prototype/hasOwnProperty/8.12.1-1_13.js | 9 +- .../prototype/hasOwnProperty/8.12.1-1_14.js | 9 +- .../prototype/hasOwnProperty/8.12.1-1_15.js | 9 +- .../prototype/hasOwnProperty/8.12.1-1_16.js | 10 +- .../prototype/hasOwnProperty/8.12.1-1_17.js | 10 +- .../prototype/hasOwnProperty/8.12.1-1_18.js | 10 +- .../prototype/hasOwnProperty/8.12.1-1_19.js | 11 +- .../prototype/hasOwnProperty/8.12.1-1_2.js | 4 +- .../prototype/hasOwnProperty/8.12.1-1_20.js | 6 +- .../prototype/hasOwnProperty/8.12.1-1_21.js | 5 +- .../prototype/hasOwnProperty/8.12.1-1_22.js | 8 +- .../prototype/hasOwnProperty/8.12.1-1_23.js | 8 +- .../prototype/hasOwnProperty/8.12.1-1_24.js | 7 +- .../prototype/hasOwnProperty/8.12.1-1_25.js | 10 +- .../prototype/hasOwnProperty/8.12.1-1_26.js | 8 +- .../prototype/hasOwnProperty/8.12.1-1_27.js | 9 +- .../prototype/hasOwnProperty/8.12.1-1_28.js | 9 +- .../prototype/hasOwnProperty/8.12.1-1_29.js | 10 +- .../prototype/hasOwnProperty/8.12.1-1_3.js | 6 +- .../prototype/hasOwnProperty/8.12.1-1_30.js | 7 +- .../prototype/hasOwnProperty/8.12.1-1_31.js | 8 +- .../prototype/hasOwnProperty/8.12.1-1_32.js | 8 +- .../prototype/hasOwnProperty/8.12.1-1_33.js | 9 +- .../prototype/hasOwnProperty/8.12.1-1_34.js | 10 +- .../prototype/hasOwnProperty/8.12.1-1_35.js | 11 +- .../prototype/hasOwnProperty/8.12.1-1_36.js | 11 +- .../prototype/hasOwnProperty/8.12.1-1_37.js | 12 +- .../prototype/hasOwnProperty/8.12.1-1_38.js | 10 +- .../prototype/hasOwnProperty/8.12.1-1_39.js | 11 +- .../prototype/hasOwnProperty/8.12.1-1_4.js | 6 +- .../prototype/hasOwnProperty/8.12.1-1_40.js | 11 +- .../prototype/hasOwnProperty/8.12.1-1_41.js | 12 +- .../prototype/hasOwnProperty/8.12.1-1_42.js | 9 +- .../prototype/hasOwnProperty/8.12.1-1_43.js | 10 +- .../prototype/hasOwnProperty/8.12.1-1_44.js | 10 +- .../prototype/hasOwnProperty/8.12.1-1_45.js | 11 +- .../prototype/hasOwnProperty/8.12.1-1_46.js | 12 +- .../prototype/hasOwnProperty/8.12.1-1_47.js | 13 +- .../prototype/hasOwnProperty/8.12.1-1_48.js | 13 +- .../prototype/hasOwnProperty/8.12.1-1_49.js | 14 +- .../prototype/hasOwnProperty/8.12.1-1_5.js | 7 +- .../prototype/hasOwnProperty/8.12.1-1_6.js | 7 +- .../prototype/hasOwnProperty/8.12.1-1_7.js | 7 +- .../prototype/hasOwnProperty/8.12.1-1_8.js | 8 +- .../prototype/hasOwnProperty/8.12.1-1_9.js | 8 +- .../prototype/hasOwnProperty/S15.2.4.5_A10.js | 4 +- .../hasOwnProperty/S15.2.4.5_A1_T2.js | 4 +- .../hasOwnProperty/S15.2.4.5_A1_T3.js | 4 +- .../prototype/hasOwnProperty/S15.2.4.5_A6.js | 2 +- .../prototype/hasOwnProperty/S15.2.4.5_A8.js | 6 +- .../prototype/isPrototypeOf/S15.2.4.6_A1.js | 16 +- .../prototype/isPrototypeOf/S15.2.4.6_A10.js | 4 +- .../prototype/isPrototypeOf/S15.2.4.6_A6.js | 2 +- .../prototype/isPrototypeOf/S15.2.4.6_A8.js | 6 +- .../propertyIsEnumerable/S15.2.4.7_A10.js | 4 +- .../propertyIsEnumerable/S15.2.4.7_A1_T1.js | 10 +- .../propertyIsEnumerable/S15.2.4.7_A2_T2.js | 12 +- .../propertyIsEnumerable/S15.2.4.7_A6.js | 2 +- .../propertyIsEnumerable/S15.2.4.7_A8.js | 6 +- .../prototype/toLocaleString/S15.2.4.3_A1.js | 2 +- .../prototype/toLocaleString/S15.2.4.3_A10.js | 4 +- .../prototype/toLocaleString/S15.2.4.3_A6.js | 2 +- .../prototype/toLocaleString/S15.2.4.3_A8.js | 6 +- .../Object/prototype/toString/S15.2.4.2_A1.js | 4 +- .../prototype/toString/S15.2.4.2_A10.js | 4 +- .../prototype/toString/S15.2.4.2_A14.js | 2 +- .../prototype/toString/S15.2.4.2_A15.js | 2 +- .../prototype/toString/S15.2.4.2_A16.js | 2 +- .../Object/prototype/toString/S15.2.4.2_A6.js | 2 +- .../Object/prototype/toString/S15.2.4.2_A8.js | 6 +- .../prototype/toString/symbol-tag-non-str.js | 6 +- .../toString/symbol-tag-override-instances.js | 4 +- .../Object/prototype/valueOf/S15.2.4.4_A10.js | 4 +- .../Object/prototype/valueOf/S15.2.4.4_A12.js | 2 +- .../Object/prototype/valueOf/S15.2.4.4_A14.js | 2 +- .../Object/prototype/valueOf/S15.2.4.4_A15.js | 2 +- .../prototype/valueOf/S15.2.4.4_A1_T1.js | 4 +- .../prototype/valueOf/S15.2.4.4_A1_T2.js | 4 +- .../prototype/valueOf/S15.2.4.4_A1_T3.js | 4 +- .../prototype/valueOf/S15.2.4.4_A1_T4.js | 4 +- .../prototype/valueOf/S15.2.4.4_A1_T5.js | 4 +- .../prototype/valueOf/S15.2.4.4_A1_T6.js | 4 +- .../prototype/valueOf/S15.2.4.4_A1_T7.js | 4 +- .../Object/prototype/valueOf/S15.2.4.4_A6.js | 2 +- .../Object/prototype/valueOf/S15.2.4.4_A8.js | 6 +- test/built-ins/Object/seal/15.2.3.8-0-1.js | 2 +- test/built-ins/Object/seal/15.2.3.8-1-1.js | 2 +- test/built-ins/Object/seal/15.2.3.8-1-2.js | 2 +- test/built-ins/Object/seal/15.2.3.8-1-3.js | 2 +- test/built-ins/Object/seal/15.2.3.8-1-4.js | 2 +- test/built-ins/Object/seal/15.2.3.8-1.js | 2 +- test/built-ins/Object/seal/15.2.3.8-2-1.js | 6 +- test/built-ins/Object/seal/15.2.3.8-2-2.js | 26 +- test/built-ins/Object/seal/15.2.3.8-2-3.js | 30 +- test/built-ins/Object/seal/15.2.3.8-2-4.js | 7 +- test/built-ins/Object/seal/15.2.3.8-2-a-15.js | 4 +- test/built-ins/Object/seal/15.2.3.8-2-a-2.js | 10 +- test/built-ins/Object/seal/15.2.3.8-2-a-3.js | 14 +- test/built-ins/Object/seal/15.2.3.8-2-a-4.js | 8 +- test/built-ins/Object/seal/15.2.3.8-2-a-5.js | 16 +- test/built-ins/Object/seal/15.2.3.8-2-a-6.js | 18 +- test/built-ins/Object/seal/15.2.3.8-2-a-7.js | 2 +- test/built-ins/Object/seal/15.2.3.8-2-b-1.js | 10 +- test/built-ins/Object/seal/15.2.3.8-2-b-2.js | 15 +- test/built-ins/Object/seal/15.2.3.8-2-b-3.js | 23 +- test/built-ins/Object/seal/15.2.3.8-2-b-4.js | 25 +- test/built-ins/Object/seal/15.2.3.8-2-c-1.js | 6 +- test/built-ins/Object/seal/15.2.3.8-2-c-2.js | 6 +- test/built-ins/Object/seal/15.2.3.8-2-c-3.js | 6 +- test/built-ins/Object/seal/15.2.3.8-2-c-4.js | 6 +- test/built-ins/Object/seal/15.2.3.8-2-c-5.js | 6 +- test/built-ins/Object/seal/15.2.3.8-2-c-6.js | 6 +- test/built-ins/Object/seal/15.2.3.8-2-c-7.js | 6 +- test/built-ins/Object/seal/15.2.3.8-2-c-8.js | 6 +- test/built-ins/Object/seal/15.2.3.8-2-c-9.js | 8 +- test/built-ins/Object/seal/15.2.3.8-3-1.js | 6 +- test/built-ins/Object/seal/15.2.3.8-4-1.js | 10 +- test/built-ins/Object/seal/15.2.3.8-4-2.js | 10 +- test/built-ins/Object/seal/15.2.3.8-4-3.js | 10 +- ...t-contains-symbol-properties-non-strict.js | 1 - ...bject-contains-symbol-properties-strict.js | 1 - .../built-ins/Object/setPrototypeOf/bigint.js | 6 +- test/built-ins/Object/setPrototypeOf/name.js | 1 - .../values/exception-during-enumeration.js | 16 +- .../values/exception-not-object-coercible.js | 8 +- test/built-ins/Object/values/function-name.js | 6 +- .../Object/values/getter-adding-key.js | 10 +- .../getter-making-future-key-nonenumerable.js | 16 +- .../values/getter-removing-future-key.js | 12 +- .../Object/values/observable-operations.js | 14 +- .../Object/values/symbols-omitted.js | 9 +- .../values/tamper-with-global-object.js | 2 +- .../Object/values/tamper-with-object-keys.js | 6 +- test/built-ins/Promise/S25.4.3.1_A1.1_T1.js | 2 +- test/built-ins/Promise/S25.4.3.1_A2.1_T1.js | 2 +- test/built-ins/Promise/S25.4.3.1_A2.2_T1.js | 4 +- test/built-ins/Promise/S25.4.3.1_A2.3_T1.js | 20 +- test/built-ins/Promise/S25.4.3.1_A2.4_T1.js | 20 +- test/built-ins/Promise/S25.4.3.1_A4.1_T1.js | 17 +- test/built-ins/Promise/S25.4.3.1_A5.1_T1.js | 10 +- test/built-ins/Promise/S25.4.3.1_A5.1_T2.js | 10 +- .../Promise/all/S25.4.4.1_A1.1_T1.js | 2 +- .../Promise/all/S25.4.4.1_A2.1_T1.js | 2 +- .../Promise/all/S25.4.4.1_A2.2_T1.js | 12 +- .../Promise/all/S25.4.4.1_A2.3_T1.js | 8 +- .../Promise/all/S25.4.4.1_A2.3_T2.js | 8 +- .../Promise/all/S25.4.4.1_A2.3_T3.js | 8 +- .../Promise/all/S25.4.4.1_A3.1_T1.js | 12 +- .../Promise/all/S25.4.4.1_A3.1_T2.js | 14 +- .../Promise/all/S25.4.4.1_A3.1_T3.js | 20 +- .../Promise/all/S25.4.4.1_A4.1_T1.js | 3 +- .../Promise/all/S25.4.4.1_A5.1_T1.js | 20 +- .../Promise/all/S25.4.4.1_A6.1_T1.js | 2 +- .../Promise/all/S25.4.4.1_A6.1_T2.js | 14 +- .../Promise/all/S25.4.4.1_A7.1_T1.js | 26 +- .../Promise/all/S25.4.4.1_A7.2_T1.js | 22 +- .../Promise/all/S25.4.4.1_A8.1_T1.js | 26 +- .../Promise/all/S25.4.4.1_A8.2_T1.js | 20 +- .../Promise/all/S25.4.4.1_A8.2_T2.js | 20 +- .../all/call-resolve-element-after-return.js | 4 +- .../Promise/all/call-resolve-element-items.js | 4 +- .../Promise/all/call-resolve-element.js | 4 +- .../all/capability-executor-called-twice.js | 14 +- .../all/capability-executor-not-callable.js | 4 +- .../all/capability-resolve-throws-no-close.js | 8 +- .../all/capability-resolve-throws-reject.js | 4 +- .../all/does-not-invoke-array-setters.js | 4 +- .../Promise/all/invoke-resolve-error-close.js | 5 +- .../all/invoke-resolve-get-error-close.js | 4 +- .../Promise/all/invoke-then-error-close.js | 5 +- .../all/invoke-then-get-error-close.js | 5 +- .../Promise/all/new-resolve-function.js | 9 +- test/built-ins/Promise/all/reject-deferred.js | 4 +- .../Promise/all/reject-ignored-deferred.js | 8 +- .../all/resolve-before-loop-exit-from-same.js | 4 +- .../Promise/all/resolve-before-loop-exit.js | 4 +- .../resolve-element-function-extensible.js | 7 +- .../all/resolve-element-function-length.js | 7 +- .../all/resolve-element-function-name.js | 7 +- ...resolve-element-function-nonconstructor.js | 11 +- .../all/resolve-element-function-prototype.js | 7 +- .../Promise/all/resolve-from-same-thenable.js | 4 +- .../Promise/all/resolve-poisoned-then.js | 16 +- .../built-ins/Promise/all/resolve-thenable.js | 16 +- .../Promise/all/same-reject-function.js | 9 +- .../Promise/all/species-get-error.js | 2 +- .../Promise/executor-function-extensible.js | 3 +- .../Promise/executor-function-length.js | 3 +- .../Promise/executor-function-name.js | 3 +- .../executor-function-nonconstructor.js | 7 +- .../Promise/executor-function-prototype.js | 3 +- .../Promise/prototype/S25.4.4.2_A1.1_T1.js | 2 +- .../Promise/prototype/S25.4.5_A3.1_T1.js | 3 +- .../prototype/catch/S25.4.5.1_A1.1_T1.js | 2 +- .../prototype/catch/S25.4.5.1_A2.1_T1.js | 2 +- .../prototype/catch/S25.4.5.1_A3.1_T1.js | 13 +- .../prototype/catch/S25.4.5.1_A3.1_T2.js | 13 +- .../catch/this-value-obj-coercible.js | 16 +- .../catch/this-value-then-not-callable.js | 24 +- .../finally/invokes-then-with-function.js | 6 +- .../finally/invokes-then-with-non-function.js | 2 +- .../finally/rejected-observable-then-calls.js | 12 +- .../rejection-reason-override-with-throw.js | 6 +- .../finally/resolution-value-no-override.js | 4 +- .../finally/resolved-observable-then-calls.js | 13 +- .../prototype/finally/species-symbol.js | 8 +- ...bclass-species-constructor-reject-count.js | 4 +- ...class-species-constructor-resolve-count.js | 4 +- .../finally/this-value-non-promise.js | 4 +- .../finally/this-value-then-not-callable.js | 6 +- .../finally/this-value-then-poisoned.js | 2 +- .../finally/this-value-then-throws.js | 2 +- .../Promise/prototype/then/S25.4.4_A1.1_T1.js | 34 +-- .../Promise/prototype/then/S25.4.4_A2.1_T1.js | 20 +- .../Promise/prototype/then/S25.4.4_A2.1_T2.js | 22 +- .../Promise/prototype/then/S25.4.4_A2.1_T3.js | 30 +- .../prototype/then/S25.4.5.3_A1.1_T1.js | 2 +- .../prototype/then/S25.4.5.3_A1.1_T2.js | 8 +- .../prototype/then/S25.4.5.3_A2.1_T1.js | 4 +- .../prototype/then/S25.4.5.3_A2.1_T2.js | 5 +- .../prototype/then/S25.4.5.3_A4.1_T1.js | 10 +- .../prototype/then/S25.4.5.3_A4.1_T2.js | 14 +- .../prototype/then/S25.4.5.3_A4.2_T1.js | 10 +- .../prototype/then/S25.4.5.3_A4.2_T2.js | 12 +- .../prototype/then/S25.4.5.3_A5.1_T1.js | 32 +-- .../prototype/then/S25.4.5.3_A5.2_T1.js | 30 +- .../prototype/then/S25.4.5.3_A5.3_T1.js | 40 +-- .../then/capability-executor-called-twice.js | 16 +- .../then/capability-executor-not-callable.js | 6 +- .../prototype/then/ctor-access-count.js | 20 +- .../Promise/prototype/then/ctor-poisoned.js | 6 +- .../Promise/prototype/then/ctor-throws.js | 8 +- .../Promise/prototype/then/prfm-fulfilled.js | 20 +- .../prototype/then/prfm-pending-fulfulled.js | 20 +- .../prototype/then/prfm-pending-rejected.js | 20 +- .../Promise/prototype/then/prfm-rejected.js | 20 +- .../then/reject-pending-fulfilled.js | 28 +- .../prototype/then/reject-pending-rejected.js | 28 +- .../then/reject-settled-fulfilled.js | 28 +- .../prototype/then/reject-settled-rejected.js | 28 +- .../then/resolve-pending-fulfilled-non-obj.js | 24 +- .../resolve-pending-fulfilled-non-thenable.js | 28 +- ...resolve-pending-fulfilled-poisoned-then.js | 24 +- ...esolve-pending-fulfilled-prms-cstm-then.js | 30 +- .../then/resolve-pending-fulfilled-self.js | 36 +-- .../resolve-pending-fulfilled-thenable.js | 28 +- .../then/resolve-pending-rejected-non-obj.js | 24 +- .../resolve-pending-rejected-non-thenable.js | 28 +- .../resolve-pending-rejected-poisoned-then.js | 24 +- ...resolve-pending-rejected-prms-cstm-then.js | 30 +- .../then/resolve-pending-rejected-self.js | 36 +-- .../then/resolve-pending-rejected-thenable.js | 28 +- .../then/resolve-settled-fulfilled-non-obj.js | 24 +- .../resolve-settled-fulfilled-non-thenable.js | 28 +- ...resolve-settled-fulfilled-poisoned-then.js | 24 +- ...esolve-settled-fulfilled-prms-cstm-then.js | 30 +- .../then/resolve-settled-fulfilled-self.js | 36 +-- .../resolve-settled-fulfilled-thenable.js | 28 +- .../then/resolve-settled-rejected-non-obj.js | 24 +- .../resolve-settled-rejected-non-thenable.js | 28 +- .../resolve-settled-rejected-poisoned-then.js | 24 +- ...resolve-settled-rejected-prms-cstm-then.js | 30 +- .../then/resolve-settled-rejected-self.js | 36 +-- .../then/resolve-settled-rejected-thenable.js | 28 +- .../rxn-handler-fulfilled-invoke-nonstrict.js | 28 +- .../rxn-handler-fulfilled-invoke-strict.js | 28 +- .../then/rxn-handler-fulfilled-next-abrupt.js | 34 +-- .../then/rxn-handler-fulfilled-next.js | 46 +-- .../rxn-handler-fulfilled-return-abrupt.js | 20 +- .../rxn-handler-fulfilled-return-normal.js | 20 +- .../prototype/then/rxn-handler-identity.js | 20 +- .../rxn-handler-rejected-invoke-nonstrict.js | 32 +-- .../rxn-handler-rejected-invoke-strict.js | 32 +-- .../then/rxn-handler-rejected-next-abrupt.js | 34 +-- .../then/rxn-handler-rejected-next.js | 46 +-- .../rxn-handler-rejected-return-abrupt.js | 20 +- .../rxn-handler-rejected-return-normal.js | 20 +- .../prototype/then/rxn-handler-thrower.js | 20 +- .../Promise/race/S25.4.4.3_A1.1_T1.js | 2 +- .../Promise/race/S25.4.4.3_A2.1_T1.js | 2 +- .../Promise/race/S25.4.4.3_A2.2_T1.js | 13 +- .../Promise/race/S25.4.4.3_A2.2_T2.js | 13 +- .../Promise/race/S25.4.4.3_A2.2_T3.js | 19 +- .../Promise/race/S25.4.4.3_A3.1_T1.js | 3 +- .../Promise/race/S25.4.4.3_A3.1_T2.js | 4 +- .../Promise/race/S25.4.4.3_A4.1_T1.js | 23 +- .../Promise/race/S25.4.4.3_A4.1_T2.js | 41 ++- .../Promise/race/S25.4.4.3_A5.1_T1.js | 8 +- .../Promise/race/S25.4.4.3_A6.1_T1.js | 18 +- .../Promise/race/S25.4.4.3_A6.2_T1.js | 24 +- .../Promise/race/S25.4.4.3_A7.1_T1.js | 28 +- .../Promise/race/S25.4.4.3_A7.1_T2.js | 28 +- .../Promise/race/S25.4.4.3_A7.1_T3.js | 30 +- .../Promise/race/S25.4.4.3_A7.2_T1.js | 32 +-- .../Promise/race/S25.4.4.3_A7.3_T1.js | 16 +- .../Promise/race/S25.4.4.3_A7.3_T2.js | 21 +- .../race/capability-executor-called-twice.js | 14 +- .../race/capability-executor-not-callable.js | 4 +- .../race/invoke-resolve-error-close.js | 5 +- .../race/invoke-resolve-get-error-close.js | 4 +- .../Promise/race/invoke-then-error-close.js | 5 +- .../race/invoke-then-get-error-close.js | 5 +- .../built-ins/Promise/race/reject-deferred.js | 4 +- .../Promise/race/reject-ignored-deferred.js | 8 +- .../Promise/race/resolve-prms-cstm-then.js | 4 +- test/built-ins/Promise/race/resolve-self.js | 28 +- .../Promise/race/same-reject-function.js | 9 +- .../Promise/race/same-resolve-function.js | 9 +- .../Promise/race/species-get-error.js | 2 +- .../Promise/reject-function-nonconstructor.js | 4 +- .../Promise/reject-ignored-via-abrupt.js | 8 +- .../Promise/reject-ignored-via-fn-deferred.js | 8 +- .../Promise/reject-ignored-via-fn-immed.js | 8 +- .../Promise/reject-via-abrupt-queue.js | 20 +- test/built-ins/Promise/reject-via-abrupt.js | 16 +- .../Promise/reject-via-fn-deferred-queue.js | 22 +- .../Promise/reject-via-fn-deferred.js | 16 +- .../Promise/reject-via-fn-immed-queue.js | 22 +- test/built-ins/Promise/reject-via-fn-immed.js | 16 +- .../Promise/reject/S25.4.4.4_A1.1_T1.js | 2 +- .../Promise/reject/S25.4.4.4_A2.1_T1.js | 14 +- .../Promise/reject/S25.4.4.4_A3.1_T1.js | 3 +- .../capability-executor-called-twice.js | 14 +- .../capability-executor-not-callable.js | 4 +- .../Promise/reject/capability-invocation.js | 4 +- .../resolve-function-nonconstructor.js | 4 +- .../resolve-ignored-via-fn-deferred.js | 8 +- .../Promise/resolve-ignored-via-fn-immed.js | 8 +- .../Promise/resolve-non-obj-deferred.js | 16 +- .../Promise/resolve-non-obj-immed.js | 16 +- .../Promise/resolve-non-thenable-deferred.js | 20 +- .../Promise/resolve-non-thenable-immed.js | 20 +- .../Promise/resolve-poisoned-then-deferred.js | 16 +- .../Promise/resolve-poisoned-then-immed.js | 16 +- .../resolve-prms-cstm-then-deferred.js | 20 +- .../Promise/resolve-prms-cstm-then-immed.js | 30 +- test/built-ins/Promise/resolve-self.js | 24 +- .../Promise/resolve-thenable-deferred.js | 20 +- .../Promise/resolve-thenable-immed.js | 20 +- .../Promise/resolve/S25.4.4.5_A1.1_T1.js | 2 +- .../Promise/resolve/S25.4.4.5_A2.1_T1.js | 4 +- .../Promise/resolve/S25.4.4.5_A2.2_T1.js | 18 +- .../Promise/resolve/S25.4.4.5_A2.3_T1.js | 22 +- .../Promise/resolve/S25.4.4.5_A3.1_T1.js | 30 +- .../Promise/resolve/S25.4.4.5_A4.1_T1.js | 16 +- .../S25.Promise_resolve_foreign_thenable_1.js | 10 +- .../S25.Promise_resolve_foreign_thenable_2.js | 20 +- .../capability-executor-called-twice.js | 14 +- .../capability-executor-not-callable.js | 4 +- .../context-non-object-with-promise.js | 2 +- .../resolve-from-promise-capability.js | 4 +- .../Promise/resolve/resolve-non-obj.js | 16 +- .../Promise/resolve/resolve-non-thenable.js | 16 +- .../Promise/resolve/resolve-poisoned-then.js | 16 +- .../Promise/resolve/resolve-prms-cstm-then.js | 12 +- .../Promise/resolve/resolve-thenable.js | 16 +- test/built-ins/Proxy/apply/call-parameters.js | 16 +- test/built-ins/Proxy/apply/call-result.js | 10 +- test/built-ins/Proxy/apply/null-handler.js | 2 +- test/built-ins/Proxy/apply/return-abrupt.js | 12 +- .../Proxy/apply/trap-is-not-callable.js | 4 +- test/built-ins/Proxy/apply/trap-is-null.js | 4 +- .../apply/trap-is-undefined-no-property.js | 6 +- .../Proxy/apply/trap-is-undefined.js | 4 +- .../construct/call-parameters-new-target.js | 29 +- .../Proxy/construct/call-parameters.js | 15 +- test/built-ins/Proxy/construct/call-result.js | 10 +- .../built-ins/Proxy/construct/null-handler.js | 2 +- .../Proxy/construct/return-is-abrupt.js | 8 +- .../return-not-object-throws-boolean.js | 10 +- .../return-not-object-throws-number.js | 10 +- .../return-not-object-throws-string.js | 10 +- .../return-not-object-throws-symbol.js | 10 +- .../return-not-object-throws-undefined.js | 10 +- .../Proxy/construct/trap-is-not-callable.js | 4 +- .../built-ins/Proxy/construct/trap-is-null.js | 13 +- .../trap-is-undefined-no-property.js | 9 +- .../Proxy/construct/trap-is-undefined.js | 13 +- .../Proxy/create-handler-is-revoked-proxy.js | 2 +- ...create-handler-not-object-throw-boolean.js | 2 +- .../create-handler-not-object-throw-null.js | 2 +- .../create-handler-not-object-throw-number.js | 2 +- .../create-handler-not-object-throw-string.js | 2 +- .../create-handler-not-object-throw-symbol.js | 2 +- ...eate-handler-not-object-throw-undefined.js | 2 +- .../Proxy/create-target-is-not-callable.js | 2 +- .../Proxy/create-target-is-not-constructor.js | 2 +- .../Proxy/create-target-is-revoked-proxy.js | 2 +- .../create-target-not-object-throw-boolean.js | 2 +- .../create-target-not-object-throw-null.js | 2 +- .../create-target-not-object-throw-number.js | 2 +- .../create-target-not-object-throw-string.js | 2 +- .../create-target-not-object-throw-symbol.js | 2 +- ...reate-target-not-object-throw-undefined.js | 2 +- .../Proxy/defineProperty/call-parameters.js | 26 +- .../Proxy/defineProperty/null-handler.js | 8 +- .../return-boolean-and-define-target.js | 22 +- .../Proxy/defineProperty/return-is-abrupt.js | 8 +- ...desc-configurable-desc-not-configurable.js | 18 +- ...ible-descriptor-not-configurable-target.js | 18 +- .../targetdesc-not-compatible-descriptor.js | 14 +- ...c-undefined-not-configurable-descriptor.js | 12 +- ...desc-undefined-target-is-not-extensible.js | 8 +- .../defineProperty/trap-is-not-callable.js | 8 +- .../Proxy/defineProperty/trap-is-undefined.js | 16 +- .../defineProperty/trap-return-is-false.js | 10 +- .../boolean-trap-result-boolean-false.js | 22 +- .../boolean-trap-result-boolean-true.js | 6 +- .../Proxy/deleteProperty/call-parameters.js | 14 +- .../Proxy/deleteProperty/null-handler.js | 4 +- .../deleteProperty/return-false-not-strict.js | 6 +- .../deleteProperty/return-false-strict.js | 6 +- .../Proxy/deleteProperty/return-is-abrupt.js | 8 +- .../targetdesc-is-not-configurable.js | 12 +- .../targetdesc-is-undefined-return-true.js | 6 +- .../deleteProperty/trap-is-not-callable.js | 4 +- .../trap-is-undefined-not-strict.js | 12 +- .../trap-is-undefined-strict.js | 12 +- test/built-ins/Proxy/function-prototype.js | 6 +- test/built-ins/Proxy/get-fn-realm.js | 4 +- .../get/accessor-get-is-undefined-throws.js | 14 +- test/built-ins/Proxy/get/call-parameters.js | 18 +- ...onfigurable-false-writable-false-throws.js | 16 +- test/built-ins/Proxy/get/null-handler.js | 4 +- test/built-ins/Proxy/get/return-is-abrupt.js | 10 +- .../return-trap-result-accessor-property.js | 12 +- ...result-configurable-false-writable-true.js | 12 +- ...onfigurable-true-assessor-get-undefined.js | 10 +- ...result-configurable-true-writable-false.js | 12 +- ...value-configurable-false-writable-false.js | 12 +- .../built-ins/Proxy/get/return-trap-result.js | 8 +- .../Proxy/get/trap-is-not-callable.js | 6 +- .../get/trap-is-undefined-no-property.js | 2 +- .../Proxy/get/trap-is-undefined-receiver.js | 10 +- test/built-ins/Proxy/get/trap-is-undefined.js | 4 +- .../call-parameters.js | 16 +- .../getOwnPropertyDescriptor/null-handler.js | 2 +- ...t-is-undefined-target-is-not-extensible.js | 10 +- ...ndefined-targetdesc-is-not-configurable.js | 14 +- ...lt-is-undefined-targetdesc-is-undefined.js | 12 +- .../result-is-undefined.js | 8 +- ...-type-is-not-object-nor-undefined-realm.js | 4 +- ...result-type-is-not-object-nor-undefined.js | 26 +- .../resultdesc-is-invalid-descriptor.js | 12 +- ...configurable-targetdesc-is-configurable.js | 22 +- ...ot-configurable-targetdesc-is-undefined.js | 20 +- .../resultdesc-return-configurable.js | 12 +- .../resultdesc-return-not-configurable.js | 12 +- .../return-is-abrupt.js | 8 +- .../trap-is-not-callable.js | 4 +- .../trap-is-undefined.js | 4 +- .../extensible-target-return-handlerproto.js | 4 +- .../not-extensible-not-same-proto-throws.js | 6 +- .../Proxy/getPrototypeOf/null-handler.js | 2 +- .../Proxy/getPrototypeOf/return-is-abrupt.js | 2 +- .../getPrototypeOf/trap-is-not-callable.js | 4 +- ...-neither-object-nor-null-throws-boolean.js | 2 +- ...t-neither-object-nor-null-throws-number.js | 2 +- ...t-neither-object-nor-null-throws-string.js | 2 +- ...t-neither-object-nor-null-throws-symbol.js | 2 +- ...either-object-nor-null-throws-undefined.js | 2 +- test/built-ins/Proxy/has/call-in.js | 12 +- .../built-ins/Proxy/has/call-object-create.js | 12 +- test/built-ins/Proxy/has/call-with.js | 16 +- .../Proxy/has/null-handler-using-with.js | 6 +- test/built-ins/Proxy/has/null-handler.js | 2 +- ...-false-target-not-extensible-using-with.js | 16 +- .../has/return-false-target-not-extensible.js | 12 +- ...urn-false-target-prop-exists-using-with.js | 12 +- .../has/return-false-target-prop-exists.js | 8 +- ...-targetdesc-not-configurable-using-with.js | 16 +- ...eturn-false-targetdesc-not-configurable.js | 12 +- .../Proxy/has/return-is-abrupt-in.js | 8 +- .../Proxy/has/return-is-abrupt-with.js | 12 +- ...turn-true-target-prop-exists-using-with.js | 14 +- .../has/return-true-target-prop-exists.js | 8 +- .../return-true-without-same-target-prop.js | 6 +- .../has/trap-is-not-callable-using-with.js | 8 +- .../Proxy/has/trap-is-not-callable.js | 4 +- .../Proxy/has/trap-is-undefined-using-with.js | 6 +- .../Proxy/isExtensible/call-parameters.js | 10 +- .../Proxy/isExtensible/null-handler.js | 2 +- .../Proxy/isExtensible/return-is-abrupt.js | 8 +- .../Proxy/isExtensible/return-is-boolean.js | 12 +- .../return-is-different-from-target.js | 8 +- .../return-same-result-from-target.js | 6 +- .../isExtensible/trap-is-not-callable.js | 4 +- ...l-parameters-object-getownpropertynames.js | 14 +- ...parameters-object-getownpropertysymbols.js | 10 +- .../ownKeys/call-parameters-object-keys.js | 14 +- ...rap-result-absent-not-configurable-keys.js | 10 +- .../ownKeys/extensible-return-trap-result.js | 12 +- .../not-extensible-missing-keys-throws.js | 12 +- .../ownKeys/not-extensible-new-keys-throws.js | 10 +- .../ownKeys/not-extensible-return-keys.js | 10 +- test/built-ins/Proxy/ownKeys/null-handler.js | 2 +- .../return-all-non-configurable-keys.js | 16 +- .../Proxy/ownKeys/return-is-abrupt.js | 8 +- .../return-not-list-object-throws-realm.js | 8 +- .../ownKeys/return-not-list-object-throws.js | 8 +- .../Proxy/ownKeys/return-type-throws-array.js | 4 +- .../ownKeys/trap-is-not-callable-realm.js | 4 +- .../Proxy/ownKeys/trap-is-not-callable.js | 8 +- .../Proxy/ownKeys/trap-is-undefined.js | 4 +- .../preventExtensions/call-parameters.js | 10 +- .../Proxy/preventExtensions/null-handler.js | 2 +- .../Proxy/preventExtensions/return-false.js | 6 +- .../preventExtensions/return-is-abrupt.js | 8 +- .../return-true-target-is-extensible.js | 8 +- .../return-true-target-is-not-extensible.js | 6 +- .../preventExtensions/trap-is-not-callable.js | 4 +- test/built-ins/Proxy/proxy-newtarget.js | 6 +- .../Proxy/proxy-undefined-newtarget.js | 1 - test/built-ins/Proxy/revocable/proxy.js | 8 +- .../revocation-function-nonconstructor.js | 4 +- ...ap-result-is-false-boolean-return-false.js | 6 +- ...-trap-result-is-false-null-return-false.js | 6 +- ...rap-result-is-false-number-return-false.js | 6 +- ...rap-result-is-false-string-return-false.js | 6 +- ...-result-is-false-undefined-return-false.js | 6 +- test/built-ins/Proxy/set/call-parameters.js | 16 +- test/built-ins/Proxy/set/null-handler.js | 4 +- test/built-ins/Proxy/set/return-is-abrupt.js | 10 +- ...cessor-is-configurable-set-is-undefined.js | 10 +- ...t-property-accessor-is-not-configurable.js | 14 +- ...rue-target-property-is-not-configurable.js | 12 +- ...rn-true-target-property-is-not-writable.js | 12 +- ...essor-not-configurable-set-is-undefined.js | 14 +- ...onfigurable-not-writable-not-equal-to-v.js | 16 +- .../Proxy/set/trap-is-not-callable.js | 6 +- .../set/trap-is-undefined-no-property.js | 2 +- .../Proxy/set/trap-is-undefined-receiver.js | 10 +- test/built-ins/Proxy/set/trap-is-undefined.js | 4 +- .../Proxy/setPrototypeOf/call-parameters.js | 18 +- .../Proxy/setPrototypeOf/null-handler.js | 4 +- .../setPrototypeOf/return-abrupt-from-trap.js | 10 +- .../toboolean-trap-result-false.js | 28 +- ...n-trap-result-true-target-is-extensible.js | 24 +- .../trap-is-not-callable-realm.js | 6 +- .../setPrototypeOf/trap-is-not-callable.js | 8 +- test/built-ins/Reflect/apply/call-target.js | 1 + .../apply/return-target-call-result.js | 1 + .../return-with-newtarget-argument.js | 1 + .../return-without-newtarget-argument.js | 1 + .../Reflect/defineProperty/return-boolean.js | 12 +- test/built-ins/Reflect/get/return-value.js | 4 +- .../return-from-accessor-descriptor.js | 3 +- .../return-from-data-descriptor.js | 3 +- .../symbol-property.js | 3 +- .../undefined-own-property.js | 4 +- .../getPrototypeOf/skip-own-properties.js | 5 +- test/built-ins/Reflect/has/return-boolean.js | 4 +- .../Reflect/ownKeys/return-empty-array.js | 4 +- .../ownKeys/return-non-enumerable-keys.js | 2 +- .../Reflect/set/creates-a-data-descriptor.js | 1 - .../set/different-property-descriptors.js | 4 +- .../Reflect/set/receiver-is-not-object.js | 4 +- .../set/set-value-on-accessor-descriptor.js | 1 - .../set/set-value-on-data-descriptor.js | 12 +- test/built-ins/RegExp/S15.10.1_A1_T1.js | 8 +- test/built-ins/RegExp/S15.10.1_A1_T10.js | 8 +- test/built-ins/RegExp/S15.10.1_A1_T11.js | 8 +- test/built-ins/RegExp/S15.10.1_A1_T12.js | 8 +- test/built-ins/RegExp/S15.10.1_A1_T13.js | 8 +- test/built-ins/RegExp/S15.10.1_A1_T14.js | 8 +- test/built-ins/RegExp/S15.10.1_A1_T15.js | 8 +- test/built-ins/RegExp/S15.10.1_A1_T16.js | 8 +- test/built-ins/RegExp/S15.10.1_A1_T2.js | 8 +- test/built-ins/RegExp/S15.10.1_A1_T3.js | 8 +- test/built-ins/RegExp/S15.10.1_A1_T4.js | 8 +- test/built-ins/RegExp/S15.10.1_A1_T5.js | 8 +- test/built-ins/RegExp/S15.10.1_A1_T6.js | 8 +- test/built-ins/RegExp/S15.10.1_A1_T7.js | 8 +- test/built-ins/RegExp/S15.10.1_A1_T8.js | 8 +- test/built-ins/RegExp/S15.10.1_A1_T9.js | 8 +- test/built-ins/RegExp/S15.10.2.10_A2.1_T1.js | 4 +- test/built-ins/RegExp/S15.10.2.10_A2.1_T2.js | 4 +- test/built-ins/RegExp/S15.10.2.10_A3.1_T1.js | 8 +- test/built-ins/RegExp/S15.10.2.10_A3.1_T2.js | 6 +- test/built-ins/RegExp/S15.10.2.10_A4.1_T1.js | 12 +- test/built-ins/RegExp/S15.10.2.10_A4.1_T2.js | 6 +- test/built-ins/RegExp/S15.10.2.10_A4.1_T3.js | 6 +- test/built-ins/RegExp/S15.10.2.11_A1_T1.js | 4 +- test/built-ins/RegExp/S15.10.2.12_A1_T1.js | 4 +- test/built-ins/RegExp/S15.10.2.12_A1_T2.js | 4 +- test/built-ins/RegExp/S15.10.2.12_A1_T3.js | 6 +- test/built-ins/RegExp/S15.10.2.12_A1_T4.js | 4 +- test/built-ins/RegExp/S15.10.2.12_A1_T5.js | 6 +- test/built-ins/RegExp/S15.10.2.12_A2_T1.js | 4 +- test/built-ins/RegExp/S15.10.2.12_A2_T2.js | 4 +- test/built-ins/RegExp/S15.10.2.12_A2_T3.js | 8 +- test/built-ins/RegExp/S15.10.2.12_A2_T4.js | 8 +- test/built-ins/RegExp/S15.10.2.12_A2_T5.js | 8 +- test/built-ins/RegExp/S15.10.2.12_A3_T2.js | 4 +- test/built-ins/RegExp/S15.10.2.12_A3_T3.js | 6 +- test/built-ins/RegExp/S15.10.2.12_A3_T4.js | 4 +- test/built-ins/RegExp/S15.10.2.12_A3_T5.js | 6 +- test/built-ins/RegExp/S15.10.2.12_A4_T2.js | 2 +- test/built-ins/RegExp/S15.10.2.12_A4_T3.js | 4 +- test/built-ins/RegExp/S15.10.2.12_A4_T4.js | 8 +- test/built-ins/RegExp/S15.10.2.12_A4_T5.js | 6 +- test/built-ins/RegExp/S15.10.2.12_A5_T2.js | 6 +- test/built-ins/RegExp/S15.10.2.12_A5_T3.js | 4 +- test/built-ins/RegExp/S15.10.2.12_A5_T4.js | 6 +- test/built-ins/RegExp/S15.10.2.12_A6_T2.js | 10 +- test/built-ins/RegExp/S15.10.2.12_A6_T3.js | 8 +- test/built-ins/RegExp/S15.10.2.12_A6_T4.js | 6 +- test/built-ins/RegExp/S15.10.2.13_A1_T1.js | 4 +- test/built-ins/RegExp/S15.10.2.13_A1_T10.js | 14 +- test/built-ins/RegExp/S15.10.2.13_A1_T11.js | 14 +- test/built-ins/RegExp/S15.10.2.13_A1_T12.js | 14 +- test/built-ins/RegExp/S15.10.2.13_A1_T13.js | 14 +- test/built-ins/RegExp/S15.10.2.13_A1_T14.js | 14 +- test/built-ins/RegExp/S15.10.2.13_A1_T15.js | 14 +- test/built-ins/RegExp/S15.10.2.13_A1_T17.js | 2 +- test/built-ins/RegExp/S15.10.2.13_A1_T2.js | 2 +- test/built-ins/RegExp/S15.10.2.13_A1_T3.js | 14 +- test/built-ins/RegExp/S15.10.2.13_A1_T4.js | 14 +- test/built-ins/RegExp/S15.10.2.13_A1_T5.js | 14 +- test/built-ins/RegExp/S15.10.2.13_A1_T6.js | 14 +- test/built-ins/RegExp/S15.10.2.13_A1_T7.js | 2 +- test/built-ins/RegExp/S15.10.2.13_A1_T8.js | 14 +- test/built-ins/RegExp/S15.10.2.13_A1_T9.js | 14 +- test/built-ins/RegExp/S15.10.2.13_A2_T1.js | 14 +- test/built-ins/RegExp/S15.10.2.13_A2_T2.js | 14 +- test/built-ins/RegExp/S15.10.2.13_A2_T3.js | 14 +- test/built-ins/RegExp/S15.10.2.13_A2_T4.js | 14 +- test/built-ins/RegExp/S15.10.2.13_A2_T5.js | 14 +- test/built-ins/RegExp/S15.10.2.13_A2_T6.js | 2 +- test/built-ins/RegExp/S15.10.2.13_A2_T7.js | 14 +- test/built-ins/RegExp/S15.10.2.13_A2_T8.js | 14 +- test/built-ins/RegExp/S15.10.2.13_A3_T1.js | 14 +- test/built-ins/RegExp/S15.10.2.13_A3_T2.js | 14 +- test/built-ins/RegExp/S15.10.2.13_A3_T3.js | 14 +- test/built-ins/RegExp/S15.10.2.13_A3_T4.js | 14 +- test/built-ins/RegExp/S15.10.2.15_A1_T1.js | 2 +- test/built-ins/RegExp/S15.10.2.15_A1_T10.js | 2 +- test/built-ins/RegExp/S15.10.2.15_A1_T11.js | 2 +- test/built-ins/RegExp/S15.10.2.15_A1_T12.js | 2 +- test/built-ins/RegExp/S15.10.2.15_A1_T13.js | 2 +- test/built-ins/RegExp/S15.10.2.15_A1_T14.js | 2 +- test/built-ins/RegExp/S15.10.2.15_A1_T15.js | 2 +- test/built-ins/RegExp/S15.10.2.15_A1_T16.js | 2 +- test/built-ins/RegExp/S15.10.2.15_A1_T17.js | 2 +- test/built-ins/RegExp/S15.10.2.15_A1_T18.js | 2 +- test/built-ins/RegExp/S15.10.2.15_A1_T19.js | 2 +- test/built-ins/RegExp/S15.10.2.15_A1_T2.js | 2 +- test/built-ins/RegExp/S15.10.2.15_A1_T20.js | 2 +- test/built-ins/RegExp/S15.10.2.15_A1_T21.js | 2 +- test/built-ins/RegExp/S15.10.2.15_A1_T22.js | 2 +- test/built-ins/RegExp/S15.10.2.15_A1_T23.js | 2 +- test/built-ins/RegExp/S15.10.2.15_A1_T24.js | 2 +- test/built-ins/RegExp/S15.10.2.15_A1_T25.js | 2 +- test/built-ins/RegExp/S15.10.2.15_A1_T26.js | 2 +- test/built-ins/RegExp/S15.10.2.15_A1_T27.js | 2 +- test/built-ins/RegExp/S15.10.2.15_A1_T28.js | 2 +- test/built-ins/RegExp/S15.10.2.15_A1_T29.js | 2 +- test/built-ins/RegExp/S15.10.2.15_A1_T3.js | 2 +- test/built-ins/RegExp/S15.10.2.15_A1_T30.js | 2 +- test/built-ins/RegExp/S15.10.2.15_A1_T31.js | 2 +- test/built-ins/RegExp/S15.10.2.15_A1_T32.js | 2 +- test/built-ins/RegExp/S15.10.2.15_A1_T33.js | 2 +- test/built-ins/RegExp/S15.10.2.15_A1_T34.js | 2 +- test/built-ins/RegExp/S15.10.2.15_A1_T35.js | 2 +- test/built-ins/RegExp/S15.10.2.15_A1_T36.js | 2 +- test/built-ins/RegExp/S15.10.2.15_A1_T37.js | 2 +- test/built-ins/RegExp/S15.10.2.15_A1_T38.js | 2 +- test/built-ins/RegExp/S15.10.2.15_A1_T39.js | 2 +- test/built-ins/RegExp/S15.10.2.15_A1_T4.js | 2 +- test/built-ins/RegExp/S15.10.2.15_A1_T40.js | 2 +- test/built-ins/RegExp/S15.10.2.15_A1_T41.js | 2 +- test/built-ins/RegExp/S15.10.2.15_A1_T5.js | 2 +- test/built-ins/RegExp/S15.10.2.15_A1_T6.js | 2 +- test/built-ins/RegExp/S15.10.2.15_A1_T7.js | 2 +- test/built-ins/RegExp/S15.10.2.15_A1_T8.js | 2 +- test/built-ins/RegExp/S15.10.2.15_A1_T9.js | 2 +- test/built-ins/RegExp/S15.10.2.3_A1_T1.js | 14 +- test/built-ins/RegExp/S15.10.2.3_A1_T10.js | 14 +- test/built-ins/RegExp/S15.10.2.3_A1_T11.js | 14 +- test/built-ins/RegExp/S15.10.2.3_A1_T12.js | 14 +- test/built-ins/RegExp/S15.10.2.3_A1_T13.js | 16 +- test/built-ins/RegExp/S15.10.2.3_A1_T14.js | 16 +- test/built-ins/RegExp/S15.10.2.3_A1_T15.js | 16 +- test/built-ins/RegExp/S15.10.2.3_A1_T16.js | 16 +- test/built-ins/RegExp/S15.10.2.3_A1_T17.js | 16 +- test/built-ins/RegExp/S15.10.2.3_A1_T2.js | 14 +- test/built-ins/RegExp/S15.10.2.3_A1_T3.js | 14 +- test/built-ins/RegExp/S15.10.2.3_A1_T4.js | 14 +- test/built-ins/RegExp/S15.10.2.3_A1_T5.js | 2 +- test/built-ins/RegExp/S15.10.2.3_A1_T6.js | 14 +- test/built-ins/RegExp/S15.10.2.3_A1_T7.js | 2 +- test/built-ins/RegExp/S15.10.2.3_A1_T8.js | 14 +- test/built-ins/RegExp/S15.10.2.3_A1_T9.js | 14 +- test/built-ins/RegExp/S15.10.2.5_A1_T1.js | 14 +- test/built-ins/RegExp/S15.10.2.5_A1_T2.js | 14 +- test/built-ins/RegExp/S15.10.2.5_A1_T3.js | 14 +- test/built-ins/RegExp/S15.10.2.5_A1_T4.js | 14 +- test/built-ins/RegExp/S15.10.2.5_A1_T5.js | 14 +- test/built-ins/RegExp/S15.10.2.6_A1_T1.js | 2 +- test/built-ins/RegExp/S15.10.2.6_A1_T2.js | 14 +- test/built-ins/RegExp/S15.10.2.6_A1_T3.js | 14 +- test/built-ins/RegExp/S15.10.2.6_A1_T4.js | 14 +- test/built-ins/RegExp/S15.10.2.6_A1_T5.js | 14 +- test/built-ins/RegExp/S15.10.2.6_A2_T1.js | 2 +- test/built-ins/RegExp/S15.10.2.6_A2_T10.js | 14 +- test/built-ins/RegExp/S15.10.2.6_A2_T2.js | 14 +- test/built-ins/RegExp/S15.10.2.6_A2_T3.js | 14 +- test/built-ins/RegExp/S15.10.2.6_A2_T4.js | 14 +- test/built-ins/RegExp/S15.10.2.6_A2_T5.js | 14 +- test/built-ins/RegExp/S15.10.2.6_A2_T6.js | 14 +- test/built-ins/RegExp/S15.10.2.6_A2_T7.js | 2 +- test/built-ins/RegExp/S15.10.2.6_A2_T8.js | 2 +- test/built-ins/RegExp/S15.10.2.6_A2_T9.js | 14 +- test/built-ins/RegExp/S15.10.2.6_A3_T1.js | 14 +- test/built-ins/RegExp/S15.10.2.6_A3_T10.js | 14 +- test/built-ins/RegExp/S15.10.2.6_A3_T11.js | 14 +- test/built-ins/RegExp/S15.10.2.6_A3_T12.js | 14 +- test/built-ins/RegExp/S15.10.2.6_A3_T13.js | 2 +- test/built-ins/RegExp/S15.10.2.6_A3_T14.js | 14 +- test/built-ins/RegExp/S15.10.2.6_A3_T15.js | 2 +- test/built-ins/RegExp/S15.10.2.6_A3_T2.js | 14 +- test/built-ins/RegExp/S15.10.2.6_A3_T3.js | 2 +- test/built-ins/RegExp/S15.10.2.6_A3_T4.js | 14 +- test/built-ins/RegExp/S15.10.2.6_A3_T5.js | 2 +- test/built-ins/RegExp/S15.10.2.6_A3_T6.js | 14 +- test/built-ins/RegExp/S15.10.2.6_A3_T7.js | 14 +- test/built-ins/RegExp/S15.10.2.6_A3_T8.js | 14 +- test/built-ins/RegExp/S15.10.2.6_A3_T9.js | 2 +- test/built-ins/RegExp/S15.10.2.6_A4_T1.js | 14 +- test/built-ins/RegExp/S15.10.2.6_A4_T2.js | 14 +- test/built-ins/RegExp/S15.10.2.6_A4_T3.js | 14 +- test/built-ins/RegExp/S15.10.2.6_A4_T4.js | 14 +- test/built-ins/RegExp/S15.10.2.6_A4_T5.js | 14 +- test/built-ins/RegExp/S15.10.2.6_A4_T6.js | 14 +- test/built-ins/RegExp/S15.10.2.6_A4_T7.js | 14 +- test/built-ins/RegExp/S15.10.2.6_A4_T8.js | 14 +- test/built-ins/RegExp/S15.10.2.6_A5_T1.js | 14 +- test/built-ins/RegExp/S15.10.2.6_A5_T2.js | 14 +- test/built-ins/RegExp/S15.10.2.6_A6_T1.js | 14 +- test/built-ins/RegExp/S15.10.2.6_A6_T2.js | 14 +- test/built-ins/RegExp/S15.10.2.6_A6_T3.js | 14 +- test/built-ins/RegExp/S15.10.2.6_A6_T4.js | 14 +- test/built-ins/RegExp/S15.10.2.7_A1_T1.js | 14 +- test/built-ins/RegExp/S15.10.2.7_A1_T10.js | 14 +- test/built-ins/RegExp/S15.10.2.7_A1_T11.js | 14 +- test/built-ins/RegExp/S15.10.2.7_A1_T12.js | 14 +- test/built-ins/RegExp/S15.10.2.7_A1_T2.js | 2 +- test/built-ins/RegExp/S15.10.2.7_A1_T3.js | 14 +- test/built-ins/RegExp/S15.10.2.7_A1_T4.js | 14 +- test/built-ins/RegExp/S15.10.2.7_A1_T5.js | 14 +- test/built-ins/RegExp/S15.10.2.7_A1_T6.js | 14 +- test/built-ins/RegExp/S15.10.2.7_A1_T7.js | 14 +- test/built-ins/RegExp/S15.10.2.7_A1_T8.js | 14 +- test/built-ins/RegExp/S15.10.2.7_A1_T9.js | 2 +- test/built-ins/RegExp/S15.10.2.7_A2_T1.js | 14 +- test/built-ins/RegExp/S15.10.2.7_A2_T2.js | 14 +- test/built-ins/RegExp/S15.10.2.7_A2_T3.js | 14 +- test/built-ins/RegExp/S15.10.2.7_A2_T4.js | 2 +- test/built-ins/RegExp/S15.10.2.7_A3_T1.js | 14 +- test/built-ins/RegExp/S15.10.2.7_A3_T10.js | 2 +- test/built-ins/RegExp/S15.10.2.7_A3_T11.js | 14 +- test/built-ins/RegExp/S15.10.2.7_A3_T12.js | 16 +- test/built-ins/RegExp/S15.10.2.7_A3_T13.js | 16 +- test/built-ins/RegExp/S15.10.2.7_A3_T14.js | 14 +- test/built-ins/RegExp/S15.10.2.7_A3_T2.js | 14 +- test/built-ins/RegExp/S15.10.2.7_A3_T3.js | 2 +- test/built-ins/RegExp/S15.10.2.7_A3_T4.js | 2 +- test/built-ins/RegExp/S15.10.2.7_A3_T5.js | 14 +- test/built-ins/RegExp/S15.10.2.7_A3_T6.js | 14 +- test/built-ins/RegExp/S15.10.2.7_A3_T7.js | 16 +- test/built-ins/RegExp/S15.10.2.7_A3_T8.js | 16 +- test/built-ins/RegExp/S15.10.2.7_A3_T9.js | 14 +- test/built-ins/RegExp/S15.10.2.7_A4_T1.js | 14 +- test/built-ins/RegExp/S15.10.2.7_A4_T10.js | 14 +- test/built-ins/RegExp/S15.10.2.7_A4_T11.js | 14 +- test/built-ins/RegExp/S15.10.2.7_A4_T12.js | 14 +- test/built-ins/RegExp/S15.10.2.7_A4_T13.js | 16 +- test/built-ins/RegExp/S15.10.2.7_A4_T14.js | 16 +- test/built-ins/RegExp/S15.10.2.7_A4_T15.js | 16 +- test/built-ins/RegExp/S15.10.2.7_A4_T16.js | 16 +- test/built-ins/RegExp/S15.10.2.7_A4_T17.js | 14 +- test/built-ins/RegExp/S15.10.2.7_A4_T18.js | 14 +- test/built-ins/RegExp/S15.10.2.7_A4_T19.js | 14 +- test/built-ins/RegExp/S15.10.2.7_A4_T2.js | 14 +- test/built-ins/RegExp/S15.10.2.7_A4_T20.js | 14 +- test/built-ins/RegExp/S15.10.2.7_A4_T21.js | 2 +- test/built-ins/RegExp/S15.10.2.7_A4_T3.js | 14 +- test/built-ins/RegExp/S15.10.2.7_A4_T4.js | 14 +- test/built-ins/RegExp/S15.10.2.7_A4_T5.js | 14 +- test/built-ins/RegExp/S15.10.2.7_A4_T6.js | 14 +- test/built-ins/RegExp/S15.10.2.7_A4_T7.js | 14 +- test/built-ins/RegExp/S15.10.2.7_A4_T8.js | 2 +- test/built-ins/RegExp/S15.10.2.7_A4_T9.js | 14 +- test/built-ins/RegExp/S15.10.2.7_A5_T1.js | 14 +- test/built-ins/RegExp/S15.10.2.7_A5_T10.js | 14 +- test/built-ins/RegExp/S15.10.2.7_A5_T11.js | 14 +- test/built-ins/RegExp/S15.10.2.7_A5_T12.js | 14 +- test/built-ins/RegExp/S15.10.2.7_A5_T2.js | 14 +- test/built-ins/RegExp/S15.10.2.7_A5_T3.js | 2 +- test/built-ins/RegExp/S15.10.2.7_A5_T4.js | 14 +- test/built-ins/RegExp/S15.10.2.7_A5_T5.js | 14 +- test/built-ins/RegExp/S15.10.2.7_A5_T6.js | 14 +- test/built-ins/RegExp/S15.10.2.7_A5_T7.js | 14 +- test/built-ins/RegExp/S15.10.2.7_A5_T8.js | 14 +- test/built-ins/RegExp/S15.10.2.7_A5_T9.js | 14 +- test/built-ins/RegExp/S15.10.2.7_A6_T1.js | 14 +- test/built-ins/RegExp/S15.10.2.7_A6_T2.js | 2 +- test/built-ins/RegExp/S15.10.2.7_A6_T3.js | 14 +- test/built-ins/RegExp/S15.10.2.7_A6_T4.js | 16 +- test/built-ins/RegExp/S15.10.2.7_A6_T5.js | 16 +- test/built-ins/RegExp/S15.10.2.7_A6_T6.js | 14 +- test/built-ins/RegExp/S15.10.2.8_A1_T1.js | 14 +- test/built-ins/RegExp/S15.10.2.8_A1_T2.js | 14 +- test/built-ins/RegExp/S15.10.2.8_A1_T3.js | 14 +- test/built-ins/RegExp/S15.10.2.8_A1_T4.js | 14 +- test/built-ins/RegExp/S15.10.2.8_A1_T5.js | 2 +- test/built-ins/RegExp/S15.10.2.8_A2_T1.js | 14 +- test/built-ins/RegExp/S15.10.2.8_A2_T10.js | 14 +- test/built-ins/RegExp/S15.10.2.8_A2_T11.js | 14 +- test/built-ins/RegExp/S15.10.2.8_A2_T2.js | 14 +- test/built-ins/RegExp/S15.10.2.8_A2_T3.js | 2 +- test/built-ins/RegExp/S15.10.2.8_A2_T4.js | 2 +- test/built-ins/RegExp/S15.10.2.8_A2_T5.js | 14 +- test/built-ins/RegExp/S15.10.2.8_A2_T6.js | 14 +- test/built-ins/RegExp/S15.10.2.8_A2_T7.js | 14 +- test/built-ins/RegExp/S15.10.2.8_A2_T8.js | 2 +- test/built-ins/RegExp/S15.10.2.8_A2_T9.js | 14 +- test/built-ins/RegExp/S15.10.2.8_A3_T1.js | 16 +- test/built-ins/RegExp/S15.10.2.8_A3_T10.js | 16 +- test/built-ins/RegExp/S15.10.2.8_A3_T11.js | 16 +- test/built-ins/RegExp/S15.10.2.8_A3_T12.js | 16 +- test/built-ins/RegExp/S15.10.2.8_A3_T13.js | 16 +- test/built-ins/RegExp/S15.10.2.8_A3_T14.js | 16 +- test/built-ins/RegExp/S15.10.2.8_A3_T15.js | 32 +-- test/built-ins/RegExp/S15.10.2.8_A3_T16.js | 28 +- test/built-ins/RegExp/S15.10.2.8_A3_T17.js | 18 +- test/built-ins/RegExp/S15.10.2.8_A3_T18.js | 2 +- test/built-ins/RegExp/S15.10.2.8_A3_T19.js | 16 +- test/built-ins/RegExp/S15.10.2.8_A3_T2.js | 16 +- test/built-ins/RegExp/S15.10.2.8_A3_T20.js | 16 +- test/built-ins/RegExp/S15.10.2.8_A3_T21.js | 16 +- test/built-ins/RegExp/S15.10.2.8_A3_T22.js | 16 +- test/built-ins/RegExp/S15.10.2.8_A3_T23.js | 16 +- test/built-ins/RegExp/S15.10.2.8_A3_T24.js | 16 +- test/built-ins/RegExp/S15.10.2.8_A3_T25.js | 16 +- test/built-ins/RegExp/S15.10.2.8_A3_T26.js | 16 +- test/built-ins/RegExp/S15.10.2.8_A3_T27.js | 16 +- test/built-ins/RegExp/S15.10.2.8_A3_T28.js | 14 +- test/built-ins/RegExp/S15.10.2.8_A3_T29.js | 14 +- test/built-ins/RegExp/S15.10.2.8_A3_T3.js | 2 +- test/built-ins/RegExp/S15.10.2.8_A3_T30.js | 14 +- test/built-ins/RegExp/S15.10.2.8_A3_T31.js | 14 +- test/built-ins/RegExp/S15.10.2.8_A3_T32.js | 14 +- test/built-ins/RegExp/S15.10.2.8_A3_T33.js | 14 +- test/built-ins/RegExp/S15.10.2.8_A3_T4.js | 16 +- test/built-ins/RegExp/S15.10.2.8_A3_T5.js | 16 +- test/built-ins/RegExp/S15.10.2.8_A3_T6.js | 16 +- test/built-ins/RegExp/S15.10.2.8_A3_T7.js | 16 +- test/built-ins/RegExp/S15.10.2.8_A3_T8.js | 16 +- test/built-ins/RegExp/S15.10.2.8_A3_T9.js | 16 +- test/built-ins/RegExp/S15.10.2.8_A4_T1.js | 14 +- test/built-ins/RegExp/S15.10.2.8_A4_T2.js | 14 +- test/built-ins/RegExp/S15.10.2.8_A4_T3.js | 14 +- test/built-ins/RegExp/S15.10.2.8_A4_T4.js | 14 +- test/built-ins/RegExp/S15.10.2.8_A4_T5.js | 14 +- test/built-ins/RegExp/S15.10.2.8_A4_T6.js | 14 +- test/built-ins/RegExp/S15.10.2.8_A4_T7.js | 14 +- test/built-ins/RegExp/S15.10.2.8_A4_T8.js | 14 +- test/built-ins/RegExp/S15.10.2.8_A4_T9.js | 14 +- test/built-ins/RegExp/S15.10.2.8_A5_T1.js | 14 +- test/built-ins/RegExp/S15.10.2.8_A5_T2.js | 14 +- test/built-ins/RegExp/S15.10.2.9_A1_T1.js | 14 +- test/built-ins/RegExp/S15.10.2.9_A1_T2.js | 14 +- test/built-ins/RegExp/S15.10.2.9_A1_T3.js | 14 +- test/built-ins/RegExp/S15.10.2.9_A1_T5.js | 14 +- test/built-ins/RegExp/S15.10.2_A1_T1.js | 59 ++-- test/built-ins/RegExp/S15.10.3.1_A1_T1.js | 2 +- test/built-ins/RegExp/S15.10.3.1_A1_T2.js | 4 +- test/built-ins/RegExp/S15.10.3.1_A1_T3.js | 2 +- test/built-ins/RegExp/S15.10.3.1_A1_T4.js | 2 +- test/built-ins/RegExp/S15.10.3.1_A1_T5.js | 2 +- test/built-ins/RegExp/S15.10.3.1_A2_T1.js | 8 +- test/built-ins/RegExp/S15.10.3.1_A2_T2.js | 8 +- test/built-ins/RegExp/S15.10.3.1_A3_T1.js | 4 +- test/built-ins/RegExp/S15.10.3.1_A3_T2.js | 10 +- test/built-ins/RegExp/S15.10.4.1_A1_T1.js | 4 +- test/built-ins/RegExp/S15.10.4.1_A1_T2.js | 2 +- test/built-ins/RegExp/S15.10.4.1_A1_T3.js | 2 +- test/built-ins/RegExp/S15.10.4.1_A1_T4.js | 2 +- test/built-ins/RegExp/S15.10.4.1_A1_T5.js | 6 +- test/built-ins/RegExp/S15.10.4.1_A3_T5.js | 2 +- test/built-ins/RegExp/S15.10.4.1_A4_T1.js | 2 +- test/built-ins/RegExp/S15.10.4.1_A4_T4.js | 2 +- test/built-ins/RegExp/S15.10.4.1_A4_T5.js | 2 +- test/built-ins/RegExp/S15.10.4.1_A5_T1.js | 8 +- test/built-ins/RegExp/S15.10.4.1_A5_T3.js | 8 +- test/built-ins/RegExp/S15.10.4.1_A5_T4.js | 8 +- test/built-ins/RegExp/S15.10.4.1_A5_T6.js | 8 +- test/built-ins/RegExp/S15.10.4.1_A5_T7.js | 8 +- test/built-ins/RegExp/S15.10.4.1_A5_T8.js | 8 +- test/built-ins/RegExp/S15.10.4.1_A5_T9.js | 10 +- test/built-ins/RegExp/S15.10.4.1_A6_T1.js | 4 +- test/built-ins/RegExp/S15.10.4.1_A7_T1.js | 2 +- test/built-ins/RegExp/S15.10.4.1_A7_T2.js | 2 +- test/built-ins/RegExp/S15.10.4.1_A8_T1.js | 12 +- test/built-ins/RegExp/S15.10.4.1_A8_T10.js | 12 +- test/built-ins/RegExp/S15.10.4.1_A8_T11.js | 12 +- test/built-ins/RegExp/S15.10.4.1_A8_T12.js | 13 +- test/built-ins/RegExp/S15.10.4.1_A8_T13.js | 12 +- test/built-ins/RegExp/S15.10.4.1_A8_T2.js | 14 +- test/built-ins/RegExp/S15.10.4.1_A8_T3.js | 18 +- test/built-ins/RegExp/S15.10.4.1_A8_T4.js | 22 +- test/built-ins/RegExp/S15.10.4.1_A8_T5.js | 16 +- test/built-ins/RegExp/S15.10.4.1_A8_T6.js | 12 +- test/built-ins/RegExp/S15.10.4.1_A8_T7.js | 13 +- test/built-ins/RegExp/S15.10.4.1_A8_T8.js | 12 +- test/built-ins/RegExp/S15.10.4.1_A8_T9.js | 10 +- test/built-ins/RegExp/S15.10.4.1_A9_T1.js | 8 +- test/built-ins/RegExp/S15.10.4.1_A9_T2.js | 8 +- test/built-ins/RegExp/S15.10.4.1_A9_T3.js | 8 +- test/built-ins/RegExp/S15.10.5_A1.js | 2 +- test/built-ins/RegExp/S15.10.5_A2_T1.js | 2 +- test/built-ins/RegExp/S15.10.5_A2_T2.js | 4 +- test/built-ins/RegExp/S15.10.7_A1_T1.js | 8 +- test/built-ins/RegExp/S15.10.7_A1_T2.js | 2 +- test/built-ins/RegExp/S15.10.7_A2_T1.js | 2 +- test/built-ins/RegExp/S15.10.7_A3_T1.js | 6 +- test/built-ins/RegExp/S15.10.7_A3_T2.js | 6 +- .../RegExp/from-regexp-like-get-source-err.js | 1 + .../RegExp/lookBehind/back-references.js | 1 - .../named-groups/functional-replace-global.js | 51 ++-- .../functional-replace-non-global.js | 26 +- .../groups-object-subclass-sans.js | 4 +- .../named-groups/groups-object-subclass.js | 4 +- .../named-groups/groups-object-undefined.js | 4 +- .../named-groups/groups-object-unmatched.js | 6 +- .../RegExp/named-groups/groups-object.js | 8 +- .../RegExp/named-groups/groups-properties.js | 10 +- .../RegExp/named-groups/lookbehind.js | 4 +- .../RegExp/named-groups/non-unicode-match.js | 8 +- .../non-unicode-property-names.js | 4 +- .../named-groups/non-unicode-references.js | 5 +- .../named-groups/string-replace-nocaptures.js | 1 - .../named-groups/string-replace-numbered.js | 1 - .../RegExp/named-groups/unicode-malformed.js | 1 - .../RegExp/named-groups/unicode-match.js | 16 +- .../named-groups/unicode-property-names.js | 4 +- .../RegExp/named-groups/unicode-references.js | 5 +- .../RegExp/property-escapes/generated/Any.js | 3 +- test/built-ins/RegExp/prototype/15.10.6.js | 2 +- .../RegExp/prototype/S15.10.5.1_A1.js | 2 +- .../RegExp/prototype/S15.10.5.1_A2.js | 16 +- .../RegExp/prototype/S15.10.5.1_A3.js | 4 +- .../RegExp/prototype/S15.10.5.1_A4.js | 8 +- .../RegExp/prototype/S15.10.6.1_A1_T1.js | 2 +- .../RegExp/prototype/S15.10.6.1_A1_T2.js | 4 +- .../RegExp/prototype/S15.10.6_A1_T1.js | 2 +- .../RegExp/prototype/S15.10.6_A1_T2.js | 2 +- .../builtin-failure-g-set-lastindex-err.js | 4 +- .../builtin-failure-y-return-val.js | 2 +- .../builtin-failure-y-set-lastindex-err.js | 4 +- .../Symbol.match/builtin-infer-unicode.js | 8 +- .../builtin-success-g-set-lastindex-err.js | 4 +- .../builtin-success-g-set-lastindex.js | 4 +- .../builtin-success-return-val-groups.js | 2 +- .../builtin-success-return-val.js | 2 +- .../builtin-success-u-return-val-groups.js | 2 +- .../builtin-success-y-set-lastindex-err.js | 4 +- .../prototype/Symbol.match/coerce-arg-err.js | 2 +- .../prototype/Symbol.match/coerce-arg.js | 2 +- .../prototype/Symbol.match/coerce-global.js | 8 +- .../prototype/Symbol.match/g-get-exec-err.js | 4 +- .../Symbol.match/g-init-lastindex-err.js | 4 +- .../g-match-empty-advance-lastindex.js | 2 +- .../g-match-empty-set-lastindex-err.js | 4 +- .../Symbol.match/g-match-no-set-lastindex.js | 4 +- .../Symbol.match/g-success-return-val.js | 2 +- .../prototype/Symbol.match/g-zero-matches.js | 2 +- .../Symbol.match/u-advance-after-empty.js | 2 +- .../Symbol.match/y-fail-global-return.js | 2 +- .../prototype/Symbol.match/y-fail-return.js | 2 +- .../Symbol.replace/arg-1-coerce-err.js | 2 +- .../prototype/Symbol.replace/arg-1-coerce.js | 2 +- .../Symbol.replace/arg-2-coerce-err.js | 2 +- .../prototype/Symbol.replace/arg-2-coerce.js | 2 +- .../prototype/Symbol.replace/coerce-global.js | 8 +- .../Symbol.replace/coerce-unicode.js | 4 +- .../fn-coerce-replacement-err.js | 2 +- .../Symbol.replace/fn-coerce-replacement.js | 2 +- .../RegExp/prototype/Symbol.replace/fn-err.js | 2 +- .../Symbol.replace/fn-invoke-args.js | 2 +- .../fn-invoke-this-no-strict.js | 2 +- .../Symbol.replace/fn-invoke-this-strict.js | 2 +- .../Symbol.replace/g-init-lastindex-err.js | 4 +- .../Symbol.replace/g-pos-decrement.js | 12 +- .../Symbol.replace/g-pos-increment.js | 12 +- .../prototype/Symbol.replace/get-exec-err.js | 4 +- .../prototype/Symbol.replace/match-failure.js | 2 +- .../Symbol.replace/replace-with-trailing.js | 12 +- .../replace-without-trailing.js | 8 +- .../prototype/Symbol.replace/subst-after.js | 4 +- .../prototype/Symbol.replace/subst-before.js | 4 +- .../Symbol.replace/subst-capture-idx-1.js | 4 +- .../Symbol.replace/subst-capture-idx-2.js | 4 +- .../prototype/Symbol.replace/subst-dollar.js | 8 +- .../prototype/Symbol.replace/subst-matched.js | 2 +- .../Symbol.replace/u-advance-after-empty.js | 2 +- .../Symbol.replace/y-fail-global-return.js | 2 +- .../prototype/Symbol.replace/y-fail-return.js | 2 +- .../Symbol.search/coerce-string-err.js | 4 +- .../prototype/Symbol.search/coerce-string.js | 2 +- .../Symbol.search/cstm-exec-return-index.js | 4 +- .../Symbol.search/failure-return-val.js | 2 +- .../set-lastindex-restore-err.js | 8 +- .../Symbol.search/success-return-val.js | 6 +- .../Symbol.search/u-lastindex-advance.js | 2 +- .../prototype/Symbol.search/y-fail-return.js | 2 +- .../Symbol.split/coerce-limit-err.js | 4 +- .../prototype/Symbol.split/coerce-limit.js | 6 +- .../Symbol.split/coerce-string-err.js | 4 +- .../prototype/Symbol.split/coerce-string.js | 2 +- .../last-index-exceeds-str-size.js | 5 +- .../Symbol.split/species-ctor-ctor-non-obj.js | 4 +- .../species-ctor-species-get-err.js | 4 +- .../Symbol.split/str-adv-thru-empty-match.js | 2 +- .../Symbol.split/str-coerce-lastindex-err.js | 4 +- .../prototype/Symbol.split/str-empty-match.js | 2 +- .../Symbol.split/str-empty-no-match.js | 2 +- .../Symbol.split/str-limit-capturing.js | 2 +- .../prototype/Symbol.split/str-limit.js | 2 +- .../Symbol.split/str-trailing-chars.js | 2 +- .../u-lastindex-adv-thru-failure.js | 2 +- .../u-lastindex-adv-thru-match.js | 2 +- .../RegExp/prototype/exec/15.10.6.2-9-e-1.js | 8 +- .../RegExp/prototype/exec/S15.10.6.2_A10.js | 4 +- .../RegExp/prototype/exec/S15.10.6.2_A12.js | 2 +- .../RegExp/prototype/exec/S15.10.6.2_A1_T1.js | 8 +- .../prototype/exec/S15.10.6.2_A1_T10.js | 8 +- .../prototype/exec/S15.10.6.2_A1_T11.js | 8 +- .../prototype/exec/S15.10.6.2_A1_T12.js | 14 +- .../prototype/exec/S15.10.6.2_A1_T13.js | 8 +- .../prototype/exec/S15.10.6.2_A1_T14.js | 8 +- .../prototype/exec/S15.10.6.2_A1_T15.js | 14 +- .../prototype/exec/S15.10.6.2_A1_T16.js | 2 +- .../prototype/exec/S15.10.6.2_A1_T17.js | 8 +- .../prototype/exec/S15.10.6.2_A1_T18.js | 8 +- .../prototype/exec/S15.10.6.2_A1_T19.js | 8 +- .../RegExp/prototype/exec/S15.10.6.2_A1_T2.js | 8 +- .../prototype/exec/S15.10.6.2_A1_T20.js | 8 +- .../prototype/exec/S15.10.6.2_A1_T21.js | 10 +- .../RegExp/prototype/exec/S15.10.6.2_A1_T3.js | 8 +- .../RegExp/prototype/exec/S15.10.6.2_A1_T4.js | 14 +- .../RegExp/prototype/exec/S15.10.6.2_A1_T5.js | 17 +- .../RegExp/prototype/exec/S15.10.6.2_A1_T6.js | 12 +- .../RegExp/prototype/exec/S15.10.6.2_A1_T7.js | 12 +- .../RegExp/prototype/exec/S15.10.6.2_A1_T8.js | 7 +- .../RegExp/prototype/exec/S15.10.6.2_A1_T9.js | 4 +- .../RegExp/prototype/exec/S15.10.6.2_A2_T1.js | 8 +- .../prototype/exec/S15.10.6.2_A2_T10.js | 8 +- .../RegExp/prototype/exec/S15.10.6.2_A2_T2.js | 8 +- .../RegExp/prototype/exec/S15.10.6.2_A2_T3.js | 10 +- .../RegExp/prototype/exec/S15.10.6.2_A2_T4.js | 14 +- .../RegExp/prototype/exec/S15.10.6.2_A2_T5.js | 12 +- .../RegExp/prototype/exec/S15.10.6.2_A2_T6.js | 8 +- .../RegExp/prototype/exec/S15.10.6.2_A2_T7.js | 8 +- .../RegExp/prototype/exec/S15.10.6.2_A2_T8.js | 8 +- .../RegExp/prototype/exec/S15.10.6.2_A2_T9.js | 8 +- .../RegExp/prototype/exec/S15.10.6.2_A3_T1.js | 26 +- .../RegExp/prototype/exec/S15.10.6.2_A3_T2.js | 268 +++++++++--------- .../RegExp/prototype/exec/S15.10.6.2_A3_T3.js | 268 +++++++++--------- .../RegExp/prototype/exec/S15.10.6.2_A3_T4.js | 268 +++++++++--------- .../RegExp/prototype/exec/S15.10.6.2_A3_T5.js | 20 +- .../RegExp/prototype/exec/S15.10.6.2_A3_T6.js | 20 +- .../RegExp/prototype/exec/S15.10.6.2_A3_T7.js | 20 +- .../RegExp/prototype/exec/S15.10.6.2_A4_T1.js | 28 +- .../prototype/exec/S15.10.6.2_A4_T10.js | 34 ++- .../prototype/exec/S15.10.6.2_A4_T11.js | 26 +- .../prototype/exec/S15.10.6.2_A4_T12.js | 37 ++- .../RegExp/prototype/exec/S15.10.6.2_A4_T2.js | 28 +- .../RegExp/prototype/exec/S15.10.6.2_A4_T3.js | 28 +- .../RegExp/prototype/exec/S15.10.6.2_A4_T4.js | 28 +- .../RegExp/prototype/exec/S15.10.6.2_A4_T5.js | 28 +- .../RegExp/prototype/exec/S15.10.6.2_A4_T6.js | 28 +- .../RegExp/prototype/exec/S15.10.6.2_A4_T7.js | 28 +- .../RegExp/prototype/exec/S15.10.6.2_A4_T8.js | 28 +- .../RegExp/prototype/exec/S15.10.6.2_A4_T9.js | 28 +- .../RegExp/prototype/exec/S15.10.6.2_A5_T1.js | 18 +- .../RegExp/prototype/exec/S15.10.6.2_A5_T2.js | 6 +- .../RegExp/prototype/exec/S15.10.6.2_A5_T3.js | 12 +- .../RegExp/prototype/exec/S15.10.6.2_A8.js | 10 +- .../exec/failure-g-lastindex-reset.js | 4 +- .../exec/success-g-lastindex-no-access.js | 1 - .../RegExp/prototype/global/15.10.7.2-2.js | 4 +- .../RegExp/prototype/global/S15.10.7.2_A8.js | 8 +- .../prototype/ignoreCase/15.10.7.3-2.js | 4 +- .../prototype/ignoreCase/S15.10.7.3_A8.js | 8 +- .../RegExp/prototype/multiline/15.10.7.4-2.js | 4 +- .../prototype/multiline/S15.10.7.4_A8.js | 8 +- .../RegExp/prototype/test/S15.10.6.3_A10.js | 4 +- .../RegExp/prototype/test/S15.10.6.3_A1_T1.js | 2 +- .../prototype/test/S15.10.6.3_A1_T10.js | 2 +- .../prototype/test/S15.10.6.3_A1_T11.js | 2 +- .../prototype/test/S15.10.6.3_A1_T12.js | 8 +- .../prototype/test/S15.10.6.3_A1_T13.js | 2 +- .../prototype/test/S15.10.6.3_A1_T14.js | 2 +- .../prototype/test/S15.10.6.3_A1_T15.js | 8 +- .../prototype/test/S15.10.6.3_A1_T16.js | 2 +- .../prototype/test/S15.10.6.3_A1_T17.js | 2 +- .../prototype/test/S15.10.6.3_A1_T18.js | 2 +- .../prototype/test/S15.10.6.3_A1_T19.js | 2 +- .../RegExp/prototype/test/S15.10.6.3_A1_T2.js | 2 +- .../prototype/test/S15.10.6.3_A1_T20.js | 2 +- .../prototype/test/S15.10.6.3_A1_T21.js | 4 +- .../prototype/test/S15.10.6.3_A1_T22.js | 12 +- .../RegExp/prototype/test/S15.10.6.3_A1_T3.js | 2 +- .../RegExp/prototype/test/S15.10.6.3_A1_T4.js | 8 +- .../RegExp/prototype/test/S15.10.6.3_A1_T5.js | 11 +- .../RegExp/prototype/test/S15.10.6.3_A1_T6.js | 8 +- .../RegExp/prototype/test/S15.10.6.3_A1_T7.js | 12 +- .../RegExp/prototype/test/S15.10.6.3_A1_T8.js | 7 +- .../RegExp/prototype/test/S15.10.6.3_A1_T9.js | 4 +- .../RegExp/prototype/test/S15.10.6.3_A2_T2.js | 2 +- .../RegExp/prototype/test/S15.10.6.3_A2_T3.js | 2 +- .../RegExp/prototype/test/S15.10.6.3_A2_T4.js | 14 +- .../RegExp/prototype/test/S15.10.6.3_A2_T5.js | 12 +- .../RegExp/prototype/test/S15.10.6.3_A8.js | 10 +- .../prototype/toString/S15.10.6.4_A10.js | 8 +- .../prototype/toString/S15.10.6.4_A11.js | 4 +- .../prototype/toString/S15.10.6.4_A6.js | 2 +- .../prototype/toString/S15.10.6.4_A7.js | 4 +- .../prototype/toString/S15.10.6.4_A8.js | 16 +- .../prototype/toString/S15.10.6.4_A9.js | 6 +- ...nicode_restricted_identity_escape_alpha.js | 18 +- .../unicode_restricted_identity_escape_c.js | 8 +- .../properties-of-the-set-prototype-object.js | 6 +- test/built-ins/Set/prototype-of-set.js | 6 +- test/built-ins/Set/prototype/add/add.js | 6 +- .../returns-this-when-ignoring-duplicate.js | 2 +- ...ot-add-duplicate-entry-initial-iterable.js | 2 +- ...not-add-duplicate-entry-normalizes-zero.js | 2 +- test/built-ins/Set/prototype/clear/clear.js | 6 +- .../set-prototype-constructor-intrinsic.js | 6 +- .../delete/delete-entry-initial-iterable.js | 2 +- .../delete/delete-entry-normalizes-zero.js | 2 +- test/built-ins/Set/prototype/delete/delete.js | 6 +- .../Set/prototype/entries/entries.js | 6 +- .../Set/prototype/forEach/forEach.js | 6 +- .../prototype/forEach/returns-undefined.js | 6 +- test/built-ins/Set/prototype/has/has.js | 6 +- ...ned-added-deleted-not-present-undefined.js | 1 - test/built-ins/Set/prototype/keys/keys.js | 6 +- test/built-ins/Set/prototype/size/size.js | 12 +- test/built-ins/Set/prototype/values/values.js | 6 +- .../set-iterator-close-after-add-failure.js | 9 +- .../Set/set-iterator-next-failure.js | 1 + .../Set/set-iterator-value-failure.js | 1 + test/built-ins/Set/set-newtarget.js | 12 +- .../next/this-not-object-throw-keys.js | 5 +- ...his-not-object-throw-prototype-iterator.js | 5 +- .../next/this-not-object-throw-values.js | 5 +- .../data-allocation-after-object-creation.js | 4 +- .../newtarget-prototype-is-not-object.js | 2 +- .../prototype-from-newtarget.js | 2 +- .../slice/end-default-if-undefined.js | 3 +- .../prototype/slice/end-exceeds-length.js | 9 +- .../prototype/slice/negative-end.js | 9 +- .../prototype/slice/negative-start.js | 9 +- .../prototype/slice/nonconstructor.js | 4 +- .../species-constructor-is-not-object.js | 4 +- .../slice/species-is-not-constructor.js | 4 +- .../prototype/slice/species-is-not-object.js | 4 +- .../slice/start-default-if-undefined.js | 3 +- .../prototype/slice/start-exceeds-end.js | 3 +- test/built-ins/String/15.5.5.5.2-1-1.js | 6 +- test/built-ins/String/15.5.5.5.2-1-2.js | 4 +- test/built-ins/String/15.5.5.5.2-3-1.js | 4 +- test/built-ins/String/15.5.5.5.2-3-2.js | 4 +- test/built-ins/String/15.5.5.5.2-3-3.js | 2 +- test/built-ins/String/15.5.5.5.2-3-4.js | 2 +- test/built-ins/String/15.5.5.5.2-3-5.js | 4 +- test/built-ins/String/15.5.5.5.2-3-6.js | 2 +- test/built-ins/String/15.5.5.5.2-3-7.js | 2 +- test/built-ins/String/15.5.5.5.2-3-8.js | 4 +- test/built-ins/String/15.5.5.5.2-7-1.js | 2 +- test/built-ins/String/15.5.5.5.2-7-2.js | 2 +- test/built-ins/String/15.5.5.5.2-7-3.js | 2 +- test/built-ins/String/15.5.5.5.2-7-4.js | 2 +- test/built-ins/String/S15.5.1.1_A1_T1.js | 6 +- test/built-ins/String/S15.5.1.1_A1_T10.js | 8 +- test/built-ins/String/S15.5.1.1_A1_T11.js | 28 +- test/built-ins/String/S15.5.1.1_A1_T12.js | 16 +- test/built-ins/String/S15.5.1.1_A1_T13.js | 16 +- test/built-ins/String/S15.5.1.1_A1_T14.js | 8 +- test/built-ins/String/S15.5.1.1_A1_T15.js | 2 +- test/built-ins/String/S15.5.1.1_A1_T16.js | 16 +- test/built-ins/String/S15.5.1.1_A1_T17.js | 12 +- test/built-ins/String/S15.5.1.1_A1_T18.js | 10 +- test/built-ins/String/S15.5.1.1_A1_T19.js | 6 +- test/built-ins/String/S15.5.1.1_A1_T2.js | 4 +- test/built-ins/String/S15.5.1.1_A1_T3.js | 4 +- test/built-ins/String/S15.5.1.1_A1_T4.js | 4 +- test/built-ins/String/S15.5.1.1_A1_T5.js | 4 +- test/built-ins/String/S15.5.1.1_A1_T6.js | 4 +- test/built-ins/String/S15.5.1.1_A1_T7.js | 6 +- test/built-ins/String/S15.5.1.1_A1_T8.js | 10 +- test/built-ins/String/S15.5.1.1_A1_T9.js | 8 +- test/built-ins/String/S15.5.1.1_A2_T1.js | 4 +- test/built-ins/String/S15.5.2.1_A1_T1.js | 8 +- test/built-ins/String/S15.5.2.1_A1_T10.js | 12 +- test/built-ins/String/S15.5.2.1_A1_T11.js | 18 +- test/built-ins/String/S15.5.2.1_A1_T12.js | 14 +- test/built-ins/String/S15.5.2.1_A1_T13.js | 16 +- test/built-ins/String/S15.5.2.1_A1_T16.js | 40 +-- test/built-ins/String/S15.5.2.1_A1_T17.js | 24 +- test/built-ins/String/S15.5.2.1_A1_T18.js | 16 +- test/built-ins/String/S15.5.2.1_A1_T19.js | 10 +- test/built-ins/String/S15.5.2.1_A1_T2.js | 12 +- test/built-ins/String/S15.5.2.1_A1_T3.js | 12 +- test/built-ins/String/S15.5.2.1_A1_T4.js | 8 +- test/built-ins/String/S15.5.2.1_A1_T5.js | 8 +- test/built-ins/String/S15.5.2.1_A1_T6.js | 8 +- test/built-ins/String/S15.5.2.1_A1_T7.js | 12 +- test/built-ins/String/S15.5.2.1_A1_T8.js | 14 +- test/built-ins/String/S15.5.2.1_A1_T9.js | 12 +- test/built-ins/String/S15.5.2.1_A2_T2.js | 8 +- test/built-ins/String/S15.5.2.1_A3.js | 4 +- test/built-ins/String/S15.5.3_A1.js | 2 +- test/built-ins/String/S15.5.3_A2_T1.js | 2 +- test/built-ins/String/S15.5.3_A2_T2.js | 2 +- test/built-ins/String/S15.5.5.1_A1.js | 4 +- test/built-ins/String/S15.5.5.1_A2.js | 10 +- test/built-ins/String/S15.5.5.1_A3.js | 4 +- test/built-ins/String/S15.5.5.1_A4_T1.js | 14 +- test/built-ins/String/S15.5.5.1_A4_T2.js | 6 +- test/built-ins/String/S15.5.5.1_A5.js | 16 +- test/built-ins/String/S15.5.5_A1_T1.js | 2 +- test/built-ins/String/S15.5.5_A1_T2.js | 2 +- test/built-ins/String/S15.5.5_A2_T1.js | 2 +- test/built-ins/String/S15.5.5_A2_T2.js | 2 +- test/built-ins/String/S8.12.8_A1.js | 18 +- test/built-ins/String/S8.12.8_A2.js | 17 +- test/built-ins/String/S9.1_A1_T2.js | 18 +- test/built-ins/String/S9.8.1_A3.js | 4 +- test/built-ins/String/S9.8_A2_T1.js | 2 +- test/built-ins/String/S9.8_A3_T1.js | 2 +- test/built-ins/String/S9.8_A4_T1.js | 2 +- test/built-ins/String/S9.8_A5_T1.js | 56 ++-- .../String/fromCharCode/S15.5.3.2_A1.js | 6 +- .../String/fromCharCode/S15.5.3.2_A2.js | 2 +- .../String/fromCharCode/S15.5.3.2_A3_T1.js | 4 +- .../String/fromCharCode/S15.5.3.2_A3_T2.js | 4 +- .../String/fromCharCode/S15.5.3.2_A4.js | 4 +- test/built-ins/String/fromCharCode/S9.7_A1.js | 12 +- .../String/fromCharCode/S9.7_A3.1_T4.js | 76 ++++- .../fromCodePoint/to-number-conversions.js | 6 +- test/built-ins/String/length.js | 2 +- .../String/prototype/S15.5.3.1_A1.js | 2 +- .../String/prototype/S15.5.3.1_A2.js | 12 +- .../String/prototype/S15.5.3.1_A3.js | 4 +- .../String/prototype/S15.5.3.1_A4.js | 8 +- test/built-ins/String/prototype/S15.5.4_A1.js | 4 +- test/built-ins/String/prototype/S15.5.4_A2.js | 4 +- test/built-ins/String/prototype/S15.5.4_A3.js | 6 +- .../String/prototype/charAt/S15.5.4.4_A1.1.js | 12 +- .../String/prototype/charAt/S15.5.4.4_A10.js | 8 +- .../String/prototype/charAt/S15.5.4.4_A11.js | 4 +- .../prototype/charAt/S15.5.4.4_A1_T1.js | 4 +- .../prototype/charAt/S15.5.4.4_A1_T10.js | 12 +- .../prototype/charAt/S15.5.4.4_A1_T2.js | 4 +- .../prototype/charAt/S15.5.4.4_A1_T4.js | 2 +- .../prototype/charAt/S15.5.4.4_A1_T5.js | 8 +- .../prototype/charAt/S15.5.4.4_A1_T6.js | 2 +- .../prototype/charAt/S15.5.4.4_A1_T7.js | 2 +- .../prototype/charAt/S15.5.4.4_A1_T8.js | 2 +- .../prototype/charAt/S15.5.4.4_A1_T9.js | 4 +- .../String/prototype/charAt/S15.5.4.4_A2.js | 4 +- .../String/prototype/charAt/S15.5.4.4_A3.js | 2 +- .../prototype/charAt/S15.5.4.4_A4_T1.js | 10 +- .../prototype/charAt/S15.5.4.4_A4_T2.js | 10 +- .../prototype/charAt/S15.5.4.4_A4_T3.js | 10 +- .../String/prototype/charAt/S15.5.4.4_A5.js | 12 +- .../String/prototype/charAt/S15.5.4.4_A6.js | 2 +- .../String/prototype/charAt/S15.5.4.4_A7.js | 2 +- .../String/prototype/charAt/S15.5.4.4_A8.js | 12 +- .../String/prototype/charAt/S15.5.4.4_A9.js | 4 +- .../prototype/charCodeAt/S15.5.4.5_A1.1.js | 12 +- .../prototype/charCodeAt/S15.5.4.5_A10.js | 8 +- .../prototype/charCodeAt/S15.5.4.5_A11.js | 4 +- .../prototype/charCodeAt/S15.5.4.5_A1_T1.js | 4 +- .../prototype/charCodeAt/S15.5.4.5_A1_T10.js | 12 +- .../prototype/charCodeAt/S15.5.4.5_A1_T2.js | 12 +- .../prototype/charCodeAt/S15.5.4.5_A1_T4.js | 2 +- .../prototype/charCodeAt/S15.5.4.5_A1_T5.js | 8 +- .../prototype/charCodeAt/S15.5.4.5_A1_T6.js | 2 +- .../prototype/charCodeAt/S15.5.4.5_A1_T7.js | 2 +- .../prototype/charCodeAt/S15.5.4.5_A1_T8.js | 2 +- .../prototype/charCodeAt/S15.5.4.5_A1_T9.js | 4 +- .../prototype/charCodeAt/S15.5.4.5_A2.js | 2 +- .../prototype/charCodeAt/S15.5.4.5_A4.js | 12 +- .../prototype/charCodeAt/S15.5.4.5_A6.js | 2 +- .../prototype/charCodeAt/S15.5.4.5_A7.js | 2 +- .../prototype/charCodeAt/S15.5.4.5_A8.js | 12 +- .../prototype/charCodeAt/S15.5.4.5_A9.js | 4 +- .../String/prototype/concat/S15.5.4.6_A10.js | 8 +- .../String/prototype/concat/S15.5.4.6_A11.js | 4 +- .../prototype/concat/S15.5.4.6_A1_T1.js | 4 +- .../prototype/concat/S15.5.4.6_A1_T10.js | 33 ++- .../prototype/concat/S15.5.4.6_A1_T2.js | 4 +- .../prototype/concat/S15.5.4.6_A1_T4.js | 2 +- .../prototype/concat/S15.5.4.6_A1_T5.js | 8 +- .../prototype/concat/S15.5.4.6_A1_T6.js | 2 +- .../prototype/concat/S15.5.4.6_A1_T7.js | 2 +- .../prototype/concat/S15.5.4.6_A1_T8.js | 2 +- .../prototype/concat/S15.5.4.6_A1_T9.js | 4 +- .../String/prototype/concat/S15.5.4.6_A2.js | 18 +- .../String/prototype/concat/S15.5.4.6_A3.js | 2 +- .../prototype/concat/S15.5.4.6_A4_T1.js | 10 +- .../prototype/concat/S15.5.4.6_A4_T2.js | 18 +- .../String/prototype/concat/S15.5.4.6_A6.js | 2 +- .../String/prototype/concat/S15.5.4.6_A7.js | 2 +- .../String/prototype/concat/S15.5.4.6_A8.js | 10 +- .../String/prototype/concat/S15.5.4.6_A9.js | 4 +- .../prototype/constructor/S15.5.4.1_A1_T1.js | 2 +- .../prototype/constructor/S15.5.4.1_A1_T2.js | 12 +- .../String/prototype/indexOf/S15.5.4.7_A10.js | 8 +- .../String/prototype/indexOf/S15.5.4.7_A11.js | 4 +- .../prototype/indexOf/S15.5.4.7_A1_T1.js | 2 +- .../prototype/indexOf/S15.5.4.7_A1_T10.js | 18 +- .../prototype/indexOf/S15.5.4.7_A1_T12.js | 6 +- .../prototype/indexOf/S15.5.4.7_A1_T2.js | 8 +- .../prototype/indexOf/S15.5.4.7_A1_T4.js | 2 +- .../prototype/indexOf/S15.5.4.7_A1_T5.js | 8 +- .../prototype/indexOf/S15.5.4.7_A1_T6.js | 2 +- .../prototype/indexOf/S15.5.4.7_A1_T7.js | 2 +- .../prototype/indexOf/S15.5.4.7_A1_T8.js | 6 +- .../prototype/indexOf/S15.5.4.7_A1_T9.js | 8 +- .../prototype/indexOf/S15.5.4.7_A2_T1.js | 4 +- .../prototype/indexOf/S15.5.4.7_A2_T2.js | 4 +- .../prototype/indexOf/S15.5.4.7_A2_T3.js | 4 +- .../prototype/indexOf/S15.5.4.7_A2_T4.js | 4 +- .../prototype/indexOf/S15.5.4.7_A3_T1.js | 4 +- .../prototype/indexOf/S15.5.4.7_A3_T2.js | 4 +- .../prototype/indexOf/S15.5.4.7_A3_T3.js | 8 +- .../prototype/indexOf/S15.5.4.7_A4_T1.js | 28 +- .../prototype/indexOf/S15.5.4.7_A4_T2.js | 31 +- .../prototype/indexOf/S15.5.4.7_A4_T3.js | 19 +- .../prototype/indexOf/S15.5.4.7_A4_T4.js | 30 +- .../prototype/indexOf/S15.5.4.7_A4_T5.js | 31 +- .../prototype/indexOf/S15.5.4.7_A5_T1.js | 10 +- .../prototype/indexOf/S15.5.4.7_A5_T2.js | 10 +- .../prototype/indexOf/S15.5.4.7_A5_T3.js | 10 +- .../prototype/indexOf/S15.5.4.7_A5_T4.js | 10 +- .../prototype/indexOf/S15.5.4.7_A5_T5.js | 10 +- .../prototype/indexOf/S15.5.4.7_A5_T6.js | 10 +- .../String/prototype/indexOf/S15.5.4.7_A6.js | 2 +- .../String/prototype/indexOf/S15.5.4.7_A7.js | 2 +- .../String/prototype/indexOf/S15.5.4.7_A8.js | 10 +- .../String/prototype/indexOf/S15.5.4.7_A9.js | 4 +- .../indexOf/position-tointeger-bigint.js | 10 +- .../indexOf/searchstring-tostring-bigint.js | 10 +- .../prototype/lastIndexOf/S15.5.4.8_A10.js | 8 +- .../prototype/lastIndexOf/S15.5.4.8_A11.js | 4 +- .../prototype/lastIndexOf/S15.5.4.8_A1_T1.js | 2 +- .../prototype/lastIndexOf/S15.5.4.8_A1_T10.js | 18 +- .../prototype/lastIndexOf/S15.5.4.8_A1_T12.js | 6 +- .../prototype/lastIndexOf/S15.5.4.8_A1_T2.js | 8 +- .../prototype/lastIndexOf/S15.5.4.8_A1_T4.js | 2 +- .../prototype/lastIndexOf/S15.5.4.8_A1_T5.js | 8 +- .../prototype/lastIndexOf/S15.5.4.8_A1_T6.js | 2 +- .../prototype/lastIndexOf/S15.5.4.8_A1_T7.js | 2 +- .../prototype/lastIndexOf/S15.5.4.8_A1_T8.js | 6 +- .../prototype/lastIndexOf/S15.5.4.8_A1_T9.js | 8 +- .../prototype/lastIndexOf/S15.5.4.8_A4_T1.js | 28 +- .../prototype/lastIndexOf/S15.5.4.8_A4_T2.js | 31 +- .../prototype/lastIndexOf/S15.5.4.8_A4_T3.js | 17 +- .../prototype/lastIndexOf/S15.5.4.8_A4_T4.js | 30 +- .../prototype/lastIndexOf/S15.5.4.8_A4_T5.js | 31 +- .../prototype/lastIndexOf/S15.5.4.8_A6.js | 2 +- .../prototype/lastIndexOf/S15.5.4.8_A8.js | 12 +- .../prototype/lastIndexOf/S15.5.4.8_A9.js | 4 +- .../prototype/localeCompare/15.5.4.9_3.js | 14 +- .../prototype/localeCompare/15.5.4.9_CE.js | 116 ++++---- .../prototype/localeCompare/S15.5.4.9_A10.js | 8 +- .../prototype/localeCompare/S15.5.4.9_A11.js | 4 +- .../localeCompare/S15.5.4.9_A1_T1.js | 20 +- .../localeCompare/S15.5.4.9_A1_T2.js | 4 +- .../prototype/localeCompare/S15.5.4.9_A6.js | 2 +- .../prototype/localeCompare/S15.5.4.9_A7.js | 2 +- .../prototype/localeCompare/S15.5.4.9_A8.js | 10 +- .../prototype/localeCompare/S15.5.4.9_A9.js | 4 +- .../prototype/match/S15.5.4.10_A1_T10.js | 12 +- .../prototype/match/S15.5.4.10_A1_T11.js | 22 +- .../prototype/match/S15.5.4.10_A1_T12.js | 25 +- .../prototype/match/S15.5.4.10_A1_T13.js | 15 +- .../prototype/match/S15.5.4.10_A1_T14.js | 2 +- .../prototype/match/S15.5.4.10_A1_T3.js | 11 +- .../prototype/match/S15.5.4.10_A1_T4.js | 14 +- .../prototype/match/S15.5.4.10_A1_T5.js | 8 +- .../prototype/match/S15.5.4.10_A1_T6.js | 14 +- .../prototype/match/S15.5.4.10_A1_T7.js | 14 +- .../prototype/match/S15.5.4.10_A1_T8.js | 18 +- .../prototype/match/S15.5.4.10_A1_T9.js | 20 +- .../prototype/match/S15.5.4.10_A2_T1.js | 16 +- .../prototype/match/S15.5.4.10_A2_T10.js | 16 +- .../prototype/match/S15.5.4.10_A2_T11.js | 18 +- .../prototype/match/S15.5.4.10_A2_T12.js | 10 +- .../prototype/match/S15.5.4.10_A2_T13.js | 10 +- .../prototype/match/S15.5.4.10_A2_T14.js | 10 +- .../prototype/match/S15.5.4.10_A2_T15.js | 10 +- .../prototype/match/S15.5.4.10_A2_T16.js | 12 +- .../prototype/match/S15.5.4.10_A2_T17.js | 16 +- .../prototype/match/S15.5.4.10_A2_T18.js | 16 +- .../prototype/match/S15.5.4.10_A2_T2.js | 12 +- .../prototype/match/S15.5.4.10_A2_T3.js | 12 +- .../prototype/match/S15.5.4.10_A2_T4.js | 12 +- .../prototype/match/S15.5.4.10_A2_T5.js | 12 +- .../prototype/match/S15.5.4.10_A2_T6.js | 24 +- .../prototype/match/S15.5.4.10_A2_T7.js | 10 +- .../prototype/match/S15.5.4.10_A2_T8.js | 16 +- .../prototype/match/S15.5.4.10_A2_T9.js | 16 +- .../String/prototype/match/S15.5.4.10_A6.js | 2 +- .../String/prototype/match/S15.5.4.10_A7.js | 2 +- .../String/prototype/match/S15.5.4.10_A8.js | 10 +- .../String/prototype/match/S15.5.4.10_A9.js | 4 +- .../String/prototype/match/length.js | 4 +- .../String/prototype/match/this-val-bool.js | 8 +- .../String/prototype/match/this-val-obj.js | 2 +- ...urn-normalized-string-from-coerced-form.js | 8 +- .../padEnd/exception-fill-string-symbol.js | 4 +- .../padEnd/exception-not-object-coercible.js | 18 +- .../prototype/padEnd/exception-symbol.js | 4 +- .../String/prototype/padEnd/function-name.js | 6 +- .../prototype/padEnd/observable-operations.js | 16 +- .../padStart/exception-fill-string-symbol.js | 4 +- .../exception-not-object-coercible.js | 18 +- .../prototype/padStart/exception-symbol.js | 4 +- .../prototype/padStart/function-name.js | 6 +- .../padStart/observable-operations.js | 16 +- .../String/prototype/replace/15.5.4.11-1.js | 16 +- .../prototype/replace/S15.5.4.11_A10.js | 8 +- .../prototype/replace/S15.5.4.11_A11.js | 4 +- .../prototype/replace/S15.5.4.11_A12.js | 2 +- .../prototype/replace/S15.5.4.11_A1_T1.js | 2 +- .../prototype/replace/S15.5.4.11_A1_T10.js | 16 +- .../prototype/replace/S15.5.4.11_A1_T11.js | 28 +- .../prototype/replace/S15.5.4.11_A1_T12.js | 31 +- .../prototype/replace/S15.5.4.11_A1_T13.js | 25 +- .../prototype/replace/S15.5.4.11_A1_T14.js | 2 +- .../prototype/replace/S15.5.4.11_A1_T15.js | 10 +- .../prototype/replace/S15.5.4.11_A1_T16.js | 10 +- .../prototype/replace/S15.5.4.11_A1_T17.js | 4 +- .../prototype/replace/S15.5.4.11_A1_T2.js | 8 +- .../prototype/replace/S15.5.4.11_A1_T4.js | 12 +- .../prototype/replace/S15.5.4.11_A1_T5.js | 8 +- .../prototype/replace/S15.5.4.11_A1_T6.js | 4 +- .../prototype/replace/S15.5.4.11_A1_T7.js | 4 +- .../prototype/replace/S15.5.4.11_A1_T8.js | 8 +- .../prototype/replace/S15.5.4.11_A1_T9.js | 12 +- .../prototype/replace/S15.5.4.11_A2_T1.js | 4 +- .../prototype/replace/S15.5.4.11_A2_T10.js | 4 +- .../prototype/replace/S15.5.4.11_A2_T2.js | 4 +- .../prototype/replace/S15.5.4.11_A2_T3.js | 4 +- .../prototype/replace/S15.5.4.11_A2_T4.js | 4 +- .../prototype/replace/S15.5.4.11_A2_T5.js | 4 +- .../prototype/replace/S15.5.4.11_A2_T6.js | 4 +- .../prototype/replace/S15.5.4.11_A2_T7.js | 4 +- .../prototype/replace/S15.5.4.11_A2_T8.js | 4 +- .../prototype/replace/S15.5.4.11_A2_T9.js | 4 +- .../prototype/replace/S15.5.4.11_A3_T1.js | 4 +- .../prototype/replace/S15.5.4.11_A3_T2.js | 4 +- .../prototype/replace/S15.5.4.11_A3_T3.js | 4 +- .../prototype/replace/S15.5.4.11_A4_T1.js | 8 +- .../prototype/replace/S15.5.4.11_A4_T2.js | 8 +- .../prototype/replace/S15.5.4.11_A4_T3.js | 8 +- .../prototype/replace/S15.5.4.11_A4_T4.js | 8 +- .../prototype/replace/S15.5.4.11_A5_T1.js | 4 +- .../String/prototype/replace/S15.5.4.11_A6.js | 2 +- .../String/prototype/replace/S15.5.4.11_A7.js | 2 +- .../String/prototype/replace/S15.5.4.11_A8.js | 10 +- .../String/prototype/replace/S15.5.4.11_A9.js | 4 +- .../String/prototype/search/S15.5.4.12_A10.js | 8 +- .../String/prototype/search/S15.5.4.12_A11.js | 4 +- .../prototype/search/S15.5.4.12_A1_T1.js | 2 +- .../prototype/search/S15.5.4.12_A1_T10.js | 12 +- .../prototype/search/S15.5.4.12_A1_T11.js | 22 +- .../prototype/search/S15.5.4.12_A1_T12.js | 25 +- .../prototype/search/S15.5.4.12_A1_T13.js | 13 +- .../prototype/search/S15.5.4.12_A1_T14.js | 2 +- .../prototype/search/S15.5.4.12_A1_T2.js | 8 +- .../prototype/search/S15.5.4.12_A1_T4.js | 4 +- .../prototype/search/S15.5.4.12_A1_T5.js | 8 +- .../prototype/search/S15.5.4.12_A1_T6.js | 2 +- .../prototype/search/S15.5.4.12_A1_T7.js | 2 +- .../prototype/search/S15.5.4.12_A1_T8.js | 6 +- .../prototype/search/S15.5.4.12_A1_T9.js | 8 +- .../prototype/search/S15.5.4.12_A2_T1.js | 4 +- .../prototype/search/S15.5.4.12_A2_T2.js | 4 +- .../prototype/search/S15.5.4.12_A2_T3.js | 4 +- .../prototype/search/S15.5.4.12_A2_T4.js | 4 +- .../prototype/search/S15.5.4.12_A2_T5.js | 4 +- .../prototype/search/S15.5.4.12_A2_T6.js | 4 +- .../prototype/search/S15.5.4.12_A2_T7.js | 4 +- .../prototype/search/S15.5.4.12_A3_T1.js | 4 +- .../prototype/search/S15.5.4.12_A3_T2.js | 4 +- .../String/prototype/search/S15.5.4.12_A6.js | 2 +- .../String/prototype/search/S15.5.4.12_A7.js | 2 +- .../String/prototype/search/S15.5.4.12_A8.js | 10 +- .../String/prototype/search/S15.5.4.12_A9.js | 4 +- .../String/prototype/slice/S15.5.4.13_A10.js | 8 +- .../String/prototype/slice/S15.5.4.13_A11.js | 4 +- .../prototype/slice/S15.5.4.13_A1_T1.js | 2 +- .../prototype/slice/S15.5.4.13_A1_T10.js | 16 +- .../prototype/slice/S15.5.4.13_A1_T11.js | 28 +- .../prototype/slice/S15.5.4.13_A1_T12.js | 31 +- .../prototype/slice/S15.5.4.13_A1_T13.js | 25 +- .../prototype/slice/S15.5.4.13_A1_T14.js | 4 +- .../prototype/slice/S15.5.4.13_A1_T15.js | 4 +- .../prototype/slice/S15.5.4.13_A1_T2.js | 8 +- .../prototype/slice/S15.5.4.13_A1_T4.js | 8 +- .../prototype/slice/S15.5.4.13_A1_T5.js | 16 +- .../prototype/slice/S15.5.4.13_A1_T6.js | 4 +- .../prototype/slice/S15.5.4.13_A1_T7.js | 4 +- .../prototype/slice/S15.5.4.13_A1_T8.js | 8 +- .../prototype/slice/S15.5.4.13_A1_T9.js | 8 +- .../prototype/slice/S15.5.4.13_A2_T1.js | 2 +- .../prototype/slice/S15.5.4.13_A2_T2.js | 2 +- .../prototype/slice/S15.5.4.13_A2_T3.js | 4 +- .../prototype/slice/S15.5.4.13_A2_T4.js | 2 +- .../prototype/slice/S15.5.4.13_A2_T5.js | 2 +- .../prototype/slice/S15.5.4.13_A2_T6.js | 4 +- .../prototype/slice/S15.5.4.13_A2_T7.js | 2 +- .../prototype/slice/S15.5.4.13_A2_T8.js | 4 +- .../prototype/slice/S15.5.4.13_A2_T9.js | 2 +- .../prototype/slice/S15.5.4.13_A3_T1.js | 4 +- .../prototype/slice/S15.5.4.13_A3_T2.js | 4 +- .../prototype/slice/S15.5.4.13_A3_T3.js | 10 +- .../prototype/slice/S15.5.4.13_A3_T4.js | 16 +- .../String/prototype/slice/S15.5.4.13_A6.js | 2 +- .../String/prototype/slice/S15.5.4.13_A8.js | 10 +- .../String/prototype/slice/S15.5.4.13_A9.js | 4 +- .../String/prototype/split/S15.5.4.14_A10.js | 8 +- .../String/prototype/split/S15.5.4.14_A11.js | 4 +- .../prototype/split/S15.5.4.14_A1_T1.js | 6 +- .../prototype/split/S15.5.4.14_A1_T10.js | 20 +- .../prototype/split/S15.5.4.14_A1_T11.js | 28 +- .../prototype/split/S15.5.4.14_A1_T12.js | 31 +- .../prototype/split/S15.5.4.14_A1_T13.js | 25 +- .../prototype/split/S15.5.4.14_A1_T14.js | 30 +- .../prototype/split/S15.5.4.14_A1_T15.js | 31 +- .../prototype/split/S15.5.4.14_A1_T16.js | 10 +- .../prototype/split/S15.5.4.14_A1_T17.js | 16 +- .../prototype/split/S15.5.4.14_A1_T18.js | 12 +- .../prototype/split/S15.5.4.14_A1_T2.js | 10 +- .../prototype/split/S15.5.4.14_A1_T3.js | 83 +++--- .../prototype/split/S15.5.4.14_A1_T4.js | 8 +- .../prototype/split/S15.5.4.14_A1_T5.js | 14 +- .../prototype/split/S15.5.4.14_A1_T6.js | 8 +- .../prototype/split/S15.5.4.14_A1_T7.js | 8 +- .../prototype/split/S15.5.4.14_A1_T8.js | 12 +- .../prototype/split/S15.5.4.14_A1_T9.js | 14 +- .../prototype/split/S15.5.4.14_A2_T1.js | 14 +- .../prototype/split/S15.5.4.14_A2_T10.js | 12 +- .../prototype/split/S15.5.4.14_A2_T11.js | 6 +- .../prototype/split/S15.5.4.14_A2_T12.js | 6 +- .../prototype/split/S15.5.4.14_A2_T13.js | 8 +- .../prototype/split/S15.5.4.14_A2_T14.js | 8 +- .../prototype/split/S15.5.4.14_A2_T15.js | 6 +- .../prototype/split/S15.5.4.14_A2_T16.js | 6 +- .../prototype/split/S15.5.4.14_A2_T17.js | 6 +- .../prototype/split/S15.5.4.14_A2_T18.js | 8 +- .../prototype/split/S15.5.4.14_A2_T19.js | 6 +- .../prototype/split/S15.5.4.14_A2_T2.js | 14 +- .../prototype/split/S15.5.4.14_A2_T20.js | 12 +- .../prototype/split/S15.5.4.14_A2_T21.js | 8 +- .../prototype/split/S15.5.4.14_A2_T22.js | 10 +- .../prototype/split/S15.5.4.14_A2_T23.js | 6 +- .../prototype/split/S15.5.4.14_A2_T24.js | 8 +- .../prototype/split/S15.5.4.14_A2_T25.js | 8 +- .../prototype/split/S15.5.4.14_A2_T26.js | 8 +- .../prototype/split/S15.5.4.14_A2_T27.js | 6 +- .../prototype/split/S15.5.4.14_A2_T28.js | 6 +- .../prototype/split/S15.5.4.14_A2_T29.js | 12 +- .../prototype/split/S15.5.4.14_A2_T3.js | 10 +- .../prototype/split/S15.5.4.14_A2_T30.js | 8 +- .../prototype/split/S15.5.4.14_A2_T31.js | 14 +- .../prototype/split/S15.5.4.14_A2_T32.js | 8 +- .../prototype/split/S15.5.4.14_A2_T33.js | 14 +- .../prototype/split/S15.5.4.14_A2_T34.js | 14 +- .../prototype/split/S15.5.4.14_A2_T35.js | 14 +- .../prototype/split/S15.5.4.14_A2_T36.js | 6 +- .../prototype/split/S15.5.4.14_A2_T37.js | 8 +- .../prototype/split/S15.5.4.14_A2_T38.js | 6 +- .../prototype/split/S15.5.4.14_A2_T39.js | 6 +- .../prototype/split/S15.5.4.14_A2_T4.js | 12 +- .../prototype/split/S15.5.4.14_A2_T40.js | 6 +- .../prototype/split/S15.5.4.14_A2_T41.js | 12 +- .../prototype/split/S15.5.4.14_A2_T42.js | 12 +- .../prototype/split/S15.5.4.14_A2_T43.js | 12 +- .../prototype/split/S15.5.4.14_A2_T5.js | 10 +- .../prototype/split/S15.5.4.14_A2_T6.js | 12 +- .../prototype/split/S15.5.4.14_A2_T7.js | 12 +- .../prototype/split/S15.5.4.14_A2_T8.js | 12 +- .../prototype/split/S15.5.4.14_A2_T9.js | 12 +- .../prototype/split/S15.5.4.14_A3_T1.js | 6 +- .../prototype/split/S15.5.4.14_A3_T10.js | 6 +- .../prototype/split/S15.5.4.14_A3_T11.js | 6 +- .../prototype/split/S15.5.4.14_A3_T2.js | 6 +- .../prototype/split/S15.5.4.14_A3_T3.js | 14 +- .../prototype/split/S15.5.4.14_A3_T4.js | 6 +- .../prototype/split/S15.5.4.14_A3_T5.js | 6 +- .../prototype/split/S15.5.4.14_A3_T6.js | 6 +- .../prototype/split/S15.5.4.14_A3_T7.js | 6 +- .../prototype/split/S15.5.4.14_A3_T8.js | 8 +- .../prototype/split/S15.5.4.14_A3_T9.js | 6 +- .../prototype/split/S15.5.4.14_A4_T1.js | 10 +- .../prototype/split/S15.5.4.14_A4_T10.js | 10 +- .../prototype/split/S15.5.4.14_A4_T11.js | 6 +- .../prototype/split/S15.5.4.14_A4_T12.js | 6 +- .../prototype/split/S15.5.4.14_A4_T13.js | 8 +- .../prototype/split/S15.5.4.14_A4_T14.js | 8 +- .../prototype/split/S15.5.4.14_A4_T15.js | 10 +- .../prototype/split/S15.5.4.14_A4_T16.js | 8 +- .../prototype/split/S15.5.4.14_A4_T17.js | 8 +- .../prototype/split/S15.5.4.14_A4_T18.js | 8 +- .../prototype/split/S15.5.4.14_A4_T19.js | 10 +- .../prototype/split/S15.5.4.14_A4_T2.js | 6 +- .../prototype/split/S15.5.4.14_A4_T20.js | 12 +- .../prototype/split/S15.5.4.14_A4_T21.js | 6 +- .../prototype/split/S15.5.4.14_A4_T22.js | 10 +- .../prototype/split/S15.5.4.14_A4_T23.js | 10 +- .../prototype/split/S15.5.4.14_A4_T24.js | 10 +- .../prototype/split/S15.5.4.14_A4_T25.js | 10 +- .../prototype/split/S15.5.4.14_A4_T3.js | 8 +- .../prototype/split/S15.5.4.14_A4_T4.js | 10 +- .../prototype/split/S15.5.4.14_A4_T5.js | 12 +- .../prototype/split/S15.5.4.14_A4_T6.js | 12 +- .../prototype/split/S15.5.4.14_A4_T7.js | 10 +- .../prototype/split/S15.5.4.14_A4_T8.js | 4 +- .../prototype/split/S15.5.4.14_A4_T9.js | 10 +- .../String/prototype/split/S15.5.4.14_A6.js | 2 +- .../String/prototype/split/S15.5.4.14_A7.js | 2 +- .../String/prototype/split/S15.5.4.14_A8.js | 10 +- .../String/prototype/split/S15.5.4.14_A9.js | 4 +- .../return-true-if-searchstring-is-empty.js | 2 +- .../prototype/substring/S15.5.4.15_A10.js | 8 +- .../prototype/substring/S15.5.4.15_A11.js | 4 +- .../prototype/substring/S15.5.4.15_A1_T1.js | 2 +- .../prototype/substring/S15.5.4.15_A1_T10.js | 16 +- .../prototype/substring/S15.5.4.15_A1_T11.js | 28 +- .../prototype/substring/S15.5.4.15_A1_T12.js | 31 +- .../prototype/substring/S15.5.4.15_A1_T13.js | 25 +- .../prototype/substring/S15.5.4.15_A1_T14.js | 4 +- .../prototype/substring/S15.5.4.15_A1_T15.js | 4 +- .../prototype/substring/S15.5.4.15_A1_T2.js | 8 +- .../prototype/substring/S15.5.4.15_A1_T4.js | 8 +- .../prototype/substring/S15.5.4.15_A1_T5.js | 10 +- .../prototype/substring/S15.5.4.15_A1_T6.js | 4 +- .../prototype/substring/S15.5.4.15_A1_T7.js | 4 +- .../prototype/substring/S15.5.4.15_A1_T8.js | 8 +- .../prototype/substring/S15.5.4.15_A1_T9.js | 8 +- .../prototype/substring/S15.5.4.15_A2_T1.js | 2 +- .../prototype/substring/S15.5.4.15_A2_T10.js | 4 +- .../prototype/substring/S15.5.4.15_A2_T2.js | 2 +- .../prototype/substring/S15.5.4.15_A2_T3.js | 4 +- .../prototype/substring/S15.5.4.15_A2_T4.js | 2 +- .../prototype/substring/S15.5.4.15_A2_T5.js | 2 +- .../prototype/substring/S15.5.4.15_A2_T6.js | 4 +- .../prototype/substring/S15.5.4.15_A2_T7.js | 2 +- .../prototype/substring/S15.5.4.15_A2_T8.js | 4 +- .../prototype/substring/S15.5.4.15_A2_T9.js | 2 +- .../prototype/substring/S15.5.4.15_A3_T1.js | 6 +- .../prototype/substring/S15.5.4.15_A3_T10.js | 12 +- .../prototype/substring/S15.5.4.15_A3_T11.js | 4 +- .../prototype/substring/S15.5.4.15_A3_T2.js | 6 +- .../prototype/substring/S15.5.4.15_A3_T3.js | 4 +- .../prototype/substring/S15.5.4.15_A3_T4.js | 4 +- .../prototype/substring/S15.5.4.15_A3_T5.js | 6 +- .../prototype/substring/S15.5.4.15_A3_T6.js | 4 +- .../prototype/substring/S15.5.4.15_A3_T7.js | 12 +- .../prototype/substring/S15.5.4.15_A3_T8.js | 4 +- .../prototype/substring/S15.5.4.15_A3_T9.js | 4 +- .../prototype/substring/S15.5.4.15_A6.js | 2 +- .../prototype/substring/S15.5.4.15_A7.js | 2 +- .../prototype/substring/S15.5.4.15_A8.js | 10 +- .../prototype/substring/S15.5.4.15_A9.js | 4 +- .../toLocaleLowerCase/S15.5.4.17_A10.js | 8 +- .../toLocaleLowerCase/S15.5.4.17_A11.js | 4 +- .../toLocaleLowerCase/S15.5.4.17_A1_T1.js | 2 +- .../toLocaleLowerCase/S15.5.4.17_A1_T10.js | 10 +- .../toLocaleLowerCase/S15.5.4.17_A1_T11.js | 12 +- .../toLocaleLowerCase/S15.5.4.17_A1_T12.js | 15 +- .../toLocaleLowerCase/S15.5.4.17_A1_T13.js | 15 +- .../toLocaleLowerCase/S15.5.4.17_A1_T14.js | 2 +- .../toLocaleLowerCase/S15.5.4.17_A1_T2.js | 2 +- .../toLocaleLowerCase/S15.5.4.17_A1_T3.js | 2 +- .../toLocaleLowerCase/S15.5.4.17_A1_T4.js | 12 +- .../toLocaleLowerCase/S15.5.4.17_A1_T5.js | 8 +- .../toLocaleLowerCase/S15.5.4.17_A1_T6.js | 2 +- .../toLocaleLowerCase/S15.5.4.17_A1_T7.js | 4 +- .../toLocaleLowerCase/S15.5.4.17_A1_T8.js | 4 +- .../toLocaleLowerCase/S15.5.4.17_A1_T9.js | 18 +- .../toLocaleLowerCase/S15.5.4.17_A2_T1.js | 4 +- .../toLocaleLowerCase/S15.5.4.17_A6.js | 2 +- .../toLocaleLowerCase/S15.5.4.17_A7.js | 2 +- .../toLocaleLowerCase/S15.5.4.17_A8.js | 10 +- .../toLocaleLowerCase/S15.5.4.17_A9.js | 4 +- .../toLocaleUpperCase/S15.5.4.19_A10.js | 8 +- .../toLocaleUpperCase/S15.5.4.19_A11.js | 4 +- .../toLocaleUpperCase/S15.5.4.19_A1_T1.js | 2 +- .../toLocaleUpperCase/S15.5.4.19_A1_T10.js | 10 +- .../toLocaleUpperCase/S15.5.4.19_A1_T11.js | 10 +- .../toLocaleUpperCase/S15.5.4.19_A1_T12.js | 15 +- .../toLocaleUpperCase/S15.5.4.19_A1_T13.js | 15 +- .../toLocaleUpperCase/S15.5.4.19_A1_T14.js | 2 +- .../toLocaleUpperCase/S15.5.4.19_A1_T2.js | 2 +- .../toLocaleUpperCase/S15.5.4.19_A1_T3.js | 2 +- .../toLocaleUpperCase/S15.5.4.19_A1_T4.js | 12 +- .../toLocaleUpperCase/S15.5.4.19_A1_T5.js | 8 +- .../toLocaleUpperCase/S15.5.4.19_A1_T6.js | 2 +- .../toLocaleUpperCase/S15.5.4.19_A1_T7.js | 4 +- .../toLocaleUpperCase/S15.5.4.19_A1_T8.js | 4 +- .../toLocaleUpperCase/S15.5.4.19_A1_T9.js | 18 +- .../toLocaleUpperCase/S15.5.4.19_A2_T1.js | 6 +- .../toLocaleUpperCase/S15.5.4.19_A6.js | 2 +- .../toLocaleUpperCase/S15.5.4.19_A7.js | 2 +- .../toLocaleUpperCase/S15.5.4.19_A8.js | 10 +- .../toLocaleUpperCase/S15.5.4.19_A9.js | 4 +- .../prototype/toLowerCase/S15.5.4.16_A10.js | 8 +- .../prototype/toLowerCase/S15.5.4.16_A11.js | 4 +- .../prototype/toLowerCase/S15.5.4.16_A1_T1.js | 2 +- .../toLowerCase/S15.5.4.16_A1_T10.js | 10 +- .../toLowerCase/S15.5.4.16_A1_T11.js | 12 +- .../toLowerCase/S15.5.4.16_A1_T12.js | 15 +- .../toLowerCase/S15.5.4.16_A1_T13.js | 15 +- .../toLowerCase/S15.5.4.16_A1_T14.js | 2 +- .../prototype/toLowerCase/S15.5.4.16_A1_T2.js | 2 +- .../prototype/toLowerCase/S15.5.4.16_A1_T3.js | 2 +- .../prototype/toLowerCase/S15.5.4.16_A1_T4.js | 12 +- .../prototype/toLowerCase/S15.5.4.16_A1_T5.js | 8 +- .../prototype/toLowerCase/S15.5.4.16_A1_T6.js | 2 +- .../prototype/toLowerCase/S15.5.4.16_A1_T7.js | 4 +- .../prototype/toLowerCase/S15.5.4.16_A1_T8.js | 4 +- .../prototype/toLowerCase/S15.5.4.16_A1_T9.js | 18 +- .../prototype/toLowerCase/S15.5.4.16_A2_T1.js | 6 +- .../prototype/toLowerCase/S15.5.4.16_A6.js | 2 +- .../prototype/toLowerCase/S15.5.4.16_A7.js | 2 +- .../prototype/toLowerCase/S15.5.4.16_A8.js | 10 +- .../prototype/toLowerCase/S15.5.4.16_A9.js | 4 +- .../prototype/toString/S15.5.4.2_A1_T1.js | 4 +- .../prototype/toString/S15.5.4.2_A1_T2.js | 4 +- .../prototype/toString/S15.5.4.2_A1_T3.js | 2 +- .../prototype/toString/S15.5.4.2_A1_T4.js | 4 +- .../prototype/toString/S15.5.4.2_A2_T1.js | 4 +- .../prototype/toString/S15.5.4.2_A2_T2.js | 8 +- .../prototype/toString/S15.5.4.2_A3_T1.js | 8 +- .../prototype/toString/S15.5.4.2_A4_T1.js | 12 +- .../prototype/toUpperCase/S15.5.4.18_A10.js | 8 +- .../prototype/toUpperCase/S15.5.4.18_A11.js | 4 +- .../prototype/toUpperCase/S15.5.4.18_A1_T1.js | 2 +- .../toUpperCase/S15.5.4.18_A1_T10.js | 10 +- .../toUpperCase/S15.5.4.18_A1_T11.js | 12 +- .../toUpperCase/S15.5.4.18_A1_T12.js | 15 +- .../toUpperCase/S15.5.4.18_A1_T13.js | 15 +- .../toUpperCase/S15.5.4.18_A1_T14.js | 2 +- .../prototype/toUpperCase/S15.5.4.18_A1_T2.js | 2 +- .../prototype/toUpperCase/S15.5.4.18_A1_T3.js | 2 +- .../prototype/toUpperCase/S15.5.4.18_A1_T4.js | 12 +- .../prototype/toUpperCase/S15.5.4.18_A1_T5.js | 8 +- .../prototype/toUpperCase/S15.5.4.18_A1_T6.js | 2 +- .../prototype/toUpperCase/S15.5.4.18_A1_T7.js | 4 +- .../prototype/toUpperCase/S15.5.4.18_A1_T8.js | 4 +- .../prototype/toUpperCase/S15.5.4.18_A1_T9.js | 18 +- .../prototype/toUpperCase/S15.5.4.18_A2_T1.js | 6 +- .../prototype/toUpperCase/S15.5.4.18_A6.js | 2 +- .../prototype/toUpperCase/S15.5.4.18_A7.js | 2 +- .../prototype/toUpperCase/S15.5.4.18_A8.js | 10 +- .../prototype/toUpperCase/S15.5.4.18_A9.js | 4 +- .../String/prototype/trim/15.5.4.20-0-1.js | 2 +- .../String/prototype/trim/15.5.4.20-1-1.js | 2 +- .../String/prototype/trim/15.5.4.20-1-2.js | 2 +- .../String/prototype/trim/15.5.4.20-1-8.js | 2 +- .../String/prototype/trim/15.5.4.20-1-9.js | 2 +- .../String/prototype/trim/15.5.4.20-2-38.js | 10 +- .../String/prototype/trim/15.5.4.20-2-39.js | 10 +- .../String/prototype/trim/15.5.4.20-2-40.js | 24 +- .../String/prototype/trim/15.5.4.20-2-41.js | 24 +- .../String/prototype/trim/15.5.4.20-2-42.js | 26 +- .../String/prototype/trim/15.5.4.20-2-43.js | 30 +- .../String/prototype/trim/15.5.4.20-2-44.js | 2 +- .../String/prototype/trim/15.5.4.20-2-45.js | 4 +- .../String/prototype/trim/15.5.4.20-2-46.js | 4 +- .../String/prototype/trim/15.5.4.20-2-49.js | 2 +- .../String/prototype/trim/15.5.4.20-2-50.js | 2 +- .../String/prototype/trim/15.5.4.20-2-51.js | 4 +- .../String/prototype/trim/15.5.4.20-3-1.js | 2 +- .../String/prototype/trim/15.5.4.20-3-5.js | 2 +- .../String/prototype/trim/15.5.4.20-4-1.js | 2 +- .../String/prototype/trim/15.5.4.20-4-59.js | 2 +- .../prototype/trimEnd/this-value-number.js | 1 - ...-object-cannot-convert-to-primitive-err.js | 4 +- ...-value-object-toprimitive-meth-priority.js | 12 +- ...his-value-object-tostring-meth-priority.js | 10 +- ...this-value-object-valueof-meth-priority.js | 4 +- .../trimEnd/this-value-symbol-typeerror.js | 4 +- .../prototype/trimStart/this-value-number.js | 1 - ...-object-cannot-convert-to-primitive-err.js | 4 +- ...-value-object-toprimitive-meth-priority.js | 12 +- ...his-value-object-tostring-meth-priority.js | 10 +- ...this-value-object-valueof-meth-priority.js | 4 +- .../trimStart/this-value-symbol-typeerror.js | 4 +- .../prototype/valueOf/S15.5.4.3_A1_T1.js | 4 +- .../prototype/valueOf/S15.5.4.3_A1_T2.js | 4 +- .../prototype/valueOf/S15.5.4.3_A1_T3.js | 2 +- .../prototype/valueOf/S15.5.4.3_A1_T4.js | 4 +- .../prototype/valueOf/S15.5.4.3_A2_T1.js | 4 +- .../prototype/valueOf/S15.5.4.3_A2_T2.js | 8 +- .../return-the-string-value-from-template.js | 2 +- .../String/raw/special-characters.js | 5 +- ...ubstitutions-are-appended-on-same-index.js | 2 +- .../String/raw/zero-literal-segments.js | 2 +- .../Symbol.toStringTag.js | 2 +- .../StringIteratorPrototype/ancestry.js | 2 +- .../next/next-missing-internal-slots.js | 2 +- test/built-ins/Symbol/constructor.js | 12 +- test/built-ins/Symbol/prototype/intrinsic.js | 6 +- .../Symbol/species/builtin-getter-name.js | 5 +- test/built-ins/Symbol/species/subclassing.js | 4 +- .../ThrowTypeError/distinct-cross-realm.js | 5 +- test/built-ins/ThrowTypeError/extensible.js | 5 +- .../ThrowTypeError/forbidden-arguments.js | 5 +- .../ThrowTypeError/forbidden-caller.js | 5 +- test/built-ins/ThrowTypeError/frozen.js | 5 +- test/built-ins/ThrowTypeError/is-function.js | 5 +- test/built-ins/ThrowTypeError/length.js | 5 +- test/built-ins/ThrowTypeError/name.js | 5 +- test/built-ins/ThrowTypeError/prototype.js | 5 +- .../ThrowTypeError/throws-type-error.js | 5 +- .../unique-per-realm-function-proto.js | 5 +- .../unique-per-realm-non-simple.js | 5 +- .../unique-per-realm-unmapped-args.js | 5 +- .../TypedArray/from/arylk-to-length-error.js | 4 +- .../TypedArray/from/mapfn-is-not-callable.js | 2 +- .../from/this-is-not-constructor.js | 4 +- .../TypedArray/of/invoked-as-func.js | 3 +- .../TypedArray/of/this-is-not-constructor.js | 4 +- .../copyWithin/coerced-values-end.js | 18 +- .../copyWithin/coerced-values-start.js | 24 +- .../copyWithin/coerced-values-target.js | 24 +- .../prototype/copyWithin/negative-end.js | 24 +- .../copyWithin/negative-out-of-bounds-end.js | 30 +- .../negative-out-of-bounds-start.js | 24 +- .../negative-out-of-bounds-target.js | 12 +- .../prototype/copyWithin/negative-start.js | 18 +- .../prototype/copyWithin/negative-target.js | 9 +- .../non-negative-out-of-bounds-end.js | 12 +- ...negative-out-of-bounds-target-and-start.js | 21 +- .../non-negative-target-and-start.js | 12 +- .../non-negative-target-start-and-end.js | 15 +- .../prototype/copyWithin/undefined-end.js | 6 +- .../prototype/every/callbackfn-this.js | 4 +- .../returns-false-if-any-cb-returns-false.js | 3 +- .../returns-true-if-every-cb-returns-true.js | 9 +- .../prototype/every/values-are-not-cached.js | 2 +- .../fill/fill-values-conversion-once.js | 7 +- .../prototype/fill/fill-values-non-numeric.js | 2 +- .../TypedArray/prototype/fill/fill-values.js | 3 +- .../prototype/filter/callbackfn-this.js | 4 +- .../filter/result-does-not-share-buffer.js | 8 +- .../result-empty-callbackfn-returns-false.js | 3 +- .../result-full-callbackfn-returns-true.js | 13 +- .../speciesctor-get-ctor-returns-throws.js | 4 +- .../prototype/filter/speciesctor-get-ctor.js | 4 +- .../filter/speciesctor-get-species-abrupt.js | 4 +- ...ctor-get-species-custom-ctor-invocation.js | 4 +- ...r-get-species-custom-ctor-length-throws.js | 4 +- ...ciesctor-get-species-custom-ctor-length.js | 8 +- .../speciesctor-get-species-custom-ctor.js | 4 +- .../prototype/filter/values-are-not-cached.js | 2 +- .../prototype/filter/values-are-set.js | 4 +- .../find/get-length-ignores-length-prop.js | 4 +- .../find/predicate-call-changes-value.js | 6 +- ...rn-found-value-predicate-result-is-true.js | 20 +- ...efined-if-predicate-returns-false-value.js | 24 +- .../get-length-ignores-length-prop.js | 4 +- .../findIndex/predicate-call-changes-value.js | 8 +- .../predicate-call-this-non-strict.js | 2 +- .../predicate-is-not-callable-throws.js | 1 - .../return-index-predicate-result-is-true.js | 20 +- ...ve-one-if-predicate-returns-false-value.js | 24 +- .../prototype/forEach/arraylength-internal.js | 5 +- .../prototype/forEach/callbackfn-this.js | 4 +- .../forEach/values-are-not-cached.js | 2 +- .../get-length-uses-internal-arraylength.js | 12 +- .../get-length-uses-internal-arraylength.js | 12 +- ...sult-from-tostring-on-each-simple-value.js | 13 +- ...ator-result-from-tostring-on-each-value.js | 13 +- .../get-length-uses-internal-arraylength.js | 12 +- .../prototype/map/arraylength-internal.js | 5 +- .../prototype/map/callbackfn-this.js | 4 +- .../prototype/map/values-are-not-cached.js | 2 +- .../prototype/reduce/callbackfn-this.js | 4 +- .../prototype/reduce/values-are-not-cached.js | 2 +- .../prototype/reduceRight/callbackfn-this.js | 4 +- .../reduceRight/values-are-not-cached.js | 2 +- .../set/array-arg-offset-tointeger.js | 12 +- ...rray-arg-src-tonumber-value-conversions.js | 2 +- ...arg-src-tonumber-value-type-conversions.js | 4 +- .../set/typedarray-arg-offset-tointeger.js | 12 +- ...r-get-species-custom-ctor-length-throws.js | 2 +- ...ciesctor-get-species-custom-ctor-length.js | 2 +- .../prototype/slice/tointeger-end.js | 3 +- .../prototype/slice/tointeger-start.js | 3 +- .../prototype/some/callbackfn-this.js | 4 +- ...returns-false-if-every-cb-returns-false.js | 3 +- .../returns-true-if-any-cb-returns-true.js | 9 +- .../some/this-is-not-typedarray-instance.js | 2 +- .../prototype/some/values-are-not-cached.js | 2 +- .../prototype/sort/return-same-instance.js | 4 +- .../return-abrupt-from-begin-symbol.js | 2 +- .../subarray/return-abrupt-from-begin.js | 4 +- .../subarray/return-abrupt-from-end.js | 4 +- .../prototype/subarray/tointeger-begin.js | 3 +- .../prototype/subarray/tointeger-end.js | 3 +- .../prototype/not-typedarray-object.js | 2 +- .../BigInt64Array/prototype/proto.js | 2 +- .../prototype/not-typedarray-object.js | 2 +- .../BigUint64Array/prototype/proto.js | 2 +- ...r-arg-byteoffset-to-number-detachbuffer.js | 7 +- ...uffer-arg-length-to-number-detachbuffer.js | 7 +- ...-typedarray-backed-by-sharedarraybuffer.js | 2 +- .../TypedArrays/from/arylk-to-length-error.js | 4 +- .../TypedArrays/from/nan-conversion.js | 8 +- .../from/new-instance-from-ordinary-object.js | 6 +- .../from/new-instance-from-sparse-array.js | 8 +- .../from/new-instance-from-zero.js | 8 +- .../from/this-is-not-constructor.js | 4 +- .../conversion-operation-consistent-nan.js | 4 +- .../DefineOwnProperty/conversion-operation.js | 4 +- .../DefineOwnProperty/desc-value-throws.js | 4 +- .../DefineOwnProperty/detached-buffer.js | 4 +- .../key-is-not-canonical-index.js | 2 +- .../key-is-not-numeric-index.js | 4 +- .../non-extensible-new-key.js | 4 +- .../non-extensible-redefine-key.js | 4 +- .../internals/DefineOwnProperty/set-value.js | 8 +- .../this-is-not-extensible.js | 8 +- .../tonumber-value-detached-buffer.js | 24 +- .../Get/key-is-not-canonical-index.js | 4 +- .../internals/Get/key-is-not-numeric-index.js | 4 +- .../internals/Get/key-is-symbol.js | 4 +- .../detached-buffer-key-is-not-number.js | 4 +- .../detached-buffer-key-is-symbol.js | 4 +- .../key-is-not-canonical-index.js | 4 +- .../key-is-not-numeric-index.js | 4 +- .../internals/GetOwnProperty/key-is-symbol.js | 4 +- ...pt-from-ordinary-has-parent-hasproperty.js | 4 +- .../detached-buffer-key-is-not-number.js | 4 +- .../detached-buffer-key-is-symbol.js | 4 +- .../infinity-with-detached-buffer.js | 2 +- .../HasProperty/key-is-not-canonical-index.js | 4 +- .../HasProperty/key-is-not-numeric-index.js | 4 +- .../internals/HasProperty/key-is-symbol.js | 4 +- .../Set/tonumber-value-detached-buffer.js | 18 +- ...bject-arg-as-generator-iterable-returns.js | 5 +- .../object-arg-iterating-throws.js | 2 +- ...object-arg-iterator-not-callable-throws.js | 2 +- .../TypedArrays/object-arg-iterator-throws.js | 2 +- .../of/argument-number-value-throws.js | 1 - test/built-ins/TypedArrays/of/inherited.js | 2 +- .../TypedArrays/of/invoked-as-func.js | 3 +- .../TypedArrays/of/nan-conversion.js | 6 +- .../TypedArrays/of/new-instance-from-zero.js | 6 +- .../TypedArrays/of/this-is-not-constructor.js | 4 +- ...d-when-species-retrieved-different-type.js | 54 ++-- ...tached-when-species-retrieved-same-type.js | 44 +-- ...tor-buffer-ctor-species-not-ctor-throws.js | 4 +- ...or-buffer-ctor-species-prototype-throws.js | 4 +- ...-same-ctor-buffer-ctor-species-not-ctor.js | 4 +- ...or-buffer-ctor-species-prototype-throws.js | 2 +- test/built-ins/WeakMap/iterable.js | 5 +- .../iterator-close-after-set-failure.js | 9 +- ...tor-items-are-not-object-close-iterator.js | 5 +- .../WeakMap/iterator-items-are-not-object.js | 4 +- test/built-ins/WeakMap/name.js | 4 +- .../delete/delete-entry-initial-iterable.js | 4 +- .../prototype/get/returns-undefined.js | 2 +- .../WeakMap/prototype/get/returns-value.js | 4 +- .../returns-this-when-ignoring-duplicate.js | 4 +- .../iterator-close-after-add-failure.js | 9 +- test/built-ins/WeakSet/name.js | 4 +- test/built-ins/WeakSet/undefined-newtarget.js | 4 +- .../built-ins/decodeURI/S15.1.3.1_A1.10_T1.js | 7 +- .../built-ins/decodeURI/S15.1.3.1_A1.11_T1.js | 7 +- .../built-ins/decodeURI/S15.1.3.1_A1.11_T2.js | 7 +- .../built-ins/decodeURI/S15.1.3.1_A1.12_T1.js | 7 +- .../built-ins/decodeURI/S15.1.3.1_A1.12_T2.js | 7 +- .../built-ins/decodeURI/S15.1.3.1_A1.12_T3.js | 7 +- test/built-ins/decodeURI/S15.1.3.1_A1.1_T1.js | 8 +- test/built-ins/decodeURI/S15.1.3.1_A1.2_T1.js | 7 +- test/built-ins/decodeURI/S15.1.3.1_A1.2_T2.js | 7 +- test/built-ins/decodeURI/S15.1.3.1_A2.1_T1.js | 2 +- test/built-ins/decodeURI/S15.1.3.1_A2.2_T1.js | 52 ++-- test/built-ins/decodeURI/S15.1.3.1_A5.1.js | 2 +- test/built-ins/decodeURI/S15.1.3.1_A5.5.js | 2 +- test/built-ins/decodeURI/S15.1.3.1_A6_T1.js | 66 ++++- .../decodeURIComponent/S15.1.3.2_A1.10_T1.js | 7 +- .../decodeURIComponent/S15.1.3.2_A1.11_T1.js | 7 +- .../decodeURIComponent/S15.1.3.2_A1.11_T2.js | 7 +- .../decodeURIComponent/S15.1.3.2_A1.12_T1.js | 7 +- .../decodeURIComponent/S15.1.3.2_A1.12_T2.js | 7 +- .../decodeURIComponent/S15.1.3.2_A1.12_T3.js | 7 +- .../decodeURIComponent/S15.1.3.2_A1.1_T1.js | 8 +- .../decodeURIComponent/S15.1.3.2_A1.2_T1.js | 7 +- .../decodeURIComponent/S15.1.3.2_A1.2_T2.js | 7 +- .../decodeURIComponent/S15.1.3.2_A2.1_T1.js | 2 +- .../decodeURIComponent/S15.1.3.2_A5.1.js | 2 +- .../decodeURIComponent/S15.1.3.2_A5.5.js | 2 +- .../decodeURIComponent/S15.1.3.2_A6_T1.js | 66 ++++- test/built-ins/encodeURI/S15.1.3.3_A2.1_T1.js | 56 ++-- test/built-ins/encodeURI/S15.1.3.3_A2.2_T1.js | 44 +-- test/built-ins/encodeURI/S15.1.3.3_A5.1.js | 2 +- test/built-ins/encodeURI/S15.1.3.3_A5.5.js | 2 +- test/built-ins/encodeURI/S15.1.3.3_A6_T1.js | 66 ++++- .../encodeURIComponent/S15.1.3.4_A2.1_T1.js | 46 +-- .../encodeURIComponent/S15.1.3.4_A2.2_T1.js | 44 +-- .../encodeURIComponent/S15.1.3.4_A5.1.js | 2 +- .../encodeURIComponent/S15.1.3.4_A5.5.js | 2 +- .../encodeURIComponent/S15.1.3.4_A6_T1.js | 66 ++++- test/built-ins/eval/length-enumerable.js | 2 +- test/built-ins/eval/prop-desc-enumerable.js | 2 +- test/built-ins/global/10.2.1.1.3-4-16-s.js | 2 +- test/built-ins/global/10.2.1.1.3-4-18-s.js | 2 +- test/built-ins/global/10.2.1.1.3-4-22-s.js | 12 +- test/built-ins/global/10.2.1.1.3-4-27-s.js | 12 +- test/built-ins/global/S10.2.3_A1.1_T1.js | 6 +- test/built-ins/global/S10.2.3_A1.1_T2.js | 18 +- test/built-ins/global/S10.2.3_A1.1_T3.js | 30 +- test/built-ins/global/S10.2.3_A1.1_T4.js | 2 +- test/built-ins/global/S10.2.3_A1.2_T1.js | 6 +- test/built-ins/global/S10.2.3_A1.2_T2.js | 18 +- test/built-ins/global/S10.2.3_A1.2_T3.js | 30 +- test/built-ins/global/S10.2.3_A1.2_T4.js | 2 +- test/built-ins/global/S10.2.3_A1.3_T1.js | 28 +- test/built-ins/global/S10.2.3_A1.3_T2.js | 92 +++--- test/built-ins/global/S10.2.3_A1.3_T3.js | 152 +++++----- test/built-ins/global/S10.2.3_A1.3_T4.js | 12 +- test/built-ins/global/S10.2.3_A2.1_T1.js | 8 +- test/built-ins/global/S10.2.3_A2.1_T2.js | 20 +- test/built-ins/global/S10.2.3_A2.1_T3.js | 30 +- test/built-ins/global/S10.2.3_A2.1_T4.js | 2 +- test/built-ins/global/S10.2.3_A2.2_T1.js | 8 +- test/built-ins/global/S10.2.3_A2.2_T2.js | 20 +- test/built-ins/global/S10.2.3_A2.2_T3.js | 32 +-- test/built-ins/global/S10.2.3_A2.2_T4.js | 2 +- test/built-ins/global/S10.2.3_A2.3_T1.js | 22 +- test/built-ins/global/S10.2.3_A2.3_T2.js | 46 +-- test/built-ins/global/S10.2.3_A2.3_T3.js | 70 ++--- test/built-ins/global/S10.2.3_A2.3_T4.js | 14 +- test/built-ins/global/S15.1_A1_T1.js | 2 +- test/built-ins/global/S15.1_A1_T2.js | 2 +- test/built-ins/global/S15.1_A2_T1.js | 2 +- test/built-ins/parseFloat/S15.1.2.3_A1_T7.js | 66 ++++- test/built-ins/parseFloat/S15.1.2.3_A2_T10.js | 10 +- test/built-ins/parseFloat/S15.1.2.3_A7.1.js | 2 +- test/built-ins/parseFloat/S15.1.2.3_A7.5.js | 2 +- ...teral-dd-dot-dd-ep-sign-plus-dds-nsl-dd.js | 1 - test/built-ins/parseInt/S15.1.2.2_A1_T7.js | 66 ++++- test/built-ins/parseInt/S15.1.2.2_A2_T10.js | 10 +- test/built-ins/parseInt/S15.1.2.2_A3.1_T7.js | 66 ++++- test/built-ins/parseInt/S15.1.2.2_A5.2_T1.js | 36 +-- test/built-ins/parseInt/S15.1.2.2_A5.2_T2.js | 36 +-- test/built-ins/parseInt/S15.1.2.2_A6.1_T1.js | 2 +- test/built-ins/parseInt/S15.1.2.2_A7.2_T2.js | 40 +-- test/built-ins/parseInt/S15.1.2.2_A7.3_T1.js | 4 +- test/built-ins/parseInt/S15.1.2.2_A7.3_T2.js | 40 +-- test/built-ins/parseInt/S15.1.2.2_A8.js | 4 +- test/built-ins/parseInt/S15.1.2.2_A9.1.js | 2 +- test/built-ins/parseInt/S15.1.2.2_A9.5.js | 2 +- test/built-ins/undefined/15.1.1.3-2.js | 2 +- test/built-ins/undefined/S15.1.1.3_A1.js | 6 +- test/built-ins/undefined/S15.1.1.3_A3_T2.js | 2 +- test/built-ins/undefined/S15.1.1.3_A4.js | 2 +- 8371 files changed, 64939 insertions(+), 56826 deletions(-) diff --git a/test/built-ins/Array/15.4.5-1.js b/test/built-ins/Array/15.4.5-1.js index d8a00abd4a..6eb1ae1271 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 945bf9ae4e..d92747a324 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 924c48f479..27abd4c55b 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 95deeeeaee..cbee1450ca 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 424f8eb9b4..abdb5116d1 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 89b2934f63..0196ec0394 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 971ce382cd..92f2c1d917 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 383fefd736..679db6fb47 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 895ae2f4f2..cd3a2c13de 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 74ccc645eb..3992943a4a 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 59b528f6a3..de6c5a1d81 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 97aaaa52b7..e189774b0c 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 e4c088a91d..05dbf789d0 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 eb722c4ab6..493457eb95 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 3006c94e7d..b48f6d6c42 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 b3000c1dba..45ebd19d6a 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 90525f07ff..0c4c807db0 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 16e7904b8a..56ef2426ec 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 12dfb1943b..6edcf113b4 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 8f9ac5b8c9..39a8a330a7 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 5ab53b122a..f29a2a9b18 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 ddd3579699..da278f12bc 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 6d7eb65791..5b3f13f369 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 95ab3851b9..c2d6d3a75e 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 74c053efcd..fa5dff3e13 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 1a2a3e63bc..7c5f208763 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 8b04787068..7aaf2b628e 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 a7a3a3caf5..de1f1cd0ac 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 3036b8acc3..349c592ee3 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 645a512eeb..ec8acc45a3 100644 --- a/test/built-ins/Array/S15.4_A1.1_T9.js +++ b/test/built-ins/Array/S15.4_A1.1_T9.js @@ -11,7 +11,11 @@ description: If Type(value) is Object, evaluate ToPrimitive(value, String) //CHECK#1 var x = []; -var object = {valueOf: function() {return 1}}; +var object = { + valueOf: function() { + return 1 + } +}; x[object] = 0; if (x["[object Object]"] !== 0) { $ERROR('#1: x = []; var object = {valueOf: function() {return 1}}; x[object] = 0; x["[object Object]"] === 0. Actual: ' + (x["[object Object]"])); @@ -19,15 +23,29 @@ if (x["[object Object]"] !== 0) { //CHECK#2 x = []; -var object = {valueOf: function() {return 1}, toString: function() {return 0}}; +var object = { + valueOf: function() { + return 1 + }, + toString: function() { + return 0 + } +}; x[object] = 0; if (x[0] !== 0) { $ERROR('#2: x = []; var object = {valueOf: function() {return 1}, toString: function() {return 0}}; x[object] = 0; x[0] === 0. Actual: ' + (x[0])); -} +} //CHECK#3 x = []; -var object = {valueOf: function() {return 1}, toString: function() {return {}}}; +var object = { + valueOf: function() { + return 1 + }, + toString: function() { + return {} + } +}; x[object] = 0; if (x[1] !== 0) { $ERROR('#3: x = []; var object = {valueOf: function() {return 1}, toString: function() {return {}}}; x[object] = 0; x[1] === 0. Actual: ' + (x[1])); @@ -35,8 +53,15 @@ if (x[1] !== 0) { //CHECK#4 try { - x = []; - var object = {valueOf: function() {throw "error"}, toString: function() {return 1}}; + x = []; + var object = { + valueOf: function() { + throw "error" + }, + toString: function() { + return 1 + } + }; x[object] = 0; if (x[1] !== 0) { $ERROR('#4.1: x = []; var object = {valueOf: function() {throw "error"}, toString: function() {return 1}}; x[object] = 0; x[1] === 1. Actual: ' + (x[1])); @@ -52,7 +77,11 @@ catch (e) { //CHECK#5 x = []; -var object = {toString: function() {return 1}}; +var object = { + toString: function() { + return 1 + } +}; x[object] = 0; if (x[1] !== 0) { $ERROR('#5: x = []; var object = {toString: function() {return 1}}; x[object] = 0; x[1] === 0. Actual: ' + (x[1])); @@ -60,7 +89,14 @@ if (x[1] !== 0) { //CHECK#6 x = []; -var object = {valueOf: function() {return {}}, toString: function() {return 1}} +var object = { + valueOf: function() { + return {} + }, + toString: function() { + return 1 + } +} x[object] = 0; if (x[1] !== 0) { $ERROR('#6: x = []; var object = {valueOf: function() {return {}}, toString: function() {return 1}}; x[object] = 0; x[1] === 0. Actual: ' + (x[1])); @@ -69,25 +105,39 @@ if (x[1] !== 0) { //CHECK#7 try { x = []; - var object = {valueOf: function() {return 1}, toString: function() {throw "error"}}; - x[object]; + var object = { + valueOf: function() { + return 1 + }, + toString: function() { + throw "error" + } + }; + x[object]; $ERROR('#7.1: x = []; var object = {valueOf: function() {return 1}, toString: function() {throw "error"}}; x[object] throw "error". Actual: ' + (x[object])); -} +} catch (e) { if (e !== "error") { $ERROR('#7.2: x = []; var object = {valueOf: function() {return 1}, toString: function() {throw "error"}}; x[object] throw "error". Actual: ' + (e)); - } + } } //CHECK#8 try { x = []; - var object = {valueOf: function() {return {}}, toString: function() {return {}}}; + var object = { + valueOf: function() { + return {} + }, + toString: function() { + return {} + } + }; x[object]; $ERROR('#8.1: x = []; var object = {valueOf: function() {return {}}, toString: function() {return {}}}; x[object] throw TypeError. Actual: ' + (x[object])); -} +} catch (e) { if ((e instanceof TypeError) !== true) { $ERROR('#8.2: x = []; var object = {valueOf: function() {return {}}, toString: function() {return {}}}; x[object] throw TypeError. Actual: ' + (e)); - } + } } diff --git a/test/built-ins/Array/from/Array.from_forwards-length-for-array-likes.js b/test/built-ins/Array/from/Array.from_forwards-length-for-array-likes.js index 4718751cb2..311bc7780f 100644 --- a/test/built-ins/Array/from/Array.from_forwards-length-for-array-likes.js +++ b/test/built-ins/Array/from/Array.from_forwards-length-for-array-likes.js @@ -28,7 +28,9 @@ function MyCollection() { this.args = arguments; } -result = Array.from.call(MyCollection, {length: 42}); +result = Array.from.call(MyCollection, { + length: 42 +}); assert.sameValue(result.args.length, 1); assert.sameValue(result.args[0], 42); diff --git a/test/built-ins/Array/from/calling-from-valid-1-noStrict.js b/test/built-ins/Array/from/calling-from-valid-1-noStrict.js index 201736051e..eb0d24aa44 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 8415045f77..68abe0f44a 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 50be8469c8..139c9818c1 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 9aafe597ac..a8ff21a0c1 100644 --- a/test/built-ins/Array/from/elements-added-after.js +++ b/test/built-ins/Array/from/elements-added-after.js @@ -10,23 +10,24 @@ es6id: 22.1.2.1 var arrayIndex = -1; var originalLength = 7; var obj = { - length: originalLength, - 0: 2, - 1: 4, - 2: 8, - 3: 16, - 4: 32, - 5: 64, - 6: 128 + length: originalLength, + 0: 2, + 1: 4, + 2: 8, + 3: 16, + 4: 32, + 5: 64, + 6: 128 }; -var array = [ 2, 4, 8, 16, 32, 64, 128 ]; +var array = [2, 4, 8, 16, 32, 64, 128]; + function mapFn(value, index) { - arrayIndex++; - assert.sameValue(value, obj[arrayIndex], "Value mismatch in mapFn at index " + index + "."); - assert.sameValue(index, arrayIndex, "Index mismatch in mapFn."); - obj[originalLength + arrayIndex] = 2 * arrayIndex + 1; + arrayIndex++; + assert.sameValue(value, obj[arrayIndex], "Value mismatch in mapFn at index " + index + "."); + assert.sameValue(index, arrayIndex, "Index mismatch in mapFn."); + obj[originalLength + arrayIndex] = 2 * arrayIndex + 1; - return obj[arrayIndex]; + return obj[arrayIndex]; } @@ -34,5 +35,5 @@ var a = Array.from(obj, mapFn); assert.sameValue(a.length, array.length, "Length mismatch."); for (var j = 0; j < a.length; j++) { - assert.sameValue(a[j], array[j], "Element mismatch for array at index " + j + "."); + assert.sameValue(a[j], array[j], "Element mismatch for array at index " + j + "."); } diff --git a/test/built-ins/Array/from/elements-deleted-after.js b/test/built-ins/Array/from/elements-deleted-after.js index d2d72e51e6..02f7453293 100644 --- a/test/built-ins/Array/from/elements-deleted-after.js +++ b/test/built-ins/Array/from/elements-deleted-after.js @@ -9,17 +9,18 @@ esid: sec-array.from es6id: 22.1.2.1 ---*/ -var originalArray = [ 0, 1, -2, 4, -8, 16 ]; -var array = [ 0, 1, -2, 4, -8, 16 ]; +var originalArray = [0, 1, -2, 4, -8, 16]; +var array = [0, 1, -2, 4, -8, 16]; var a = []; var arrayIndex = -1; + function mapFn(value, index) { - this.arrayIndex++; - assert.sameValue(value, array[this.arrayIndex], "Value mismatch in mapFn at index " + index + "."); - assert.sameValue(index, this.arrayIndex, "Index mismatch in mapFn."); + this.arrayIndex++; + assert.sameValue(value, array[this.arrayIndex], "Value mismatch in mapFn at index " + index + "."); + assert.sameValue(index, this.arrayIndex, "Index mismatch in mapFn."); - array.splice(array.length - 1, 1); - return 127; + array.splice(array.length - 1, 1); + return 127; } @@ -28,5 +29,5 @@ a = Array.from(array, mapFn, this); assert.sameValue(a.length, originalArray.length / 2, "Length mismatch. Old array : " + (originalArray.length / 2) + ". array : " + a.length + "."); for (var j = 0; j < originalArray.length / 2; j++) { - assert.sameValue(a[j], 127, "Element mismatch for mapped array at index " + j + "."); + assert.sameValue(a[j], 127, "Element mismatch for mapped array at index " + j + "."); } diff --git a/test/built-ins/Array/from/elements-updated-after.js b/test/built-ins/Array/from/elements-updated-after.js index 6c859e23ac..358e94b46e 100644 --- a/test/built-ins/Array/from/elements-updated-after.js +++ b/test/built-ins/Array/from/elements-updated-after.js @@ -7,21 +7,22 @@ esid: sec-array.from es6id: 22.1.2.1 ---*/ -var array = [ 127, 4, 8, 16, 32, 64, 128 ]; +var array = [127, 4, 8, 16, 32, 64, 128]; var arrayIndex = -1; + function mapFn(value, index) { - arrayIndex++; - if (index + 1 < array.length) { - array[index + 1] = 127; - } - assert.sameValue(value, 127, "Value mismatch in mapFn at index " + index + "."); - assert.sameValue(index, arrayIndex, "Index mismatch in mapFn."); + arrayIndex++; + if (index + 1 < array.length) { + array[index + 1] = 127; + } + assert.sameValue(value, 127, "Value mismatch in mapFn at index " + index + "."); + assert.sameValue(index, arrayIndex, "Index mismatch in mapFn."); - return value; + return value; } var a = Array.from(array, mapFn); assert.sameValue(a.length, array.length, "Length mismatch."); for (var j = 0; j < a.length; j++) { - assert.sameValue(a[j], 127, "Element mismatch for mapped array."); + assert.sameValue(a[j], 127, "Element mismatch for mapped array."); } diff --git a/test/built-ins/Array/from/iter-cstm-ctor.js b/test/built-ins/Array/from/iter-cstm-ctor.js index dfd64566fc..d9a137695d 100644 --- a/test/built-ins/Array/from/iter-cstm-ctor.js +++ b/test/built-ins/Array/from/iter-cstm-ctor.js @@ -27,7 +27,9 @@ var items = {}; items[Symbol.iterator] = function() { return { next: function() { - return { done: true }; + return { + done: true + }; } }; }; diff --git a/test/built-ins/Array/from/iter-map-fn-args.js b/test/built-ins/Array/from/iter-map-fn-args.js index f63fec612f..56097d708c 100644 --- a/test/built-ins/Array/from/iter-map-fn-args.js +++ b/test/built-ins/Array/from/iter-map-fn-args.js @@ -26,8 +26,14 @@ features: [Symbol.iterator] ---*/ var args = []; -var firstResult = { done: false, value: {} }; -var secondResult = { done: false, value: {} }; +var firstResult = { + done: false, + value: {} +}; +var secondResult = { + done: false, + value: {} +}; var mapFn = function(value, idx) { args.push(arguments); }; @@ -40,7 +46,9 @@ items[Symbol.iterator] = function() { next: function() { var result = nextResult; nextResult = nextNextResult; - nextNextResult = { done: true }; + nextNextResult = { + done: true + }; return result; } diff --git a/test/built-ins/Array/from/iter-map-fn-return.js b/test/built-ins/Array/from/iter-map-fn-return.js index 58e175048f..484ce71746 100644 --- a/test/built-ins/Array/from/iter-map-fn-return.js +++ b/test/built-ins/Array/from/iter-map-fn-return.js @@ -25,8 +25,14 @@ features: [Symbol.iterator] ---*/ var thisVals = []; -var nextResult = { done: false, value: {} }; -var nextNextResult = { done: false, value: {} }; +var nextResult = { + done: false, + value: {} +}; +var nextNextResult = { + done: false, + value: {} +}; var firstReturnVal = {}; var secondReturnVal = {}; var mapFn = function(value, idx) { @@ -45,7 +51,9 @@ items[Symbol.iterator] = function() { next: function() { var result = nextResult; nextResult = nextNextResult; - nextNextResult = { done: true }; + nextNextResult = { + done: true + }; return result; } diff --git a/test/built-ins/Array/from/iter-map-fn-this-arg.js b/test/built-ins/Array/from/iter-map-fn-this-arg.js index 5e12157bb3..d10e9f8626 100644 --- a/test/built-ins/Array/from/iter-map-fn-this-arg.js +++ b/test/built-ins/Array/from/iter-map-fn-this-arg.js @@ -23,8 +23,14 @@ features: [Symbol.iterator] ---*/ var thisVals = []; -var nextResult = { done: false, value: {} }; -var nextNextResult = { done: false, value: {} }; +var nextResult = { + done: false, + value: {} +}; +var nextNextResult = { + done: false, + value: {} +}; var mapFn = function() { thisVals.push(this); }; @@ -36,7 +42,9 @@ items[Symbol.iterator] = function() { next: function() { var result = nextResult; nextResult = nextNextResult; - nextNextResult = { done: true }; + nextNextResult = { + done: true + }; return result; } diff --git a/test/built-ins/Array/from/iter-map-fn-this-non-strict.js b/test/built-ins/Array/from/iter-map-fn-this-non-strict.js index 81022307aa..0bb30453ea 100644 --- a/test/built-ins/Array/from/iter-map-fn-this-non-strict.js +++ b/test/built-ins/Array/from/iter-map-fn-this-non-strict.js @@ -24,20 +24,30 @@ flags: [noStrict] ---*/ var thisVals = []; -var nextResult = { done: false, value: {} }; -var nextNextResult = { done: false, value: {} }; +var nextResult = { + done: false, + value: {} +}; +var nextNextResult = { + done: false, + value: {} +}; var mapFn = function() { thisVals.push(this); }; var items = {}; -var global = function() { return this; }(); +var global = function() { + return this; +}(); items[Symbol.iterator] = function() { return { next: function() { var result = nextResult; nextResult = nextNextResult; - nextNextResult = { done: true }; + nextNextResult = { + done: true + }; return result; } diff --git a/test/built-ins/Array/from/iter-map-fn-this-strict.js b/test/built-ins/Array/from/iter-map-fn-this-strict.js index cfe576a5bb..d9a62dabc2 100644 --- a/test/built-ins/Array/from/iter-map-fn-this-strict.js +++ b/test/built-ins/Array/from/iter-map-fn-this-strict.js @@ -24,8 +24,14 @@ flags: [onlyStrict] ---*/ var thisVals = []; -var nextResult = { done: false, value: {} }; -var nextNextResult = { done: false, value: {} }; +var nextResult = { + done: false, + value: {} +}; +var nextNextResult = { + done: false, + value: {} +}; var mapFn = function() { thisVals.push(this); }; @@ -36,7 +42,9 @@ items[Symbol.iterator] = function() { next: function() { var result = nextResult; nextResult = nextNextResult; - nextNextResult = { done: true }; + nextNextResult = { + done: true + }; return result; } diff --git a/test/built-ins/Array/from/iter-set-elem-prop-err.js b/test/built-ins/Array/from/iter-set-elem-prop-err.js index 07f2c59422..2f23b4f0cf 100644 --- a/test/built-ins/Array/from/iter-set-elem-prop-err.js +++ b/test/built-ins/Array/from/iter-set-elem-prop-err.js @@ -18,11 +18,15 @@ features: [Symbol.iterator] ---*/ var C = function() { - Object.defineProperty(this, '0', { configurable: false }); + Object.defineProperty(this, '0', { + configurable: false + }); }; var closeCount = 0; var items = {}; -var nextResult = { done: false }; +var nextResult = { + done: false +}; items[Symbol.iterator] = function() { return { @@ -32,7 +36,9 @@ items[Symbol.iterator] = function() { next: function() { var result = nextResult; - nextResult = { done: true }; + nextResult = { + done: true + }; return result; } diff --git a/test/built-ins/Array/from/iter-set-elem-prop.js b/test/built-ins/Array/from/iter-set-elem-prop.js index 7658bdd13c..6f56116dbf 100644 --- a/test/built-ins/Array/from/iter-set-elem-prop.js +++ b/test/built-ins/Array/from/iter-set-elem-prop.js @@ -16,9 +16,18 @@ features: [Symbol.iterator] ---*/ var items = {}; -var firstIterResult = { done: false, value: {} }; -var secondIterResult = { done: false, value: {} }; -var thirdIterResult = { done: true, value: {} }; +var firstIterResult = { + done: false, + value: {} +}; +var secondIterResult = { + done: false, + value: {} +}; +var thirdIterResult = { + done: true, + value: {} +}; var nextIterResult = firstIterResult; var nextNextIterResult = secondIterResult; var result; diff --git a/test/built-ins/Array/from/iter-set-length-err.js b/test/built-ins/Array/from/iter-set-length-err.js index d15631db9b..4cd0e0001a 100644 --- a/test/built-ins/Array/from/iter-set-length-err.js +++ b/test/built-ins/Array/from/iter-set-length-err.js @@ -25,7 +25,11 @@ Object.defineProperty(C.prototype, 'length', { }); items[Symbol.iterator] = function() { return { - next: function() { return { done: true }; } + next: function() { + return { + done: true + }; + } }; }; diff --git a/test/built-ins/Array/from/iter-set-length.js b/test/built-ins/Array/from/iter-set-length.js index ab0e221bf6..c00ac5698f 100644 --- a/test/built-ins/Array/from/iter-set-length.js +++ b/test/built-ins/Array/from/iter-set-length.js @@ -29,13 +29,19 @@ items[Symbol.iterator] = function() { }; }; -nextIterResult = lastIterResult = { done: true }; +nextIterResult = lastIterResult = { + done: true +}; result = Array.from(items); assert.sameValue(result.length, 0); -nextIterResult = { done: false }; -lastIterResult = { done: true }; +nextIterResult = { + done: false +}; +lastIterResult = { + done: true +}; result = Array.from(items); assert.sameValue(result.length, 1); diff --git a/test/built-ins/Array/from/mapfn-throws-exception.js b/test/built-ins/Array/from/mapfn-throws-exception.js index a655126726..a87898bf85 100644 --- a/test/built-ins/Array/from/mapfn-throws-exception.js +++ b/test/built-ins/Array/from/mapfn-throws-exception.js @@ -7,9 +7,12 @@ esid: sec-array.from es6id: 22.1.2.1 ---*/ -var array = [ 2, 4, 8, 16, 32, 64, 128 ]; +var array = [2, 4, 8, 16, 32, 64, 128]; + function mapFn(value, index, obj) { - throw new Test262Error(); + throw new Test262Error(); } -assert.throws(Test262Error, function(){Array.from(array, mapFn);}); +assert.throws(Test262Error, function() { + Array.from(array, mapFn); +}); diff --git a/test/built-ins/Array/from/source-array-boundary.js b/test/built-ins/Array/from/source-array-boundary.js index 4c0587a320..9dad817293 100644 --- a/test/built-ins/Array/from/source-array-boundary.js +++ b/test/built-ins/Array/from/source-array-boundary.js @@ -7,14 +7,15 @@ esid: sec-array.from es6id: 22.1.2.1 ---*/ -var array = [ Number.MAX_VALUE, Number.MIN_VALUE, Number.NaN, Number.NEGATIVE_INFINITY, Number.POSITIVE_INFINITY ]; +var array = [Number.MAX_VALUE, Number.MIN_VALUE, Number.NaN, Number.NEGATIVE_INFINITY, Number.POSITIVE_INFINITY]; var arrayIndex = -1; + function mapFn(value, index) { - this.arrayIndex++; - assert.sameValue(value, array[this.arrayIndex], "Value mismatch in mapFn at index " + index + "."); - assert.sameValue(index, this.arrayIndex, "Index mismatch in mapFn."); + this.arrayIndex++; + assert.sameValue(value, array[this.arrayIndex], "Value mismatch in mapFn at index " + index + "."); + assert.sameValue(index, this.arrayIndex, "Index mismatch in mapFn."); - return value; + return value; } var a = Array.from(array, mapFn, this); diff --git a/test/built-ins/Array/from/source-object-iterator-1.js b/test/built-ins/Array/from/source-object-iterator-1.js index 94834b5cf0..6ac364ac54 100644 --- a/test/built-ins/Array/from/source-object-iterator-1.js +++ b/test/built-ins/Array/from/source-object-iterator-1.js @@ -8,23 +8,25 @@ es6id: 22.1.2.1 features: [Symbol.iterator] ---*/ -var array = [ 2, 4, 8, 16, 32, 64, 128 ]; +var array = [2, 4, 8, 16, 32, 64, 128]; var obj = { - [Symbol.iterator]() { - return { - index: 0, - next() { - throw new Test262Error(); - }, - isDone : false, - get val() { - this.index++; - if (this.index > 7) { - this.isDone = true; - } - return 1 << this.index; - } - }; - } + [Symbol.iterator]() { + return { + index: 0, + next() { + throw new Test262Error(); + }, + isDone: false, + get val() { + this.index++; + if (this.index > 7) { + this.isDone = true; + } + return 1 << this.index; + } + }; + } }; -assert.throws(Test262Error, function(){Array.from(obj);}); +assert.throws(Test262Error, function() { + Array.from(obj); +}); diff --git a/test/built-ins/Array/from/source-object-iterator-2.js b/test/built-ins/Array/from/source-object-iterator-2.js index 9bcd570537..619405c347 100644 --- a/test/built-ins/Array/from/source-object-iterator-2.js +++ b/test/built-ins/Array/from/source-object-iterator-2.js @@ -8,30 +8,30 @@ es6id: 22.1.2.1 features: [Symbol.iterator] ---*/ -var array = [ 2, 4, 8, 16, 32, 64, 128 ]; +var array = [2, 4, 8, 16, 32, 64, 128]; var obj = { - [Symbol.iterator]() { + [Symbol.iterator]() { + return { + index: 0, + next() { return { - index: 0, - next() { - return { - value: this.val, - done: this.isDone - }; - }, - isDone : false, - get val() { - this.index++; - if (this.index > 7) { - this.isDone = true; - } - return 1 << this.index; - } + value: this.val, + done: this.isDone }; - } + }, + isDone: false, + get val() { + this.index++; + if (this.index > 7) { + this.isDone = true; + } + return 1 << this.index; + } + }; + } }; var a = Array.from.call(Object, obj); assert.sameValue(typeof a, typeof {}, "The returned type is expected to be object."); for (var j = 0; j < a.length; j++) { - assert.sameValue(a[j], array[j], "Elements mismatch at " + j + "."); + assert.sameValue(a[j], array[j], "Elements mismatch at " + j + "."); } diff --git a/test/built-ins/Array/from/source-object-length.js b/test/built-ins/Array/from/source-object-length.js index 75c46dfc4b..4127f5ec07 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 ad5a6055dc..3c55030dac 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 96ec31c25a..fbb1877822 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 f422cc1442..79302299fb 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 9a55d9a0c6..cbc0721a67 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 6f807595c9..412226c330 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 302f9cbe81..d0a5ed7fca 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 84a6e929ea..d0bec2d468 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 626e837206..02da7c1431 100644 --- a/test/built-ins/Array/isArray/15.4.3.2-2-3.js +++ b/test/built-ins/Array/isArray/15.4.3.2-2-3.js @@ -9,4 +9,8 @@ description: > indexed properties ---*/ -assert.sameValue(Array.isArray({ 0: 12, 1: 9, length: 2 }), false, 'Array.isArray({ 0: 12, 1: 9, length: 2 })'); +assert.sameValue(Array.isArray({ + 0: 12, + 1: 9, + length: 2 +}), false, 'Array.isArray({ 0: 12, 1: 9, length: 2 })'); diff --git a/test/built-ins/Array/length/15.4.5.1-3.d-1.js b/test/built-ins/Array/length/15.4.5.1-3.d-1.js index 651cf5c117..9525856720 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 7e1dc6a255..2162edb4a2 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 38e3542247..7c03867da7 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 0b659bf9bc..d0c216a967 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 abe3b60e71..3c117d19c6 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 9822c925c3..6cd2130372 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 7435827c66..c09ba6e72f 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 55ce904877..e8ac8faa90 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 d213067fe7..24bccec08f 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 0594a6b6a1..f9800a66e3 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 c9b7615f95..5344842318 100644 --- a/test/built-ins/Array/length/S15.4.5.1_A1.3_T2.js +++ b/test/built-ins/Array/length/S15.4.5.1_A1.3_T2.js @@ -10,21 +10,39 @@ description: Uint32 use ToNumber and ToPrimitve //CHECK#1 var x = []; -x.length = {valueOf: function() {return 2}}; +x.length = { + valueOf: function() { + return 2 + } +}; if (x.length !== 2) { $ERROR('#1: x = []; x.length = {valueOf: function() {return 2}}; x.length === 2. Actual: ' + (x.length)); } //CHECK#2 x = []; -x.length = {valueOf: function() {return 2}, toString: function() {return 1}}; +x.length = { + valueOf: function() { + return 2 + }, + toString: function() { + return 1 + } +}; if (x.length !== 2) { $ERROR('#0: x = []; x.length = {valueOf: function() {return 2}, toString: function() {return 1}}; x.length === 2. Actual: ' + (x.length)); } //CHECK#3 x = []; -x.length = {valueOf: function() {return 2}, toString: function() {return {}}}; +x.length = { + valueOf: function() { + return 2 + }, + toString: function() { + return {} + } +}; if (x.length !== 2) { $ERROR('#3: x = []; x.length = {valueOf: function() {return 2}, toString: function() {return {}}}; x.length === 2. Actual: ' + (x.length)); } @@ -32,7 +50,14 @@ if (x.length !== 2) { //CHECK#4 try { x = []; - x.length = {valueOf: function() {return 2}, toString: function() {throw "error"}}; + x.length = { + valueOf: function() { + return 2 + }, + toString: function() { + throw "error" + } + }; if (x.length !== 2) { $ERROR('#4.1: x = []; x.length = {valueOf: function() {return 2}, toString: function() {throw "error"}}; x.length === ",". Actual: ' + (x.length)); } @@ -47,14 +72,25 @@ catch (e) { //CHECK#5 x = []; -x.length = {toString: function() {return 1}}; +x.length = { + toString: function() { + return 1 + } +}; if (x.length !== 1) { $ERROR('#5: x = []; x.length = {toString: function() {return 1}}; x.length === 1. Actual: ' + (x.length)); } //CHECK#6 x = []; -x.length = {valueOf: function() {return {}}, toString: function() {return 1}} +x.length = { + valueOf: function() { + return {} + }, + toString: function() { + return 1 + } +} if (x.length !== 1) { $ERROR('#6: x = []; x.length = {valueOf: function() {return {}}, toString: function() {return 1}}; x.length === 1. Actual: ' + (x.length)); } @@ -62,7 +98,14 @@ if (x.length !== 1) { //CHECK#7 try { x = []; - x.length = {valueOf: function() {throw "error"}, toString: function() {return 1}}; + x.length = { + valueOf: function() { + throw "error" + }, + toString: function() { + return 1 + } + }; x.length; $ERROR('#7.1: x = []; x.length = {valueOf: function() {throw "error"}, toString: function() {return 1}}; x.length throw "error". Actual: ' + (x.length)); } @@ -75,7 +118,14 @@ catch (e) { //CHECK#8 try { x = []; - x.length = {valueOf: function() {return {}}, toString: function() {return {}}}; + x.length = { + valueOf: function() { + return {} + }, + toString: function() { + return {} + } + }; x.length; $ERROR('#8.1: x = []; x.length = {valueOf: function() {return {}}, toString: function() {return {}}} x.length throw TypeError. Actual: ' + (x.length)); } diff --git a/test/built-ins/Array/length/S15.4.5.2_A3_T4.js b/test/built-ins/Array/length/S15.4.5.2_A3_T4.js index 1bcbb6f975..afd9985b10 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 121bcd6df9..3910be2f08 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 f51ca7107e..61ecb1a260 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 00fea1dd7a..3baf72a4a6 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-length-to-string-throws.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-length-to-string-throws.js @@ -10,9 +10,11 @@ features: [Symbol.isConcatSpreadable] ---*/ function MyError() {} var obj = { - "length": { toString: function() { + "length": { + toString: function() { throw new MyError(); - }, valueOf: null + }, + valueOf: null }, "1": "A", "3": "B", diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-primitive-non-number-length.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-primitive-non-number-length.js index 14de922be8..82cf5a7677 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-primitive-non-number-length.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-primitive-non-number-length.js @@ -15,7 +15,17 @@ var obj = { "5": "C" }; obj[Symbol.isConcatSpreadable] = true; -obj.length = {toString: function() { return "SIX"; }, valueOf: null }; +obj.length = { + toString: function() { + return "SIX"; + }, + valueOf: null +}; assert(compareArray([].concat(obj), [])); -obj.length = {toString: null, valueOf: function() { return "SIX"; } }; +obj.length = { + toString: null, + valueOf: function() { + return "SIX"; + } +}; assert(compareArray([].concat(obj), [])); diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-string-length.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-string-length.js index 1c63b62f4c..8b94d65940 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-string-length.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-string-length.js @@ -16,7 +16,12 @@ var obj = { "5": "C" }; obj[Symbol.isConcatSpreadable] = true; -var obj2 = { length: 3, "0": "0", "1": "1", "2": "2" }; +var obj2 = { + length: 3, + "0": "0", + "1": "1", + "2": "2" +}; var arr = ["X", "Y", "Z"]; var expected = [ diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-to-length-throws.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-to-length-throws.js index 0322eaf1e2..907a30b7b3 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-to-length-throws.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-to-length-throws.js @@ -9,13 +9,21 @@ description: Array.prototype.concat array like to length throws features: [Symbol.isConcatSpreadable] ---*/ var obj = { - "length": {valueOf: null, toString: null}, + "length": { + valueOf: null, + toString: null + }, "1": "A", "3": "B", "5": "C" }; obj[Symbol.isConcatSpreadable] = true; -var obj2 = { length: 3, "0": "0", "1": "1", "2": "2" }; +var obj2 = { + length: 3, + "0": "0", + "1": "1", + "2": "2" +}; var arr = ["X", "Y", "Z"]; assert.throws(TypeError, function() { Array.prototype.concat.call(obj, obj2, arr); diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like.js index 3b747f931f..bfdf3c8e9d 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like.js @@ -17,7 +17,12 @@ var obj = { "5": "C" }; obj[Symbol.isConcatSpreadable] = true; -var obj2 = { length: 3, "0": "0", "1": "1", "2": "2" }; +var obj2 = { + length: 3, + "0": "0", + "1": "1", + "2": "2" +}; var arr = ["X", "Y", "Z"]; var expected = [ diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_holey-sloppy-arguments.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_holey-sloppy-arguments.js index d8bab8d4af..44082769bb 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_holey-sloppy-arguments.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_holey-sloppy-arguments.js @@ -10,7 +10,9 @@ description: Array.prototype.concat holey sloppy arguments includes: [compareArray.js] features: [Symbol.isConcatSpreadable] ---*/ -var args = (function(a) { return arguments; })(1,2,3); +var args = (function(a) { + return arguments; +})(1, 2, 3); delete args[1]; args[Symbol.isConcatSpreadable] = true; assert(compareArray([1, void 0, 3, 1, void 0, 3], [].concat(args, args))); diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_large-typed-array.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_large-typed-array.js index dcf5939078..cb37746a29 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_large-typed-array.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_large-typed-array.js @@ -31,7 +31,9 @@ function concatTypedArray(type, elems, modulo) { var expected = new Array(4000); expected[0] = defValue; - Object.defineProperty(ta, "length", { value: 4000 }); + Object.defineProperty(ta, "length", { + value: 4000 + }); ta[Symbol.isConcatSpreadable] = true; assert(compareArray([].concat(ta), expected)); } diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_length-throws.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_length-throws.js index 3aef5b7827..c040d94a1f 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_length-throws.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_length-throws.js @@ -13,7 +13,9 @@ function MyError() {} var obj = {}; obj[Symbol.isConcatSpreadable] = true; Object.defineProperty(obj, "length", { - get: function() { throw new MyError(); } + get: function() { + throw new MyError(); + } }); assert.throws(MyError, function() { diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_non-array.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_non-array.js index f6ed9cf11a..bd080ee42b 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 8aefe98daf..605330051c 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments-throws.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments-throws.js @@ -10,9 +10,13 @@ description: Array.prototype.concat sloppy arguments throws features: [Symbol.isConcatSpreadable] ---*/ function MyError() {} -var args = (function(a) { return arguments; })(1,2,3); +var args = (function(a) { + return arguments; +})(1, 2, 3); Object.defineProperty(args, 0, { - get: function() { throw new MyError(); } + get: function() { + throw new MyError(); + } }); args[Symbol.isConcatSpreadable] = true; assert.throws(MyError, function() { diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments-with-dupes.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments-with-dupes.js index effb606b31..a6bca8a0d2 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments-with-dupes.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments-with-dupes.js @@ -11,9 +11,13 @@ flags: [noStrict] includes: [compareArray.js] features: [Symbol.isConcatSpreadable] ---*/ -var args = (function(a, a, a) { return arguments; })(1,2,3); +var args = (function(a, a, a) { + return arguments; +})(1, 2, 3); args[Symbol.isConcatSpreadable] = true; assert(compareArray([].concat(args, args), [1, 2, 3, 1, 2, 3])); -Object.defineProperty(args, "length", { value: 6 }); +Object.defineProperty(args, "length", { + value: 6 +}); assert(compareArray([].concat(args), [1, 2, 3, void 0, void 0, void 0])); diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments.js index d805456206..54e80acef2 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments.js @@ -10,9 +10,13 @@ description: Array.prototype.concat sloppy arguments includes: [compareArray.js] features: [Symbol.isConcatSpreadable] ---*/ -var args = (function(a, b, c) { return arguments; })(1,2,3); +var args = (function(a, b, c) { + return arguments; +})(1, 2, 3); args[Symbol.isConcatSpreadable] = true; assert(compareArray([].concat(args, args), [1, 2, 3, 1, 2, 3])); -Object.defineProperty(args, "length", { value: 6 }); +Object.defineProperty(args, "length", { + value: 6 +}); assert(compareArray([].concat(args), [1, 2, 3, void 0, void 0, void 0])); diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_small-typed-array.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_small-typed-array.js index 09fc40e0b0..1d5c1ecbbf 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_small-typed-array.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_small-typed-array.js @@ -31,7 +31,9 @@ function concatTypedArray(type, elems, modulo) { var expected = new Array(4000); expected[0] = defValue; - Object.defineProperty(ta, "length", { value: 4000 }); + Object.defineProperty(ta, "length", { + value: 4000 + }); ta[Symbol.isConcatSpreadable] = true; assert(compareArray([].concat(ta), expected)); } diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-boolean-wrapper.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-boolean-wrapper.js index 00ec7689b1..ed021358fb 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 5b5b5aca45..8ed6bf21cf 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 626f6d2921..8a0b64deee 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-getter-throws.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-getter-throws.js @@ -12,7 +12,9 @@ features: [Symbol.isConcatSpreadable] function MyError() {} var obj = {}; Object.defineProperty(obj, Symbol.isConcatSpreadable, { - get: function() { throw new MyError(); } + get: function() { + throw new MyError(); + } }); assert.throws(MyError, function() { diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-number-wrapper.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-number-wrapper.js index 9ea803b4b6..d28acb7d15 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 4003fe33cd..6a11c8eca0 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 4b3f40d188..1c4aa7f2db 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-sparse-object.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-sparse-object.js @@ -10,7 +10,9 @@ description: Array.prototype.concat Symbol.isConcatSpreadable sparse object includes: [compareArray.js] features: [Symbol.isConcatSpreadable] ---*/ -var obj = { length: 5 }; +var obj = { + length: 5 +}; obj[Symbol.isConcatSpreadable] = true; assert(compareArray([void 0, void 0, void 0, void 0, void 0], [].concat(obj))); diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_strict-arguments.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_strict-arguments.js index 2d8b5868a9..49dfc415c9 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_strict-arguments.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_strict-arguments.js @@ -10,9 +10,14 @@ description: Array.prototype.concat strict arguments includes: [compareArray.js] features: [Symbol.isConcatSpreadable] ---*/ -var args = (function(a, b, c) { "use strict"; return arguments; })(1,2,3); +var args = (function(a, b, c) { + "use strict"; + return arguments; +})(1, 2, 3); args[Symbol.isConcatSpreadable] = true; assert(compareArray([].concat(args, args), [1, 2, 3, 1, 2, 3])); -Object.defineProperty(args, "length", { value: 6 }); +Object.defineProperty(args, "length", { + value: 6 +}); assert(compareArray([].concat(args), [1, 2, 3, void 0, void 0, void 0])); diff --git a/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T1.js b/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T1.js index 7a590596d8..e06836b678 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 4024275a2d..100ecaa9d1 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 bb88eba5e4..82a8d6f002 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 0282070519..44ca8f91f0 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 ce825917a9..a77b0e07ca 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 e98d9e41d8..ed7c03c9f2 100644 --- a/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T1.js +++ b/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T1.js @@ -33,7 +33,9 @@ if (arr.hasOwnProperty('1') !== true) { Object.prototype[1] = 1; Object.prototype.length = 2; Object.prototype.concat = Array.prototype.concat; -x = {0:0}; +x = { + 0: 0 +}; var arr = x.concat(); //CHECK#4 diff --git a/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T2.js b/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T2.js index b58435329b..8434102963 100644 --- a/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T2.js +++ b/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T2.js @@ -62,4 +62,3 @@ if (b.hasOwnProperty('1') !== false) { if (b.hasOwnProperty('2') !== true) { $ERROR("expected b.hasOwnProperty('2') === true, actually " + b.hasOwnProperty('2')); } - diff --git a/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T3.js b/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T3.js index c86f736cbe..e1eacc545e 100644 --- a/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T3.js +++ b/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T3.js @@ -62,4 +62,3 @@ if (b.hasOwnProperty('1') !== false) { if (b.hasOwnProperty('2') !== true) { $ERROR("expected b.hasOwnProperty('2') === true, actually " + b.hasOwnProperty('2')); } - diff --git a/test/built-ins/Array/prototype/concat/create-non-array.js b/test/built-ins/Array/prototype/concat/create-non-array.js index 171e2baab4..b33667a9a8 100644 --- a/test/built-ins/Array/prototype/concat/create-non-array.js +++ b/test/built-ins/Array/prototype/concat/create-non-array.js @@ -15,7 +15,9 @@ info: | 4. If isArray is false, return ? ArrayCreate(length). ---*/ -var obj = { length: 0 }; +var obj = { + length: 0 +}; var callCount = 0; var result; Object.defineProperty(obj, 'constructor', { diff --git a/test/built-ins/Array/prototype/copyWithin/coerced-values-end.js b/test/built-ins/Array/prototype/copyWithin/coerced-values-end.js index 9cb416ae1d..a1d4e04a47 100644 --- a/test/built-ins/Array/prototype/copyWithin/coerced-values-end.js +++ b/test/built-ins/Array/prototype/copyWithin/coerced-values-end.js @@ -17,48 +17,42 @@ includes: [compareArray.js] assert( compareArray( - [0, 1, 2, 3].copyWithin(1, 0, null), - [0, 1, 2, 3] + [0, 1, 2, 3].copyWithin(1, 0, null), [0, 1, 2, 3] ), 'null value coerced to 0' ); assert( compareArray( - [0, 1, 2, 3].copyWithin(1, 0, NaN), - [0, 1, 2, 3] + [0, 1, 2, 3].copyWithin(1, 0, NaN), [0, 1, 2, 3] ), 'NaN value coerced to 0' ); assert( compareArray( - [0, 1, 2, 3].copyWithin(1, 0, false), - [0, 1, 2, 3] + [0, 1, 2, 3].copyWithin(1, 0, false), [0, 1, 2, 3] ), 'false value coerced to 0' ); assert( compareArray( - [0, 1, 2, 3].copyWithin(1, 0, true), - [0, 0, 2, 3] + [0, 1, 2, 3].copyWithin(1, 0, true), [0, 0, 2, 3] ), 'true value coerced to 1' ); assert( compareArray( - [0, 1, 2, 3].copyWithin(1, 0, '-2'), - [0, 0, 1, 3] + [0, 1, 2, 3].copyWithin(1, 0, '-2'), [0, 0, 1, 3] ), 'string "-2" value coerced to integer -2' ); assert( compareArray( - [0, 1, 2, 3].copyWithin(1, 0, -2.5), - [0, 0, 1, 3] + [0, 1, 2, 3].copyWithin(1, 0, -2.5), [0, 0, 1, 3] ), 'float -2.5 value coerced to integer -2' ); diff --git a/test/built-ins/Array/prototype/copyWithin/coerced-values-start.js b/test/built-ins/Array/prototype/copyWithin/coerced-values-start.js index 182655bf5f..5789f7edea 100644 --- a/test/built-ins/Array/prototype/copyWithin/coerced-values-start.js +++ b/test/built-ins/Array/prototype/copyWithin/coerced-values-start.js @@ -16,32 +16,28 @@ includes: [compareArray.js] assert( compareArray( - [0, 1, 2, 3].copyWithin(1, undefined), - [0, 0, 1, 2] + [0, 1, 2, 3].copyWithin(1, undefined), [0, 0, 1, 2] ), 'undefined value coerced to 0' ); assert( compareArray( - [0, 1, 2, 3].copyWithin(1, false), - [0, 0, 1, 2] + [0, 1, 2, 3].copyWithin(1, false), [0, 0, 1, 2] ), 'false value coerced to 0' ); assert( compareArray( - [0, 1, 2, 3].copyWithin(1, NaN), - [0, 0, 1, 2] + [0, 1, 2, 3].copyWithin(1, NaN), [0, 0, 1, 2] ), 'NaN value coerced to 0' ); assert( compareArray( - [0, 1, 2, 3].copyWithin(1, null), - [0, 0, 1, 2] + [0, 1, 2, 3].copyWithin(1, null), [0, 0, 1, 2] ), 'null value coerced to 0' ); @@ -49,8 +45,7 @@ assert( assert( compareArray( - [0, 1, 2, 3].copyWithin(0, true), - [1, 2, 3, 3] + [0, 1, 2, 3].copyWithin(0, true), [1, 2, 3, 3] ), 'true value coerced to 1' ); @@ -58,24 +53,21 @@ assert( assert( compareArray( - [0, 1, 2, 3].copyWithin(0, '1'), - [1, 2, 3, 3] + [0, 1, 2, 3].copyWithin(0, '1'), [1, 2, 3, 3] ), 'string "1" value coerced to 1' ); assert( compareArray( - [0, 1, 2, 3].copyWithin(1, 0.5), - [0, 0, 1, 2] + [0, 1, 2, 3].copyWithin(1, 0.5), [0, 0, 1, 2] ), '0.5 float value coerced to integer 0' ); assert( compareArray( - [0, 1, 2, 3].copyWithin(0, 1.5), - [1, 2, 3, 3] + [0, 1, 2, 3].copyWithin(0, 1.5), [1, 2, 3, 3] ), '1.5 float value coerced to integer 1' ); diff --git a/test/built-ins/Array/prototype/copyWithin/coerced-values-target.js b/test/built-ins/Array/prototype/copyWithin/coerced-values-target.js index 2646b19f22..54465b97ab 100644 --- a/test/built-ins/Array/prototype/copyWithin/coerced-values-target.js +++ b/test/built-ins/Array/prototype/copyWithin/coerced-values-target.js @@ -16,32 +16,28 @@ includes: [compareArray.js] assert( compareArray( - [0, 1, 2, 3].copyWithin(undefined, 1), - [1, 2, 3, 3] + [0, 1, 2, 3].copyWithin(undefined, 1), [1, 2, 3, 3] ), 'undefined value coerced to 0' ); assert( compareArray( - [0, 1, 2, 3].copyWithin(false, 1), - [1, 2, 3, 3] + [0, 1, 2, 3].copyWithin(false, 1), [1, 2, 3, 3] ), 'false value coerced to 0' ); assert( compareArray( - [0, 1, 2, 3].copyWithin(NaN, 1), - [1, 2, 3, 3] + [0, 1, 2, 3].copyWithin(NaN, 1), [1, 2, 3, 3] ), 'NaN value coerced to 0' ); assert( compareArray( - [0, 1, 2, 3].copyWithin(null, 1), - [1, 2, 3, 3] + [0, 1, 2, 3].copyWithin(null, 1), [1, 2, 3, 3] ), 'null value coerced to 0' ); @@ -49,8 +45,7 @@ assert( assert( compareArray( - [0, 1, 2, 3].copyWithin(true, 0), - [0, 0, 1, 2] + [0, 1, 2, 3].copyWithin(true, 0), [0, 0, 1, 2] ), 'true value coerced to 1' ); @@ -58,24 +53,21 @@ assert( assert( compareArray( - [0, 1, 2, 3].copyWithin('1', 0), - [0, 0, 1, 2] + [0, 1, 2, 3].copyWithin('1', 0), [0, 0, 1, 2] ), 'string "1" value coerced to 1' ); assert( compareArray( - [0, 1, 2, 3].copyWithin(0.5, 1), - [1, 2, 3, 3] + [0, 1, 2, 3].copyWithin(0.5, 1), [1, 2, 3, 3] ), '0.5 float value coerced to integer 0' ); assert( compareArray( - [0, 1, 2, 3].copyWithin(1.5, 0), - [0, 0, 1, 2] + [0, 1, 2, 3].copyWithin(1.5, 0), [0, 0, 1, 2] ), '1.5 float value coerced to integer 1' ); diff --git a/test/built-ins/Array/prototype/copyWithin/negative-end.js b/test/built-ins/Array/prototype/copyWithin/negative-end.js index 70aa0e0e23..81e97abfd8 100644 --- a/test/built-ins/Array/prototype/copyWithin/negative-end.js +++ b/test/built-ins/Array/prototype/copyWithin/negative-end.js @@ -20,64 +20,56 @@ includes: [compareArray.js] assert( compareArray( - [0, 1, 2, 3].copyWithin(0, 1, -1), - [1, 2, 2, 3] + [0, 1, 2, 3].copyWithin(0, 1, -1), [1, 2, 2, 3] ), '[0, 1, 2, 3].copyWithin(0, 1, -1) -> [1, 2, 2, 3]' ); assert( compareArray( - [0, 1, 2, 3, 4].copyWithin(2, 0, -1), - [0, 1, 0, 1, 2] + [0, 1, 2, 3, 4].copyWithin(2, 0, -1), [0, 1, 0, 1, 2] ), '[0, 1, 2, 3, 4].copyWithin(2, 0, -1) -> [0, 1, 0, 1, 2]' ); assert( compareArray( - [0, 1, 2, 3, 4].copyWithin(1, 2, -2), - [0, 2, 2, 3, 4] + [0, 1, 2, 3, 4].copyWithin(1, 2, -2), [0, 2, 2, 3, 4] ), '[0, 1, 2, 3, 4].copyWithin(1, 2, -2) -> [0, 2, 2, 3, 4]' ); assert( compareArray( - [0, 1, 2, 3].copyWithin(0, -2, -1), - [2, 1, 2, 3] + [0, 1, 2, 3].copyWithin(0, -2, -1), [2, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(0, -2, -1) -> [2, 1, 2, 3]' ); assert( compareArray( - [0, 1, 2, 3, 4].copyWithin(2, -2, -1), - [0, 1, 3, 3, 4] + [0, 1, 2, 3, 4].copyWithin(2, -2, -1), [0, 1, 3, 3, 4] ), '[0, 1, 2, 3, 4].copyWithin(2, -2, 1) -> [0, 1, 3, 3, 4]' ); assert( compareArray( - [0, 1, 2, 3].copyWithin(-3, -2, -1), - [0, 2, 2, 3] + [0, 1, 2, 3].copyWithin(-3, -2, -1), [0, 2, 2, 3] ), '[0, 1, 2, 3].copyWithin(-3, -2, -1) -> [0, 2, 2, 3]' ); assert( compareArray( - [0, 1, 2, 3, 4].copyWithin(-2, -3, -1), - [0, 1, 2, 2, 3] + [0, 1, 2, 3, 4].copyWithin(-2, -3, -1), [0, 1, 2, 2, 3] ), '[0, 1, 2, 3, 4].copyWithin(-2, -3, -1) -> [0, 1, 2, 2, 3]' ); assert( compareArray( - [0, 1, 2, 3, 4].copyWithin(-5, -2, -1), - [3, 1, 2, 3, 4] + [0, 1, 2, 3, 4].copyWithin(-5, -2, -1), [3, 1, 2, 3, 4] ), '[0, 1, 2, 3, 4].copyWithin(-5, -2, -1) -> [3, 1, 2, 3, 4]' ); diff --git a/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-end.js b/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-end.js index 072d03e704..34b8374611 100644 --- a/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-end.js +++ b/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-end.js @@ -20,80 +20,70 @@ includes: [compareArray.js] assert( compareArray( - [0, 1, 2, 3].copyWithin(0, 1, -10), - [0, 1, 2, 3] + [0, 1, 2, 3].copyWithin(0, 1, -10), [0, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(0, 1, -10) -> [0, 1, 2, 3]' ); assert( compareArray( - [1, 2, 3, 4, 5].copyWithin(0, 1, -Infinity), - [1, 2, 3, 4, 5] + [1, 2, 3, 4, 5].copyWithin(0, 1, -Infinity), [1, 2, 3, 4, 5] ), '[1, 2, 3, 4, 5].copyWithin(0, 1, -Infinity) -> [1, 2, 3, 4, 5]' ); assert( compareArray( - [0, 1, 2, 3].copyWithin(0, -2, -10), - [0, 1, 2, 3] + [0, 1, 2, 3].copyWithin(0, -2, -10), [0, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(0, -2, -10) -> [0, 1, 2, 3]' ); assert( compareArray( - [1, 2, 3, 4, 5].copyWithin(0, -2, -Infinity), - [1, 2, 3, 4, 5] + [1, 2, 3, 4, 5].copyWithin(0, -2, -Infinity), [1, 2, 3, 4, 5] ), '[1, 2, 3, 4, 5].copyWithin(0, -2, -Infinity) -> [1, 2, 3, 4, 5]' ); assert( compareArray( - [0, 1, 2, 3].copyWithin(0, -9, -10), - [0, 1, 2, 3] + [0, 1, 2, 3].copyWithin(0, -9, -10), [0, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(0, -9, -10) -> [0, 1, 2, 3]' ); assert( compareArray( - [1, 2, 3, 4, 5].copyWithin(0, -9, -Infinity), - [1, 2, 3, 4, 5] + [1, 2, 3, 4, 5].copyWithin(0, -9, -Infinity), [1, 2, 3, 4, 5] ), '[1, 2, 3, 4, 5].copyWithin(0, -9, -Infinity) -> [1, 2, 3, 4, 5]' ); assert( compareArray( - [0, 1, 2, 3].copyWithin(-3, -2, -10), - [0, 1, 2, 3] + [0, 1, 2, 3].copyWithin(-3, -2, -10), [0, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(-3, -2, -10) -> [0, 1, 2, 3]' ); assert( compareArray( - [1, 2, 3, 4, 5].copyWithin(-3, -2, -Infinity), - [1, 2, 3, 4, 5] + [1, 2, 3, 4, 5].copyWithin(-3, -2, -Infinity), [1, 2, 3, 4, 5] ), '[1, 2, 3, 4, 5].copyWithin(-3, -2, -Infinity) -> [1, 2, 3, 4, 5]' ); assert( compareArray( - [0, 1, 2, 3].copyWithin(-7, -8, -9), - [0, 1, 2, 3] + [0, 1, 2, 3].copyWithin(-7, -8, -9), [0, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(-7, -8, -9) -> [0, 1, 2, 3]' ); assert( compareArray( - [1, 2, 3, 4, 5].copyWithin(-7, -8, -Infinity), - [1, 2, 3, 4, 5] + [1, 2, 3, 4, 5].copyWithin(-7, -8, -Infinity), [1, 2, 3, 4, 5] ), '[1, 2, 3, 4, 5].copyWithin(-7, -8, -Infinity) -> [1, 2, 3, 4, 5]' ); diff --git a/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-start.js b/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-start.js index 1f31fc9eb9..e3002b70f0 100644 --- a/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-start.js +++ b/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-start.js @@ -17,32 +17,28 @@ includes: [compareArray.js] assert( compareArray( - [0, 1, 2, 3].copyWithin(0, -10), - [0, 1, 2, 3] + [0, 1, 2, 3].copyWithin(0, -10), [0, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(0, -10) -> [0, 1, 2, 3]' ); assert( compareArray( - [1, 2, 3, 4, 5].copyWithin(0, -Infinity), - [1, 2, 3, 4, 5] + [1, 2, 3, 4, 5].copyWithin(0, -Infinity), [1, 2, 3, 4, 5] ), '[1, 2, 3, 4, 5].copyWithin(0, -Infinity) -> [1, 2, 3, 4, 5]' ); assert( compareArray( - [0, 1, 2, 3, 4].copyWithin(2, -10), - [0, 1, 0, 1, 2] + [0, 1, 2, 3, 4].copyWithin(2, -10), [0, 1, 0, 1, 2] ), '[0, 1, 2, 3, 4].copyWithin(2, -2) -> [0, 1, 0, 1, 2]' ); assert( compareArray( - [1, 2, 3, 4, 5].copyWithin(2, -Infinity), - [1, 2, 1, 2, 3] + [1, 2, 3, 4, 5].copyWithin(2, -Infinity), [1, 2, 1, 2, 3] ), '[1, 2, 3, 4, 5].copyWithin(2, -Infinity) -> [1, 2, 1, 2, 3]' ); @@ -50,16 +46,14 @@ assert( assert( compareArray( - [0, 1, 2, 3, 4].copyWithin(10, -10), - [0, 1, 2, 3, 4] + [0, 1, 2, 3, 4].copyWithin(10, -10), [0, 1, 2, 3, 4] ), '[0, 1, 2, 3, 4].copyWithin(10, -10) -> [0, 1, 2, 3, 4]' ); assert( compareArray( - [1, 2, 3, 4, 5].copyWithin(10, -Infinity), - [1, 2, 3, 4, 5] + [1, 2, 3, 4, 5].copyWithin(10, -Infinity), [1, 2, 3, 4, 5] ), '[1, 2, 3, 4, 5].copyWithin(10, -Infinity) -> [1, 2, 3, 4, 5]' ); @@ -67,16 +61,14 @@ assert( assert( compareArray( - [0, 1, 2, 3].copyWithin(-9, -10), - [0, 1, 2, 3] + [0, 1, 2, 3].copyWithin(-9, -10), [0, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(-9, -10) -> [0, 1, 2, 3]' ); assert( compareArray( - [1, 2, 3, 4, 5].copyWithin(-9, -Infinity), - [1, 2, 3, 4, 5] + [1, 2, 3, 4, 5].copyWithin(-9, -Infinity), [1, 2, 3, 4, 5] ), '[1, 2, 3, 4, 5].copyWithin(-9, -Infinity) -> [1, 2, 3, 4, 5]' ); diff --git a/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-target.js b/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-target.js index 72b95dcace..f17ab8a8a6 100644 --- a/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-target.js +++ b/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-target.js @@ -17,32 +17,28 @@ includes: [compareArray.js] assert( compareArray( - [0, 1, 2, 3].copyWithin(-10, 0), - [0, 1, 2, 3] + [0, 1, 2, 3].copyWithin(-10, 0), [0, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(-10, 0) -> [0, 1, 2, 3]' ); assert( compareArray( - [1, 2, 3, 4, 5].copyWithin(-Infinity, 0), - [1, 2, 3, 4, 5] + [1, 2, 3, 4, 5].copyWithin(-Infinity, 0), [1, 2, 3, 4, 5] ), '[1, 2, 3, 4, 5].copyWithin(-Infinity, 0) -> [1, 2, 3, 4, 5]' ); assert( compareArray( - [0, 1, 2, 3, 4].copyWithin(-10, 2), - [2, 3, 4, 3, 4] + [0, 1, 2, 3, 4].copyWithin(-10, 2), [2, 3, 4, 3, 4] ), '[0, 1, 2, 3, 4].copyWithin(-10, 2) -> [2, 3, 4, 3, 4]' ); assert( compareArray( - [1, 2, 3, 4, 5].copyWithin(-Infinity, 2), - [3, 4, 5, 4, 5] + [1, 2, 3, 4, 5].copyWithin(-Infinity, 2), [3, 4, 5, 4, 5] ), '[1, 2, 3, 4, 5].copyWithin(-Infinity, 2) -> [3, 4, 5, 4, 5]' ); diff --git a/test/built-ins/Array/prototype/copyWithin/negative-start.js b/test/built-ins/Array/prototype/copyWithin/negative-start.js index 4cec365ad5..3989b288db 100644 --- a/test/built-ins/Array/prototype/copyWithin/negative-start.js +++ b/test/built-ins/Array/prototype/copyWithin/negative-start.js @@ -17,48 +17,42 @@ includes: [compareArray.js] assert( compareArray( - [0, 1, 2, 3].copyWithin(0, -1), - [3, 1, 2, 3] + [0, 1, 2, 3].copyWithin(0, -1), [3, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(0, -1) -> [3, 1, 2, 3]' ); assert( compareArray( - [0, 1, 2, 3, 4].copyWithin(2, -2), - [0, 1, 3, 4, 4] + [0, 1, 2, 3, 4].copyWithin(2, -2), [0, 1, 3, 4, 4] ), '[0, 1, 2, 3, 4].copyWithin(2, -2) -> [0, 1, 3, 4, 4]' ); assert( compareArray( - [0, 1, 2, 3, 4].copyWithin(1, -2), - [0, 3, 4, 3, 4] + [0, 1, 2, 3, 4].copyWithin(1, -2), [0, 3, 4, 3, 4] ), '[0, 1, 2, 3, 4].copyWithin(1, -2) -> [0, 3, 4, 3, 4]' ); assert( compareArray( - [0, 1, 2, 3].copyWithin(-1, -2), - [0, 1, 2, 2] + [0, 1, 2, 3].copyWithin(-1, -2), [0, 1, 2, 2] ), '[0, 1, 2, 3].copyWithin(-1, -2) -> [ 0, 1, 2, 2 ]' ); assert( compareArray( - [0, 1, 2, 3, 4].copyWithin(-2, -3), - [0, 1, 2, 2, 3] + [0, 1, 2, 3, 4].copyWithin(-2, -3), [0, 1, 2, 2, 3] ), '[0, 1, 2, 3, 4].copyWithin(-2, -3) -> [0, 1, 2, 2, 3]' ); assert( compareArray( - [0, 1, 2, 3, 4].copyWithin(-5, -2), - [3, 4, 2, 3, 4] + [0, 1, 2, 3, 4].copyWithin(-5, -2), [3, 4, 2, 3, 4] ), '[0, 1, 2, 3, 4].copyWithin(-5, -2) -> [3, 4, 2, 3, 4]' ); diff --git a/test/built-ins/Array/prototype/copyWithin/negative-target.js b/test/built-ins/Array/prototype/copyWithin/negative-target.js index 29fd249755..99844a4b8e 100644 --- a/test/built-ins/Array/prototype/copyWithin/negative-target.js +++ b/test/built-ins/Array/prototype/copyWithin/negative-target.js @@ -17,24 +17,21 @@ includes: [compareArray.js] assert( compareArray( - [0, 1, 2, 3].copyWithin(-1, 0), - [0, 1, 2, 0] + [0, 1, 2, 3].copyWithin(-1, 0), [0, 1, 2, 0] ), '[0, 1, 2, 3].copyWithin(-1, 0) -> [0, 1, 2, 0]' ); assert( compareArray( - [0, 1, 2, 3, 4].copyWithin(-2, 2), - [0, 1, 2, 2, 3] + [0, 1, 2, 3, 4].copyWithin(-2, 2), [0, 1, 2, 2, 3] ), '[0, 1, 2, 3, 4].copyWithin(-2, 2) -> [0, 1, 2, 2, 3]' ); assert( compareArray( - [0, 1, 2, 3].copyWithin(-1, 2), - [0, 1, 2, 2] + [0, 1, 2, 3].copyWithin(-1, 2), [0, 1, 2, 2] ), '[0, 1, 2, 3].copyWithin(-1, 2) -> [0, 1, 2, 2]' ); diff --git a/test/built-ins/Array/prototype/copyWithin/non-negative-out-of-bounds-end.js b/test/built-ins/Array/prototype/copyWithin/non-negative-out-of-bounds-end.js index 6af95e7244..d20bc64c24 100644 --- a/test/built-ins/Array/prototype/copyWithin/non-negative-out-of-bounds-end.js +++ b/test/built-ins/Array/prototype/copyWithin/non-negative-out-of-bounds-end.js @@ -36,32 +36,28 @@ includes: [compareArray.js] assert( compareArray( - [0, 1, 2, 3].copyWithin(0, 1, 6), - [1, 2, 3, 3] + [0, 1, 2, 3].copyWithin(0, 1, 6), [1, 2, 3, 3] ), '[0, 1, 2, 3].copyWithin(0, 1, 6) -> [1, 2, 3, 3]' ); assert( compareArray( - [0, 1, 2, 3].copyWithin(0, 1, Infinity), - [1, 2, 3, 3] + [0, 1, 2, 3].copyWithin(0, 1, Infinity), [1, 2, 3, 3] ), '[0, 1, 2, 3].copyWithin(0, 1, Infinity) -> [1, 2, 3, 3]' ); assert( compareArray( - [0, 1, 2, 3, 4, 5].copyWithin(1, 3, 6), - [0, 3, 4, 5, 4, 5] + [0, 1, 2, 3, 4, 5].copyWithin(1, 3, 6), [0, 3, 4, 5, 4, 5] ), '[0, 1, 2, 3, 4, 5].copyWithin(1, 3, 6) -> [0, 3, 4, 5, 4, 5]' ); assert( compareArray( - [0, 1, 2, 3, 4, 5].copyWithin(1, 3, Infinity), - [0, 3, 4, 5, 4, 5] + [0, 1, 2, 3, 4, 5].copyWithin(1, 3, Infinity), [0, 3, 4, 5, 4, 5] ), '[0, 1, 2, 3, 4, 5].copyWithin(1, 3, Infinity) -> [0, 3, 4, 5, 4, 5]' ); diff --git a/test/built-ins/Array/prototype/copyWithin/non-negative-out-of-bounds-target-and-start.js b/test/built-ins/Array/prototype/copyWithin/non-negative-out-of-bounds-target-and-start.js index e38edecd72..64f3c58540 100644 --- a/test/built-ins/Array/prototype/copyWithin/non-negative-out-of-bounds-target-and-start.js +++ b/test/built-ins/Array/prototype/copyWithin/non-negative-out-of-bounds-target-and-start.js @@ -30,64 +30,56 @@ includes: [compareArray.js] assert( compareArray( - [0, 1, 2, 3, 4, 5].copyWithin(6, 0), - [0, 1, 2, 3, 4, 5] + [0, 1, 2, 3, 4, 5].copyWithin(6, 0), [0, 1, 2, 3, 4, 5] ), '[0, 1, 2, 3, 4, 5].copyWithin(6, 0) => [0, 1, 2, 3, 4, 5]' ); assert( compareArray( - [0, 1, 2, 3, 4, 5].copyWithin(7, 0), - [0, 1, 2, 3, 4, 5] + [0, 1, 2, 3, 4, 5].copyWithin(7, 0), [0, 1, 2, 3, 4, 5] ), '[0, 1, 2, 3, 4, 5].copyWithin(6, 0) => [0, 1, 2, 3, 4, 5]' ); assert( compareArray( - [0, 1, 2, 3, 4, 5].copyWithin(Infinity, 0), - [0, 1, 2, 3, 4, 5] + [0, 1, 2, 3, 4, 5].copyWithin(Infinity, 0), [0, 1, 2, 3, 4, 5] ), '[0, 1, 2, 3, 4, 5].copyWithin(Infinity, 0) => [0, 1, 2, 3, 4, 5]' ); assert( compareArray( - [0, 1, 2, 3, 4, 5].copyWithin(6, 2), - [0, 1, 2, 3, 4, 5] + [0, 1, 2, 3, 4, 5].copyWithin(6, 2), [0, 1, 2, 3, 4, 5] ), '[0, 1, 2, 3, 4, 5].copyWithin(6, 2) => [0, 1, 2, 3, 4, 5]' ); assert( compareArray( - [0, 1, 2, 3, 4, 5].copyWithin(7, 2), - [0, 1, 2, 3, 4, 5] + [0, 1, 2, 3, 4, 5].copyWithin(7, 2), [0, 1, 2, 3, 4, 5] ), '[0, 1, 2, 3, 4, 5].copyWithin(7, 2) => [0, 1, 2, 3, 4, 5]' ); assert( compareArray( - [0, 1, 2, 3, 4, 5].copyWithin(Infinity, 2), - [0, 1, 2, 3, 4, 5] + [0, 1, 2, 3, 4, 5].copyWithin(Infinity, 2), [0, 1, 2, 3, 4, 5] ), '[0, 1, 2, 3, 4, 5].copyWithin(Infinity, 2) => [0, 1, 2, 3, 4, 5]' ); assert( compareArray( - [0, 1, 2, 3, 4, 5].copyWithin(0, 6), - [0, 1, 2, 3, 4, 5] + [0, 1, 2, 3, 4, 5].copyWithin(0, 6), [0, 1, 2, 3, 4, 5] ), '[0, 1, 2, 3, 4, 5].copyWithin(0, 6) => [0, 1, 2, 3, 4, 5]' ); assert( compareArray( - [0, 1, 2, 3, 4, 5].copyWithin(0, 7), - [0, 1, 2, 3, 4, 5] + [0, 1, 2, 3, 4, 5].copyWithin(0, 7), [0, 1, 2, 3, 4, 5] ), '[0, 1, 2, 3, 4, 5].copyWithin(0, 7) => [0, 1, 2, 3, 4, 5]' ); @@ -95,24 +87,21 @@ assert( assert( compareArray( - [0, 1, 2, 3, 4, 5].copyWithin(0, Infinity), - [0, 1, 2, 3, 4, 5] + [0, 1, 2, 3, 4, 5].copyWithin(0, Infinity), [0, 1, 2, 3, 4, 5] ), '[0, 1, 2, 3, 4, 5].copyWithin(0, Infinity) => [0, 1, 2, 3, 4, 5]' ); assert( compareArray( - [0, 1, 2, 3, 4, 5].copyWithin(2, 6), - [0, 1, 2, 3, 4, 5] + [0, 1, 2, 3, 4, 5].copyWithin(2, 6), [0, 1, 2, 3, 4, 5] ), '[0, 1, 2, 3, 4, 5].copyWithin(2, 6) => [0, 1, 2, 3, 4, 5]' ); assert( compareArray( - [0, 1, 2, 3, 4, 5].copyWithin(1, 7), - [0, 1, 2, 3, 4, 5] + [0, 1, 2, 3, 4, 5].copyWithin(1, 7), [0, 1, 2, 3, 4, 5] ), '[0, 1, 2, 3, 4, 5].copyWithin(1, 7) => [0, 1, 2, 3, 4, 5]' ); @@ -120,32 +109,28 @@ assert( assert( compareArray( - [0, 1, 2, 3, 4, 5].copyWithin(3, Infinity), - [0, 1, 2, 3, 4, 5] + [0, 1, 2, 3, 4, 5].copyWithin(3, Infinity), [0, 1, 2, 3, 4, 5] ), '[0, 1, 2, 3, 4, 5].copyWithin(3, Infinity) => [0, 1, 2, 3, 4, 5]' ); assert( compareArray( - [0, 1, 2, 3, 4, 5].copyWithin(6, 6), - [0, 1, 2, 3, 4, 5] + [0, 1, 2, 3, 4, 5].copyWithin(6, 6), [0, 1, 2, 3, 4, 5] ), '[0, 1, 2, 3, 4, 5].copyWithin(6, 6) => [0, 1, 2, 3, 4, 5]' ); assert( compareArray( - [0, 1, 2, 3, 4, 5].copyWithin(10, 10), - [0, 1, 2, 3, 4, 5] + [0, 1, 2, 3, 4, 5].copyWithin(10, 10), [0, 1, 2, 3, 4, 5] ), '[0, 1, 2, 3, 4, 5].copyWithin(10, 10) => [0, 1, 2, 3, 4, 5]' ); assert( compareArray( - [0, 1, 2, 3, 4, 5].copyWithin(Infinity, Infinity), - [0, 1, 2, 3, 4, 5] + [0, 1, 2, 3, 4, 5].copyWithin(Infinity, Infinity), [0, 1, 2, 3, 4, 5] ), '[0, 1, 2, 3, 4, 5].copyWithin(Infinity, Infinity) => [0, 1, 2, 3, 4, 5]' ); diff --git a/test/built-ins/Array/prototype/copyWithin/non-negative-target-and-start.js b/test/built-ins/Array/prototype/copyWithin/non-negative-target-and-start.js index 9704fcc622..02a6bc4e78 100644 --- a/test/built-ins/Array/prototype/copyWithin/non-negative-target-and-start.js +++ b/test/built-ins/Array/prototype/copyWithin/non-negative-target-and-start.js @@ -34,28 +34,24 @@ includes: [compareArray.js] assert( compareArray( - ['a', 'b', 'c', 'd', 'e', 'f'].copyWithin(0, 0), - ['a', 'b', 'c', 'd', 'e', 'f'] + ['a', 'b', 'c', 'd', 'e', 'f'].copyWithin(0, 0), ['a', 'b', 'c', 'd', 'e', 'f'] ) ); assert( compareArray( - ['a', 'b', 'c', 'd', 'e', 'f'].copyWithin(0, 2), - ['c', 'd', 'e', 'f', 'e', 'f'] + ['a', 'b', 'c', 'd', 'e', 'f'].copyWithin(0, 2), ['c', 'd', 'e', 'f', 'e', 'f'] ) ); assert( compareArray( - ['a', 'b', 'c', 'd', 'e', 'f'].copyWithin(3, 0), - ['a', 'b', 'c', 'a', 'b', 'c'] + ['a', 'b', 'c', 'd', 'e', 'f'].copyWithin(3, 0), ['a', 'b', 'c', 'a', 'b', 'c'] ) ); assert( compareArray( - [0, 1, 2, 3, 4, 5].copyWithin(1, 4), - [0, 4, 5, 3, 4, 5] + [0, 1, 2, 3, 4, 5].copyWithin(1, 4), [0, 4, 5, 3, 4, 5] ) ); diff --git a/test/built-ins/Array/prototype/copyWithin/non-negative-target-start-and-end.js b/test/built-ins/Array/prototype/copyWithin/non-negative-target-start-and-end.js index 89a665ad5d..4dbc5479cd 100644 --- a/test/built-ins/Array/prototype/copyWithin/non-negative-target-start-and-end.js +++ b/test/built-ins/Array/prototype/copyWithin/non-negative-target-start-and-end.js @@ -36,24 +36,21 @@ includes: [compareArray.js] assert( compareArray( - [0, 1, 2, 3].copyWithin(0, 0, 0), - [0, 1, 2, 3] + [0, 1, 2, 3].copyWithin(0, 0, 0), [0, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(0, 0, 0) -> [0, 1, 2, 3]' ); assert( compareArray( - [0, 1, 2, 3].copyWithin(0, 0, 2), - [0, 1, 2, 3] + [0, 1, 2, 3].copyWithin(0, 0, 2), [0, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(0, 0, 2) -> [0, 1, 2, 3]' ); assert( compareArray( - [0, 1, 2, 3].copyWithin(0, 1, 2), - [1, 1, 2, 3] + [0, 1, 2, 3].copyWithin(0, 1, 2), [1, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(0, 1, 2) -> [1, 1, 2, 3]' ); @@ -71,16 +68,14 @@ assert( */ assert( compareArray( - [0, 1, 2, 3].copyWithin(1, 0, 2), - [0, 0, 1, 3] + [0, 1, 2, 3].copyWithin(1, 0, 2), [0, 0, 1, 3] ), '[0, 1, 2, 3].copyWithin(1, 0, 2) -> [0, 0, 1, 3]' ); assert( compareArray( - [0, 1, 2, 3, 4, 5].copyWithin(1, 3, 5), - [0, 3, 4, 3, 4, 5] + [0, 1, 2, 3, 4, 5].copyWithin(1, 3, 5), [0, 3, 4, 3, 4, 5] ), '[0, 1, 2, 3, 4, 5].copyWithin(1, 3, 5) -> [0, 3, 4, 3, 4, 5]' ); diff --git a/test/built-ins/Array/prototype/copyWithin/return-abrupt-from-end.js b/test/built-ins/Array/prototype/copyWithin/return-abrupt-from-end.js index 6d69262ff5..a81b4ac32e 100644 --- a/test/built-ins/Array/prototype/copyWithin/return-abrupt-from-end.js +++ b/test/built-ins/Array/prototype/copyWithin/return-abrupt-from-end.js @@ -23,4 +23,3 @@ var o1 = { assert.throws(Test262Error, function() { [].copyWithin(0, 0, o1); }); - diff --git a/test/built-ins/Array/prototype/copyWithin/return-abrupt-from-start.js b/test/built-ins/Array/prototype/copyWithin/return-abrupt-from-start.js index 37768729c6..6694044417 100644 --- a/test/built-ins/Array/prototype/copyWithin/return-abrupt-from-start.js +++ b/test/built-ins/Array/prototype/copyWithin/return-abrupt-from-start.js @@ -22,4 +22,3 @@ var o1 = { assert.throws(Test262Error, function() { [].copyWithin(0, o1); }); - diff --git a/test/built-ins/Array/prototype/copyWithin/undefined-end.js b/test/built-ins/Array/prototype/copyWithin/undefined-end.js index 93c75620ee..6ef024c756 100644 --- a/test/built-ins/Array/prototype/copyWithin/undefined-end.js +++ b/test/built-ins/Array/prototype/copyWithin/undefined-end.js @@ -17,16 +17,14 @@ includes: [compareArray.js] assert( compareArray( - [0, 1, 2, 3].copyWithin(0, 1, undefined), - [1, 2, 3, 3] + [0, 1, 2, 3].copyWithin(0, 1, undefined), [1, 2, 3, 3] ), '[0, 1, 2, 3].copyWithin(0, 1, undefined) -> [1, 2, 3]' ); assert( compareArray( - [0, 1, 2, 3].copyWithin(0, 1), - [1, 2, 3, 3] + [0, 1, 2, 3].copyWithin(0, 1), [1, 2, 3, 3] ), '[0, 1, 2, 3].copyWithin(0, 1) -> [1, 2, 3, 3]' ); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-1-4.js b/test/built-ins/Array/prototype/every/15.4.4.16-1-4.js index 32c5b4f6a8..0d88f961ed 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-1-4.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-1-4.js @@ -8,6 +8,7 @@ description: Array.prototype.every applied to Boolean object ---*/ var accessed = false; + function callbackfn(val, idx, obj) { accessed = true; return obj instanceof Boolean; diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-1-5.js b/test/built-ins/Array/prototype/every/15.4.4.16-1-5.js index 91827adfcd..7bd133c740 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-1-5.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-1-5.js @@ -8,6 +8,7 @@ description: Array.prototype.every applied to number primitive ---*/ var accessed = false; + function callbackfn(val, idx, obj) { accessed = true; return obj instanceof Number; diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-1-6.js b/test/built-ins/Array/prototype/every/15.4.4.16-1-6.js index 09439db09c..255a5afc24 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-1-6.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-1-6.js @@ -8,6 +8,7 @@ description: Array.prototype.every applied to Number object ---*/ var accessed = false; + function callbackfn(val, idx, obj) { accessed = true; return obj instanceof Number; diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-1-9.js b/test/built-ins/Array/prototype/every/15.4.4.16-1-9.js index f33885b890..bf6992cf13 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 88dc9700a5..c895c286c2 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 135cc936d0..9f2497b6aa 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 2f71539f42..4cc13deab8 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-2-12.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-2-12.js @@ -17,16 +17,19 @@ function callbackfn(val, idx, obj) { } Object.defineProperty(Object.prototype, "length", { - get: function () { - return 2; - }, - configurable: true + get: function() { + return 2; + }, + configurable: true }); -var obj = { 0: 9, 1: 8 }; +var obj = { + 0: 9, + 1: 8 +}; Object.defineProperty(obj, "length", { - set: function () { }, - configurable: true + set: function() {}, + configurable: true }); assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-2-13.js b/test/built-ins/Array/prototype/every/15.4.4.16-2-13.js index 07dc5015eb..0c03deb22d 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 f885895242..eb91b3e56c 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-2-14.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-2-14.js @@ -16,7 +16,10 @@ function callbackfn(val, idx, obj) { return val > 10; } -var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-2-17.js b/test/built-ins/Array/prototype/every/15.4.4.16-2-17.js index bf6fcd0c87..7d4e3200c2 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 89977f2223..c7c9512351 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 57c559260c..203eaee8a3 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-2-3.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-2-3.js @@ -17,9 +17,11 @@ function callbackfn2(val, idx, obj) { return val > 11; } -var proto = { length: 3 }; +var proto = { + length: 3 +}; -var Con = function () { }; +var Con = function() {}; Con.prototype = proto; var child = new Con(); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-2-4.js b/test/built-ins/Array/prototype/every/15.4.4.16-2-4.js index c071a88752..cebdab0872 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-2-4.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-2-4.js @@ -10,6 +10,7 @@ description: > ---*/ var arrProtoLen = 0; + function callbackfn1(val, idx, obj) { return val > 10; } diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-2-5.js b/test/built-ins/Array/prototype/every/15.4.4.16-2-5.js index 6cd638bdb8..1f4ffc7a82 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 b464e41512..264d43dd2b 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-2-6.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-2-6.js @@ -17,9 +17,11 @@ function callbackfn2(val, idx, obj) { return val > 11; } -var proto = { length: 2 }; +var proto = { + length: 2 +}; -var Con = function () { }; +var Con = function() {}; Con.prototype = proto; var child = new Con(); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-2-7.js b/test/built-ins/Array/prototype/every/15.4.4.16-2-7.js index bcc252a2be..9e29cd7151 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 298e148b07..d3a3e96abc 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-2-8.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-2-8.js @@ -17,16 +17,18 @@ function callbackfn2(val, idx, obj) { return val > 11; } -var proto = { length: 3 }; +var proto = { + length: 3 +}; -var Con = function () { }; +var Con = function() {}; Con.prototype = proto; var child = new Con(); Object.defineProperty(child, "length", { - get: function () { - return 2; + get: function() { + return 2; }, configurable: true }); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-2-9.js b/test/built-ins/Array/prototype/every/15.4.4.16-2-9.js index 48387126bf..4dd430d1b1 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 b745f20c1f..a72ca6863d 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-3-1.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-1.js @@ -14,7 +14,10 @@ function callbackfn(val, idx, obj) { return val > 10; } -var obj = { 0: 9, length: undefined }; +var obj = { + 0: 9, + length: undefined +}; assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-10.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-10.js index c8029d4a0f..b381ef7d23 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-3-10.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-10.js @@ -16,7 +16,10 @@ function callbackfn(val, idx, obj) { return val > 10; } -var obj = { 0: 9, length: NaN }; +var obj = { + 0: 9, + length: NaN +}; assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-11.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-11.js index 9b27d025a8..ab5fa5744c 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-3-11.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-11.js @@ -17,7 +17,12 @@ function callbackfn2(val, idx, obj) { return val > 11; } -var obj = { 0: 12, 1: 11, 2: 9, length: "2" }; +var obj = { + 0: 12, + 1: 11, + 2: 9, + length: "2" +}; assert(Array.prototype.every.call(obj, callbackfn1), 'Array.prototype.every.call(obj, callbackfn1) !== true'); assert.sameValue(Array.prototype.every.call(obj, callbackfn2), false, 'Array.prototype.every.call(obj, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-12.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-12.js index 0c2a3f97e1..bdf1ee93eb 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-3-12.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-12.js @@ -17,7 +17,12 @@ function callbackfn2(val, idx, obj) { return val > 11; } -var obj = { 0: 11, 1: 12, 2: 9, length: "-4294967294" }; +var obj = { + 0: 11, + 1: 12, + 2: 9, + length: "-4294967294" +}; assert(Array.prototype.every.call(obj, callbackfn1), 'Array.prototype.every.call(obj, callbackfn1) !== true'); assert(Array.prototype.every.call(obj, callbackfn2), 'Array.prototype.every.call(obj, callbackfn2) !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-13.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-13.js index 0043f34eec..23c7342510 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-3-13.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-13.js @@ -17,7 +17,12 @@ function callbackfn2(val, idx, obj) { return val > 11; } -var obj = { 0: 12, 1: 11, 2: 9, length: "2.5" }; +var obj = { + 0: 12, + 1: 11, + 2: 9, + length: "2.5" +}; assert(Array.prototype.every.call(obj, callbackfn1), 'Array.prototype.every.call(obj, callbackfn1) !== true'); assert.sameValue(Array.prototype.every.call(obj, callbackfn2), false, 'Array.prototype.every.call(obj, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-14.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-14.js index 1d99f1e2e3..c20b8194a2 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-3-14.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-14.js @@ -10,13 +10,22 @@ description: Array.prototype.every - 'length' is a string containing +/-Infinity var accessed = false; function callbackfn(val, idx, obj) { - accessed = true; - return val > 10; + accessed = true; + return val > 10; } -var objOne = { 0: 9, length: "Infinity" }; -var objTwo = { 0: 9, length: "+Infinity" }; -var objThree = { 0: 9, length: "-Infinity" }; +var objOne = { + 0: 9, + length: "Infinity" +}; +var objTwo = { + 0: 9, + length: "+Infinity" +}; +var objThree = { + 0: 9, + length: "-Infinity" +}; assert.sameValue(Array.prototype.every.call(objOne, callbackfn), false, 'Array.prototype.every.call(objOne, callbackfn)'); assert.sameValue(Array.prototype.every.call(objTwo, callbackfn), false, 'Array.prototype.every.call(objTwo, callbackfn)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-15.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-15.js index dcdda5faee..63ceb586e8 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-3-15.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-15.js @@ -17,7 +17,12 @@ function callbackfn2(val, idx, obj) { return val > 11; } -var obj = { 0: 12, 1: 11, 2: 9, length: "2E0" }; +var obj = { + 0: 12, + 1: 11, + 2: 9, + length: "2E0" +}; assert(Array.prototype.every.call(obj, callbackfn1), 'Array.prototype.every.call(obj, callbackfn1) !== true'); assert.sameValue(Array.prototype.every.call(obj, callbackfn2), false, 'Array.prototype.every.call(obj, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-16.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-16.js index 4e7f6f97cb..ea0e8386cd 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-3-16.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-16.js @@ -17,7 +17,12 @@ function callbackfn2(val, idx, obj) { return val > 11; } -var obj = { 0: 12, 1: 11, 2: 9, length: "0x0002" }; +var obj = { + 0: 12, + 1: 11, + 2: 9, + length: "0x0002" +}; assert(Array.prototype.every.call(obj, callbackfn1), 'Array.prototype.every.call(obj, callbackfn1) !== true'); assert.sameValue(Array.prototype.every.call(obj, callbackfn2), false, 'Array.prototype.every.call(obj, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-17.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-17.js index eb35d70b13..0125b2b77b 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-3-17.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-17.js @@ -17,7 +17,12 @@ function callbackfn2(val, idx, obj) { return val > 11; } -var obj = { 0: 12, 1: 11, 2: 9, length: "0002.00" }; +var obj = { + 0: 12, + 1: 11, + 2: 9, + length: "0002.00" +}; assert(Array.prototype.every.call(obj, callbackfn1), 'Array.prototype.every.call(obj, callbackfn1) !== true'); assert.sameValue(Array.prototype.every.call(obj, callbackfn2), false, 'Array.prototype.every.call(obj, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-18.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-18.js index 96846f1062..c06bc6c27f 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-3-18.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-18.js @@ -16,7 +16,11 @@ function callbackfn(val, idx, obj) { return val > 10; } -var obj = { 0: 9, 1: 8, length: "two" }; +var obj = { + 0: 9, + 1: 8, + length: "two" +}; assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-19.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-19.js index 15d3f5af93..a2bc1211f7 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 bb2431acb9..fb8444d54d 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-3-2.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-2.js @@ -17,7 +17,11 @@ function callbackfn2(val, idx, obj) { return val > 11; } -var obj = { 0: 11, 1: 9, length: true }; +var obj = { + 0: 11, + 1: 9, + length: true +}; assert(Array.prototype.every.call(obj, callbackfn1), 'Array.prototype.every.call(obj, callbackfn1) !== true'); assert.sameValue(Array.prototype.every.call(obj, callbackfn2), false, 'Array.prototype.every.call(obj, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-20.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-20.js index 4f12b7bd7d..a642c0ad1c 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 cc83597903..7f57fb9f28 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 44c8deb758..a0f549b953 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 e282dd269e..19f4be0b2d 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 61c2e627b4..88db175593 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-3-24.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-24.js @@ -9,15 +9,20 @@ description: > non-integer, ensure truncation occurs in the proper direction ---*/ - function callbackfn1(val, idx, obj) { - return val > 10; - } +function callbackfn1(val, idx, obj) { + return val > 10; +} - function callbackfn2(val, idx, obj) { - return val > 11; - } +function callbackfn2(val, idx, obj) { + return val > 11; +} - var obj = { 0: 12, 1: 11, 2: 9, length: 2.685 }; +var obj = { + 0: 12, + 1: 11, + 2: 9, + length: 2.685 +}; assert(Array.prototype.every.call(obj, callbackfn1), 'Array.prototype.every.call(obj, callbackfn1) !== true'); assert.sameValue(Array.prototype.every.call(obj, callbackfn2), false, 'Array.prototype.every.call(obj, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-25.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-25.js index 3d052320a4..d6a174f875 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 9abe0e9365..eaf990b5b7 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 c792c27c66..4636ccf3ec 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-3-3.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-3.js @@ -7,14 +7,17 @@ es5id: 15.4.4.16-3-3 description: Array.prototype.every - value of 'length' is a number (value is 0) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return val > 10; - } +function callbackfn(val, idx, obj) { + accessed = true; + return val > 10; +} - var obj = { 0: 9, length: 0 }; +var obj = { + 0: 9, + length: 0 +}; assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-4.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-4.js index c17e335a4e..68a0bf50a7 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-3-4.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-4.js @@ -7,14 +7,17 @@ es5id: 15.4.4.16-3-4 description: Array.prototype.every - value of 'length' is a number (value is +0) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return val > 10; - } +function callbackfn(val, idx, obj) { + accessed = true; + return val > 10; +} - var obj = { 0: 9, length: +0 }; +var obj = { + 0: 9, + length: +0 +}; assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-5.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-5.js index eb9f48ba3c..d041e7add3 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-3-5.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-5.js @@ -7,14 +7,17 @@ es5id: 15.4.4.16-3-5 description: Array.prototype.every - value of 'length' is a number (value is -0) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return val > 10; - } +function callbackfn(val, idx, obj) { + accessed = true; + return val > 10; +} - var obj = { 0: 9, length: -0 }; +var obj = { + 0: 9, + length: -0 +}; assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-6.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-6.js index 1d1b15ef18..0ea6839cb5 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-3-6.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-6.js @@ -9,15 +9,20 @@ description: > positive) ---*/ - function callbackfn1(val, idx, obj) { - return val > 10; - } +function callbackfn1(val, idx, obj) { + return val > 10; +} - function callbackfn2(val, idx, obj) { - return val > 11; - } +function callbackfn2(val, idx, obj) { + return val > 11; +} - var obj = { 0: 12, 1: 11, 2: 9, length: 2 }; +var obj = { + 0: 12, + 1: 11, + 2: 9, + length: 2 +}; assert(Array.prototype.every.call(obj, callbackfn1), 'Array.prototype.every.call(obj, callbackfn1) !== true'); assert.sameValue(Array.prototype.every.call(obj, callbackfn2), false, 'Array.prototype.every.call(obj, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-7.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-7.js index 977bb65f9f..880c26aab8 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-3-7.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-7.js @@ -9,15 +9,20 @@ description: > negative) ---*/ - function callbackfn1(val, idx, obj) { - return val > 10; - } +function callbackfn1(val, idx, obj) { + return val > 10; +} - function callbackfn2(val, idx, obj) { - return val > 11; - } +function callbackfn2(val, idx, obj) { + return val > 11; +} - var obj = { 0: 12, 1: 11, 2: 9, length: -4294967294 }; //length used to exec while loop is 0 +var obj = { + 0: 12, + 1: 11, + 2: 9, + length: -4294967294 +}; //length used to exec while loop is 0 assert(Array.prototype.every.call(obj, callbackfn1), 'Array.prototype.every.call(obj, callbackfn1) !== true'); assert(Array.prototype.every.call(obj, callbackfn2), 'Array.prototype.every.call(obj, callbackfn2) !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-8.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-8.js index 6496da4f0a..47a09300da 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-3-8.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-8.js @@ -9,14 +9,17 @@ description: > Infinity) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return val > 10; - } +function callbackfn(val, idx, obj) { + accessed = true; + return val > 10; +} - var obj = { 0: 9, length: Infinity }; +var obj = { + 0: 9, + length: Infinity +}; assert.sameValue(Array.prototype.every.call(obj, callbackfn), false, 'Array.prototype.every.call(obj, callbackfn)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-9.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-9.js index 9499801b8e..7166e98b84 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-3-9.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-9.js @@ -9,14 +9,17 @@ description: > -Infinity) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return val > 10; - } +function callbackfn(val, idx, obj) { + accessed = true; + return val > 10; +} - var obj = { 0: 9, length: -Infinity }; +var obj = { + 0: 9, + length: -Infinity +}; assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-4-1.js b/test/built-ins/Array/prototype/every/15.4.4.16-4-1.js index 8cefedbe04..c0d6ba0cb4 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 abbff39d21..2f458442b8 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-4-10.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-4-10.js @@ -9,15 +9,18 @@ description: > was thrown by step 2 ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - Object.defineProperty(obj, "length", { - get: function () { - throw new Test262Error(); - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + throw new Test262Error(); + }, + configurable: true +}); assert.throws(Test262Error, function() { - Array.prototype.every.call(obj, undefined); + Array.prototype.every.call(obj, undefined); }); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-4-11.js b/test/built-ins/Array/prototype/every/15.4.4.16-4-11.js index 4e4b09b69c..2cd9bba54c 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-4-11.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-4-11.js @@ -9,19 +9,22 @@ description: > was thrown by step 3 ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - Object.defineProperty(obj, "length", { - get: function () { - return { - toString: function () { - throw new Test262Error(); - } - }; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + return { + toString: function() { + throw new Test262Error(); + } + }; + }, + configurable: true +}); assert.throws(Test262Error, function() { - Array.prototype.every.call(obj, undefined); + Array.prototype.every.call(obj, undefined); }); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-4-12.js b/test/built-ins/Array/prototype/every/15.4.4.16-4-12.js index ded81c8a43..a137acbc31 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 2f4fa8f8ca..207a615ffe 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-4-15.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-4-15.js @@ -9,27 +9,29 @@ description: > passing undefined for callbackfn ---*/ - var obj = { 10: 10 }; - var lengthAccessed = false; - var loopAccessed = false; +var obj = { + 10: 10 +}; +var lengthAccessed = false; +var loopAccessed = false; - Object.defineProperty(obj, "length", { - get: function () { - lengthAccessed = true; - return 20; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + lengthAccessed = true; + return 20; + }, + configurable: true +}); - Object.defineProperty(obj, "0", { - get: function () { - loopAccessed = true; - return 10; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + loopAccessed = true; + return 10; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.every.call(obj); + Array.prototype.every.call(obj); }); assert(lengthAccessed, 'lengthAccessed !== true'); assert.sameValue(loopAccessed, false, 'loopAccessed'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-4-3.js b/test/built-ins/Array/prototype/every/15.4.4.16-4-3.js index 103f22d6a0..2613f1cf33 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 1b76313323..6a1c037720 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 deb04c6f25..a2d5c7aefa 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 6597e45998..eb07314b17 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 f512f2151b..51e13d6d18 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 a3e75ff59e..cb6ef73b10 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-4-8.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-4-8.js @@ -9,18 +9,21 @@ description: > visible when an exception occurs ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - var accessed = false; +var accessed = false; - Object.defineProperty(obj, "length", { - get: function () { - accessed = true; - return 2; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + accessed = true; + return 2; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.every.call(obj, null); + Array.prototype.every.call(obj, null); }); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-4-9.js b/test/built-ins/Array/prototype/every/15.4.4.16-4-9.js index fc1acaa02d..efe205eb4a 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-4-9.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-4-9.js @@ -9,22 +9,25 @@ description: > visible when an exception occurs ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - var accessed = false; +var accessed = false; - Object.defineProperty(obj, "length", { - get: function () { - return { - toString: function () { - accessed = true; - return "2"; - } - }; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + return { + toString: function() { + accessed = true; + return "2"; + } + }; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.every.call(obj, null); + Array.prototype.every.call(obj, null); }); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-1-s.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-1-s.js index 989a6ee203..2d906315f2 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 360f9850fb..a3bdbc170c 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 5d7c8a6e9a..087f9c2a38 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 41792ec1d0..dce15d0f46 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 cbb7ddf8b0..97b5771b3f 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 34e73df321..da8f799386 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 697ef848e9..a5cc48fbf7 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 66a64d987f..7133cd487a 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 091caa14c3..1edd76714c 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 9e9bd18e83..2a5162a9cd 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 a944bff817..bae882c7c6 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 7a3e06e099..3b39e1826f 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 f15102c641..96c0d39a49 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-5-2.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-2.js @@ -7,14 +7,15 @@ es5id: 15.4.4.16-5-2 description: Array.prototype.every - thisArg is Object ---*/ - var res = false; - var o = new Object(); - o.res = true; - function callbackfn(val, idx, obj) - { - return this.res; - } +var res = false; +var o = new Object(); +o.res = true; - var arr = [1]; +function callbackfn(val, idx, obj) +{ + return this.res; +} + +var arr = [1]; assert.sameValue(arr.every(callbackfn, o), true, 'arr.every(callbackfn, o)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-21.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-21.js index 7da5e81930..50d36ddce6 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 d580818a68..90dcfb2dfd 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 7953a70064..ba19fd209f 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 c9da3d9910..4439dca25a 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 69f614ff84..1a1bb9b7da 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-5-3.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-3.js @@ -7,14 +7,15 @@ es5id: 15.4.4.16-5-3 description: Array.prototype.every - thisArg is Array ---*/ - var res = false; - var a = new Array(); - a.res = true; - function callbackfn(val, idx, obj) - { - return this.res; - } +var res = false; +var a = new Array(); +a.res = true; - var arr = [1]; +function callbackfn(val, idx, obj) +{ + return this.res; +} + +var arr = [1]; assert.sameValue(arr.every(callbackfn, a), true, 'arr.every(callbackfn, a)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-4.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-4.js index 45ee186d17..b3e03058ab 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-5-4.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-4.js @@ -9,15 +9,16 @@ description: > template(prototype) ---*/ - var res = false; - function callbackfn(val, idx, obj) - { - return this.res; - } +var res = false; - function foo(){} - foo.prototype.res = true; - var f = new foo(); - var arr = [1]; +function callbackfn(val, idx, obj) +{ + return this.res; +} -assert.sameValue(arr.every(callbackfn,f), true, 'arr.every(callbackfn,f)'); +function foo() {} +foo.prototype.res = true; +var f = new foo(); +var arr = [1]; + +assert.sameValue(arr.every(callbackfn, f), true, 'arr.every(callbackfn,f)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-5.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-5.js index c0447933fd..47ce23ac64 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-5-5.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-5.js @@ -7,15 +7,16 @@ es5id: 15.4.4.16-5-5 description: Array.prototype.every - thisArg is object from object template ---*/ - var res = false; - function callbackfn(val, idx, obj) - { - return this.res; - } +var res = false; - function foo(){} - var f = new foo(); - f.res = true; - var arr = [1]; +function callbackfn(val, idx, obj) +{ + return this.res; +} -assert.sameValue(arr.every(callbackfn,f), true, 'arr.every(callbackfn,f)'); +function foo() {} +var f = new foo(); +f.res = true; +var arr = [1]; + +assert.sameValue(arr.every(callbackfn, f), true, 'arr.every(callbackfn,f)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-6.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-6.js index f871e3a43f..a71c98ee2f 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-5-6.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-6.js @@ -7,14 +7,15 @@ es5id: 15.4.4.16-5-6 description: Array.prototype.every - thisArg is function ---*/ - var res = false; - function callbackfn(val, idx, obj) - { - return this.res; - } +var res = false; - function foo(){} - foo.res = true; - var arr = [1]; +function callbackfn(val, idx, obj) +{ + return this.res; +} -assert.sameValue(arr.every(callbackfn,foo), true, 'arr.every(callbackfn,foo)'); +function foo() {} +foo.res = true; +var arr = [1]; + +assert.sameValue(arr.every(callbackfn, foo), true, 'arr.every(callbackfn,foo)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-7.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-7.js index 3fa6fc9e7b..ff38fcdc42 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 400c0ca845..2757891428 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 e8d6745dde..22bcfaff63 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 fcb91af176..47d3ed4e52 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 2145752959..08531fe619 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 0cfdd4ebce..9cbb2eda08 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 c7cfcd23ee..c4c062bdff 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 1cf937c7cd..45bcdd29a1 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 7eaab50788..d25bd744d2 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 079db7b2d0..ff2f0f8bed 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-8.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-8.js @@ -7,14 +7,18 @@ es5id: 15.4.4.16-7-8 description: Array.prototype.every - no observable effects occur if len is 0 ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return val > 10; - } +function callbackfn(val, idx, obj) { + accessed = true; + return val > 10; +} - var obj = { 0: 11, 1: 12, length: 0 }; +var obj = { + 0: 11, + 1: 12, + length: 0 +}; assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-9.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-9.js index ded5d48e25..c1bbdfc1b1 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-9.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-9.js @@ -9,22 +9,26 @@ description: > number of iterations ---*/ - var called = 0; +var called = 0; - function callbackfn(val, idx, obj) { - called++; - return val > 10; - } +function callbackfn(val, idx, obj) { + called++; + return val > 10; +} - var obj = { 1: 12, 2: 9, length: 2 }; +var obj = { + 1: 12, + 2: 9, + length: 2 +}; - Object.defineProperty(obj, "0", { - get: function () { - obj.length = 3; - return 11; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + obj.length = 3; + return 11; + }, + configurable: true +}); assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true'); assert.sameValue(called, 2, 'called'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-1.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-1.js index e0f07ee54e..abcf91365c 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-1.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-1.js @@ -9,15 +9,16 @@ description: > been assigned values ---*/ - var callCnt = 0.; - function callbackfn(val, Idx, obj) - { - callCnt++; - return true; - } +var callCnt = 0.; - var arr = new Array(10); - arr[1] = undefined; - arr.every(callbackfn); +function callbackfn(val, Idx, obj) +{ + callCnt++; + return true; +} + +var arr = new Array(10); +arr[1] = undefined; +arr.every(callbackfn); assert.sameValue(callCnt, 1, 'callCnt'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-10.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-10.js index e27ff642f6..913796b1f9 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-10.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-10.js @@ -9,22 +9,26 @@ description: > prototype index property not to be visited on an Array-like Object ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return idx !== 1; - } - var arr = { 2: 2, length: 20 }; +var accessed = false; - Object.defineProperty(arr, "0", { - get: function () { - delete Object.prototype[1]; - return 0; - }, - configurable: true - }); +function callbackfn(val, idx, obj) { + accessed = true; + return idx !== 1; +} +var arr = { + 2: 2, + length: 20 +}; - Object.prototype[1] = 1; +Object.defineProperty(arr, "0", { + get: function() { + delete Object.prototype[1]; + return 0; + }, + configurable: true +}); + +Object.prototype[1] = 1; assert(Array.prototype.every.call(arr, callbackfn), 'Array.prototype.every.call(arr, callbackfn) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-11.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-11.js index 54c86d50ed..c9ff957cba 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-11.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-11.js @@ -9,22 +9,23 @@ description: > prototype index property not to be visited on an Array ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return idx !== 1; - } - var arr = [0, , 2]; +var accessed = false; - Object.defineProperty(arr, "0", { - get: function () { - delete Array.prototype[1]; - return 0; - }, - configurable: true - }); +function callbackfn(val, idx, obj) { + accessed = true; + return idx !== 1; +} +var arr = [0, , 2]; - Array.prototype[1] = 1; +Object.defineProperty(arr, "0", { + get: function() { + delete Array.prototype[1]; + return 0; + }, + configurable: true +}); + +Array.prototype[1] = 1; assert(arr.every(callbackfn), 'arr.every(callbackfn) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-12.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-12.js index fda1fe2a7e..63282ca554 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-12.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-12.js @@ -10,23 +10,28 @@ description: > Array-like object ---*/ - function callbackfn(val, idx, obj) { - if (idx === 1 && val === 1) { - return false; - } else { - return true; - } - } - var arr = { 0: 0, 1: 111, 2: 2, length: 10 }; +function callbackfn(val, idx, obj) { + if (idx === 1 && val === 1) { + return false; + } else { + return true; + } +} +var arr = { + 0: 0, + 1: 111, + 2: 2, + length: 10 +}; - Object.defineProperty(arr, "0", { - get: function () { - delete arr[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + delete arr[1]; + return 0; + }, + configurable: true +}); - Object.prototype[1] = 1; +Object.prototype[1] = 1; assert.sameValue(Array.prototype.every.call(arr, callbackfn), false, 'Array.prototype.every.call(arr, callbackfn)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-13.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-13.js index 4032502e51..26f3f17d17 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 5115a27a35..a017ff9643 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-14.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-14.js @@ -9,20 +9,21 @@ description: > property not to be visited ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return idx !== 3; - } - var arr = [0, 1, 2, "last"]; +var accessed = false; - Object.defineProperty(arr, "0", { - get: function () { - arr.length = 3; - return 0; - }, - configurable: true - }); +function callbackfn(val, idx, obj) { + accessed = true; + return idx !== 3; +} +var arr = [0, 1, 2, "last"]; + +Object.defineProperty(arr, "0", { + get: function() { + arr.length = 3; + return 0; + }, + configurable: true +}); assert(arr.every(callbackfn), 'arr.every(callbackfn) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-15.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-15.js index 03fa5344fe..eeb2786e3b 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 602b4b80c2..2bd39ef0ab 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 fca306466a..56c5b404f3 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 9c7afe89ae..ca526b8ca2 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-3.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-3.js @@ -9,20 +9,24 @@ description: > here ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return idx !== 2; - } - var arr = { 2: 6.99, 8: 19}; +var accessed = false; - Object.defineProperty(arr, "length", { - get: function () { - delete arr[2]; - return 10; - }, - configurable: true - }); +function callbackfn(val, idx, obj) { + accessed = true; + return idx !== 2; +} +var arr = { + 2: 6.99, + 8: 19 +}; + +Object.defineProperty(arr, "length", { + get: function() { + delete arr[2]; + return 10; + }, + configurable: true +}); assert(Array.prototype.every.call(arr, callbackfn), 'Array.prototype.every.call(arr, callbackfn) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-4.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-4.js index dbcbe21dd1..691affd2cc 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-4.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-4.js @@ -9,27 +9,29 @@ description: > current position are visited on an Array-like object ---*/ - function callbackfn(val, idx, obj) { - if (idx === 1 && val === 1) { - return false; - } else { - return true; - } - } +function callbackfn(val, idx, obj) { + if (idx === 1 && val === 1) { + return false; + } else { + return true; + } +} - var arr = { length: 2 }; +var arr = { + length: 2 +}; - Object.defineProperty(arr, "0", { - get: function () { - Object.defineProperty(arr, "1", { - get: function () { - return 1; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + Object.defineProperty(arr, "1", { + get: function() { + return 1; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); assert.sameValue(Array.prototype.every.call(arr, callbackfn), false, 'Array.prototype.every.call(arr, callbackfn)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-5.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-5.js index 5fd08b67e9..75cff0bfed 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 4a71a83894..27663980cc 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-6.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-6.js @@ -9,26 +9,28 @@ description: > current position are visited on an Array-like object ---*/ - function callbackfn(val, idx, obj) { - if (idx === 1 && val === 6.99) { - return false; - } else { - return true; - } - } - var arr = { length: 2 }; +function callbackfn(val, idx, obj) { + if (idx === 1 && val === 6.99) { + return false; + } else { + return true; + } +} +var arr = { + length: 2 +}; - Object.defineProperty(arr, "0", { - get: function () { - Object.defineProperty(Object.prototype, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + Object.defineProperty(Object.prototype, "1", { + get: function() { + return 6.99; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); assert.sameValue(Array.prototype.every.call(arr, callbackfn), false, 'Array.prototype.every.call(arr, callbackfn)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-7.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-7.js index 692c399de5..92daa04a19 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 4bb911375b..76f5f1cc01 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-8.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-8.js @@ -9,27 +9,30 @@ description: > property not to be visited on an Array-like object ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return idx !== 1; - } - var obj = { length: 2 }; +var accessed = false; - Object.defineProperty(obj, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); +function callbackfn(val, idx, obj) { + accessed = true; + return idx !== 1; +} +var obj = { + length: 2 +}; - Object.defineProperty(obj, "0", { - get: function () { - delete obj[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "1", { + get: function() { + return 6.99; + }, + configurable: true +}); + +Object.defineProperty(obj, "0", { + get: function() { + delete obj[1]; + return 0; + }, + configurable: true +}); assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-9.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-9.js index 2c340f8d63..9159db9860 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-9.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-9.js @@ -9,27 +9,28 @@ description: > property not to be visited on an Array ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return idx !== 1; - } - var arr = [1, 2]; +var accessed = false; - Object.defineProperty(arr, "1", { - get: function () { - return "6.99"; - }, - configurable: true - }); +function callbackfn(val, idx, obj) { + accessed = true; + return idx !== 1; +} +var arr = [1, 2]; - Object.defineProperty(arr, "0", { - get: function () { - delete arr[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "1", { + get: function() { + return "6.99"; + }, + configurable: true +}); + +Object.defineProperty(arr, "0", { + get: function() { + delete arr[1]; + return 0; + }, + configurable: true +}); assert(arr.every(callbackfn), 'arr.every(callbackfn) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-1.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-1.js index 579deb13d2..fd1e28b5f0 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-1.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-1.js @@ -9,15 +9,19 @@ description: > property on an Array-like object ---*/ - var kValue = { }; - function callbackfn(val, idx, obj) { - if (idx === 5) { - return val !== kValue; - } else { - return true; - } - } +var kValue = {}; - var obj = { 5: kValue, length: 100 }; +function callbackfn(val, idx, obj) { + if (idx === 5) { + return val !== kValue; + } else { + return true; + } +} + +var obj = { + 5: kValue, + length: 100 +}; assert.sameValue(Array.prototype.every.call(obj, callbackfn), false, 'Array.prototype.every.call(obj, callbackfn)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-10.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-10.js index 1357bbb23a..653e5e2445 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 9527daf83e..4168c98f94 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-11.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-11.js @@ -10,27 +10,30 @@ description: > Array-like object ---*/ - function callbackfn(val, idx, obj) { - if (idx === 0) { - return val === 5; - } else { - return true; - } - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + return val === 5; + } else { + return true; + } +} - var proto = { 0: 5, 1: 6 }; +var proto = { + 0: 5, + 1: 6 +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child.length = 10; +var child = new Con(); +child.length = 10; - Object.defineProperty(child, "0", { - get: function () { - return 11; - }, - configurable: true - }); +Object.defineProperty(child, "0", { + get: function() { + return 11; + }, + configurable: true +}); assert.sameValue(Array.prototype.every.call(child, callbackfn), false, 'Array.prototype.every.call(child, callbackfn)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-12.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-12.js index 54751e5662..c1f29b18b8 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 aff2f0b0e6..5ffb1d5444 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 544ef938b3..1cf1f75a2b 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 bc8906dfcb..aab698397b 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 20a2741807..c249d76b1e 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 948c741bd8..9b52fef8fa 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-17.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-17.js @@ -9,18 +9,20 @@ description: > property without a get function on an Array-like object ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return typeof val === "undefined"; - } +function callbackfn(val, idx, obj) { + accessed = true; + return typeof val === "undefined"; +} - var obj = { length: 2 }; - Object.defineProperty(obj, "1", { - set: function () { }, - configurable: true - }); +var obj = { + length: 2 +}; +Object.defineProperty(obj, "1", { + set: function() {}, + configurable: true +}); assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-18.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-18.js index 7911ea384b..300d32b828 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 26ae16c5a3..cc150375a8 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-19.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-19.js @@ -10,20 +10,22 @@ description: > accessor property on an Array-like object ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return typeof val === "undefined"; - } +function callbackfn(val, idx, obj) { + accessed = true; + return typeof val === "undefined"; +} - var obj = { length: 2 }; - Object.defineProperty(obj, "1", { - set: function () { }, - configurable: true - }); +var obj = { + length: 2 +}; +Object.defineProperty(obj, "1", { + set: function() {}, + configurable: true +}); - Object.prototype[1] = 10; +Object.prototype[1] = 10; assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-2.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-2.js index 5a201fde8b..5afcd1e0b7 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 38e384bb23..8a5fa31391 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 c905856ef0..b6d06142ec 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 aaa682d440..9477b201fd 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 2900f50338..c39d506641 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 6e636fbb95..3e1c7da804 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 c1c2719def..2002d812a1 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 d39ed23c0e..425efe5899 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 dbc91eb150..90c121c972 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-29.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-29.js @@ -9,30 +9,32 @@ description: > iterations is observed on an Array-like object ---*/ - function callbackfn(val, idx, obj) { - return val > 10; - } +function callbackfn(val, idx, obj) { + return val > 10; +} - var preIterVisible = false; - var obj = { length: 2 }; +var preIterVisible = false; +var obj = { + length: 2 +}; - Object.defineProperty(obj, "0", { - get: function () { - preIterVisible = true; - return 11; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + preIterVisible = true; + return 11; + }, + configurable: true +}); - Object.defineProperty(obj, "1", { - get: function () { - if (preIterVisible) { - return 9; - } else { - return 13; - } - }, - configurable: true - }); +Object.defineProperty(obj, "1", { + get: function() { + if (preIterVisible) { + return 9; + } else { + return 13; + } + }, + configurable: true +}); assert.sameValue(Array.prototype.every.call(obj, callbackfn), false, 'Array.prototype.every.call(obj, callbackfn)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-3.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-3.js index c4fe3a8144..d0eac70c03 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-3.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-3.js @@ -9,21 +9,24 @@ description: > property that overrides an inherited data property on an Array ---*/ - function callbackfn(val, idx, obj) { - if (idx === 5) { - return val === 100; - } else { - return true; - } - } +function callbackfn(val, idx, obj) { + if (idx === 5) { + return val === 100; + } else { + return true; + } +} - var proto = { 0: 11, 5: 100 }; +var proto = { + 0: 11, + 5: 100 +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child[5] = "abc"; - child.length = 10; +var child = new Con(); +child[5] = "abc"; +child.length = 10; assert.sameValue(Array.prototype.every.call(child, callbackfn), false, 'Array.prototype.every.call(child, callbackfn)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-30.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-30.js index 3bd5fd6491..04f0d51381 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-30.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-30.js @@ -9,22 +9,28 @@ description: > terminate iteration on an Array-like object ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - if (idx > 1) { - accessed = true; - } - return true; - } +var accessed = false; - var obj = { 0: 11, 5: 10, 10: 8, length: 20 }; - Object.defineProperty(obj, "1", { - get: function () { - throw new RangeError("unhandle exception happened in getter"); - }, - configurable: true - }); +function callbackfn(val, idx, obj) { + if (idx > 1) { + accessed = true; + } + return true; +} + +var obj = { + 0: 11, + 5: 10, + 10: 8, + length: 20 +}; +Object.defineProperty(obj, "1", { + get: function() { + throw new RangeError("unhandle exception happened in getter"); + }, + configurable: true +}); assert.throws(RangeError, function() { - Array.prototype.every.call(obj, callbackfn); + Array.prototype.every.call(obj, callbackfn); }); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-31.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-31.js index 3214e3376e..b28796ac80 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-31.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-31.js @@ -9,25 +9,26 @@ description: > terminate iteration on an Array ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - if (idx > 1) { - accessed = true; - } - return true; - } +var accessed = false; - var arr = []; - arr[5] = 10; - arr[10] = 100; +function callbackfn(val, idx, obj) { + if (idx > 1) { + accessed = true; + } + return true; +} - Object.defineProperty(arr, "1", { - get: function () { - throw new RangeError("unhandle exception happened in getter"); - }, - configurable: true - }); +var arr = []; +arr[5] = 10; +arr[10] = 100; + +Object.defineProperty(arr, "1", { + get: function() { + throw new RangeError("unhandle exception happened in getter"); + }, + configurable: true +}); assert.throws(RangeError, function() { - arr.every(callbackfn); + arr.every(callbackfn); }); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-4.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-4.js index 9c598c783e..d9e81c6df3 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-4.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-4.js @@ -9,14 +9,15 @@ description: > property that overrides an inherited data property on an Array ---*/ - var called = 0; - function callbackfn(val, idx, obj) { - called++; - return val === 12; - } +var called = 0; - Array.prototype[0] = 11; - Array.prototype[1] = 11; +function callbackfn(val, idx, obj) { + called++; + return val === 12; +} + +Array.prototype[0] = 11; +Array.prototype[1] = 11; assert([12, 12].every(callbackfn), '[12, 12].every(callbackfn) !== true'); assert.sameValue(called, 2, 'called'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-5.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-5.js index 988ac8f6e9..25c2670786 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 da98350be5..9575fe8adb 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 f0d11eb5bf..10d9ab7dbb 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-7.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-7.js @@ -9,22 +9,24 @@ description: > property on an Array-like object ---*/ - var kValue = 'abc'; +var kValue = 'abc'; - function callbackfn(val, idx, obj) { - if (idx === 5) { - return val !== kValue; - } else { - return true; - } - } +function callbackfn(val, idx, obj) { + if (idx === 5) { + return val !== kValue; + } else { + return true; + } +} - var proto = { 5: kValue }; +var proto = { + 5: kValue +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child.length = 10; +var child = new Con(); +child.length = 10; assert.sameValue(Array.prototype.every.call(child, callbackfn), false, 'Array.prototype.every.call(child, callbackfn)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-8.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-8.js index f36b542368..507af757aa 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 5b37f8ab44..49392cb8a7 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-9.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-9.js @@ -9,22 +9,25 @@ description: > property on an Array-like object ---*/ - function callbackfn(val, idx, obj) { - if (idx === 0) { - return val !== 11; - } else { - return true; - } - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + return val !== 11; + } else { + return true; + } +} - var obj = { 10: 10, length: 20 }; +var obj = { + 10: 10, + length: 20 +}; - Object.defineProperty(obj, "0", { - get: function () { - return 11; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + return 11; + }, + configurable: true +}); assert.sameValue(Array.prototype.every.call(obj, callbackfn), false, 'Array.prototype.every.call(obj, callbackfn)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-1.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-1.js index 559925a696..fff7c361cd 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 3a67002bfc..118130921c 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 41797d60cd..1ed6ecb0dc 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 0724d0b3fa..62eefe55bb 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 340b49aff1..8f30c0a8c4 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 f9a5dc890a..379efe7654 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-16.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-16.js @@ -9,14 +9,17 @@ description: > when T is not an object (T is a boolean primitive) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return this.valueOf() !== false; - } +function callbackfn(val, idx, obj) { + accessed = true; + return this.valueOf() !== false; +} - var obj = { 0: 11, length: 2 }; +var obj = { + 0: 11, + length: 2 +}; assert.sameValue(Array.prototype.every.call(obj, callbackfn, false), false, 'Array.prototype.every.call(obj, callbackfn, false)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-17.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-17.js index 3732ea4417..f9d83678ec 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-17.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-17.js @@ -9,14 +9,17 @@ description: > when T is not an object (T is a number primitive) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, o) { - accessed = true; - return 5 === this.valueOf(); - } +function callbackfn(val, idx, o) { + accessed = true; + return 5 === this.valueOf(); +} - var obj = { 0: 11, length: 2 }; +var obj = { + 0: 11, + length: 2 +}; assert(Array.prototype.every.call(obj, callbackfn, 5), 'Array.prototype.every.call(obj, callbackfn, 5) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-18.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-18.js index 3392433cbe..17c1668bc2 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-18.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-18.js @@ -9,14 +9,17 @@ description: > when T is not an object (T is a string primitive) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return 'hello' === this.valueOf(); - } +function callbackfn(val, idx, obj) { + accessed = true; + return 'hello' === this.valueOf(); +} - var obj = { 0: 11, length: 2 }; +var obj = { + 0: 11, + length: 2 +}; assert(Array.prototype.every.call(obj, callbackfn, "hello"), 'Array.prototype.every.call(obj, callbackfn, "hello") !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-19.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-19.js index f861f38e61..cc7626465e 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-19.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-19.js @@ -7,14 +7,19 @@ es5id: 15.4.4.16-7-c-ii-19 description: Array.prototype.every - non-indexed properties are not called ---*/ - var called = 0; +var called = 0; - function callbackfn(val, idx, obj) { - called++; - return val !== 8; - } +function callbackfn(val, idx, obj) { + called++; + return val !== 8; +} - var obj = { 0: 11, 10: 12, non_index_property: 8, length: 20 }; +var obj = { + 0: 11, + 10: 12, + non_index_property: 8, + length: 20 +}; assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true'); assert.sameValue(called, 2, 'called'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-2.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-2.js index 0194ce3871..daacdfda48 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 9cb001e0c8..23fe1f4c11 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-20.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-20.js @@ -9,15 +9,20 @@ description: > (thisArg is correct) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return 10 === this.threshold; - } +function callbackfn(val, idx, obj) { + accessed = true; + return 10 === this.threshold; +} - var thisArg = { threshold: 10 }; +var thisArg = { + threshold: 10 +}; - var obj = { 0: 11, length: 1 }; +var obj = { + 0: 11, + length: 1 +}; assert(Array.prototype.every.call(obj, callbackfn, thisArg), 'Array.prototype.every.call(obj, callbackfn, thisArg) !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-21.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-21.js index 2d193c698e..4153657136 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-21.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-21.js @@ -9,21 +9,25 @@ description: > (kValue is correct) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - if (idx === 0) { - return val === 11; - } +function callbackfn(val, idx, obj) { + accessed = true; + if (idx === 0) { + return val === 11; + } - if (idx === 1) { - return val === 12; - } + if (idx === 1) { + return val === 12; + } - } +} - var obj = { 0: 11, 1: 12, length: 2 }; +var obj = { + 0: 11, + 1: 12, + length: 2 +}; assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-22.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-22.js index 524d619652..bd56fc0a95 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-22.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-22.js @@ -9,21 +9,25 @@ description: > (the index k is correct) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - if (val === 11) { - return idx === 0; - } +function callbackfn(val, idx, obj) { + accessed = true; + if (val === 11) { + return idx === 0; + } - if (val === 12) { - return idx === 1; - } + if (val === 12) { + return idx === 1; + } - } +} - var obj = { 0: 11, 1: 12, length: 2 }; +var obj = { + 0: 11, + 1: 12, + length: 2 +}; assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-23.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-23.js index e5567884be..59a1e55662 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-23.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-23.js @@ -9,13 +9,17 @@ description: > (this object O is correct) ---*/ - var called = 0; - var obj = { 0: 11, 1: 12, length: 2 }; +var called = 0; +var obj = { + 0: 11, + 1: 12, + length: 2 +}; - function callbackfn(val, idx, o) { - called++; - return obj === o; - } +function callbackfn(val, idx, o) { + called++; + return obj === o; +} assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true'); assert.sameValue(called, 2, 'called'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-3.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-3.js index 39da9d01fe..f35df89130 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-3.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-3.js @@ -9,17 +9,18 @@ description: > returns false ---*/ - var callCnt = 0; - function callbackfn(val, idx, obj) - { - callCnt++; - if(idx > 5) - return false; - else - return true; - } +var callCnt = 0; - var arr = [0,1,2,3,4,5,6,7,8,9]; +function callbackfn(val, idx, obj) +{ + callCnt++; + if (idx > 5) + return false; + else + return true; +} + +var arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; assert.sameValue(arr.every(callbackfn), false, 'arr.every(callbackfn)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-4.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-4.js index 9a4216a673..07a4d691a6 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-4.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-4.js @@ -9,18 +9,19 @@ description: > order ---*/ - var arr = [0, 1, 2, 3, 4, 5]; - var lastIdx = 0; - var called = 0; - function callbackfn(val, idx, o) { - called++; - if (lastIdx !== idx) { - return false; - } else { - lastIdx++; - return true; - } - } +var arr = [0, 1, 2, 3, 4, 5]; +var lastIdx = 0; +var called = 0; + +function callbackfn(val, idx, o) { + called++; + if (lastIdx !== idx) { + return false; + } else { + lastIdx++; + return true; + } +} assert(arr.every(callbackfn), 'arr.every(callbackfn) !== true'); assert.sameValue(arr.length, called, 'arr.length'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-5.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-5.js index edd62427fb..f604f96720 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 d1c33e9674..df9f83143c 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-6.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-6.js @@ -7,17 +7,20 @@ es5id: 15.4.4.16-7-c-ii-6 description: Array.prototype.every - arguments to callbackfn are self consistent ---*/ - var accessed = false; - var thisArg = {}; - var obj = { 0: 11, length: 1 }; +var accessed = false; +var thisArg = {}; +var obj = { + 0: 11, + length: 1 +}; - function callbackfn() { - accessed = true; - return this === thisArg && - arguments[0] === 11 && - arguments[1] === 0 && - arguments[2] === obj; - } +function callbackfn() { + accessed = true; + return this === thisArg && + arguments[0] === 11 && + arguments[1] === 0 && + arguments[2] === obj; +} assert(Array.prototype.every.call(obj, callbackfn, thisArg), 'Array.prototype.every.call(obj, callbackfn, thisArg) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-7.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-7.js index d3f0f8eff8..c1a6345d83 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-7.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-7.js @@ -9,20 +9,25 @@ description: > callbackfn terminate iteration ---*/ - var called = 0; +var called = 0; - function callbackfn(val, idx, obj) { - called++; - if (called === 1) { - throw new Test262Error("Exception occurred in callbackfn"); - } - return true; - } +function callbackfn(val, idx, obj) { + called++; + if (called === 1) { + throw new Test262Error("Exception occurred in callbackfn"); + } + return true; +} - var obj = { 0: 11, 4: 10, 10: 8, length: 20 }; +var obj = { + 0: 11, + 4: 10, + 10: 8, + length: 20 +}; assert.throws(Test262Error, function() { - Array.prototype.every.call(obj, callbackfn); + Array.prototype.every.call(obj, callbackfn); }); assert.sameValue(called, 1, 'called'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-8.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-8.js index 26fb2b97a9..6f015b207b 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-8.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-8.js @@ -9,14 +9,18 @@ description: > iterations is observed ---*/ - var obj = { 0: 11, 1: 12, length: 2 }; +var obj = { + 0: 11, + 1: 12, + length: 2 +}; - function callbackfn(val, idx, o) { - if (idx === 0) { - obj[idx + 1] = 8; - } - return val > 10; - } +function callbackfn(val, idx, o) { + if (idx === 0) { + obj[idx + 1] = 8; + } + return val > 10; +} diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-9.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-9.js index dfc3894db7..b033642755 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 f29e4f155b..bafc7b8411 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-1.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-1.js @@ -7,13 +7,16 @@ es5id: 15.4.4.16-7-c-iii-1 description: Array.prototype.every - return value of callbackfn is undefined ---*/ - var accessed = false; - var obj = { 0: 11, length: 1 }; +var accessed = false; +var obj = { + 0: 11, + length: 1 +}; - function callbackfn(val, idx, o) { - accessed = true; - return undefined; - } +function callbackfn(val, idx, o) { + accessed = true; + return undefined; +} diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-10.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-10.js index 6f806273d8..f495dd02c2 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 923f6e28b0..b761964aef 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 a8ee187e32..0ac2e55360 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 4185bfa745..931cb99cae 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 5e7cbea1c6..ce75448e91 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 2b577983b9..0ab89ec096 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 eec81ccd62..f7f6f68734 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 bdf6d73141..273fb64fd0 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 37d3ecc27e..7cde6eabfe 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 f9ef17f288..7306e5e453 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 7084a37765..62e4d05893 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-2.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-2.js @@ -7,13 +7,16 @@ es5id: 15.4.4.16-7-c-iii-2 description: Array.prototype.every - return value of callbackfn is null ---*/ - var accessed = false; - var obj = { 0: 11, length: 1 }; +var accessed = false; +var obj = { + 0: 11, + length: 1 +}; - function callbackfn(val, idx, obj) { - accessed = true; - return null; - } +function callbackfn(val, idx, obj) { + accessed = true; + return null; +} diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-20.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-20.js index 7a68faf9f6..2026f6357a 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 ef6432c3d6..3b16afa42c 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 b7b1437a8e..3616be1410 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 80b30b5f64..87151094b2 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 3075fcdb68..7141b6a713 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 fcfc6b35ce..8efc3f1743 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 5f962f32f2..2b650660b5 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 7c1df38b40..0475c7ff59 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-28.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-28.js @@ -7,37 +7,39 @@ es5id: 15.4.4.16-7-c-iii-28 description: Array.prototype.every - false prevents further side effects ---*/ - var result = false; - var obj = { length: 20 }; +var result = false; +var obj = { + length: 20 +}; - function callbackfn(val, idx, obj) { - if (idx > 1) { - result = true; - } - return val > 10; - } +function callbackfn(val, idx, obj) { + if (idx > 1) { + result = true; + } + return val > 10; +} - Object.defineProperty(obj, "0", { - get: function () { - return 11; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + return 11; + }, + configurable: true +}); - Object.defineProperty(obj, "1", { - get: function () { - return 8; - }, - configurable: true - }); +Object.defineProperty(obj, "1", { + get: function() { + return 8; + }, + configurable: true +}); - Object.defineProperty(obj, "2", { - get: function () { - result = true; - return 8; - }, - configurable: true - }); +Object.defineProperty(obj, "2", { + get: function() { + result = true; + return 8; + }, + configurable: true +}); assert.sameValue(Array.prototype.every.call(obj, callbackfn), false, 'Array.prototype.every.call(obj, callbackfn)'); assert.sameValue(result, false, 'result'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-29.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-29.js index 796bd2ea58..7571d0ec3d 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 c8583c061a..bcd7891c73 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-3.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-3.js @@ -9,13 +9,16 @@ description: > (value is false) ---*/ - var accessed = false; - var obj = { 0: 11, length: 1 }; +var accessed = false; +var obj = { + 0: 11, + length: 1 +}; - function callbackfn(val, idx, obj) { - accessed = true; - return false; - } +function callbackfn(val, idx, obj) { + accessed = true; + return false; +} assert.sameValue(Array.prototype.every.call(obj, callbackfn), false, 'Array.prototype.every.call(obj, callbackfn)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-4.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-4.js index 31b4185b93..34469360ca 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-4.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-4.js @@ -9,13 +9,16 @@ description: > (value is true) ---*/ - var accessed = false; - var obj = { 0: 11, length: 1 }; +var accessed = false; +var obj = { + 0: 11, + length: 1 +}; - function callbackfn(val, idx, obj) { - accessed = true; - return true; - } +function callbackfn(val, idx, obj) { + accessed = true; + return true; +} diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-5.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-5.js index 93790b433d..b1ce805acc 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 fc0eaa0691..5ca0058652 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 4ec5e4a5ee..3b152c86bd 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 59a89680e6..0c2b63f001 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 18ff44cc49..1830a7d9af 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 d074dbf346..e5fb2db836 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 e69633f911..a865a6c4b8 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-8-10.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-8-10.js @@ -7,19 +7,20 @@ es5id: 15.4.4.16-8-10 description: Array.prototype.every - subclassed array when length is reduced ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = 2; +foo.prototype = new Array(1, 2, 3); - function cb(val) - { - if(val>2) - return false; - else - return true; - } - var i = f.every(cb); +function foo() {} +var f = new foo(); +f.length = 2; + +function cb(val) +{ + if (val > 2) + return false; + else + return true; +} +var i = f.every(cb); assert.sameValue(i, true, 'i'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-8-11.js b/test/built-ins/Array/prototype/every/15.4.4.16-8-11.js index 9403b2acde..b407fe4e7a 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-8-11.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-8-11.js @@ -9,14 +9,15 @@ description: > return true ---*/ - var callCnt = 0; - function callbackfn(val, idx, obj) - { - callCnt++; - return true; - } +var callCnt = 0; - var arr = [0,1,2,3,4,5,6,7,8,9]; +function callbackfn(val, idx, obj) +{ + callCnt++; + return true; +} + +var arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; assert.sameValue(arr.every(callbackfn), true, 'arr.every(callbackfn)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-8-12.js b/test/built-ins/Array/prototype/every/15.4.4.16-8-12.js index 844e0bf625..7100aecd52 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 3a41b2c363..66b56af96b 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-8-13.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-8-13.js @@ -7,16 +7,17 @@ es5id: 15.4.4.16-8-13 description: Array.prototype.every doesn't visit expandos ---*/ - var callCnt = 0; - function callbackfn(val, idx, obj) - { - callCnt++; - return true; - } +var callCnt = 0; - var arr = [0,1,2,3,4,5,6,7,8,9]; - arr["i"] = 10; - arr[true] = 11; +function callbackfn(val, idx, obj) +{ + callCnt++; + return true; +} + +var arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; +arr["i"] = 10; +arr[true] = 11; assert.sameValue(arr.every(callbackfn), true, 'arr.every(callbackfn)'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-8-2.js b/test/built-ins/Array/prototype/every/15.4.4.16-8-2.js index 9d9d694b14..90ef805f65 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-8-2.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-8-2.js @@ -9,13 +9,14 @@ description: > Array, length overridden to null (type conversion)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = null; +foo.prototype = new Array(1, 2, 3); - function cb(){} - var i = f.every(cb); +function foo() {} +var f = new foo(); +f.length = null; + +function cb() {} +var i = f.every(cb); assert.sameValue(i, true, 'i'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-8-3.js b/test/built-ins/Array/prototype/every/15.4.4.16-8-3.js index 6cf241998a..746ea3c4d9 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-8-3.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-8-3.js @@ -9,13 +9,14 @@ description: > Array, length overridden to false (type conversion)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = false; +foo.prototype = new Array(1, 2, 3); - function cb(){} - var i = f.every(cb); +function foo() {} +var f = new foo(); +f.length = false; + +function cb() {} +var i = f.every(cb); assert.sameValue(i, true, 'i'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-8-4.js b/test/built-ins/Array/prototype/every/15.4.4.16-8-4.js index f296ed79c6..802f85d327 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-8-4.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-8-4.js @@ -9,13 +9,14 @@ description: > Array, length overridden to 0 (type conversion)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = 0; +foo.prototype = new Array(1, 2, 3); - function cb(){} - var i = f.every(cb); +function foo() {} +var f = new foo(); +f.length = 0; + +function cb() {} +var i = f.every(cb); assert.sameValue(i, true, 'i'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-8-5.js b/test/built-ins/Array/prototype/every/15.4.4.16-8-5.js index 49d510f6b7..cd8513fb49 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-8-5.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-8-5.js @@ -9,13 +9,14 @@ description: > Array, length overridden to '0' (type conversion)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = '0'; +foo.prototype = new Array(1, 2, 3); - function cb(){} - var i = f.every(cb); +function foo() {} +var f = new foo(); +f.length = '0'; + +function cb() {} +var i = f.every(cb); assert.sameValue(i, true, 'i'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-8-6.js b/test/built-ins/Array/prototype/every/15.4.4.16-8-6.js index de58615e38..17d0d88341 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-8-6.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-8-6.js @@ -9,15 +9,20 @@ description: > Array, length overridden with obj with valueOf) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); +foo.prototype = new Array(1, 2, 3); - var o = { valueOf: function () { return 0;}}; - f.length = o; +function foo() {} +var f = new foo(); - function cb(){} - var i = f.every(cb); +var o = { + valueOf: function() { + return 0; + } +}; +f.length = o; + +function cb() {} +var i = f.every(cb); assert.sameValue(i, true, 'i'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-8-7.js b/test/built-ins/Array/prototype/every/15.4.4.16-8-7.js index 170831065f..f23dc8cff1 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-8-7.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-8-7.js @@ -9,20 +9,25 @@ description: > Array, length overridden with obj w/o valueOf (toString)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); +foo.prototype = new Array(1, 2, 3); - var o = { toString: function () { return '0';}}; - f.length = o; +function foo() {} +var f = new foo(); - // objects inherit the default valueOf method of the Object object; - // that simply returns the itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. - function cb(){} - var i = f.every(cb); +var o = { + toString: function() { + return '0'; + } +}; +f.length = o; + +// objects inherit the default valueOf method of the Object object; +// that simply returns the itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. +function cb() {} +var i = f.every(cb); assert.sameValue(i, true, 'i'); diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-8-8.js b/test/built-ins/Array/prototype/every/15.4.4.16-8-8.js index 8d1854e454..75f2878c3d 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-8-8.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-8-8.js @@ -9,28 +9,29 @@ description: > Array, length overridden with [] ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - - f.length = []; - - // objects inherit the default valueOf method of the Object object; - // that simply returns the itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. - // - // The toString( ) method on Array converts the array elements to strings, - // then returns the result of concatenating these strings, with commas in - // between. An array with no elements converts to the empty string, which - // converts to the number 0. If an array has a single element that is a - // number n, the array converts to a string representation of n, which is - // then converted back to n itself. If an array contains more than one element, - // or if its one element is not a number, the array converts to NaN. - - function cb(){} - var i = f.every(cb); +foo.prototype = new Array(1, 2, 3); + +function foo() {} +var f = new foo(); + +f.length = []; + +// objects inherit the default valueOf method of the Object object; +// that simply returns the itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. +// +// The toString( ) method on Array converts the array elements to strings, +// then returns the result of concatenating these strings, with commas in +// between. An array with no elements converts to the empty string, which +// converts to the number 0. If an array has a single element that is a +// number n, the array converts to a string representation of n, which is +// then converted back to n itself. If an array contains more than one element, +// or if its one element is not a number, the array converts to NaN. + +function cb() {} +var i = f.every(cb); assert.sameValue(i, true, 'i'); diff --git a/test/built-ins/Array/prototype/fill/fill-values-custom-start-and-end.js b/test/built-ins/Array/prototype/fill/fill-values-custom-start-and-end.js index d445b93044..ce34f42d8b 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 ab2cf19d0f..43f119f27e 100644 --- a/test/built-ins/Array/prototype/fill/fill-values.js +++ b/test/built-ins/Array/prototype/fill/fill-values.js @@ -28,8 +28,7 @@ includes: [compareArray.js] assert(compareArray([].fill(8), [])); assert(compareArray( - [0, 0].fill(), - [undefined, undefined] + [0, 0].fill(), [undefined, undefined] )); assert( diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-1-1.js b/test/built-ins/Array/prototype/filter/15.4.4.20-1-1.js index c9d8114390..c9b5616764 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 f56c19437f..9fa42cba0a 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 d9e730234c..19703f1905 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 9a7404b58e..09a5dbb370 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 b5e4405121..fbeaacc89e 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 7e77b5403c..0b9f3060a5 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 314f8cf65d..0be84b2563 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 3c4abb006b..70e775afee 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 c8ed73db16..95aaebd9e2 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 17517c5328..e7b7d2fdc2 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 114e360ab1..4e8c4ffd54 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 d73da1d91c..6f4bb4eb26 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 8e85e3a8dd..c7a70ad25a 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 84df1f7aa5..35438987c0 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 b64de38118..01e194a56c 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 d554b68502..8034699546 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 4ef4c19abb..5bd456a8e8 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 6d278d9623..a20ae4f186 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-10-3.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-10-3.js @@ -7,13 +7,16 @@ es5id: 15.4.4.20-10-3 description: Array.prototype.filter - subclassed array when length is reduced ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = 1; +foo.prototype = new Array(1, 2, 3); - function cb(){return true;} - var a = f.filter(cb); +function foo() {} +var f = new foo(); +f.length = 1; + +function cb() { + return true; +} +var a = f.filter(cb); assert(Array.isArray(a), 'Array.isArray(a) !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-10-4.js b/test/built-ins/Array/prototype/filter/15.4.4.20-10-4.js index fa6b6603f2..10e8fa0292 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-10-4.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-10-4.js @@ -7,15 +7,16 @@ es5id: 15.4.4.20-10-4 description: Array.prototype.filter doesn't visit expandos ---*/ - var callCnt = 0; - function callbackfn(val, idx, obj) - { - callCnt++; - } - var srcArr = [1,2,3,4,5]; - srcArr["i"] = 10; - srcArr[true] = 11; +var callCnt = 0; - var resArr = srcArr.filter(callbackfn); +function callbackfn(val, idx, obj) +{ + callCnt++; +} +var srcArr = [1, 2, 3, 4, 5]; +srcArr["i"] = 10; +srcArr[true] = 11; + +var resArr = srcArr.filter(callbackfn); assert.sameValue(callCnt, 5, 'callCnt'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-1.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-1.js index ef11a81727..68c19c6a66 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 7ef4992981..683217637b 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 b707e51599..8a55f62fb7 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-11.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-11.js @@ -9,22 +9,23 @@ description: > own accessor property without a get function ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return true; - } +var accessed = false; - var obj = { - 0: 11, - 1: 12 - }; - Object.defineProperty(obj, "length", { - set: function () { }, - configurable: true - }); +function callbackfn(val, idx, obj) { + accessed = true; + return true; +} - var newArr = Array.prototype.filter.call(obj, callbackfn); +var obj = { + 0: 11, + 1: 12 +}; +Object.defineProperty(obj, "length", { + set: function() {}, + configurable: true +}); + +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-12.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-12.js index 40c49cf05f..b5983c2805 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-12.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-12.js @@ -9,26 +9,30 @@ description: > a get function that overrides an inherited accessor property ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return true; - } +var accessed = false; - Object.defineProperty(Object.prototype, "length", { - get: function () { - return 2; - }, - configurable: true - }); +function callbackfn(val, idx, obj) { + accessed = true; + return true; +} - var obj = { 0: 12, 1: 11 }; - Object.defineProperty(obj, "length", { - set: function () { }, - configurable: true - }); +Object.defineProperty(Object.prototype, "length", { + get: function() { + return 2; + }, + configurable: true +}); - var newArr = Array.prototype.filter.call(obj, callbackfn); +var obj = { + 0: 12, + 1: 11 +}; +Object.defineProperty(obj, "length", { + set: function() {}, + configurable: true +}); + +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-13.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-13.js index b35a71c92b..25652960d2 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-13.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-13.js @@ -9,26 +9,27 @@ description: > 'length' is inherited accessor property without a get function ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return true; - } - - var proto = {}; - Object.defineProperty(proto, "length", { - set: function () { }, - configurable: true - }); - - var Con = function () { }; - Con.prototype = proto; - - var child = new Con(); - child[0] = 11; - child[1] = 12; - - var newArr = Array.prototype.filter.call(child, callbackfn); +var accessed = false; + +function callbackfn(val, idx, obj) { + accessed = true; + return true; +} + +var proto = {}; +Object.defineProperty(proto, "length", { + set: function() {}, + configurable: true +}); + +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); +child[0] = 11; +child[1] = 12; + +var newArr = Array.prototype.filter.call(child, callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-14.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-14.js index 64b7059d8b..545d914e60 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-14.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-14.js @@ -9,15 +9,19 @@ description: > 'length property doesn't exist ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return true; - } +var accessed = false; - var obj = { 0: 11, 1: 12 }; +function callbackfn(val, idx, obj) { + accessed = true; + return true; +} - var newArr = Array.prototype.filter.call(obj, callbackfn); +var obj = { + 0: 11, + 1: 12 +}; + +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-17.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-17.js index e2ff3af644..34c579c77d 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 6850f6d219..c13206d983 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 5f12746ae7..9bd2ef1c68 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 f8f1b84d41..8e071501ca 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 5e74fafc60..4d9c4e4149 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-3.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-3.js @@ -9,21 +9,23 @@ description: > an own data property that overrides an inherited data property ---*/ - function callbackfn(val, idx, obj) { - return obj.length === 2; - } +function callbackfn(val, idx, obj) { + return obj.length === 2; +} - var proto = { length: 3 }; +var proto = { + length: 3 +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child.length = 2; - child[0] = 12; - child[1] = 11; - child[2] = 9; +var child = new Con(); +child.length = 2; +child[0] = 12; +child[1] = 11; +child[2] = 9; - var newArr = Array.prototype.filter.call(child, callbackfn); +var newArr = Array.prototype.filter.call(child, callbackfn); assert.sameValue(newArr.length, 2, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-4.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-4.js index 563ef3bfc5..73ecc9ed19 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 ca4c2d21ec..e165dbc06d 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 6c754b15bb..9a8144cfcf 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-6.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-6.js @@ -9,20 +9,22 @@ description: > an inherited data property ---*/ - function callbackfn(val, idx, obj) { - return obj.length === 2; - } +function callbackfn(val, idx, obj) { + return obj.length === 2; +} - var proto = { length: 2 }; +var proto = { + length: 2 +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child[0] = 12; - child[1] = 11; - child[2] = 9; +var child = new Con(); +child[0] = 12; +child[1] = 11; +child[2] = 9; - var newArr = Array.prototype.filter.call(child, callbackfn); +var newArr = Array.prototype.filter.call(child, callbackfn); assert.sameValue(newArr.length, 2, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-7.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-7.js index 103cdc8889..ba40ddd23a 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 25b022b3a8..e57b212287 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-8.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-8.js @@ -9,28 +9,30 @@ description: > own accessor property that overrides an inherited data property ---*/ - function callbackfn(val, idx, obj) { - return obj.length === 2; - } +function callbackfn(val, idx, obj) { + return obj.length === 2; +} - var proto = { length: 3 }; +var proto = { + length: 3 +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); +var child = new Con(); - Object.defineProperty(child, "length", { - get: function () { - return 2; - }, - configurable: true - }); +Object.defineProperty(child, "length", { + get: function() { + return 2; + }, + configurable: true +}); - child[0] = 12; - child[1] = 11; - child[2] = 9; +child[0] = 12; +child[1] = 11; +child[2] = 9; - var newArr = Array.prototype.filter.call(child, callbackfn); +var newArr = Array.prototype.filter.call(child, callbackfn); assert.sameValue(newArr.length, 2, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-9.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-9.js index 4c37454ba8..684b01b09a 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 17cdc5f737..be48ea578f 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-1.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-1.js @@ -7,14 +7,19 @@ es5id: 15.4.4.20-3-1 description: Array.prototype.filter - value of 'length' is undefined ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return true; - } +var accessed = false; - var obj = { 0: 0, 1: 1, length: undefined }; - var newArr = Array.prototype.filter.call(obj, callbackfn); +function callbackfn(val, idx, obj) { + accessed = true; + return true; +} + +var obj = { + 0: 0, + 1: 1, + length: undefined +}; +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-10.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-10.js index 63b2c4a189..8ef7f0477b 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-10.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-10.js @@ -9,15 +9,19 @@ description: > NaN) ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return true; - } +var accessed = false; - var obj = { 0: 9, length: NaN }; +function callbackfn(val, idx, obj) { + accessed = true; + return true; +} - var newArr = Array.prototype.filter.call(obj, callbackfn); +var obj = { + 0: 9, + length: NaN +}; + +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-11.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-11.js index e495a64dba..3bedc20edb 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-11.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-11.js @@ -9,13 +9,17 @@ description: > positive number ---*/ - function callbackfn(val, idx, obj) { - return true; - } +function callbackfn(val, idx, obj) { + return true; +} - var obj = { 1: 11, 2: 9, length: "2" }; +var obj = { + 1: 11, + 2: 9, + length: "2" +}; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-12.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-12.js index c66292a88b..bab103450a 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-12.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-12.js @@ -9,13 +9,17 @@ description: > negative number ---*/ - function callbackfn(val, idx, obj) { - return true; - } +function callbackfn(val, idx, obj) { + return true; +} - var obj = { 1: 11, 2: 9, length: "-4294967294" }; +var obj = { + 1: 11, + 2: 9, + length: "-4294967294" +}; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); assert.sameValue(newArr[0], undefined, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-13.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-13.js index 859ef4667e..01d01c2561 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-13.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-13.js @@ -9,13 +9,17 @@ description: > number ---*/ - function callbackfn(val, idx, obj) { - return true; - } +function callbackfn(val, idx, obj) { + return true; +} - var obj = { 1: 11, 2: 9, length: "2.5" }; +var obj = { + 1: 11, + 2: 9, + length: "2.5" +}; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-14.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-14.js index 03193102fe..03bcf8a29d 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-14.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-14.js @@ -7,16 +7,19 @@ es5id: 15.4.4.20-3-14 description: Array.prototype.filter - 'length' is a string containing -Infinity ---*/ - var accessed2 = false; +var accessed2 = false; - function callbackfn2(val, idx, obj) { - accessed2 = true; - return true; - } +function callbackfn2(val, idx, obj) { + accessed2 = true; + return true; +} - var obj2 = { 0: 9, length: "-Infinity" }; +var obj2 = { + 0: 9, + length: "-Infinity" +}; - var newArr2 = Array.prototype.filter.call(obj2, callbackfn2); +var newArr2 = Array.prototype.filter.call(obj2, callbackfn2); assert.sameValue(accessed2, false, 'accessed2'); assert.sameValue(newArr2.length, 0, 'newArr2.length'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-15.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-15.js index e5be122e80..7cc2cb5f85 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-15.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-15.js @@ -9,13 +9,17 @@ description: > exponential number ---*/ - function callbackfn(val, idx, obj) { - return true; - } +function callbackfn(val, idx, obj) { + return true; +} - var obj = { 1: 11, 2: 9, length: "2E0" }; +var obj = { + 1: 11, + 2: 9, + length: "2E0" +}; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-16.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-16.js index 286093b8b9..1e447f105a 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-16.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-16.js @@ -9,13 +9,17 @@ description: > number ---*/ - function callbackfn(val, idx, obj) { - return true; - } +function callbackfn(val, idx, obj) { + return true; +} - var obj = { 1: 11, 2: 9, length: "0x0002" }; +var obj = { + 1: 11, + 2: 9, + length: "0x0002" +}; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-17.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-17.js index 84b64d4021..a3c2bf7fad 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-17.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-17.js @@ -9,13 +9,17 @@ description: > with leading zeros ---*/ - function callbackfn(val, idx, obj) { - return true; - } +function callbackfn(val, idx, obj) { + return true; +} - var obj = { 1: 11, 2: 9, length: "0002.00" }; +var obj = { + 1: 11, + 2: 9, + length: "0002.00" +}; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-18.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-18.js index de3c43f573..b42c4c5af0 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-18.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-18.js @@ -9,15 +9,19 @@ description: > convert to a number ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return true; - } +var accessed = false; - var obj = { 0: 9, length: "asdf!_" }; +function callbackfn(val, idx, obj) { + accessed = true; + return true; +} - var newArr = Array.prototype.filter.call(obj, callbackfn); +var obj = { + 0: 9, + length: "asdf!_" +}; + +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(accessed, false, 'accessed'); assert.sameValue(newArr.length, 0, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-19.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-19.js index f1ac554eca..11ba067928 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 3e348991d7..4c87b6e3d1 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-2.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-2.js @@ -9,12 +9,16 @@ description: > is 1 (length overridden to true(type conversion)) ---*/ - function callbackfn(val, idx, obj) { - return true; - } +function callbackfn(val, idx, obj) { + return true; +} - var obj = { 0: 11, 1: 9, length: true }; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var obj = { + 0: 11, + 1: 9, + length: true +}; +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-20.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-20.js index c8e77de720..7b7b93e5b9 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 01fc372d5e..c65ba9ca50 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 a6463ad6a1..0e4bf36715 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 f2e7b2e458..c02b3f301c 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 31b87b47d5..a2cc49a04f 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 3f8b1ffd8c..f32cac6948 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 9b1250407d..53fd3ab2cc 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-3.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-3.js @@ -7,14 +7,18 @@ es5id: 15.4.4.20-3-3 description: Array.prototype.filter - value of 'length' is a number (value is 0) ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return true; - } +var accessed = false; - var obj = { 0: 11, length: 0 }; - var newArr = Array.prototype.filter.call(obj, callbackfn); +function callbackfn(val, idx, obj) { + accessed = true; + return true; +} + +var obj = { + 0: 11, + length: 0 +}; +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-4.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-4.js index a2a73f274b..d0afc2288c 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-4.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-4.js @@ -9,14 +9,18 @@ description: > +0) ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return true; - } +var accessed = false; - var obj = { 0: 11, length: +0 }; - var newArr = Array.prototype.filter.call(obj, callbackfn); +function callbackfn(val, idx, obj) { + accessed = true; + return true; +} + +var obj = { + 0: 11, + length: +0 +}; +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-5.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-5.js index 2fa9d19cf3..675a41cb28 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-5.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-5.js @@ -9,14 +9,18 @@ description: > -0) ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return true; - } +var accessed = false; - var obj = { 0: 11, length: -0 }; - var newArr = Array.prototype.filter.call(obj, callbackfn); +function callbackfn(val, idx, obj) { + accessed = true; + return true; +} + +var obj = { + 0: 11, + length: -0 +}; +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-6.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-6.js index dd9b8839ba..44e5a2aa1c 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-6.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-6.js @@ -9,13 +9,17 @@ description: > positive) ---*/ - function callbackfn(val, idx, obj) { - return true; - } +function callbackfn(val, idx, obj) { + return true; +} - var obj = { 1: 11, 2: 9, length: 2 }; +var obj = { + 1: 11, + 2: 9, + length: 2 +}; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-7.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-7.js index 28d5405920..b9003218fc 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-7.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-7.js @@ -9,12 +9,16 @@ description: > negative) ---*/ - function callbackfn(val, idx, obj) { - return true; - } +function callbackfn(val, idx, obj) { + return true; +} - var obj = { 1: 11, 2: 9, length: -4294967294 }; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var obj = { + 1: 11, + 2: 9, + length: -4294967294 +}; +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); assert.sameValue(newArr[0], undefined, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-9.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-9.js index a31259a2ef..149c2011ad 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-9.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-9.js @@ -9,15 +9,19 @@ description: > -Infinity) ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return true; - } +var accessed = false; - var obj = { 0: 9, length: -Infinity }; +function callbackfn(val, idx, obj) { + accessed = true; + return true; +} - var newArr = Array.prototype.filter.call(obj, callbackfn); +var obj = { + 0: 9, + length: -Infinity +}; + +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-4-1.js b/test/built-ins/Array/prototype/filter/15.4.4.20-4-1.js index 5db65663d8..ac03e0fc92 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 39f1abd7ba..bf2dabe141 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-4-10.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-4-10.js @@ -9,15 +9,18 @@ description: > was thrown by step 2 ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - Object.defineProperty(obj, "length", { - get: function () { - throw new Test262Error(); - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + throw new Test262Error(); + }, + configurable: true +}); assert.throws(Test262Error, function() { - Array.prototype.filter.call(obj, undefined); + Array.prototype.filter.call(obj, undefined); }); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-4-11.js b/test/built-ins/Array/prototype/filter/15.4.4.20-4-11.js index 0eabd02ec5..6cefc8ce1e 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-4-11.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-4-11.js @@ -9,19 +9,22 @@ description: > was thrown by step 3 ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - Object.defineProperty(obj, "length", { - get: function () { - return { - toString: function () { - throw new Test262Error(); - } - }; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + return { + toString: function() { + throw new Test262Error(); + } + }; + }, + configurable: true +}); assert.throws(Test262Error, function() { - Array.prototype.filter.call(obj, undefined); + Array.prototype.filter.call(obj, undefined); }); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-4-12.js b/test/built-ins/Array/prototype/filter/15.4.4.20-4-12.js index de1ad7023b..dce334c244 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 af35f5776a..70d48daa72 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-4-15.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-4-15.js @@ -9,25 +9,27 @@ description: > passing undefined for callbackfn ---*/ - var obj = { 10: 10 }; - var lengthAccessed = false; - var loopAccessed = false; - Object.defineProperty(obj, "length", { - get: function () { - lengthAccessed = true; - return 20; - }, - configurable: true - }); - Object.defineProperty(obj, "0", { - get: function () { - loopAccessed = true; - return 10; - }, - configurable: true - }); +var obj = { + 10: 10 +}; +var lengthAccessed = false; +var loopAccessed = false; +Object.defineProperty(obj, "length", { + get: function() { + lengthAccessed = true; + return 20; + }, + configurable: true +}); +Object.defineProperty(obj, "0", { + get: function() { + loopAccessed = true; + return 10; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.filter.call(obj); + Array.prototype.filter.call(obj); }); assert(lengthAccessed, 'lengthAccessed !== true'); assert.sameValue(loopAccessed, false, 'loopAccessed'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-4-2.js b/test/built-ins/Array/prototype/filter/15.4.4.20-4-2.js index 07add5f00e..511003bbf6 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 a56dd4e8da..0e557696d4 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 6e93708357..d49c8355ce 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 6fedc65874..d5a3b5289d 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 cef7251b10..5f9d1386bb 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 aa1240371f..f9e4254274 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 fbd5396d8e..cde11fbf23 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-4-8.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-4-8.js @@ -9,18 +9,21 @@ description: > visible when an exception occurs ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - var accessed = false; +var accessed = false; - Object.defineProperty(obj, "length", { - get: function () { - accessed = true; - return 2; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + accessed = true; + return 2; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.filter.call(obj, null); + Array.prototype.filter.call(obj, null); }); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-4-9.js b/test/built-ins/Array/prototype/filter/15.4.4.20-4-9.js index c2e7295776..45ba29f89f 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-4-9.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-4-9.js @@ -9,22 +9,25 @@ description: > visible when an exception occurs ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - var accessed = false; +var accessed = false; - Object.defineProperty(obj, "length", { - get: function () { - return { - toString: function () { - accessed = true; - return "2"; - } - }; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + return { + toString: function() { + accessed = true; + return "2"; + } + }; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.filter.call(obj, null); + Array.prototype.filter.call(obj, null); }); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-1-s.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-1-s.js index ce1ad3c7eb..ebbd6c1a48 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 96063ef486..fe1b290574 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 dff16966b8..a5afd46822 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 93cc528d0e..0ca6f9f66c 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 d4dc45bda5..2d7cef46de 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 621f2def0d..d5cb60c89c 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 195f95d295..e455d8d4c2 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 61cb77e509..596addb58d 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 d7b6b9e236..beafca6fd1 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 b326d202c7..569a7d691c 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 98b4556314..03516a9356 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 0c69ec0372..16869222c0 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 0ef3ca82e8..01a3a94d6c 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-2.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-2.js @@ -7,15 +7,16 @@ es5id: 15.4.4.20-5-2 description: Array.prototype.filter - thisArg is Object ---*/ - var res = false; - var o = new Object(); - o.res = true; - function callbackfn(val, idx, obj) - { - return this.res; - } +var res = false; +var o = new Object(); +o.res = true; - var srcArr = [1]; - var resArr = srcArr.filter(callbackfn,o); +function callbackfn(val, idx, obj) +{ + return this.res; +} + +var srcArr = [1]; +var resArr = srcArr.filter(callbackfn, o); assert.sameValue(resArr.length, 1, 'resArr.length'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-21.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-21.js index bbb9911ac0..1e1230bc46 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 61e3644cfb..b228ea16ca 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 d07c4c603a..b7435cbf23 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 ac195d2b10..ec99f9b2b5 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 06ea3908d7..691c695e73 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 0f41a07e42..676b5f39b2 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 49b049b6fb..88656b8138 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 a9eb5bdd9c..4ab8cdc1cf 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-3.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-3.js @@ -7,15 +7,16 @@ es5id: 15.4.4.20-5-3 description: Array.prototype.filter - thisArg is Array ---*/ - var res = false; - var a = new Array(); - a.res = true; - function callbackfn(val, idx, obj) - { - return this.res; - } +var res = false; +var a = new Array(); +a.res = true; - var srcArr = [1]; - var resArr = srcArr.filter(callbackfn,a); +function callbackfn(val, idx, obj) +{ + return this.res; +} + +var srcArr = [1]; +var resArr = srcArr.filter(callbackfn, a); assert.sameValue(resArr.length, 1, 'resArr.length'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-30.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-30.js index 19311b2aec..8a3fb876fa 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 e4c6b1b24d..08789d8e38 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-4.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-4.js @@ -9,17 +9,18 @@ description: > template(prototype) ---*/ - var res = false; - function callbackfn(val, idx, obj) - { - return this.res; - } +var res = false; - function foo(){} - foo.prototype.res = true; - var f = new foo(); +function callbackfn(val, idx, obj) +{ + return this.res; +} - var srcArr = [1]; - var resArr = srcArr.filter(callbackfn,f); +function foo() {} +foo.prototype.res = true; +var f = new foo(); + +var srcArr = [1]; +var resArr = srcArr.filter(callbackfn, f); assert.sameValue(resArr.length, 1, 'resArr.length'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-5.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-5.js index a46d828820..a024bdc323 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-5.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-5.js @@ -7,17 +7,18 @@ es5id: 15.4.4.20-5-5 description: Array.prototype.filter - thisArg is object from object template ---*/ - var res = false; - function callbackfn(val, idx, obj) - { - return this.res; - } +var res = false; - function foo(){} - var f = new foo(); - f.res = true; +function callbackfn(val, idx, obj) +{ + return this.res; +} - var srcArr = [1]; - var resArr = srcArr.filter(callbackfn,f); +function foo() {} +var f = new foo(); +f.res = true; + +var srcArr = [1]; +var resArr = srcArr.filter(callbackfn, f); assert.sameValue(resArr.length, 1, 'resArr.length'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-6.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-6.js index a76f146d6b..25fa96c979 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-6.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-6.js @@ -7,16 +7,17 @@ es5id: 15.4.4.20-5-6 description: Array.prototype.filter - thisArg is function ---*/ - var res = false; - function callbackfn(val, idx, obj) - { - return this.res; - } +var res = false; - function foo(){} - foo.res = true; +function callbackfn(val, idx, obj) +{ + return this.res; +} - var srcArr = [1]; - var resArr = srcArr.filter(callbackfn,foo); +function foo() {} +foo.res = true; + +var srcArr = [1]; +var resArr = srcArr.filter(callbackfn, foo); assert.sameValue(resArr.length, 1, 'resArr.length'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-7.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-7.js index 7563712c2a..7429c85bce 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 154d0bbdb4..9ab52aa3ea 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 aa434d235f..719c1490e5 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 a2deb91e5c..65a07c7a83 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-6-2.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-6-2.js @@ -9,13 +9,14 @@ description: > (subclassed Array, length overridden to null (type conversion)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = null; +foo.prototype = new Array(1, 2, 3); - function cb(){} - var a = f.filter(cb); +function foo() {} +var f = new foo(); +f.length = null; + +function cb() {} +var a = f.filter(cb); assert(Array.isArray(a), 'Array.isArray(a) !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-6-3.js b/test/built-ins/Array/prototype/filter/15.4.4.20-6-3.js index 5da697fe2b..4e1742878e 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-6-3.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-6-3.js @@ -9,13 +9,14 @@ description: > (subclassed Array, length overridden to false (type conversion)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = false; +foo.prototype = new Array(1, 2, 3); - function cb(){} - var a = f.filter(cb); +function foo() {} +var f = new foo(); +f.length = false; + +function cb() {} +var a = f.filter(cb); assert(Array.isArray(a), 'Array.isArray(a) !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-6-4.js b/test/built-ins/Array/prototype/filter/15.4.4.20-6-4.js index 88d755df8a..72579c85e6 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-6-4.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-6-4.js @@ -9,13 +9,14 @@ description: > (subclassed Array, length overridden to 0 (type conversion)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = 0; +foo.prototype = new Array(1, 2, 3); - function cb(){} - var a = f.filter(cb); +function foo() {} +var f = new foo(); +f.length = 0; + +function cb() {} +var a = f.filter(cb); assert(Array.isArray(a), 'Array.isArray(a) !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-6-5.js b/test/built-ins/Array/prototype/filter/15.4.4.20-6-5.js index 71f4dc4896..6209e71077 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-6-5.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-6-5.js @@ -9,13 +9,14 @@ description: > (subclassed Array, length overridden to '0' (type conversion)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = '0'; +foo.prototype = new Array(1, 2, 3); - function cb(){} - var a = f.filter(cb); +function foo() {} +var f = new foo(); +f.length = '0'; + +function cb() {} +var a = f.filter(cb); assert(Array.isArray(a), 'Array.isArray(a) !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-6-6.js b/test/built-ins/Array/prototype/filter/15.4.4.20-6-6.js index dad709203c..0d40729d15 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-6-6.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-6-6.js @@ -9,15 +9,20 @@ description: > (subclassed Array, length overridden with obj with valueOf) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); +foo.prototype = new Array(1, 2, 3); - var o = { valueOf: function () { return 0;}}; - f.length = o; +function foo() {} +var f = new foo(); - function cb(){} - var a = f.filter(cb); +var o = { + valueOf: function() { + return 0; + } +}; +f.length = o; + +function cb() {} +var a = f.filter(cb); assert(Array.isArray(a), 'Array.isArray(a) !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-6-7.js b/test/built-ins/Array/prototype/filter/15.4.4.20-6-7.js index a778ad8887..b212e25112 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-6-7.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-6-7.js @@ -10,21 +10,26 @@ description: > (toString)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); +foo.prototype = new Array(1, 2, 3); - var o = { toString: function () { return '0';}}; - f.length = o; +function foo() {} +var f = new foo(); - // objects inherit the default valueOf method of the Object object; - // that simply returns the itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. +var o = { + toString: function() { + return '0'; + } +}; +f.length = o; - function cb(){} - var a = f.filter(cb); +// objects inherit the default valueOf method of the Object object; +// that simply returns the itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. + +function cb() {} +var a = f.filter(cb); assert(Array.isArray(a), 'Array.isArray(a) !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-6-8.js b/test/built-ins/Array/prototype/filter/15.4.4.20-6-8.js index 1fd2bb7921..851aa7a75c 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-6-8.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-6-8.js @@ -9,28 +9,29 @@ description: > (subclassed Array, length overridden with [] ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - - f.length = []; - - // objects inherit the default valueOf method of the Object object; - // that simply returns the itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. - // - // The toString( ) method on Array converts the array elements to strings, - // then returns the result of concatenating these strings, with commas in - // between. An array with no elements converts to the empty string, which - // converts to the number 0. If an array has a single element that is a - // number n, the array converts to a string representation of n, which is - // then converted back to n itself. If an array contains more than one element, - // or if its one element is not a number, the array converts to NaN. - - function cb(){} - var a = f.filter(cb); +foo.prototype = new Array(1, 2, 3); + +function foo() {} +var f = new foo(); + +f.length = []; + +// objects inherit the default valueOf method of the Object object; +// that simply returns the itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. +// +// The toString( ) method on Array converts the array elements to strings, +// then returns the result of concatenating these strings, with commas in +// between. An array with no elements converts to the empty string, which +// converts to the number 0. If an array has a single element that is a +// number n, the array converts to a string representation of n, which is +// then converted back to n itself. If an array contains more than one element, +// or if its one element is not a number, the array converts to NaN. + +function cb() {} +var a = f.filter(cb); assert(Array.isArray(a), 'Array.isArray(a) !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-1.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-1.js index 97a92c2de5..265b9632b8 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 866e363fcf..34e27ba569 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 23cf770ca3..5f14532d21 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 9e817d779b..d3018ec04c 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 3165b934c2..396126ea1d 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 6bbe73b494..0ef2af0555 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 6733d095d6..accd42a603 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 6b119020ec..c7fa048ef7 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-8.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-8.js @@ -7,16 +7,20 @@ es5id: 15.4.4.20-9-8 description: Array.prototype.filter - no observable effects occur if len is 0 ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return val > 10; - } +function callbackfn(val, idx, obj) { + accessed = true; + return val > 10; +} - var obj = { 0: 11, 1: 12, length: 0 }; +var obj = { + 0: 11, + 1: 12, + length: 0 +}; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(accessed, false, 'accessed'); assert.sameValue(obj.length, 0, 'obj.length'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-9.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-9.js index bab2effd5c..e0bd841bf0 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-9.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-9.js @@ -9,24 +9,28 @@ description: > number of iterations ---*/ - var called = 0; +var called = 0; - function callbackfn(val, idx, obj) { - called++; - return true; - } +function callbackfn(val, idx, obj) { + called++; + return true; +} - var obj = { 1: 12, 2: 9, length: 2 }; +var obj = { + 1: 12, + 2: 9, + length: 2 +}; - Object.defineProperty(obj, "0", { - get: function () { - obj.length = 3; - return 11; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + obj.length = 3; + return 11; + }, + configurable: true +}); - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 2, 'newArr.length'); assert.sameValue(called, 2, 'called'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-1.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-1.js index db984c4ccb..8991569308 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-1.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-1.js @@ -9,16 +9,17 @@ description: > been assigned values ---*/ - var callCnt = 0; - function callbackfn(val, idx, obj) - { - callCnt++; - return false; - } +var callCnt = 0; - var srcArr = new Array(10); - srcArr[1] = undefined; //explicitly assigning a value - var resArr = srcArr.filter(callbackfn); +function callbackfn(val, idx, obj) +{ + callCnt++; + return false; +} + +var srcArr = new Array(10); +srcArr[1] = undefined; //explicitly assigning a value +var resArr = srcArr.filter(callbackfn); assert.sameValue(resArr.length, 0, 'resArr.length'); assert.sameValue(callCnt, 1, 'callCnt'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-10.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-10.js index c2c66ae19e..d4724b9249 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-10.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-10.js @@ -9,21 +9,24 @@ description: > prototype index property not to be visited on an Array-like Object ---*/ - function callbackfn(val, idx, obj) { - return true; - } - var obj = { 2: 2, length: 20 }; +function callbackfn(val, idx, obj) { + return true; +} +var obj = { + 2: 2, + length: 20 +}; - Object.defineProperty(obj, "0", { - get: function () { - delete Object.prototype[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + delete Object.prototype[1]; + return 0; + }, + configurable: true +}); - Object.prototype[1] = 1; - var newArr = Array.prototype.filter.call(obj, callbackfn); +Object.prototype[1] = 1; +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 2, 'newArr.length'); assert.notSameValue(newArr[1], 1, 'newArr[1]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-11.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-11.js index 643554ab8f..39ea8f0a10 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 18e21b40ea..7b914a1ee4 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-12.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-12.js @@ -10,21 +10,26 @@ description: > Array-like object ---*/ - function callbackfn(val, idx, obj) { - return true; - } - var obj = { 0: 0, 1: 111, 2: 2, length: 10 }; +function callbackfn(val, idx, obj) { + return true; +} +var obj = { + 0: 0, + 1: 111, + 2: 2, + length: 10 +}; - Object.defineProperty(obj, "0", { - get: function () { - delete obj[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + delete obj[1]; + return 0; + }, + configurable: true +}); - Object.prototype[1] = 1; - var newArr = Array.prototype.filter.call(obj, callbackfn); +Object.prototype[1] = 1; +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 3, 'newArr.length'); assert.sameValue(newArr[1], 1, 'newArr[1]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-13.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-13.js index c023e37351..204e94c665 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 6147fab673..00b6a41afa 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 4e253c64e1..1f87dab30f 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 c81608958c..b92fde3af4 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 63ffe45b5f..a9b8cdae4d 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 9201770ac4..fd2a2612e9 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-3.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-3.js @@ -9,20 +9,23 @@ description: > here ---*/ - function callbackfn(val, idx, obj) { - return true; - } - var obj = { 2: 6.99, 8: 19 }; +function callbackfn(val, idx, obj) { + return true; +} +var obj = { + 2: 6.99, + 8: 19 +}; - Object.defineProperty(obj, "length", { - get: function () { - delete obj[2]; - return 10; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + delete obj[2]; + return 10; + }, + configurable: true +}); - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.notSameValue(newArr[0], 6.99, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-4.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-4.js index 81a5e3d118..61ad185951 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-4.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-4.js @@ -9,26 +9,28 @@ description: > current position are visited on an Array-like object ---*/ - function callbackfn(val, idx, obj) { - return true; - } +function callbackfn(val, idx, obj) { + return true; +} - var obj = { length: 2 }; +var obj = { + length: 2 +}; - Object.defineProperty(obj, "0", { - get: function () { - Object.defineProperty(obj, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + Object.defineProperty(obj, "1", { + get: function() { + return 6.99; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 2, 'newArr.length'); assert.sameValue(newArr[1], 6.99, 'newArr[1]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-5.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-5.js index 150eda57cc..d2d1fd70ca 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 0932eb3345..d0bc0fb1e4 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-6.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-6.js @@ -9,25 +9,27 @@ description: > after current position are visited on an Array-like object ---*/ - function callbackfn(val, idx, obj) { - return true; - } - var obj = { length: 2 }; +function callbackfn(val, idx, obj) { + return true; +} +var obj = { + length: 2 +}; - Object.defineProperty(obj, "0", { - get: function () { - Object.defineProperty(Object.prototype, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + Object.defineProperty(Object.prototype, "1", { + get: function() { + return 6.99; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 2, 'newArr.length'); assert.sameValue(Array[1], 6.99, 'Array[1]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-7.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-7.js index 677e3106fc..1fea787462 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 00d064e237..0593df24fe 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-8.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-8.js @@ -9,30 +9,32 @@ description: > property not to be visited on an Array-like object ---*/ - var accessed = false; - var obj = { length: 2 }; +var accessed = false; +var obj = { + length: 2 +}; - function callbackfn(val, idx, o) { - accessed = true; - return true; - } +function callbackfn(val, idx, o) { + accessed = true; + return true; +} - Object.defineProperty(obj, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); +Object.defineProperty(obj, "1", { + get: function() { + return 6.99; + }, + configurable: true +}); - Object.defineProperty(obj, "0", { - get: function () { - delete obj[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + delete obj[1]; + return 0; + }, + configurable: true +}); - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 0, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-9.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-9.js index 8f1588765f..1221c8864b 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 cdfc98323c..de7e415f30 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-1.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-1.js @@ -9,14 +9,18 @@ description: > property on an Array-like object ---*/ - var kValue = {}; - function callbackfn(val, idx, obj) { - return (idx === 5) && (val === kValue); - } +var kValue = {}; - var obj = { 5: kValue, length: 100 }; +function callbackfn(val, idx, obj) { + return (idx === 5) && (val === kValue); +} - var newArr = Array.prototype.filter.call(obj, callbackfn); +var obj = { + 5: kValue, + length: 100 +}; + +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], kValue, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-10.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-10.js index b44cba1e3f..394268152c 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 dc089ead83..a713e1953e 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-11.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-11.js @@ -10,25 +10,28 @@ description: > Array-like object ---*/ - function callbackfn(val, idx, obj) { - return idx === 0 && val === 11; - } +function callbackfn(val, idx, obj) { + return idx === 0 && val === 11; +} - var proto = { 0: 5, 1: 6 }; +var proto = { + 0: 5, + 1: 6 +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child.length = 10; +var child = new Con(); +child.length = 10; - Object.defineProperty(child, "0", { - get: function () { - return 11; - }, - configurable: true - }); - var newArr = Array.prototype.filter.call(child, callbackfn); +Object.defineProperty(child, "0", { + get: function() { + return 11; + }, + configurable: true +}); +var newArr = Array.prototype.filter.call(child, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-12.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-12.js index bcd3b4287e..7dc94d210b 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 32d9fa6f4c..4a692475a2 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 1ccf426ac6..e6f2a95c64 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 d97746c2da..4a7122ea19 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 82834ff12f..9a04bb4875 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 3b01f8f4c5..17bd3f8a7d 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-17.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-17.js @@ -9,17 +9,19 @@ description: > property without a get function on an Array-like object ---*/ - function callbackfn(val, idx, obj) { - return undefined === val && idx === 1; - } +function callbackfn(val, idx, obj) { + return undefined === val && idx === 1; +} - var obj = { length: 2 }; - Object.defineProperty(obj, "1", { - set: function () { }, - configurable: true - }); +var obj = { + length: 2 +}; +Object.defineProperty(obj, "1", { + set: function() {}, + configurable: true +}); - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], undefined, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-18.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-18.js index 3cfc401b90..b139b96a6f 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 4ff5f9589c..af8b5d615f 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-19.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-19.js @@ -10,18 +10,20 @@ description: > accessor property on an Array-like object ---*/ - function callbackfn(val, idx, obj) { - return undefined === val && idx === 1; - } +function callbackfn(val, idx, obj) { + return undefined === val && idx === 1; +} - var obj = { length: 2 }; - Object.defineProperty(obj, "1", { - set: function () { }, - configurable: true - }); +var obj = { + length: 2 +}; +Object.defineProperty(obj, "1", { + set: function() {}, + configurable: true +}); - Object.prototype[1] = 10; - var newArr = Array.prototype.filter.call(obj, callbackfn); +Object.prototype[1] = 10; +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], undefined, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-2.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-2.js index b2ea87479f..a129174e77 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 83958a877d..fa5905c96f 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 e4c19177bf..87bc30149a 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 5093adca4e..ce088257b2 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 f050065ed4..f2288892ed 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 4c5719f154..13eabc564a 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 96927339aa..117cbb39b7 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 266d3eb37e..28a3290dc4 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 5029717015..f3cce11d79 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-29.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-29.js @@ -9,32 +9,34 @@ description: > iterations is observed on an Array-like object ---*/ - function callbackfn(val, idx, obj) { - return val === 9 && idx === 1; - } +function callbackfn(val, idx, obj) { + return val === 9 && idx === 1; +} - var preIterVisible = false; - var obj = { length: 2 }; +var preIterVisible = false; +var obj = { + length: 2 +}; - Object.defineProperty(obj, "0", { - get: function () { - preIterVisible = true; - return 11; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + preIterVisible = true; + return 11; + }, + configurable: true +}); - Object.defineProperty(obj, "1", { - get: function () { - if (preIterVisible) { - return 9; - } else { - return 13; - } - }, - configurable: true - }); - var newArr = Array.prototype.filter.call(obj, callbackfn); +Object.defineProperty(obj, "1", { + get: function() { + if (preIterVisible) { + return 9; + } else { + return 13; + } + }, + configurable: true +}); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 9, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-3.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-3.js index ce761b38f8..1f6b1b8c15 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-3.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-3.js @@ -10,20 +10,23 @@ description: > Array-like object ---*/ - function callbackfn(val, idx, obj) { - return (idx === 5) && (val === "abc"); - } +function callbackfn(val, idx, obj) { + return (idx === 5) && (val === "abc"); +} - var proto = { 0: 11, 5: 100 }; +var proto = { + 0: 11, + 5: 100 +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child[5] = "abc"; - child.length = 10; +var child = new Con(); +child[5] = "abc"; +child.length = 10; - var newArr = Array.prototype.filter.call(child, callbackfn); +var newArr = Array.prototype.filter.call(child, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], "abc", 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-30.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-30.js index 150a4e013f..01ffb99e01 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-30.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-30.js @@ -9,22 +9,28 @@ description: > terminate iteration on an Array-like object ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - if (idx > 1) { - accessed = true; - } - return true; - } +var accessed = false; - var obj = { 0: 11, 5: 10, 10: 8, length: 20 }; - Object.defineProperty(obj, "1", { - get: function () { - throw new RangeError("unhandle exception happened in getter"); - }, - configurable: true - }); +function callbackfn(val, idx, obj) { + if (idx > 1) { + accessed = true; + } + return true; +} + +var obj = { + 0: 11, + 5: 10, + 10: 8, + length: 20 +}; +Object.defineProperty(obj, "1", { + get: function() { + throw new RangeError("unhandle exception happened in getter"); + }, + configurable: true +}); assert.throws(RangeError, function() { - Array.prototype.filter.call(obj, callbackfn); + Array.prototype.filter.call(obj, callbackfn); }); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-31.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-31.js index 0eb4d2ecdc..dc86f08484 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-31.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-31.js @@ -9,25 +9,26 @@ description: > terminate iteration on an Array ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - if (idx > 1) { - accessed = true; - } - return true; - } +var accessed = false; - var arr = []; - arr[5] = 10; - arr[10] = 100; +function callbackfn(val, idx, obj) { + if (idx > 1) { + accessed = true; + } + return true; +} - Object.defineProperty(arr, "1", { - get: function () { - throw new RangeError("unhandle exception happened in getter"); - }, - configurable: true - }); +var arr = []; +arr[5] = 10; +arr[10] = 100; + +Object.defineProperty(arr, "1", { + get: function() { + throw new RangeError("unhandle exception happened in getter"); + }, + configurable: true +}); assert.throws(RangeError, function() { - arr.filter(callbackfn); + arr.filter(callbackfn); }); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-4.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-4.js index 39f5a2af26..62273cdb99 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 43000dca2e..7f694e9931 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 18af4d7acc..17ead0e578 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 ec3284966a..2f92dcd612 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-7.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-7.js @@ -9,21 +9,23 @@ description: > property on an Array-like object ---*/ - var kValue = 'abc'; +var kValue = 'abc'; - function callbackfn(val, idx, obj) { - return (idx === 5) && (val === kValue); - } +function callbackfn(val, idx, obj) { + return (idx === 5) && (val === kValue); +} - var proto = { 5: kValue }; +var proto = { + 5: kValue +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child.length = 10; +var child = new Con(); +child.length = 10; - var newArr = Array.prototype.filter.call(child, callbackfn); +var newArr = Array.prototype.filter.call(child, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], kValue, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-8.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-8.js index 3de54b2b26..a263ceb340 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 3e72994868..57aae11773 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-9.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-9.js @@ -9,20 +9,23 @@ description: > property on an Array-like object ---*/ - function callbackfn(val, idx, obj) { - return (idx === 0) && (val === 11); - } +function callbackfn(val, idx, obj) { + return (idx === 0) && (val === 11); +} - var obj = { 10: 10, length: 20 }; +var obj = { + 10: 10, + length: 20 +}; - Object.defineProperty(obj, "0", { - get: function () { - return 11; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + return 11; + }, + configurable: true +}); - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-1.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-1.js index f635e683cd..e29bab3358 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-1.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-1.js @@ -7,18 +7,19 @@ es5id: 15.4.4.20-9-c-ii-1 description: Array.prototype.filter - callbackfn called with correct parameters ---*/ - var bPar = true; - var bCalled = false; - function callbackfn(val, idx, obj) - { - bCalled = true; - if(obj[idx] !== val) - bPar = false; - } +var bPar = true; +var bCalled = false; - var srcArr = [0,1,true,null,new Object(),"five"]; - srcArr[999999] = -6.6; - var resArr = srcArr.filter(callbackfn); +function callbackfn(val, idx, obj) +{ + bCalled = true; + if (obj[idx] !== val) + bPar = false; +} + +var srcArr = [0, 1, true, null, new Object(), "five"]; +srcArr[999999] = -6.6; +var resArr = srcArr.filter(callbackfn); assert.sameValue(bCalled, true, 'bCalled'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-10.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-10.js index b7a6a8e0e5..67884f9e54 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 4f5cd0714c..ca8ee65542 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 400d6ae8a1..8ef2009e4e 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 a51466ee68..59087549b9 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 6b1ed02785..44dab44499 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-16.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-16.js @@ -9,12 +9,15 @@ description: > object when T is not an object (T is a boolean) ---*/ - function callbackfn(val, idx, obj) { - return this.valueOf() === false; - } +function callbackfn(val, idx, obj) { + return this.valueOf() === false; +} - var obj = { 0: 11, length: 2 }; - var newArr = Array.prototype.filter.call(obj, callbackfn, false); +var obj = { + 0: 11, + length: 2 +}; +var newArr = Array.prototype.filter.call(obj, callbackfn, false); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-17.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-17.js index 17022d9b26..99a2bb143d 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-17.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-17.js @@ -9,12 +9,15 @@ description: > when T is not an object (T is a number) ---*/ - function callbackfn(val, idx, o) { - return 5 === this.valueOf(); - } +function callbackfn(val, idx, o) { + return 5 === this.valueOf(); +} - var obj = { 0: 11, length: 2 }; - var newArr = Array.prototype.filter.call(obj, callbackfn, 5); +var obj = { + 0: 11, + length: 2 +}; +var newArr = Array.prototype.filter.call(obj, callbackfn, 5); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-18.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-18.js index bc7ae00991..73ccf1d5fd 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-18.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-18.js @@ -9,12 +9,15 @@ description: > object when T is not an object (T is a string) ---*/ - function callbackfn(val, idx, obj) { - return 'hello' === this.valueOf(); - } +function callbackfn(val, idx, obj) { + return 'hello' === this.valueOf(); +} - var obj = { 0: 11, length: 2 }; - var newArr = Array.prototype.filter.call(obj, callbackfn, "hello"); +var obj = { + 0: 11, + length: 2 +}; +var newArr = Array.prototype.filter.call(obj, callbackfn, "hello"); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-19.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-19.js index 235694b234..b2ba6df2bc 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-19.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-19.js @@ -7,15 +7,20 @@ es5id: 15.4.4.20-9-c-ii-19 description: Array.prototype.filter - non-indexed properties are not called ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return val === 8; - } +function callbackfn(val, idx, obj) { + accessed = true; + return val === 8; +} - var obj = { 0: 11, non_index_property: 8, 2: 5, length: 20 }; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var obj = { + 0: 11, + non_index_property: 8, + 2: 5, + length: 20 +}; +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-2.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-2.js index 52910ae39a..208ff7aacc 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-2.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-2.js @@ -7,17 +7,18 @@ es5id: 15.4.4.20-9-c-ii-2 description: Array.prototype.filter - callbackfn takes 3 arguments ---*/ - var parCnt = 3; - var bCalled = false - function callbackfn(val, idx, obj) - { - bCalled = true; - if(arguments.length !== 3) - parCnt = arguments.length; //verify if callbackfn was called with 3 parameters - } +var parCnt = 3; +var bCalled = false - var srcArr = [0,1,2,3,4,5,6,7,8,9]; - var resArr = srcArr.filter(callbackfn); +function callbackfn(val, idx, obj) +{ + bCalled = true; + if (arguments.length !== 3) + parCnt = arguments.length; //verify if callbackfn was called with 3 parameters +} + +var srcArr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; +var resArr = srcArr.filter(callbackfn); assert.sameValue(bCalled, true, 'bCalled'); assert.sameValue(parCnt, 3, 'parCnt'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-20.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-20.js index fc145e2344..645621f7e1 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-20.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-20.js @@ -9,14 +9,19 @@ description: > (thisArg is correct) ---*/ - var thisArg = { threshold: 10 }; +var thisArg = { + threshold: 10 +}; - function callbackfn(val, idx, obj) { - return this === thisArg; - } +function callbackfn(val, idx, obj) { + return this === thisArg; +} - var obj = { 0: 11, length: 1 }; - var newArr = Array.prototype.filter.call(obj, callbackfn, thisArg); +var obj = { + 0: 11, + length: 1 +}; +var newArr = Array.prototype.filter.call(obj, callbackfn, thisArg); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-21.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-21.js index 1dd9e0853e..8c2b37645f 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-21.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-21.js @@ -9,20 +9,24 @@ description: > (kValue is correct) ---*/ - function callbackfn(val, idx, obj) { - if (idx === 0) { - return val === 11; - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + return val === 11; + } - if (idx === 1) { - return val === 12; - } + if (idx === 1) { + return val === 12; + } - return false; - } + return false; +} - var obj = { 0: 11, 1: 12, length: 2 }; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var obj = { + 0: 11, + 1: 12, + length: 2 +}; +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 2, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-22.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-22.js index 1976d0ab97..d8f90cbda1 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-22.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-22.js @@ -9,20 +9,24 @@ description: > (the index k is correct) ---*/ - function callbackfn(val, idx, obj) { - if (val === 11) { - return idx === 0; - } +function callbackfn(val, idx, obj) { + if (val === 11) { + return idx === 0; + } - if (val === 12) { - return idx === 1; - } + if (val === 12) { + return idx === 1; + } - return false; - } + return false; +} - var obj = { 0: 11, 1: 12, length: 2 }; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var obj = { + 0: 11, + 1: 12, + length: 2 +}; +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 2, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-23.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-23.js index cdb465ca3b..54813293c2 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-23.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-23.js @@ -9,13 +9,16 @@ description: > (this object O is correct) ---*/ - var obj = { 0: 11, length: 2 }; +var obj = { + 0: 11, + length: 2 +}; - function callbackfn(val, idx, o) { - return obj === o; - } +function callbackfn(val, idx, o) { + return obj === o; +} - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-4.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-4.js index c9a7de747a..5b8e78643b 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-4.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-4.js @@ -9,18 +9,19 @@ description: > order ---*/ - var arr = [0, 1, 2, 3, 4, 5]; - var lastIdx = 0; - var called = 0; - function callbackfn(val, idx, o) { - called++; - if (lastIdx !== idx) { - return false; - } else { - lastIdx++; - return true; - } - } - var newArr = arr.filter(callbackfn); +var arr = [0, 1, 2, 3, 4, 5]; +var lastIdx = 0; +var called = 0; + +function callbackfn(val, idx, o) { + called++; + if (lastIdx !== idx) { + return false; + } else { + lastIdx++; + return true; + } +} +var newArr = arr.filter(callbackfn); assert.sameValue(newArr.length, called, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-5.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-5.js index dbf9d0d547..f0f5e5df9c 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 6390d908cd..ea27bcafed 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-6.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-6.js @@ -9,17 +9,20 @@ description: > consistent ---*/ - var obj = { 0: 11, length: 1 }; - var thisArg = {}; +var obj = { + 0: 11, + length: 1 +}; +var thisArg = {}; - function callbackfn() { - return this === thisArg && - arguments[0] === 11 && - arguments[1] === 0 && - arguments[2] === obj; - } +function callbackfn() { + return this === thisArg && + arguments[0] === 11 && + arguments[1] === 0 && + arguments[2] === obj; +} - var newArr = Array.prototype.filter.call(obj, callbackfn, thisArg); +var newArr = Array.prototype.filter.call(obj, callbackfn, thisArg); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-7.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-7.js index 97dfb262b6..68d53c92cd 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-7.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-7.js @@ -9,18 +9,23 @@ description: > callbackfn terminate iteration ---*/ - var called = 0; +var called = 0; - function callbackfn(val, idx, obj) { - called++; - if (called === 1) { - throw new Error("Exception occurred in callbackfn"); - } - return true; - } +function callbackfn(val, idx, obj) { + called++; + if (called === 1) { + throw new Error("Exception occurred in callbackfn"); + } + return true; +} - var obj = { 0: 11, 4: 10, 10: 8, length: 20 }; +var obj = { + 0: 11, + 4: 10, + 10: 8, + length: 20 +}; assert.throws(Error, function() { - Array.prototype.filter.call(obj, callbackfn); + Array.prototype.filter.call(obj, callbackfn); }); assert.sameValue(called, 1, 'called'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-8.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-8.js index 6551c71dfe..6f93d5fee5 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-8.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-8.js @@ -9,16 +9,20 @@ description: > iterations is observed ---*/ - var obj = { 0: 11, 1: 12, length: 2 }; +var obj = { + 0: 11, + 1: 12, + length: 2 +}; - function callbackfn(val, idx, o) { - if (idx === 0) { - obj[idx + 1] = 8; - } - return val > 10; - } +function callbackfn(val, idx, o) { + if (idx === 0) { + obj[idx + 1] = 8; + } + return val > 10; +} - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-9.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-9.js index 0d6beb1478..382633547c 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 cf811e4dd9..32568ef97d 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-1.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-1.js @@ -9,12 +9,16 @@ description: > 'kValue' ---*/ - function callbackfn(val, idx, obj) { - return true; - } +function callbackfn(val, idx, obj) { + return true; +} - var obj = { 0: 11, 1: 9, length: 2 }; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var obj = { + 0: 11, + 1: 9, + length: 2 +}; +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr[0], obj[0], 'newArr[0]'); assert.sameValue(newArr[1], obj[1], 'newArr[1]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-2.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-2.js index 8acc541e36..3a9a1dfc01 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-2.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-2.js @@ -9,14 +9,18 @@ description: > overwritten ---*/ - function callbackfn(val, idx, obj) { - return true; - } +function callbackfn(val, idx, obj) { + return true; +} - var obj = { 0: 11, 1: 9, length: 2 }; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var obj = { + 0: 11, + 1: 9, + length: 2 +}; +var newArr = Array.prototype.filter.call(obj, callbackfn); - var tempVal = newArr[1]; - newArr[1] += 1; +var tempVal = newArr[1]; +newArr[1] += 1; assert.notSameValue(newArr[1], tempVal, 'newArr[1]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-3.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-3.js index c3d2d718d3..1b641737e9 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-3.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-3.js @@ -9,21 +9,24 @@ description: > enumerated ---*/ - function callbackfn(val, idx, obj) { - return true; - } +function callbackfn(val, idx, obj) { + return true; +} - var obj = { 0: 11, length: 2 }; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var obj = { + 0: 11, + length: 2 +}; +var newArr = Array.prototype.filter.call(obj, callbackfn); - var prop; - var enumerable = false; - for (prop in newArr) { - if (newArr.hasOwnProperty(prop)) { - if (prop === "0") { - enumerable = true; - } - } - } +var prop; +var enumerable = false; +for (prop in newArr) { + if (newArr.hasOwnProperty(prop)) { + if (prop === "0") { + enumerable = true; + } + } +} assert(enumerable, 'enumerable !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-4.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-4.js index 43d859cc4f..18f72dd4c7 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-4.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-4.js @@ -9,15 +9,19 @@ description: > changed or deleted ---*/ - function callbackfn(val, idx, obj) { - return true; - } +function callbackfn(val, idx, obj) { + return true; +} - var obj = { 0: 11, 1: 9, length: 2 }; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var obj = { + 0: 11, + 1: 9, + length: 2 +}; +var newArr = Array.prototype.filter.call(obj, callbackfn); - var tempVal = newArr[1]; - delete newArr[1]; +var tempVal = newArr[1]; +delete newArr[1]; assert.notSameValue(tempVal, undefined, 'tempVal'); assert.sameValue(newArr[1], undefined, 'newArr[1]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-5.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-5.js index 010699ccf4..b5a88eb4b9 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-5.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-5.js @@ -9,19 +9,20 @@ description: > numeric order ---*/ - var arr = [0, 1, 2, 3, 4]; - var lastToIdx = 0; - var called = 0; - function callbackfn(val, idx, obj) { - called++; - if (lastToIdx !== idx) { - return false; - } else { - lastToIdx++; - return true; - } - } - var newArr = arr.filter(callbackfn); +var arr = [0, 1, 2, 3, 4]; +var lastToIdx = 0; +var called = 0; + +function callbackfn(val, idx, obj) { + called++; + if (lastToIdx !== idx) { + return false; + } else { + lastToIdx++; + return true; + } +} +var newArr = arr.filter(callbackfn); assert.sameValue(newArr.length, 5, 'newArr.length'); assert.sameValue(called, 5, 'called'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-6.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-6.js index aaad13206c..8e9d64fc65 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 b6c6e6a61f..b4090e61db 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 38b9c166b5..e0095481f7 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 afdb356859..f1458a7ec5 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 719ee9bc9e..3187b31ed7 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 e78a98f136..3af7abd329 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 a9df829af6..976eb524d9 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 c6cac3c3c8..46d3a541da 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 15d6f41944..9d61f23cf0 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 4fa7e5e1e2..e897b21bcc 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 46dad6dd06..71f79ca9e9 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 bd35cfb692..0570144e92 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 b0681bb102..892a96c6b0 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-2.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-2.js @@ -7,16 +7,19 @@ es5id: 15.4.4.20-9-c-iii-2 description: Array.prototype.filter - return value of callbackfn is undefined ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, o) { - accessed = true; - return undefined; - } +function callbackfn(val, idx, o) { + accessed = true; + return undefined; +} - var obj = { 0: 11, length: 1 }; +var obj = { + 0: 11, + length: 1 +}; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-20.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-20.js index 8f3f5e55f4..c5409a87e7 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 5d91b294fc..80c3876c64 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 7825fe47ff..b9e29f24bb 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 7fca3c93de..69b2c2c72b 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 8f0a030c38..afd5e22348 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 57be04e13c..279fb2a4b3 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 332a4c3a36..25ec2c9fe8 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 a8d86ae226..7d02e8a477 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-28.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-28.js @@ -10,11 +10,12 @@ description: > ---*/ var global = this; - function callbackfn(val, idx, obj) { - return global; - } - var newArr = [11].filter(callbackfn); +function callbackfn(val, idx, obj) { + return global; +} + +var newArr = [11].filter(callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-29.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-29.js index a16c1a2dd7..4184c13cfd 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-29.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-29.js @@ -9,16 +9,20 @@ description: > Array ---*/ - var called = 0; +var called = 0; - function callbackfn(val, idx, obj) { - called++; - return val > 10; - } +function callbackfn(val, idx, obj) { + called++; + return val > 10; +} - var obj = { 0: 11, 1: 8, length: 20 }; +var obj = { + 0: 11, + 1: 8, + length: 20 +}; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.notSameValue(newArr[0], 8, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-3.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-3.js index 8c3fa9315f..f5d032d1c8 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-3.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-3.js @@ -7,16 +7,19 @@ es5id: 15.4.4.20-9-c-iii-3 description: Array.prototype.filter - return value of callbackfn is null ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return null; - } +function callbackfn(val, idx, obj) { + accessed = true; + return null; +} - var obj = { 0: 11, length: 1 }; +var obj = { + 0: 11, + length: 1 +}; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-30.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-30.js index 603c075672..e21b710d61 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 957e1b5060..400819dc74 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-4.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-4.js @@ -9,16 +9,19 @@ description: > (value is false) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return false; - } +function callbackfn(val, idx, obj) { + accessed = true; + return false; +} - var obj = { 0: 11, length: 1 }; +var obj = { + 0: 11, + length: 1 +}; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-5.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-5.js index 3b3959c4f6..d33c906f24 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-5.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-5.js @@ -9,13 +9,16 @@ description: > (value is true) ---*/ - function callbackfn(val, idx, obj) { - return true; - } +function callbackfn(val, idx, obj) { + return true; +} - var obj = { 0: 11, length: 1 }; +var obj = { + 0: 11, + length: 1 +}; - var newArr = Array.prototype.filter.call(obj, callbackfn); +var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-6.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-6.js index 59e225bab0..8cfdbcbfdd 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 8b1efafcda..766eb4034f 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 3711ff9ef6..ae10c8998b 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 33bd28e868..c9f2d57726 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 988fed039e..e4f50c1cf0 100644 --- a/test/built-ins/Array/prototype/filter/create-ctor-non-object.js +++ b/test/built-ins/Array/prototype/filter/create-ctor-non-object.js @@ -20,7 +20,9 @@ info: | var a = []; var callCount = 0; -var cb = function() { callCount += 0; }; +var cb = function() { + callCount += 0; +}; a.constructor = null; assert.throws(TypeError, function() { diff --git a/test/built-ins/Array/prototype/filter/create-ctor-poisoned.js b/test/built-ins/Array/prototype/filter/create-ctor-poisoned.js index a766e68961..8dec316a78 100644 --- a/test/built-ins/Array/prototype/filter/create-ctor-poisoned.js +++ b/test/built-ins/Array/prototype/filter/create-ctor-poisoned.js @@ -17,7 +17,9 @@ info: | var a = []; var callCount = 0; -var cb = function() { callCount += 1; }; +var cb = function() { + callCount += 1; +}; Object.defineProperty(a, 'constructor', { get: function() { diff --git a/test/built-ins/Array/prototype/filter/create-non-array.js b/test/built-ins/Array/prototype/filter/create-non-array.js index 32ef7736f7..34c2a56a07 100644 --- a/test/built-ins/Array/prototype/filter/create-non-array.js +++ b/test/built-ins/Array/prototype/filter/create-non-array.js @@ -16,7 +16,9 @@ info: | 4. If isArray is false, return ? ArrayCreate(length). ---*/ -var obj = { length: 0 }; +var obj = { + length: 0 +}; var callCount = 0; var result; Object.defineProperty(obj, 'constructor', { diff --git a/test/built-ins/Array/prototype/filter/create-revoked-proxy.js b/test/built-ins/Array/prototype/filter/create-revoked-proxy.js index aecf766f9b..3bdee5cd64 100644 --- a/test/built-ins/Array/prototype/filter/create-revoked-proxy.js +++ b/test/built-ins/Array/prototype/filter/create-revoked-proxy.js @@ -26,7 +26,9 @@ features: [Proxy] var o = Proxy.revocable([], {}); var ctorCount = 0; var cbCount = 0; -var cb = function() { cbCount += 1; }; +var cb = function() { + cbCount += 1; +}; Object.defineProperty(o.proxy, 'constructor', { get: function() { diff --git a/test/built-ins/Array/prototype/filter/create-species-abrupt.js b/test/built-ins/Array/prototype/filter/create-species-abrupt.js index 42a4f2eda8..4c461dd30f 100644 --- a/test/built-ins/Array/prototype/filter/create-species-abrupt.js +++ b/test/built-ins/Array/prototype/filter/create-species-abrupt.js @@ -26,7 +26,9 @@ var Ctor = function() { throw new Test262Error(); }; var callCount = 0; -var cb = function() { callCount += 1; }; +var cb = function() { + callCount += 1; +}; var a = []; a.constructor = {}; a.constructor[Symbol.species] = Ctor; diff --git a/test/built-ins/Array/prototype/filter/create-species-non-ctor.js b/test/built-ins/Array/prototype/filter/create-species-non-ctor.js index cf5fba2ce8..890bf4d521 100644 --- a/test/built-ins/Array/prototype/filter/create-species-non-ctor.js +++ b/test/built-ins/Array/prototype/filter/create-species-non-ctor.js @@ -25,7 +25,9 @@ features: [Symbol.species] var a = []; var callCount = 0; -var cb = function() { callCount += 1; }; +var cb = function() { + callCount += 1; +}; a.constructor = {}; a.constructor[Symbol.species] = parseInt; diff --git a/test/built-ins/Array/prototype/filter/create-species-poisoned.js b/test/built-ins/Array/prototype/filter/create-species-poisoned.js index 9edd338af7..947e8f8701 100644 --- a/test/built-ins/Array/prototype/filter/create-species-poisoned.js +++ b/test/built-ins/Array/prototype/filter/create-species-poisoned.js @@ -21,7 +21,9 @@ features: [Symbol.species] var a = []; var callCount = 0; -var cb = function() { callCount += 1; }; +var cb = function() { + callCount += 1; +}; a.constructor = {}; Object.defineProperty(a.constructor, Symbol.species, { diff --git a/test/built-ins/Array/prototype/find/return-found-value-predicate-result-is-true.js b/test/built-ins/Array/prototype/find/return-found-value-predicate-result-is-true.js index 073201a279..16afbdf352 100644 --- a/test/built-ins/Array/prototype/find/return-found-value-predicate-result-is-true.js +++ b/test/built-ins/Array/prototype/find/return-found-value-predicate-result-is-true.js @@ -38,17 +38,27 @@ result = arr.find(function(val) { assert.sameValue(called, 3, 'predicate was called three times'); assert.sameValue(result, 'Bike'); -result = arr.find(function(val) { return 'string'; }); +result = arr.find(function(val) { + return 'string'; +}); assert.sameValue(result, 'Shoes', 'coerced string'); -result = arr.find(function(val) { return {}; }); +result = arr.find(function(val) { + return {}; +}); assert.sameValue(result, 'Shoes', 'coerced object'); -result = arr.find(function(val) { return Symbol(''); }); +result = arr.find(function(val) { + return Symbol(''); +}); assert.sameValue(result, 'Shoes', 'coerced Symbol'); -result = arr.find(function(val) { return 1; }); +result = arr.find(function(val) { + return 1; +}); assert.sameValue(result, 'Shoes', 'coerced number'); -result = arr.find(function(val) { return -1; }); +result = arr.find(function(val) { + return -1; +}); assert.sameValue(result, 'Shoes', 'coerced negative number'); diff --git a/test/built-ins/Array/prototype/find/return-undefined-if-predicate-returns-false-value.js b/test/built-ins/Array/prototype/find/return-undefined-if-predicate-returns-false-value.js index 65d471bac1..0eb576508b 100644 --- a/test/built-ins/Array/prototype/find/return-undefined-if-predicate-returns-false-value.js +++ b/test/built-ins/Array/prototype/find/return-undefined-if-predicate-returns-false-value.js @@ -28,17 +28,27 @@ var result = arr.find(function(val) { assert.sameValue(called, 3, 'predicate was called three times'); assert.sameValue(result, undefined); -result = arr.find(function(val) { return ''; }); +result = arr.find(function(val) { + return ''; +}); assert.sameValue(result, undefined, 'coerced string'); -result = arr.find(function(val) { return undefined; }); +result = arr.find(function(val) { + return undefined; +}); assert.sameValue(result, undefined, 'coerced undefined'); -result = arr.find(function(val) { return null; }); +result = arr.find(function(val) { + return null; +}); assert.sameValue(result, undefined, 'coerced null'); -result = arr.find(function(val) { return 0; }); +result = arr.find(function(val) { + return 0; +}); assert.sameValue(result, undefined, 'coerced 0'); -result = arr.find(function(val) { return NaN; }); +result = arr.find(function(val) { + return NaN; +}); assert.sameValue(result, undefined, 'coerced NaN'); diff --git a/test/built-ins/Array/prototype/findIndex/return-index-predicate-result-is-true.js b/test/built-ins/Array/prototype/findIndex/return-index-predicate-result-is-true.js index f57d47aebc..bddf1e3e4c 100644 --- a/test/built-ins/Array/prototype/findIndex/return-index-predicate-result-is-true.js +++ b/test/built-ins/Array/prototype/findIndex/return-index-predicate-result-is-true.js @@ -38,17 +38,27 @@ result = arr.findIndex(function(val) { assert.sameValue(called, 3, 'predicate was called three times'); assert.sameValue(result, 2); -result = arr.findIndex(function(val) { return 'string'; }); +result = arr.findIndex(function(val) { + return 'string'; +}); assert.sameValue(result, 0, 'coerced string'); -result = arr.findIndex(function(val) { return {}; }); +result = arr.findIndex(function(val) { + return {}; +}); assert.sameValue(result, 0, 'coerced object'); -result = arr.findIndex(function(val) { return Symbol(''); }); +result = arr.findIndex(function(val) { + return Symbol(''); +}); assert.sameValue(result, 0, 'coerced Symbol'); -result = arr.findIndex(function(val) { return 1; }); +result = arr.findIndex(function(val) { + return 1; +}); assert.sameValue(result, 0, 'coerced number'); -result = arr.findIndex(function(val) { return -1; }); +result = arr.findIndex(function(val) { + return -1; +}); assert.sameValue(result, 0, 'coerced negative number'); diff --git a/test/built-ins/Array/prototype/findIndex/return-negative-one-if-predicate-returns-false-value.js b/test/built-ins/Array/prototype/findIndex/return-negative-one-if-predicate-returns-false-value.js index f5348ea596..b1e6eb76b7 100644 --- a/test/built-ins/Array/prototype/findIndex/return-negative-one-if-predicate-returns-false-value.js +++ b/test/built-ins/Array/prototype/findIndex/return-negative-one-if-predicate-returns-false-value.js @@ -28,17 +28,27 @@ var result = arr.findIndex(function(val) { assert.sameValue(called, 3, 'predicate was called three times'); assert.sameValue(result, -1); -result = arr.findIndex(function(val) { return ''; }); +result = arr.findIndex(function(val) { + return ''; +}); assert.sameValue(result, -1, 'coerced string'); -result = arr.findIndex(function(val) { return undefined; }); +result = arr.findIndex(function(val) { + return undefined; +}); assert.sameValue(result, -1, 'coerced undefined'); -result = arr.findIndex(function(val) { return null; }); +result = arr.findIndex(function(val) { + return null; +}); assert.sameValue(result, -1, 'coerced null'); -result = arr.findIndex(function(val) { return 0; }); +result = arr.findIndex(function(val) { + return 0; +}); assert.sameValue(result, -1, 'coerced 0'); -result = arr.findIndex(function(val) { return NaN; }); +result = arr.findIndex(function(val) { + return NaN; +}); assert.sameValue(result, -1, 'coerced NaN'); diff --git a/test/built-ins/Array/prototype/flatMap/bound-function-argument.js b/test/built-ins/Array/prototype/flatMap/bound-function-argument.js index 95f5aeffe7..daa3141157 100644 --- a/test/built-ins/Array/prototype/flatMap/bound-function-argument.js +++ b/test/built-ins/Array/prototype/flatMap/bound-function-argument.js @@ -9,4 +9,6 @@ features: [Array.prototype.flatMap] ---*/ var a = [0, 0]; -assert.compareArray(a.flatMap(function(){ return this; }.bind([1, 2])), [1, 2, 1, 2]); +assert.compareArray(a.flatMap(function() { + return this; +}.bind([1, 2])), [1, 2, 1, 2]); diff --git a/test/built-ins/Array/prototype/flatMap/depth-always-one.js b/test/built-ins/Array/prototype/flatMap/depth-always-one.js index 851a9a7449..4f5f672b48 100644 --- a/test/built-ins/Array/prototype/flatMap/depth-always-one.js +++ b/test/built-ins/Array/prototype/flatMap/depth-always-one.js @@ -13,7 +13,9 @@ assert.compareArray([1, 2].flatMap(function(e) { }), [1, 2, 2, 4], 'array depth is 1'); var result = [1, 2, 3].flatMap(function(ele) { - return [[ele * 2]]; + return [ + [ele * 2] + ]; }); assert.sameValue(result.length, 3, 'array depth is more than 1 - length'); assert.compareArray(result[0], [2], 'array depth is more than 1 - 1st element'); diff --git a/test/built-ins/Array/prototype/flatMap/non-callable-argument-throws.js b/test/built-ins/Array/prototype/flatMap/non-callable-argument-throws.js index 6d47d02335..ab0f8ca86d 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 21e44b6818..65767d2ce4 100644 --- a/test/built-ins/Array/prototype/flatMap/non-object-ctor-throws.js +++ b/test/built-ins/Array/prototype/flatMap/non-object-ctor-throws.js @@ -31,4 +31,3 @@ a.constructor = true; assert.throws(TypeError, function() { a.flatMap(); }, 'boolean value'); - diff --git a/test/built-ins/Array/prototype/flatMap/null-undefined-input-throws.js b/test/built-ins/Array/prototype/flatMap/null-undefined-input-throws.js index 5a4e966e25..dcfe81aaf4 100644 --- a/test/built-ins/Array/prototype/flatMap/null-undefined-input-throws.js +++ b/test/built-ins/Array/prototype/flatMap/null-undefined-input-throws.js @@ -18,4 +18,3 @@ assert.throws(TypeError, function() { assert.throws(TypeError, function() { [].flatMap.call(void 0); }, 'undefined'); - diff --git a/test/built-ins/Array/prototype/flatMap/thisArg-argument.js b/test/built-ins/Array/prototype/flatMap/thisArg-argument.js index 95b95ca7a3..34db60abdc 100644 --- a/test/built-ins/Array/prototype/flatMap/thisArg-argument.js +++ b/test/built-ins/Array/prototype/flatMap/thisArg-argument.js @@ -12,9 +12,21 @@ features: [Array.prototype.flatMap] var a = {}; -assert(compareArray([1].flatMap(function() { return [this]; }, "TestString"), ["TestString"])); -assert(compareArray([1].flatMap(function() { return [this]; }, 1), [1])); -assert(compareArray([1].flatMap(function() { return [this]; }, null), [null])); -assert(compareArray([1].flatMap(function() { return [this]; }, true), [true])); -assert(compareArray([1].flatMap(function() { return [this]; }, a), [a])); -assert(compareArray([1].flatMap(function() { return [this]; }, void 0), [undefined])); +assert(compareArray([1].flatMap(function() { + return [this]; +}, "TestString"), ["TestString"])); +assert(compareArray([1].flatMap(function() { + return [this]; +}, 1), [1])); +assert(compareArray([1].flatMap(function() { + return [this]; +}, null), [null])); +assert(compareArray([1].flatMap(function() { + return [this]; +}, true), [true])); +assert(compareArray([1].flatMap(function() { + return [this]; +}, a), [a])); +assert(compareArray([1].flatMap(function() { + return [this]; +}, void 0), [undefined])); diff --git a/test/built-ins/Array/prototype/flatten/bound-function-call.js b/test/built-ins/Array/prototype/flatten/bound-function-call.js index ce4153b87c..fd35f0975f 100644 --- a/test/built-ins/Array/prototype/flatten/bound-function-call.js +++ b/test/built-ins/Array/prototype/flatten/bound-function-call.js @@ -8,7 +8,10 @@ includes: [compareArray.js] features: [Array.prototype.flatten] ---*/ -var a = [[0],[1]]; +var a = [ + [0], + [1] +]; var actual = [].flatten.bind(a)(); assert.compareArray(actual, [0, 1], 'bound flatten'); diff --git a/test/built-ins/Array/prototype/flatten/empty-array-elements.js b/test/built-ins/Array/prototype/flatten/empty-array-elements.js index cbf2ae4b07..379b1e48cd 100644 --- a/test/built-ins/Array/prototype/flatten/empty-array-elements.js +++ b/test/built-ins/Array/prototype/flatten/empty-array-elements.js @@ -10,6 +10,15 @@ features: [Array.prototype.flatten] var a = {}; assert.compareArray([].flatten(), []); -assert.compareArray([[], []].flatten(), []); -assert.compareArray([[], [1]].flatten(), [1]); -assert.compareArray([[], [1, a]].flatten(), [1, a]); +assert.compareArray([ + [], + [] +].flatten(), []); +assert.compareArray([ + [], + [1] +].flatten(), [1]); +assert.compareArray([ + [], + [1, a] +].flatten(), [1, a]); diff --git a/test/built-ins/Array/prototype/flatten/empty-object-elements.js b/test/built-ins/Array/prototype/flatten/empty-object-elements.js index 356cab6606..e1fcb18d31 100644 --- a/test/built-ins/Array/prototype/flatten/empty-object-elements.js +++ b/test/built-ins/Array/prototype/flatten/empty-object-elements.js @@ -8,9 +8,15 @@ includes: [compareArray.js] features: [Array.prototype.flatten] ---*/ -var a = {}, b = {}; +var a = {}, + b = {}; assert.compareArray([a].flatten(), [a]); assert.compareArray([a, [b]].flatten(), [a, b]); -assert.compareArray([[a], b].flatten(), [a, b]); -assert.compareArray([[a], [b]].flatten(), [a, b]); +assert.compareArray([ + [a], b +].flatten(), [a, b]); +assert.compareArray([ + [a], + [b] +].flatten(), [a, b]); diff --git a/test/built-ins/Array/prototype/flatten/name.js b/test/built-ins/Array/prototype/flatten/name.js index 365c7e11ce..6d89ae6b7d 100644 --- a/test/built-ins/Array/prototype/flatten/name.js +++ b/test/built-ins/Array/prototype/flatten/name.js @@ -18,4 +18,3 @@ assert.sameValue( verifyNotEnumerable(Array.prototype.flatten, 'name'); verifyNotWritable(Array.prototype.flatten, 'name'); verifyConfigurable(Array.prototype.flatten, 'name'); - diff --git a/test/built-ins/Array/prototype/flatten/null-undefined-elements.js b/test/built-ins/Array/prototype/flatten/null-undefined-elements.js index ef8fb3a532..8211fdcc28 100644 --- a/test/built-ins/Array/prototype/flatten/null-undefined-elements.js +++ b/test/built-ins/Array/prototype/flatten/null-undefined-elements.js @@ -11,7 +11,10 @@ features: [Array.prototype.flatten] var a = [void 0]; assert(compareArray([1, null, void 0].flatten(), [1, null, undefined])); -assert(compareArray([1,[null, void 0]].flatten(), [1, null, undefined])); -assert(compareArray([[null, void 0], [null, void 0]].flatten(), [null, undefined, null, undefined])); -assert(compareArray([1,[null, a]].flatten(1), [1, null, a])); -assert(compareArray([1,[null, a]].flatten(2), [1, null, undefined])); +assert(compareArray([1, [null, void 0]].flatten(), [1, null, undefined])); +assert(compareArray([ + [null, void 0], + [null, void 0] +].flatten(), [null, undefined, null, undefined])); +assert(compareArray([1, [null, a]].flatten(1), [1, null, a])); +assert(compareArray([1, [null, a]].flatten(2), [1, null, undefined])); diff --git a/test/built-ins/Array/prototype/flatten/null-undefined-input-throws.js b/test/built-ins/Array/prototype/flatten/null-undefined-input-throws.js index 3e711223f7..d3a5a59adc 100644 --- a/test/built-ins/Array/prototype/flatten/null-undefined-input-throws.js +++ b/test/built-ins/Array/prototype/flatten/null-undefined-input-throws.js @@ -18,4 +18,3 @@ assert.throws(TypeError, function() { assert.throws(TypeError, function() { [].flatten.call(void 0); }, 'undefined'); - diff --git a/test/built-ins/Array/prototype/flatten/symbol-object-create-null-depth-throws.js b/test/built-ins/Array/prototype/flatten/symbol-object-create-null-depth-throws.js index 9bcf98ae0c..af58ce6b7d 100644 --- a/test/built-ins/Array/prototype/flatten/symbol-object-create-null-depth-throws.js +++ b/test/built-ins/Array/prototype/flatten/symbol-object-create-null-depth-throws.js @@ -14,4 +14,3 @@ assert.throws(TypeError, function() { assert.throws(TypeError, function() { [].flatten(Object.create(null)); }, 'object create null'); - diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-1.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-1.js index 1f7f8df82d..8e8bb70036 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 e751161d6a..7ba92b9737 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 2ec98784d2..8d30c99dae 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-11.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-11.js @@ -7,15 +7,16 @@ es5id: 15.4.4.18-1-11 description: Array.prototype.forEach applied to Date object ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = obj instanceof Date; - } +var result = false; - var obj = new Date(); - obj.length = 1; - obj[0] = 1; +function callbackfn(val, idx, obj) { + result = obj instanceof Date; +} - Array.prototype.forEach.call(obj, callbackfn); +var obj = new Date(); +obj.length = 1; +obj[0] = 1; + +Array.prototype.forEach.call(obj, callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-12.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-12.js index 5e54175c65..c360a87716 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-12.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-12.js @@ -7,15 +7,16 @@ es5id: 15.4.4.18-1-12 description: Array.prototype.forEach applied to RegExp object ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = obj instanceof RegExp; - } +var result = false; - var obj = new RegExp(); - obj.length = 1; - obj[0] = 1; +function callbackfn(val, idx, obj) { + result = obj instanceof RegExp; +} - Array.prototype.forEach.call(obj, callbackfn); +var obj = new RegExp(); +obj.length = 1; +obj[0] = 1; + +Array.prototype.forEach.call(obj, callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-13.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-13.js index 70fc436293..9759f019af 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-13.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-13.js @@ -7,13 +7,14 @@ es5id: 15.4.4.18-1-13 description: Array.prototype.forEach applied to the JSON object ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = ('[object JSON]' === Object.prototype.toString.call(obj)); - } +var result = false; - JSON.length = 1; - JSON[0] = 1; - Array.prototype.forEach.call(JSON, callbackfn); +function callbackfn(val, idx, obj) { + result = ('[object JSON]' === Object.prototype.toString.call(obj)); +} + +JSON.length = 1; +JSON[0] = 1; +Array.prototype.forEach.call(JSON, callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-14.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-14.js index b7a59755a5..e6c5caa104 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-14.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-14.js @@ -7,15 +7,16 @@ es5id: 15.4.4.18-1-14 description: Array.prototype.forEach applied to Error object ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = obj instanceof Error; - } +var result = false; - var obj = new Error(); - obj.length = 1; - obj[0] = 1; +function callbackfn(val, idx, obj) { + result = obj instanceof Error; +} - Array.prototype.forEach.call(obj, callbackfn); +var obj = new Error(); +obj.length = 1; +obj[0] = 1; + +Array.prototype.forEach.call(obj, callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-15.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-15.js index 6b9762524b..2ea3f1e44f 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-15.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-15.js @@ -7,15 +7,16 @@ es5id: 15.4.4.18-1-15 description: Array.prototype.forEach applied to the Arguments object ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = ('[object Arguments]' === Object.prototype.toString.call(obj)); - } +var result = false; - var obj = (function () { - return arguments; - }("a", "b")); +function callbackfn(val, idx, obj) { + result = ('[object Arguments]' === Object.prototype.toString.call(obj)); +} - Array.prototype.forEach.call(obj, callbackfn); +var obj = (function() { + return arguments; +}("a", "b")); + +Array.prototype.forEach.call(obj, callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-2.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-2.js index 49ee29fb40..bce24cc3fc 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 fde0360220..6434a1a5d5 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 899d60a7da..87304f79b4 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-4.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-4.js @@ -7,16 +7,17 @@ es5id: 15.4.4.18-1-4 description: Array.prototype.forEach applied to Boolean object ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = obj instanceof Boolean; - } +var result = false; - var obj = new Boolean(true); - obj.length = 2; - obj[0] = 11; - obj[1] = 12; +function callbackfn(val, idx, obj) { + result = obj instanceof Boolean; +} - Array.prototype.forEach.call(obj, callbackfn); +var obj = new Boolean(true); +obj.length = 2; +obj[0] = 11; +obj[1] = 12; + +Array.prototype.forEach.call(obj, callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-5.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-5.js index dbfdba7f9b..7afae81ba9 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-5.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-5.js @@ -7,14 +7,15 @@ es5id: 15.4.4.18-1-5 description: Array.prototype.forEach applied to number primitive ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = obj instanceof Number; - } +var result = false; - Number.prototype[0] = 1; - Number.prototype.length = 1; +function callbackfn(val, idx, obj) { + result = obj instanceof Number; +} - Array.prototype.forEach.call(2.5, callbackfn); +Number.prototype[0] = 1; +Number.prototype.length = 1; + +Array.prototype.forEach.call(2.5, callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-6.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-6.js index a4417baced..8e33905dfb 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-6.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-6.js @@ -7,16 +7,17 @@ es5id: 15.4.4.18-1-6 description: Array.prototype.forEach applied to Number object ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = obj instanceof Number; - } +var result = false; - var obj = new Number(-128); - obj.length = 2; - obj[0] = 11; - obj[1] = 12; +function callbackfn(val, idx, obj) { + result = obj instanceof Number; +} - Array.prototype.forEach.call(obj, callbackfn); +var obj = new Number(-128); +obj.length = 2; +obj[0] = 11; +obj[1] = 12; + +Array.prototype.forEach.call(obj, callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-7.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-7.js index c85736e356..7160b1c048 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-7.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-7.js @@ -7,11 +7,12 @@ es5id: 15.4.4.18-1-7 description: Array.prototype.forEach applied to string primitive ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = obj instanceof String; - } +var result = false; - Array.prototype.forEach.call("abc", callbackfn); +function callbackfn(val, idx, obj) { + result = obj instanceof String; +} + +Array.prototype.forEach.call("abc", callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-8.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-8.js index 6aa6ade201..3f2027f772 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-8.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-8.js @@ -7,12 +7,13 @@ es5id: 15.4.4.18-1-8 description: Array.prototype.forEach applied to String object ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = obj instanceof String; - } +var result = false; - var obj = new String("abc"); - Array.prototype.forEach.call(obj, callbackfn); +function callbackfn(val, idx, obj) { + result = obj instanceof String; +} + +var obj = new String("abc"); +Array.prototype.forEach.call(obj, callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-9.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-9.js index 24024487f4..38cd914432 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-9.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-9.js @@ -7,17 +7,18 @@ es5id: 15.4.4.18-1-9 description: Array.prototype.forEach applied to Function object ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = obj instanceof Function; - } +var result = false; - var obj = function (a, b) { - return a + b; - }; - obj[0] = 11; - obj[1] = 9; +function callbackfn(val, idx, obj) { + result = obj instanceof Function; +} - Array.prototype.forEach.call(obj, callbackfn); +var obj = function(a, b) { + return a + b; +}; +obj[0] = 11; +obj[1] = 9; + +Array.prototype.forEach.call(obj, callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-1.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-1.js index a8cacea2b3..f6d82711cd 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-1.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-1.js @@ -9,18 +9,19 @@ description: > Array-like object ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = (obj.length === 2); - } +var result = false; - var obj = { - 0: 12, - 1: 11, - 2: 9, - length: 2 - }; +function callbackfn(val, idx, obj) { + result = (obj.length === 2); +} - Array.prototype.forEach.call(obj, callbackfn); +var obj = { + 0: 12, + 1: 11, + 2: 9, + length: 2 +}; + +Array.prototype.forEach.call(obj, callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-10.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-10.js index b62dda53ca..a4b5e78bbe 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-10.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-10.js @@ -9,28 +9,29 @@ description: > an inherited accessor property ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = (obj.length === 2); - } +var result = false; - var proto = {}; +function callbackfn(val, idx, obj) { + result = (obj.length === 2); +} - Object.defineProperty(proto, "length", { - get: function () { - return 2; - }, - configurable: true - }); +var proto = {}; - var Con = function () { }; - Con.prototype = proto; +Object.defineProperty(proto, "length", { + get: function() { + return 2; + }, + configurable: true +}); - var child = new Con(); - child[0] = 12; - child[1] = 11; - child[2] = 9; +var Con = function() {}; +Con.prototype = proto; - Array.prototype.forEach.call(child, callbackfn); +var child = new Con(); +child[0] = 12; +child[1] = 11; +child[2] = 9; + +Array.prototype.forEach.call(child, callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-11.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-11.js index c28736d458..e9e36719e2 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-11.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-11.js @@ -9,20 +9,21 @@ description: > an own accessor property without a get function ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - } +var accessed = false; - var obj = { - 0: 11, - 1: 12 - }; - Object.defineProperty(obj, "length", { - set: function () { }, - configurable: true - }); +function callbackfn(val, idx, obj) { + accessed = true; +} - Array.prototype.forEach.call(obj, callbackfn); +var obj = { + 0: 11, + 1: 12 +}; +Object.defineProperty(obj, "length", { + set: function() {}, + configurable: true +}); + +Array.prototype.forEach.call(obj, callbackfn); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-12.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-12.js index c8649b3354..6bb1b8f12a 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-12.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-12.js @@ -10,24 +10,28 @@ description: > property on an Array ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - } +var accessed = false; - Object.defineProperty(Object.prototype, "length", { - get: function () { - return 2; - }, - configurable: true - }); +function callbackfn(val, idx, obj) { + accessed = true; +} - var obj = { 0: 12, 1: 11 }; - Object.defineProperty(obj, "length", { - set: function () { }, - configurable: true - }); +Object.defineProperty(Object.prototype, "length", { + get: function() { + return 2; + }, + configurable: true +}); - Array.prototype.forEach.call(obj, callbackfn); +var obj = { + 0: 12, + 1: 11 +}; +Object.defineProperty(obj, "length", { + set: function() {}, + configurable: true +}); + +Array.prototype.forEach.call(obj, callbackfn); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-13.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-13.js index 200cd401c4..9dac1f4a26 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 a78c2fbdc8..297cdf482c 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-14.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-14.js @@ -9,14 +9,17 @@ description: > 'length' property doesn't exist ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - } +function callbackfn(val, idx, obj) { + accessed = true; +} - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-17.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-17.js index 57e36efaa4..9f2cd87c73 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-17.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-17.js @@ -9,15 +9,16 @@ description: > implements its own property get method ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = (obj.length === 2); - } +var result = false; - var func = function (a, b) { - arguments[2] = 9; - Array.prototype.forEach.call(arguments, callbackfn); - return result; - }; +function callbackfn(val, idx, obj) { + result = (obj.length === 2); +} + +var func = function(a, b) { + arguments[2] = 9; + Array.prototype.forEach.call(arguments, callbackfn); + return result; +}; assert(func(12, 11), 'func(12, 11) !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-18.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-18.js index 8089c68368..717904329a 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-18.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-18.js @@ -9,13 +9,14 @@ description: > its own property get method ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = (obj.length === 3); - } +var result = false; - var str = new String("012"); +function callbackfn(val, idx, obj) { + result = (obj.length === 3); +} - Array.prototype.forEach.call(str, callbackfn); +var str = new String("012"); + +Array.prototype.forEach.call(str, callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-19.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-19.js index da202f1588..200ad5818c 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-19.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-19.js @@ -9,18 +9,19 @@ description: > implements its own property get method ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = (obj.length === 2); - } +var result = false; - var fun = function (a, b) { - return a + b; - }; - fun[0] = 12; - fun[1] = 11; - fun[2] = 9; +function callbackfn(val, idx, obj) { + result = (obj.length === 2); +} - Array.prototype.forEach.call(fun, callbackfn); +var fun = function(a, b) { + return a + b; +}; +fun[0] = 12; +fun[1] = 11; +fun[2] = 9; + +Array.prototype.forEach.call(fun, callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-2.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-2.js index 1f3da7255d..4f3c8f8c3b 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-2.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-2.js @@ -7,11 +7,12 @@ es5id: 15.4.4.18-2-2 description: Array.prototype.forEach - 'length' is own data property on an Array ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = (obj.length === 2); - } +var result = false; - [12, 11].forEach(callbackfn); +function callbackfn(val, idx, obj) { + result = (obj.length === 2); +} + +[12, 11].forEach(callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-3.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-3.js index 3a70a3fa13..05c761a4f4 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-3.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-3.js @@ -9,22 +9,25 @@ description: > overrides an inherited data property on an Array-like object ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = (obj.length === 2); - } +var result = false; - var proto = { length: 3 }; +function callbackfn(val, idx, obj) { + result = (obj.length === 2); +} - var Con = function () { }; - Con.prototype = proto; +var proto = { + length: 3 +}; - var child = new Con(); - child.length = 2; - child[0] = 12; - child[1] = 11; - child[2] = 9; +var Con = function() {}; +Con.prototype = proto; - Array.prototype.forEach.call(child, callbackfn); +var child = new Con(); +child.length = 2; +child[0] = 12; +child[1] = 11; +child[2] = 9; + +Array.prototype.forEach.call(child, callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-4.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-4.js index 4a5be14258..9d52243339 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-4.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-4.js @@ -9,14 +9,15 @@ description: > overrides an inherited data property on an Array ---*/ - var result = false; - var arrProtoLen; - function callbackfn(val, idx, obj) { - result = (obj.length === 2); - } +var result = false; +var arrProtoLen; - arrProtoLen = Array.prototype.length; - Array.prototype.length = 0; - [12, 11].forEach(callbackfn); +function callbackfn(val, idx, obj) { + result = (obj.length === 2); +} + +arrProtoLen = Array.prototype.length; +Array.prototype.length = 0; +[12, 11].forEach(callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-5.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-5.js index c261643e5a..21fd3b12c9 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-5.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-5.js @@ -9,32 +9,33 @@ description: > an own data property that overrides an inherited accessor property ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = (obj.length === 2); - } - - var proto = {}; - - Object.defineProperty(proto, "length", { - get: function () { - return 3; - }, - configurable: true - }); - - var Con = function () { }; - Con.prototype = proto; - - var child = new Con(); - Object.defineProperty(child, "length", { - value: 2, - configurable: true - }); - child[0] = 12; - child[1] = 11; - child[2] = 9; - - Array.prototype.forEach.call(child, callbackfn); +var result = false; + +function callbackfn(val, idx, obj) { + result = (obj.length === 2); +} + +var proto = {}; + +Object.defineProperty(proto, "length", { + get: function() { + return 3; + }, + configurable: true +}); + +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); +Object.defineProperty(child, "length", { + value: 2, + configurable: true +}); +child[0] = 12; +child[1] = 11; +child[2] = 9; + +Array.prototype.forEach.call(child, callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-6.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-6.js index e0ee2a2ed4..23627c89aa 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-6.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-6.js @@ -9,21 +9,24 @@ description: > an inherited data property ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = (obj.length === 2); - } +var result = false; - var proto = { length: 2 }; +function callbackfn(val, idx, obj) { + result = (obj.length === 2); +} - var Con = function () { }; - Con.prototype = proto; +var proto = { + length: 2 +}; - var child = new Con(); - child[0] = 12; - child[1] = 11; - child[2] = 9; +var Con = function() {}; +Con.prototype = proto; - Array.prototype.forEach.call(child, callbackfn); +var child = new Con(); +child[0] = 12; +child[1] = 11; +child[2] = 9; + +Array.prototype.forEach.call(child, callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-7.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-7.js index e1fc969f4a..2fb7ebdc3b 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-7.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-7.js @@ -9,24 +9,25 @@ description: > an own accessor property ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = (obj.length === 2); - } +var result = false; - var obj = {}; +function callbackfn(val, idx, obj) { + result = (obj.length === 2); +} - Object.defineProperty(obj, "length", { - get: function () { - return 2; - }, - configurable: true - }); +var obj = {}; - obj[0] = 12; - obj[1] = 11; - obj[2] = 9; +Object.defineProperty(obj, "length", { + get: function() { + return 2; + }, + configurable: true +}); - Array.prototype.forEach.call(obj, callbackfn); +obj[0] = 12; +obj[1] = 11; +obj[2] = 9; + +Array.prototype.forEach.call(obj, callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-8.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-8.js index e1da522823..ee2588cd25 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-8.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-8.js @@ -9,29 +9,32 @@ description: > an own accessor property that overrides an inherited data property ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = (obj.length === 2); - } +var result = false; - var proto = { length: 3 }; +function callbackfn(val, idx, obj) { + result = (obj.length === 2); +} - var Con = function () { }; - Con.prototype = proto; +var proto = { + length: 3 +}; - var child = new Con(); +var Con = function() {}; +Con.prototype = proto; - Object.defineProperty(child, "length", { - get: function () { - return 2; - }, - configurable: true - }); +var child = new Con(); - child[0] = 12; - child[1] = 11; - child[2] = 9; +Object.defineProperty(child, "length", { + get: function() { + return 2; + }, + configurable: true +}); - Array.prototype.forEach.call(child, callbackfn); +child[0] = 12; +child[1] = 11; +child[2] = 9; + +Array.prototype.forEach.call(child, callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-9.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-9.js index 0b8017b05a..98f6075958 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-9.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-9.js @@ -10,36 +10,37 @@ description: > property ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = (obj.length === 2); - } +var result = false; - var proto = {}; +function callbackfn(val, idx, obj) { + result = (obj.length === 2); +} - Object.defineProperty(proto, "length", { - get: function () { - return 3; - }, - configurable: true - }); +var proto = {}; - var Con = function () { }; - Con.prototype = proto; +Object.defineProperty(proto, "length", { + get: function() { + return 3; + }, + configurable: true +}); - var child = new Con(); +var Con = function() {}; +Con.prototype = proto; - Object.defineProperty(child, "length", { - get: function () { - return 2; - }, - configurable: true - }); +var child = new Con(); - child[0] = 12; - child[1] = 11; - child[2] = 9; +Object.defineProperty(child, "length", { + get: function() { + return 2; + }, + configurable: true +}); - Array.prototype.forEach.call(child, callbackfn); +child[0] = 12; +child[1] = 11; +child[2] = 9; + +Array.prototype.forEach.call(child, callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-1.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-1.js index 29126acb2b..61853f5cad 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-1.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-1.js @@ -7,14 +7,18 @@ es5id: 15.4.4.18-3-1 description: Array.prototype.forEach - value of 'length' is undefined ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - } +function callbackfn(val, idx, obj) { + accessed = true; +} - var obj = { 0: 0, 1: 1, length: undefined }; +var obj = { + 0: 0, + 1: 1, + length: undefined +}; - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-10.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-10.js index 1b5fdbcfc3..b82073f6a8 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-10.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-10.js @@ -9,14 +9,17 @@ description: > NaN) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - } +function callbackfn(val, idx, obj) { + accessed = true; +} - var obj = { 0: 9, length: NaN }; +var obj = { + 0: 9, + length: NaN +}; - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-11.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-11.js index 5244023de7..cc8e8892cf 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-11.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-11.js @@ -9,14 +9,18 @@ description: > positive number ---*/ - var testResult = false; +var testResult = false; - function callbackfn(val, idx, obj) { - testResult = (val > 10); - } +function callbackfn(val, idx, obj) { + testResult = (val > 10); +} - var obj = { 1: 11, 2: 9, length: "2" }; +var obj = { + 1: 11, + 2: 9, + length: "2" +}; - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-12.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-12.js index f50bbdc552..f08f896a2a 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-12.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-12.js @@ -9,14 +9,18 @@ description: > negative number ---*/ - var testResult = false; +var testResult = false; - function callbackfn(val, idx, obj) { - testResult = (val > 10); - } +function callbackfn(val, idx, obj) { + testResult = (val > 10); +} - var obj = { 1: 11, 2: 9, length: "-4294967294" }; +var obj = { + 1: 11, + 2: 9, + length: "-4294967294" +}; - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert.sameValue(testResult, false, 'testResult'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-13.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-13.js index 80e34f7168..a5816b0ce3 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-13.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-13.js @@ -9,13 +9,17 @@ description: > decimal number ---*/ - var testResult = false; +var testResult = false; - function callbackfn(val, idx, obj) { - testResult = (val > 10); - } - var obj = { 1: 11, 2: 9, length: "2.5" }; +function callbackfn(val, idx, obj) { + testResult = (val > 10); +} +var obj = { + 1: 11, + 2: 9, + length: "2.5" +}; - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-14.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-14.js index 482c69d42c..a3583896a2 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-14.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-14.js @@ -7,14 +7,17 @@ es5id: 15.4.4.18-3-14 description: Array.prototype.forEach - 'length' is a string containing -Infinity ---*/ - var accessed2 = false; +var accessed2 = false; - function callbackfn2(val, idx, obj) { - accessed2 = true; - } +function callbackfn2(val, idx, obj) { + accessed2 = true; +} - var obj2 = { 0: 9, length: "-Infinity" }; +var obj2 = { + 0: 9, + length: "-Infinity" +}; - Array.prototype.forEach.call(obj2, callbackfn2); +Array.prototype.forEach.call(obj2, callbackfn2); assert.sameValue(accessed2, false, 'accessed2'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-15.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-15.js index 09b71e3916..2fb4ad6e90 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-15.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-15.js @@ -9,14 +9,18 @@ description: > exponential number ---*/ - var testResult = false; +var testResult = false; - function callbackfn(val, idx, obj) { - testResult = (val > 10); - } +function callbackfn(val, idx, obj) { + testResult = (val > 10); +} - var obj = { 1: 11, 2: 9, length: "2E0" }; +var obj = { + 1: 11, + 2: 9, + length: "2E0" +}; - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-16.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-16.js index e6f77c16a7..4395836822 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-16.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-16.js @@ -9,14 +9,18 @@ description: > number ---*/ - var testResult = false; +var testResult = false; - function callbackfn(val, idx, obj) { - testResult = (val > 10); - } +function callbackfn(val, idx, obj) { + testResult = (val > 10); +} - var obj = { 1: 11, 2: 9, length: "0x0002" }; +var obj = { + 1: 11, + 2: 9, + length: "0x0002" +}; - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-17.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-17.js index e8ca4bd505..acf6a235dd 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-17.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-17.js @@ -9,14 +9,18 @@ description: > with leading zeros ---*/ - var testResult = false; +var testResult = false; - function callbackfn(val, idx, obj) { - testResult = (val > 10); - } +function callbackfn(val, idx, obj) { + testResult = (val > 10); +} - var obj = { 1: 11, 2: 9, length: "0002.00" }; +var obj = { + 1: 11, + 2: 9, + length: "0002.00" +}; - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-18.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-18.js index 7b47f80baf..070a95aa45 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-18.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-18.js @@ -9,14 +9,17 @@ description: > convert to a number ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - } +function callbackfn(val, idx, obj) { + accessed = true; +} - var obj = { 0: 9, length: "asdf!_" }; +var obj = { + 0: 9, + length: "asdf!_" +}; - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-19.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-19.js index 953f8ef8b7..1c162f9f26 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 03e951271e..5dfb9e7827 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-2.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-2.js @@ -9,13 +9,18 @@ description: > true) ---*/ - var testResult = false; - function callbackfn(val, idx, obj) { - testResult = (val > 10); - } +var testResult = false; - var obj = { 0: 11, 1: 9, length: true }; +function callbackfn(val, idx, obj) { + testResult = (val > 10); +} - Array.prototype.forEach.call(obj, callbackfn); +var obj = { + 0: 11, + 1: 9, + length: true +}; + +Array.prototype.forEach.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-20.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-20.js index 6a1fed4790..64304dc3fa 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 e2be7cdb69..94681a1400 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 6298b50ef1..1dada06504 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 cf7cb7b30d..d8cc31d6cc 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 770f80e021..fb2da44e17 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 e855f28d66..c9e1809c7b 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 a98ea61768..467960654c 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-3.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-3.js @@ -9,14 +9,18 @@ description: > 0) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - } +function callbackfn(val, idx, obj) { + accessed = true; +} - var obj = { 0: 1, 1: 1, length: 0 }; +var obj = { + 0: 1, + 1: 1, + length: 0 +}; - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-4.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-4.js index dc457c42a6..1ac3e8c0b5 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-4.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-4.js @@ -9,14 +9,17 @@ description: > +0) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - } +function callbackfn(val, idx, obj) { + accessed = true; +} - var obj = { 0: 11, length: +0 }; +var obj = { + 0: 11, + length: +0 +}; - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-5.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-5.js index 50348c00a6..d8caecc2e6 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-5.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-5.js @@ -9,14 +9,17 @@ description: > -0) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - } +function callbackfn(val, idx, obj) { + accessed = true; +} - var obj = { 0: 11, length: -0 }; +var obj = { + 0: 11, + length: -0 +}; - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-6.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-6.js index 41701e6e57..1197b48160 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-6.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-6.js @@ -9,14 +9,18 @@ description: > positive) ---*/ - var testResult1 = false; +var testResult1 = false; - function callbackfn(val, idx, obj) { - testResult1 = (val > 10); - } +function callbackfn(val, idx, obj) { + testResult1 = (val > 10); +} - var obj = { 1: 11, 2: 9, length: 2 }; +var obj = { + 1: 11, + 2: 9, + length: 2 +}; - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert(testResult1, 'testResult1 !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-7.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-7.js index 05ffaedf48..f3b859b9b0 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-7.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-7.js @@ -9,14 +9,18 @@ description: > negative) ---*/ - var testResult1 = false; +var testResult1 = false; - function callbackfn(val, idx, obj) { - testResult1 = (val > 10); - } +function callbackfn(val, idx, obj) { + testResult1 = (val > 10); +} - var obj = { 1: 11, 2: 9, length: -4294967294 }; +var obj = { + 1: 11, + 2: 9, + length: -4294967294 +}; - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert.sameValue(testResult1, false, 'testResult1'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-9.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-9.js index 300fd705dd..3d3468809e 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-9.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-9.js @@ -9,14 +9,17 @@ description: > -Infinity) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - } +function callbackfn(val, idx, obj) { + accessed = true; +} - var obj = { 0: 9, length: -Infinity }; +var obj = { + 0: 9, + length: -Infinity +}; - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-1.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-1.js index 0c1e6e517c..81f4d15b65 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 d9ef1c8081..0dad22c77c 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-10.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-10.js @@ -9,15 +9,18 @@ description: > was thrown by step 2 ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - Object.defineProperty(obj, "length", { - get: function () { - throw new Test262Error(); - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + throw new Test262Error(); + }, + configurable: true +}); assert.throws(Test262Error, function() { - Array.prototype.forEach.call(obj, undefined); + Array.prototype.forEach.call(obj, undefined); }); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-11.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-11.js index 2ae6d34613..0a9bca0128 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-11.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-11.js @@ -9,19 +9,22 @@ description: > was thrown by step 3 ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - Object.defineProperty(obj, "length", { - get: function () { - return { - toString: function () { - throw new Test262Error(); - } - }; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + return { + toString: function() { + throw new Test262Error(); + } + }; + }, + configurable: true +}); assert.throws(Test262Error, function() { - Array.prototype.forEach.call(obj, undefined); + Array.prototype.forEach.call(obj, undefined); }); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-12.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-12.js index 69581f68ec..8bc18df1e5 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-12.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-12.js @@ -7,11 +7,12 @@ es5id: 15.4.4.18-4-12 description: Array.prototype.forEach - 'callbackfn' is a function ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - } +var accessed = false; - [11, 9].forEach(callbackfn); +function callbackfn(val, idx, obj) { + accessed = true; +} + +[11, 9].forEach(callbackfn); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-15.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-15.js index 1d94ede8a9..09b8a247d7 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-15.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-15.js @@ -9,27 +9,29 @@ description: > as passing undefined for callbackfn ---*/ - var obj = { 10: 10 }; - var lengthAccessed = false; - var loopAccessed = false; +var obj = { + 10: 10 +}; +var lengthAccessed = false; +var loopAccessed = false; - Object.defineProperty(obj, "length", { - get: function () { - lengthAccessed = true; - return 20; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + lengthAccessed = true; + return 20; + }, + configurable: true +}); - Object.defineProperty(obj, "0", { - get: function () { - loopAccessed = true; - return 10; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + loopAccessed = true; + return 10; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.forEach.call(obj); + Array.prototype.forEach.call(obj); }); assert(lengthAccessed, 'lengthAccessed !== true'); assert.sameValue(loopAccessed, false, 'loopAccessed'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-2.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-2.js index b3f465b797..a26b2ea39f 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 b048870333..81934e7ea4 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 b9a1d89526..399cdbf5b4 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 1ffe8b0946..866d6fddaf 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 146bb7df2d..4cf36be987 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 93d142b9b6..3379dbe02e 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 9ea17000ac..09f9862fef 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-8.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-8.js @@ -9,18 +9,21 @@ description: > visible when an exception occurs ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - var accessed = false; +var accessed = false; - Object.defineProperty(obj, "length", { - get: function () { - accessed = true; - return 2; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + accessed = true; + return 2; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.forEach.call(obj, null); + Array.prototype.forEach.call(obj, null); }); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-9.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-9.js index 8600794ddf..75b0065b32 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-9.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-9.js @@ -9,22 +9,25 @@ description: > visible when an exception occurs ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - var accessed = false; +var accessed = false; - Object.defineProperty(obj, "length", { - get: function () { - return { - toString: function () { - accessed = true; - return "2"; - } - }; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + return { + toString: function() { + accessed = true; + return "2"; + } + }; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.forEach.call(obj, null); + Array.prototype.forEach.call(obj, null); }); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-1-s.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-1-s.js index 540b38d09d..c4b4c0df4c 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 ae937bd6ec..6dd49f78f1 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-1.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-1.js @@ -9,14 +9,15 @@ flags: [noStrict] ---*/ (function() { - this._15_4_4_18_5_1 = false; - var _15_4_4_18_5_1 = true; - var result; - function callbackfn(val, idx, obj) { - result = this._15_4_4_18_5_1; - } - var arr = [1]; - arr.forEach(callbackfn) + this._15_4_4_18_5_1 = false; + var _15_4_4_18_5_1 = true; + var result; -assert.sameValue(result, false, 'result'); + function callbackfn(val, idx, obj) { + result = this._15_4_4_18_5_1; + } + var arr = [1]; + arr.forEach(callbackfn) + + assert.sameValue(result, false, 'result'); })(); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-10.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-10.js index 914cfafaeb..771626914a 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 0f0e203b37..9975fe11c9 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 76e1b95671..4aa627ea0c 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 7657769762..0ca2d8c48e 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 9033553789..8c1b7fcd53 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-14.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-14.js @@ -7,11 +7,12 @@ es5id: 15.4.4.18-5-14 description: Array.prototype.forEach - the Math object can be used as thisArg ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = (this === Math); - } +var result = false; - [11].forEach(callbackfn, Math); +function callbackfn(val, idx, obj) { + result = (this === Math); +} + +[11].forEach(callbackfn, Math); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-15.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-15.js index d4154fead7..8835b6bdcf 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 67f48ac06d..a0f3cb83dd 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 5d9ec5130c..2aea48e64e 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-17.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-17.js @@ -7,11 +7,12 @@ es5id: 15.4.4.18-5-17 description: Array.prototype.forEach - the JSON object can be used as thisArg ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = (this === JSON); - } +var result = false; - [11].forEach(callbackfn, JSON); +function callbackfn(val, idx, obj) { + result = (this === JSON); +} + +[11].forEach(callbackfn, JSON); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-18.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-18.js index 237bd7b389..84480af75f 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 0ffb3591d0..cf428f4401 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 194c4ed484..7c62ee13dd 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-2.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-2.js @@ -7,16 +7,17 @@ es5id: 15.4.4.18-5-2 description: Array.prototype.forEach - thisArg is Object ---*/ - var res = false; - var o = new Object(); - o.res = true; - var result; - function callbackfn(val, idx, obj) - { - result = this.res; - } +var res = false; +var o = new Object(); +o.res = true; +var result; - var arr = [1]; - arr.forEach(callbackfn,o) +function callbackfn(val, idx, obj) +{ + result = this.res; +} + +var arr = [1]; +arr.forEach(callbackfn, o) assert.sameValue(result, true, 'result'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-21.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-21.js index 3a3e5c9626..19b8de2faa 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-21.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-21.js @@ -8,11 +8,12 @@ description: Array.prototype.forEach - the global object can be used as thisArg ---*/ var global = this; - var result = false; - function callbackfn(val, idx, obj) { - result = (this === global); - } +var result = false; - [11].forEach(callbackfn, this); +function callbackfn(val, idx, obj) { + result = (this === global); +} + +[11].forEach(callbackfn, this); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-22.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-22.js index ae22b88b03..22fe09f8ee 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 5fc0674f06..c74f302aa7 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-23.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-23.js @@ -7,11 +7,12 @@ es5id: 15.4.4.18-5-23 description: Array.prototype.forEach - number primitive can be used as thisArg ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = (this.valueOf() === 101); - } +var result = false; - [11].forEach(callbackfn, 101); +function callbackfn(val, idx, obj) { + result = (this.valueOf() === 101); +} + +[11].forEach(callbackfn, 101); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-24.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-24.js index 6b774576bc..fc1c4fa6f9 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-24.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-24.js @@ -7,11 +7,12 @@ es5id: 15.4.4.18-5-24 description: Array.prototype.forEach - string primitive can be used as thisArg ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = (this.valueOf() === "abc"); - } +var result = false; - [11].forEach(callbackfn, "abc"); +function callbackfn(val, idx, obj) { + result = (this.valueOf() === "abc"); +} + +[11].forEach(callbackfn, "abc"); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-25.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-25.js index f32dd6f810..af345a9188 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-25.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-25.js @@ -8,16 +8,17 @@ description: Array.prototype.forEach - thisArg not passed flags: [noStrict] ---*/ - function innerObj() { - this._15_4_4_18_5_25 = true; - var _15_4_4_18_5_25 = false; - var result; - function callbackfn(val, idx, obj) { - result = this._15_4_4_18_5_25; - } - var arr = [1]; - arr.forEach(callbackfn) - this.retVal = !result; - } +function innerObj() { + this._15_4_4_18_5_25 = true; + var _15_4_4_18_5_25 = false; + var result; + + function callbackfn(val, idx, obj) { + result = this._15_4_4_18_5_25; + } + var arr = [1]; + arr.forEach(callbackfn) + this.retVal = !result; +} assert(new innerObj().retVal, 'new innerObj().retVal !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-3.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-3.js index 7ce819a4fc..738c6624f9 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-3.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-3.js @@ -7,16 +7,17 @@ es5id: 15.4.4.18-5-3 description: Array.prototype.forEach - thisArg is Array ---*/ - var res = false; - var a = new Array(); - a.res = true; - var result; - function callbackfn(val, idx, obj) - { - result = this.res; - } +var res = false; +var a = new Array(); +a.res = true; +var result; - var arr = [1]; - arr.forEach(callbackfn,a) +function callbackfn(val, idx, obj) +{ + result = this.res; +} + +var arr = [1]; +arr.forEach(callbackfn, a) assert.sameValue(result, true, 'result'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-4.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-4.js index 211bafd486..6a88eded2e 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-4.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-4.js @@ -9,17 +9,18 @@ description: > template(prototype) ---*/ - var res = false; - var result; - function callbackfn(val, idx, obj) - { - result = this.res; - } +var res = false; +var result; - function foo(){} - foo.prototype.res = true; - var f = new foo(); - var arr = [1]; - arr.forEach(callbackfn,f) +function callbackfn(val, idx, obj) +{ + result = this.res; +} + +function foo() {} +foo.prototype.res = true; +var f = new foo(); +var arr = [1]; +arr.forEach(callbackfn, f) assert.sameValue(result, true, 'result'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-5.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-5.js index 3f3d7ba8cc..eedf65b799 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-5.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-5.js @@ -7,18 +7,19 @@ es5id: 15.4.4.18-5-5 description: Array.prototype.forEach - thisArg is object from object template ---*/ - var res = false; - var result; - function callbackfn(val, idx, obj) - { - result = this.res; - } +var res = false; +var result; - function foo(){} - var f = new foo(); - f.res = true; +function callbackfn(val, idx, obj) +{ + result = this.res; +} - var arr = [1]; - arr.forEach(callbackfn,f) +function foo() {} +var f = new foo(); +f.res = true; + +var arr = [1]; +arr.forEach(callbackfn, f) assert.sameValue(result, true, 'result'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-6.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-6.js index bcbb7bb55c..00e62309be 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-6.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-6.js @@ -7,17 +7,18 @@ es5id: 15.4.4.18-5-6 description: Array.prototype.forEach - thisArg is function ---*/ - var res = false; - var result; - function callbackfn(val, idx, obj) - { - result = this.res; - } +var res = false; +var result; - function foo(){} - foo.res = true; +function callbackfn(val, idx, obj) +{ + result = this.res; +} - var arr = [1]; - arr.forEach(callbackfn,foo) +function foo() {} +foo.res = true; + +var arr = [1]; +arr.forEach(callbackfn, foo) assert.sameValue(result, true, 'result'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-7.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-7.js index d755040278..c5db1a536b 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 81097bd2f0..9dede756a3 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 304a956838..0ee2556d65 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-1.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-1.js @@ -9,15 +9,16 @@ description: > array after the call ---*/ - var callCnt = 0; - function callbackfn(val, idx, obj) - { - callCnt++; - arr[2] = 3; - arr[5] = 6; - } +var callCnt = 0; - var arr = [1,2,,4,5]; - arr.forEach(callbackfn); +function callbackfn(val, idx, obj) +{ + callCnt++; + arr[2] = 3; + arr[5] = 6; +} + +var arr = [1, 2, , 4, 5]; +arr.forEach(callbackfn); assert.sameValue(callCnt, 5, 'callCnt'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-2.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-2.js index 427fee6c85..240795f062 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-2.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-2.js @@ -9,15 +9,16 @@ description: > after the call ---*/ - var callCnt = 0; - function callbackfn(val, idx, obj) - { - if(callCnt == 0) - delete arr[3]; - callCnt++; - } +var callCnt = 0; - var arr = [1,2,3,4,5]; - arr.forEach(callbackfn) +function callbackfn(val, idx, obj) +{ + if (callCnt == 0) + delete arr[3]; + callCnt++; +} + +var arr = [1, 2, 3, 4, 5]; +arr.forEach(callbackfn) assert.sameValue(callCnt, 4, 'callCnt'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-3.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-3.js index c45a36fc08..d81ed613fe 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-3.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-3.js @@ -9,14 +9,15 @@ description: > Array.length is decreased ---*/ - var callCnt = 0; - function callbackfn(val, idx, obj) - { - arr.length=3; - callCnt++; - } +var callCnt = 0; - var arr = [1,2,3,4,5]; - arr.forEach(callbackfn); +function callbackfn(val, idx, obj) +{ + arr.length = 3; + callCnt++; +} + +var arr = [1, 2, 3, 4, 5]; +arr.forEach(callbackfn); assert.sameValue(callCnt, 3, 'callCnt'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-4.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-4.js index c178ead682..96180c3ab7 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-4.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-4.js @@ -9,16 +9,17 @@ description: > sparse array ---*/ - var callCnt = 0; - function callbackfn(val, idx, obj) - { - arr[1000] = 3; - callCnt++; - } +var callCnt = 0; - var arr = new Array(10); - arr[1] = 1; - arr[2] = 2; - arr.forEach(callbackfn); +function callbackfn(val, idx, obj) +{ + arr[1000] = 3; + callCnt++; +} + +var arr = new Array(10); +arr[1] = 1; +arr[2] = 2; +arr.forEach(callbackfn); assert.sameValue(callCnt, 2, 'callCnt'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-5.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-5.js index 71a7d7b939..9c56fa65cf 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-5.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-5.js @@ -9,17 +9,18 @@ description: > call when same index is also present in prototype ---*/ - var callCnt = 0; - function callbackfn(val, idx, obj) - { - delete arr[4]; - callCnt++; - } +var callCnt = 0; - Array.prototype[4] = 5; +function callbackfn(val, idx, obj) +{ + delete arr[4]; + callCnt++; +} - var arr = [1,2,3,4,5]; - arr.forEach(callbackfn) - delete Array.prototype[4]; +Array.prototype[4] = 5; + +var arr = [1, 2, 3, 4, 5]; +arr.forEach(callbackfn) +delete Array.prototype[4]; assert.sameValue(callCnt, 5, 'callCnt'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-7.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-7.js index ba09941540..eb8ad48c67 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 df0a1c9bc0..8a2065833a 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-8.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-8.js @@ -7,14 +7,18 @@ es5id: 15.4.4.18-7-8 description: Array.prototype.forEach - no observable effects occur if len is 0 ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - } +function callbackfn(val, idx, obj) { + accessed = true; +} - var obj = { 0: 11, 1: 12, length: 0 }; +var obj = { + 0: 11, + 1: 12, + length: 0 +}; - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-9.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-9.js index 1c9ab10377..361e225285 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-9.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-9.js @@ -9,21 +9,26 @@ description: > number of iterations ---*/ - var called = 0; - function callbackfn(val, idx, obj) { - called++; - } +var called = 0; - var obj = { 1: 12, 2: 9, length: 2 }; +function callbackfn(val, idx, obj) { + called++; +} - Object.defineProperty(obj, "0", { - get: function () { - obj.length = 3; - return 11; - }, - configurable: true - }); +var obj = { + 1: 12, + 2: 9, + length: 2 +}; - Array.prototype.forEach.call(obj, callbackfn); +Object.defineProperty(obj, "0", { + get: function() { + obj.length = 3; + return 11; + }, + configurable: true +}); + +Array.prototype.forEach.call(obj, callbackfn); assert.sameValue(called, 2, 'called'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-1.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-1.js index 6470906371..ad7133ffb3 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-1.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-1.js @@ -9,14 +9,15 @@ description: > been assigned values ---*/ - var callCnt = 0; - function callbackfn(val, idx, obj) - { - callCnt++; - } +var callCnt = 0; - var arr = new Array(10); - arr[1] = undefined; - arr.forEach(callbackfn); +function callbackfn(val, idx, obj) +{ + callCnt++; +} + +var arr = new Array(10); +arr[1] = undefined; +arr.forEach(callbackfn); assert.sameValue(callCnt, 1, 'callCnt'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-10.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-10.js index 716fc69ff5..b3e6e5cc3d 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-10.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-10.js @@ -9,28 +9,31 @@ description: > prototype index property not to be visited on an Array-like Object ---*/ - var accessed = false; - var testResult = true; +var accessed = false; +var testResult = true; - function callbackfn(val, idx, obj) { - accessed = true; - if (idx === 3) { - testResult = false; - } - } +function callbackfn(val, idx, obj) { + accessed = true; + if (idx === 3) { + testResult = false; + } +} - var obj = { 2: 2, length: 20 }; +var obj = { + 2: 2, + length: 20 +}; - Object.defineProperty(obj, "0", { - get: function () { - delete Object.prototype[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + delete Object.prototype[1]; + return 0; + }, + configurable: true +}); - Object.prototype[1] = 1; - Array.prototype.forEach.call(obj, callbackfn); +Object.prototype[1] = 1; +Array.prototype.forEach.call(obj, callbackfn); assert(testResult, 'testResult !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-11.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-11.js index e505e3d4dc..5c7ee84f70 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 a9350d2996..a7de152f11 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-12.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-12.js @@ -10,25 +10,29 @@ description: > Array-like object ---*/ - var testResult = false; +var testResult = false; - function callbackfn(val, idx, obj) { - if (idx === 1 && val === 1) { - testResult = true; - } - } +function callbackfn(val, idx, obj) { + if (idx === 1 && val === 1) { + testResult = true; + } +} - var obj = { 0: 0, 1: 111, length: 10 }; +var obj = { + 0: 0, + 1: 111, + length: 10 +}; - Object.defineProperty(obj, "0", { - get: function () { - delete obj[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + delete obj[1]; + return 0; + }, + configurable: true +}); - Object.prototype[1] = 1; - Array.prototype.forEach.call(obj, callbackfn); +Object.prototype[1] = 1; +Array.prototype.forEach.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-13.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-13.js index b0b704f1a9..ecc5607a50 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 8106ac8ed8..8a09839a58 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 57a7cb646b..d92cf600a5 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 c337ed6a78..864b5aac6d 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 4d1ba1c19e..abc78638b8 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 71abd46a0f..d949efd186 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-3.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-3.js @@ -9,26 +9,29 @@ description: > here ---*/ - var accessed = false; - var testResult = true; +var accessed = false; +var testResult = true; - function callbackfn(val, idx, obj) { - accessed = true; - if (idx === 8) { - testResult = false; - } - } - var obj = { 2: 6.99, 8: 19 }; +function callbackfn(val, idx, obj) { + accessed = true; + if (idx === 8) { + testResult = false; + } +} +var obj = { + 2: 6.99, + 8: 19 +}; - Object.defineProperty(obj, "length", { - get: function () { - delete obj[8]; - return 10; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + delete obj[8]; + return 10; + }, + configurable: true +}); - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert(testResult, 'testResult !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-4.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-4.js index d9315e91df..af22a02196 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-4.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-4.js @@ -9,29 +9,31 @@ description: > current position are visited on an Array-like object ---*/ - var testResult = false; +var testResult = false; - function callbackfn(val, idx, obj) { - if (idx === 1 && val === 1) { - testResult = true; - } - } +function callbackfn(val, idx, obj) { + if (idx === 1 && val === 1) { + testResult = true; + } +} - var obj = { length: 2 }; +var obj = { + length: 2 +}; - Object.defineProperty(obj, "0", { - get: function () { - Object.defineProperty(obj, "1", { - get: function () { - return 1; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + Object.defineProperty(obj, "1", { + get: function() { + return 1; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-5.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-5.js index 0afda4bd38..fda33ef758 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 a26a16afee..8e5262582f 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-6.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-6.js @@ -9,29 +9,31 @@ description: > after current position are visited on an Array-like object ---*/ - var testResult = false; +var testResult = false; - function callbackfn(val, idx, obj) { - if (idx === 1 && val === 6.99) { - testResult = true; - } - } +function callbackfn(val, idx, obj) { + if (idx === 1 && val === 6.99) { + testResult = true; + } +} - var obj = { length: 2 }; +var obj = { + length: 2 +}; - Object.defineProperty(obj, "0", { - get: function () { - Object.defineProperty(Object.prototype, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + Object.defineProperty(Object.prototype, "1", { + get: function() { + return 6.99; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-7.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-7.js index 48619ba101..11d9bd6ecf 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 d850238c62..0e7f8c3084 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-8.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-8.js @@ -9,34 +9,36 @@ description: > property not to be visited on an Array-like object ---*/ - var accessed = false; - var testResult = true; - - function callbackfn(val, idx, obj) { - accessed = true; - if (idx === 1) { - testResult = false; - } - } - - var obj = { length: 2 }; - - Object.defineProperty(obj, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); - - Object.defineProperty(obj, "0", { - get: function () { - delete obj[1]; - return 0; - }, - configurable: true - }); - - Array.prototype.forEach.call(obj, callbackfn); +var accessed = false; +var testResult = true; + +function callbackfn(val, idx, obj) { + accessed = true; + if (idx === 1) { + testResult = false; + } +} + +var obj = { + length: 2 +}; + +Object.defineProperty(obj, "1", { + get: function() { + return 6.99; + }, + configurable: true +}); + +Object.defineProperty(obj, "0", { + get: function() { + delete obj[1]; + return 0; + }, + configurable: true +}); + +Array.prototype.forEach.call(obj, callbackfn); assert(testResult, 'testResult !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-9.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-9.js index b9fda4c355..aa579d22b9 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 8983f724e3..4261196fb7 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-1.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-1.js @@ -9,17 +9,20 @@ description: > property on an Array-like object ---*/ - var kValue = { }; - var testResult = false; +var kValue = {}; +var testResult = false; - function callbackfn(val, idx, obj) { - if (idx === 5) { - testResult = (val === kValue); - } - } +function callbackfn(val, idx, obj) { + if (idx === 5) { + testResult = (val === kValue); + } +} - var obj = { 5: kValue, length: 100 }; +var obj = { + 5: kValue, + length: 100 +}; - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-10.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-10.js index 4b6a3b8aa1..1411c10bd4 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 d886a548f3..b313ad7c6a 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-11.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-11.js @@ -10,29 +10,31 @@ description: > Array-like object ---*/ - var testResult = false; +var testResult = false; - function callbackfn(val, idx, obj) { - if (idx === 0) { - testResult = (val === 11); - } - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + testResult = (val === 11); + } +} - var proto = { 0: 5 }; +var proto = { + 0: 5 +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child.length = 10; +var child = new Con(); +child.length = 10; - Object.defineProperty(child, "0", { - get: function () { - return 11; - }, - configurable: true - }); +Object.defineProperty(child, "0", { + get: function() { + return 11; + }, + configurable: true +}); - Array.prototype.forEach.call(child, callbackfn); +Array.prototype.forEach.call(child, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-12.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-12.js index 8c97ccda43..493e9632c4 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 5b5966bd86..c3d66f5f4b 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 8222ec722b..e87ed433ee 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 4782e16db3..5eebc81eab 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 5abba48e7c..bf0c514cc6 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 a3258cbd51..c63d80321c 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-17.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-17.js @@ -9,20 +9,22 @@ description: > property without a get function on an Array-like object ---*/ - var testResult = false; +var testResult = false; - function callbackfn(val, idx, obj) { - if (idx === 1) { - testResult = (typeof val === "undefined"); - } - } +function callbackfn(val, idx, obj) { + if (idx === 1) { + testResult = (typeof val === "undefined"); + } +} - var obj = { length: 2 }; - Object.defineProperty(obj, "1", { - set: function () { }, - configurable: true - }); +var obj = { + length: 2 +}; +Object.defineProperty(obj, "1", { + set: function() {}, + configurable: true +}); - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-18.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-18.js index a6a8df0775..ae7114850f 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 12b0e0f29b..2c1a00be6b 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-19.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-19.js @@ -10,28 +10,30 @@ description: > accessor property on an Array-like object ---*/ - var testResult = false; - - function callbackfn(val, idx, obj) { - if (idx === 1) { - testResult = (typeof val === "undefined"); - } - } - - var obj = { length: 2 }; - - Object.defineProperty(obj, "1", { - set: function () { }, - configurable: true - }); - - Object.defineProperty(Object.prototype, "1", { - get: function () { - return 10; - }, - configurable: true - }); - - Array.prototype.forEach.call(obj, callbackfn); +var testResult = false; + +function callbackfn(val, idx, obj) { + if (idx === 1) { + testResult = (typeof val === "undefined"); + } +} + +var obj = { + length: 2 +}; + +Object.defineProperty(obj, "1", { + set: function() {}, + configurable: true +}); + +Object.defineProperty(Object.prototype, "1", { + get: function() { + return 10; + }, + configurable: true +}); + +Array.prototype.forEach.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-2.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-2.js index 03ba5f4a12..c5c0e59429 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 6bd5c5402a..3d12eb6681 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 d952c57dc0..a185cb0a02 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 baf2b2bcfe..c3ccfca7b9 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 51930b840f..7f192e129b 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 51aefae34c..22775361f3 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 21734ecca0..8ae05bc5ac 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 7bf8287190..ca2a6f9021 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 9d9da525ad..12f468ac7f 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-29.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-29.js @@ -9,35 +9,37 @@ description: > iterations is observed on an Array-like object ---*/ - var preIterVisible = false; - var obj = { length: 2 }; - var testResult = false; +var preIterVisible = false; +var obj = { + length: 2 +}; +var testResult = false; - function callbackfn(val, idx, obj) { - if (idx === 1) { - testResult = (val === 9); - } - } +function callbackfn(val, idx, obj) { + if (idx === 1) { + testResult = (val === 9); + } +} - Object.defineProperty(obj, "0", { - get: function () { - preIterVisible = true; - return 11; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + preIterVisible = true; + return 11; + }, + configurable: true +}); - Object.defineProperty(obj, "1", { - get: function () { - if (preIterVisible) { - return 9; - } else { - return 13; - } - }, - configurable: true - }); +Object.defineProperty(obj, "1", { + get: function() { + if (preIterVisible) { + return 9; + } else { + return 13; + } + }, + configurable: true +}); - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-3.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-3.js index c7abc31d73..7ee64853f1 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-3.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-3.js @@ -9,24 +9,26 @@ description: > property that overrides an inherited data property on an Array ---*/ - var kValue = "abc"; - var testResult = false; +var kValue = "abc"; +var testResult = false; - function callbackfn(val, idx, obj) { - if (idx === 5) { - testResult = (val === kValue); - } - } +function callbackfn(val, idx, obj) { + if (idx === 5) { + testResult = (val === kValue); + } +} - var proto = { 5: 100 }; +var proto = { + 5: 100 +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child[5] = kValue; - child.length = 10; +var child = new Con(); +child[5] = kValue; +child.length = 10; - Array.prototype.forEach.call(child, callbackfn); +Array.prototype.forEach.call(child, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-30.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-30.js index 0787f9b955..2ded257f9f 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-30.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-30.js @@ -9,30 +9,35 @@ description: > terminate iteration on an Array-like object ---*/ - var obj = { 0: 11, 5: 10, 10: 8, length: 20 }; - var accessed = false; +var obj = { + 0: 11, + 5: 10, + 10: 8, + length: 20 +}; +var accessed = false; - function callbackfn(val, idx, obj) { - if (idx > 1) { - accessed = true; - } - } +function callbackfn(val, idx, obj) { + if (idx > 1) { + accessed = true; + } +} - Object.defineProperty(obj, "1", { - get: function () { - throw new RangeError("unhandle exception happened in getter"); - }, - configurable: true - }); +Object.defineProperty(obj, "1", { + get: function() { + throw new RangeError("unhandle exception happened in getter"); + }, + configurable: true +}); - Object.defineProperty(obj, "2", { - get: function () { - accessed = true; - return 100; - }, - configurable: true - }); +Object.defineProperty(obj, "2", { + get: function() { + accessed = true; + return 100; + }, + configurable: true +}); assert.throws(RangeError, function() { - Array.prototype.forEach.call(obj, callbackfn); + Array.prototype.forEach.call(obj, callbackfn); }); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-31.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-31.js index e8da569a8e..b6745f6d10 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 ed8fffe015..3aa9c45737 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 4ddef569ae..0cba853753 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 691feab76b..213de16bd8 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 75d5890f86..28f747e836 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-7.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-7.js @@ -9,23 +9,25 @@ description: > data property on an Array-like object ---*/ - var kValue = 'abc'; - var testResult = false; +var kValue = 'abc'; +var testResult = false; - function callbackfn(val, idx, obj) { - if (idx === 5) { - testResult = (val === kValue); - } - } +function callbackfn(val, idx, obj) { + if (idx === 5) { + testResult = (val === kValue); + } +} - var proto = { 5: kValue }; +var proto = { + 5: kValue +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child.length = 10; +var child = new Con(); +child.length = 10; - Array.prototype.forEach.call(child, callbackfn); +Array.prototype.forEach.call(child, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-8.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-8.js index 8943de8186..9ede560ba4 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 d2fc330af9..51c77ca23e 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-9.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-9.js @@ -9,23 +9,26 @@ description: > property on an Array-like object ---*/ - var testResult = false; +var testResult = false; - function callbackfn(val, idx, obj) { - if (idx === 0) { - testResult = (val === 11); - } - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + testResult = (val === 11); + } +} - var obj = { 10: 10, length: 20 }; +var obj = { + 10: 10, + length: 20 +}; - Object.defineProperty(obj, "0", { - get: function () { - return 11; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + return 11; + }, + configurable: true +}); - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-1.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-1.js index 189dc1a57f..e0eb478299 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-1.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-1.js @@ -7,18 +7,19 @@ es5id: 15.4.4.18-7-c-ii-1 description: Array.prototype.forEach - callbackfn called with correct parameters ---*/ - var bPar = true; - var bCalled = false; - function callbackfn(val, idx, obj) - { - bCalled = true; - if(obj[idx] !== val) - bPar = false; - } +var bPar = true; +var bCalled = false; - var arr = [0,1,true,null,new Object(),"five"]; - arr[999999] = -6.6; - arr.forEach(callbackfn); +function callbackfn(val, idx, obj) +{ + bCalled = true; + if (obj[idx] !== val) + bPar = false; +} + +var arr = [0, 1, true, null, new Object(), "five"]; +arr[999999] = -6.6; +arr.forEach(callbackfn); assert.sameValue(bCalled, true, 'bCalled'); assert.sameValue(bPar, true, 'bPar'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-10.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-10.js index 4e44bb713b..1f6e4baa39 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-10.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-10.js @@ -9,11 +9,12 @@ description: > parameter ---*/ - var result = false; - function callbackfn(val) { - result = (val > 10); - } +var result = false; - [11].forEach(callbackfn); +function callbackfn(val) { + result = (val > 10); +} + +[11].forEach(callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-11.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-11.js index f0a81a8718..a2991bb19c 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-11.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-11.js @@ -9,11 +9,12 @@ description: > parameter ---*/ - var result = false; - function callbackfn(val, idx) { - result = (val > 10 && arguments[2][idx] === val); - } +var result = false; - [11].forEach(callbackfn); +function callbackfn(val, idx) { + result = (val > 10 && arguments[2][idx] === val); +} + +[11].forEach(callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-12.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-12.js index af31ca180b..667bec2276 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-12.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-12.js @@ -9,11 +9,12 @@ description: > parameter ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = (val > 10 && obj[idx] === val); - } +var result = false; - [11].forEach(callbackfn); +function callbackfn(val, idx, obj) { + result = (val > 10 && obj[idx] === val); +} + +[11].forEach(callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-13.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-13.js index 80df8a4195..46a0ec317f 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-13.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-13.js @@ -7,11 +7,12 @@ es5id: 15.4.4.18-7-c-ii-13 description: Array.prototype.forEach - callbackfn that uses arguments ---*/ - var result = false; - function callbackfn() { - result = (arguments[2][arguments[1]] === arguments[0]); - } +var result = false; - [11].forEach(callbackfn); +function callbackfn() { + result = (arguments[2][arguments[1]] === arguments[0]); +} + +[11].forEach(callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-16.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-16.js index ef9ff8c4f7..739bae5f3d 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-16.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-16.js @@ -9,13 +9,17 @@ description: > object when T is not an object (T is a boolean) ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = (this.valueOf() !== false); - } +var result = false; - var obj = { 0: 11, length: 2 }; +function callbackfn(val, idx, obj) { + result = (this.valueOf() !== false); +} - Array.prototype.forEach.call(obj, callbackfn, false); +var obj = { + 0: 11, + length: 2 +}; + +Array.prototype.forEach.call(obj, callbackfn, false); assert.sameValue(result, false, 'result'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-17.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-17.js index 8967922b2c..44e2e9baca 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-17.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-17.js @@ -9,13 +9,17 @@ description: > object when T is not an object (T is a number) ---*/ - var result = false; - function callbackfn(val, idx, o) { - result = (5 === this.valueOf()); - } +var result = false; - var obj = { 0: 11, length: 2 }; +function callbackfn(val, idx, o) { + result = (5 === this.valueOf()); +} - Array.prototype.forEach.call(obj, callbackfn, 5); +var obj = { + 0: 11, + length: 2 +}; + +Array.prototype.forEach.call(obj, callbackfn, 5); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-18.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-18.js index 3b073f0195..3cf057a311 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-18.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-18.js @@ -9,13 +9,17 @@ description: > object when T is not an object (T is a string) ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = ('hello' === this.valueOf()); - } +var result = false; - var obj = { 0: 11, length: 2 }; +function callbackfn(val, idx, obj) { + result = ('hello' === this.valueOf()); +} - Array.prototype.forEach.call(obj, callbackfn, "hello"); +var obj = { + 0: 11, + length: 2 +}; + +Array.prototype.forEach.call(obj, callbackfn, "hello"); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-19.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-19.js index 677a50236c..df0f1401e0 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-19.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-19.js @@ -7,18 +7,24 @@ es5id: 15.4.4.18-7-c-ii-19 description: Array.prototype.forEach - non-indexed properties are not called ---*/ - var accessed = false; - var result = true; - function callbackfn(val, idx, obj) { - accessed = true; - if (val === 8) { - result = false; - } - } +var accessed = false; +var result = true; - var obj = { 0: 11, 10: 12, non_index_property: 8, length: 20 }; +function callbackfn(val, idx, obj) { + accessed = true; + if (val === 8) { + result = false; + } +} - Array.prototype.forEach.call(obj, callbackfn); +var obj = { + 0: 11, + 10: 12, + non_index_property: 8, + length: 20 +}; + +Array.prototype.forEach.call(obj, callbackfn); assert(result, 'result !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-2.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-2.js index 4140f28cb1..6dcd31b139 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-2.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-2.js @@ -7,17 +7,18 @@ es5id: 15.4.4.18-7-c-ii-2 description: Array.prototype.forEach - callbackfn takes 3 arguments ---*/ - var parCnt = 3; - var bCalled = false - function callbackfn(val, idx, obj) - { - bCalled = true; - if(arguments.length !== 3) - parCnt = arguments.length; //verify if callbackfn was called with 3 parameters - } +var parCnt = 3; +var bCalled = false - var arr = [0,1,2,3,4,5,6,7,8,9]; - arr.forEach(callbackfn); +function callbackfn(val, idx, obj) +{ + bCalled = true; + if (arguments.length !== 3) + parCnt = arguments.length; //verify if callbackfn was called with 3 parameters +} + +var arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; +arr.forEach(callbackfn); assert.sameValue(bCalled, true, 'bCalled'); assert.sameValue(parCnt, 3, 'parCnt'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-20.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-20.js index cf6b3fe8b3..d0a6f846d6 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-20.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-20.js @@ -9,15 +9,21 @@ description: > parameters (thisArg is correct) ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = (10 === this.threshold); - } +var result = false; - var thisArg = { threshold: 10 }; +function callbackfn(val, idx, obj) { + result = (10 === this.threshold); +} - var obj = { 0: 11, length: 1 }; +var thisArg = { + threshold: 10 +}; - Array.prototype.forEach.call(obj, callbackfn, thisArg); +var obj = { + 0: 11, + length: 1 +}; + +Array.prototype.forEach.call(obj, callbackfn, thisArg); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-21.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-21.js index 9879606253..a165b48209 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-21.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-21.js @@ -9,23 +9,27 @@ description: > parameters (kValue is correct) ---*/ - var resultOne = false; - var resultTwo = false; +var resultOne = false; +var resultTwo = false; - function callbackfn(val, idx, obj) { - if (idx === 0) { - resultOne = (val === 11); - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + resultOne = (val === 11); + } - if (idx === 1) { - resultTwo = (val === 12); - } + if (idx === 1) { + resultTwo = (val === 12); + } - } +} - var obj = { 0: 11, 1: 12, length: 2 }; +var obj = { + 0: 11, + 1: 12, + length: 2 +}; - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert(resultOne, 'resultOne !== true'); assert(resultTwo, 'resultTwo !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-22.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-22.js index 3f7fa9349f..8b29f06dab 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-22.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-22.js @@ -9,23 +9,27 @@ description: > parameters (the index k is correct) ---*/ - var resultOne = false; - var resultTwo = false; +var resultOne = false; +var resultTwo = false; - function callbackfn(val, idx, obj) { - if (val === 11) { - resultOne = (idx === 0); - } +function callbackfn(val, idx, obj) { + if (val === 11) { + resultOne = (idx === 0); + } - if (val === 12) { - resultTwo = (idx === 1); - } + if (val === 12) { + resultTwo = (idx === 1); + } - } +} - var obj = { 0: 11, 1: 12, length: 2 }; +var obj = { + 0: 11, + 1: 12, + length: 2 +}; - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert(resultOne, 'resultOne !== true'); assert(resultTwo, 'resultTwo !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-23.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-23.js index 559f0ea68c..24ae74378f 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-23.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-23.js @@ -9,13 +9,16 @@ description: > parameters (this object O is correct) ---*/ - var result = false; - var obj = { 0: 11, length: 2 }; +var result = false; +var obj = { + 0: 11, + length: 2 +}; - function callbackfn(val, idx, o) { - result = (obj === o); - } +function callbackfn(val, idx, o) { + result = (obj === o); +} - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-4.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-4.js index aafb439dd1..89d2da4a0d 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-4.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-4.js @@ -9,20 +9,21 @@ description: > order ---*/ - var arr = [0, 1, 2, 3, 4, 5]; - var lastIdx = 0; - var called = 0; - var result = true; - function callbackfn(val, idx, o) { - called++; - if (lastIdx !== idx) { - result = false; - } else { - lastIdx++; - } - } +var arr = [0, 1, 2, 3, 4, 5]; +var lastIdx = 0; +var called = 0; +var result = true; - arr.forEach(callbackfn); +function callbackfn(val, idx, o) { + called++; + if (lastIdx !== idx) { + result = false; + } else { + lastIdx++; + } +} + +arr.forEach(callbackfn); assert(result, 'result !== true'); assert.sameValue(arr.length, called, 'arr.length'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-5.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-5.js index 11159ba6fb..1b597b8ed1 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 b1474e751c..22d73e78be 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-6.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-6.js @@ -9,17 +9,20 @@ description: > consistent ---*/ - var result = false; - var obj = { 0: 11, length: 1 }; - var thisArg = {}; +var result = false; +var obj = { + 0: 11, + length: 1 +}; +var thisArg = {}; - function callbackfn() { - result = (this === thisArg && - arguments[0] === 11 && - arguments[1] === 0 && - arguments[2] === obj); - } +function callbackfn() { + result = (this === thisArg && + arguments[0] === 11 && + arguments[1] === 0 && + arguments[2] === obj); +} - Array.prototype.forEach.call(obj, callbackfn, thisArg); +Array.prototype.forEach.call(obj, callbackfn, thisArg); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-7.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-7.js index 0941fe49bf..c7f28a11f6 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-7.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-7.js @@ -9,19 +9,24 @@ description: > callbackfn terminate iteration ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - if (idx > 0) { - accessed = true; - } - if (idx === 0) { - throw new Error("Exception occurred in callbackfn"); - } - } +function callbackfn(val, idx, obj) { + if (idx > 0) { + accessed = true; + } + if (idx === 0) { + throw new Error("Exception occurred in callbackfn"); + } +} - var obj = { 0: 11, 4: 10, 10: 8, length: 20 }; +var obj = { + 0: 11, + 4: 10, + 10: 8, + length: 20 +}; assert.throws(Error, function() { - Array.prototype.forEach.call(obj, callbackfn); + Array.prototype.forEach.call(obj, callbackfn); }); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-8.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-8.js index c1b460cc3e..452044f84c 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-8.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-8.js @@ -9,19 +9,23 @@ description: > previous iterations is observed ---*/ - var result = false; - var obj = { 0: 11, 1: 12, length: 2 }; +var result = false; +var obj = { + 0: 11, + 1: 12, + length: 2 +}; - function callbackfn(val, idx, o) { - if (idx === 0) { - obj[idx + 1] = 8; - } +function callbackfn(val, idx, o) { + if (idx === 0) { + obj[idx + 1] = 8; + } - if (idx === 1) { - result = (val === 8); - } - } + if (idx === 1) { + result = (val === 8); + } +} - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-9.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-9.js index b8396ea609..5f6aa9cfd0 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-9.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-9.js @@ -9,11 +9,12 @@ description: > parameter ---*/ - var called = 0; - function callbackfn() { - called++; - } +var called = 0; - [11, 12].forEach(callbackfn); +function callbackfn() { + called++; +} + +[11, 12].forEach(callbackfn); assert.sameValue(called, 2, 'called'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-1.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-1.js index 4716477c77..cf592c1e42 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-1.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-1.js @@ -9,8 +9,11 @@ description: > (empty array) ---*/ - var callCnt = 0; - function cb(){callCnt++} - var i = [].forEach(cb); +var callCnt = 0; + +function cb() { + callCnt++ +} +var i = [].forEach(cb); assert.sameValue(callCnt, 0, 'callCnt'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-10.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-10.js index ef289af430..3734407484 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-10.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-10.js @@ -7,13 +7,17 @@ es5id: 15.4.4.18-8-10 description: Array.prototype.forEach - subclassed array when length is reduced ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = 1; +foo.prototype = new Array(1, 2, 3); - var callCnt = 0; - function cb(){callCnt++} - var i = f.forEach(cb); +function foo() {} +var f = new foo(); +f.length = 1; + +var callCnt = 0; + +function cb() { + callCnt++ +} +var i = f.forEach(cb); assert.sameValue(callCnt, 1, 'callCnt'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-11.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-11.js index 9c70a3a059..d594b58a20 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 74e0eef2ca..3b92ddb24c 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-12.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-12.js @@ -7,15 +7,16 @@ es5id: 15.4.4.18-8-12 description: Array.prototype.forEach doesn't visit expandos ---*/ - var callCnt = 0; - function callbackfn(val, idx, obj) - { - callCnt++; - } - var arr = [1,2,3,4,5]; - arr["i"] = 10; - arr[true] = 11; +var callCnt = 0; - arr.forEach(callbackfn); +function callbackfn(val, idx, obj) +{ + callCnt++; +} +var arr = [1, 2, 3, 4, 5]; +arr["i"] = 10; +arr[true] = 11; + +arr.forEach(callbackfn); assert.sameValue(callCnt, 5, 'callCnt'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-13.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-13.js index 8137d9b4ac..de40f14e30 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-13.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-13.js @@ -9,12 +9,13 @@ description: > 0 ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - } +var accessed = false; - var result = [].forEach(callbackfn); +function callbackfn(val, idx, obj) { + accessed = true; +} + +var result = [].forEach(callbackfn); assert.sameValue(typeof result, "undefined", 'typeof result'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-2.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-2.js index 24a5efda0b..96c4cdc45d 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-2.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-2.js @@ -9,13 +9,17 @@ description: > (subclassed Array, length overridden to null (type conversion)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = null; +foo.prototype = new Array(1, 2, 3); - var callCnt = 0; - function cb(){callCnt++} - var i = f.forEach(cb); +function foo() {} +var f = new foo(); +f.length = null; + +var callCnt = 0; + +function cb() { + callCnt++ +} +var i = f.forEach(cb); assert.sameValue(callCnt, 0, 'callCnt'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-3.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-3.js index ad6d2c88d3..9dbf01bec9 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-3.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-3.js @@ -9,13 +9,17 @@ description: > (subclassed Array, length overridden to false (type conversion)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = false; +foo.prototype = new Array(1, 2, 3); - var callCnt = 0; - function cb(){callCnt++} - var i = f.forEach(cb); +function foo() {} +var f = new foo(); +f.length = false; + +var callCnt = 0; + +function cb() { + callCnt++ +} +var i = f.forEach(cb); assert.sameValue(callCnt, 0, 'callCnt'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-4.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-4.js index eca6eb28c5..fd9bfba940 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-4.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-4.js @@ -9,13 +9,17 @@ description: > (subclassed Array, length overridden to 0 (type conversion)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = 0; +foo.prototype = new Array(1, 2, 3); - var callCnt = 0; - function cb(){callCnt++} - var i = f.forEach(cb); +function foo() {} +var f = new foo(); +f.length = 0; + +var callCnt = 0; + +function cb() { + callCnt++ +} +var i = f.forEach(cb); assert.sameValue(callCnt, 0, 'callCnt'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-5.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-5.js index 89ef96a1db..6e3ce9beed 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-5.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-5.js @@ -9,13 +9,17 @@ description: > (subclassed Array, length overridden to '0' (type conversion)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = '0'; +foo.prototype = new Array(1, 2, 3); - var callCnt = 0; - function cb(){callCnt++} - var i = f.forEach(cb); +function foo() {} +var f = new foo(); +f.length = '0'; + +var callCnt = 0; + +function cb() { + callCnt++ +} +var i = f.forEach(cb); assert.sameValue(callCnt, 0, 'callCnt'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-6.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-6.js index 57bf3415d1..0e26ea86fc 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-6.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-6.js @@ -9,15 +9,23 @@ description: > (subclassed Array, length overridden with obj with valueOf) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); +foo.prototype = new Array(1, 2, 3); - var o = { valueOf: function () { return 0;}}; - f.length = o; +function foo() {} +var f = new foo(); - var callCnt = 0; - function cb(){callCnt++} - var i = f.forEach(cb); +var o = { + valueOf: function() { + return 0; + } +}; +f.length = o; + +var callCnt = 0; + +function cb() { + callCnt++ +} +var i = f.forEach(cb); assert.sameValue(callCnt, 0, 'callCnt'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-7.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-7.js index 941c6ee3fb..d08dadd7ac 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-7.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-7.js @@ -10,20 +10,28 @@ description: > (toString)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); +foo.prototype = new Array(1, 2, 3); - var o = { toString: function () { return '0';}}; - f.length = o; +function foo() {} +var f = new foo(); - // objects inherit the default valueOf method of the Object object; - // that simply returns the itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. - var callCnt = 0; - function cb(){callCnt++} - var i = f.forEach(cb); +var o = { + toString: function() { + return '0'; + } +}; +f.length = o; + +// objects inherit the default valueOf method of the Object object; +// that simply returns the itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. +var callCnt = 0; + +function cb() { + callCnt++ +} +var i = f.forEach(cb); assert.sameValue(callCnt, 0, 'callCnt'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-8.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-8.js index acfa321f40..dee5abda64 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-8.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-8.js @@ -9,27 +9,31 @@ description: > (subclassed Array, length overridden with [] ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); +foo.prototype = new Array(1, 2, 3); - f.length = []; +function foo() {} +var f = new foo(); - // objects inherit the default valueOf method of the Object object; - // that simply returns the itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. - // - // The toString( ) method on Array converts the array elements to strings, - // then returns the result of concatenating these strings, with commas in - // between. An array with no elements converts to the empty string, which - // converts to the number 0. If an array has a single element that is a - // number n, the array converts to a string representation of n, which is - // then converted back to n itself. If an array contains more than one element, - // or if its one element is not a number, the array converts to NaN. - var callCnt = 0; - function cb(){callCnt++} - var i = f.forEach(cb); +f.length = []; + +// objects inherit the default valueOf method of the Object object; +// that simply returns the itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. +// +// The toString( ) method on Array converts the array elements to strings, +// then returns the result of concatenating these strings, with commas in +// between. An array with no elements converts to the empty string, which +// converts to the number 0. If an array has a single element that is a +// number n, the array converts to a string representation of n, which is +// then converted back to n itself. If an array contains more than one element, +// or if its one element is not a number, the array converts to NaN. +var callCnt = 0; + +function cb() { + callCnt++ +} +var i = f.forEach(cb); assert.sameValue(callCnt, 0, 'callCnt'); diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-9.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-9.js index 3e36453a42..2ce7678bf1 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-9.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-9.js @@ -9,28 +9,32 @@ description: > (subclassed Array, length overridden with [0] ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - - f.length = [0]; - - // objects inherit the default valueOf method of the Object object; - // that simply returns the itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. - // - // The toString( ) method on Array converts the array elements to strings, - // then returns the result of concatenating these strings, with commas in - // between. An array with no elements converts to the empty string, which - // converts to the number 0. If an array has a single element that is a - // number n, the array converts to a string representation of n, which is - // then converted back to n itself. If an array contains more than one element, - // or if its one element is not a number, the array converts to NaN. - - var callCnt = 0; - function cb(){callCnt++} - var i = f.forEach(cb); +foo.prototype = new Array(1, 2, 3); + +function foo() {} +var f = new foo(); + +f.length = [0]; + +// objects inherit the default valueOf method of the Object object; +// that simply returns the itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. +// +// The toString( ) method on Array converts the array elements to strings, +// then returns the result of concatenating these strings, with commas in +// between. An array with no elements converts to the empty string, which +// converts to the number 0. If an array has a single element that is a +// number n, the array converts to a string representation of n, which is +// then converted back to n itself. If an array contains more than one element, +// or if its one element is not a number, the array converts to NaN. + +var callCnt = 0; + +function cb() { + callCnt++ +} +var i = f.forEach(cb); assert.sameValue(callCnt, 0, 'callCnt'); diff --git a/test/built-ins/Array/prototype/forEach/S15.4.4.18_A1.js b/test/built-ins/Array/prototype/forEach/S15.4.4.18_A1.js index bdaef05035..0cfaf6ea8d 100644 --- a/test/built-ins/Array/prototype/forEach/S15.4.4.18_A1.js +++ b/test/built-ins/Array/prototype/forEach/S15.4.4.18_A1.js @@ -8,4 +8,6 @@ es5id: 15.4.4.18_A1 description: Freezes array.forEach during a forEach to see if it works ---*/ -['z'].forEach(function(){ Object.freeze(Array.prototype.forEach); }); +['z'].forEach(function() { + Object.freeze(Array.prototype.forEach); +}); diff --git a/test/built-ins/Array/prototype/forEach/S15.4.4.18_A2.js b/test/built-ins/Array/prototype/forEach/S15.4.4.18_A2.js index a95da06dda..c743d247ef 100644 --- a/test/built-ins/Array/prototype/forEach/S15.4.4.18_A2.js +++ b/test/built-ins/Array/prototype/forEach/S15.4.4.18_A2.js @@ -9,6 +9,8 @@ description: Freezes array.forEach during a forEach to see if it works ---*/ function foo() { - ['z'].forEach(function(){ Object.freeze(Array.prototype.forEach); }); + ['z'].forEach(function() { + Object.freeze(Array.prototype.forEach); + }); } foo(); diff --git a/test/built-ins/Array/prototype/includes/fromIndex-equal-or-greater-length-returns-false.js b/test/built-ins/Array/prototype/includes/fromIndex-equal-or-greater-length-returns-false.js index ebca5a0430..84bb4526d8 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 6d5393dbb7..7d98d2a68b 100644 --- a/test/built-ins/Array/prototype/includes/search-not-found-returns-false.js +++ b/test/built-ins/Array/prototype/includes/search-not-found-returns-false.js @@ -35,7 +35,9 @@ assert.sameValue([null].includes(undefined), false, "undefined"); assert.sameValue([Symbol("1")].includes(Symbol("1")), false, "symbol"); assert.sameValue([{}].includes({}), false, "object"); -assert.sameValue([[]].includes([]), false, "array"); +assert.sameValue([ + [] +].includes([]), false, "array"); var sample = [42]; assert.sameValue(sample.includes(sample), false, "this"); diff --git a/test/built-ins/Array/prototype/includes/sparse.js b/test/built-ins/Array/prototype/includes/sparse.js index bd272fe935..751c2c928e 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 a3c868474a..c1e82b9da5 100644 --- a/test/built-ins/Array/prototype/includes/tolength-length.js +++ b/test/built-ins/Array/prototype/includes/tolength-length.js @@ -72,8 +72,16 @@ assert.sameValue([].includes.call(obj, "a"), false, "false"); obj.length = true; assert.sameValue([].includes.call(obj, "a"), true, "true"); -obj.length = { valueOf: function() { return 2; } }; +obj.length = { + valueOf: function() { + return 2; + } +}; assert.sameValue([].includes.call(obj, "b"), true, "ordinary object.valueOf"); -obj.length = { toString: function() { return 2; } }; +obj.length = { + toString: function() { + return 2; + } +}; assert.sameValue([].includes.call(obj, "b"), true, "ordinary object.toString"); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-1.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-1.js index 1eb9ef72e0..ea9ca6068f 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 1a55202188..4622e10a06 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 bcb3b21ead..51d4a331e9 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 c416b6e1b9..4c23949e9c 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 c1ca787316..b339869a0a 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 6f116d5cee..06c02d8f18 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 7a6c9b7ca4..598ba594e1 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 5584d5f68f..5e348a54ec 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 510a693ed4..3bfe5e7a6e 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 844e34af49..5f0dd9ed5f 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 ccca657760..4fa661c8b8 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 c6416ebe4e..928377959b 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 46575fb68d..eaa29361e3 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 76d8e87c0b..065d31bc74 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 c0d6c537ac..8a77b86f52 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 124043c97f..fbb9268888 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-10-2.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-10-2.js @@ -9,12 +9,19 @@ description: > access any other properties ---*/ - var accessed = false; - var f = {length: 0}; - Object.defineProperty(f,"0",{get: function () {accessed = true; return 1;}}); +var accessed = false; +var f = { + length: 0 +}; +Object.defineProperty(f, "0", { + get: function() { + accessed = true; + return 1; + } +}); - var i = Array.prototype.indexOf.call(f,1); +var i = Array.prototype.indexOf.call(f, 1); assert.sameValue(i, -1, 'i'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-1.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-1.js index 61dd7f2946..e14c28ba31 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-1.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-1.js @@ -9,8 +9,14 @@ description: > Array-like object ---*/ - var objOne = { 1: true, length: 2 }; - var objTwo = { 2: true, length: 2 }; +var objOne = { + 1: true, + length: 2 +}; +var objTwo = { + 2: true, + length: 2 +}; assert.sameValue(Array.prototype.indexOf.call(objOne, true), 1, 'Array.prototype.indexOf.call(objOne, true)'); assert.sameValue(Array.prototype.indexOf.call(objTwo, true), -1, 'Array.prototype.indexOf.call(objTwo, true)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-10.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-10.js index f4c6f0b83a..bde4a7b79b 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 bb89914e0b..d5d473e994 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-11.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-11.js @@ -9,10 +9,12 @@ description: > without a get function ---*/ - var obj = { 1: true }; - Object.defineProperty(obj, "length", { - set: function () { }, - configurable: true - }); +var obj = { + 1: true +}; +Object.defineProperty(obj, "length", { + set: function() {}, + configurable: true +}); assert.sameValue(Array.prototype.indexOf.call(obj, true), -1, 'Array.prototype.indexOf.call(obj, true)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-12.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-12.js index ff9ac06df0..205d52fbe5 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-12.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-12.js @@ -10,17 +10,19 @@ description: > property ---*/ - Object.defineProperty(Object.prototype, "length", { - get: function () { - return 20; - }, - configurable: true - }); +Object.defineProperty(Object.prototype, "length", { + get: function() { + return 20; + }, + configurable: true +}); - var obj = { 1: 1 }; - Object.defineProperty(obj, "length", { - set: function () { }, - configurable: true - }); +var obj = { + 1: 1 +}; +Object.defineProperty(obj, "length", { + set: function() {}, + configurable: true +}); assert.sameValue(Array.prototype.indexOf.call(obj, 1), -1, 'Array.prototype.indexOf.call(obj, 1)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-13.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-13.js index 6aa17ff1ea..833c45d701 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 6ffd345dbe..8807657e82 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-14.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-14.js @@ -7,6 +7,9 @@ es5id: 15.4.4.14-2-14 description: Array.prototype.indexOf - 'length' is undefined property ---*/ - var obj = { 0: true, 1: true }; +var obj = { + 0: true, + 1: true +}; assert.sameValue(Array.prototype.indexOf.call(obj, true), -1, 'Array.prototype.indexOf.call(obj, true)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-17.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-17.js index 2df7594957..cce214933d 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 e48cb33de8..e739dd81a1 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 09bb09dd3a..b5735739ff 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 d1fb4b7bb6..9fba718211 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 c0c72be3b0..db7ecfe839 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-3.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-3.js @@ -9,13 +9,15 @@ description: > overrides an inherited data property on an Array-like object ---*/ - var proto = { length: 0 }; +var proto = { + length: 0 +}; - var Con = function () {}; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child.length = 2; - child[1] = true; +var child = new Con(); +child.length = 2; +child[1] = true; assert.sameValue(Array.prototype.indexOf.call(child, true), 1, 'Array.prototype.indexOf.call(child, true)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-4.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-4.js index 5a4f6f2386..dfc01cd8d7 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 8c5523964a..0f3909236c 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 39788558ae..79269969a1 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-6.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-6.js @@ -7,15 +7,17 @@ es5id: 15.4.4.14-2-6 description: Array.prototype.indexOf - 'length' is an inherited data property ---*/ - var proto = { length: 2 }; +var proto = { + length: 2 +}; - var Con = function () {}; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var childOne = new Con(); - childOne[1] = true; - var childTwo = new Con(); - childTwo[2] = true; +var childOne = new Con(); +childOne[1] = true; +var childTwo = new Con(); +childTwo[2] = true; assert.sameValue(Array.prototype.indexOf.call(childOne, true), 1, 'Array.prototype.indexOf.call(childOne, true)'); assert.sameValue(Array.prototype.indexOf.call(childTwo, true), -1, 'Array.prototype.indexOf.call(childTwo, true)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-7.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-7.js index 975a8673ab..6a0ec25878 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-7.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-7.js @@ -7,20 +7,24 @@ es5id: 15.4.4.14-2-7 description: Array.prototype.indexOf - 'length' is own accessor property ---*/ - var objOne = { 1: true }; - var objTwo = { 2: true }; - Object.defineProperty(objOne, "length", { - get: function () { - return 2; - }, - configurable: true - }); - Object.defineProperty(objTwo, "length", { - get: function () { - return 2; - }, - configurable: true - }); +var objOne = { + 1: true +}; +var objTwo = { + 2: true +}; +Object.defineProperty(objOne, "length", { + get: function() { + return 2; + }, + configurable: true +}); +Object.defineProperty(objTwo, "length", { + get: function() { + return 2; + }, + configurable: true +}); assert.sameValue(Array.prototype.indexOf.call(objOne, true), 1, 'Array.prototype.indexOf.call(objOne, true)'); assert.sameValue(Array.prototype.indexOf.call(objTwo, true), -1, 'Array.prototype.indexOf.call(objTwo, true)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-8.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-8.js index 92bf58f7ab..8ad55630ea 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-8.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-8.js @@ -9,19 +9,21 @@ description: > overrides an inherited data property ---*/ - var proto = { length: 0 }; +var proto = { + length: 0 +}; - var Con = function () {}; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child[1] = true; +var child = new Con(); +child[1] = true; - Object.defineProperty(child, "length", { - get: function () { - return 2; - }, - configurable: true - }); +Object.defineProperty(child, "length", { + get: function() { + return 2; + }, + configurable: true +}); assert.sameValue(Array.prototype.indexOf.call(child, true), 1, 'Array.prototype.indexOf.call(child, true)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-9.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-9.js index 5ec60e0581..2bf8c82efe 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 528bb1f489..0787c3a9c4 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-1.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-1.js @@ -7,6 +7,10 @@ es5id: 15.4.4.14-3-1 description: Array.prototype.indexOf - value of 'length' is undefined ---*/ - var obj = { 0: 1, 1: 1, length: undefined }; +var obj = { + 0: 1, + 1: 1, + length: undefined +}; assert.sameValue(Array.prototype.indexOf.call(obj, 1), -1, 'Array.prototype.indexOf.call(obj, 1)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-10.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-10.js index 2d422228ca..503c2206df 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-10.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-10.js @@ -9,6 +9,9 @@ description: > (value is NaN) ---*/ - var obj = { 0: 0, length: NaN }; +var obj = { + 0: 0, + length: NaN +}; assert.sameValue(Array.prototype.indexOf.call(obj, 0), -1, 'Array.prototype.indexOf.call(obj, 0)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-11.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-11.js index dbccc238b9..9914d8d78c 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-11.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-11.js @@ -9,7 +9,11 @@ description: > positive number ---*/ - var obj = { 1: 1, 2: 2, length: "2" }; +var obj = { + 1: 1, + 2: 2, + length: "2" +}; assert.sameValue(Array.prototype.indexOf.call(obj, 1), 1, 'Array.prototype.indexOf.call(obj, 1)'); assert.sameValue(Array.prototype.indexOf.call(obj, 2), -1, 'Array.prototype.indexOf.call(obj, 2)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-12.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-12.js index c147d93553..edc04e60cb 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-12.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-12.js @@ -9,7 +9,11 @@ description: > negative number ---*/ - var obj = { 1: "true", 2: "2", length: "-4294967294" }; +var obj = { + 1: "true", + 2: "2", + length: "-4294967294" +}; assert.sameValue(Array.prototype.indexOf.call(obj, "true"), -1, 'Array.prototype.indexOf.call(obj, "true")'); assert.sameValue(Array.prototype.indexOf.call(obj, "2"), -1, 'Array.prototype.indexOf.call(obj, "2")'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-13.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-13.js index d2ff4af50f..0b2ea6bb6d 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-13.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-13.js @@ -9,7 +9,11 @@ description: > decimal number ---*/ - var obj = { 199: true, 200: "200.59", length: "200.59" }; +var obj = { + 199: true, + 200: "200.59", + length: "200.59" +}; assert.sameValue(Array.prototype.indexOf.call(obj, true), 199, 'Array.prototype.indexOf.call(obj, true)'); assert.sameValue(Array.prototype.indexOf.call(obj, "200.59"), -1, 'Array.prototype.indexOf.call(obj, "200.59")'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-14.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-14.js index f37712cf31..ec4c578d21 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-14.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-14.js @@ -9,9 +9,21 @@ description: > +/-Infinity ---*/ - var objOne = { 0: true, 1: true, length: "Infinity" }; - var objTwo = { 0: true, 1: true, length: "+Infinity" }; - var objThree = { 0: true, 1: true, length: "-Infinity" }; +var objOne = { + 0: true, + 1: true, + length: "Infinity" +}; +var objTwo = { + 0: true, + 1: true, + length: "+Infinity" +}; +var objThree = { + 0: true, + 1: true, + length: "-Infinity" +}; assert.sameValue(Array.prototype.indexOf.call(objOne, true), 0, 'Array.prototype.indexOf.call(objOne, true)'); assert.sameValue(Array.prototype.indexOf.call(objTwo, true), 0, 'Array.prototype.indexOf.call(objTwo, true)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-15.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-15.js index e35a97c2cd..2bf0dd8b2b 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-15.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-15.js @@ -9,7 +9,11 @@ description: > exponential number ---*/ - var obj = { 1: true, 2: "2E0", length: "2E0" }; +var obj = { + 1: true, + 2: "2E0", + length: "2E0" +}; assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)'); assert.sameValue(Array.prototype.indexOf.call(obj, "2E0"), -1, 'Array.prototype.indexOf.call(obj, "2E0")'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-16.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-16.js index adc6ff83a4..c3cd2c458f 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-16.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-16.js @@ -9,7 +9,11 @@ description: > number ---*/ - var obj = { 10: true, 11: "0x00B", length: "0x00B" }; +var obj = { + 10: true, + 11: "0x00B", + length: "0x00B" +}; assert.sameValue(Array.prototype.indexOf.call(obj, true), 10, 'Array.prototype.indexOf.call(obj, true)'); assert.sameValue(Array.prototype.indexOf.call(obj, "0x00B"), -1, 'Array.prototype.indexOf.call(obj, "0x00B")'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-17.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-17.js index 3f5d9a1735..66bb812c35 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-17.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-17.js @@ -9,7 +9,11 @@ description: > with leading zeros ---*/ - var obj = { 1: true, 2: "0002.0", length: "0002.0" }; +var obj = { + 1: true, + 2: "0002.0", + length: "0002.0" +}; assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)'); assert.sameValue(Array.prototype.indexOf.call(obj, "0002.0"), -1, 'Array.prototype.indexOf.call(obj, "0002.0")'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-18.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-18.js index 71c052c5bf..382df40af8 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-18.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-18.js @@ -9,6 +9,10 @@ description: > convert to a number ---*/ - var obj = { 0: true, 100: true, length: "one" }; +var obj = { + 0: true, + 100: true, + length: "one" +}; assert.sameValue(Array.prototype.indexOf.call(obj, true), -1, 'Array.prototype.indexOf.call(obj, true)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-19.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-19.js index 17a3c545ac..b770f05777 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 8cfa825b89..a645ce3b0b 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-2.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-2.js @@ -9,7 +9,11 @@ description: > (value is true) ---*/ - var obj = { 0: 0, 1: 1, length: true }; +var obj = { + 0: 0, + 1: 1, + length: true +}; assert.sameValue(Array.prototype.indexOf.call(obj, 0), 0, 'Array.prototype.indexOf.call(obj, 0)'); assert.sameValue(Array.prototype.indexOf.call(obj, 1), -1, 'Array.prototype.indexOf.call(obj, 1)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-20.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-20.js index 3479154f06..6c9c56ff27 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 a9ad676ad9..f1de649c87 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 5cb92837cb..ad43241289 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 5b30d00cf6..a87a044d5f 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 539f8d669d..109eca9ec1 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-24.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-24.js @@ -9,7 +9,11 @@ description: > non-integer, ensure truncation occurs in the proper direction ---*/ - var obj = { 122: true, 123: false, length: 123.321 }; //length will be 123 finally +var obj = { + 122: true, + 123: false, + length: 123.321 +}; //length will be 123 finally assert.sameValue(Array.prototype.indexOf.call(obj, true), 122, 'Array.prototype.indexOf.call(obj, true)'); assert.sameValue(Array.prototype.indexOf.call(obj, false), -1, 'Array.prototype.indexOf.call(obj, false)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-25.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-25.js index 4e275b17fb..d1c35a4858 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-25.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-25.js @@ -9,7 +9,11 @@ description: > non-integer ---*/ - var obj = { 1: true, 2: false, length: -4294967294.5 }; //length will be 0 finally +var obj = { + 1: true, + 2: false, + length: -4294967294.5 +}; //length will be 0 finally assert.sameValue(Array.prototype.indexOf.call(obj, true), -1, 'Array.prototype.indexOf.call(obj, true)'); assert.sameValue(Array.prototype.indexOf.call(obj, false), -1, 'Array.prototype.indexOf.call(obj, false)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-28.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-28.js index 62702eed76..b6f651f695 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 23bb38ae78..41298b8a34 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 83c239e170..2db8c77fc6 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-3.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-3.js @@ -9,6 +9,9 @@ description: > 0) ---*/ - var obj = { 0: true, length: 0 }; +var obj = { + 0: true, + length: 0 +}; assert.sameValue(Array.prototype.indexOf.call(obj, true), -1, 'Array.prototype.indexOf.call(obj, true)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-4.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-4.js index e2dc4190fa..c2f4f22c83 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-4.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-4.js @@ -9,6 +9,9 @@ description: > +0) ---*/ - var obj = { 0: true, length: +0 }; +var obj = { + 0: true, + length: +0 +}; assert.sameValue(Array.prototype.indexOf.call(obj, true), -1, 'Array.prototype.indexOf.call(obj, true)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-5.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-5.js index 6fccac8750..4ca356c5f9 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-5.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-5.js @@ -9,6 +9,9 @@ description: > -0) ---*/ - var obj = { 0: true, length: -0 }; +var obj = { + 0: true, + length: -0 +}; assert.sameValue(Array.prototype.indexOf.call(obj, true), -1, 'Array.prototype.indexOf.call(obj, true)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-6.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-6.js index 50cc7c262c..841c6b02ed 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-6.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-6.js @@ -9,7 +9,11 @@ description: > positive) ---*/ - var obj = { 3: true, 4: false, length: 4 }; +var obj = { + 3: true, + 4: false, + length: 4 +}; assert.sameValue(Array.prototype.indexOf.call(obj, true), 3, 'Array.prototype.indexOf.call(obj, true)'); assert.sameValue(Array.prototype.indexOf.call(obj, false), -1, 'Array.prototype.indexOf.call(obj, false)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-7.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-7.js index 1ff3602c0b..bbc47c9817 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-7.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-7.js @@ -9,7 +9,11 @@ description: > negative) ---*/ - var obj = { 4: true, 5: false, length: 5 - Math.pow(2, 32) }; +var obj = { + 4: true, + 5: false, + length: 5 - Math.pow(2, 32) +}; assert.sameValue(Array.prototype.indexOf.call(obj, true), -1, 'Array.prototype.indexOf.call(obj, true)'); assert.sameValue(Array.prototype.indexOf.call(obj, false), -1, 'Array.prototype.indexOf.call(obj, false)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-8.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-8.js index c7873e9ee7..b7ffedc0c6 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-8.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-8.js @@ -9,6 +9,9 @@ description: > Infinity) ---*/ - var obj = { 0: 0, length: Infinity }; +var obj = { + 0: 0, + length: Infinity +}; assert.sameValue(Array.prototype.indexOf.call(obj, 0), 0, 'Array.prototype.indexOf.call(obj, 0)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-9.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-9.js index faf4a227c4..00fafbc745 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-9.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-9.js @@ -9,6 +9,9 @@ description: > -Infinity) ---*/ - var obj = { 0: 0, length: -Infinity }; +var obj = { + 0: 0, + length: -Infinity +}; assert.sameValue(Array.prototype.indexOf.call(obj, 0), -1, 'Array.prototype.indexOf.call(obj, 0)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-1.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-1.js index 5b6a62eb99..7f753d7855 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 6af3e10a85..47a90a2287 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-10.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-10.js @@ -7,7 +7,11 @@ es5id: 15.4.4.14-4-10 description: Array.prototype.indexOf - 'length' is a number of value -6e-1 ---*/ - var targetObj = []; - var obj = { 0: targetObj, 100: targetObj, length: -6e-1 }; +var targetObj = []; +var obj = { + 0: targetObj, + 100: targetObj, + length: -6e-1 +}; assert.sameValue(Array.prototype.indexOf.call(obj, targetObj), -1, 'Array.prototype.indexOf.call(obj, targetObj)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-11.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-11.js index 3410cb85c8..94da778486 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-11.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-11.js @@ -7,7 +7,11 @@ es5id: 15.4.4.14-4-11 description: Array.prototype.indexOf - 'length' is an empty string ---*/ - var targetObj = []; - var obj = { 0: targetObj, 100: targetObj, length: "" }; +var targetObj = []; +var obj = { + 0: targetObj, + 100: targetObj, + length: "" +}; assert.sameValue(Array.prototype.indexOf.call(obj, targetObj), -1, 'Array.prototype.indexOf.call(obj, targetObj)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-2.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-2.js index 485bcf04e6..e39faf7b10 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-2.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-2.js @@ -9,7 +9,9 @@ description: > overridden to null (type conversion)) ---*/ - var i = Array.prototype.indexOf.call({length: null}, 1); +var i = Array.prototype.indexOf.call({ + length: null +}, 1); assert.sameValue(i, -1, 'i'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-3.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-3.js index 535a46c8e1..ccca42340f 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-3.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-3.js @@ -9,7 +9,9 @@ description: > overridden to false (type conversion)) ---*/ - var i = Array.prototype.indexOf.call({length: false}, 1); +var i = Array.prototype.indexOf.call({ + length: false +}, 1); assert.sameValue(i, -1, 'i'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-4.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-4.js index c614ca9385..d665e97c1f 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-4.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-4.js @@ -9,7 +9,9 @@ description: > 'array' with length 0 ) ---*/ - var i = Array.prototype.lastIndexOf.call({length: 0}, 1); +var i = Array.prototype.lastIndexOf.call({ + length: 0 +}, 1); assert.sameValue(i, -1, 'i'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-5.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-5.js index 5951225794..7cd825ba8d 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-5.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-5.js @@ -9,7 +9,9 @@ description: > overridden to '0' (type conversion)) ---*/ - var i = Array.prototype.indexOf.call({length: '0'}, 1); +var i = Array.prototype.indexOf.call({ + length: '0' +}, 1); assert.sameValue(i, -1, 'i'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-6.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-6.js index 365da0c371..bdb5f01fa1 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-6.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-6.js @@ -9,7 +9,13 @@ description: > Array, length overridden with obj with valueOf) ---*/ - var i = Array.prototype.indexOf.call({length: { valueOf: function () { return 0;}}}, 1); +var i = Array.prototype.indexOf.call({ + length: { + valueOf: function() { + return 0; + } + } +}, 1); assert.sameValue(i, -1, 'i'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-7.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-7.js index ed4cf98947..c6c14d7736 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-7.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-7.js @@ -9,12 +9,18 @@ description: > object overridden with obj w/o valueOf (toString)) ---*/ - // objects inherit the default valueOf method of the Object object; - // that simply returns the itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. - var i = Array.prototype.indexOf.call({length: { toString: function () { return '0';}}}, 1); +// objects inherit the default valueOf method of the Object object; +// that simply returns the itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. +var i = Array.prototype.indexOf.call({ + length: { + toString: function() { + return '0'; + } + } +}, 1); assert.sameValue(i, -1, 'i'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-8.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-8.js index 04ad4c7fb6..2c863ea490 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-8.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-8.js @@ -9,20 +9,22 @@ description: > empty array) ---*/ - // objects inherit the default valueOf method of the Object object; - // that simply returns the itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. - // - // The toString( ) method on Array converts the array elements to strings, - // then returns the result of concatenating these strings, with commas in - // between. An array with no elements converts to the empty string, which - // converts to the number 0. If an array has a single element that is a - // number n, the array converts to a string representation of n, which is - // then converted back to n itself. If an array contains more than one element, - // or if its one element is not a number, the array converts to NaN. - var i = Array.prototype.indexOf.call({length: [ ]}, 1); +// objects inherit the default valueOf method of the Object object; +// that simply returns the itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. +// +// The toString( ) method on Array converts the array elements to strings, +// then returns the result of concatenating these strings, with commas in +// between. An array with no elements converts to the empty string, which +// converts to the number 0. If an array has a single element that is a +// number n, the array converts to a string representation of n, which is +// then converted back to n itself. If an array contains more than one element, +// or if its one element is not a number, the array converts to NaN. +var i = Array.prototype.indexOf.call({ + length: [] +}, 1); assert.sameValue(i, -1, 'i'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-9.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-9.js index e90ce2e4c9..b64c1213aa 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-9.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-9.js @@ -7,7 +7,11 @@ es5id: 15.4.4.14-4-9 description: Array.prototype.indexOf - 'length' is a number of value 0.1 ---*/ - var targetObj = []; - var obj = { 0: targetObj, 100: targetObj, length: 0.1 }; +var targetObj = []; +var obj = { + 0: targetObj, + 100: targetObj, + length: 0.1 +}; assert.sameValue(Array.prototype.indexOf.call(obj, targetObj), -1, 'Array.prototype.indexOf.call(obj, targetObj)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-1.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-1.js index 146456dbab..bfb7c07cdf 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 7c006a5d04..4ec2ce2a05 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 e8dccbd1d9..873dcea190 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 dbdc234eb5..ef4baf22eb 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 68e8cbe5fe..6f9afde36a 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 7729f74b5f..66bfabd2fa 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 ef2936fb7b..123b1304f7 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 6fbcc5ced6..092e4127f6 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 0471343e27..106b630ba1 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 05fbacd4df..887de235ac 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 21bb6b03a7..e1ed131978 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 64f186fc81..8bfad2363f 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 3f83428a20..881197259d 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 a8139b7512..f3943fc490 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 6c66928cee..43307ad734 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 0207afac1e..ec03ca8394 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 9e83835459..71adbb3478 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 30381433b8..373bbc7e50 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 9030d5314c..f9ec42cc87 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 9a229e976c..d3eac966c0 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 9a7f1d3ff5..64442d0db8 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 df4812b786..a11186d51e 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 3611b17992..4230ef2bc0 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 9056a5fe94..4cd4418d56 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 69610b347a..2ea05b825e 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 f2da76943c..1309ad967a 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 57d4f191db..4531f80519 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 94125fa817..91a596078f 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-1.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-1.js @@ -7,9 +7,13 @@ es5id: 15.4.4.14-9-1 description: Array.prototype.indexOf must return correct index (boolean) ---*/ - var obj = {toString:function (){return true}}; - var _false = false; - var a = [obj,"true", undefined,0,_false,null,1,"str",0,1,true,false,true,false]; +var obj = { + toString: function() { + return true + } +}; +var _false = false; +var a = [obj, "true", undefined, 0, _false, null, 1, "str", 0, 1, true, false, true, false]; - assert.sameValue(a.indexOf(true), 10, 'a[10]=true'); - assert.sameValue(a.indexOf(false), 4, 'a[4] =_false'); +assert.sameValue(a.indexOf(true), 10, 'a[10]=true'); +assert.sameValue(a.indexOf(false), 4, 'a[4] =_false'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-10.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-10.js index 4b3ec82c6a..92ebaa80aa 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-10.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-10.js @@ -10,7 +10,11 @@ es5id: 15.4.4.14-9-10 description: Array.prototype.indexOf must return correct index (NaN) ---*/ - var _NaN = NaN; - var a = new Array("NaN",undefined,0,false,null,{toString:function (){return NaN}},"false",_NaN,NaN); +var _NaN = NaN; +var a = new Array("NaN", undefined, 0, false, null, { + toString: function() { + return NaN + } +}, "false", _NaN, NaN); assert.sameValue(a.indexOf(NaN), -1, 'NaN is equal to nothing, including itself.'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-11.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-11.js index cf1aac5412..77108424d9 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 fcce013d2c..410a7c0ef1 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-2.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-2.js @@ -7,12 +7,16 @@ es5id: 15.4.4.14-9-2 description: Array.prototype.indexOf must return correct index (Number) ---*/ - var obj = {toString:function (){return 0}}; - var one = 1; - var _float = -(4/3); - var a = new Array(false,undefined,null,"0",obj,-1.3333333333333, "str",-0,true,+0, one, 1,0, false, _float, -(4/3)); +var obj = { + toString: function() { + return 0 + } +}; +var one = 1; +var _float = -(4 / 3); +var a = new Array(false, undefined, null, "0", obj, -1.3333333333333, "str", -0, true, +0, one, 1, 0, false, _float, -(4 / 3)); -assert.sameValue(a.indexOf(-(4/3)), 14, 'a[14]=_float===-(4/3)'); +assert.sameValue(a.indexOf(-(4 / 3)), 14, 'a[14]=_float===-(4/3)'); assert.sameValue(a.indexOf(0), 7, 'a[7] = +0, 0===+0'); assert.sameValue(a.indexOf(-0), 7, 'a[7] = +0, -0===+0'); assert.sameValue(a.indexOf(1), 10, 'a[10] =one=== 1'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-3.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-3.js index 3c83a98d95..8b4ff007cc 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-3.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-3.js @@ -7,8 +7,12 @@ es5id: 15.4.4.14-9-3 description: Array.prototype.indexOf must return correct index(string) ---*/ - var obj = {toString:function (){return "false"}}; - var szFalse = "false"; - var a = new Array("false1",undefined,0,false,null,1,obj,0,szFalse, "false"); +var obj = { + toString: function() { + return "false" + } +}; +var szFalse = "false"; +var a = new Array("false1", undefined, 0, false, null, 1, obj, 0, szFalse, "false"); assert.sameValue(a.indexOf("false"), 8, 'a[8]=szFalse'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-4.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-4.js index d0b3a3a3ef..697f919678 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-4.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-4.js @@ -7,9 +7,13 @@ es5id: 15.4.4.14-9-4 description: Array.prototype.indexOf must return correct index(undefined) ---*/ - var obj = {toString:function (){return undefined;}}; - var _undefined1 = undefined; - var _undefined2; - var a = new Array(true,0,false,null,1,"undefined",obj,1,_undefined2,_undefined1,undefined); +var obj = { + toString: function() { + return undefined; + } +}; +var _undefined1 = undefined; +var _undefined2; +var a = new Array(true, 0, false, null, 1, "undefined", obj, 1, _undefined2, _undefined1, undefined); assert.sameValue(a.indexOf(undefined), 8, 'a[8]=_undefined2'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-5.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-5.js index 3a31b1477a..8537c3ac30 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-5.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-5.js @@ -7,9 +7,21 @@ es5id: 15.4.4.14-9-5 description: Array.prototype.indexOf must return correct index (Object) ---*/ - var obj1 = {toString:function (){return "false"}}; - var obj2 = {toString:function (){return "false"}}; - var obj3 = obj1; - var a = new Array(false,undefined,0,false,null,{toString:function (){return "false"}},"false",obj2,obj1,obj3); +var obj1 = { + toString: function() { + return "false" + } +}; +var obj2 = { + toString: function() { + return "false" + } +}; +var obj3 = obj1; +var a = new Array(false, undefined, 0, false, null, { + toString: function() { + return "false" + } +}, "false", obj2, obj1, obj3); assert.sameValue(a.indexOf(obj3), 8, 'a[8] = obj1'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-6.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-6.js index adb3280e8a..cb657505bb 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-6.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-6.js @@ -7,8 +7,12 @@ es5id: 15.4.4.14-9-6 description: Array.prototype.indexOf must return correct index(null) ---*/ - var obj = {toString:function (){return null}}; - var _null = null; - var a = new Array(true,undefined,0,false,_null,1,"str",0,1,obj,true,false,null); +var obj = { + toString: function() { + return null + } +}; +var _null = null; +var a = new Array(true, undefined, 0, false, _null, 1, "str", 0, 1, obj, true, false, null); assert.sameValue(a.indexOf(null), 4, 'a[4]=_null'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-7.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-7.js index 33bf64933b..0a8028b4e7 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 86889e4372..7e07ce058f 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 82fc8113c1..800f568bf4 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 0d17a2be4b..043314c607 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 ff6b0a9c8e..4a2797e620 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 6e9587d5a8..65e5043253 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-11.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-11.js @@ -9,21 +9,23 @@ description: > property not to be visited on an Array-like object ---*/ - var arr = { length: 2 }; +var arr = { + length: 2 +}; - Object.defineProperty(arr, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); +Object.defineProperty(arr, "1", { + get: function() { + return 6.99; + }, + configurable: true +}); - Object.defineProperty(arr, "0", { - get: function () { - delete arr[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + delete arr[1]; + return 0; + }, + configurable: true +}); assert.sameValue(Array.prototype.indexOf.call(arr, 6.99), -1, 'Array.prototype.indexOf.call(arr, 6.99)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-12.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-12.js index 172dd11336..d07f4a7102 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 2390e6e7f5..f45f555cf6 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-13.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-13.js @@ -9,16 +9,19 @@ description: > prototype index property not to be visited on an Array-like Object ---*/ - var arr = { 2: 2, length: 20 }; +var arr = { + 2: 2, + length: 20 +}; - Object.defineProperty(arr, "0", { - get: function () { - delete Object.prototype[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + delete Object.prototype[1]; + return 0; + }, + configurable: true +}); - Object.prototype[1] = 1; +Object.prototype[1] = 1; assert.sameValue(Array.prototype.indexOf.call(arr, 1), -1, 'Array.prototype.indexOf.call(arr, 1)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-14.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-14.js index 81cbe7b988..216e4da0b3 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 c7c60d7c43..5c5be6dc92 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-15.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-15.js @@ -10,16 +10,21 @@ description: > Array-like object ---*/ - var arr = { 0: 0, 1: 111, 2: 2, length: 10 }; +var arr = { + 0: 0, + 1: 111, + 2: 2, + length: 10 +}; - Object.defineProperty(arr, "0", { - get: function () { - delete arr[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + delete arr[1]; + return 0; + }, + configurable: true +}); - Object.prototype[1] = 1; +Object.prototype[1] = 1; assert.sameValue(Array.prototype.indexOf.call(arr, 1), 1, 'Array.prototype.indexOf.call(arr, 1)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-16.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-16.js index 707207440e..ed4072719d 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 74a6eddb42..8309a3b86e 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 f1e2fa4f4c..1d728bce1f 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 b30be5fdab..0fab8d12b7 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 a0e8b82956..fac0434b98 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-2.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-2.js @@ -9,15 +9,17 @@ description: > here on an Array-like object ---*/ - var arr = { length: 30 }; - var targetObj = function () { }; +var arr = { + length: 30 +}; +var targetObj = function() {}; - var fromIndex = { - valueOf: function () { - arr[4] = targetObj; - return 3; - } - }; +var fromIndex = { + valueOf: function() { + arr[4] = targetObj; + return 3; + } +}; assert.sameValue(Array.prototype.indexOf.call(arr, targetObj, fromIndex), 4, 'Array.prototype.indexOf.call(arr, targetObj, fromIndex)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-3.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-3.js index 5ac6827ee6..d7954ea908 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 8a5e756c56..1340a1d67b 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-4.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-4.js @@ -9,14 +9,16 @@ description: > here ---*/ - var arr = { 2: 6.99 }; +var arr = { + 2: 6.99 +}; - Object.defineProperty(arr, "length", { - get: function () { - delete arr[2]; - return 3; - }, - configurable: true - }); +Object.defineProperty(arr, "length", { + get: function() { + delete arr[2]; + return 3; + }, + configurable: true +}); assert.sameValue(Array.prototype.indexOf.call(arr, 6.99), -1, 'Array.prototype.indexOf.call(arr, 6.99)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-5.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-5.js index 255c327a3f..926a37aeb5 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-5.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-5.js @@ -9,13 +9,16 @@ description: > here on an Array-like object ---*/ - var arr = { 10: false, length: 30 }; +var arr = { + 10: false, + length: 30 +}; - var fromIndex = { - valueOf: function () { - delete arr[10]; - return 3; - } - }; +var fromIndex = { + valueOf: function() { + delete arr[10]; + return 3; + } +}; assert.sameValue(Array.prototype.indexOf.call(arr, false, fromIndex), -1, 'Array.prototype.indexOf.call(arr, false, fromIndex)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-6.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-6.js index e78f717c3c..41e275c6ce 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 58e38614c5..317816ab65 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-7.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-7.js @@ -9,19 +9,21 @@ description: > current position are visited on an Array-like object ---*/ - var arr = { length: 2 }; +var arr = { + length: 2 +}; - Object.defineProperty(arr, "0", { - get: function () { - Object.defineProperty(arr, "1", { - get: function () { - return 1; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + Object.defineProperty(arr, "1", { + get: function() { + return 1; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); assert.sameValue(Array.prototype.indexOf.call(arr, 1), 1, 'Array.prototype.indexOf.call(arr, 1)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-8.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-8.js index aa43ed573b..af3577d7db 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 e36af343da..22ea6154ae 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-9.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-9.js @@ -9,19 +9,21 @@ description: > after current position are visited on an Array-like object ---*/ - var arr = { length: 2 }; +var arr = { + length: 2 +}; - Object.defineProperty(arr, "0", { - get: function () { - Object.defineProperty(Object.prototype, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + Object.defineProperty(Object.prototype, "1", { + get: function() { + return 6.99; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); assert.sameValue(Array.prototype.indexOf.call(arr, 6.99), 1, 'Array.prototype.indexOf.call(arr, 6.99)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-1.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-1.js index dc8bba8671..211c212ccd 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-1.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-1.js @@ -9,7 +9,12 @@ description: > property on an Array-like object ---*/ - var obj = { 0: 0, 1: 1, 2: 2, length: 3 }; +var obj = { + 0: 0, + 1: 1, + 2: 2, + length: 3 +}; assert.sameValue(Array.prototype.indexOf.call(obj, 0), 0, 'Array.prototype.indexOf.call(obj, 0)'); assert.sameValue(Array.prototype.indexOf.call(obj, 1), 1, 'Array.prototype.indexOf.call(obj, 1)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-10.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-10.js index 8cf69e48dd..af735dd418 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-10.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-10.js @@ -9,27 +9,29 @@ description: > property on an Array-like object ---*/ - var obj = { length: 3 }; - Object.defineProperty(obj, "0", { - get: function () { - return 0; - }, - configurable: true - }); +var obj = { + length: 3 +}; +Object.defineProperty(obj, "0", { + get: function() { + return 0; + }, + configurable: true +}); - Object.defineProperty(obj, "1", { - get: function () { - return 1; - }, - configurable: true - }); +Object.defineProperty(obj, "1", { + get: function() { + return 1; + }, + configurable: true +}); - Object.defineProperty(obj, "2", { - get: function () { - return 2; - }, - configurable: true - }); +Object.defineProperty(obj, "2", { + get: function() { + return 2; + }, + configurable: true +}); assert.sameValue(Array.prototype.indexOf.call(obj, 0), 0, 'Array.prototype.indexOf.call(obj, 0)'); assert.sameValue(Array.prototype.indexOf.call(obj, 1), 1, 'Array.prototype.indexOf.call(obj, 1)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-11.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-11.js index 0d1ca8e702..d744fec56c 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 de13d9f38a..77f337f6b1 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-12.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-12.js @@ -10,14 +10,16 @@ description: > Array-like object ---*/ - var obj = { length: 1 }; +var obj = { + length: 1 +}; - Object.prototype[0] = false; - Object.defineProperty(obj, "0", { - get: function () { - return true; - }, - configurable: true - }); +Object.prototype[0] = false; +Object.defineProperty(obj, "0", { + get: function() { + return true; + }, + configurable: true +}); assert.sameValue(Array.prototype.indexOf.call(obj, true), 0, 'Array.prototype.indexOf.call(obj, true)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-13.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-13.js index 27be95dc60..f260b91bfa 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 265667e71a..b3133a5bcb 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-14.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-14.js @@ -10,20 +10,22 @@ description: > Array-like object ---*/ - var obj = { length: 1 }; +var obj = { + length: 1 +}; - Object.defineProperty(Object.prototype, "0", { - get: function () { - return false; - }, - configurable: true - }); +Object.defineProperty(Object.prototype, "0", { + get: function() { + return false; + }, + configurable: true +}); - Object.defineProperty(obj, "0", { - get: function () { - return true; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + return true; + }, + configurable: true +}); assert.sameValue(Array.prototype.indexOf.call(obj, true), 0, 'Array.prototype.indexOf.call(obj, true)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-15.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-15.js index 44b2da7afd..e9f5b47b76 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 754db8aad4..8a8057ee9f 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-16.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-16.js @@ -9,27 +9,33 @@ description: > accessor property on an Array-like object ---*/ - Object.defineProperty(Object.prototype, "0", { - get: function () { - return 10; - }, - configurable: true - }); +Object.defineProperty(Object.prototype, "0", { + get: function() { + return 10; + }, + configurable: true +}); - Object.defineProperty(Object.prototype, "1", { - get: function () { - return 20; - }, - configurable: true - }); +Object.defineProperty(Object.prototype, "1", { + get: function() { + return 20; + }, + configurable: true +}); - Object.defineProperty(Object.prototype, "2", { - get: function () { - return 30; - }, - configurable: true - }); +Object.defineProperty(Object.prototype, "2", { + get: function() { + return 30; + }, + configurable: true +}); -assert.sameValue(Array.prototype.indexOf.call({ length: 3 }, 10), 0, 'Array.prototype.indexOf.call({ length: 3 }, 10)'); -assert.sameValue(Array.prototype.indexOf.call({ length: 3 }, 20), 1, 'Array.prototype.indexOf.call({ length: 3 }, 20)'); -assert.sameValue(Array.prototype.indexOf.call({ length: 3 }, 30), 2, 'Array.prototype.indexOf.call({ length: 3 }, 30)'); +assert.sameValue(Array.prototype.indexOf.call({ + length: 3 +}, 10), 0, 'Array.prototype.indexOf.call({ length: 3 }, 10)'); +assert.sameValue(Array.prototype.indexOf.call({ + length: 3 +}, 20), 1, 'Array.prototype.indexOf.call({ length: 3 }, 20)'); +assert.sameValue(Array.prototype.indexOf.call({ + length: 3 +}, 30), 2, 'Array.prototype.indexOf.call({ length: 3 }, 30)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-17.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-17.js index 551e2a30e7..9ffbbe16ca 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 4701e3fd8d..e79db90e3b 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-18.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-18.js @@ -9,10 +9,12 @@ description: > property without a get function on an Array-like object ---*/ - var obj = { length: 1 }; - Object.defineProperty(obj, "0", { - set: function () { }, - configurable: true - }); +var obj = { + length: 1 +}; +Object.defineProperty(obj, "0", { + set: function() {}, + configurable: true +}); assert.sameValue(Array.prototype.indexOf.call(obj, undefined), 0, 'Array.prototype.indexOf.call(obj, undefined)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-19.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-19.js index b640d89655..2ded8363e7 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 56508fe508..793084e9e0 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 24144df082..ffc9331489 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 922d2e7ce1..f9fa4d41a2 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-22.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-22.js @@ -9,9 +9,11 @@ description: > accessor property without a get function on an Array-like object ---*/ - Object.defineProperty(Object.prototype, "0", { - set: function () { }, - configurable: true - }); +Object.defineProperty(Object.prototype, "0", { + set: function() {}, + configurable: true +}); -assert.sameValue(Array.prototype.indexOf.call({ length: 1 }, undefined), 0, 'Array.prototype.indexOf.call({ length: 1 }, undefined)'); +assert.sameValue(Array.prototype.indexOf.call({ + length: 1 +}, undefined), 0, 'Array.prototype.indexOf.call({ length: 1 }, undefined)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-25.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-25.js index b2f3bc442a..4e5bb8b13b 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 330ea1966e..caa167d9d5 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 5935f22bae..02017a9292 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 dc9119d68e..2a13283be2 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 1c941586ec..475817a8e8 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-29.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-29.js @@ -9,26 +9,28 @@ description: > iterations on an Array-like object ---*/ - var preIterVisible = false; - var obj = { length: 2 }; +var preIterVisible = false; +var obj = { + length: 2 +}; - Object.defineProperty(obj, "0", { - get: function () { - preIterVisible = true; - return false; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + preIterVisible = true; + return false; + }, + configurable: true +}); - Object.defineProperty(obj, "1", { - get: function () { - if (preIterVisible) { - return true; - } else { - return false; - } - }, - configurable: true - }); +Object.defineProperty(obj, "1", { + get: function() { + if (preIterVisible) { + return true; + } else { + return false; + } + }, + configurable: true +}); assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-3.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-3.js index 1df5d9eb96..84006e81e4 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 440a314480..c2c8d13507 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 9cae879bc5..8977a98939 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-31.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-31.js @@ -9,24 +9,26 @@ description: > exception on an Array-like object ---*/ - var accessed = false; - var obj = { length: 2 }; +var accessed = false; +var obj = { + length: 2 +}; - Object.defineProperty(obj, "0", { - get: function () { - throw new TypeError(); - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + throw new TypeError(); + }, + configurable: true +}); - Object.defineProperty(obj, "1", { - get: function () { - accessed = true; - return true; - }, - configurable: true - }); +Object.defineProperty(obj, "1", { + get: function() { + accessed = true; + return true; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.indexOf.call(obj, true); + Array.prototype.indexOf.call(obj, true); }); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-4.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-4.js index 171ced904f..8920684262 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-4.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-4.js @@ -10,6 +10,10 @@ description: > Array-like object ---*/ - Object.prototype[0] = false; +Object.prototype[0] = false; -assert.sameValue(Array.prototype.indexOf.call({ 0: true, 1: 1, length: 2 }, true), 0, 'Array.prototype.indexOf.call({ 0: true, 1: 1, length: 2 }, true)'); +assert.sameValue(Array.prototype.indexOf.call({ + 0: true, + 1: 1, + length: 2 +}, true), 0, 'Array.prototype.indexOf.call({ 0: true, 1: 1, length: 2 }, true)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-5.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-5.js index 24a4076913..1d4332e749 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 22e410e7d1..4661515c4f 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-6.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-6.js @@ -10,11 +10,15 @@ description: > Array-like object ---*/ - Object.defineProperty(Object.prototype, "0", { - get: function () { - return false; - }, - configurable: true - }); +Object.defineProperty(Object.prototype, "0", { + get: function() { + return false; + }, + configurable: true +}); -assert.sameValue(Array.prototype.indexOf.call({ 0: true, 1: 1, length: 2 }, true), 0, 'Array.prototype.indexOf.call({ 0: true, 1: 1, length: 2 }, true)'); +assert.sameValue(Array.prototype.indexOf.call({ + 0: true, + 1: 1, + length: 2 +}, true), 0, 'Array.prototype.indexOf.call({ 0: true, 1: 1, length: 2 }, true)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-7.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-7.js index 9382abf00c..6344f1784d 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 52e280f1c4..7ac1d98104 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-8.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-8.js @@ -9,10 +9,16 @@ description: > data property on an Array-like object ---*/ - Object.prototype[0] = true; - Object.prototype[1] = false; - Object.prototype[2] = "true"; +Object.prototype[0] = true; +Object.prototype[1] = false; +Object.prototype[2] = "true"; -assert.sameValue(Array.prototype.indexOf.call({ length: 3 }, true), 0, 'Array.prototype.indexOf.call({ length: 3 }, true)'); -assert.sameValue(Array.prototype.indexOf.call({ length: 3 }, false), 1, 'Array.prototype.indexOf.call({ length: 3 }, false)'); -assert.sameValue(Array.prototype.indexOf.call({ length: 3 }, "true"), 2, 'Array.prototype.indexOf.call({ length: 3 }, "true")'); +assert.sameValue(Array.prototype.indexOf.call({ + length: 3 +}, true), 0, 'Array.prototype.indexOf.call({ length: 3 }, true)'); +assert.sameValue(Array.prototype.indexOf.call({ + length: 3 +}, false), 1, 'Array.prototype.indexOf.call({ length: 3 }, false)'); +assert.sameValue(Array.prototype.indexOf.call({ + length: 3 +}, "true"), 2, 'Array.prototype.indexOf.call({ length: 3 }, "true")'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-9.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-9.js index ed295d2011..007bbcc02c 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 8c2c6d709b..9402b5c034 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-ii-1.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-ii-1.js @@ -14,4 +14,6 @@ assert.sameValue(["0"].indexOf(0), -1, '["0"].indexOf(0)'); assert.sameValue([false].indexOf(0), -1, '[false].indexOf(0)'); assert.sameValue([undefined].indexOf(0), -1, '[undefined].indexOf(0)'); assert.sameValue([null].indexOf(0), -1, '[null].indexOf(0)'); -assert.sameValue([[]].indexOf(0), -1, '[[]].indexOf(0)'); +assert.sameValue([ + [] +].indexOf(0), -1, '[[]].indexOf(0)'); diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-ii-11.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-ii-11.js index 8aad97866b..dcce4f0170 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 a593c8ce48..94a30fd4a6 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 1953684e56..002775eac9 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 abb176f63e..9ec63f6c75 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 8d8a730b0e..bbe9801e5b 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 0b9c69bf8d..e9b56c0533 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 3cd42a8324..8a6fbb9809 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 ac019fb798..729580e042 100644 --- a/test/built-ins/Array/prototype/join/S15.4.4.5_A2_T4.js +++ b/test/built-ins/Array/prototype/join/S15.4.4.5_A2_T4.js @@ -16,26 +16,51 @@ var obj = {}; obj.join = Array.prototype.join; //CHECK#1 -obj.length = {valueOf: function() {return 3}}; +obj.length = { + valueOf: function() { + return 3 + } +}; if (obj.join() !== ",,") { $ERROR('#1: obj.length = {valueOf: function() {return 3}} obj.join() === ",,". Actual: ' + (obj.join())); } //CHECK#2 -obj.length = {valueOf: function() {return 3}, toString: function() {return 2}}; +obj.length = { + valueOf: function() { + return 3 + }, + toString: function() { + return 2 + } +}; if (obj.join() !== ",,") { $ERROR('#2: obj.length = {valueOf: function() {return 3}, toString: function() {return 2}} obj.join() === ",,". Actual: ' + (obj.join())); } //CHECK#3 -obj.length = {valueOf: function() {return 3}, toString: function() {return {}}}; +obj.length = { + valueOf: function() { + return 3 + }, + toString: function() { + return {} + } +}; if (obj.join() !== ",,") { $ERROR('#3: obj.length = {valueOf: function() {return 3}, toString: function() {return {}}} obj.join() === ",,". Actual: ' + (obj.join())); } //CHECK#4 try { - obj.length = {valueOf: function() {return 3}, toString: function() {throw "error"}}; + obj.length = { + valueOf: function() { + return 3 + }, + toString: function() { + throw "error" + } + }; if (obj.join() !== ",,") { $ERROR('#4.1: obj.length = {valueOf: function() {return 3}, toString: function() {throw "error"}}; obj.join() === ",". Actual: ' + (obj.join())); } @@ -49,20 +74,38 @@ catch (e) { } //CHECK#5 -obj.length = {toString: function() {return 2}}; +obj.length = { + toString: function() { + return 2 + } +}; if (obj.join() !== ",") { $ERROR('#5: obj.length = {toString: function() {return 2}} obj.join() === ",". Actual: ' + (obj.join())); } //CHECK#6 -obj.length = {valueOf: function() {return {}}, toString: function() {return 2}} +obj.length = { + valueOf: function() { + return {} + }, + toString: function() { + return 2 + } +} if (obj.join() !== ",") { $ERROR('#6: obj.length = {valueOf: function() {return {}}, toString: function() {return 2}} obj.join() === ",". Actual: ' + (obj.join())); } //CHECK#7 try { - obj.length = {valueOf: function() {throw "error"}, toString: function() {return 2}}; + obj.length = { + valueOf: function() { + throw "error" + }, + toString: function() { + return 2 + } + }; obj.join(); $ERROR('#7.1: obj.length = {valueOf: function() {throw "error"}, toString: function() {return 2}}; obj.join() throw "error". Actual: ' + (obj.join())); } @@ -74,7 +117,14 @@ catch (e) { //CHECK#8 try { - obj.length = {valueOf: function() {return {}}, toString: function() {return {}}}; + obj.length = { + valueOf: function() { + return {} + }, + toString: function() { + return {} + } + }; obj.join(); $ERROR('#8.1: obj.length = {valueOf: function() {return {}}, toString: function() {return {}}} obj.join() throw TypeError. Actual: ' + (obj.join())); } diff --git a/test/built-ins/Array/prototype/join/S15.4.4.5_A3.1_T1.js b/test/built-ins/Array/prototype/join/S15.4.4.5_A3.1_T1.js index 2bcd9eead5..a76e7ba020 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 70efad97b8..28925d93e3 100644 --- a/test/built-ins/Array/prototype/join/S15.4.4.5_A3.1_T2.js +++ b/test/built-ins/Array/prototype/join/S15.4.4.5_A3.1_T2.js @@ -10,28 +10,53 @@ description: > String) ---*/ -var x = new Array(0,1,2,3); +var x = new Array(0, 1, 2, 3); //CHECK#1 -var object = {valueOf: function() {return "+"}}; +var object = { + valueOf: function() { + return "+" + } +}; if (x.join(object) !== "0[object Object]1[object Object]2[object Object]3") { $ERROR('#1: var object = {valueOf: function() {return "+"}}; x.join(object) === "0[object Object]1[object Object]2[object Object]3". Actual: ' + (x.join(object))); } //CHECK#2 -var object = {valueOf: function() {return "+"}, toString: function() {return "*"}}; +var object = { + valueOf: function() { + return "+" + }, + toString: function() { + return "*" + } +}; if (x.join(object) !== "0*1*2*3") { $ERROR('#2: var object = {valueOf: function() {return "+"}, toString: function() {return "*"}}; x.join(object) === "0*1*2*3". Actual: ' + (x.join(object))); } //CHECK#3 -var object = {valueOf: function() {return "+"}, toString: function() {return {}}}; +var object = { + valueOf: function() { + return "+" + }, + toString: function() { + return {} + } +}; if (x.join(object) !== "0+1+2+3") { $ERROR('#3: var object = {valueOf: function() {return "+"}, toString: function() {return {}}}; x.join(object) === "0+1+2+3". Actual: ' + (x.join(object))); } //CHECK#4 try { - var object = {valueOf: function() {throw "error"}, toString: function() {return "*"}}; + var object = { + valueOf: function() { + throw "error" + }, + toString: function() { + return "*" + } + }; if (x.join(object) !== "0*1*2*3") { $ERROR('#4.1: var object = {valueOf: function() {throw "error"}, toString: function() {return "*"}}; x.join(object) === "0*1*2*3". Actual: ' + (x.join(object))); } @@ -45,20 +70,38 @@ catch (e) { } //CHECK#5 -var object = {toString: function() {return "*"}}; +var object = { + toString: function() { + return "*" + } +}; if (x.join(object) !== "0*1*2*3") { $ERROR('#5: var object = {toString: function() {return "*"}}; x.join(object) === "0*1*2*3". Actual: ' + (x.join(object))); } //CHECK#6 -var object = {valueOf: function() {return {}}, toString: function() {return "*"}} +var object = { + valueOf: function() { + return {} + }, + toString: function() { + return "*" + } +} if (x.join(object) !== "0*1*2*3") { $ERROR('#6: var object = {valueOf: function() {return {}}, toString: function() {return "*"}}; x.join(object) === "0*1*2*3". Actual: ' + (x.join(object))); } //CHECK#7 try { - var object = {valueOf: function() {return "+"}, toString: function() {throw "error"}}; + var object = { + valueOf: function() { + return "+" + }, + toString: function() { + throw "error" + } + }; x.join(object); $ERROR('#7.1: var object = {valueOf: function() {return "+"}, toString: function() {throw "error"}}; x.join(object) throw "error". Actual: ' + (x.join(object))); } @@ -70,7 +113,14 @@ catch (e) { //CHECK#8 try { - var object = {valueOf: function() {return {}}, toString: function() {return {}}}; + var object = { + valueOf: function() { + return {} + }, + toString: function() { + return {} + } + }; x.join(object); $ERROR('#8.1: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; x.join(object) throw TypeError. Actual: ' + (x.join(object))); } @@ -82,12 +132,16 @@ catch (e) { //CHECK#9 try { - var object = {toString: function() {throw "error"}}; - [].join(object); - $ERROR('#9.1: var object = {toString: function() {throw "error"}}; [].join(object) throw "error". Actual: ' + ([].join(object))); + var object = { + toString: function() { + throw "error" + } + }; + [].join(object); + $ERROR('#9.1: var object = {toString: function() {throw "error"}}; [].join(object) throw "error". Actual: ' + ([].join(object))); } catch (e) { - if (e !== "error") { - $ERROR('#9.2: var object = {toString: function() {throw "error"}}; [].join(object) throw "error". Actual: ' + (e)); - } + if (e !== "error") { + $ERROR('#9.2: var object = {toString: function() {throw "error"}}; [].join(object) throw "error". Actual: ' + (e)); + } } diff --git a/test/built-ins/Array/prototype/join/S15.4.4.5_A3.2_T1.js b/test/built-ins/Array/prototype/join/S15.4.4.5_A3.2_T1.js index f6a4966557..e90ed6ffe7 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 863cead865..4dc0ff12a1 100644 --- a/test/built-ins/Array/prototype/join/S15.4.4.5_A3.2_T2.js +++ b/test/built-ins/Array/prototype/join/S15.4.4.5_A3.2_T2.js @@ -9,21 +9,39 @@ description: If Type(argument) is Object, evaluate ToPrimitive(argument, String) ---*/ //CHECK#1 -var object = {valueOf: function() {return "+"}}; +var object = { + valueOf: function() { + return "+" + } +}; var x = new Array(object); if (x.join() !== "[object Object]") { $ERROR('#1: var object = {valueOf: function() {return "+"}} var x = new Array(object); x.join() === "[object Object]". Actual: ' + (x.join())); } //CHECK#2 -var object = {valueOf: function() {return "+"}, toString: function() {return "*"}}; +var object = { + valueOf: function() { + return "+" + }, + toString: function() { + return "*" + } +}; var x = new Array(object); if (x.join() !== "*") { $ERROR('#2: var object = {valueOf: function() {return "+"}, toString: function() {return "*"}} var x = new Array(object); x.join() === "*". Actual: ' + (x.join())); } //CHECK#3 -var object = {valueOf: function() {return "+"}, toString: function() {return {}}}; +var object = { + valueOf: function() { + return "+" + }, + toString: function() { + return {} + } +}; var x = new Array(object); if (x.join() !== "+") { $ERROR('#3: var object = {valueOf: function() {return "+"}, toString: function() {return {}}} var x = new Array(object); x.join() === "+". Actual: ' + (x.join())); @@ -31,7 +49,14 @@ if (x.join() !== "+") { //CHECK#4 try { - var object = {valueOf: function() {throw "error"}, toString: function() {return "*"}}; + var object = { + valueOf: function() { + throw "error" + }, + toString: function() { + return "*" + } + }; var x = new Array(object); if (x.join() !== "*") { $ERROR('#4.1: var object = {valueOf: function() {throw "error"}, toString: function() {return "*"}} var x = new Array(object); x.join() === "*". Actual: ' + (x.join())); @@ -46,14 +71,25 @@ catch (e) { } //CHECK#5 -var object = {toString: function() {return "*"}}; +var object = { + toString: function() { + return "*" + } +}; var x = new Array(object); if (x.join() !== "*") { $ERROR('#5: var object = {toString: function() {return "*"}} var x = new Array(object); x.join() === "*". Actual: ' + (x.join())); } //CHECK#6 -var object = {valueOf: function() {return {}}, toString: function() {return "*"}} +var object = { + valueOf: function() { + return {} + }, + toString: function() { + return "*" + } +} var x = new Array(object); if (x.join() !== "*") { $ERROR('#6: var object = {valueOf: function() {return {}}, toString: function() {return "*"}} var x = new Array(object); x.join() === "*". Actual: ' + (x.join())); @@ -61,7 +97,14 @@ if (x.join() !== "*") { //CHECK#7 try { - var object = {valueOf: function() {return "+"}, toString: function() {throw "error"}}; + var object = { + valueOf: function() { + return "+" + }, + toString: function() { + throw "error" + } + }; var x = new Array(object); x.join(); $ERROR('#7.1: var object = {valueOf: function() {return "+"}, toString: function() {throw "error"}} var x = new Array(object); x.join() throw "error". Actual: ' + (x.join())); @@ -74,7 +117,14 @@ catch (e) { //CHECK#8 try { - var object = {valueOf: function() {return {}}, toString: function() {return {}}}; + var object = { + valueOf: function() { + return {} + }, + toString: function() { + return {} + } + }; var x = new Array(object); x.join(); $ERROR('#8.1: var object = {valueOf: function() {return {}}, toString: function() {return {}}} var x = new Array(object); x.join() throw TypeError. Actual: ' + (x.join())); diff --git a/test/built-ins/Array/prototype/join/S15.4.4.5_A5_T1.js b/test/built-ins/Array/prototype/join/S15.4.4.5_A5_T1.js index e8e7817939..90ecc5cfff 100644 --- a/test/built-ins/Array/prototype/join/S15.4.4.5_A5_T1.js +++ b/test/built-ins/Array/prototype/join/S15.4.4.5_A5_T1.js @@ -22,7 +22,9 @@ if (x.join() !== "0,1") { Object.prototype[1] = 1; Object.prototype.length = 2; Object.prototype.join = Array.prototype.join; -x = {0:0}; +x = { + 0: 0 +}; if (x.join() !== "0,1") { $ERROR('#2: Object.prototype[1] = 1; Object.prototype.length = 2; Object.prototype.join = Array.prototype.join; x = {0:0}; x.join() === "0,1". Actual: ' + (x.join())); } diff --git a/test/built-ins/Array/prototype/keys/iteration-mutable.js b/test/built-ins/Array/prototype/keys/iteration-mutable.js index c20b26ee95..d2a2ecdbbb 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 39fc4df94e..a1048adc8f 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 f2f1afb8b2..ba6aec098f 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 acfcd13a2a..ed42913de9 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 54d128eb5f..26b2c14920 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 e6a2d81668..8ac92c3852 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 258d52b25c..13cd332841 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 717e839b36..4d0dcb42a6 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 d09b72ba63..ee2d9c1dc9 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 07823a7430..80339e81ed 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 d04aef167e..6a71084ce9 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 1119ac1aaf..840ae225c2 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 5e96b816e2..e35973cd83 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 d623c9beab..9983969957 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 7372b6b1f7..6d69baa7c3 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 5da3312da3..09c37e87c7 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-1.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-1.js @@ -9,7 +9,11 @@ description: > Array-like object ---*/ - var obj = { 1: null, 2: undefined, length: 2 }; +var obj = { + 1: null, + 2: undefined, + length: 2 +}; assert.sameValue(Array.prototype.lastIndexOf.call(obj, null), 1, 'Array.prototype.lastIndexOf.call(obj, null)'); assert.sameValue(Array.prototype.lastIndexOf.call(obj, undefined), -1, 'Array.prototype.lastIndexOf.call(obj, undefined)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-10.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-10.js index a77b62b124..8a17af9c01 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 0ae767b6f0..ab2b9fdd70 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-11.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-11.js @@ -9,10 +9,12 @@ description: > without a get function on an Array-like object ---*/ - var obj = { 0: 1 }; - Object.defineProperty(obj, "length", { - set: function () { }, - configurable: true - }); +var obj = { + 0: 1 +}; +Object.defineProperty(obj, "length", { + set: function() {}, + configurable: true +}); assert.sameValue(Array.prototype.lastIndexOf.call(obj, 1), -1, 'Array.prototype.lastIndexOf.call(obj, 1)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-12.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-12.js index 98cf2147a2..fcd9b41d15 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-12.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-12.js @@ -10,17 +10,19 @@ description: > property on an Array-like object ---*/ - Object.defineProperty(Object.prototype, "length", { - get: function () { - return 20; - }, - configurable: true - }); +Object.defineProperty(Object.prototype, "length", { + get: function() { + return 20; + }, + configurable: true +}); - var obj = { 1: 1 }; - Object.defineProperty(obj, "length", { - set: function () { }, - configurable: true - }); +var obj = { + 1: 1 +}; +Object.defineProperty(obj, "length", { + set: function() {}, + configurable: true +}); assert.sameValue(Array.prototype.lastIndexOf.call(obj, 1), -1, 'Array.prototype.lastIndexOf.call(obj, 1)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-13.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-13.js index 59045d59d4..6f379e8861 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 f88b2b3c84..f47f32dc70 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-14.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-14.js @@ -9,6 +9,9 @@ description: > Array-like object ---*/ - var obj = { 0: null, 1: undefined }; +var obj = { + 0: null, + 1: undefined +}; assert.sameValue(Array.prototype.lastIndexOf.call(obj, null), -1, 'Array.prototype.lastIndexOf.call(obj, null)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-17.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-17.js index 02ea04ddd9..62532d79aa 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 6cf87f6445..f2a6682fe8 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 89565918b6..e5542f0ed6 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 6514929541..134cd566a4 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 b500b9f10e..5d2a8bbf1f 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-3.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-3.js @@ -9,13 +9,15 @@ description: > overrides an inherited data property on an Array-like object ---*/ - var proto = {length: 0}; +var proto = { + length: 0 +}; - var Con = function () {}; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child.length = 2; - child[1] = child; +var child = new Con(); +child.length = 2; +child[1] = child; assert.sameValue(Array.prototype.lastIndexOf.call(child, child), 1, 'Array.prototype.lastIndexOf.call(child, child)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-4.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-4.js index a13cc99a93..0a8f124f3a 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 fa29875100..33e9075e60 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 bfe82a3ac7..05900f832f 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-6.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-6.js @@ -9,14 +9,16 @@ description: > property on an Array-like object ---*/ - var proto = { length: 2 }; +var proto = { + length: 2 +}; - var Con = function () {}; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child[1] = "x"; - child[2] = "y"; +var child = new Con(); +child[1] = "x"; +child[2] = "y"; assert.sameValue(Array.prototype.lastIndexOf.call(child, "x"), 1, 'Array.prototype.lastIndexOf.call(child, "x")'); assert.sameValue(Array.prototype.lastIndexOf.call(child, "y"), -1, 'Array.prototype.lastIndexOf.call(child, "y")'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-7.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-7.js index d5b4431157..4c38da5be2 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-7.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-7.js @@ -9,14 +9,17 @@ description: > an Array-like object ---*/ - var obj = { 1: true, 2: false }; +var obj = { + 1: true, + 2: false +}; - Object.defineProperty(obj, "length", { - get: function () { - return 2; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + return 2; + }, + configurable: true +}); assert.sameValue(Array.prototype.lastIndexOf.call(obj, true), 1, 'Array.prototype.lastIndexOf.call(obj, true)'); assert.sameValue(Array.prototype.lastIndexOf.call(obj, false), -1, 'Array.prototype.lastIndexOf.call(obj, false)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-8.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-8.js index 61f659a699..ef7ea0a519 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-8.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-8.js @@ -9,19 +9,21 @@ description: > that overrides an inherited data property on an Array-like object ---*/ - var proto = { length: 0 }; +var proto = { + length: 0 +}; - var Con = function () {}; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child[1] = eval; +var child = new Con(); +child[1] = eval; - Object.defineProperty(child, "length", { - get: function () { - return 2; - }, - configurable: true - }); +Object.defineProperty(child, "length", { + get: function() { + return 2; + }, + configurable: true +}); assert.sameValue(Array.prototype.lastIndexOf.call(child, eval), 1, 'Array.prototype.lastIndexOf.call(child, eval)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-9.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-9.js index 3e0695eb83..9bc7a8b5bd 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 374141ad0b..1141fd90a1 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-1.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-1.js @@ -7,6 +7,10 @@ es5id: 15.4.4.15-3-1 description: Array.prototype.lastIndexOf - value of 'length' is undefined ---*/ - var obj = { 0: 1, 1: 1, length: undefined }; +var obj = { + 0: 1, + 1: 1, + length: undefined +}; assert.sameValue(Array.prototype.lastIndexOf.call(obj, 1), -1, 'Array.prototype.lastIndexOf.call(obj, 1)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-10.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-10.js index c6da763395..761fd85c13 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-10.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-10.js @@ -9,6 +9,9 @@ description: > is NaN) ---*/ - var obj = { 0: 0, length: NaN }; +var obj = { + 0: 0, + length: NaN +}; assert.sameValue(Array.prototype.lastIndexOf.call(obj, 0), -1, 'Array.prototype.lastIndexOf.call(obj, 0)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-11.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-11.js index f0838068e5..dae527da98 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-11.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-11.js @@ -9,7 +9,11 @@ description: > containing positive number ---*/ - var obj = {1: true, 2: false, length: "2"}; +var obj = { + 1: true, + 2: false, + length: "2" +}; assert.sameValue(Array.prototype.lastIndexOf.call(obj, true), 1, 'Array.prototype.lastIndexOf.call(obj, true)'); assert.sameValue(Array.prototype.lastIndexOf.call(obj, false), -1, 'Array.prototype.lastIndexOf.call(obj, false)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-12.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-12.js index 6811ff35d8..99df97b76d 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-12.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-12.js @@ -9,7 +9,11 @@ description: > containing negative number ---*/ - var obj = {1: null, 2: undefined, length: "-4294967294"}; +var obj = { + 1: null, + 2: undefined, + length: "-4294967294" +}; assert.sameValue(Array.prototype.lastIndexOf.call(obj, null), -1, 'Array.prototype.lastIndexOf.call(obj, null)'); assert.sameValue(Array.prototype.lastIndexOf.call(obj, undefined), -1, 'Array.prototype.lastIndexOf.call(obj, undefined)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-13.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-13.js index afdcf21df2..394744d693 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-13.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-13.js @@ -9,7 +9,11 @@ description: > containing a decimal number ---*/ - var obj = { 4: 4, 5: 5, length: "5.512345" }; +var obj = { + 4: 4, + 5: 5, + length: "5.512345" +}; assert.sameValue(Array.prototype.lastIndexOf.call(obj, 4), 4, 'Array.prototype.lastIndexOf.call(obj, 4)'); assert.sameValue(Array.prototype.lastIndexOf.call(obj, 5), -1, 'Array.prototype.lastIndexOf.call(obj, 5)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-14.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-14.js index a49316794d..3751aeb805 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-14.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-14.js @@ -9,6 +9,10 @@ description: > containing -Infinity ---*/ - var objThree = { 0: true, 1: true, length: "-Infinity" }; +var objThree = { + 0: true, + 1: true, + length: "-Infinity" +}; assert.sameValue(Array.prototype.lastIndexOf.call(objThree, true), -1, 'Array.prototype.lastIndexOf.call(objThree, true)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-15.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-15.js index 281305e13f..cb669fc016 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-15.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-15.js @@ -9,7 +9,11 @@ description: > containing an exponential number ---*/ - var obj = {229: 229, 230: 2.3E2, length: "2.3E2"}; +var obj = { + 229: 229, + 230: 2.3E2, + length: "2.3E2" +}; assert.sameValue(Array.prototype.lastIndexOf.call(obj, 229), 229, 'Array.prototype.lastIndexOf.call(obj, 229)'); assert.sameValue(Array.prototype.lastIndexOf.call(obj, 2.3E2), -1, 'Array.prototype.lastIndexOf.call(obj, 2.3E2)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-16.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-16.js index 6c0e5e388d..653a8ea366 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-16.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-16.js @@ -9,7 +9,11 @@ description: > is able to be converted into hex number ---*/ - var obj = { 2573: 2573, 2574: 0x000A0E, length: "0x000A0E" }; +var obj = { + 2573: 2573, + 2574: 0x000A0E, + length: "0x000A0E" +}; assert.sameValue(Array.prototype.lastIndexOf.call(obj, 2573), 2573, 'Array.prototype.lastIndexOf.call(obj, 2573)'); assert.sameValue(Array.prototype.lastIndexOf.call(obj, 0x000A0E), -1, 'Array.prototype.lastIndexOf.call(obj, 0x000A0E)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-17.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-17.js index c603231587..345e54e146 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-17.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-17.js @@ -9,7 +9,11 @@ description: > containing a number with leading zeros ---*/ - var obj = { 1: 1, 2: 2, length: "0002.0" }; +var obj = { + 1: 1, + 2: 2, + length: "0002.0" +}; assert.sameValue(Array.prototype.lastIndexOf.call(obj, 1), 1, 'Array.prototype.lastIndexOf.call(obj, 1)'); assert.sameValue(Array.prototype.lastIndexOf.call(obj, 2), -1, 'Array.prototype.lastIndexOf.call(obj, 2)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-18.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-18.js index a56ab67a71..76161d8da0 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-18.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-18.js @@ -9,7 +9,10 @@ description: > can't convert to a number ---*/ - var targetObj = new String("123abc123"); - var obj = { 0: targetObj, length: "123abc123" }; +var targetObj = new String("123abc123"); +var obj = { + 0: targetObj, + length: "123abc123" +}; assert.sameValue(Array.prototype.lastIndexOf.call(obj, targetObj), -1, 'Array.prototype.lastIndexOf.call(obj, targetObj)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-19.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-19.js index 419be48569..bbbf635c8b 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 16314cad2c..1f603c3804 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-2.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-2.js @@ -9,7 +9,11 @@ description: > boolean (value is true) ---*/ - var obj = { 0: 0, 1: 1, length: true }; +var obj = { + 0: 0, + 1: 1, + length: true +}; assert.sameValue(Array.prototype.lastIndexOf.call(obj, 0), 0, 'Array.prototype.lastIndexOf.call(obj, 0)'); assert.sameValue(Array.prototype.lastIndexOf.call(obj, 1), -1, 'Array.prototype.lastIndexOf.call(obj, 1)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-20.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-20.js index 56d05e1a12..51df323239 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 d568434fa9..4ffe9d3bfd 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 9624defeb8..69aa3c8f9e 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 a69b33edfc..178517a413 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 31ffe0ed73..08763b5905 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-24.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-24.js @@ -9,7 +9,11 @@ description: > non-integer, ensure truncation occurs in the proper direction ---*/ - var obj = { 122: true, 123: false, length: 123.5 }; +var obj = { + 122: true, + 123: false, + length: 123.5 +}; assert.sameValue(Array.prototype.lastIndexOf.call(obj, true), 122, 'Array.prototype.lastIndexOf.call(obj, true)'); assert.sameValue(Array.prototype.lastIndexOf.call(obj, false), -1, 'Array.prototype.lastIndexOf.call(obj, false)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-25.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-25.js index 12e37f63be..fe78a4e2db 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-25.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-25.js @@ -9,7 +9,11 @@ description: > non-integer ---*/ - var obj = { 1: true, 2: false, length: -4294967294.5 }; +var obj = { + 1: true, + 2: false, + length: -4294967294.5 +}; assert.sameValue(Array.prototype.lastIndexOf.call(obj, true), -1, 'Array.prototype.lastIndexOf.call(obj, true)'); assert.sameValue(Array.prototype.lastIndexOf.call(obj, false), -1, 'Array.prototype.lastIndexOf.call(obj, false)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-28.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-28.js index a28fbc7465..4768053245 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 069585fb21..98bb896dff 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-3.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-3.js @@ -9,6 +9,9 @@ description: > is 0) ---*/ - var obj = { 0: "undefined", length: 0 }; +var obj = { + 0: "undefined", + length: 0 +}; assert.sameValue(Array.prototype.lastIndexOf.call(obj, "undefined"), -1, 'Array.prototype.lastIndexOf.call(obj, "undefined")'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-4.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-4.js index 1c8a99b9cf..5e6cedae92 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-4.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-4.js @@ -9,6 +9,9 @@ description: > is -0) ---*/ - var obj = { 0: true, length: -0 }; +var obj = { + 0: true, + length: -0 +}; assert.sameValue(Array.prototype.lastIndexOf.call(obj, true), -1, 'Array.prototype.lastIndexOf.call(obj, true)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-5.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-5.js index 927ee3daa2..60a1721895 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-5.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-5.js @@ -9,6 +9,9 @@ description: > is +0) ---*/ - var obj = { 0: +0, length: +0 }; +var obj = { + 0: +0, + length: +0 +}; assert.sameValue(Array.prototype.lastIndexOf.call(obj, +0), -1, 'Array.prototype.lastIndexOf.call(obj, +0)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-6.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-6.js index 8aec6c2c1d..5f097dbb01 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-6.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-6.js @@ -9,7 +9,11 @@ description: > is a positive number) ---*/ - var obj = { 99: true, 100: 100, length: 100 }; +var obj = { + 99: true, + 100: 100, + length: 100 +}; assert.sameValue(Array.prototype.lastIndexOf.call(obj, true), 99, 'Array.prototype.lastIndexOf.call(obj, true)'); assert.sameValue(Array.prototype.lastIndexOf.call(obj, 100), -1, 'Array.prototype.lastIndexOf.call(obj, 100)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-7.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-7.js index ff7fbc0d28..8f91298497 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-7.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-7.js @@ -9,7 +9,11 @@ description: > is a negative number) ---*/ - var obj = { 4: -Infinity, 5: Infinity, length: 5 - Math.pow(2, 32) }; +var obj = { + 4: -Infinity, + 5: Infinity, + length: 5 - Math.pow(2, 32) +}; assert.sameValue(Array.prototype.lastIndexOf.call(obj, -Infinity), -1, 'Array.prototype.lastIndexOf.call(obj, -Infinity)'); assert.sameValue(Array.prototype.lastIndexOf.call(obj, Infinity), -1, 'Array.prototype.lastIndexOf.call(obj, Infinity)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-9.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-9.js index 39856e7132..b938783416 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-9.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-9.js @@ -9,6 +9,9 @@ description: > is -Infinity) ---*/ - var obj = { 0: 0, length: -Infinity }; +var obj = { + 0: 0, + length: -Infinity +}; assert.sameValue(Array.prototype.lastIndexOf.call(obj, 0), -1, 'Array.prototype.lastIndexOf.call(obj, 0)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-1.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-1.js index f073190b94..f6fc912532 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 72514438f6..1899442e7a 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-10.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-10.js @@ -7,7 +7,11 @@ es5id: 15.4.4.15-4-10 description: Array.prototype.lastIndexOf - 'length' is a number of value -6e-1 ---*/ - var targetObj = []; - var obj = { 0: targetObj, 100: targetObj, length: -6e-1 }; +var targetObj = []; +var obj = { + 0: targetObj, + 100: targetObj, + length: -6e-1 +}; assert.sameValue(Array.prototype.lastIndexOf.call(obj, targetObj), -1, 'Array.prototype.lastIndexOf.call(obj, targetObj)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-11.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-11.js index fdf1b598e2..cec59b134a 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-11.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-11.js @@ -7,7 +7,11 @@ es5id: 15.4.4.15-4-11 description: Array.prototype.lastIndexOf - 'length' is an empty string ---*/ - var targetObj = []; - var obj = { 0: targetObj, 100: targetObj, length: "" }; +var targetObj = []; +var obj = { + 0: targetObj, + 100: targetObj, + length: "" +}; assert.sameValue(Array.prototype.lastIndexOf.call(obj, targetObj), -1, 'Array.prototype.lastIndexOf.call(obj, targetObj)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-2.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-2.js index ced61de4cc..5ed7ad2496 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-2.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-2.js @@ -9,7 +9,9 @@ description: > overridden to null (type conversion)) ---*/ - var i = Array.prototype.lastIndexOf.call({length: null}, 1); +var i = Array.prototype.lastIndexOf.call({ + length: null +}, 1); assert.sameValue(i, -1, 'i'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-3.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-3.js index 52e2fa68c1..2004e36780 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-3.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-3.js @@ -9,7 +9,9 @@ description: > overridden to false (type conversion)) ---*/ - var i = Array.prototype.lastIndexOf.call({length: false}, 1); +var i = Array.prototype.lastIndexOf.call({ + length: false +}, 1); assert.sameValue(i, -1, 'i'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-4.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-4.js index 592a69274d..b2babee1dd 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-4.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-4.js @@ -9,12 +9,15 @@ description: > 'array' with length 0 ) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = 0; +foo.prototype = new Array(1, 2, 3); - var i = Array.prototype.lastIndexOf.call({length: 0}, 1); +function foo() {} +var f = new foo(); +f.length = 0; + +var i = Array.prototype.lastIndexOf.call({ + length: 0 +}, 1); assert.sameValue(i, -1, 'i'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-5.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-5.js index f664184bc1..9e72015657 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-5.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-5.js @@ -9,7 +9,9 @@ description: > overridden to '0' (type conversion)) ---*/ - var i = Array.prototype.lastIndexOf.call({length: '0'}, 1); +var i = Array.prototype.lastIndexOf.call({ + length: '0' +}, 1); assert.sameValue(i, -1, 'i'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-6.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-6.js index 2a81100b76..1362e14aed 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-6.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-6.js @@ -9,7 +9,13 @@ description: > (subclassed Array, length overridden with obj with valueOf) ---*/ - var i = Array.prototype.lastIndexOf.call({length: { valueOf: function () { return 0;}}}, 1); +var i = Array.prototype.lastIndexOf.call({ + length: { + valueOf: function() { + return 0; + } + } +}, 1); assert.sameValue(i, -1, 'i'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-7.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-7.js index cf238e3e2a..57850a0270 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-7.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-7.js @@ -9,19 +9,30 @@ description: > is object overridden with obj w/o valueOf (toString)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); +foo.prototype = new Array(1, 2, 3); - var o = { toString: function () { return '0';}}; - f.length = o; +function foo() {} +var f = new foo(); - // objects inherit the default valueOf method of the Object object; - // that simply returns the itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. - var i = Array.prototype.lastIndexOf.call({length: { toString: function () { return '0';}}}, 1); +var o = { + toString: function() { + return '0'; + } +}; +f.length = o; + +// objects inherit the default valueOf method of the Object object; +// that simply returns the itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. +var i = Array.prototype.lastIndexOf.call({ + length: { + toString: function() { + return '0'; + } + } +}, 1); assert.sameValue(i, -1, 'i'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-8.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-8.js index 90fdbad630..ae98ed9f0f 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-8.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-8.js @@ -9,20 +9,22 @@ description: > an empty array) ---*/ - // objects inherit the default valueOf method of the Object object; - // that simply returns the itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. - // - // The toString( ) method on Array converts the array elements to strings, - // then returns the result of concatenating these strings, with commas in - // between. An array with no elements converts to the empty string, which - // converts to the number 0. If an array has a single element that is a - // number n, the array converts to a string representation of n, which is - // then converted back to n itself. If an array contains more than one element, - // or if its one element is not a number, the array converts to NaN. - var i = Array.prototype.lastIndexOf.call({length: [ ]}, 1); +// objects inherit the default valueOf method of the Object object; +// that simply returns the itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. +// +// The toString( ) method on Array converts the array elements to strings, +// then returns the result of concatenating these strings, with commas in +// between. An array with no elements converts to the empty string, which +// converts to the number 0. If an array has a single element that is a +// number n, the array converts to a string representation of n, which is +// then converted back to n itself. If an array contains more than one element, +// or if its one element is not a number, the array converts to NaN. +var i = Array.prototype.lastIndexOf.call({ + length: [] +}, 1); assert.sameValue(i, -1, 'i'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-9.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-9.js index 6ebf6b4eb2..7f758adecc 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-9.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-9.js @@ -7,7 +7,11 @@ es5id: 15.4.4.15-4-9 description: Array.prototype.lastIndexOf - 'length' is a number of value 0.1 ---*/ - var targetObj = []; - var obj = { 0: targetObj, 100: targetObj, length: 0.1 }; +var targetObj = []; +var obj = { + 0: targetObj, + 100: targetObj, + length: 0.1 +}; assert.sameValue(Array.prototype.lastIndexOf.call(obj, targetObj), -1, 'Array.prototype.lastIndexOf.call(obj, targetObj)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-1.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-1.js index 44f9403549..f632c5bf9b 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 6a9a11c197..3e6778af66 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 5ed43bf0e6..839e611a8f 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 4e7c34dd90..03d5bc0da8 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 a219b6b67d..ab3089950c 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 973d33cd35..d5bf6c0fa0 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 90b87161fe..acb1c0140c 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 8dc61ceae1..95b4db82b0 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 de7d8cdea7..72a6f16fa0 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 21e3ef508d..d5ec47052d 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 edd857c534..b3bcfbc461 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 2387ba6579..e371687ad8 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 52bcc45648..949b07c4ab 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 c8860be076..8de12b1843 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 0ec967938c..6b977c909b 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 491866633a..dc56d995c4 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 f3538884d7..b2a3da5977 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 9d4e8f5226..f1fd8f73a5 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 5fccb2a9ce..57bf7dfd4f 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 92fef085dd..4d0ad283f4 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 11152525fd..66c4b8c012 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 db105484b3..75aed0966d 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 120641ec7c..f581274c27 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 38614daf9e..72efdc3075 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 e66f4a75ef..033e078b39 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 efe30ad08f..87cf25f0c6 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 f0d4f45ef5..50f0225fab 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 90b73979e9..ba9f6f41db 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-1.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-1.js @@ -7,9 +7,13 @@ es5id: 15.4.4.15-8-1 description: Array.prototype.lastIndexOf must return correct index(boolean) ---*/ - var obj = {toString:function (){return true}}; - var _false = false; - var a = new Array(false,true,false,obj,_false,true,"true", undefined,0,null,1,"str",0,1); +var obj = { + toString: function() { + return true + } +}; +var _false = false; +var a = new Array(false, true, false, obj, _false, true, "true", undefined, 0, null, 1, "str", 0, 1); assert.sameValue(a.lastIndexOf(true), 5, 'a[5]=true'); assert.sameValue(a.lastIndexOf(false), 4, 'a[4] =_false'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-10.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-10.js index c225526866..91f6f3c01a 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-10.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-10.js @@ -10,7 +10,11 @@ es5id: 15.4.4.15-8-10 description: Array.prototype.lastIndexOf must return correct index (NaN) ---*/ - var _NaN = NaN; - var a = new Array("NaN",_NaN,NaN, undefined,0,false,null,{toString:function (){return NaN}},"false"); +var _NaN = NaN; +var a = new Array("NaN", _NaN, NaN, undefined, 0, false, null, { + toString: function() { + return NaN + } +}, "false"); assert.sameValue(a.lastIndexOf(NaN), -1, 'NaN matches nothing, not even itself'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-11.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-11.js index 9e2f6d79af..0fd222276f 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 8dcc8e602a..51273ec3b4 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-2.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-2.js @@ -7,12 +7,16 @@ es5id: 15.4.4.15-8-2 description: Array.prototype.lastIndexOf must return correct index(Number) ---*/ - var obj = {toString:function (){return 0}}; - var one = 1; - var _float = -(4/3); - var a = new Array(+0,true,0,-0, false,undefined,null,"0",obj, _float,-(4/3),-1.3333333333333,"str",one, 1, false); +var obj = { + toString: function() { + return 0 + } +}; +var one = 1; +var _float = -(4 / 3); +var a = new Array(+0, true, 0, -0, false, undefined, null, "0", obj, _float, -(4 / 3), -1.3333333333333, "str", one, 1, false); -assert.sameValue(a.lastIndexOf(-(4/3)), 10, 'a[10]=-(4/3)'); +assert.sameValue(a.lastIndexOf(-(4 / 3)), 10, 'a[10]=-(4/3)'); assert.sameValue(a.lastIndexOf(0), 3, 'a[3] = -0, but using === -0 and 0 are equal'); assert.sameValue(a.lastIndexOf(-0), 3, 'a[3] = -0'); assert.sameValue(a.lastIndexOf(1), 14, 'a[14] = 1'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-3.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-3.js index ba6b3e8261..a1f22e7de8 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-3.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-3.js @@ -7,8 +7,12 @@ es5id: 15.4.4.15-8-3 description: Array.prototype.lastIndexOf must return correct index(string) ---*/ - var obj = {toString:function (){return "false"}}; - var szFalse = "false"; - var a = new Array(szFalse, "false","false1",undefined,0,false,null,1,obj,0); +var obj = { + toString: function() { + return "false" + } +}; +var szFalse = "false"; +var a = new Array(szFalse, "false", "false1", undefined, 0, false, null, 1, obj, 0); assert.sameValue(a.lastIndexOf("false"), 1, 'a.lastIndexOf("false")'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-4.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-4.js index 1c4050783c..e77e8d780b 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-4.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-4.js @@ -7,9 +7,13 @@ es5id: 15.4.4.15-8-4 description: Array.prototype.lastIndexOf must return correct index(undefined) ---*/ - var obj = {toString:function (){return undefined;}}; - var _undefined1 = undefined; - var _undefined2; - var a = new Array(_undefined1,_undefined2,undefined,true,0,false,null,1,"undefined",obj,1); +var obj = { + toString: function() { + return undefined; + } +}; +var _undefined1 = undefined; +var _undefined2; +var a = new Array(_undefined1, _undefined2, undefined, true, 0, false, null, 1, "undefined", obj, 1); assert.sameValue(a.lastIndexOf(undefined), 2, 'a.lastIndexOf(undefined)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-5.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-5.js index afd59f8ac7..2aea2f8ee1 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-5.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-5.js @@ -7,9 +7,21 @@ es5id: 15.4.4.15-8-5 description: Array.prototype.lastIndexOf must return correct index(Object) ---*/ - var obj1 = {toString:function (){return "false"}}; - var obj2 = {toString:function (){return "false"}}; - var obj3 = obj1; - var a = new Array(obj2,obj1,obj3,false,undefined,0,false,null,{toString:function (){return "false"}},"false"); +var obj1 = { + toString: function() { + return "false" + } +}; +var obj2 = { + toString: function() { + return "false" + } +}; +var obj3 = obj1; +var a = new Array(obj2, obj1, obj3, false, undefined, 0, false, null, { + toString: function() { + return "false" + } +}, "false"); assert.sameValue(a.lastIndexOf(obj3), 2, 'a.lastIndexOf(obj3)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-6.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-6.js index c3e542c7c9..18b8888ee7 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-6.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-6.js @@ -7,8 +7,12 @@ es5id: 15.4.4.15-8-6 description: Array.prototype.lastIndexOf must return correct index(null) ---*/ - var obj = {toString:function (){return null}}; - var _null = null; - var a = new Array(true,undefined,0,false,null,1,"str",0,1,null,true,false,undefined,_null,"null",undefined,"str",obj); +var obj = { + toString: function() { + return null + } +}; +var _null = null; +var a = new Array(true, undefined, 0, false, null, 1, "str", 0, 1, null, true, false, undefined, _null, "null", undefined, "str", obj); assert.sameValue(a.lastIndexOf(null), 13, 'a.lastIndexOf(null)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-7.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-7.js index 763dbfe402..543564a91c 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 1cb37a62df..b5676e56d2 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 7c7026a1de..c70075216b 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 71fb4d1b5c..8da0ba48d0 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 5dd88469dd..aa82dc85b3 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 83d4ac5ce5..c7bd8ed99e 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-11.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-11.js @@ -9,21 +9,23 @@ description: > property not to be visited on an Array-like object ---*/ - var arr = { length: 200 }; +var arr = { + length: 200 +}; - Object.defineProperty(arr, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); +Object.defineProperty(arr, "1", { + get: function() { + return 6.99; + }, + configurable: true +}); - Object.defineProperty(arr, "100", { - get: function () { - delete arr[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "100", { + get: function() { + delete arr[1]; + return 0; + }, + configurable: true +}); assert.sameValue(Array.prototype.lastIndexOf.call(arr, 6.99), -1, 'Array.prototype.lastIndexOf.call(arr, 6.99)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-12.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-12.js index 00f8a44fed..e1b6e93ded 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 df702ae217..052114d926 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-13.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-13.js @@ -10,16 +10,19 @@ description: > Object ---*/ - var arr = { 2: 2, length: 20 }; +var arr = { + 2: 2, + length: 20 +}; - Object.defineProperty(arr, "3", { - get: function () { - delete Object.prototype[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "3", { + get: function() { + delete Object.prototype[1]; + return 0; + }, + configurable: true +}); - Object.prototype[1] = 1; +Object.prototype[1] = 1; assert.sameValue(Array.prototype.lastIndexOf.call(arr, 1), -1, 'Array.prototype.lastIndexOf.call(arr, 1)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-14.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-14.js index d86e21b9e2..864c9a8fa4 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 a5ae27fef0..c9ed09f3a7 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-15.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-15.js @@ -10,16 +10,21 @@ description: > on an Array-like object ---*/ - var arr = { 0: 0, 1: 111, 2: 2, length: 10 }; +var arr = { + 0: 0, + 1: 111, + 2: 2, + length: 10 +}; - Object.defineProperty(arr, "6", { - get: function () { - delete arr[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "6", { + get: function() { + delete arr[1]; + return 0; + }, + configurable: true +}); - Object.prototype[1] = 1; +Object.prototype[1] = 1; assert.sameValue(Array.prototype.lastIndexOf.call(arr, 1), 1, 'Array.prototype.lastIndexOf.call(arr, 1)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-16.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-16.js index fce1f7c2c3..49b6f786a3 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 f2bd2ff1fa..5056ac8a27 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 9202ce28e3..a34d8b58e7 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 b5c018d0cf..ca788c2bc0 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 416d33fc89..01d4e44dbf 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-2.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-2.js @@ -9,15 +9,17 @@ description: > visible here on an Array-like object ---*/ - var arr = { length: 30 }; - var targetObj = function () { }; +var arr = { + length: 30 +}; +var targetObj = function() {}; - var fromIndex = { - valueOf: function () { - arr[4] = targetObj; - return 10; - } - }; +var fromIndex = { + valueOf: function() { + arr[4] = targetObj; + return 10; + } +}; assert.sameValue(Array.prototype.lastIndexOf.call(arr, targetObj, fromIndex), 4, 'Array.prototype.lastIndexOf.call(arr, targetObj, fromIndex)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-3.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-3.js index e02d240e52..7ceda1ccdd 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 2846cf6e9e..010ffb36d7 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-4.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-4.js @@ -9,14 +9,16 @@ description: > visible here ---*/ - var arr = { 2: 6.99 }; +var arr = { + 2: 6.99 +}; - Object.defineProperty(arr, "length", { - get: function () { - delete arr[2]; - return 3; - }, - configurable: true - }); +Object.defineProperty(arr, "length", { + get: function() { + delete arr[2]; + return 3; + }, + configurable: true +}); assert.sameValue(Array.prototype.lastIndexOf.call(arr, 6.99), -1, 'Array.prototype.lastIndexOf.call(arr, 6.99)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-5.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-5.js index 4d1c2f8db6..cd592d237c 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-5.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-5.js @@ -9,13 +9,16 @@ description: > visible here on an Array-like object ---*/ - var arr = { 10: false, length: 30 }; +var arr = { + 10: false, + length: 30 +}; - var fromIndex = { - valueOf: function () { - delete arr[10]; - return 15; - } - }; +var fromIndex = { + valueOf: function() { + delete arr[10]; + return 15; + } +}; assert.sameValue(Array.prototype.lastIndexOf.call(arr, false, fromIndex), -1, 'Array.prototype.lastIndexOf.call(arr, false, fromIndex)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-6.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-6.js index 0ad3830b3d..6b23e07f8d 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 af7fc70e58..e64cc5bab4 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-7.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-7.js @@ -9,19 +9,21 @@ description: > after current position are visited on an Array-like object ---*/ - var arr = { length: 8 }; +var arr = { + length: 8 +}; - Object.defineProperty(arr, "4", { - get: function () { - Object.defineProperty(arr, "1", { - get: function () { - return 1; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "4", { + get: function() { + Object.defineProperty(arr, "1", { + get: function() { + return 1; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); assert.sameValue(Array.prototype.lastIndexOf.call(arr, 1), 1, 'Array.prototype.lastIndexOf.call(arr, 1)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-8.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-8.js index c368ef5706..ef7d6b6742 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 412604d03d..d0d856f617 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-9.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-9.js @@ -10,19 +10,21 @@ description: > object ---*/ - var arr = { length: 9 }; +var arr = { + length: 9 +}; - Object.defineProperty(arr, "4", { - get: function () { - Object.defineProperty(Object.prototype, "1", { - get: function () { - return Infinity; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "4", { + get: function() { + Object.defineProperty(Object.prototype, "1", { + get: function() { + return Infinity; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); assert.sameValue(Array.prototype.lastIndexOf.call(arr, Infinity), 1, 'Array.prototype.lastIndexOf.call(arr, Infinity)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-1.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-1.js index 7a4e136a62..3dfe2ffa10 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-1.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-1.js @@ -9,7 +9,12 @@ description: > property on an Array-like object ---*/ - var obj = { 0: 0, 1: 1, 2: 2, length: 3 }; +var obj = { + 0: 0, + 1: 1, + 2: 2, + length: 3 +}; assert.sameValue(Array.prototype.lastIndexOf.call(obj, 0), 0, 'Array.prototype.lastIndexOf.call(obj, 0)'); assert.sameValue(Array.prototype.lastIndexOf.call(obj, 1), 1, 'Array.prototype.lastIndexOf.call(obj, 1)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-10.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-10.js index 38b41bddf6..b60f3beb3b 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-10.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-10.js @@ -9,27 +9,29 @@ description: > accessor property on an Array-like object ---*/ - var obj = { length: 3 }; - Object.defineProperty(obj, "0", { - get: function () { - return 0; - }, - configurable: true - }); +var obj = { + length: 3 +}; +Object.defineProperty(obj, "0", { + get: function() { + return 0; + }, + configurable: true +}); - Object.defineProperty(obj, "1", { - get: function () { - return 1; - }, - configurable: true - }); +Object.defineProperty(obj, "1", { + get: function() { + return 1; + }, + configurable: true +}); - Object.defineProperty(obj, "2", { - get: function () { - return 2; - }, - configurable: true - }); +Object.defineProperty(obj, "2", { + get: function() { + return 2; + }, + configurable: true +}); assert.sameValue(Array.prototype.lastIndexOf.call(obj, 0), 0, 'Array.prototype.lastIndexOf.call(obj, 0)'); assert.sameValue(Array.prototype.lastIndexOf.call(obj, 1), 1, 'Array.prototype.lastIndexOf.call(obj, 1)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-11.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-11.js index 72eb049479..6dfa28831c 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 94fef7d4cf..739d80bb32 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-12.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-12.js @@ -10,14 +10,16 @@ description: > Array-like object ---*/ - var obj = { length: 1 }; +var obj = { + length: 1 +}; - Object.prototype[0] = false; - Object.defineProperty(obj, "0", { - get: function () { - return true; - }, - configurable: true - }); +Object.prototype[0] = false; +Object.defineProperty(obj, "0", { + get: function() { + return true; + }, + configurable: true +}); assert.sameValue(Array.prototype.lastIndexOf.call(obj, true), 0, 'Array.prototype.lastIndexOf.call(obj, true)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-13.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-13.js index bd077110e0..70462919d3 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 9a326f9d47..9662f75bd5 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-14.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-14.js @@ -10,20 +10,22 @@ description: > an Array-like object ---*/ - var obj = { length: 1 }; +var obj = { + length: 1 +}; - Object.defineProperty(Object.prototype, "0", { - get: function () { - return false; - }, - configurable: true - }); +Object.defineProperty(Object.prototype, "0", { + get: function() { + return false; + }, + configurable: true +}); - Object.defineProperty(obj, "0", { - get: function () { - return true; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + return true; + }, + configurable: true +}); assert.sameValue(Array.prototype.lastIndexOf.call(obj, true), 0, 'Array.prototype.lastIndexOf.call(obj, true)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-15.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-15.js index e91eaf66b5..32c4149d88 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 89205ee26e..e8cb635fd9 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-16.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-16.js @@ -9,27 +9,33 @@ description: > accessor property on an Array-like object ---*/ - Object.defineProperty(Object.prototype, "0", { - get: function () { - return 10; - }, - configurable: true - }); +Object.defineProperty(Object.prototype, "0", { + get: function() { + return 10; + }, + configurable: true +}); - Object.defineProperty(Object.prototype, "1", { - get: function () { - return 20; - }, - configurable: true - }); +Object.defineProperty(Object.prototype, "1", { + get: function() { + return 20; + }, + configurable: true +}); - Object.defineProperty(Object.prototype, "2", { - get: function () { - return 30; - }, - configurable: true - }); +Object.defineProperty(Object.prototype, "2", { + get: function() { + return 30; + }, + configurable: true +}); -assert.sameValue(Array.prototype.lastIndexOf.call({ length: 3 }, 10), 0, 'Array.prototype.lastIndexOf.call({ length: 3 }, 10)'); -assert.sameValue(Array.prototype.lastIndexOf.call({ length: 3 }, 20), 1, 'Array.prototype.lastIndexOf.call({ length: 3 }, 20)'); -assert.sameValue(Array.prototype.lastIndexOf.call({ length: 3 }, 30), 2, 'Array.prototype.lastIndexOf.call({ length: 3 }, 30)'); +assert.sameValue(Array.prototype.lastIndexOf.call({ + length: 3 +}, 10), 0, 'Array.prototype.lastIndexOf.call({ length: 3 }, 10)'); +assert.sameValue(Array.prototype.lastIndexOf.call({ + length: 3 +}, 20), 1, 'Array.prototype.lastIndexOf.call({ length: 3 }, 20)'); +assert.sameValue(Array.prototype.lastIndexOf.call({ + length: 3 +}, 30), 2, 'Array.prototype.lastIndexOf.call({ length: 3 }, 30)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-17.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-17.js index 796abed7bd..dc14b777b5 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 65fc004c55..0a9e3a6936 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-18.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-18.js @@ -9,10 +9,12 @@ description: > accessor property without a get function on an Array-like object ---*/ - var obj = { length: 1 }; - Object.defineProperty(obj, "0", { - set: function () { }, - configurable: true - }); +var obj = { + length: 1 +}; +Object.defineProperty(obj, "0", { + set: function() {}, + configurable: true +}); assert.sameValue(Array.prototype.lastIndexOf.call(obj, undefined), 0, 'Array.prototype.lastIndexOf.call(obj, undefined)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-19.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-19.js index 3c9baf0af2..d5ca0b3ee1 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-19.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-19.js @@ -10,18 +10,20 @@ description: > inherited accessor property on an Array-like object ---*/ - var obj = { length: 1 }; +var obj = { + length: 1 +}; - Object.defineProperty(Object.prototype, "0", { - get: function () { - return 20; - }, - configurable: true - }); - Object.defineProperty(obj, "0", { - set: function () { }, - configurable: true - }); +Object.defineProperty(Object.prototype, "0", { + get: function() { + return 20; + }, + configurable: true +}); +Object.defineProperty(obj, "0", { + set: function() {}, + configurable: true +}); assert(obj.hasOwnProperty(0), 'obj.hasOwnProperty(0) !== true'); assert.sameValue(Array.prototype.lastIndexOf.call(obj, undefined), 0, 'Array.prototype.lastIndexOf.call(obj, undefined)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-20.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-20.js index d0c826fd28..1f0b708390 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 71304e7776..ee64326c12 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 735c9cc7aa..8dbf01f642 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-22.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-22.js @@ -9,9 +9,11 @@ description: > accessor property without a get function on an Array-like object ---*/ - Object.defineProperty(Object.prototype, "0", { - set: function () { }, - configurable: true - }); +Object.defineProperty(Object.prototype, "0", { + set: function() {}, + configurable: true +}); -assert.sameValue(Array.prototype.lastIndexOf.call({ length: 1 }, undefined), 0, 'Array.prototype.lastIndexOf.call({ length: 1 }, undefined)'); +assert.sameValue(Array.prototype.lastIndexOf.call({ + length: 1 +}, undefined), 0, 'Array.prototype.lastIndexOf.call({ length: 1 }, undefined)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-25.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-25.js index eeb3f46535..d6806a98ed 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 b568be5483..b4066d7334 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 7936ac8fb1..1d9f678632 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 aa3fa78183..d599c9fa45 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 e73976d938..59ada2f1db 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-29.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-29.js @@ -9,26 +9,28 @@ description: > subsequent iterations on an Array-like object ---*/ - var preIterVisible = false; - var obj = { length: 3 }; +var preIterVisible = false; +var obj = { + length: 3 +}; - Object.defineProperty(obj, "2", { - get: function () { - preIterVisible = true; - return false; - }, - configurable: true - }); +Object.defineProperty(obj, "2", { + get: function() { + preIterVisible = true; + return false; + }, + configurable: true +}); - Object.defineProperty(obj, "1", { - get: function () { - if (preIterVisible) { - return true; - } else { - return false; - } - }, - configurable: true - }); +Object.defineProperty(obj, "1", { + get: function() { + if (preIterVisible) { + return true; + } else { + return false; + } + }, + configurable: true +}); assert.sameValue(Array.prototype.lastIndexOf.call(obj, true), 1, 'Array.prototype.lastIndexOf.call(obj, true)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-3.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-3.js index b292c0f5cd..5b82efe114 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 251c5d4285..15b600383e 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 933d72d123..0d46b3d56c 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-31.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-31.js @@ -9,24 +9,26 @@ description: > exception on an Array-like object ---*/ - var accessed = false; - var obj = { length: 3 }; +var accessed = false; +var obj = { + length: 3 +}; - Object.defineProperty(obj, "2", { - get: function () { - throw new TypeError(); - }, - configurable: true - }); +Object.defineProperty(obj, "2", { + get: function() { + throw new TypeError(); + }, + configurable: true +}); - Object.defineProperty(obj, "1", { - get: function () { - accessed = true; - return true; - }, - configurable: true - }); +Object.defineProperty(obj, "1", { + get: function() { + accessed = true; + return true; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.lastIndexOf.call(obj, true); + Array.prototype.lastIndexOf.call(obj, true); }); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-4.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-4.js index 8f6e11da43..2204423702 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-4.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-4.js @@ -10,6 +10,10 @@ description: > Array-like object ---*/ - Object.prototype[0] = false; +Object.prototype[0] = false; -assert.sameValue(Array.prototype.lastIndexOf.call({ 0: true, 1: 1, length: 2 }, true), 0, 'Array.prototype.lastIndexOf.call({ 0: true, 1: 1, length: 2 }, true)'); +assert.sameValue(Array.prototype.lastIndexOf.call({ + 0: true, + 1: 1, + length: 2 +}, true), 0, 'Array.prototype.lastIndexOf.call({ 0: true, 1: 1, length: 2 }, true)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-5.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-5.js index 771fde968e..aa6921e41a 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 8c2ec33795..70e3914190 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-6.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-6.js @@ -10,11 +10,15 @@ description: > Array-like object ---*/ - Object.defineProperty(Object.prototype, "0", { - get: function () { - return false; - }, - configurable: true - }); +Object.defineProperty(Object.prototype, "0", { + get: function() { + return false; + }, + configurable: true +}); -assert.sameValue(Array.prototype.lastIndexOf.call({ 0: true, 1: 1, length: 2 }, true), 0, 'Array.prototype.lastIndexOf.call({ 0: true, 1: 1, length: 2 }, true)'); +assert.sameValue(Array.prototype.lastIndexOf.call({ + 0: true, + 1: 1, + length: 2 +}, true), 0, 'Array.prototype.lastIndexOf.call({ 0: true, 1: 1, length: 2 }, true)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-7.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-7.js index d38620b988..a3c2f49026 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 fbb0ea0bd0..f06b7bfefc 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-8.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-8.js @@ -9,10 +9,16 @@ description: > data property on an Array-like object ---*/ - Object.prototype[0] = true; - Object.prototype[1] = false; - Object.prototype[2] = "true"; +Object.prototype[0] = true; +Object.prototype[1] = false; +Object.prototype[2] = "true"; -assert.sameValue(Array.prototype.lastIndexOf.call({ length: 3 }, true), 0, 'Array.prototype.lastIndexOf.call({ length: 3 }, true)'); -assert.sameValue(Array.prototype.lastIndexOf.call({ length: 3 }, false), 1, 'Array.prototype.lastIndexOf.call({ length: 3 }, false)'); -assert.sameValue(Array.prototype.lastIndexOf.call({ length: 3 }, "true"), 2, 'Array.prototype.lastIndexOf.call({ length: 3 }, "true")'); +assert.sameValue(Array.prototype.lastIndexOf.call({ + length: 3 +}, true), 0, 'Array.prototype.lastIndexOf.call({ length: 3 }, true)'); +assert.sameValue(Array.prototype.lastIndexOf.call({ + length: 3 +}, false), 1, 'Array.prototype.lastIndexOf.call({ length: 3 }, false)'); +assert.sameValue(Array.prototype.lastIndexOf.call({ + length: 3 +}, "true"), 2, 'Array.prototype.lastIndexOf.call({ length: 3 }, "true")'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-9.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-9.js index a20c0fa5d4..d5ff8a47a3 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 c88bf06b26..953212528e 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-ii-1.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-ii-1.js @@ -14,4 +14,6 @@ assert.sameValue(["0"].lastIndexOf(0), -1, '["0"].lastIndexOf(0)'); assert.sameValue([false].lastIndexOf(0), -1, '[false].lastIndexOf(0)'); assert.sameValue([undefined].lastIndexOf(0), -1, '[undefined].lastIndexOf(0)'); assert.sameValue([null].lastIndexOf(0), -1, '[null].lastIndexOf(0)'); -assert.sameValue([[]].lastIndexOf(0), -1, '[[]].lastIndexOf(0)'); +assert.sameValue([ + [] +].lastIndexOf(0), -1, '[[]].lastIndexOf(0)'); diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-ii-11.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-ii-11.js index 97cbb1fd48..bbe7938890 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 5c1d0c670e..ae16fd014d 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 8f70daaf5c..2c4b6a094d 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 2c47880f48..e756e32f05 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-9-2.js +++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-9-2.js @@ -9,11 +9,18 @@ description: > not access any other properties ---*/ - var accessed = false; - var f = {length: 0}; - Object.defineProperty(f,"0",{get: function () {accessed = true; return 1;}}); +var accessed = false; +var f = { + length: 0 +}; +Object.defineProperty(f, "0", { + get: function() { + accessed = true; + return 1; + } +}); - var i = Array.prototype.lastIndexOf.call(f,1); +var i = Array.prototype.lastIndexOf.call(f, 1); assert.sameValue(i, -1, 'i'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-1-1.js b/test/built-ins/Array/prototype/map/15.4.4.19-1-1.js index 84d3f60dea..15edce5b1e 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 abe5006666..52eb839eba 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 bf14fa9a5e..4858511196 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 ff7c0430cb..ed40782e89 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 72f36faed5..a17d877bd7 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 0beb4afa90..2fc430d6d4 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 2dd146e2aa..a8774bf2fc 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 45316ee3e2..864d017a07 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 94d84f8f9c..3566c0ee49 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 0fd3c3f000..82e9e614e5 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 15ef1ec6d1..6a04e9177d 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 e27b6cabbe..ac9c03bca2 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 ca3f320496..402368ebd8 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 aef3b6dccc..93ca61e4fc 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 73438cef48..82f5918aa3 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 19e77252c4..9e89b6d856 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 431968e00c..9a74b1e09a 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 c0766d9bce..c026c69712 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 2aebd50d9b..93d0ceada0 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-2-12.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-12.js @@ -10,23 +10,26 @@ description: > overrides an inherited accessor property ---*/ - function callbackfn(val, idx, obj) { - return val > 10; - } +function callbackfn(val, idx, obj) { + return val > 10; +} - Object.defineProperty(Object.prototype, "length", { - get: function () { - return 2; - }, - configurable: true - }); +Object.defineProperty(Object.prototype, "length", { + get: function() { + return 2; + }, + configurable: true +}); - var obj = { 0: 12, 1: 11 }; - Object.defineProperty(obj, "length", { - set: function () { }, - configurable: true - }); +var obj = { + 0: 12, + 1: 11 +}; +Object.defineProperty(obj, "length", { + set: function() {}, + configurable: true +}); - var testResult = Array.prototype.map.call(obj, callbackfn); +var testResult = Array.prototype.map.call(obj, callbackfn); assert.sameValue(testResult.length, 0, 'testResult.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-13.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-13.js index 6c59cd21a9..756b3754fe 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 430de15250..6b3f226099 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-2-14.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-14.js @@ -9,12 +9,15 @@ description: > 'length' property doesn't exist ---*/ - function callbackfn(val, idx, obj) { - return val > 10; - } +function callbackfn(val, idx, obj) { + return val > 10; +} - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - var testResult = Array.prototype.map.call(obj, callbackfn); +var testResult = Array.prototype.map.call(obj, callbackfn); assert.sameValue(testResult.length, 0, 'testResult.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-17.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-17.js index 04fd19b43e..28607e1b68 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 524012db22..16f307c0fc 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 60be78877f..c2dbc89e3a 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 028b0c6e05..46aa6c4fbb 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 c6170291e6..4c6c6b18df 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-2-3.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-3.js @@ -9,21 +9,23 @@ description: > own data property that overrides an inherited data property ---*/ - function callbackfn(val, idx, obj) { - return val > 10; - } +function callbackfn(val, idx, obj) { + return val > 10; +} - var proto = { length: 3 }; +var proto = { + length: 3 +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child.length = 2; - child[0] = 12; - child[1] = 11; - child[2] = 9; +var child = new Con(); +child.length = 2; +child[0] = 12; +child[1] = 11; +child[2] = 9; - var testResult = Array.prototype.map.call(child, callbackfn); +var testResult = Array.prototype.map.call(child, callbackfn); assert.sameValue(testResult.length, 2, 'testResult.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-4.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-4.js index 3eff1cd3b4..eab5b1cb3b 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 144505d75f..a636e0655f 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 a08231572e..1cd5e51a2c 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-2-6.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-6.js @@ -9,20 +9,22 @@ description: > inherited data property ---*/ - function callbackfn(val, idx, obj) { - return val > 10; - } +function callbackfn(val, idx, obj) { + return val > 10; +} - var proto = { length: 2 }; +var proto = { + length: 2 +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child[0] = 12; - child[1] = 11; - child[2] = 9; +var child = new Con(); +child[0] = 12; +child[1] = 11; +child[2] = 9; - var testResult = Array.prototype.map.call(child, callbackfn); +var testResult = Array.prototype.map.call(child, callbackfn); assert.sameValue(testResult.length, 2, 'testResult.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-7.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-7.js index da80f49cb7..6853ad8d30 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 45029cd392..abbf6ab285 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-2-8.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-8.js @@ -9,28 +9,30 @@ description: > own accessor property that overrides an inherited data property ---*/ - function callbackfn(val, idx, obj) { - return val > 10; - } +function callbackfn(val, idx, obj) { + return val > 10; +} - var proto = { length: 3 }; +var proto = { + length: 3 +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); +var child = new Con(); - Object.defineProperty(child, "length", { - get: function () { - return 2; - }, - configurable: true - }); +Object.defineProperty(child, "length", { + get: function() { + return 2; + }, + configurable: true +}); - child[0] = 12; - child[1] = 11; - child[2] = 9; +child[0] = 12; +child[1] = 11; +child[2] = 9; - var testResult = Array.prototype.map.call(child, callbackfn); +var testResult = Array.prototype.map.call(child, callbackfn); assert.sameValue(testResult.length, 2, 'testResult.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-9.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-9.js index f587d696f6..043d20e1b4 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 4318f25adf..364277255e 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-3-1.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-1.js @@ -7,12 +7,14 @@ es5id: 15.4.4.19-3-1 description: Array.prototype.map - value of 'length' is undefined ---*/ - function callbackfn(val, idx, obj) { - return val > 10; - } +function callbackfn(val, idx, obj) { + return val > 10; +} - var obj = { length: undefined }; +var obj = { + length: undefined +}; - var newArr = Array.prototype.map.call(obj, callbackfn); +var newArr = Array.prototype.map.call(obj, callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-10.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-10.js index 513b39734d..ec607589a8 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-3-10.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-10.js @@ -7,12 +7,15 @@ es5id: 15.4.4.19-3-10 description: Array.prototype.map - value of 'length' is a number (value is NaN) ---*/ - function callbackfn(val, idx, obj) { - return val < 10; - } +function callbackfn(val, idx, obj) { + return val < 10; +} - var obj = { 0: 9, length: NaN }; +var obj = { + 0: 9, + length: NaN +}; - var newArr = Array.prototype.map.call(obj, callbackfn); +var newArr = Array.prototype.map.call(obj, callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-11.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-11.js index aaa1244064..78210aa745 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-3-11.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-11.js @@ -9,12 +9,17 @@ description: > number ---*/ - function callbackfn(val, idx, obj) { - return val < 10; - } +function callbackfn(val, idx, obj) { + return val < 10; +} - var obj = { 0: 11, 1: 9, 2: 12, length: "2" }; +var obj = { + 0: 11, + 1: 9, + 2: 12, + length: "2" +}; - var newArr = Array.prototype.map.call(obj, callbackfn); +var newArr = Array.prototype.map.call(obj, callbackfn); assert.sameValue(newArr.length, 2, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-12.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-12.js index ca5eb14e62..a355dc5b2b 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-3-12.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-12.js @@ -9,12 +9,17 @@ description: > number ---*/ - function callbackfn(val, idx, obj) { - return val < 10; - } +function callbackfn(val, idx, obj) { + return val < 10; +} - var obj = { 0: 11, 1: 9, 2: 12, length: "-4294967294" }; +var obj = { + 0: 11, + 1: 9, + 2: 12, + length: "-4294967294" +}; - var newArr = Array.prototype.map.call(obj, callbackfn); +var newArr = Array.prototype.map.call(obj, callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-13.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-13.js index 5c0236679e..704ea0f16d 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-3-13.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-13.js @@ -9,12 +9,17 @@ description: > convert to number primitive (value is a decimal number) ---*/ - function callbackfn(val, idx, obj) { - return val < 10; - } +function callbackfn(val, idx, obj) { + return val < 10; +} - var obj = { 0: 11, 1: 9, 2: 12, length: "2.5" }; +var obj = { + 0: 11, + 1: 9, + 2: 12, + length: "2.5" +}; - var newArr = Array.prototype.map.call(obj, callbackfn); +var newArr = Array.prototype.map.call(obj, callbackfn); assert.sameValue(newArr.length, 2, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-14.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-14.js index 7d77ddf00d..1b57ec3679 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-3-14.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-14.js @@ -7,11 +7,14 @@ es5id: 15.4.4.19-3-14 description: Array.prototype.map - 'length' is a string containing Infinity ---*/ - function callbackfn(val, idx, obj) { - return val < 10; - } +function callbackfn(val, idx, obj) { + return val < 10; +} - var obj = { 0: 9, length: "Infinity" }; +var obj = { + 0: 9, + length: "Infinity" +}; assert.throws(RangeError, function() { - Array.prototype.map.call(obj, callbackfn); + Array.prototype.map.call(obj, callbackfn); }); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-15.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-15.js index 180be9ffbb..100952bcde 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-3-15.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-15.js @@ -9,12 +9,17 @@ description: > exponential number ---*/ - function callbackfn(val, idx, obj) { - return val < 10; - } +function callbackfn(val, idx, obj) { + return val < 10; +} - var obj = { 0: 11, 1: 9, 2: 12, length: "2E0" }; +var obj = { + 0: 11, + 1: 9, + 2: 12, + length: "2E0" +}; - var newArr = Array.prototype.map.call(obj, callbackfn); +var newArr = Array.prototype.map.call(obj, callbackfn); assert.sameValue(newArr.length, 2, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-16.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-16.js index 4190366aff..d227a73ec0 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-3-16.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-16.js @@ -7,12 +7,17 @@ es5id: 15.4.4.19-3-16 description: Array.prototype.map - 'length' is a string containing a hex number ---*/ - function callbackfn(val, idx, obj) { - return val < 10; - } +function callbackfn(val, idx, obj) { + return val < 10; +} - var obj = { 0: 11, 1: 9, 2: 12, length: "0x0002" }; +var obj = { + 0: 11, + 1: 9, + 2: 12, + length: "0x0002" +}; - var newArr = Array.prototype.map.call(obj, callbackfn); +var newArr = Array.prototype.map.call(obj, callbackfn); assert.sameValue(newArr.length, 2, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-17.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-17.js index bf76228350..5c7446c41e 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-3-17.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-17.js @@ -9,12 +9,17 @@ description: > number with leading zeros ---*/ - function callbackfn(val, idx, obj) { - return val < 10; - } +function callbackfn(val, idx, obj) { + return val < 10; +} - var obj = { 0: 11, 1: 9, 2: 12, length: "0002.00" }; +var obj = { + 0: 11, + 1: 9, + 2: 12, + length: "0002.00" +}; - var newArr = Array.prototype.map.call(obj, callbackfn); +var newArr = Array.prototype.map.call(obj, callbackfn); assert.sameValue(newArr.length, 2, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-18.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-18.js index 887e799925..bbd1b8b5a0 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-3-18.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-18.js @@ -9,12 +9,14 @@ description: > convert to a number ---*/ - function callbackfn(val, idx, obj) { - return val > 10; - } +function callbackfn(val, idx, obj) { + return val > 10; +} - var obj = { length: "asdf!_" }; +var obj = { + length: "asdf!_" +}; - var newArr = Array.prototype.map.call(obj, callbackfn); +var newArr = Array.prototype.map.call(obj, callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-19.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-19.js index 4a181897f9..2f5e2b414f 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 dc6edd0219..0dae4ae485 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-3-2.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-2.js @@ -9,12 +9,15 @@ description: > (length overridden to true(type conversion)) ---*/ - function callbackfn(val, idx, obj) { - return val > 10; - } +function callbackfn(val, idx, obj) { + return val > 10; +} - var obj = { 0: 11, length: true }; +var obj = { + 0: 11, + length: true +}; - var newArr = Array.prototype.map.call(obj, callbackfn); +var newArr = Array.prototype.map.call(obj, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-20.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-20.js index e980403850..bc431d8a72 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 d1df6df8ec..fb22c73551 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 3365cf226a..a7825b1c13 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 69eb09631f..44269d0816 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 829ee06977..870a5631c4 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 07ed728fc4..3c7138f672 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 4c0c984866..b4c3e3b311 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 647d3c24da..613ab9c8e6 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 bc926871d2..096a0c3236 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-3-3.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-3.js @@ -7,12 +7,15 @@ es5id: 15.4.4.19-3-3 description: Array.prototype.map - value of 'length' is a number (value is 0) ---*/ - function callbackfn(val, idx, obj) { - return val > 10; - } +function callbackfn(val, idx, obj) { + return val > 10; +} - var obj = { 0: 11, length: 0 }; +var obj = { + 0: 11, + length: 0 +}; - var newArr = Array.prototype.map.call(obj, callbackfn); +var newArr = Array.prototype.map.call(obj, callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-4.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-4.js index d0a34ea147..c3d6fbc9cb 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-3-4.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-4.js @@ -7,12 +7,15 @@ es5id: 15.4.4.19-3-4 description: Array.prototype.map - value of 'length' is a number (value is +0) ---*/ - function callbackfn(val, idx, obj) { - return val > 10; - } +function callbackfn(val, idx, obj) { + return val > 10; +} - var obj = { 0: 11, length: +0 }; +var obj = { + 0: 11, + length: +0 +}; - var newArr = Array.prototype.map.call(obj, callbackfn); +var newArr = Array.prototype.map.call(obj, callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-5.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-5.js index d9409340f5..d467cfe172 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-3-5.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-5.js @@ -7,12 +7,15 @@ es5id: 15.4.4.19-3-5 description: Array.prototype.map - value of 'length' is a number (value is -0) ---*/ - function callbackfn(val, idx, obj) { - return val > 10; - } +function callbackfn(val, idx, obj) { + return val > 10; +} - var obj = { 0: 11, length: -0 }; +var obj = { + 0: 11, + length: -0 +}; - var newArr = Array.prototype.map.call(obj, callbackfn); +var newArr = Array.prototype.map.call(obj, callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-6.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-6.js index 6efbf8d0b1..794464e22a 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-3-6.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-6.js @@ -9,12 +9,17 @@ description: > number ---*/ - function callbackfn(val, idx, obj) { - return val > 10; - } +function callbackfn(val, idx, obj) { + return val > 10; +} - var obj = { 0: 10, 1: 12, 2: 9, length: 2 }; +var obj = { + 0: 10, + 1: 12, + 2: 9, + length: 2 +}; - var newArr = Array.prototype.map.call(obj, callbackfn); +var newArr = Array.prototype.map.call(obj, callbackfn); assert.sameValue(newArr.length, 2, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-7.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-7.js index c4b0f1bd4c..a5215ce4fb 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-3-7.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-7.js @@ -9,12 +9,17 @@ description: > number ---*/ - function callbackfn(val, idx, obj) { - return val > 10; - } +function callbackfn(val, idx, obj) { + return val > 10; +} - var obj = { 0: 10, 1: 12, 2: 9, length: -4294967294 }; +var obj = { + 0: 10, + 1: 12, + 2: 9, + length: -4294967294 +}; - var newArr = Array.prototype.map.call(obj, callbackfn); +var newArr = Array.prototype.map.call(obj, callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-8.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-8.js index 6265784775..3677932afd 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-3-8.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-8.js @@ -9,11 +9,14 @@ description: > Infinity) ---*/ - function callbackfn(val, idx, obj) { - return val < 10; - } +function callbackfn(val, idx, obj) { + return val < 10; +} - var obj = { 0: 9, length: Infinity }; +var obj = { + 0: 9, + length: Infinity +}; assert.throws(RangeError, function() { - Array.prototype.map.call(obj, callbackfn); + Array.prototype.map.call(obj, callbackfn); }); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-9.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-9.js index be3cdf24c6..a97e6065ee 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-3-9.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-9.js @@ -9,12 +9,15 @@ description: > -Infinity) ---*/ - function callbackfn(val, idx, obj) { - return val < 10; - } +function callbackfn(val, idx, obj) { + return val < 10; +} - var obj = { 0: 9, length: -Infinity }; +var obj = { + 0: 9, + length: -Infinity +}; - var newArr = Array.prototype.map.call(obj, callbackfn); +var newArr = Array.prototype.map.call(obj, callbackfn); assert.sameValue(newArr.length, 0, 'newArr.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-4-1.js b/test/built-ins/Array/prototype/map/15.4.4.19-4-1.js index 417b73aba7..fc826857a1 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 0b449aa216..74bc391271 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-4-10.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-4-10.js @@ -9,15 +9,18 @@ description: > thrown by step 2 ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - Object.defineProperty(obj, "length", { - get: function () { - throw new Test262Error(); - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + throw new Test262Error(); + }, + configurable: true +}); assert.throws(Test262Error, function() { - Array.prototype.map.call(obj, undefined); + Array.prototype.map.call(obj, undefined); }); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-4-11.js b/test/built-ins/Array/prototype/map/15.4.4.19-4-11.js index 2c9041b64c..5723ab3ed8 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-4-11.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-4-11.js @@ -9,19 +9,22 @@ description: > thrown by step 3 ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - Object.defineProperty(obj, "length", { - get: function () { - return { - toString: function () { - throw new Test262Error(); - } - }; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + return { + toString: function() { + throw new Test262Error(); + } + }; + }, + configurable: true +}); assert.throws(Test262Error, function() { - Array.prototype.map.call(obj, undefined); + Array.prototype.map.call(obj, undefined); }); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-4-12.js b/test/built-ins/Array/prototype/map/15.4.4.19-4-12.js index 68bc278558..45d301f5f4 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 2d440b206d..3df2d5ab4e 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-4-15.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-4-15.js @@ -9,26 +9,28 @@ description: > passing undefined for callbackfn ---*/ - var obj = { 10: 10 }; - var lengthAccessed = false; - var loopAccessed = false; +var obj = { + 10: 10 +}; +var lengthAccessed = false; +var loopAccessed = false; - Object.defineProperty(obj, "length", { - get: function () { - lengthAccessed = true; - return 20; - }, - configurable: true - }); - Object.defineProperty(obj, "0", { - get: function () { - loopAccessed = true; - return 10; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + lengthAccessed = true; + return 20; + }, + configurable: true +}); +Object.defineProperty(obj, "0", { + get: function() { + loopAccessed = true; + return 10; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.map.call(obj); + Array.prototype.map.call(obj); }); assert(lengthAccessed, 'lengthAccessed !== true'); assert.sameValue(loopAccessed, false, 'loopAccessed'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-4-2.js b/test/built-ins/Array/prototype/map/15.4.4.19-4-2.js index b239210714..1da77da817 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 2dd6ecef6a..d6e5f8d341 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 fe5eb72aaa..fe8918bfca 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 0c7a6d5e36..b6c230364a 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 bebc2b0202..df6ccdb90d 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 a52fc2c2be..d795447cb1 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 d9126d50ab..f7914a9410 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-4-8.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-4-8.js @@ -9,18 +9,21 @@ description: > when an exception occurs ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - var accessed = false; +var accessed = false; - Object.defineProperty(obj, "length", { - get: function () { - accessed = true; - return 2; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + accessed = true; + return 2; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.map.call(obj, null); + Array.prototype.map.call(obj, null); }); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-4-9.js b/test/built-ins/Array/prototype/map/15.4.4.19-4-9.js index 5a28ad0178..03ecedcc6a 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-4-9.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-4-9.js @@ -9,22 +9,25 @@ description: > when an exception occurs ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - var accessed = false; +var accessed = false; - Object.defineProperty(obj, "length", { - get: function () { - return { - toString: function () { - accessed = true; - return "2"; - } - }; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + return { + toString: function() { + accessed = true; + return "2"; + } + }; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.map.call(obj, null); + Array.prototype.map.call(obj, null); }); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-1-s.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-1-s.js index 9132028458..a2e997d8b4 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 c9e19110cf..a2b7393a98 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 04fca72a6a..a2c4d150b4 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 945db32b66..98cd84ad18 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 a6bbce103e..0fbcf8f7a9 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 23db7ce3a3..a02c29a9e0 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 a845aa77a0..01a23927ac 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 84e7c7b78a..9dd98f5822 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 b7a7384274..f34254d011 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 acc8b9d408..42d67bbeff 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 9b65b9c5b9..e3032b4f47 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 2da89ea4f2..c2740c110b 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 6bbeebe523..fdb667af1b 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-5-2.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-2.js @@ -7,15 +7,16 @@ es5id: 15.4.4.19-5-2 description: Array.prototype.map - thisArg is Object ---*/ - var res = false; - var o = new Object(); - o.res = true; - function callbackfn(val, idx, obj) - { - return this.res; - } +var res = false; +var o = new Object(); +o.res = true; - var srcArr = [1]; - var resArr = srcArr.map(callbackfn,o); +function callbackfn(val, idx, obj) +{ + return this.res; +} + +var srcArr = [1]; +var resArr = srcArr.map(callbackfn, o); assert.sameValue(resArr[0], true, 'resArr[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-21.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-21.js index f101b1660e..0f105c52ce 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-5-21.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-21.js @@ -8,10 +8,11 @@ description: Array.prototype.map - the global object can be used as thisArg ---*/ var global = this; - function callbackfn(val, idx, obj) { - return this === global; - } - var testResult = [11].map(callbackfn, this); +function callbackfn(val, idx, obj) { + return this === global; +} + +var testResult = [11].map(callbackfn, this); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-22.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-22.js index 9ef42b64e2..1386aa7493 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 29f99094ab..8e7ee98356 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 292dca579a..cb29707e65 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 08e3e062b4..97dd1e7280 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-5-3.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-3.js @@ -7,15 +7,16 @@ es5id: 15.4.4.19-5-3 description: Array.prototype.map - thisArg is Array ---*/ - var res = false; - var a = new Array(); - a.res = true; - function callbackfn(val, idx, obj) - { - return this.res; - } +var res = false; +var a = new Array(); +a.res = true; - var srcArr = [1]; - var resArr = srcArr.map(callbackfn,a); +function callbackfn(val, idx, obj) +{ + return this.res; +} + +var srcArr = [1]; +var resArr = srcArr.map(callbackfn, a); assert.sameValue(resArr[0], true, 'resArr[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-4.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-4.js index 36c4c36ff3..85ee3deec9 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-5-4.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-4.js @@ -9,17 +9,18 @@ description: > template(prototype) ---*/ - var res = false; - function callbackfn(val, idx, obj) - { - return this.res; - } +var res = false; - function foo(){} - foo.prototype.res = true; - var f = new foo(); +function callbackfn(val, idx, obj) +{ + return this.res; +} - var srcArr = [1]; - var resArr = srcArr.map(callbackfn,f); +function foo() {} +foo.prototype.res = true; +var f = new foo(); + +var srcArr = [1]; +var resArr = srcArr.map(callbackfn, f); assert.sameValue(resArr[0], true, 'resArr[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-5.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-5.js index 2e11685499..9568cc3d49 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-5-5.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-5.js @@ -7,17 +7,18 @@ es5id: 15.4.4.19-5-5 description: Array.prototype.map - thisArg is object from object template ---*/ - var res = false; - function callbackfn(val, idx, obj) - { - return this.res; - } +var res = false; - function foo(){} - var f = new foo(); - f.res = true; +function callbackfn(val, idx, obj) +{ + return this.res; +} - var srcArr = [1]; - var resArr = srcArr.map(callbackfn,f); +function foo() {} +var f = new foo(); +f.res = true; + +var srcArr = [1]; +var resArr = srcArr.map(callbackfn, f); assert.sameValue(resArr[0], true, 'resArr[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-6.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-6.js index 8950f71db6..20366e19c6 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-5-6.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-6.js @@ -7,16 +7,17 @@ es5id: 15.4.4.19-5-6 description: Array.prototype.map - thisArg is function ---*/ - var res = false; - function callbackfn(val, idx, obj) - { - return this.res; - } +var res = false; - function foo(){} - foo.res = true; +function callbackfn(val, idx, obj) +{ + return this.res; +} - var srcArr = [1]; - var resArr = srcArr.map(callbackfn,foo); +function foo() {} +foo.res = true; + +var srcArr = [1]; +var resArr = srcArr.map(callbackfn, foo); assert.sameValue(resArr[0], true, 'resArr[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-7.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-7.js index 7bd84eb591..7f11fa6764 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 247bfb3c39..31f536819c 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 2c86c43b8c..b72e54a44a 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 1acfec147f..593496d851 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 eeb0830e84..07255dc87f 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 f1bbd8be5d..17ff67f93e 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 3b6e5a675e..10ef81567f 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 5962cdd901..e488c81494 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-4.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-4.js @@ -9,16 +9,17 @@ description: > Array.length is decreased ---*/ - var callCnt = 0; - function callbackfn(val, idx, obj) - { - srcArr.length = 2; - callCnt++; - return 1; - } +var callCnt = 0; - var srcArr = [1,2,3,4,5]; - var resArr = srcArr.map(callbackfn); +function callbackfn(val, idx, obj) +{ + srcArr.length = 2; + callCnt++; + return 1; +} + +var srcArr = [1, 2, 3, 4, 5]; +var resArr = srcArr.map(callbackfn); assert.sameValue(resArr.length, 5, 'resArr.length'); assert.sameValue(callCnt, 2, 'callCnt'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-5.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-5.js index 85747416a1..969ef76b08 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-5.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-5.js @@ -9,18 +9,19 @@ description: > sparse array ---*/ - var callCnt = 0; - function callbackfn(val, idx, obj) - { - srcArr[1000] = 3; - callCnt++; - return val; - } +var callCnt = 0; - var srcArr = new Array(10); - srcArr[1] = 1; - srcArr[2] = 2; - var resArr = srcArr.map(callbackfn); +function callbackfn(val, idx, obj) +{ + srcArr[1000] = 3; + callCnt++; + return val; +} + +var srcArr = new Array(10); +srcArr[1] = 1; +srcArr[2] = 2; +var resArr = srcArr.map(callbackfn); assert.sameValue(resArr.length, 10, 'resArr.length'); assert.sameValue(callCnt, 2, 'callCnt'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-6.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-6.js index 131558eb44..1a3d4c1755 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 02da272f15..537e153f5c 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 6b3d7146d6..0a9f95ed4b 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-8.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-8.js @@ -9,15 +9,20 @@ description: > on an Array-like object ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return val > 10; - } +var accessed = false; - var obj = { 0: 11, 1: 12, length: 0 }; +function callbackfn(val, idx, obj) { + accessed = true; + return val > 10; +} - var testResult = Array.prototype.map.call(obj, callbackfn); +var obj = { + 0: 11, + 1: 12, + length: 0 +}; + +var testResult = Array.prototype.map.call(obj, callbackfn); assert.sameValue(testResult.length, 0, 'testResult.length'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-9.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-9.js index 397d7a9ff5..5f47a3a63a 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-9.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-9.js @@ -9,23 +9,24 @@ description: > of iterations on an Array ---*/ - var called = 0; - function callbackfn(val, idx, obj) { - called += 1; - return val > 10; - } +var called = 0; - var arr = [9, , 12]; +function callbackfn(val, idx, obj) { + called += 1; + return val > 10; +} - Object.defineProperty(arr, "1", { - get: function () { - arr.length = 2; - return 8; - }, - configurable: true - }); +var arr = [9, , 12]; - var testResult = arr.map(callbackfn); +Object.defineProperty(arr, "1", { + get: function() { + arr.length = 2; + return 8; + }, + configurable: true +}); + +var testResult = arr.map(callbackfn); assert.sameValue(testResult.length, 3, 'testResult.length'); assert.sameValue(called, 2, 'called'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-1.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-1.js index 1c9aa86a7e..ff4a57e8ae 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-1.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-1.js @@ -9,16 +9,17 @@ description: > assigned values ---*/ - var callCnt = 0; - function callbackfn(val, idx, obj) - { - callCnt++; - return 1; - } +var callCnt = 0; - var srcArr = new Array(10); - srcArr[1] = undefined; //explicitly assigning a value - var resArr = srcArr.map(callbackfn); +function callbackfn(val, idx, obj) +{ + callCnt++; + return 1; +} + +var srcArr = new Array(10); +srcArr[1] = undefined; //explicitly assigning a value +var resArr = srcArr.map(callbackfn); assert.sameValue(resArr.length, 10, 'resArr.length'); assert.sameValue(callCnt, 1, 'callCnt'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-10.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-10.js index 040c0b852c..18ef426fb6 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-10.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-10.js @@ -9,21 +9,24 @@ description: > prototype index property not to be visited on an Array-like Object ---*/ - function callbackfn(val, idx, obj) { - return idx === 1 && typeof val === "undefined"; - } - var obj = { 2: 2, length: 20 }; +function callbackfn(val, idx, obj) { + return idx === 1 && typeof val === "undefined"; +} +var obj = { + 2: 2, + length: 20 +}; - Object.defineProperty(obj, "0", { - get: function () { - delete Object.prototype[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + delete Object.prototype[1]; + return 0; + }, + configurable: true +}); - Object.prototype[1] = 1; - var testResult = Array.prototype.map.call(obj, callbackfn); +Object.prototype[1] = 1; +var testResult = Array.prototype.map.call(obj, callbackfn); assert.sameValue(testResult.length, 20, 'testResult.length'); assert.sameValue(typeof testResult[1], "undefined", 'typeof testResult[1]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-11.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-11.js index 58fccded06..d194b572bf 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 0f5e4fc68d..8d6fd84c8c 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-12.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-12.js @@ -10,24 +10,29 @@ description: > Array-like object ---*/ - function callbackfn(val, idx, obj) { - if (idx === 1 && val === 3) { - return false; - } else { - return true; - } - } - var obj = { 0: 0, 1: 1, 2: 2, length: 10 }; +function callbackfn(val, idx, obj) { + if (idx === 1 && val === 3) { + return false; + } else { + return true; + } +} +var obj = { + 0: 0, + 1: 1, + 2: 2, + length: 10 +}; - Object.defineProperty(obj, "0", { - get: function () { - delete obj[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + delete obj[1]; + return 0; + }, + configurable: true +}); - Object.prototype[1] = 3; - var testResult = Array.prototype.map.call(obj, callbackfn); +Object.prototype[1] = 3; +var testResult = Array.prototype.map.call(obj, callbackfn); assert.sameValue(testResult[1], false, 'testResult[1]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-13.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-13.js index f510e09e24..7cea73c735 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 ddef903df1..45131bd9a5 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 1ed9f5ad34..2cf1762a52 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 b12e1aab05..5e5290fdda 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 bc70185364..74108f0927 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 1377383e15..957b9048a1 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-3.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-3.js @@ -7,23 +7,26 @@ es5id: 15.4.4.19-8-b-3 description: Array.prototype.map - deleted properties in step 2 are visible here ---*/ - function callbackfn(val, idx, obj) { - if (idx === 2) { - return false; - } else { - return true; - } - } - var obj = { 2: 6.99, 8: 19 }; +function callbackfn(val, idx, obj) { + if (idx === 2) { + return false; + } else { + return true; + } +} +var obj = { + 2: 6.99, + 8: 19 +}; - Object.defineProperty(obj, "length", { - get: function () { - delete obj[2]; - return 10; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + delete obj[2]; + return 10; + }, + configurable: true +}); - var testResult = Array.prototype.map.call(obj, callbackfn); +var testResult = Array.prototype.map.call(obj, callbackfn); assert.sameValue(typeof testResult[2], "undefined", 'typeof testResult[2]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-4.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-4.js index 8e166666d5..bf1e739fbb 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-4.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-4.js @@ -9,30 +9,32 @@ description: > current position are visited on an Array-like object ---*/ - function callbackfn(val, idx, obj) { - if (idx === 1 && val === 1) { - return false; - } else { - return true; - } - } +function callbackfn(val, idx, obj) { + if (idx === 1 && val === 1) { + return false; + } else { + return true; + } +} - var obj = { length: 2 }; +var obj = { + length: 2 +}; - Object.defineProperty(obj, "0", { - get: function () { - Object.defineProperty(obj, "1", { - get: function () { - return 1; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + Object.defineProperty(obj, "1", { + get: function() { + return 1; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); - var testResult = Array.prototype.map.call(obj, callbackfn); +var testResult = Array.prototype.map.call(obj, callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); assert.sameValue(testResult[1], false, 'testResult[1]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-5.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-5.js index a380501440..c0ca4d2591 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 2f12f0c1e1..6f983455ee 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-6.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-6.js @@ -9,29 +9,31 @@ description: > current position are visited on an Array-like object ---*/ - function callbackfn(val, idx, obj) { - if (idx === 1 && val === 6.99) { - return false; - } else { - return true; - } - } - var obj = { length: 2 }; +function callbackfn(val, idx, obj) { + if (idx === 1 && val === 6.99) { + return false; + } else { + return true; + } +} +var obj = { + length: 2 +}; - Object.defineProperty(obj, "0", { - get: function () { - Object.defineProperty(Object.prototype, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + Object.defineProperty(Object.prototype, "1", { + get: function() { + return 6.99; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); - var testResult = Array.prototype.map.call(obj, callbackfn); +var testResult = Array.prototype.map.call(obj, callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); assert.sameValue(testResult[1], false, 'testResult[1]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-7.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-7.js index fe1b0998cb..5e40ddb273 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 1dd61b31e2..58f3ac9c18 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-8.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-8.js @@ -9,31 +9,33 @@ description: > not to be visited on an Array-like object ---*/ - function callbackfn(val, idx, obj) { - if (idx === 1) { - return false; - } else { - return true; - } - } - var obj = { length: 2 }; +function callbackfn(val, idx, obj) { + if (idx === 1) { + return false; + } else { + return true; + } +} +var obj = { + length: 2 +}; - Object.defineProperty(obj, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); +Object.defineProperty(obj, "1", { + get: function() { + return 6.99; + }, + configurable: true +}); - Object.defineProperty(obj, "0", { - get: function () { - delete obj[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + delete obj[1]; + return 0; + }, + configurable: true +}); - var testResult = Array.prototype.map.call(obj, callbackfn); +var testResult = Array.prototype.map.call(obj, callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); assert.sameValue(typeof testResult[1], "undefined", 'typeof testResult[1]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-9.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-9.js index 1d0cc76407..a1dd861f20 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 8543d0ead6..16b3fe3261 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-1.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-1.js @@ -9,17 +9,20 @@ description: > on an Array-like object ---*/ - var kValue = {}; +var kValue = {}; - function callbackfn(val, idx, obj) { - if (idx === 5) { - return val === kValue; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 5) { + return val === kValue; + } + return false; +} - var obj = { 5: kValue, length: 100 }; +var obj = { + 5: kValue, + length: 100 +}; - var newArr = Array.prototype.map.call(obj, callbackfn); +var newArr = Array.prototype.map.call(obj, callbackfn); assert.sameValue(newArr[5], true, 'newArr[5]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-10.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-10.js index ccf8d3fbd2..f9809a1a58 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 5e8f0eba5a..db7bfa03d3 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-11.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-11.js @@ -10,29 +10,32 @@ description: > Array-like object ---*/ - var kValue = "abc"; +var kValue = "abc"; - function callbackfn(val, idx, obj) { - if (idx === 0) { - return val === kValue; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + return val === kValue; + } + return false; +} - var proto = { 0: 5, length: 2 }; +var proto = { + 0: 5, + length: 2 +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); +var child = new Con(); - Object.defineProperty(child, "0", { - get: function () { - return kValue; - }, - configurable: true - }); +Object.defineProperty(child, "0", { + get: function() { + return kValue; + }, + configurable: true +}); - var testResult = Array.prototype.map.call(child, callbackfn); +var testResult = Array.prototype.map.call(child, callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-12.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-12.js index b233477370..9f61f72be7 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 47c8e86c5d..3ca3d54de9 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-13.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-13.js @@ -10,36 +10,38 @@ description: > Array-like object ---*/ - var kValue = "abc"; - - function callbackfn(val, idx, obj) { - if (idx === 0) { - return val === kValue; - } - return false; - } - - var proto = { length: 2 }; - - Object.defineProperty(proto, "0", { - get: function () { - return 5; - }, - configurable: true - }); - - var Con = function () { }; - Con.prototype = proto; - - var child = new Con(); - - Object.defineProperty(child, "0", { - get: function () { - return kValue; - }, - configurable: true - }); - - var testResult = Array.prototype.map.call(child, callbackfn); +var kValue = "abc"; + +function callbackfn(val, idx, obj) { + if (idx === 0) { + return val === kValue; + } + return false; +} + +var proto = { + length: 2 +}; + +Object.defineProperty(proto, "0", { + get: function() { + return 5; + }, + configurable: true +}); + +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); + +Object.defineProperty(child, "0", { + get: function() { + return kValue; + }, + configurable: true +}); + +var testResult = Array.prototype.map.call(child, callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-14.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-14.js index 57580015db..148bf9dbcb 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 ada617c65b..590dbe8bd0 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-15.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-15.js @@ -9,29 +9,31 @@ description: > accessor property on an Array-like object ---*/ - var kValue = "abc"; +var kValue = "abc"; - function callbackfn(val, idx, obj) { - if (idx === 0) { - return val === kValue; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + return val === kValue; + } + return false; +} - var proto = { length: 2 }; +var proto = { + length: 2 +}; - Object.defineProperty(proto, "0", { - get: function () { - return kValue; - }, - configurable: true - }); +Object.defineProperty(proto, "0", { + get: function() { + return kValue; + }, + configurable: true +}); - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); +var child = new Con(); - var testResult = Array.prototype.map.call(child, callbackfn); +var testResult = Array.prototype.map.call(child, callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-16.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-16.js index 78714aeabb..8be14c2d29 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 2e3f9f9872..9c0a96b09a 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-17.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-17.js @@ -9,20 +9,22 @@ description: > property without a get function on an Array-like object ---*/ - function callbackfn(val, idx, obj) { - if (idx === 1) { - return typeof val === "undefined"; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 1) { + return typeof val === "undefined"; + } + return false; +} - var obj = { length: 2 }; +var obj = { + length: 2 +}; - Object.defineProperty(obj, "1", { - set: function () { }, - configurable: true - }); +Object.defineProperty(obj, "1", { + set: function() {}, + configurable: true +}); - var testResult = Array.prototype.map.call(obj, callbackfn); +var testResult = Array.prototype.map.call(obj, callbackfn); assert.sameValue(testResult[1], true, 'testResult[1]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-18.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-18.js index fda5968c70..142b2878da 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 7589e4c132..f20dbc0985 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 e9fb0f5588..b3c0686e22 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 d73b92a01e..79faa22950 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 09387d3289..d7e36fc415 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-21.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-21.js @@ -9,24 +9,26 @@ description: > accessor property without a get function on an Array-like object ---*/ - function callbackfn(val, idx, obj) { - if (idx === 0) { - return typeof val === "undefined"; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + return typeof val === "undefined"; + } + return false; +} - var proto = { length: 2 }; - Object.defineProperty(proto, "0", { - set: function () { }, - configurable: true - }); +var proto = { + length: 2 +}; +Object.defineProperty(proto, "0", { + set: function() {}, + configurable: true +}); - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); +var child = new Con(); - var testResult = Array.prototype.map.call(child, callbackfn); +var testResult = Array.prototype.map.call(child, callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-22.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-22.js index c45f502b2d..1a4ba76c0e 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 41cff6af1b..74fd1615f9 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 bf4e46b1de..66bb232339 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 3140c2b3bc..c47bd08c3d 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 ba96bfa5b9..142bcdd8d0 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 4e034ba2cc..9d97893b81 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-29.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-29.js @@ -9,39 +9,41 @@ description: > iterations is observed on an Array-like object ---*/ - var preIterVisible = false; - var obj = { length: 2 }; +var preIterVisible = false; +var obj = { + length: 2 +}; - function callbackfn(val, idx, obj) { - if (idx === 0) { - return val === 11; - } else if (idx === 1) { - return val === 9; - } else { - return false; - } - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + return val === 11; + } else if (idx === 1) { + return val === 9; + } else { + return false; + } +} - Object.defineProperty(obj, "0", { - get: function () { - preIterVisible = true; - return 11; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + preIterVisible = true; + return 11; + }, + configurable: true +}); - Object.defineProperty(obj, "1", { - get: function () { - if (preIterVisible) { - return 9; - } else { - return 11; - } - }, - configurable: true - }); +Object.defineProperty(obj, "1", { + get: function() { + if (preIterVisible) { + return 9; + } else { + return 11; + } + }, + configurable: true +}); - var testResult = Array.prototype.map.call(obj, callbackfn); +var testResult = Array.prototype.map.call(obj, callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); assert.sameValue(testResult[1], true, 'testResult[1]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-3.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-3.js index f3d9e7dd90..dac643e4e5 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-3.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-3.js @@ -9,23 +9,26 @@ description: > that overrides an inherited data property on an Array-like object ---*/ - var kValue = "abc"; +var kValue = "abc"; - function callbackfn(val, idx, obj) { - if (idx === 5) { - return val === kValue; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 5) { + return val === kValue; + } + return false; +} - var proto = { 5: 12, length: 10 }; +var proto = { + 5: 12, + length: 10 +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child[5] = kValue; +var child = new Con(); +child[5] = kValue; - var testResult = Array.prototype.map.call(child, callbackfn); +var testResult = Array.prototype.map.call(child, callbackfn); assert.sameValue(testResult[5], true, 'testResult[5]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-30.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-30.js index d9cec7c6b8..cae9865e2e 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-30.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-30.js @@ -9,30 +9,35 @@ description: > terminate iteration on an Array-like object ---*/ - var obj = { 0: 11, 5: 10, 10: 8, length: 20 }; - var accessed = false; +var obj = { + 0: 11, + 5: 10, + 10: 8, + length: 20 +}; +var accessed = false; - function callbackfn(val, idx, obj) { - if (idx > 1) { - accessed = true; - } - } +function callbackfn(val, idx, obj) { + if (idx > 1) { + accessed = true; + } +} - Object.defineProperty(obj, "1", { - get: function () { - throw new RangeError("unhandle exception happened in getter"); - }, - configurable: true - }); +Object.defineProperty(obj, "1", { + get: function() { + throw new RangeError("unhandle exception happened in getter"); + }, + configurable: true +}); - Object.defineProperty(obj, "2", { - get: function () { - accessed = true; - return 100; - }, - configurable: true - }); +Object.defineProperty(obj, "2", { + get: function() { + accessed = true; + return 100; + }, + configurable: true +}); assert.throws(RangeError, function() { - Array.prototype.map.call(obj, callbackfn); + Array.prototype.map.call(obj, callbackfn); }); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-31.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-31.js index 6923f6d8f7..094568212e 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 192dd3f4d5..cf77e37961 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 70b85169b0..cf2c63c9b8 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 c7970fc48f..4c9ae77760 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 9a2b37c7b4..908e1e6b1c 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-7.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-7.js @@ -9,22 +9,25 @@ description: > property on an Array-like object ---*/ - var kValue = "abc"; +var kValue = "abc"; - function callbackfn(val, idx, obj) { - if (idx === 5) { - return val === kValue; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 5) { + return val === kValue; + } + return false; +} - var proto = { 5: kValue, length: 10 }; +var proto = { + 5: kValue, + length: 10 +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); +var child = new Con(); - var newArr = Array.prototype.map.call(child, callbackfn); +var newArr = Array.prototype.map.call(child, callbackfn); assert.sameValue(newArr[5], true, 'newArr[5]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-8.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-8.js index 45597f7ea2..03d312b30e 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 ac0a9750c3..2d58d345f7 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-9.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-9.js @@ -9,24 +9,26 @@ description: > property on an Array-like object ---*/ - var kValue = "abc"; +var kValue = "abc"; - function callbackfn(val, idx, obj) { - if (idx === 0) { - return val === kValue; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + return val === kValue; + } + return false; +} - var obj = { length: 2 }; +var obj = { + length: 2 +}; - Object.defineProperty(obj, "0", { - get: function () { - return kValue; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + return kValue; + }, + configurable: true +}); - var testResult = Array.prototype.map.call(obj, callbackfn); +var testResult = Array.prototype.map.call(obj, callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-1.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-1.js index d5ad9c8f93..94a0fad1d3 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-1.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-1.js @@ -7,18 +7,19 @@ es5id: 15.4.4.19-8-c-ii-1 description: Array.prototype.map - callbackfn called with correct parameters ---*/ - var bPar = true; - var bCalled = false; - function callbackfn(val, idx, obj) - { - bCalled = true; - if(obj[idx] !== val) - bPar = false; - } +var bPar = true; +var bCalled = false; - var srcArr = [0,1,true,null,new Object(),"five"]; - srcArr[999999] = -6.6; - var resArr = srcArr.map(callbackfn); +function callbackfn(val, idx, obj) +{ + bCalled = true; + if (obj[idx] !== val) + bPar = false; +} + +var srcArr = [0, 1, true, null, new Object(), "five"]; +srcArr[999999] = -6.6; +var resArr = srcArr.map(callbackfn); assert.sameValue(bCalled, true, 'bCalled'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-10.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-10.js index 2602ab100d..546a841428 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 4bfbc76db2..503c65ad35 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 8919089d12..d97ab07072 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 35523402a3..cf89b22597 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 be5f0d3c73..bc4d4dce5d 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-16.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-16.js @@ -9,12 +9,15 @@ description: > a boolean primitive) ---*/ - function callbackfn(val, idx, obj) { - return this.valueOf() === false; - } +function callbackfn(val, idx, obj) { + return this.valueOf() === false; +} - var obj = { 0: 11, length: 2 }; +var obj = { + 0: 11, + length: 2 +}; - var testResult = Array.prototype.map.call(obj, callbackfn, false); +var testResult = Array.prototype.map.call(obj, callbackfn, false); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-17.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-17.js index dd16accb11..e095ed03e5 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-17.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-17.js @@ -9,12 +9,15 @@ description: > a number) ---*/ - function callbackfn(val, idx, obj) { - return this.valueOf() === 5; - } +function callbackfn(val, idx, obj) { + return this.valueOf() === 5; +} - var obj = { 0: 11, length: 2 }; +var obj = { + 0: 11, + length: 2 +}; - var testResult = Array.prototype.map.call(obj, callbackfn, 5); +var testResult = Array.prototype.map.call(obj, callbackfn, 5); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-18.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-18.js index 2fbb0a5b1e..90501719bb 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-18.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-18.js @@ -9,12 +9,15 @@ description: > a string primitive) ---*/ - function callbackfn(val, idx, obj) { - return this.valueOf() === "hello!"; - } +function callbackfn(val, idx, obj) { + return this.valueOf() === "hello!"; +} - var obj = { 0: 11, length: 2 }; +var obj = { + 0: 11, + length: 2 +}; - var testResult = Array.prototype.map.call(obj, callbackfn, "hello!"); +var testResult = Array.prototype.map.call(obj, callbackfn, "hello!"); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-19.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-19.js index 58f038dbcd..a638a31262 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-19.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-19.js @@ -7,20 +7,24 @@ es5id: 15.4.4.19-8-c-ii-19 description: Array.prototype.map - non-indexed properties are not called. ---*/ - var called = 0; - var result = false; +var called = 0; +var result = false; - function callbackfn(val, idx, obj) { - called++; - if (val === 11) { - result = true; - } - return true; - } +function callbackfn(val, idx, obj) { + called++; + if (val === 11) { + result = true; + } + return true; +} - var obj = { 0: 9, non_index_property: 11, length: 20 }; +var obj = { + 0: 9, + non_index_property: 11, + length: 20 +}; - var testResult = Array.prototype.map.call(obj, callbackfn); +var testResult = Array.prototype.map.call(obj, callbackfn); assert.sameValue(result, false, 'result'); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-2.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-2.js index b405b41c5e..34a8c1a411 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-2.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-2.js @@ -7,17 +7,18 @@ es5id: 15.4.4.19-8-c-ii-2 description: Array.prototype.map - callbackfn takes 3 arguments ---*/ - var parCnt = 3; - var bCalled = false - function callbackfn(val, idx, obj) - { - bCalled = true; - if(arguments.length !== 3) - parCnt = arguments.length; //verify if callbackfn was called with 3 parameters - } +var parCnt = 3; +var bCalled = false - var srcArr = [0,1,2,3,4,5,6,7,8,9]; - var resArr = srcArr.map(callbackfn); +function callbackfn(val, idx, obj) +{ + bCalled = true; + if (arguments.length !== 3) + parCnt = arguments.length; //verify if callbackfn was called with 3 parameters +} + +var srcArr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; +var resArr = srcArr.map(callbackfn); assert.sameValue(bCalled, true, 'bCalled'); assert.sameValue(parCnt, 3, 'parCnt'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-20.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-20.js index ddb5857626..96f50c481c 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-20.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-20.js @@ -9,14 +9,20 @@ description: > (thisArg is correct) ---*/ - function callbackfn(val, idx, obj) { - return this.threshold === 10; - } +function callbackfn(val, idx, obj) { + return this.threshold === 10; +} - var thisArg = { threshold: 10 }; +var thisArg = { + threshold: 10 +}; - var obj = { 0: 11, 1: 9, length: 2 }; +var obj = { + 0: 11, + 1: 9, + length: 2 +}; - var testResult = Array.prototype.map.call(obj, callbackfn, thisArg); +var testResult = Array.prototype.map.call(obj, callbackfn, thisArg); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-21.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-21.js index b4f908ac83..50cd9a2cdd 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-21.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-21.js @@ -9,21 +9,25 @@ description: > (kValue is correct) ---*/ - function callbackfn(val, idx, obj) { - if (idx === 0) { - return val === 11; - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + return val === 11; + } - if (idx === 1) { - return val === 12; - } + if (idx === 1) { + return val === 12; + } - return false; - } + return false; +} - var obj = { 0: 11, 1: 12, length: 2 }; +var obj = { + 0: 11, + 1: 12, + length: 2 +}; - var testResult = Array.prototype.map.call(obj, callbackfn); +var testResult = Array.prototype.map.call(obj, callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); assert.sameValue(testResult[1], true, 'testResult[1]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-22.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-22.js index 7da27f9ee1..a5a30861ad 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-22.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-22.js @@ -9,21 +9,25 @@ description: > (the index k is correct) ---*/ - function callbackfn(val, idx, obj) { - if (val === 11) { - return idx === 0; - } +function callbackfn(val, idx, obj) { + if (val === 11) { + return idx === 0; + } - if (val === 12) { - return idx === 1; - } + if (val === 12) { + return idx === 1; + } - return false; - } + return false; +} - var obj = { 0: 11, 1: 12, length: 2 }; +var obj = { + 0: 11, + 1: 12, + length: 2 +}; - var testResult = Array.prototype.map.call(obj, callbackfn); +var testResult = Array.prototype.map.call(obj, callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); assert.sameValue(testResult[1], true, 'testResult[1]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-23.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-23.js index 78575602e7..fd14317056 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-23.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-23.js @@ -9,12 +9,15 @@ description: > (this object O is correct) ---*/ - var obj = { 0: 11, length: 2 }; +var obj = { + 0: 11, + length: 2 +}; - function callbackfn(val, idx, o) { - return obj === o; - } +function callbackfn(val, idx, o) { + return obj === o; +} - var testResult = Array.prototype.map.call(obj, callbackfn); +var testResult = Array.prototype.map.call(obj, callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-4.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-4.js index b47ecdde1b..5fe857f933 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-4.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-4.js @@ -7,20 +7,21 @@ es5id: 15.4.4.19-8-c-ii-4 description: Array.prototype.map - k values are passed in acending numeric order ---*/ - var arr = [0, 1, 2, 3, 4, 5]; - var lastIdx = 0; - var called = 0; - var result = true; - function callbackfn(val, idx, o) { - called++; - if (lastIdx !== idx) { - result = false; - } else { - lastIdx++; - } - } +var arr = [0, 1, 2, 3, 4, 5]; +var lastIdx = 0; +var called = 0; +var result = true; - arr.map(callbackfn); +function callbackfn(val, idx, o) { + called++; + if (lastIdx !== idx) { + result = false; + } else { + lastIdx++; + } +} + +arr.map(callbackfn); assert(result, 'result !== true'); assert.sameValue(arr.length, called, 'arr.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-5.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-5.js index fa7136b471..d0d8859c67 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 880856724b..7ac9796c3e 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-6.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-6.js @@ -7,16 +7,19 @@ es5id: 15.4.4.19-8-c-ii-6 description: Array.prototype.map - arguments to callbackfn are self consistent. ---*/ - var obj = { 0: 11, length: 1 }; - var thisArg = {}; +var obj = { + 0: 11, + length: 1 +}; +var thisArg = {}; - function callbackfn() { - return this === thisArg && - arguments[0] === 11 && - arguments[1] === 0 && - arguments[2] === obj; - } +function callbackfn() { + return this === thisArg && + arguments[0] === 11 && + arguments[1] === 0 && + arguments[2] === obj; +} - var testResult = Array.prototype.map.call(obj, callbackfn, thisArg); +var testResult = Array.prototype.map.call(obj, callbackfn, thisArg); assert.sameValue(testResult[0], true, 'testResult[0]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-7.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-7.js index 346adb6c95..0ae5970fef 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-7.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-7.js @@ -9,19 +9,24 @@ description: > terminate iteration ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - if (idx > 0) { - accessed = true; - } - if (idx === 0) { - throw new Error("Exception occurred in callbackfn"); - } - } +function callbackfn(val, idx, obj) { + if (idx > 0) { + accessed = true; + } + if (idx === 0) { + throw new Error("Exception occurred in callbackfn"); + } +} - var obj = { 0: 11, 4: 10, 10: 8, length: 20 }; +var obj = { + 0: 11, + 4: 10, + 10: 8, + length: 20 +}; assert.throws(Error, function() { - Array.prototype.map.call(obj, callbackfn); + Array.prototype.map.call(obj, callbackfn); }); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-8.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-8.js index 467f3589af..e4e4d231da 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-8.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-8.js @@ -9,15 +9,19 @@ description: > iterations is observed ---*/ - var obj = { 0: 9, 1: 12, length: 2 }; +var obj = { + 0: 9, + 1: 12, + length: 2 +}; - function callbackfn(val, idx, o) { - if (idx === 0) { - obj[idx + 1] = 8; - } - return val > 10; - } +function callbackfn(val, idx, o) { + if (idx === 0) { + obj[idx + 1] = 8; + } + return val > 10; +} - var testResult = Array.prototype.map.call(obj, callbackfn); +var testResult = Array.prototype.map.call(obj, callbackfn); assert.sameValue(testResult[1], false, 'testResult[1]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-9.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-9.js index 88f74819ad..3554ac85b5 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 b3fa6ffcc2..5f759befbe 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 999460193c..6f5cbb81bb 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-2.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-2.js @@ -9,12 +9,16 @@ description: > 'mappedValue' ---*/ - function callbackfn(val, idx, obj) { - return val; - } +function callbackfn(val, idx, obj) { + return val; +} - var obj = { 0: 11, 1: 9, length: 2 }; - var newArr = Array.prototype.map.call(obj, callbackfn); +var obj = { + 0: 11, + 1: 9, + length: 2 +}; +var newArr = Array.prototype.map.call(obj, callbackfn); assert.sameValue(newArr[0], obj[0], 'newArr[0]'); assert.sameValue(newArr[1], obj[1], 'newArr[1]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-3.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-3.js index fed4c1424e..7525d1b0c0 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-3.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-3.js @@ -9,14 +9,18 @@ description: > overwritten ---*/ - function callbackfn(val, idx, obj) { - return 11; - } +function callbackfn(val, idx, obj) { + return 11; +} - var obj = { 0: 11, 1: 9, length: 2 }; - var newArr = Array.prototype.map.call(obj, callbackfn); +var obj = { + 0: 11, + 1: 9, + length: 2 +}; +var newArr = Array.prototype.map.call(obj, callbackfn); - var tempVal = newArr[1]; - newArr[1] += 1; +var tempVal = newArr[1]; +newArr[1] += 1; assert.notSameValue(newArr[1], tempVal, 'newArr[1]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-4.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-4.js index f15aad4f1c..4b918884d4 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-4.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-4.js @@ -9,21 +9,24 @@ description: > enumerated ---*/ - function callbackfn(val, idx, obj) { - return true; - } +function callbackfn(val, idx, obj) { + return true; +} - var obj = { 0: 11, length: 2 }; - var newArr = Array.prototype.map.call(obj, callbackfn); +var obj = { + 0: 11, + length: 2 +}; +var newArr = Array.prototype.map.call(obj, callbackfn); - var prop; - var enumerable = false; - for (prop in newArr) { - if (newArr.hasOwnProperty(prop)) { - if (prop === "0") { - enumerable = true; - } - } - } +var prop; +var enumerable = false; +for (prop in newArr) { + if (newArr.hasOwnProperty(prop)) { + if (prop === "0") { + enumerable = true; + } + } +} assert(enumerable, 'enumerable !== true'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-5.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-5.js index 4bb7b42ff0..44eaea59e1 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-5.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-5.js @@ -9,15 +9,19 @@ description: > changed or deleted ---*/ - function callbackfn(val, idx, obj) { - return true; - } +function callbackfn(val, idx, obj) { + return true; +} - var obj = { 0: 11, 1: 9, length: 2 }; - var newArr = Array.prototype.map.call(obj, callbackfn); +var obj = { + 0: 11, + 1: 9, + length: 2 +}; +var newArr = Array.prototype.map.call(obj, callbackfn); - var tempVal = newArr[1]; - delete newArr[1]; +var tempVal = newArr[1]; +delete newArr[1]; assert.notSameValue(tempVal, undefined, 'tempVal'); assert.sameValue(newArr[1], undefined, 'newArr[1]'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-9-1.js b/test/built-ins/Array/prototype/map/15.4.4.19-9-1.js index daabdf4cba..a9cb1f51e8 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 1b1854f44f..5407e1ee9e 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 f8c6a295f8..aa0fd88912 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 41b4e362b5..9ae64cd57a 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 d4c208ccdf..f84a937eec 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 c876d7f0aa..cc3657e87c 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 f89f39c9c3..815868a482 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-9-3.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-9-3.js @@ -7,13 +7,14 @@ es5id: 15.4.4.19-9-3 description: Array.prototype.map - subclassed array when length is reduced ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = 1; +foo.prototype = new Array(1, 2, 3); - function cb(){} - var a = f.map(cb); +function foo() {} +var f = new foo(); +f.length = 1; + +function cb() {} +var a = f.map(cb); assert(Array.isArray(a), 'Array.isArray(a) !== true'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-9-4.js b/test/built-ins/Array/prototype/map/15.4.4.19-9-4.js index f27f93bf09..3c01de3d0a 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-9-4.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-9-4.js @@ -7,15 +7,16 @@ es5id: 15.4.4.19-9-4 description: Array.prototype.map doesn't visit expandos ---*/ - var callCnt = 0; - function callbackfn(val, idx, obj) - { - callCnt++; - } - var srcArr = [1,2,3,4,5]; - srcArr["i"] = 10; - srcArr[true] = 11; +var callCnt = 0; - var resArr = srcArr.map(callbackfn); +function callbackfn(val, idx, obj) +{ + callCnt++; +} +var srcArr = [1, 2, 3, 4, 5]; +srcArr["i"] = 10; +srcArr[true] = 11; + +var resArr = srcArr.map(callbackfn); assert.sameValue(callCnt, 5, 'callCnt'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-9-5.js b/test/built-ins/Array/prototype/map/15.4.4.19-9-5.js index 84ca53f152..6c04bb72e4 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-9-5.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-9-5.js @@ -9,12 +9,16 @@ description: > (empty array) ---*/ - function callbackfn(val, idx, obj) { - return val > 10; - } +function callbackfn(val, idx, obj) { + return val > 10; +} - var obj = { 0: 9, 1: 8, length: 0 }; +var obj = { + 0: 9, + 1: 8, + length: 0 +}; - var testResult = Array.prototype.map.call(obj, callbackfn); +var testResult = Array.prototype.map.call(obj, callbackfn); assert.sameValue(testResult.length, 0, 'testResult.length'); diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-9-6.js b/test/built-ins/Array/prototype/map/15.4.4.19-9-6.js index e2adc884c2..a44859e171 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 b6ebf35ee2..3370cc36ca 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 fe1e1f5e4d..9e08d61d39 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 31d18a8079..73425afa10 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 b020704a2a..505b661cee 100644 --- a/test/built-ins/Array/prototype/map/create-ctor-non-object.js +++ b/test/built-ins/Array/prototype/map/create-ctor-non-object.js @@ -20,7 +20,9 @@ info: | var a = []; var callCount = 0; -var cb = function() { callCount += 0; }; +var cb = function() { + callCount += 0; +}; a.constructor = null; assert.throws(TypeError, function() { diff --git a/test/built-ins/Array/prototype/map/create-ctor-poisoned.js b/test/built-ins/Array/prototype/map/create-ctor-poisoned.js index f99c51bdd1..39318bb94e 100644 --- a/test/built-ins/Array/prototype/map/create-ctor-poisoned.js +++ b/test/built-ins/Array/prototype/map/create-ctor-poisoned.js @@ -17,7 +17,9 @@ info: | var a = []; var callCount = 0; -var cb = function() { callCount += 1; }; +var cb = function() { + callCount += 1; +}; Object.defineProperty(a, 'constructor', { get: function() { diff --git a/test/built-ins/Array/prototype/map/create-non-array-invalid-len.js b/test/built-ins/Array/prototype/map/create-non-array-invalid-len.js index 484b77e6f9..125e50a387 100644 --- a/test/built-ins/Array/prototype/map/create-non-array-invalid-len.js +++ b/test/built-ins/Array/prototype/map/create-non-array-invalid-len.js @@ -22,7 +22,9 @@ info: | ---*/ var callCount = 0; -var obj = { length: Math.pow(2, 32) }; +var obj = { + length: Math.pow(2, 32) +}; var cb = function() { callCount += 1; }; diff --git a/test/built-ins/Array/prototype/map/create-non-array.js b/test/built-ins/Array/prototype/map/create-non-array.js index 05f315eba5..077d421df9 100644 --- a/test/built-ins/Array/prototype/map/create-non-array.js +++ b/test/built-ins/Array/prototype/map/create-non-array.js @@ -16,7 +16,9 @@ info: | 4. If isArray is false, return ? ArrayCreate(length). ---*/ -var obj = { length: 0 }; +var obj = { + length: 0 +}; var callCount = 0; var result; Object.defineProperty(obj, 'constructor', { diff --git a/test/built-ins/Array/prototype/map/create-revoked-proxy.js b/test/built-ins/Array/prototype/map/create-revoked-proxy.js index a725bc8778..77967d256e 100644 --- a/test/built-ins/Array/prototype/map/create-revoked-proxy.js +++ b/test/built-ins/Array/prototype/map/create-revoked-proxy.js @@ -26,7 +26,9 @@ features: [Proxy] var o = Proxy.revocable([], {}); var ctorCount = 0; var cbCount = 0; -var cb = function() { cbCount += 1; }; +var cb = function() { + cbCount += 1; +}; Object.defineProperty(o.proxy, 'constructor', { get: function() { diff --git a/test/built-ins/Array/prototype/map/create-species-abrupt.js b/test/built-ins/Array/prototype/map/create-species-abrupt.js index dec04db2eb..5c6656f281 100644 --- a/test/built-ins/Array/prototype/map/create-species-abrupt.js +++ b/test/built-ins/Array/prototype/map/create-species-abrupt.js @@ -26,7 +26,9 @@ var Ctor = function() { throw new Test262Error(); }; var callCount = 0; -var cb = function() { callCount += 1; }; +var cb = function() { + callCount += 1; +}; var a = []; a.constructor = {}; a.constructor[Symbol.species] = Ctor; diff --git a/test/built-ins/Array/prototype/map/create-species-non-ctor.js b/test/built-ins/Array/prototype/map/create-species-non-ctor.js index 50657fef70..661894f6ff 100644 --- a/test/built-ins/Array/prototype/map/create-species-non-ctor.js +++ b/test/built-ins/Array/prototype/map/create-species-non-ctor.js @@ -25,7 +25,9 @@ features: [Symbol.species] var a = []; var callCount = 0; -var cb = function() { callCount += 1; }; +var cb = function() { + callCount += 1; +}; a.constructor = {}; a.constructor[Symbol.species] = parseInt; diff --git a/test/built-ins/Array/prototype/map/create-species-poisoned.js b/test/built-ins/Array/prototype/map/create-species-poisoned.js index 11fb340d32..a232b6aa0d 100644 --- a/test/built-ins/Array/prototype/map/create-species-poisoned.js +++ b/test/built-ins/Array/prototype/map/create-species-poisoned.js @@ -21,7 +21,9 @@ features: [Symbol.species] var a = []; var callCount = 0; -var cb = function() { callCount += 1; }; +var cb = function() { + callCount += 1; +}; a.constructor = {}; Object.defineProperty(a.constructor, Symbol.species, { diff --git a/test/built-ins/Array/prototype/map/create-species-undef-invalid-len.js b/test/built-ins/Array/prototype/map/create-species-undef-invalid-len.js index bcd89aadf3..bcd781bca6 100644 --- a/test/built-ins/Array/prototype/map/create-species-undef-invalid-len.js +++ b/test/built-ins/Array/prototype/map/create-species-undef-invalid-len.js @@ -32,7 +32,9 @@ var array = []; var maxLength = Math.pow(2, 32); var cbCount = 0; var setCount = 0; -var cb = function() { cbCount += 1; }; +var cb = function() { + cbCount += 1; +}; var proxy = new Proxy(array, { get: function(_, name) { if (name === 'length') { diff --git a/test/built-ins/Array/prototype/pop/S15.4.4.6_A1.1_T1.js b/test/built-ins/Array/prototype/pop/S15.4.4.6_A1.1_T1.js index 7b729afbaf..f0c867df5e 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 b12c14952c..0e0cf824a1 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 32ce3b74c3..0ab566a45d 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 ace9cd5559..3573d2a234 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 43d1f76e1f..d4dcd8184b 100644 --- a/test/built-ins/Array/prototype/pop/S15.4.4.6_A2_T4.js +++ b/test/built-ins/Array/prototype/pop/S15.4.4.6_A2_T4.js @@ -17,7 +17,11 @@ obj.pop = Array.prototype.pop; //CHECK#1 obj[0] = -1; -obj.length = {valueOf: function() {return 1}}; +obj.length = { + valueOf: function() { + return 1 + } +}; var pop = obj.pop(); if (pop !== -1) { $ERROR('#1: obj[0] = -1; obj.length = {valueOf: function() {return 1}} obj.pop() === -1. Actual: ' + (pop)); @@ -25,7 +29,14 @@ if (pop !== -1) { //CHECK#2 obj[0] = -1; -obj.length = {valueOf: function() {return 1}, toString: function() {return 0}}; +obj.length = { + valueOf: function() { + return 1 + }, + toString: function() { + return 0 + } +}; var pop = obj.pop(); if (pop !== -1) { $ERROR('#0: obj[0] = -1; obj.length = {valueOf: function() {return 1}, toString: function() {return 0}} obj.pop() === -1. Actual: ' + (pop)); @@ -33,7 +44,14 @@ if (pop !== -1) { //CHECK#3 obj[0] = -1; -obj.length = {valueOf: function() {return 1}, toString: function() {return {}}}; +obj.length = { + valueOf: function() { + return 1 + }, + toString: function() { + return {} + } +}; var pop = obj.pop(); if (pop !== -1) { $ERROR('#3: obj[0] = -1; obj.length = {valueOf: function() {return 1}, toString: function() {return {}}} obj.pop() === -1. Actual: ' + (pop)); @@ -42,9 +60,16 @@ if (pop !== -1) { //CHECK#4 try { obj[0] = -1; - obj.length = {valueOf: function() {return 1}, toString: function() {throw "error"}}; + obj.length = { + valueOf: function() { + return 1 + }, + toString: function() { + throw "error" + } + }; var pop = obj.pop(); -if (pop !== -1) { + if (pop !== -1) { $ERROR('#4.1: obj[0] = -1; obj.length = {valueOf: function() {return 1}, toString: function() {throw "error"}}; obj.pop() === ",". Actual: ' + (pop)); } } @@ -58,7 +83,11 @@ catch (e) { //CHECK#5 obj[0] = -1; -obj.length = {toString: function() {return 0}}; +obj.length = { + toString: function() { + return 0 + } +}; var pop = obj.pop(); if (pop !== undefined) { $ERROR('#5: obj[0] = -1; obj.length = {toString: function() {return 0}} obj.pop() === undefined. Actual: ' + (pop)); @@ -66,7 +95,14 @@ if (pop !== undefined) { //CHECK#6 obj[0] = -1; -obj.length = {valueOf: function() {return {}}, toString: function() {return 0}} +obj.length = { + valueOf: function() { + return {} + }, + toString: function() { + return 0 + } +} var pop = obj.pop(); if (pop !== undefined) { $ERROR('#6: obj[0] = -1; obj.length = {valueOf: function() {return {}}, toString: function() {return 0}} obj.pop() === undefined. Actual: ' + (pop)); @@ -75,7 +111,14 @@ if (pop !== undefined) { //CHECK#7 try { obj[0] = -1; - obj.length = {valueOf: function() {throw "error"}, toString: function() {return 0}}; + obj.length = { + valueOf: function() { + throw "error" + }, + toString: function() { + return 0 + } + }; var pop = obj.pop(); $ERROR('#7.1: obj[0] = -1; obj.length = {valueOf: function() {throw "error"}, toString: function() {return 0}}; obj.pop() throw "error". Actual: ' + (pop)); } @@ -88,7 +131,14 @@ catch (e) { //CHECK#8 try { obj[0] = -1; - obj.length = {valueOf: function() {return {}}, toString: function() {return {}}}; + obj.length = { + valueOf: function() { + return {} + }, + toString: function() { + return {} + } + }; var pop = obj.pop(); $ERROR('#8.1: obj[0] = -1; obj.length = {valueOf: function() {return {}}, toString: function() {return {}}} obj.pop() throw TypeError. Actual: ' + (pop)); } diff --git a/test/built-ins/Array/prototype/pop/S15.4.4.6_A3_T1.js b/test/built-ins/Array/prototype/pop/S15.4.4.6_A3_T1.js index 2be2539f5a..424b9943c7 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 fdbbc28cfd..b309bc48ad 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 4b9c4020bc..56919c5557 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 45d5af8865..b5ebe7a12a 100644 --- a/test/built-ins/Array/prototype/pop/S15.4.4.6_A4_T1.js +++ b/test/built-ins/Array/prototype/pop/S15.4.4.6_A4_T1.js @@ -28,7 +28,9 @@ if (x[1] !== 1) { Object.prototype[1] = 1; Object.prototype.length = 2; Object.prototype.pop = Array.prototype.pop; -x = {0:0}; +x = { + 0: 0 +}; //CHECK#3 var pop = x.pop(); diff --git a/test/built-ins/Array/prototype/pop/S15.4.4.6_A4_T2.js b/test/built-ins/Array/prototype/pop/S15.4.4.6_A4_T2.js index 7ef34c737e..3592d72532 100644 --- a/test/built-ins/Array/prototype/pop/S15.4.4.6_A4_T2.js +++ b/test/built-ins/Array/prototype/pop/S15.4.4.6_A4_T2.js @@ -11,7 +11,7 @@ description: > ---*/ Array.prototype[1] = -1; -var x = [0,1]; +var x = [0, 1]; x.length = 2; //CHECK#1 @@ -28,7 +28,10 @@ if (x[1] !== -1) { Object.prototype[1] = -1; Object.prototype.length = 2; Object.prototype.pop = Array.prototype.pop; -x = {0:0,1:1}; +x = { + 0: 0, + 1: 1 +}; //CHECK#3 var pop = x.pop(); diff --git a/test/built-ins/Array/prototype/pop/clamps-to-integer-limit.js b/test/built-ins/Array/prototype/pop/clamps-to-integer-limit.js index 92adbd6ab6..0c5899a55e 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 7763b8f3c0..a480b9c6c8 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 181e68ca05..8d2e84db96 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 04ab24c3c4..6c5c1c4adc 100644 --- a/test/built-ins/Array/prototype/push/S15.4.4.7_A2_T2.js +++ b/test/built-ins/Array/prototype/push/S15.4.4.7_A2_T2.js @@ -35,7 +35,9 @@ if (obj["0"] !== -1) { //CHECK#4 obj.length = Number.POSITIVE_INFINITY; -assert.throws(TypeError, function() { obj.push(-4); }); +assert.throws(TypeError, function() { + obj.push(-4); +}); //CHECK#5 if (obj.length !== Number.POSITIVE_INFINITY) { diff --git a/test/built-ins/Array/prototype/push/S15.4.4.7_A2_T3.js b/test/built-ins/Array/prototype/push/S15.4.4.7_A2_T3.js index f92536cc6a..32aa882169 100644 --- a/test/built-ins/Array/prototype/push/S15.4.4.7_A2_T3.js +++ b/test/built-ins/Array/prototype/push/S15.4.4.7_A2_T3.js @@ -16,21 +16,39 @@ var obj = {}; obj.push = Array.prototype.push; //CHECK#1 -obj.length = {valueOf: function() {return 3}}; +obj.length = { + valueOf: function() { + return 3 + } +}; var push = obj.push(); if (push !== 3) { $ERROR('#1: obj.length = {valueOf: function() {return 3}} obj.push() === 3. Actual: ' + (push)); } //CHECK#2 -obj.length = {valueOf: function() {return 3}, toString: function() {return 1}}; +obj.length = { + valueOf: function() { + return 3 + }, + toString: function() { + return 1 + } +}; var push = obj.push(); if (push !== 3) { $ERROR('#0: obj.length = {valueOf: function() {return 3}, toString: function() {return 1}} obj.push() === 3. Actual: ' + (push)); } //CHECK#3 -obj.length = {valueOf: function() {return 3}, toString: function() {return {}}}; +obj.length = { + valueOf: function() { + return 3 + }, + toString: function() { + return {} + } +}; var push = obj.push(); if (push !== 3) { $ERROR('#1: obj.length = {valueOf: function() {return 3}, toString: function() {return {}}} obj.push() === 3. Actual: ' + (push)); @@ -39,9 +57,16 @@ if (push !== 3) { //CHECK#4 try { - obj.length = {valueOf: function() {return 3}, toString: function() {throw "error"}}; + obj.length = { + valueOf: function() { + return 3 + }, + toString: function() { + throw "error" + } + }; var push = obj.push(); -if (push !== 3) { + if (push !== 3) { $ERROR('#4.1: obj.length = {valueOf: function() {return 3}, toString: function() {throw "error"}}; obj.push() === ",". Actual: ' + (push)); } } @@ -54,14 +79,25 @@ catch (e) { } //CHECK#5 -obj.length = {toString: function() {return 1}}; +obj.length = { + toString: function() { + return 1 + } +}; var push = obj.push(); if (push !== 1) { $ERROR('#5: obj.length = {toString: function() {return 1}} obj.push() === 1. Actual: ' + (push)); } //CHECK#6 -obj.length = {valueOf: function() {return {}}, toString: function() {return 1}} +obj.length = { + valueOf: function() { + return {} + }, + toString: function() { + return 1 + } +} var push = obj.push(); if (push !== 1) { $ERROR('#6: obj.length = {valueOf: function() {return {}}, toString: function() {return 1}} obj.push() === 1. Actual: ' + (push)); @@ -70,7 +106,14 @@ if (push !== 1) { //CHECK#7 try { - obj.length = {valueOf: function() {throw "error"}, toString: function() {return 1}}; + obj.length = { + valueOf: function() { + throw "error" + }, + toString: function() { + return 1 + } + }; var push = obj.push(); $ERROR('#7.1: obj.length = {valueOf: function() {throw "error"}, toString: function() {return 1}}; obj.push() throw "error". Actual: ' + (push)); } @@ -83,7 +126,14 @@ catch (e) { //CHECK#8 try { - obj.length = {valueOf: function() {return {}}, toString: function() {return {}}}; + obj.length = { + valueOf: function() { + return {} + }, + toString: function() { + return {} + } + }; var push = obj.push(); $ERROR('#8.1: obj.length = {valueOf: function() {return {}}, toString: function() {return {}}} obj.push() throw TypeError. Actual: ' + (push)); } diff --git a/test/built-ins/Array/prototype/push/S15.4.4.7_A3.js b/test/built-ins/Array/prototype/push/S15.4.4.7_A3.js index dd596aefd5..d9b26a6e34 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 bc762776c5..90ed3ae4cf 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 22a2c5b432..0ed4b027c4 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 464dcacca4..afaf0b143d 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 6cbf65e074..70f1b41ac3 100644 --- a/test/built-ins/Array/prototype/push/S15.4.4.7_A5_T1.js +++ b/test/built-ins/Array/prototype/push/S15.4.4.7_A5_T1.js @@ -13,7 +13,9 @@ description: > Object.prototype[1] = -1; Object.prototype.length = 1; Object.prototype.push = Array.prototype.push; -var x = {0:0}; +var x = { + 0: 0 +}; //CHECK#1 var push = x.push(1); diff --git a/test/built-ins/Array/prototype/push/clamps-to-integer-limit.js b/test/built-ins/Array/prototype/push/clamps-to-integer-limit.js index d4100dd0c0..9cfc323fc3 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 b727b51157..4c94e29873 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 1542fd0256..ae71cd417a 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 fdb550a91a..264cd7934a 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 d24e9841c1..04bb5ee2a3 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 4f4a9d6fd8..67534e3399 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 7e9604d556..ade27ade62 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 8863308394..3bdd3e1723 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 ae958b3d21..424e1e69f2 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 efa389f9db..a5387f2780 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 709021d9a7..b070b9ea19 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 ae7e782149..833762b496 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 33519f325a..c08a750771 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 20ca2f99f5..8314bea9bd 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 55eba5ba35..4ab488dc4c 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 ca99114882..6869f90c09 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 169467bb27..96635cee29 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 dd00fe9bba..b2bd796bb7 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 ae5680106e..777c4d3f8a 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 57b27d7943..a01a48c92c 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 ee1cd1801c..5174a6300f 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-3.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-3.js @@ -7,10 +7,11 @@ es5id: 15.4.4.21-10-3 description: Array.prototype.reduce - subclassed array of length 1 ---*/ - foo.prototype = [1]; - function foo() {} - var f = new foo(); +foo.prototype = [1]; - function cb(){} +function foo() {} +var f = new foo(); + +function cb() {} assert.sameValue(f.reduce(cb), 1, 'f.reduce(cb)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-4.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-4.js index 5dcd159f6e..e84e53a710 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-4.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-4.js @@ -7,10 +7,13 @@ es5id: 15.4.4.21-10-4 description: Array.prototype.reduce - subclassed array with length more than 1 ---*/ - foo.prototype = new Array(1, 2, 3, 4); - function foo() {} - var f = new foo(); +foo.prototype = new Array(1, 2, 3, 4); - function cb(prevVal, curVal, idx, obj){return prevVal + curVal;} +function foo() {} +var f = new foo(); + +function cb(prevVal, curVal, idx, obj) { + return prevVal + curVal; +} assert.sameValue(f.reduce(cb), 10, 'f.reduce(cb)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-5.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-5.js index f7778c537f..82c843ecd4 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 5babbe757b..35e50b1262 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-6.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-6.js @@ -9,10 +9,13 @@ description: > provided ---*/ - foo.prototype = [1,2,3,4]; - function foo() {} - var f = new foo(); +foo.prototype = [1, 2, 3, 4]; - function cb(prevVal, curVal, idx, obj){return prevVal + curVal;} +function foo() {} +var f = new foo(); -assert.sameValue(f.reduce(cb,-1), 9, 'f.reduce(cb,-1)'); +function cb(prevVal, curVal, idx, obj) { + return prevVal + curVal; +} + +assert.sameValue(f.reduce(cb, -1), 9, 'f.reduce(cb,-1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-7.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-7.js index e0cd77f635..1725c367ea 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-7.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-7.js @@ -9,10 +9,13 @@ description: > initialvalue provided ---*/ - foo.prototype = [1]; - function foo() {} - var f = new foo(); +foo.prototype = [1]; - function cb(prevVal, curVal, idx, obj){return prevVal + curVal;} +function foo() {} +var f = new foo(); -assert.sameValue(f.reduce(cb,-1), 0, 'f.reduce(cb,-1)'); +function cb(prevVal, curVal, idx, obj) { + return prevVal + curVal; +} + +assert.sameValue(f.reduce(cb, -1), 0, 'f.reduce(cb,-1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-8.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-8.js index abb4066ee7..3f1ffdcb47 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-8.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-8.js @@ -7,15 +7,16 @@ es5id: 15.4.4.21-10-8 description: Array.prototype.reduce doesn't visit expandos ---*/ - var callCnt = 0; - function callbackfn(prevVal, curVal, idx, obj) - { - callCnt++; - return curVal; - } - var srcArr = ['1','2','3','4','5']; - srcArr["i"] = 10; - srcArr[true] = 11; - srcArr.reduce(callbackfn); +var callCnt = 0; + +function callbackfn(prevVal, curVal, idx, obj) +{ + callCnt++; + return curVal; +} +var srcArr = ['1', '2', '3', '4', '5']; +srcArr["i"] = 10; +srcArr[true] = 11; +srcArr.reduce(callbackfn); assert.sameValue(callCnt, 4, 'callCnt'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-1.js index 700961b96e..4e5e8bb973 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 41de90c5c3..18e09d6d32 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 25cf0e462f..9dd5748b68 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-11.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-11.js @@ -9,19 +9,20 @@ description: > an own accessor property without a get function ---*/ - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - } +var accessed = false; - var obj = { - 0: 11, - 1: 12 - }; - Object.defineProperty(obj, "length", { - set: function () { }, - configurable: true - }); +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; +} + +var obj = { + 0: 11, + 1: 12 +}; +Object.defineProperty(obj, "length", { + set: function() {}, + configurable: true +}); assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), 1, 'Array.prototype.reduce.call(obj, callbackfn, 1)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-12.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-12.js index 375fa552d6..da2f2a6ac3 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-12.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-12.js @@ -10,23 +10,27 @@ description: > Array ---*/ - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - } +var accessed = false; - Object.defineProperty(Object.prototype, "length", { - get: function () { - return 2; - }, - configurable: true - }); +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; +} - var obj = { 0: 12, 1: 11 }; - Object.defineProperty(obj, "length", { - set: function () { }, - configurable: true - }); +Object.defineProperty(Object.prototype, "length", { + get: function() { + return 2; + }, + configurable: true +}); + +var obj = { + 0: 12, + 1: 11 +}; +Object.defineProperty(obj, "length", { + set: function() {}, + configurable: true +}); assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), 1, 'Array.prototype.reduce.call(obj, callbackfn, 1)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-13.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-13.js index 2be6073159..7f12502927 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 3ed0c858f5..f21ee41e71 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-14.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-14.js @@ -9,13 +9,16 @@ description: > 'length' property doesn't exist ---*/ - var accessed = false; +var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; +} - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), 1, 'Array.prototype.reduce.call(obj, callbackfn, 1)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-17.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-17.js index 2d06363198..c53ac5820d 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 6e50eadc58..43c4f960d1 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 5b9a2c1c8d..02eaafd2be 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 0770dea2b9..6b63af80a9 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 7abfa8846f..ae2642759d 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-3.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-3.js @@ -9,19 +9,21 @@ description: > overrides an inherited data property on an Array-like object ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return (obj.length === 2); - } +function callbackfn(prevVal, curVal, idx, obj) { + return (obj.length === 2); +} - var proto = { length: 3 }; +var proto = { + length: 3 +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child.length = 2; - child[0] = 12; - child[1] = 11; - child[2] = 9; +var child = new Con(); +child.length = 2; +child[0] = 12; +child[1] = 11; +child[2] = 9; assert.sameValue(Array.prototype.reduce.call(child, callbackfn, 1), true, 'Array.prototype.reduce.call(child, callbackfn, 1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-4.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-4.js index f1acd1884a..a2666931e9 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 2b000ba6a3..5e826cf741 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 9385b22433..9088ded910 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-6.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-6.js @@ -9,18 +9,20 @@ description: > an inherited data property ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return (obj.length === 2); - } +function callbackfn(prevVal, curVal, idx, obj) { + return (obj.length === 2); +} - var proto = { length: 2 }; +var proto = { + length: 2 +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child[0] = 12; - child[1] = 11; - child[2] = 9; +var child = new Con(); +child[0] = 12; +child[1] = 11; +child[2] = 9; assert.sameValue(Array.prototype.reduce.call(child, callbackfn, 1), true, 'Array.prototype.reduce.call(child, callbackfn, 1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-7.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-7.js index 1adfa3c8b0..2aea682c72 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 2e76fa7392..6d95375356 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-8.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-8.js @@ -9,26 +9,28 @@ description: > an own accessor property that overrides an inherited data property ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return (obj.length === 2); - } +function callbackfn(prevVal, curVal, idx, obj) { + return (obj.length === 2); +} - var proto = { length: 3 }; +var proto = { + length: 3 +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); +var child = new Con(); - Object.defineProperty(child, "length", { - get: function () { - return 2; - }, - configurable: true - }); +Object.defineProperty(child, "length", { + get: function() { + return 2; + }, + configurable: true +}); - child[0] = 12; - child[1] = 11; - child[2] = 9; +child[0] = 12; +child[1] = 11; +child[2] = 9; assert.sameValue(Array.prototype.reduce.call(child, callbackfn, 1), true, 'Array.prototype.reduce.call(child, callbackfn, 1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-9.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-9.js index 08ef5140b9..34b6ca18d1 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 a7b0582268..1cd10992a6 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-1.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-1.js @@ -7,14 +7,18 @@ es5id: 15.4.4.21-3-1 description: Array.prototype.reduce - value of 'length' is undefined ---*/ - var accessed = false; +var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return 2; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return 2; +} - var obj = { 0: 0, 1: 1, length: undefined }; +var obj = { + 0: 0, + 1: 1, + length: undefined +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), 1, 'Array.prototype.reduce.call(obj, callbackfn, 1)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-10.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-10.js index a2c41a3035..982fd8965e 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-10.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-10.js @@ -9,14 +9,17 @@ description: > (value is NaN) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return 2; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return 2; +} - var obj = { 0: 9, length: NaN }; +var obj = { + 0: 9, + length: NaN +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), 1, 'Array.prototype.reduce.call(obj, callbackfn, 1)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-11.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-11.js index a5bbcd485d..01185212a1 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-11.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-11.js @@ -9,10 +9,14 @@ description: > positive number ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return (curVal === 11 && idx === 1); - } +function callbackfn(prevVal, curVal, idx, obj) { + return (curVal === 11 && idx === 1); +} - var obj = { 1: 11, 2: 9, length: "2" }; +var obj = { + 1: 11, + 2: 9, + length: "2" +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), true, 'Array.prototype.reduce.call(obj, callbackfn, 1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-12.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-12.js index ca3bbd9810..c1610fdf10 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-12.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-12.js @@ -9,10 +9,14 @@ description: > negative number ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return (curVal === 11 && idx === 1); - } +function callbackfn(prevVal, curVal, idx, obj) { + return (curVal === 11 && idx === 1); +} - var obj = { 1: 11, 2: 9, length: "-4294967294" }; +var obj = { + 1: 11, + 2: 9, + length: "-4294967294" +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), 1, 'Array.prototype.reduce.call(obj, callbackfn, 1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-13.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-13.js index 4ab83fe8e0..77c594df48 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-13.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-13.js @@ -9,10 +9,14 @@ description: > number ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return (curVal === 11 && idx === 1); - } +function callbackfn(prevVal, curVal, idx, obj) { + return (curVal === 11 && idx === 1); +} - var obj = { 1: 11, 2: 9, length: "2.5" }; +var obj = { + 1: 11, + 2: 9, + length: "2.5" +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), true, 'Array.prototype.reduce.call(obj, callbackfn, 1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-14.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-14.js index 8feeae4a83..26bf70c04f 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-14.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-14.js @@ -7,14 +7,17 @@ es5id: 15.4.4.21-3-14 description: Array.prototype.reduce - 'length' is a string containing -Infinity ---*/ - var accessed2 = false; +var accessed2 = false; - function callbackfn2(prevVal, curVal, idx, obj) { - accessed2 = true; - return 2; - } +function callbackfn2(prevVal, curVal, idx, obj) { + accessed2 = true; + return 2; +} - var obj2 = { 0: 9, length: "-Infinity" }; +var obj2 = { + 0: 9, + length: "-Infinity" +}; assert.sameValue(Array.prototype.reduce.call(obj2, callbackfn2, 1), 1, 'Array.prototype.reduce.call(obj2, callbackfn2, 1)'); assert.sameValue(accessed2, false, 'accessed2'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-15.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-15.js index e17fd3d9e7..a467d5ba46 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-15.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-15.js @@ -9,10 +9,14 @@ description: > exponential number ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return (curVal === 11 && idx === 1); - } +function callbackfn(prevVal, curVal, idx, obj) { + return (curVal === 11 && idx === 1); +} - var obj = { 1: 11, 2: 9, length: "2E0" }; +var obj = { + 1: 11, + 2: 9, + length: "2E0" +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), true, 'Array.prototype.reduce.call(obj, callbackfn, 1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-16.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-16.js index ac8545db7b..c1e8c7a11d 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-16.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-16.js @@ -9,10 +9,14 @@ description: > number ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return (curVal === 11 && idx === 1); - } +function callbackfn(prevVal, curVal, idx, obj) { + return (curVal === 11 && idx === 1); +} - var obj = { 1: 11, 2: 9, length: "0x0002" }; +var obj = { + 1: 11, + 2: 9, + length: "0x0002" +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), true, 'Array.prototype.reduce.call(obj, callbackfn, 1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-17.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-17.js index 8671845291..683e3d900f 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-17.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-17.js @@ -9,10 +9,14 @@ description: > with leading zeros ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return (curVal === 11 && idx === 1); - } +function callbackfn(prevVal, curVal, idx, obj) { + return (curVal === 11 && idx === 1); +} - var obj = { 1: 11, 2: 9, length: "0002.00" }; +var obj = { + 1: 11, + 2: 9, + length: "0002.00" +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), true, 'Array.prototype.reduce.call(obj, callbackfn, 1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-18.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-18.js index d5705664f1..4b797136b2 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-18.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-18.js @@ -9,13 +9,17 @@ description: > convert to a number ---*/ - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return 2; - } +var accessed = false; - var obj = { 0: 9, length: "asdf!_" }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return 2; +} + +var obj = { + 0: 9, + length: "asdf!_" +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), 1, 'Array.prototype.reduce.call(obj, callbackfn, 1)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-19.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-19.js index 3cc7aac5ee..7d168f5e06 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 f4fc199e44..32492611fd 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-2.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-2.js @@ -9,10 +9,14 @@ description: > true) ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return (curVal === 11 && idx === 0); - } +function callbackfn(prevVal, curVal, idx, obj) { + return (curVal === 11 && idx === 0); +} - var obj = { 0: 11, 1: 9, length: true }; +var obj = { + 0: 11, + 1: 9, + length: true +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), true, 'Array.prototype.reduce.call(obj, callbackfn, 1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-20.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-20.js index b15ff9a1d0..32f5200bcd 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 1188ac3efd..9470d76796 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 63fca1bd38..b7d4a852c0 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 d48e58c909..c281ba361e 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 48c4ede3ca..c3e969f575 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 352c988a0a..5a8f54239c 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 89231153da..0fe83bd714 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-3.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-3.js @@ -7,14 +7,18 @@ es5id: 15.4.4.21-3-3 description: Array.prototype.reduce - value of 'length' is a number (value is 0) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return 2; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return 2; +} - var obj = { 0: 1, 1: 1, length: 0 }; +var obj = { + 0: 1, + 1: 1, + length: 0 +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), 1, 'Array.prototype.reduce.call(obj, callbackfn, 1)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-4.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-4.js index 1c6e0d988a..864a0c1e52 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-4.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-4.js @@ -9,14 +9,17 @@ description: > +0) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return 2; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return 2; +} - var obj = { 0: 11, length: +0 }; +var obj = { + 0: 11, + length: +0 +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), 1, 'Array.prototype.reduce.call(obj, callbackfn, 1)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-5.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-5.js index da3f4cf5f3..0a22d02a3e 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-5.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-5.js @@ -9,14 +9,17 @@ description: > -0) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return 2; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return 2; +} - var obj = { 0: 11, length: -0 }; +var obj = { + 0: 11, + length: -0 +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), 1, 'Array.prototype.reduce.call(obj, callbackfn, 1)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-6.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-6.js index 1617a74935..fbee22d425 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-6.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-6.js @@ -9,10 +9,14 @@ description: > positive) ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return (curVal === 11 && idx === 1); - } +function callbackfn(prevVal, curVal, idx, obj) { + return (curVal === 11 && idx === 1); +} - var obj = { 1: 11, 2: 9, length: 2 }; +var obj = { + 1: 11, + 2: 9, + length: 2 +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), true, 'Array.prototype.reduce.call(obj, callbackfn, 1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-7.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-7.js index b8eb598714..b171abfd20 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-7.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-7.js @@ -9,10 +9,14 @@ description: > negative) ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return (curVal === 11 && idx === 1); - } +function callbackfn(prevVal, curVal, idx, obj) { + return (curVal === 11 && idx === 1); +} - var obj = { 1: 11, 2: 9, length: -4294967294 }; +var obj = { + 1: 11, + 2: 9, + length: -4294967294 +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), 1, 'Array.prototype.reduce.call(obj, callbackfn, 1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-9.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-9.js index dc8cbfd8d6..33c8a72d32 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-9.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-9.js @@ -9,13 +9,16 @@ description: > -Infinity) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; +} - var obj = { 0: 9, length: -Infinity }; +var obj = { + 0: 9, + length: -Infinity +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), 1, 'Array.prototype.reduce.call(obj, callbackfn, 1)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-1.js index 565eec8bfd..ffc66baacf 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 b37a75ea80..5592d22dc8 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-10.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-10.js @@ -9,15 +9,18 @@ description: > was thrown by step 2 ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - Object.defineProperty(obj, "length", { - get: function () { - throw new Test262Error(); - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + throw new Test262Error(); + }, + configurable: true +}); assert.throws(Test262Error, function() { - Array.prototype.reduce.call(obj, undefined); + Array.prototype.reduce.call(obj, undefined); }); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-11.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-11.js index c3a4398988..a9993c2395 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-11.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-11.js @@ -9,19 +9,22 @@ description: > was thrown by step 3 ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - Object.defineProperty(obj, "length", { - get: function () { - return { - toString: function () { - throw new Test262Error(); - } - }; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + return { + toString: function() { + throw new Test262Error(); + } + }; + }, + configurable: true +}); assert.throws(Test262Error, function() { - Array.prototype.reduce.call(obj, undefined); + Array.prototype.reduce.call(obj, undefined); }); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-12.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-12.js index 087ba33ec4..3911228646 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-12.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-12.js @@ -7,11 +7,12 @@ es5id: 15.4.4.21-4-12 description: Array.prototype.reduce - 'callbackfn' is a function ---*/ - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return curVal > 10; - } +var accessed = false; + +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return curVal > 10; +} assert.sameValue([11, 9].reduce(callbackfn, 1), false, '[11, 9].reduce(callbackfn, 1)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-15.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-15.js index 509aeb6182..7072a1d2c0 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-15.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-15.js @@ -9,27 +9,29 @@ description: > passing undefined for callbackfn ---*/ - var obj = { 10: 10 }; - var lengthAccessed = false; - var loopAccessed = false; +var obj = { + 10: 10 +}; +var lengthAccessed = false; +var loopAccessed = false; - Object.defineProperty(obj, "length", { - get: function () { - lengthAccessed = true; - return 20; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + lengthAccessed = true; + return 20; + }, + configurable: true +}); - Object.defineProperty(obj, "0", { - get: function () { - loopAccessed = true; - return 10; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + loopAccessed = true; + return 10; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.reduce.call(obj); + Array.prototype.reduce.call(obj); }); assert(lengthAccessed, 'lengthAccessed !== true'); assert.sameValue(loopAccessed, false, 'loopAccessed'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-2.js index bc24e2d621..a510f11e1a 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 8f1bbae3a4..c980003a34 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 f562ac79ff..f86249342b 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 a17c110efd..19ea080d09 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 7a815eddc2..10d80e6651 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 57281c17c9..5f5bb65167 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 07e01936b1..da9ba950c6 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-8.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-8.js @@ -9,18 +9,21 @@ description: > visible when an exception occurs ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - var accessed = false; +var accessed = false; - Object.defineProperty(obj, "length", { - get: function () { - accessed = true; - return 2; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + accessed = true; + return 2; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.reduce.call(obj, null); + Array.prototype.reduce.call(obj, null); }); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-9.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-9.js index 31738344a2..b0e48b6282 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-9.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-9.js @@ -9,22 +9,25 @@ description: > visible when an exception occurs ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - var accessed = false; +var accessed = false; - Object.defineProperty(obj, "length", { - get: function () { - return { - toString: function () { - accessed = true; - return "2"; - } - }; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + return { + toString: function() { + accessed = true; + return "2"; + } + }; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.reduce.call(obj, null); + Array.prototype.reduce.call(obj, null); }); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-1.js index ebf1d03649..ca6c540346 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 457d6114db..2d392481ce 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-10.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-10.js @@ -9,22 +9,25 @@ description: > side-effects that might be produced by step 2 ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return (curVal > 10); - } +function callbackfn(prevVal, curVal, idx, obj) { + return (curVal > 10); +} - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - var accessed = false; +var accessed = false; - Object.defineProperty(obj, "length", { - get: function () { - accessed = true; - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + accessed = true; + return 0; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.reduce.call(obj, callbackfn); + Array.prototype.reduce.call(obj, callbackfn); }); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-11.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-11.js index 604a91c147..8b63d3e3e1 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-11.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-11.js @@ -9,26 +9,29 @@ description: > any side-effects that might be produced by step 3 ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return (curVal > 10); - } +function callbackfn(prevVal, curVal, idx, obj) { + return (curVal > 10); +} - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - var accessed = false; +var accessed = false; - Object.defineProperty(obj, "length", { - get: function () { - return { - toString: function () { - accessed = true; - return "0"; - } - }; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + return { + toString: function() { + accessed = true; + return "0"; + } + }; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.reduce.call(obj, callbackfn); + Array.prototype.reduce.call(obj, callbackfn); }); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-12.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-12.js index 57209d338e..8cdeb3b4c8 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-12.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-12.js @@ -9,19 +9,22 @@ description: > was thrown by step 2 ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return (curVal > 10); - } +function callbackfn(prevVal, curVal, idx, obj) { + return (curVal > 10); +} - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - Object.defineProperty(obj, "length", { - get: function () { - throw new Test262Error(); - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + throw new Test262Error(); + }, + configurable: true +}); assert.throws(Test262Error, function() { - Array.prototype.reduce.call(obj, callbackfn); + Array.prototype.reduce.call(obj, callbackfn); }); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-13.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-13.js index 297d0d481c..3285912c3c 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-13.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-13.js @@ -9,23 +9,26 @@ description: > was thrown by step 3 ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return (curVal > 10); - } +function callbackfn(prevVal, curVal, idx, obj) { + return (curVal > 10); +} - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - Object.defineProperty(obj, "length", { - get: function () { - return { - toString: function () { - throw new Test262Error(); - } - }; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + return { + toString: function() { + throw new Test262Error(); + } + }; + }, + configurable: true +}); assert.throws(Test262Error, function() { - Array.prototype.reduce.call(obj, callbackfn); + Array.prototype.reduce.call(obj, callbackfn); }); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-2.js index c3ff294e2f..ac61503048 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-2.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-2.js @@ -10,12 +10,13 @@ description: > no initVal ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = null; +foo.prototype = new Array(1, 2, 3); - function cb(){} +function foo() {} +var f = new foo(); +f.length = null; + +function cb() {} assert.throws(TypeError, function() { - f.reduce(cb); + f.reduce(cb); }); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-3.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-3.js index b0b9d00602..1fb61ac829 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-3.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-3.js @@ -10,12 +10,13 @@ description: > no initVal ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = false; +foo.prototype = new Array(1, 2, 3); - function cb(){} +function foo() {} +var f = new foo(); +f.length = false; + +function cb() {} assert.throws(TypeError, function() { - f.reduce(cb); + f.reduce(cb); }); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-4.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-4.js index c452e0f55b..a68dd49343 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-4.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-4.js @@ -10,12 +10,13 @@ description: > initVal ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = 0; +foo.prototype = new Array(1, 2, 3); - function cb(){} +function foo() {} +var f = new foo(); +f.length = 0; + +function cb() {} assert.throws(TypeError, function() { - f.reduce(cb); + f.reduce(cb); }); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-5.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-5.js index 287cae3609..0717a9eddc 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-5.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-5.js @@ -10,12 +10,13 @@ description: > initVal ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = '0'; +foo.prototype = new Array(1, 2, 3); - function cb(){} +function foo() {} +var f = new foo(); +f.length = '0'; + +function cb() {} assert.throws(TypeError, function() { - f.reduce(cb); + f.reduce(cb); }); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-6.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-6.js index aba39d0b1a..4a935d9a75 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-6.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-6.js @@ -10,14 +10,19 @@ description: > initVal ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); +foo.prototype = new Array(1, 2, 3); - var o = { valueOf: function () { return 0;}}; - f.length = o; +function foo() {} +var f = new foo(); - function cb(){} +var o = { + valueOf: function() { + return 0; + } +}; +f.length = o; + +function cb() {} assert.throws(TypeError, function() { - f.reduce(cb); + f.reduce(cb); }); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-7.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-7.js index 13e218f2c2..faede22226 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-7.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-7.js @@ -10,20 +10,25 @@ description: > (toString)), no initVal ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); +foo.prototype = new Array(1, 2, 3); - var o = { toString: function () { return '0';}}; - f.length = o; +function foo() {} +var f = new foo(); - // objects inherit the default valueOf method of the Object object; - // that simply returns the itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. +var o = { + toString: function() { + return '0'; + } +}; +f.length = o; - function cb(){} +// objects inherit the default valueOf method of the Object object; +// that simply returns the itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. + +function cb() {} assert.throws(TypeError, function() { - f.reduce(cb); + f.reduce(cb); }); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-8.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-8.js index 9d932b3710..ddf3cbf524 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-8.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-8.js @@ -9,27 +9,28 @@ description: > (subclassed Array, length overridden with []), no initVal ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); +foo.prototype = new Array(1, 2, 3); - f.length = []; +function foo() {} +var f = new foo(); - // objects inherit the default valueOf method of the Object object; - // that simply returns the itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. - // - // The toString( ) method on Array converts the array elements to strings, - // then returns the result of concatenating these strings, with commas in - // between. An array with no elements converts to the empty string, which - // converts to the number 0. If an array has a single element that is a - // number n, the array converts to a string representation of n, which is - // then converted back to n itself. If an array contains more than one element, - // or if its one element is not a number, the array converts to NaN. +f.length = []; - function cb(){} +// objects inherit the default valueOf method of the Object object; +// that simply returns the itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. +// +// The toString( ) method on Array converts the array elements to strings, +// then returns the result of concatenating these strings, with commas in +// between. An array with no elements converts to the empty string, which +// converts to the number 0. If an array has a single element that is a +// number n, the array converts to a string representation of n, which is +// then converted back to n itself. If an array contains more than one element, +// or if its one element is not a number, the array converts to NaN. + +function cb() {} assert.throws(TypeError, function() { - f.reduce(cb); + f.reduce(cb); }); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-9.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-9.js index edbcb465fa..8df0ed8c93 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-9.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-9.js @@ -9,10 +9,11 @@ description: > and 'initialValue' is present ---*/ - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - } +var accessed = false; + +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; +} assert.sameValue([].reduce(callbackfn, 3), 3, '[].reduce(callbackfn, 3)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-1.js index db603f9524..785c4e32f9 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 f86e9806f9..a03752192d 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 619bb2d271..7c2dd91ff3 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 27ddd16b04..7c227878ce 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-2.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-2.js @@ -10,10 +10,11 @@ description: > null (type conversion)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = null; +foo.prototype = new Array(1, 2, 3); - function cb(){} -assert.sameValue(f.reduce(cb,1), 1, 'f.reduce(cb,1)'); +function foo() {} +var f = new foo(); +f.length = null; + +function cb() {} +assert.sameValue(f.reduce(cb, 1), 1, 'f.reduce(cb,1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-3.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-3.js index eed2c040f4..525f769e3e 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-3.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-3.js @@ -10,10 +10,11 @@ description: > false (type conversion)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = false; +foo.prototype = new Array(1, 2, 3); - function cb(){} -assert.sameValue(f.reduce(cb,1), 1, 'f.reduce(cb,1)'); +function foo() {} +var f = new foo(); +f.length = false; + +function cb() {} +assert.sameValue(f.reduce(cb, 1), 1, 'f.reduce(cb,1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-4.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-4.js index 4fb6146f13..fed398c8e1 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-4.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-4.js @@ -10,10 +10,11 @@ description: > (type conversion)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = 0; +foo.prototype = new Array(1, 2, 3); - function cb(){} -assert.sameValue(f.reduce(cb,1), 1, 'f.reduce(cb,1)'); +function foo() {} +var f = new foo(); +f.length = 0; + +function cb() {} +assert.sameValue(f.reduce(cb, 1), 1, 'f.reduce(cb,1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-5.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-5.js index 4a6d8d59e4..8634d03a64 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-5.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-5.js @@ -10,10 +10,11 @@ description: > '0' (type conversion)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = '0'; +foo.prototype = new Array(1, 2, 3); - function cb(){} -assert.sameValue(f.reduce(cb,1), 1, 'f.reduce(cb,1)'); +function foo() {} +var f = new foo(); +f.length = '0'; + +function cb() {} +assert.sameValue(f.reduce(cb, 1), 1, 'f.reduce(cb,1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-6.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-6.js index 2c2174482f..33c22e6e73 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-6.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-6.js @@ -10,12 +10,17 @@ description: > obj with valueOf) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); +foo.prototype = new Array(1, 2, 3); - var o = { valueOf: function () { return 0;}}; - f.length = o; +function foo() {} +var f = new foo(); - function cb(){} -assert.sameValue(f.reduce(cb,1), 1, 'f.reduce(cb,1)'); +var o = { + valueOf: function() { + return 0; + } +}; +f.length = o; + +function cb() {} +assert.sameValue(f.reduce(cb, 1), 1, 'f.reduce(cb,1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-7.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-7.js index 3d7783369a..db7132e8a8 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-7.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-7.js @@ -10,18 +10,23 @@ description: > obj w/o valueOf (toString)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); +foo.prototype = new Array(1, 2, 3); - var o = { toString: function () { return '0';}}; - f.length = o; +function foo() {} +var f = new foo(); - // objects inherit the default valueOf method of the Object object; - // that simply returns the itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. +var o = { + toString: function() { + return '0'; + } +}; +f.length = o; - function cb(){} -assert.sameValue(f.reduce(cb,1), 1, 'f.reduce(cb,1)'); +// objects inherit the default valueOf method of the Object object; +// that simply returns the itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. + +function cb() {} +assert.sameValue(f.reduce(cb, 1), 1, 'f.reduce(cb,1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-8.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-8.js index 430c58cd15..8ddc5cd6f2 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-8.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-8.js @@ -10,25 +10,26 @@ description: > []) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); +foo.prototype = new Array(1, 2, 3); - f.length = []; +function foo() {} +var f = new foo(); - // objects inherit the default valueOf method of the Object object; - // that simply returns the itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. - // - // The toString( ) method on Array converts the array elements to strings, - // then returns the result of concatenating these strings, with commas in - // between. An array with no elements converts to the empty string, which - // converts to the number 0. If an array has a single element that is a - // number n, the array converts to a string representation of n, which is - // then converted back to n itself. If an array contains more than one element, - // or if its one element is not a number, the array converts to NaN. +f.length = []; - function cb(){} -assert.sameValue(f.reduce(cb,1), 1, 'f.reduce(cb,1)'); +// objects inherit the default valueOf method of the Object object; +// that simply returns the itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. +// +// The toString( ) method on Array converts the array elements to strings, +// then returns the result of concatenating these strings, with commas in +// between. An array with no elements converts to the empty string, which +// converts to the number 0. If an array has a single element that is a +// number n, the array converts to a string representation of n, which is +// then converted back to n itself. If an array contains more than one element, +// or if its one element is not a number, the array converts to NaN. + +function cb() {} +assert.sameValue(f.reduce(cb, 1), 1, 'f.reduce(cb,1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-9.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-9.js index 744659f51c..4f9f86265a 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-9.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-9.js @@ -10,25 +10,26 @@ description: > [0]) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); +foo.prototype = new Array(1, 2, 3); - f.length = [0]; +function foo() {} +var f = new foo(); - // objects inherit the default valueOf method of the Object object; - // that simply returns the itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. - // - // The toString( ) method on Array converts the array elements to strings, - // then returns the result of concatenating these strings, with commas in - // between. An array with no elements converts to the empty string, which - // converts to the number 0. If an array has a single element that is a - // number n, the array converts to a string representation of n, which is - // then converted back to n itself. If an array contains more than one element, - // or if its one element is not a number, the array converts to NaN. +f.length = [0]; - function cb(){} -assert.sameValue(f.reduce(cb,1), 1, 'f.reduce(cb,1)'); +// objects inherit the default valueOf method of the Object object; +// that simply returns the itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. +// +// The toString( ) method on Array converts the array elements to strings, +// then returns the result of concatenating these strings, with commas in +// between. An array with no elements converts to the empty string, which +// converts to the number 0. If an array has a single element that is a +// number n, the array converts to a string representation of n, which is +// then converted back to n itself. If an array contains more than one element, +// or if its one element is not a number, the array converts to NaN. + +function cb() {} +assert.sameValue(f.reduce(cb, 1), 1, 'f.reduce(cb,1)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-1.js index d0650cfc47..af872fd925 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-1.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-1.js @@ -7,20 +7,22 @@ es5id: 15.4.4.21-8-b-1 description: Array.prototype.reduce - no observable effects occur if 'len' is 0 ---*/ - var accessed = false; +var accessed = false; - var obj = { length: 0 }; +var obj = { + length: 0 +}; - Object.defineProperty(obj, "0", { - get: function () { - accessed = true; - return 10; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + accessed = true; + return 10; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.reduce.call(obj, function () { }); + Array.prototype.reduce.call(obj, function() {}); }); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-2.js index 84a6d4181a..a3796550a8 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-2.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-2.js @@ -9,18 +9,22 @@ description: > number of iterations in step 9 ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return idx; - } +function callbackfn(prevVal, curVal, idx, obj) { + return idx; +} - var obj = { 3: 12, 4: 9, length: 4 }; +var obj = { + 3: 12, + 4: 9, + length: 4 +}; - Object.defineProperty(obj, "2", { - get: function () { - obj.length = 10; - return 11; - }, - configurable: true - }); +Object.defineProperty(obj, "2", { + get: function() { + obj.length = 10; + return 11; + }, + configurable: true +}); assert.sameValue(Array.prototype.reduce.call(obj, callbackfn), 3, 'Array.prototype.reduce.call(obj, callbackfn)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-3.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-3.js index 95062f4621..03fd27c09d 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 f2369b4321..15b0dc2a04 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 12c5e2fddf..9c51a152a7 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-ii-2.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-ii-2.js @@ -9,14 +9,17 @@ description: > here ---*/ - var obj = { 1: "accumulator", 2: "another" }; +var obj = { + 1: "accumulator", + 2: "another" +}; - Object.defineProperty(obj, "length", { - get: function () { - delete obj[1]; - return 3; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + delete obj[1]; + return 3; + }, + configurable: true +}); -assert.notSameValue(Array.prototype.reduce.call(obj, function () { }), "accumulator", 'Array.prototype.reduce.call(obj, function () { })'); +assert.notSameValue(Array.prototype.reduce.call(obj, function() {}), "accumulator", 'Array.prototype.reduce.call(obj, function () { })'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-1.js index fbba69c12c..eff2f84cf7 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-1.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-1.js @@ -9,14 +9,20 @@ description: > property on an Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === 0); - } - } +var testResult = false; - var obj = { 0: 0, 1: 1, 2: 2, length: 2 }; - Array.prototype.reduce.call(obj, callbackfn); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === 0); + } +} + +var obj = { + 0: 0, + 1: 1, + 2: 2, + length: 2 +}; +Array.prototype.reduce.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-10.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-10.js index 67b7b3f57b..c3e9f4b4b4 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 e1f08e697d..e5c7a7b977 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-11.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-11.js @@ -10,28 +10,33 @@ description: > Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === "9"); - } - } - - var proto = { 0: 0, 1: 1, 2: 2 }; - - var Con = function () { }; - Con.prototype = proto; - - var child = new Con(); - child.length = 3; - - Object.defineProperty(child, "0", { - get: function () { - return "9"; - }, - configurable: true - }); - - Array.prototype.reduce.call(child, callbackfn); +var testResult = false; + +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === "9"); + } +} + +var proto = { + 0: 0, + 1: 1, + 2: 2 +}; + +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); +child.length = 3; + +Object.defineProperty(child, "0", { + get: function() { + return "9"; + }, + configurable: true +}); + +Array.prototype.reduce.call(child, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-12.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-12.js index 9d9b802d09..79eba49451 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 00f0210ab2..62d5da4b47 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-13.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-13.js @@ -10,36 +10,39 @@ description: > Array-like object ---*/ - var testResult = false; - - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === "9"); - } - } - - var proto = { 1: 1, 2: 2}; - - Object.defineProperty(proto, "0", { - get: function () { - return 0; - }, - configurable: true - }); - - var Con = function () { }; - Con.prototype = proto; - - var child = new Con(); - child.length = 3; - - Object.defineProperty(child, "0", { - get: function () { - return "9"; - }, - configurable: true - }); - - Array.prototype.reduce.call(child, callbackfn); +var testResult = false; + +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === "9"); + } +} + +var proto = { + 1: 1, + 2: 2 +}; + +Object.defineProperty(proto, "0", { + get: function() { + return 0; + }, + configurable: true +}); + +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); +child.length = 3; + +Object.defineProperty(child, "0", { + get: function() { + return "9"; + }, + configurable: true +}); + +Array.prototype.reduce.call(child, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-14.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-14.js index 77a1084be6..0b1781550f 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-14.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-14.js @@ -9,28 +9,29 @@ description: > property that overrides an inherited accessor property on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === "9"); - } - } +var testResult = false; - Object.defineProperty(Array.prototype, "0", { - get: function () { - return 0; - }, - configurable: true - }); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === "9"); + } +} - var arr = [, 1, 2]; - Object.defineProperty(arr, "0", { - get: function () { - return "9"; - }, - configurable: true - }); +Object.defineProperty(Array.prototype, "0", { + get: function() { + return 0; + }, + configurable: true +}); - arr.reduce(callbackfn); +var arr = [, 1, 2]; +Object.defineProperty(arr, "0", { + get: function() { + return "9"; + }, + configurable: true +}); + +arr.reduce(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-15.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-15.js index 5344feebd4..6e2cc64b9d 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-15.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-15.js @@ -9,28 +9,32 @@ description: > accessor property on an Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === 0); - } - } +var testResult = false; - var proto = { 1: 1, 2: 2 }; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === 0); + } +} - Object.defineProperty(proto, "0", { - get: function () { - return 0; - }, - configurable: true - }); +var proto = { + 1: 1, + 2: 2 +}; - var Con = function () { }; - Con.prototype = proto; +Object.defineProperty(proto, "0", { + get: function() { + return 0; + }, + configurable: true +}); - var child = new Con(); - child.length = 3; +var Con = function() {}; +Con.prototype = proto; - Array.prototype.reduce.call(child, callbackfn); +var child = new Con(); +child.length = 3; + +Array.prototype.reduce.call(child, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-16.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-16.js index c941e4581f..2bfc2d804b 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-16.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-16.js @@ -9,22 +9,23 @@ description: > accessor property on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === 0); - } - } +var testResult = false; - Object.defineProperty(Array.prototype, "0", { - get: function () { - return 0; - }, - configurable: true - }); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === 0); + } +} - var arr = [, 1, 2]; +Object.defineProperty(Array.prototype, "0", { + get: function() { + return 0; + }, + configurable: true +}); - arr.reduce(callbackfn); +var arr = [, 1, 2]; + +arr.reduce(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-17.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-17.js index a411f9467e..735d1c856e 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-17.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-17.js @@ -9,20 +9,25 @@ description: > property without a get function on an Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === undefined); - } - } +var testResult = false; - var obj = { 1: 1, 2: 2, length: 3 }; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === undefined); + } +} - Object.defineProperty(obj, "0", { - set: function () { }, - configurable: true - }); +var obj = { + 1: 1, + 2: 2, + length: 3 +}; - Array.prototype.reduce.call(obj, callbackfn); +Object.defineProperty(obj, "0", { + set: function() {}, + configurable: true +}); + +Array.prototype.reduce.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-18.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-18.js index fbdfb97c81..5b2a3b2f78 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-18.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-18.js @@ -9,20 +9,21 @@ description: > property without a get function on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === undefined); - } - } +var testResult = false; - var arr = [, 1, 2]; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === undefined); + } +} - Object.defineProperty(arr, "0", { - set: function () { }, - configurable: true - }); +var arr = [, 1, 2]; - arr.reduce(callbackfn); +Object.defineProperty(arr, "0", { + set: function() {}, + configurable: true +}); + +arr.reduce(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-19.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-19.js index 1611043a21..9178b85feb 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-19.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-19.js @@ -10,22 +10,27 @@ description: > accessor property on an Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === undefined); - } - } +var testResult = false; - Object.prototype[0] = 0; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === undefined); + } +} - var obj = { 1: 1, 2: 2, length: 3 }; +Object.prototype[0] = 0; - Object.defineProperty(obj, "0", { - set: function () { }, - configurable: true - }); +var obj = { + 1: 1, + 2: 2, + length: 3 +}; - Array.prototype.reduce.call(obj, callbackfn); +Object.defineProperty(obj, "0", { + set: function() {}, + configurable: true +}); + +Array.prototype.reduce.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-2.js index 06d593f567..f8ca72b6a0 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-2.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-2.js @@ -9,14 +9,15 @@ description: > property on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === 0); - } - } +var testResult = false; - var arr = [0, 1, 2]; - arr.reduce(callbackfn); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === 0); + } +} + +var arr = [0, 1, 2]; +arr.reduce(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-20.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-20.js index 2a313d786c..e4793560e2 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-20.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-20.js @@ -10,20 +10,21 @@ description: > accessor property on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === undefined); - } - } +var testResult = false; - Array.prototype[0] = 0; - var arr = [, 1, 2]; - Object.defineProperty(arr, "0", { - set: function () { }, - configurable: true - }); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === undefined); + } +} - arr.reduce(callbackfn); +Array.prototype[0] = 0; +var arr = [, 1, 2]; +Object.defineProperty(arr, "0", { + set: function() {}, + configurable: true +}); + +arr.reduce(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-21.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-21.js index d057b59b27..47a9a843b8 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-21.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-21.js @@ -9,26 +9,30 @@ description: > accessor property without a get function on an Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === undefined); - } - } +var testResult = false; - var proto = { 1: 1, 2: 2 }; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === undefined); + } +} - Object.defineProperty(proto, "0", { - set: function () { }, - configurable: true - }); +var proto = { + 1: 1, + 2: 2 +}; - var Con = function () { }; - Con.prototype = proto; +Object.defineProperty(proto, "0", { + set: function() {}, + configurable: true +}); - var child = new Con(); - child.length = 3; +var Con = function() {}; +Con.prototype = proto; - Array.prototype.reduce.call(child, callbackfn); +var child = new Con(); +child.length = 3; + +Array.prototype.reduce.call(child, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-22.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-22.js index f7d6f961cd..dc05e78606 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-22.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-22.js @@ -9,20 +9,21 @@ description: > accessor property without a get function on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === undefined); - } - } +var testResult = false; - Object.defineProperty(Array.prototype, "0", { - set: function () { }, - configurable: true - }); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === undefined); + } +} - var arr = [, 1, 2]; +Object.defineProperty(Array.prototype, "0", { + set: function() {}, + configurable: true +}); - arr.reduce(callbackfn); +var arr = [, 1, 2]; + +arr.reduce(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-25.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-25.js index 2022366450..451955fccd 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-25.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-25.js @@ -10,17 +10,18 @@ description: > less than number of parameters) ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === 0); - } - } +var testResult = false; - var func = function (a, b, c) { - Array.prototype.reduce.call(arguments, callbackfn); - }; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === 0); + } +} - func(0, 1); +var func = function(a, b, c) { + Array.prototype.reduce.call(arguments, callbackfn); +}; + +func(0, 1); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-26.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-26.js index 887f263153..eef4cdd6ee 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-26.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-26.js @@ -10,18 +10,19 @@ description: > number of parameters) ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 2) { - testResult = (prevVal === 1); - } - } +var testResult = false; - var func = function (a, b, c) { - delete arguments[0]; - Array.prototype.reduce.call(arguments, callbackfn); - }; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 2) { + testResult = (prevVal === 1); + } +} - func(0, 1, 2); +var func = function(a, b, c) { + delete arguments[0]; + Array.prototype.reduce.call(arguments, callbackfn); +}; + +func(0, 1, 2); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-27.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-27.js index 3f591f26ec..fc4013d2db 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-27.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-27.js @@ -10,19 +10,20 @@ description: > greater than number of parameters) ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 3) { - testResult = (prevVal === 2); - } - } +var testResult = false; - var func = function (a, b, c) { - delete arguments[0]; - delete arguments[1]; - Array.prototype.reduce.call(arguments, callbackfn); - }; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 3) { + testResult = (prevVal === 2); + } +} - func(0, 1, 2, 3); +var func = function(a, b, c) { + delete arguments[0]; + delete arguments[1]; + Array.prototype.reduce.call(arguments, callbackfn); +}; + +func(0, 1, 2, 3); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-28.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-28.js index 2a96496aa5..1c429e4c7b 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-28.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-28.js @@ -9,14 +9,15 @@ description: > implements its own property get method ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === "0"); - } - } +var testResult = false; - var str = new String("012"); - Array.prototype.reduce.call(str, callbackfn); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === "0"); + } +} + +var str = new String("012"); +Array.prototype.reduce.call(str, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-29.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-29.js index 8f5e18db73..0fe7328fee 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-29.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-29.js @@ -9,21 +9,22 @@ description: > implements its own property get method ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === 0); - } - } +var testResult = false; - var obj = function (a, b, c) { - return a + b + c; - }; - obj[0] = 0; - obj[1] = 1; - obj[2] = 2; - obj[3] = 3; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === 0); + } +} - Array.prototype.reduce.call(obj, callbackfn); +var obj = function(a, b, c) { + return a + b + c; +}; +obj[0] = 0; +obj[1] = 1; +obj[2] = 2; +obj[3] = 3; + +Array.prototype.reduce.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-3.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-3.js index d77985dd3f..15298bc3ef 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-3.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-3.js @@ -10,22 +10,28 @@ description: > Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === "9"); - } - } +var testResult = false; - var proto = { 0: 0, 1: 1, 2: 2, length: 3 }; - var Con = function () { }; - Con.prototype = proto; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === "9"); + } +} - var child = new Con(); - child[0] = "9"; - child[1] = "1"; - child.length = 3; +var proto = { + 0: 0, + 1: 1, + 2: 2, + length: 3 +}; +var Con = function() {}; +Con.prototype = proto; - Array.prototype.reduce.call(child, callbackfn); +var child = new Con(); +child[0] = "9"; +child[1] = "1"; +child.length = 3; + +Array.prototype.reduce.call(child, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-30.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-30.js index c307ddda90..45f396f05c 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-30.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-30.js @@ -9,35 +9,36 @@ description: > iterations is observed in subsequent iterations on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } - - var arr = [, , 2]; - var preIterVisible = false; - - Object.defineProperty(arr, "0", { - get: function () { - preIterVisible = true; - return 0; - }, - configurable: true - }); - - Object.defineProperty(arr, "1", { - get: function () { - if (preIterVisible) { - return 1; - } else { - return 100; - } - }, - configurable: true - }); - - arr.reduce(callbackfn); +var testResult = false; + +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} + +var arr = [, , 2]; +var preIterVisible = false; + +Object.defineProperty(arr, "0", { + get: function() { + preIterVisible = true; + return 0; + }, + configurable: true +}); + +Object.defineProperty(arr, "1", { + get: function() { + if (preIterVisible) { + return 1; + } else { + return 100; + } + }, + configurable: true +}); + +arr.reduce(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-31.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-31.js index e035ae8e4a..70282ce37e 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-31.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-31.js @@ -10,35 +10,38 @@ description: > object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } - - var obj = { length: 2 }; - var preIterVisible = false; - - Object.defineProperty(obj, "0", { - get: function () { - preIterVisible = true; - return 0; - }, - configurable: true - }); - - Object.defineProperty(obj, "1", { - get: function () { - if (preIterVisible) { - return 1; - } else { - return 100; - } - }, - configurable: true - }); - - Array.prototype.reduce.call(obj, callbackfn); +var testResult = false; + +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} + +var obj = { + length: 2 +}; +var preIterVisible = false; + +Object.defineProperty(obj, "0", { + get: function() { + preIterVisible = true; + return 0; + }, + configurable: true +}); + +Object.defineProperty(obj, "1", { + get: function() { + if (preIterVisible) { + return 1; + } else { + return 100; + } + }, + configurable: true +}); + +Array.prototype.reduce.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-32.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-32.js index 1324085437..50002a64e3 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-32.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-32.js @@ -9,24 +9,29 @@ description: > on an Array-like object ---*/ - var accessed = false; - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx >= 1) { - accessed = true; - testResult = (prevVal === 0); - } - } +var accessed = false; +var testResult = false; - var obj = { 2: 2, 1: 1, length: 3 }; - Object.defineProperty(obj, "0", { - get: function () { - throw new RangeError("unhandle exception happened in getter"); - }, - configurable: true - }); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx >= 1) { + accessed = true; + testResult = (prevVal === 0); + } +} + +var obj = { + 2: 2, + 1: 1, + length: 3 +}; +Object.defineProperty(obj, "0", { + get: function() { + throw new RangeError("unhandle exception happened in getter"); + }, + configurable: true +}); assert.throws(RangeError, function() { - Array.prototype.reduce.call(obj, callbackfn); + Array.prototype.reduce.call(obj, callbackfn); }); assert.sameValue(accessed, false, 'accessed'); assert.sameValue(testResult, false, 'testResult'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-33.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-33.js index be7c29e8be..9f00cb900f 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-33.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-33.js @@ -9,25 +9,26 @@ description: > on an Array ---*/ - var accessed = false; - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx >= 1) { - accessed = true; - testResult = (prevVal === 0); - } - } +var accessed = false; +var testResult = false; - var arr = [, 1, 2]; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx >= 1) { + accessed = true; + testResult = (prevVal === 0); + } +} - Object.defineProperty(arr, "0", { - get: function () { - throw new RangeError("unhandle exception happened in getter"); - }, - configurable: true - }); +var arr = [, 1, 2]; + +Object.defineProperty(arr, "0", { + get: function() { + throw new RangeError("unhandle exception happened in getter"); + }, + configurable: true +}); assert.throws(RangeError, function() { - arr.reduce(callbackfn); + arr.reduce(callbackfn); }); assert.sameValue(accessed, false, 'accessed'); assert.sameValue(testResult, false, 'testResult'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-4.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-4.js index 26118b58f1..72a46d6c81 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-4.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-4.js @@ -9,14 +9,15 @@ description: > property that overrides an inherited data property on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === 0); - } - } +var testResult = false; - Array.prototype[0] = "9"; - [0, 1, 2].reduce(callbackfn); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === 0); + } +} + +Array.prototype[0] = "9"; +[0, 1, 2].reduce(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-5.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-5.js index 0c9aeb7b8a..17c7e51c65 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-5.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-5.js @@ -10,33 +10,34 @@ description: > Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === "9"); - } - } - - var proto = {}; - - Object.defineProperty(proto, "0", { - get: function () { - return 0; - }, - configurable: true - }); - - var Con = function () { }; - Con.prototype = proto; - - var child = new Con(); - child.length = 2; - Object.defineProperty(child, "0", { - value: "9", - configurable: true - }); - child[1] = "1"; - - Array.prototype.reduce.call(child, callbackfn); +var testResult = false; + +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === "9"); + } +} + +var proto = {}; + +Object.defineProperty(proto, "0", { + get: function() { + return 0; + }, + configurable: true +}); + +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); +child.length = 2; +Object.defineProperty(child, "0", { + value: "9", + configurable: true +}); +child[1] = "1"; + +Array.prototype.reduce.call(child, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-6.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-6.js index 22b4af3ec5..2b0f847da4 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-6.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-6.js @@ -9,20 +9,21 @@ description: > property that overrides an inherited accessor property on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === 0); - } - } +var testResult = false; - Object.defineProperty(Array.prototype, "0", { - get: function () { - return "5"; - }, - configurable: true - }); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === 0); + } +} - [0, 1, 2].reduce(callbackfn); +Object.defineProperty(Array.prototype, "0", { + get: function() { + return "5"; + }, + configurable: true +}); + +[0, 1, 2].reduce(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-7.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-7.js index 6eaf1bac18..24fa5654ce 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-7.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-7.js @@ -9,20 +9,26 @@ description: > property on an Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === 0); - } - } +var testResult = false; - var proto = { 0: 0, 1: 1, 2: 2, length: 3 }; - var Con = function () { }; - Con.prototype = proto; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === 0); + } +} - var child = new Con(); - child.length = 3; +var proto = { + 0: 0, + 1: 1, + 2: 2, + length: 3 +}; +var Con = function() {}; +Con.prototype = proto; - Array.prototype.reduce.call(child, callbackfn); +var child = new Con(); +child.length = 3; + +Array.prototype.reduce.call(child, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-8.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-8.js index 48166b7ee4..0eed563635 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-8.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-8.js @@ -9,16 +9,17 @@ description: > property on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === 0); - } - } +var testResult = false; - Array.prototype[0] = 0; - Array.prototype[1] = 1; - Array.prototype[2] = 2; - [, , ,].reduce(callbackfn); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === 0); + } +} + +Array.prototype[0] = 0; +Array.prototype[1] = 1; +Array.prototype[2] = 2; +[, , , ].reduce(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-9.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-9.js index 82a348b81e..d61c61aea2 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-9.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-9.js @@ -9,21 +9,26 @@ description: > property on an Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === 0); - } - } +var testResult = false; - var obj = { 1: 1, 2: 2, length: 3 }; - Object.defineProperty(obj, "0", { - get: function () { - return 0; - }, - configurable: true - }); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === 0); + } +} - Array.prototype.reduce.call(obj, callbackfn); +var obj = { + 1: 1, + 2: 2, + length: 3 +}; +Object.defineProperty(obj, "0", { + get: function() { + return 0; + }, + configurable: true +}); + +Array.prototype.reduce.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-1.js index 9fb6bc97ca..bd6232342c 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-1.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-1.js @@ -9,11 +9,10 @@ description: > initialValue is not present ---*/ - function callbackfn(prevVal, curVal, idx, obj) - { - } +function callbackfn(prevVal, curVal, idx, obj) +{} - var arr = new Array(10); +var arr = new Array(10); assert.throws(TypeError, function() { - arr.reduce(callbackfn); + arr.reduce(callbackfn); }); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-2.js index ae73a9a862..f30f014b99 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-2.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-2.js @@ -10,13 +10,12 @@ description: > not present ---*/ - function callbackfn(prevVal, curVal, idx, obj) - { - } +function callbackfn(prevVal, curVal, idx, obj) +{} - var arr = new Array(10); - arr[9] = 1; - arr.length = 5; +var arr = new Array(10); +arr[9] = 1; +arr.length = 5; assert.throws(TypeError, function() { - arr.reduce(callbackfn); + arr.reduce(callbackfn); }); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-3.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-3.js index f4e87f5e0b..15d80dfa2a 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-3.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-3.js @@ -9,16 +9,15 @@ description: > values are deleted and initialValue is not present ---*/ - function callbackfn(prevVal, curVal, idx, obj) - { - } +function callbackfn(prevVal, curVal, idx, obj) +{} - var arr = [1,2,3,4,5]; - delete arr[0]; - delete arr[1]; - delete arr[2]; - delete arr[3]; - delete arr[4]; +var arr = [1, 2, 3, 4, 5]; +delete arr[0]; +delete arr[1]; +delete arr[2]; +delete arr[3]; +delete arr[4]; assert.throws(TypeError, function() { - arr.reduce(callbackfn); + arr.reduce(callbackfn); }); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-4.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-4.js index 3e712b86da..db9f7aebab 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 756a4e93d3..d04354342b 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 af901dc8ef..687736c2bc 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 adbdc526a8..178c34c704 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 cd677383a6..64f4b8f793 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 6076c9b101..2ac5c2e737 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 10a0e43683..fec5a6b8d9 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 2e74efa53b..0db9712104 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 e5942de1a0..514951a748 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 e1d2f69fb4..6b9f7ca036 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 b07ae90200..4fc56efead 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-5.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-5.js @@ -9,14 +9,15 @@ description: > element ---*/ - var callCnt = 0; - function callbackfn(prevVal, curVal, idx, obj) - { - callCnt++; - return 2; - } +var callCnt = 0; - var arr = [1]; +function callbackfn(prevVal, curVal, idx, obj) +{ + callCnt++; + return 2; +} + +var arr = [1]; assert.sameValue(arr.reduce(callbackfn), 1, 'arr.reduce(callbackfn)'); assert.sameValue(callCnt, 0, 'callCnt'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-6.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-6.js index a31d59a240..2d05468ef2 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 67e99779fa..f8c3a4b711 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 beceef98c6..6feccfcb35 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-8.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-8.js @@ -7,23 +7,26 @@ es5id: 15.4.4.21-9-8 description: Array.prototype.reduce - no observable effects occur if 'len' is 0 ---*/ - var accessed = false; - var callbackAccessed = false; - function callbackfn() { - callbackAccessed = true; - } +var accessed = false; +var callbackAccessed = false; - var obj = { length: 0 }; +function callbackfn() { + callbackAccessed = true; +} - Object.defineProperty(obj, "0", { - get: function () { - accessed = true; - return 10; - }, - configurable: true - }); +var obj = { + length: 0 +}; - Array.prototype.reduce.call(obj, function () { }, "initialValue"); +Object.defineProperty(obj, "0", { + get: function() { + accessed = true; + return 10; + }, + configurable: true +}); + +Array.prototype.reduce.call(obj, function() {}, "initialValue"); assert.sameValue(accessed, false, 'accessed'); assert.sameValue(callbackAccessed, false, 'callbackAccessed'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-9.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-9.js index aa867346f2..0a6ba82e40 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-9.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-9.js @@ -9,22 +9,23 @@ description: > number of iterations in step 9 ---*/ - var called = 0; - function callbackfn(accum, val, idx, obj) { - called++; - return accum + val; - } +var called = 0; - var arr = [0, 1, 2, 3]; - Object.defineProperty(arr, "0", { - get: function () { - arr.length = 2; - return 0; - }, - configurable: true - }); +function callbackfn(accum, val, idx, obj) { + called++; + return accum + val; +} - var newAccum = arr.reduce(callbackfn, "initialValue"); +var arr = [0, 1, 2, 3]; +Object.defineProperty(arr, "0", { + get: function() { + arr.length = 2; + return 0; + }, + configurable: true +}); + +var newAccum = arr.reduce(callbackfn, "initialValue"); assert.sameValue(newAccum, "initialValue01", 'newAccum'); assert.sameValue(called, 2, 'called'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-1.js index e7f18d3bdc..274f1bb6ee 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-1.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-1.js @@ -9,10 +9,9 @@ description: > and initialValue is present ---*/ - function callbackfn(prevVal, curVal, idx, obj) - { - } +function callbackfn(prevVal, curVal, idx, obj) +{} - var arr = new Array(10); +var arr = new Array(10); -assert.sameValue(arr.reduce(callbackfn,5), 5, 'arr.reduce(callbackfn,5)'); +assert.sameValue(arr.reduce(callbackfn, 5), 5, 'arr.reduce(callbackfn,5)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-10.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-10.js index 4adec3c103..bf0d29423d 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-10.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-10.js @@ -10,28 +10,31 @@ description: > Object ---*/ - var accessed = false; - var testResult = true; +var accessed = false; +var testResult = true; - function callbackfn(accum, val, idx, obj) { - accessed = true; - if (idx === 3) { - testResult = false; - } - } +function callbackfn(accum, val, idx, obj) { + accessed = true; + if (idx === 3) { + testResult = false; + } +} - var obj = { 2: 2, length: 20 }; +var obj = { + 2: 2, + length: 20 +}; - Object.defineProperty(obj, "0", { - get: function () { - delete Object.prototype[3]; - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + delete Object.prototype[3]; + return 0; + }, + configurable: true +}); - Object.prototype[3] = 1; - Array.prototype.reduce.call(obj, callbackfn); +Object.prototype[3] = 1; +Array.prototype.reduce.call(obj, callbackfn); assert(testResult, 'testResult !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-11.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-11.js index b2f71de95f..4636bd54a2 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 c82150f241..7605c7ebee 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-12.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-12.js @@ -10,25 +10,30 @@ description: > on an Array-like object ---*/ - var testResult = false; +var testResult = false; - function callbackfn(accum, val, idx, obj) { - if (idx === 1 && val === 1) { - testResult = true; - } - } +function callbackfn(accum, val, idx, obj) { + if (idx === 1 && val === 1) { + testResult = true; + } +} - var obj = { 0: 0, 1: 111, 4: 10, length: 10 }; +var obj = { + 0: 0, + 1: 111, + 4: 10, + length: 10 +}; - Object.defineProperty(obj, "0", { - get: function () { - delete obj[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + delete obj[1]; + return 0; + }, + configurable: true +}); - Object.prototype[1] = 1; - Array.prototype.reduce.call(obj, callbackfn); +Object.prototype[1] = 1; +Array.prototype.reduce.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-13.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-13.js index fa7a8f54d9..4960d60e65 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 590122b87e..0d00a32316 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 18cc658186..4d42c2ca78 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 29c1d4f8e8..047fc4db91 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 34cbe86514..2364819b98 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-17.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-17.js @@ -9,29 +9,31 @@ description: > visited on an Array-like object ---*/ - var testResult = false; +var testResult = false; - function callbackfn(accum, val, idx, obj) { - if (idx === 3 && val === 3) { - testResult = true; - } - } +function callbackfn(accum, val, idx, obj) { + if (idx === 3 && val === 3) { + testResult = true; + } +} - var obj = { length: 5 }; +var obj = { + length: 5 +}; - Object.defineProperty(obj, "1", { - get: function () { - Object.defineProperty(obj, "3", { - get: function () { - return 3; - }, - configurable: true - }); - return 1; - }, - configurable: true - }); +Object.defineProperty(obj, "1", { + get: function() { + Object.defineProperty(obj, "3", { + get: function() { + return 3; + }, + configurable: true + }); + return 1; + }, + configurable: true +}); - Array.prototype.reduce.call(obj, callbackfn, "initialValue"); +Array.prototype.reduce.call(obj, callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-18.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-18.js index 9cede28d07..94cdebfc31 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 76fb7a8176..719447c92e 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-19.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-19.js @@ -9,29 +9,31 @@ description: > on an Array-like object ---*/ - var testResult = false; +var testResult = false; - function callbackfn(accum, val, idx, obj) { - if (idx === 1 && val === 6.99) { - testResult = true; - } - } +function callbackfn(accum, val, idx, obj) { + if (idx === 1 && val === 6.99) { + testResult = true; + } +} - var obj = { length: 6 }; +var obj = { + length: 6 +}; - Object.defineProperty(obj, "0", { - get: function () { - Object.defineProperty(Object.prototype, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + Object.defineProperty(Object.prototype, "1", { + get: function() { + return 6.99; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); - Array.prototype.reduce.call(obj, callbackfn, "initialValue"); +Array.prototype.reduce.call(obj, callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-2.js index 42f76e8fae..eabeeb5eb1 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 2d52994db6..935e8ca310 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 f5ae4f380e..200ac1c68e 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-21.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-21.js @@ -9,34 +9,37 @@ description: > index property not to be visited on an Array-like object ---*/ - var accessed = false; - var testResult = true; - - function callbackfn(accum, val, idx, obj) { - accessed = true; - if (idx === 1) { - testResult = false; - } - } - - var obj = { 5: 10, length: 10 }; - - Object.defineProperty(obj, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); - - Object.defineProperty(obj, "0", { - get: function () { - delete obj[1]; - return 0; - }, - configurable: true - }); - - Array.prototype.reduce.call(obj, callbackfn, "initialValue"); +var accessed = false; +var testResult = true; + +function callbackfn(accum, val, idx, obj) { + accessed = true; + if (idx === 1) { + testResult = false; + } +} + +var obj = { + 5: 10, + length: 10 +}; + +Object.defineProperty(obj, "1", { + get: function() { + return 6.99; + }, + configurable: true +}); + +Object.defineProperty(obj, "0", { + get: function() { + delete obj[1]; + return 0; + }, + configurable: true +}); + +Array.prototype.reduce.call(obj, callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-22.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-22.js index f824832cb2..64402e07c9 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 3ee4365ed6..236167f7ed 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-23.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-23.js @@ -9,28 +9,31 @@ description: > deleted index property not to be visited on an Array-like Object ---*/ - var accessed = false; - var testResult = true; +var accessed = false; +var testResult = true; - function callbackfn(accum, val, idx, obj) { - accessed = true; - if (idx === 3) { - testResult = false; - } - } +function callbackfn(accum, val, idx, obj) { + accessed = true; + if (idx === 3) { + testResult = false; + } +} - var obj = { 2: 2, length: 20 }; +var obj = { + 2: 2, + length: 20 +}; - Object.defineProperty(obj, "0", { - get: function () { - delete Object.prototype[3]; - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + delete Object.prototype[3]; + return 0; + }, + configurable: true +}); - Object.prototype[3] = 1; - Array.prototype.reduce.call(obj, callbackfn, "initialValue"); +Object.prototype[3] = 1; +Array.prototype.reduce.call(obj, callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-24.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-24.js index 18d1e20694..7a2cbcd165 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 83c1b449e9..311f9f21f0 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-25.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-25.js @@ -10,25 +10,30 @@ description: > Array-like object ---*/ - var testResult = false; +var testResult = false; - function callbackfn(accum, val, idx, obj) { - if (idx === 1 && val === 1) { - testResult = true; - } - } +function callbackfn(accum, val, idx, obj) { + if (idx === 1 && val === 1) { + testResult = true; + } +} - var obj = { 0: 0, 1: 111, 4: 10, length: 10 }; +var obj = { + 0: 0, + 1: 111, + 4: 10, + length: 10 +}; - Object.defineProperty(obj, "0", { - get: function () { - delete obj[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + delete obj[1]; + return 0; + }, + configurable: true +}); - Object.prototype[1] = 1; - Array.prototype.reduce.call(obj, callbackfn, "initialValue"); +Object.prototype[1] = 1; +Array.prototype.reduce.call(obj, callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-26.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-26.js index c5b22131b1..8a570c25ee 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 a20faec87f..bfbf66fbf4 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 44bdb414cf..ba16dafa85 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 a4f5167437..1c872c518c 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 8f8382931e..2f72b891a4 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-3.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-3.js @@ -9,27 +9,30 @@ description: > here ---*/ - var accessed = false; - var testResult = true; +var accessed = false; +var testResult = true; - function callbackfn(accum, val, idx, obj) { - accessed = true; - if (idx === 2) { - testResult = false; - } - } +function callbackfn(accum, val, idx, obj) { + accessed = true; + if (idx === 2) { + testResult = false; + } +} - var obj = { 2: "2", 3: 10 }; +var obj = { + 2: "2", + 3: 10 +}; - Object.defineProperty(obj, "length", { - get: function () { - delete obj[2]; - return 5; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + delete obj[2]; + return 5; + }, + configurable: true +}); - Array.prototype.reduce.call(obj, callbackfn, "initialValue"); +Array.prototype.reduce.call(obj, callbackfn, "initialValue"); assert(accessed, 'accessed !== true'); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-4.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-4.js index 249f49a291..208fd04f22 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-4.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-4.js @@ -9,29 +9,31 @@ description: > 8 are visited on an Array-like object ---*/ - var testResult = false; +var testResult = false; - function callbackfn(accum, val, idx, obj) { - if (idx === 3 && val === 3) { - testResult = true; - } - } +function callbackfn(accum, val, idx, obj) { + if (idx === 3 && val === 3) { + testResult = true; + } +} - var obj = { length: 5 }; +var obj = { + length: 5 +}; - Object.defineProperty(obj, "1", { - get: function () { - Object.defineProperty(obj, "3", { - get: function () { - return 3; - }, - configurable: true - }); - return 1; - }, - configurable: true - }); +Object.defineProperty(obj, "1", { + get: function() { + Object.defineProperty(obj, "3", { + get: function() { + return 3; + }, + configurable: true + }); + return 1; + }, + configurable: true +}); - Array.prototype.reduce.call(obj, callbackfn); +Array.prototype.reduce.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-5.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-5.js index 43b8766cd2..872321367d 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 85e075d852..6002cbd912 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-6.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-6.js @@ -9,29 +9,31 @@ description: > are visited on an Array-like object ---*/ - var testResult = false; +var testResult = false; - function callbackfn(accum, val, idx, obj) { - if (idx === 1 && val === 6.99) { - testResult = true; - } - } +function callbackfn(accum, val, idx, obj) { + if (idx === 1 && val === 6.99) { + testResult = true; + } +} - var obj = { length: 6 }; +var obj = { + length: 6 +}; - Object.defineProperty(obj, "0", { - get: function () { - Object.defineProperty(Object.prototype, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + Object.defineProperty(Object.prototype, "1", { + get: function() { + return 6.99; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); - Array.prototype.reduce.call(obj, callbackfn); +Array.prototype.reduce.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-7.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-7.js index 67e1fc135d..b41a6c1378 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 219d2df560..4386fa4a48 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-8.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-8.js @@ -9,34 +9,37 @@ description: > deleted index property not to be visited on an Array-like object ---*/ - var accessed = false; - var testResult = true; - - function callbackfn(accum, val, idx, obj) { - accessed = true; - if (idx === 1) { - testResult = false; - } - } - - var obj = { 5: 10, length: 10 }; - - Object.defineProperty(obj, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); - - Object.defineProperty(obj, "0", { - get: function () { - delete obj[1]; - return 0; - }, - configurable: true - }); - - Array.prototype.reduce.call(obj, callbackfn); +var accessed = false; +var testResult = true; + +function callbackfn(accum, val, idx, obj) { + accessed = true; + if (idx === 1) { + testResult = false; + } +} + +var obj = { + 5: 10, + length: 10 +}; + +Object.defineProperty(obj, "1", { + get: function() { + return 6.99; + }, + configurable: true +}); + +Object.defineProperty(obj, "0", { + get: function() { + delete obj[1]; + return 0; + }, + configurable: true +}); + +Array.prototype.reduce.call(obj, callbackfn); assert(testResult, 'testResult !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-9.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-9.js index ab402f3367..2f9739a3d1 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 9f22078b8b..82bb1fd5fd 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-1.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-1.js @@ -9,15 +9,16 @@ description: > been assigned values ---*/ - var callCnt = 0; - function callbackfn(prevVal, curVal, idx, obj) - { - callCnt++; - return curVal; - } +var callCnt = 0; - var arr = new Array(10); - arr[0] = arr[1] = undefined; //explicitly assigning a value +function callbackfn(prevVal, curVal, idx, obj) +{ + callCnt++; + return curVal; +} + +var arr = new Array(10); +arr[0] = arr[1] = undefined; //explicitly assigning a value assert.sameValue(arr.reduce(callbackfn), undefined, 'arr.reduce(callbackfn)'); assert.sameValue(callCnt, 1, 'callCnt'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-1.js index 8e4385ae23..83910eb355 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-1.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-1.js @@ -9,15 +9,21 @@ description: > property on an Array-like object ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } +var testResult = false; +var initialValue = 0; - var obj = { 0: 0, 1: 1, 2: 2, length: 2 }; - Array.prototype.reduce.call(obj, callbackfn, initialValue); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} + +var obj = { + 0: 0, + 1: 1, + 2: 2, + length: 2 +}; +Array.prototype.reduce.call(obj, callbackfn, initialValue); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-10.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-10.js index 35db68b11f..a297b03616 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-10.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-10.js @@ -9,23 +9,24 @@ description: > property on an Array ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } +var testResult = false; +var initialValue = 0; - var arr = [0, , 2]; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} - Object.defineProperty(arr, "1", { - get: function () { - return 1; - }, - configurable: true - }); +var arr = [0, , 2]; - arr.reduce(callbackfn, initialValue); +Object.defineProperty(arr, "1", { + get: function() { + return 1; + }, + configurable: true +}); + +arr.reduce(callbackfn, initialValue); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-11.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-11.js index 3468f85edc..b5cc2ad9b2 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-11.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-11.js @@ -10,29 +10,34 @@ description: > Array-like object ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === "11"); - } - } - - var proto = { 0: 0, 1: 1, 2: 2 }; - - var Con = function () { }; - Con.prototype = proto; - - var child = new Con(); - child.length = 3; - - Object.defineProperty(child, "1", { - get: function () { - return "11"; - }, - configurable: true - }); - - Array.prototype.reduce.call(child, callbackfn, initialValue); +var testResult = false; +var initialValue = 0; + +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === "11"); + } +} + +var proto = { + 0: 0, + 1: 1, + 2: 2 +}; + +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); +child.length = 3; + +Object.defineProperty(child, "1", { + get: function() { + return "11"; + }, + configurable: true +}); + +Array.prototype.reduce.call(child, callbackfn, initialValue); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-12.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-12.js index 85072151e3..de4c3f77b5 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-12.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-12.js @@ -9,24 +9,25 @@ description: > property that overrides an inherited data property on an Array ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === "11"); - } - } +var testResult = false; +var initialValue = 0; - Array.prototype[1] = 1; - var arr = [0, ,2]; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === "11"); + } +} - Object.defineProperty(arr, "1", { - get: function () { - return "11"; - }, - configurable: true - }); +Array.prototype[1] = 1; +var arr = [0, , 2]; - arr.reduce(callbackfn, initialValue); +Object.defineProperty(arr, "1", { + get: function() { + return "11"; + }, + configurable: true +}); + +arr.reduce(callbackfn, initialValue); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-13.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-13.js index 49d727d7a5..c29ed6061a 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-13.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-13.js @@ -10,36 +10,40 @@ description: > Array-like object ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === "11"); - } - } - - var proto = { 0: 0, 2: 2}; - - Object.defineProperty(proto, "1", { - get: function () { - return 1; - }, - configurable: true - }); - - var Con = function () { }; - Con.prototype = proto; - - var child = new Con(); - child.length = 3; - - Object.defineProperty(child, "1", { - get: function () { - return "11"; - }, - configurable: true - }); - - Array.prototype.reduce.call(child, callbackfn, initialValue); +var testResult = false; +var initialValue = 0; + +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === "11"); + } +} + +var proto = { + 0: 0, + 2: 2 +}; + +Object.defineProperty(proto, "1", { + get: function() { + return 1; + }, + configurable: true +}); + +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); +child.length = 3; + +Object.defineProperty(child, "1", { + get: function() { + return "11"; + }, + configurable: true +}); + +Array.prototype.reduce.call(child, callbackfn, initialValue); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-14.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-14.js index 439002290c..5d2ea3e9cc 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-14.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-14.js @@ -9,29 +9,30 @@ description: > property that overrides an inherited accessor property on an Array ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === "11"); - } - } +var testResult = false; +var initialValue = 0; - Object.defineProperty(Array.prototype, "1", { - get: function () { - return 1; - }, - configurable: true - }); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === "11"); + } +} - var arr = [0, ,2]; +Object.defineProperty(Array.prototype, "1", { + get: function() { + return 1; + }, + configurable: true +}); - Object.defineProperty(arr, "1", { - get: function () { - return "11"; - }, - configurable: true - }); - arr.reduce(callbackfn, initialValue); +var arr = [0, , 2]; + +Object.defineProperty(arr, "1", { + get: function() { + return "11"; + }, + configurable: true +}); +arr.reduce(callbackfn, initialValue); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-15.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-15.js index 8a48197782..fb6f4b4307 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-15.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-15.js @@ -9,29 +9,33 @@ description: > accessor property on an Array-like object ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } - - var proto = { 0: 0, 2: 2 }; - - Object.defineProperty(proto, "1", { - get: function () { - return 1; - }, - configurable: true - }); - - var Con = function () { }; - Con.prototype = proto; - - var child = new Con(); - child.length = 3; - - Array.prototype.reduce.call(child, callbackfn, initialValue); +var testResult = false; +var initialValue = 0; + +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} + +var proto = { + 0: 0, + 2: 2 +}; + +Object.defineProperty(proto, "1", { + get: function() { + return 1; + }, + configurable: true +}); + +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); +child.length = 3; + +Array.prototype.reduce.call(child, callbackfn, initialValue); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-16.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-16.js index 0b26a82315..ea5b70bf7e 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-16.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-16.js @@ -9,23 +9,24 @@ description: > accessor property on an Array ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } +var testResult = false; +var initialValue = 0; - Object.defineProperty(Array.prototype, "1", { - get: function () { - return 1; - }, - configurable: true - }); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} - var arr = [0, , 2, ]; +Object.defineProperty(Array.prototype, "1", { + get: function() { + return 1; + }, + configurable: true +}); - arr.reduce(callbackfn, initialValue); +var arr = [0, , 2, ]; + +arr.reduce(callbackfn, initialValue); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-17.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-17.js index 72e9c9c3e1..2612938851 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-17.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-17.js @@ -9,21 +9,26 @@ description: > property without a get function on an Array-like object ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === undefined); - } - } +var testResult = false; +var initialValue = 0; - var obj = { 0: 0, 2: 2, length: 3 }; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === undefined); + } +} - Object.defineProperty(obj, "1", { - set: function () { }, - configurable: true - }); +var obj = { + 0: 0, + 2: 2, + length: 3 +}; - Array.prototype.reduce.call(obj, callbackfn, initialValue); +Object.defineProperty(obj, "1", { + set: function() {}, + configurable: true +}); + +Array.prototype.reduce.call(obj, callbackfn, initialValue); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-18.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-18.js index e5e1c98e3e..8b1b27917f 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-18.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-18.js @@ -9,21 +9,22 @@ description: > property without a get function on an Array ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === undefined); - } - } +var testResult = false; +var initialValue = 0; - var arr = [0, , 2]; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === undefined); + } +} - Object.defineProperty(arr, "1", { - set: function () { }, - configurable: true - }); +var arr = [0, , 2]; - arr.reduce(callbackfn, initialValue); +Object.defineProperty(arr, "1", { + set: function() {}, + configurable: true +}); + +arr.reduce(callbackfn, initialValue); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-19.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-19.js index a8ab13f94b..d385edd583 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-19.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-19.js @@ -10,28 +10,33 @@ description: > accessor property on an Array-like object ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === undefined); - } - } - - Object.defineProperty(Object.prototype, "1", { - get: function () { - return 1; - }, - configurable: true - }); - - var obj = { 0: 0, 2: 2, length: 3 }; - - Object.defineProperty(obj, "1", { - set: function () { }, - configurable: true - }); - - Array.prototype.reduce.call(obj, callbackfn, initialValue); +var testResult = false; +var initialValue = 0; + +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === undefined); + } +} + +Object.defineProperty(Object.prototype, "1", { + get: function() { + return 1; + }, + configurable: true +}); + +var obj = { + 0: 0, + 2: 2, + length: 3 +}; + +Object.defineProperty(obj, "1", { + set: function() {}, + configurable: true +}); + +Array.prototype.reduce.call(obj, callbackfn, initialValue); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-2.js index cbabbcf459..bec49675d6 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-2.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-2.js @@ -9,15 +9,16 @@ description: > property on an Array ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } +var testResult = false; +var initialValue = 0; - var arr = [0, 1]; - arr.reduce(callbackfn, initialValue); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} + +var arr = [0, 1]; +arr.reduce(callbackfn, initialValue); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-20.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-20.js index 5596e002fc..96d6089f47 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-20.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-20.js @@ -10,27 +10,28 @@ description: > accessor property on an Array ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === undefined); - } - } +var testResult = false; +var initialValue = 0; - Object.defineProperty(Array.prototype, "1", { - get: function () { - return 11; - }, - configurable: true - }); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === undefined); + } +} - var arr = [0, , 2]; - Object.defineProperty(arr, "1", { - set: function () { }, - configurable: true - }); +Object.defineProperty(Array.prototype, "1", { + get: function() { + return 11; + }, + configurable: true +}); - arr.reduce(callbackfn, initialValue); +var arr = [0, , 2]; +Object.defineProperty(arr, "1", { + set: function() {}, + configurable: true +}); + +arr.reduce(callbackfn, initialValue); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-21.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-21.js index 160a4ea8e1..4994164fdd 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-21.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-21.js @@ -9,27 +9,31 @@ description: > accessor property without a get function on an Array-like object ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === undefined); - } - } +var testResult = false; +var initialValue = 0; - var proto = { 0: 0, 2: 2 }; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === undefined); + } +} - Object.defineProperty(proto, "1", { - set: function () { }, - configurable: true - }); +var proto = { + 0: 0, + 2: 2 +}; - var Con = function () { }; - Con.prototype = proto; +Object.defineProperty(proto, "1", { + set: function() {}, + configurable: true +}); - var child = new Con(); - child.length = 3; +var Con = function() {}; +Con.prototype = proto; - Array.prototype.reduce.call(child, callbackfn, initialValue); +var child = new Con(); +child.length = 3; + +Array.prototype.reduce.call(child, callbackfn, initialValue); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-22.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-22.js index e6a171d693..b906e19e77 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-22.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-22.js @@ -9,21 +9,22 @@ description: > accessor property without a get function on an Array ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === undefined); - } - } +var testResult = false; +var initialValue = 0; - Object.defineProperty(Array.prototype, "1", { - set: function () { }, - configurable: true - }); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === undefined); + } +} - var arr = [0, , 2]; +Object.defineProperty(Array.prototype, "1", { + set: function() {}, + configurable: true +}); - arr.reduce(callbackfn, initialValue); +var arr = [0, , 2]; + +arr.reduce(callbackfn, initialValue); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-25.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-25.js index dc5a6a969b..08713388f0 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-25.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-25.js @@ -10,18 +10,19 @@ description: > less than number of parameters) ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } +var testResult = false; +var initialValue = 0; - var func = function (a, b, c) { - Array.prototype.reduce.call(arguments, callbackfn, initialValue); - }; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} - func(0, 1); +var func = function(a, b, c) { + Array.prototype.reduce.call(arguments, callbackfn, initialValue); +}; + +func(0, 1); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-26.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-26.js index a941dc65f6..d8ce4350b2 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-26.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-26.js @@ -10,18 +10,19 @@ description: > number of parameters) ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 2) { - testResult = (curVal === 2); - } - } +var testResult = false; +var initialValue = 0; - var func = function (a, b, c) { - Array.prototype.reduce.call(arguments, callbackfn, initialValue); - }; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 2) { + testResult = (curVal === 2); + } +} - func(0, 1, 2); +var func = function(a, b, c) { + Array.prototype.reduce.call(arguments, callbackfn, initialValue); +}; + +func(0, 1, 2); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-27.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-27.js index 2907f2210f..40b63f9877 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-27.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-27.js @@ -10,18 +10,19 @@ description: > greater than number of parameters) ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 3) { - testResult = (curVal === 3); - } - } +var testResult = false; +var initialValue = 0; - var func = function (a, b, c) { - Array.prototype.reduce.call(arguments, callbackfn, initialValue); - }; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 3) { + testResult = (curVal === 3); + } +} - func(0, 1, 2, 3); +var func = function(a, b, c) { + Array.prototype.reduce.call(arguments, callbackfn, initialValue); +}; + +func(0, 1, 2, 3); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-28.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-28.js index 9422c48fcd..92981a4a9f 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-28.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-28.js @@ -9,16 +9,17 @@ description: > implements its own property get method ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === "1"); - } - } +var testResult = false; +var initialValue = 0; - var str = new String("012"); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === "1"); + } +} - Array.prototype.reduce.call(str, callbackfn, initialValue); +var str = new String("012"); + +Array.prototype.reduce.call(str, callbackfn, initialValue); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-29.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-29.js index 9003db41a2..270742aa9c 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-29.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-29.js @@ -9,22 +9,23 @@ description: > implements its own property get method ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } +var testResult = false; +var initialValue = 0; - var obj = function (a, b, c) { - return a + b + c; - }; - obj[0] = 0; - obj[1] = 1; - obj[2] = 2; - obj[3] = 3; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} - Array.prototype.reduce.call(obj, callbackfn, initialValue); +var obj = function(a, b, c) { + return a + b + c; +}; +obj[0] = 0; +obj[1] = 1; +obj[2] = 2; +obj[3] = 3; + +Array.prototype.reduce.call(obj, callbackfn, initialValue); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-3.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-3.js index 19a4e19a09..0a23d5c010 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-3.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-3.js @@ -10,23 +10,29 @@ description: > Array-like object ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === "11"); - } - } +var testResult = false; +var initialValue = 0; - var proto = { 0: 0, 1: 1, 2: 2, length: 2 }; - var Con = function () { }; - Con.prototype = proto; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === "11"); + } +} - var child = new Con(); - child[1] = "11"; - child[2] = "22"; - child.length = 3; +var proto = { + 0: 0, + 1: 1, + 2: 2, + length: 2 +}; +var Con = function() {}; +Con.prototype = proto; - Array.prototype.reduce.call(child, callbackfn, initialValue); +var child = new Con(); +child[1] = "11"; +child[2] = "22"; +child.length = 3; + +Array.prototype.reduce.call(child, callbackfn, initialValue); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-30.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-30.js index 49c26b0e6f..46dfa9febf 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-30.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-30.js @@ -9,36 +9,37 @@ description: > iterations is observed on an Array ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } - - var arr = [, , 2]; - var preIterVisible = false; - - Object.defineProperty(arr, "0", { - get: function () { - preIterVisible = true; - return 0; - }, - configurable: true - }); - - Object.defineProperty(arr, "1", { - get: function () { - if (preIterVisible) { - return 1; - } else { - return 100; - } - }, - configurable: true - }); - - arr.reduce(callbackfn, initialValue); +var testResult = false; +var initialValue = 0; + +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} + +var arr = [, , 2]; +var preIterVisible = false; + +Object.defineProperty(arr, "0", { + get: function() { + preIterVisible = true; + return 0; + }, + configurable: true +}); + +Object.defineProperty(arr, "1", { + get: function() { + if (preIterVisible) { + return 1; + } else { + return 100; + } + }, + configurable: true +}); + +arr.reduce(callbackfn, initialValue); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-31.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-31.js index f948d29786..db862cce17 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-31.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-31.js @@ -9,36 +9,40 @@ description: > iterations is observed on an Array-like object ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } - - var obj = { 2: 2, length: 3 }; - var preIterVisible = false; - - Object.defineProperty(obj, "0", { - get: function () { - preIterVisible = true; - return 0; - }, - configurable: true - }); - - Object.defineProperty(obj, "1", { - get: function () { - if (preIterVisible) { - return 1; - } else { - return "11"; - } - }, - configurable: true - }); - - Array.prototype.reduce.call(obj, callbackfn, initialValue); +var testResult = false; +var initialValue = 0; + +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} + +var obj = { + 2: 2, + length: 3 +}; +var preIterVisible = false; + +Object.defineProperty(obj, "0", { + get: function() { + preIterVisible = true; + return 0; + }, + configurable: true +}); + +Object.defineProperty(obj, "1", { + get: function() { + if (preIterVisible) { + return 1; + } else { + return "11"; + } + }, + configurable: true +}); + +Array.prototype.reduce.call(obj, callbackfn, initialValue); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-32.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-32.js index 3654543c5e..787d0261c9 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-32.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-32.js @@ -9,25 +9,30 @@ description: > terminate iteration on an Array-like object ---*/ - var accessed = false; - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx >= 1) { - accessed = true; - testResult = (curVal >= 1); - } - } +var accessed = false; +var testResult = false; +var initialValue = 0; - var obj = { 0: 0, 2: 2, length: 3 }; - Object.defineProperty(obj, "1", { - get: function () { - throw new RangeError("unhandle exception happened in getter"); - }, - configurable: true - }); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx >= 1) { + accessed = true; + testResult = (curVal >= 1); + } +} + +var obj = { + 0: 0, + 2: 2, + length: 3 +}; +Object.defineProperty(obj, "1", { + get: function() { + throw new RangeError("unhandle exception happened in getter"); + }, + configurable: true +}); assert.throws(RangeError, function() { - Array.prototype.reduce.call(obj, callbackfn, initialValue); + Array.prototype.reduce.call(obj, callbackfn, initialValue); }); assert.sameValue(accessed, false, 'accessed'); assert.sameValue(testResult, false, 'testResult'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-33.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-33.js index 45c8487f92..eb596116ae 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-33.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-33.js @@ -9,26 +9,27 @@ description: > terminate iteration on an Array ---*/ - var accessed = false; - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx >= 1) { - accessed = true; - testResult = (curVal >= 1); - } - } +var accessed = false; +var testResult = false; +var initialValue = 0; - var arr = [0, , 2]; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx >= 1) { + accessed = true; + testResult = (curVal >= 1); + } +} - Object.defineProperty(arr, "1", { - get: function () { - throw new RangeError("unhandle exception happened in getter"); - }, - configurable: true - }); +var arr = [0, , 2]; + +Object.defineProperty(arr, "1", { + get: function() { + throw new RangeError("unhandle exception happened in getter"); + }, + configurable: true +}); assert.throws(RangeError, function() { - arr.reduce(callbackfn, initialValue); + arr.reduce(callbackfn, initialValue); }); assert.sameValue(accessed, false, 'accessed'); assert.sameValue(testResult, false, 'testResult'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-4.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-4.js index 5be0e63fc6..0f26cabfef 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-4.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-4.js @@ -9,15 +9,16 @@ description: > property that overrides an inherited data property on an Array ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } +var testResult = false; +var initialValue = 0; - Array.prototype[1] = "3"; - [0, 1, 2].reduce(callbackfn, initialValue); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} + +Array.prototype[1] = "3"; +[0, 1, 2].reduce(callbackfn, initialValue); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-5.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-5.js index fc93b44d16..44cb554c70 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-5.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-5.js @@ -10,36 +10,37 @@ description: > Array-like object ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 0) { - testResult = (curVal === "9"); - } - } +var testResult = false; +var initialValue = 0; - var proto = {}; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 0) { + testResult = (curVal === "9"); + } +} - Object.defineProperty(proto, "0", { - get: function () { - return 0; - }, - configurable: true - }); +var proto = {}; - var Con = function () { }; - Con.prototype = proto; +Object.defineProperty(proto, "0", { + get: function() { + return 0; + }, + configurable: true +}); - var child = new Con(); - child.length = 2; +var Con = function() {}; +Con.prototype = proto; - Object.defineProperty(child, "0", { - value: "9", - configurable: true - }); +var child = new Con(); +child.length = 2; - child[1] = "1"; +Object.defineProperty(child, "0", { + value: "9", + configurable: true +}); - Array.prototype.reduce.call(child, callbackfn, initialValue); +child[1] = "1"; + +Array.prototype.reduce.call(child, callbackfn, initialValue); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-6.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-6.js index ee27f62425..d3aca565c0 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-6.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-6.js @@ -9,20 +9,21 @@ description: > property that overrides an inherited accessor property on an Array ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } +var testResult = false; +var initialValue = 0; - Object.defineProperty(Array.prototype, "1", { - get: function () { - return "9"; - }, - configurable: true - }); - [0, 1, 2].reduce(callbackfn, initialValue); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} + +Object.defineProperty(Array.prototype, "1", { + get: function() { + return "9"; + }, + configurable: true +}); +[0, 1, 2].reduce(callbackfn, initialValue); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-7.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-7.js index b20d880b3b..49844b47d8 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-7.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-7.js @@ -9,21 +9,27 @@ description: > property on an Array-like object ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } +var testResult = false; +var initialValue = 0; - var proto = { 0: 0, 1: 1, 2: 2, length: 3 }; - var Con = function () { }; - Con.prototype = proto; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} - var child = new Con(); - child.length = 3; +var proto = { + 0: 0, + 1: 1, + 2: 2, + length: 3 +}; +var Con = function() {}; +Con.prototype = proto; - Array.prototype.reduce.call(child, callbackfn, initialValue); +var child = new Con(); +child.length = 3; + +Array.prototype.reduce.call(child, callbackfn, initialValue); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-8.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-8.js index 5906f0d472..08a408abd6 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-8.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-8.js @@ -9,17 +9,18 @@ description: > property on an Array ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } +var testResult = false; +var initialValue = 0; - Array.prototype[0] = 0; - Array.prototype[1] = 1; - Array.prototype[2] = 2; - [, , , ].reduce(callbackfn, initialValue); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} + +Array.prototype[0] = 0; +Array.prototype[1] = 1; +Array.prototype[2] = 2; +[, , , ].reduce(callbackfn, initialValue); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-9.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-9.js index 8dcce90a16..5188213e3e 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-9.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-9.js @@ -9,22 +9,27 @@ description: > property on an Array-like object ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } +var testResult = false; +var initialValue = 0; - var obj = { 0: 0, 2: 2, length: 3 }; - Object.defineProperty(obj, "1", { - get: function () { - return 1; - }, - configurable: true - }); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} - Array.prototype.reduce.call(obj, callbackfn, initialValue); +var obj = { + 0: 0, + 2: 2, + length: 3 +}; +Object.defineProperty(obj, "1", { + get: function() { + return 1; + }, + configurable: true +}); + +Array.prototype.reduce.call(obj, callbackfn, initialValue); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-1.js index 0b5a92f763..af3c3074e9 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 6492c1d4b6..9a9a5567d5 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-10.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-10.js @@ -9,11 +9,12 @@ description: > parameter ---*/ - var result = false; - function callbackfn(prevVal) { - result = (prevVal === 1); - } +var result = false; - [11].reduce(callbackfn, 1); +function callbackfn(prevVal) { + result = (prevVal === 1); +} + +[11].reduce(callbackfn, 1); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-11.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-11.js index fe374ad09a..503028a433 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-11.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-11.js @@ -9,11 +9,12 @@ description: > parameter ---*/ - var result = false; - function callbackfn(prevVal, curVal) { - result = (curVal > 10 && 1 === prevVal); - } +var result = false; - [11].reduce(callbackfn, 1); +function callbackfn(prevVal, curVal) { + result = (curVal > 10 && 1 === prevVal); +} + +[11].reduce(callbackfn, 1); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-12.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-12.js index 282d5ccc55..58b12b3d20 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-12.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-12.js @@ -9,11 +9,12 @@ description: > parameter ---*/ - var result = false; - function callbackfn(prevVal, curVal, idx) { - result = (prevVal === 1 && arguments[3][idx] === curVal); - } +var result = false; - [11].reduce(callbackfn, 1); +function callbackfn(prevVal, curVal, idx) { + result = (prevVal === 1 && arguments[3][idx] === curVal); +} + +[11].reduce(callbackfn, 1); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-13.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-13.js index 24cb3df068..170366208a 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-13.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-13.js @@ -9,11 +9,12 @@ description: > parameter ---*/ - var result = false; - function callbackfn(prevVal, curVal, idx, obj) { - result = (prevVal === 1 && obj[idx] === curVal); - } +var result = false; - [11].reduce(callbackfn, 1); +function callbackfn(prevVal, curVal, idx, obj) { + result = (prevVal === 1 && obj[idx] === curVal); +} + +[11].reduce(callbackfn, 1); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-14.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-14.js index 170de856dc..12cf2c4288 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-14.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-14.js @@ -7,11 +7,12 @@ es5id: 15.4.4.21-9-c-ii-14 description: Array.prototype.reduce - callbackfn that uses arguments ---*/ - var result = false; - function callbackfn() { - result = (arguments[0] === 1 && arguments[3][arguments[2]] === arguments[1]); - } +var result = false; - [11].reduce(callbackfn, 1); +function callbackfn() { + result = (arguments[0] === 1 && arguments[3][arguments[2]] === arguments[1]); +} + +[11].reduce(callbackfn, 1); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-16.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-16.js index 3dcd208df0..976b1a2696 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-16.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-16.js @@ -7,24 +7,29 @@ es5id: 15.4.4.21-9-c-ii-16 description: Array.prototype.reduce - non-indexed properties are not called ---*/ - var accessed = false; - var result1 = true; - var result2 = true; +var accessed = false; +var result1 = true; +var result2 = true; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - if (curVal === 8) { - result1 = false; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + if (curVal === 8) { + result1 = false; + } - if (prevVal === 8) { - result2 = false; - } - } + if (prevVal === 8) { + result2 = false; + } +} - var obj = { 0: 11, 10: 12, non_index_property: 8, length: 20 }; +var obj = { + 0: 11, + 10: 12, + non_index_property: 8, + length: 20 +}; - Array.prototype.reduce.call(obj, callbackfn, 1); +Array.prototype.reduce.call(obj, callbackfn, 1); assert(result1, 'result1 !== true'); assert(result2, 'result2 !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-17.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-17.js index 0c97041580..1179c4e145 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-17.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-17.js @@ -9,19 +9,20 @@ description: > is the result of previous iteration on an Array ---*/ - var result = true; - var accessed = false; - var preIteration = 1; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - if (preIteration !== prevVal) { - result = false; - } - preIteration = curVal; - return curVal; - } +var result = true; +var accessed = false; +var preIteration = 1; - [11, 12, 13].reduce(callbackfn, 1); +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + if (preIteration !== prevVal) { + result = false; + } + preIteration = curVal; + return curVal; +} + +[11, 12, 13].reduce(callbackfn, 1); assert(result, 'result !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-18.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-18.js index 52d3f41d39..acb90c345a 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-18.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-18.js @@ -10,15 +10,20 @@ description: > Array-like object ---*/ - var result = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 0) { - result = (arguments[0] === 1); - } - } +var result = false; - var obj = { 0: 11, 1: 9, length: 2 }; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 0) { + result = (arguments[0] === 1); + } +} - Array.prototype.reduce.call(obj, callbackfn, 1); +var obj = { + 0: 11, + 1: 9, + length: 2 +}; + +Array.prototype.reduce.call(obj, callbackfn, 1); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-19.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-19.js index b423857024..9f6c78aef4 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-19.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-19.js @@ -10,16 +10,17 @@ description: > undefined when 'initialValue' is not present on an Array ---*/ - var called = 0; - var result = false; - function callbackfn(prevVal, curVal, idx, obj) { - called++; - if (idx === 1) { - result = (prevVal === 11) && curVal === 9; - } - } +var called = 0; +var result = false; - [11, 9].reduce(callbackfn); +function callbackfn(prevVal, curVal, idx, obj) { + called++; + if (idx === 1) { + result = (prevVal === 11) && curVal === 9; + } +} + +[11, 9].reduce(callbackfn); assert(result, 'result !== true'); assert.sameValue(called, 1, 'called'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-2.js index 88c46fffc7..024016564a 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-2.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-2.js @@ -9,18 +9,19 @@ description: > (initialvalue passed) ---*/ - var bParCorrect = false; - function callbackfn(prevVal, curVal, idx, obj) - { - if(idx === 0 && obj[idx] === curVal && prevVal === initialValue) - return curVal; - else if(idx > 0 && obj[idx] === curVal && obj[idx-1] === prevVal) - return curVal; - else - return false; - } +var bParCorrect = false; - var arr = [0,1,true,null,new Object(),"five"]; - var initialValue = 5.5; +function callbackfn(prevVal, curVal, idx, obj) +{ + if (idx === 0 && obj[idx] === curVal && prevVal === initialValue) + return curVal; + else if (idx > 0 && obj[idx] === curVal && obj[idx - 1] === prevVal) + return curVal; + else + return false; +} -assert.sameValue(arr.reduce(callbackfn,initialValue), "five", 'arr.reduce(callbackfn,initialValue)'); +var arr = [0, 1, true, null, new Object(), "five"]; +var initialValue = 5.5; + +assert.sameValue(arr.reduce(callbackfn, initialValue), "five", 'arr.reduce(callbackfn,initialValue)'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-20.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-20.js index 7b7cffb199..2e75523561 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-20.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-20.js @@ -7,13 +7,17 @@ es5id: 15.4.4.21-9-c-ii-20 description: Array.prototype.reduce - undefined can be used as accumulator ---*/ - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return typeof prevVal === "undefined"; - } +var accessed = false; - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return typeof prevVal === "undefined"; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, undefined), true, 'Array.prototype.reduce.call(obj, callbackfn, undefined)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-21.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-21.js index 1b27997018..1864d08fac 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-21.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-21.js @@ -7,13 +7,17 @@ es5id: 15.4.4.21-9-c-ii-21 description: Array.prototype.reduce - null can be used as accumulator ---*/ - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === null; - } +var accessed = false; - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === null; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, null), true, 'Array.prototype.reduce.call(obj, callbackfn, null)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-22.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-22.js index 7a7f286fc0..272db1b967 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-22.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-22.js @@ -9,13 +9,17 @@ description: > accumulator ---*/ - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === false; - } +var accessed = false; - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === false; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, false), true, 'Array.prototype.reduce.call(obj, callbackfn, false)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-23.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-23.js index 0ccff0d309..41fbfeb168 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-23.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-23.js @@ -9,13 +9,17 @@ description: > accumulator ---*/ - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === 12; - } +var accessed = false; - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === 12; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 12), true, 'Array.prototype.reduce.call(obj, callbackfn, 12)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-24.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-24.js index 5c3b4c73d7..64fbb4eb37 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-24.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-24.js @@ -9,13 +9,17 @@ description: > accumulator ---*/ - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === "hello_"; - } +var accessed = false; - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === "hello_"; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, "hello_"), true, 'Array.prototype.reduce.call(obj, callbackfn, "hello_")'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-25.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-25.js index fe4c9a0a0c..7a20725f1f 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-25.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-25.js @@ -7,15 +7,19 @@ es5id: 15.4.4.21-9-c-ii-25 description: Array.prototype.reduce - Function object can be used as accumulator ---*/ - var objFunction = function () { }; +var objFunction = function() {}; - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === objFunction; - } +var accessed = false; - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === objFunction; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, objFunction), true, 'Array.prototype.reduce.call(obj, callbackfn, objFunction)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-26.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-26.js index 8402e82fa6..44cd75abd6 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-26.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-26.js @@ -7,15 +7,19 @@ es5id: 15.4.4.21-9-c-ii-26 description: Array.prototype.reduce - Array object can be used as accumulator ---*/ - var objArray = new Array(10); +var objArray = new Array(10); - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === objArray; - } +var accessed = false; - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === objArray; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, objArray), true, 'Array.prototype.reduce.call(obj, callbackfn, objArray)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-27.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-27.js index 951df7bd95..decc22588b 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-27.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-27.js @@ -7,15 +7,19 @@ es5id: 15.4.4.21-9-c-ii-27 description: Array.prototype.reduce - String object can be used as accumulator ---*/ - var objString = new String(); +var objString = new String(); - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === objString; - } +var accessed = false; - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === objString; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, objString), true, 'Array.prototype.reduce.call(obj, callbackfn, objString)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-28.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-28.js index ca6c358b35..2eca0b849d 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-28.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-28.js @@ -7,15 +7,19 @@ es5id: 15.4.4.21-9-c-ii-28 description: Array.prototype.reduce - Boolean object can be used as accumulator ---*/ - var objBoolean = new Boolean(); +var objBoolean = new Boolean(); - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === objBoolean; - } +var accessed = false; - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === objBoolean; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, objBoolean), true, 'Array.prototype.reduce.call(obj, callbackfn, objBoolean)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-29.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-29.js index 251e405a9b..03ed7c189f 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-29.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-29.js @@ -7,15 +7,19 @@ es5id: 15.4.4.21-9-c-ii-29 description: Array.prototype.reduce - Number object can be used as accumulator ---*/ - var objNumber = new Number(); +var objNumber = new Number(); - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === objNumber; - } +var accessed = false; - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === objNumber; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, objNumber), true, 'Array.prototype.reduce.call(obj, callbackfn, objNumber)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-3.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-3.js index 1f93af90c5..dfd7391271 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-3.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-3.js @@ -7,16 +7,17 @@ es5id: 15.4.4.21-9-c-ii-3 description: Array.prototype.reduce - callbackfn takes 4 arguments ---*/ - var bCalled = false; - function callbackfn(prevVal, curVal, idx, obj) - { - bCalled = true; - if(prevVal === true && arguments.length === 4) - return true; - else - return false; - } - var arr = [0,1,2,3,4,5,6,7,8,9]; +var bCalled = false; -assert.sameValue(arr.reduce(callbackfn,true), true, 'arr.reduce(callbackfn,true)'); +function callbackfn(prevVal, curVal, idx, obj) +{ + bCalled = true; + if (prevVal === true && arguments.length === 4) + return true; + else + return false; +} +var arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; + +assert.sameValue(arr.reduce(callbackfn, true), true, 'arr.reduce(callbackfn,true)'); assert.sameValue(bCalled, true, 'bCalled'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-30.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-30.js index 0b3202e748..2cc426a8d2 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-30.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-30.js @@ -7,13 +7,17 @@ es5id: 15.4.4.21-9-c-ii-30 description: Array.prototype.reduce - the Math object can be used as accumulator ---*/ - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === Math; - } +var accessed = false; - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === Math; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, Math), true, 'Array.prototype.reduce.call(obj, callbackfn, Math)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-31.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-31.js index 6e4c92b939..4bf720831f 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-31.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-31.js @@ -7,15 +7,19 @@ es5id: 15.4.4.21-9-c-ii-31 description: Array.prototype.reduce - Date object can be used as accumulator ---*/ - var objDate = new Date(); +var objDate = new Date(); - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === objDate; - } +var accessed = false; - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === objDate; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, objDate), true, 'Array.prototype.reduce.call(obj, callbackfn, objDate)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-32.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-32.js index 8a0f61496f..de51b59f3e 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-32.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-32.js @@ -7,15 +7,19 @@ es5id: 15.4.4.21-9-c-ii-32 description: Array.prototype.reduce - RegExp object can be used as accumulator ---*/ - var objRegExp = new RegExp(); +var objRegExp = new RegExp(); - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === objRegExp; - } +var accessed = false; - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === objRegExp; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, objRegExp), true, 'Array.prototype.reduce.call(obj, callbackfn, objRegExp)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-33.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-33.js index c010c39ff1..b5cdc3cc86 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-33.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-33.js @@ -7,13 +7,17 @@ es5id: 15.4.4.21-9-c-ii-33 description: Array.prototype.reduce - the JSON can be used as accumulator ---*/ - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === JSON; - } +var accessed = false; - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === JSON; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, JSON), true, 'Array.prototype.reduce.call(obj, callbackfn, JSON)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-34.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-34.js index 8f6dbd8885..9df298c155 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-34.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-34.js @@ -7,15 +7,19 @@ es5id: 15.4.4.21-9-c-ii-34 description: Array.prototype.reduce - Error object can be used as accumulator ---*/ - var objError = new RangeError(); +var objError = new RangeError(); - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === objError; - } +var accessed = false; - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === objError; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, objError), true, 'Array.prototype.reduce.call(obj, callbackfn, objError)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-35.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-35.js index 30daec0a86..8d01e4e831 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-35.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-35.js @@ -9,19 +9,22 @@ description: > accumulator ---*/ - var accessed = false; - var arg; +var accessed = false; +var arg; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === arg; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === arg; +} - var obj = { 0: 11, length: 1 }; +var obj = { + 0: 11, + length: 1 +}; - (function fun() { - arg = arguments; - }(10, 11, 12, 13)); +(function fun() { + arg = arguments; +}(10, 11, 12, 13)); assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, arg), true, 'Array.prototype.reduce.call(obj, callbackfn, arg)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-37.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-37.js index a0a46fa90b..bb97f5f54b 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-37.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-37.js @@ -10,13 +10,17 @@ description: > ---*/ var global = this; - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === global; - } +var accessed = false; - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === global; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, this), true, 'Array.prototype.reduce.call(obj, callbackfn, this)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-4-s.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-4-s.js index 1d1517917c..89872b1279 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-4-s.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-4-s.js @@ -10,13 +10,14 @@ description: > flags: [noStrict] ---*/ - var innerThisCorrect = false; - function callbackfn(prevVal, curVal, idx, obj) - { - "use strict"; - innerThisCorrect = this===undefined; - return true; - } - [0].reduce(callbackfn,true); +var innerThisCorrect = false; + +function callbackfn(prevVal, curVal, idx, obj) +{ + "use strict"; + innerThisCorrect = this === undefined; + return true; +} +[0].reduce(callbackfn, true); assert(innerThisCorrect, 'innerThisCorrect !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-4.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-4.js index 5b70ba2204..f0982335e1 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 4476ea3d03..2a7ad3a6a8 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 9f76afad69..31c3a8c588 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-7.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-7.js @@ -9,19 +9,24 @@ description: > callbackfn terminate iteration ---*/ - var accessed = false; +var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx > 0) { - accessed = true; - } - if (idx === 0) { - throw new Error("Exception occurred in callbackfn"); - } - } +function callbackfn(prevVal, curVal, idx, obj) { + if (idx > 0) { + accessed = true; + } + if (idx === 0) { + throw new Error("Exception occurred in callbackfn"); + } +} - var obj = { 0: 11, 4: 10, 10: 8, length: 20 }; +var obj = { + 0: 11, + 4: 10, + 10: 8, + length: 20 +}; assert.throws(Error, function() { - Array.prototype.reduce.call(obj, callbackfn, 1); + Array.prototype.reduce.call(obj, callbackfn, 1); }); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-8.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-8.js index b3395afcce..e3ed219e68 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-8.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-8.js @@ -9,19 +9,24 @@ description: > iterations is observed ---*/ - var result = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 0) { - obj[idx + 1] = 8; - } +var result = false; - if (idx === 1) { - result = (curVal === 8); - } - } +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 0) { + obj[idx + 1] = 8; + } - var obj = { 0: 11, 1: 12, length: 2 }; + if (idx === 1) { + result = (curVal === 8); + } +} - Array.prototype.reduce.call(obj, callbackfn, 1); +var obj = { + 0: 11, + 1: 12, + length: 2 +}; + +Array.prototype.reduce.call(obj, callbackfn, 1); assert(result, 'result !== true'); diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-9.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-9.js index a8f5758d3f..c9d0ae895b 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-9.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-9.js @@ -9,11 +9,12 @@ description: > parameter ---*/ - var called = 0; - function callbackfn() { - called++; - } +var called = 0; - [11, 12].reduce(callbackfn, 1); +function callbackfn() { + called++; +} + +[11, 12].reduce(callbackfn, 1); assert.sameValue(called, 2, 'called'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-1.js index 7650b6531b..5a64f1472e 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 341dac7295..fb0a1f9f89 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 447771e6ed..610b412912 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 06834d39e4..efc9fa2e3a 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 9d6b8f83cb..822d57425d 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 6b7e76ea42..4d8557c59b 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 8e739dfaba..a2bb8a9ffc 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 602cef5da8..cf08c68a5a 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 54f2c207a6..6fca6c3040 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 77427f29cd..d782446858 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 59244bbe90..c83b156f04 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 a0c2df0e81..9d1c2792a3 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 6e368cfffd..7c3dabefe4 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 d034b48b39..9f6ee35dbc 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 1820f546c1..42e6c8ca6b 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 d9b0c874d8..eaaca4897c 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 1b34162cfa..cffd5e08e1 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 6e47fd8715..de4a59b0c2 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-3.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-3.js @@ -7,10 +7,11 @@ es5id: 15.4.4.22-10-3 description: Array.prototype.reduceRight - subclassed array with length 1 ---*/ - foo.prototype = [1]; - function foo() {} - var f = new foo(); +foo.prototype = [1]; - function cb(){} +function foo() {} +var f = new foo(); + +function cb() {} assert.sameValue(f.reduceRight(cb), 1, 'f.reduceRight(cb)'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-4.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-4.js index 76afe60296..7726d9fde8 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-4.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-4.js @@ -9,10 +9,13 @@ description: > than 1 ---*/ - foo.prototype = new Array(0, 1, 2, 3); - function foo() {} - var f = new foo(); +foo.prototype = new Array(0, 1, 2, 3); - function cb(prevVal, curVal, idx, obj){return prevVal + curVal;} +function foo() {} +var f = new foo(); + +function cb(prevVal, curVal, idx, obj) { + return prevVal + curVal; +} assert.sameValue(f.reduceRight(cb), 6, 'f.reduceRight(cb)'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-5.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-5.js index 78e6d744fa..c5c29eb025 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 1ce24519ca..37cb4705e4 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-6.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-6.js @@ -9,10 +9,13 @@ description: > provided ---*/ - foo.prototype = new Array(0, 1, 2, 3); - function foo() {} - var f = new foo(); +foo.prototype = new Array(0, 1, 2, 3); - function cb(prevVal, curVal, idx, obj){return prevVal + curVal;} +function foo() {} +var f = new foo(); -assert.sameValue(f.reduceRight(cb,"4"), "43210", 'f.reduceRight(cb,"4")'); +function cb(prevVal, curVal, idx, obj) { + return prevVal + curVal; +} + +assert.sameValue(f.reduceRight(cb, "4"), "43210", 'f.reduceRight(cb,"4")'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-7.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-7.js index 27be976b4b..813179ec75 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-7.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-7.js @@ -9,10 +9,13 @@ description: > and initialvalue provided ---*/ - foo.prototype = [1]; - function foo() {} - var f = new foo(); +foo.prototype = [1]; - function cb(prevVal, curVal, idx, obj){return prevVal + curVal;} +function foo() {} +var f = new foo(); -assert.sameValue(f.reduceRight(cb,"4"), "41", 'f.reduceRight(cb,"4")'); +function cb(prevVal, curVal, idx, obj) { + return prevVal + curVal; +} + +assert.sameValue(f.reduceRight(cb, "4"), "41", 'f.reduceRight(cb,"4")'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-8.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-8.js index 8a9eb81650..a9aa697407 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-8.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-8.js @@ -7,15 +7,16 @@ es5id: 15.4.4.22-10-8 description: Array.prototype.reduceRight doesn't visit expandos ---*/ - var callCnt = 0; - function callbackfn(prevVal, curVal, idx, obj) - { - callCnt++; - } - var srcArr = ['1','2','3','4','5']; - srcArr["i"] = 10; - srcArr[true] = 11; +var callCnt = 0; - srcArr.reduceRight(callbackfn); +function callbackfn(prevVal, curVal, idx, obj) +{ + callCnt++; +} +var srcArr = ['1', '2', '3', '4', '5']; +srcArr["i"] = 10; +srcArr[true] = 11; + +srcArr.reduceRight(callbackfn); assert.sameValue(callCnt, 4, 'callCnt'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-1.js index 5da45ad9da..5a7a0af527 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 ad204a77ba..035cc1c822 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 dc8d017bd6..ffd66953e4 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 c162760d00..b685810f9a 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-12.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-12.js @@ -10,25 +10,28 @@ description: > property ---*/ - var accessed = false; +var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return typeof obj.length === "undefined"; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return typeof obj.length === "undefined"; +} - Object.defineProperty(Object.prototype, "length", { - get: function () { - return 2; - }, - configurable: true - }); +Object.defineProperty(Object.prototype, "length", { + get: function() { + return 2; + }, + configurable: true +}); - var obj = { 0: 12, 1: 13 }; - Object.defineProperty(obj, "length", { - set: function () { }, - configurable: true - }); +var obj = { + 0: 12, + 1: 13 +}; +Object.defineProperty(obj, "length", { + set: function() {}, + configurable: true +}); assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, 11), 11, 'Array.prototype.reduceRight.call(obj, callbackfn, 11)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-13.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-13.js index 56f37873fa..7cdaf568c6 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 26f6a9d37d..75d312923b 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-14.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-14.js @@ -9,13 +9,16 @@ description: > 'length' property doesn't exist ---*/ - var obj = { 0: 11, 1: 12 }; - var accessed = false; +var obj = { + 0: 11, + 1: 12 +}; +var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return curVal > 10; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return curVal > 10; +} assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, 111), 111, 'Array.prototype.reduceRight.call(obj, callbackfn, 111)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-17.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-17.js index 41f7352af6..b888b562e2 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 89f7a89fa6..bc036bf488 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 08bdd46df1..f76fdf2239 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 c56d545b43..b2b8335e1c 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 feff6998df..ef1d83a5d7 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-3.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-3.js @@ -9,23 +9,25 @@ description: > is an own data property that overrides an inherited data property ---*/ - var accessed = true; +var accessed = true; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return obj.length === 2; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return obj.length === 2; +} - var proto = { length: 3 }; +var proto = { + length: 3 +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child.length = 2; - child[0] = 12; - child[1] = 11; - child[2] = 9; +var child = new Con(); +child.length = 2; +child[0] = 12; +child[1] = 11; +child[2] = 9; assert(Array.prototype.reduceRight.call(child, callbackfn), 'Array.prototype.reduceRight.call(child, callbackfn) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-4.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-4.js index 0a1b81254b..4335394fa0 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-4.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-4.js @@ -9,15 +9,16 @@ description: > overrides an inherited data property on an Array ---*/ - var accessed = false; - var arrProtoLen; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return obj.length === 2; - } +var accessed = false; +var arrProtoLen; - arrProtoLen = Array.prototype.length; - Array.prototype.length = 0; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return obj.length === 2; +} + +arrProtoLen = Array.prototype.length; +Array.prototype.length = 0; assert([12, 11].reduceRight(callbackfn, 11), '[12, 11].reduceRight(callbackfn, 11) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-5.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-5.js index 3fcf425de9..50e35c3b48 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 b31b796cbd..d41b9630ae 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-6.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-6.js @@ -9,20 +9,22 @@ description: > is an inherited data property ---*/ - var accessed = false; - var proto = { length: 2 }; - var Con = function () { }; - Con.prototype = proto; +var accessed = false; +var proto = { + length: 2 +}; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child[0] = 12; - child[1] = 11; - child[2] = 9; +var child = new Con(); +child[0] = 12; +child[1] = 11; +child[2] = 9; - function callbackfn1(prevVal, curVal, idx, obj) { - accessed = true; - return obj.length === 2; - } +function callbackfn1(prevVal, curVal, idx, obj) { + accessed = true; + return obj.length === 2; +} assert(Array.prototype.reduceRight.call(child, callbackfn1, 11), 'Array.prototype.reduceRight.call(child, callbackfn1, 11) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-7.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-7.js index 1400c9e8eb..836ed95e1f 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 85912235a3..f867632c02 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-8.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-8.js @@ -10,30 +10,32 @@ description: > property ---*/ - var accessed = false; +var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return obj.length === 2; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return obj.length === 2; +} - var proto = { length: 3 }; +var proto = { + length: 3 +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); +var child = new Con(); - Object.defineProperty(child, "length", { - get: function () { - return 2; - }, - configurable: true - }); +Object.defineProperty(child, "length", { + get: function() { + return 2; + }, + configurable: true +}); - child[0] = 12; - child[1] = 11; - child[2] = 9; +child[0] = 12; +child[1] = 11; +child[2] = 9; assert(Array.prototype.reduceRight.call(child, callbackfn, 11), 'Array.prototype.reduceRight.call(child, callbackfn, 11) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-9.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-9.js index 139b4d1751..d47f6150fb 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 d309b78ac3..7ce837aeb6 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-1.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-1.js @@ -7,13 +7,16 @@ es5id: 15.4.4.22-3-1 description: Array.prototype.reduceRight - value of 'length' is undefined ---*/ - var accessed = false; +var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; +} - var obj = { 0: 9, length: undefined }; +var obj = { + 0: 9, + length: undefined +}; assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, 1), 1, 'Array.prototype.reduceRight.call(obj, callbackfn, 1)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-10.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-10.js index be485e4db8..938371d986 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-10.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-10.js @@ -9,13 +9,16 @@ description: > is NaN) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; +} - var obj = { 0: 9, length: NaN }; +var obj = { + 0: 9, + length: NaN +}; assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, 1), 1, 'Array.prototype.reduceRight.call(obj, callbackfn, 1)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-11.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-11.js index c5d9cb5abc..63f6e57121 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-11.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-11.js @@ -9,22 +9,28 @@ description: > containing a positive number ---*/ - var testResult1 = true; - var testResult2 = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx > 1) { - testResult1 = false; - } +var testResult1 = true; +var testResult2 = false; - if (idx === 1) { - testResult2 = true; - } - return false; - } +function callbackfn(prevVal, curVal, idx, obj) { + if (idx > 1) { + testResult1 = false; + } - var obj = { 0: 12, 1: 11, 2: 9, length: "2" }; + if (idx === 1) { + testResult2 = true; + } + return false; +} - Array.prototype.reduceRight.call(obj, callbackfn, 1); +var obj = { + 0: 12, + 1: 11, + 2: 9, + length: "2" +}; + +Array.prototype.reduceRight.call(obj, callbackfn, 1); assert(testResult1, 'testResult1 !== true'); assert(testResult2, 'testResult2 !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-12.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-12.js index f81ce7b4c9..3a209ff400 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-12.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-12.js @@ -9,22 +9,28 @@ description: > containing a negative number ---*/ - var testResult1 = true; - var testResult2 = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx > 1) { - testResult1 = false; - } +var testResult1 = true; +var testResult2 = false; - if (idx === 1) { - testResult2 = true; - } - return false; - } +function callbackfn(prevVal, curVal, idx, obj) { + if (idx > 1) { + testResult1 = false; + } - var obj = { 0: 11, 1: 12, 2: 9, length: "-4294967294" }; + if (idx === 1) { + testResult2 = true; + } + return false; +} - Array.prototype.reduceRight.call(obj, callbackfn, 1); +var obj = { + 0: 11, + 1: 12, + 2: 9, + length: "-4294967294" +}; + +Array.prototype.reduceRight.call(obj, callbackfn, 1); assert(testResult1, 'testResult1 !== true'); assert.sameValue(testResult2, false, 'testResult2'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-13.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-13.js index 054d4cf94c..6fb47ffde7 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-13.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-13.js @@ -9,22 +9,28 @@ description: > containing a decimal number ---*/ - var testResult1 = true; - var testResult2 = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx > 1) { - testResult1 = false; - } +var testResult1 = true; +var testResult2 = false; - if (idx === 1) { - testResult2 = true; - } - return false; - } +function callbackfn(prevVal, curVal, idx, obj) { + if (idx > 1) { + testResult1 = false; + } - var obj = { 0: 12, 1: 11, 2: 9, length: "2.5" }; + if (idx === 1) { + testResult2 = true; + } + return false; +} - Array.prototype.reduceRight.call(obj, callbackfn, 1); +var obj = { + 0: 12, + 1: 11, + 2: 9, + length: "2.5" +}; + +Array.prototype.reduceRight.call(obj, callbackfn, 1); assert(testResult1, 'testResult1 !== true'); assert(testResult2, 'testResult2 !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-14.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-14.js index 8f7aeeb382..8fc2ef112a 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-14.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-14.js @@ -9,13 +9,16 @@ description: > containing -Infinity ---*/ - var accessed2 = false; +var accessed2 = false; - function callbackfn2(prevVal, curVal, idx, obj) { - accessed2 = true; - } +function callbackfn2(prevVal, curVal, idx, obj) { + accessed2 = true; +} - var obj2 = { 0: 9, length: "-Infinity" }; +var obj2 = { + 0: 9, + length: "-Infinity" +}; assert.sameValue(Array.prototype.reduceRight.call(obj2, callbackfn2, 2), 2, 'Array.prototype.reduceRight.call(obj2, callbackfn2, 2)'); assert.sameValue(accessed2, false, 'accessed2'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-15.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-15.js index a77e817bd3..dc7937f776 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-15.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-15.js @@ -9,22 +9,28 @@ description: > containing an exponential number ---*/ - var testResult1 = true; - var testResult2 = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx > 1) { - testResult1 = false; - } +var testResult1 = true; +var testResult2 = false; - if (idx === 1) { - testResult2 = true; - } - return false; - } +function callbackfn(prevVal, curVal, idx, obj) { + if (idx > 1) { + testResult1 = false; + } - var obj = { 0: 12, 1: 11, 2: 9, length: "2E0" }; + if (idx === 1) { + testResult2 = true; + } + return false; +} - Array.prototype.reduceRight.call(obj, callbackfn, 1); +var obj = { + 0: 12, + 1: 11, + 2: 9, + length: "2E0" +}; + +Array.prototype.reduceRight.call(obj, callbackfn, 1); assert(testResult1, 'testResult1 !== true'); assert(testResult2, 'testResult2 !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-16.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-16.js index 6d75ccf2e6..ac8deb3c90 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-16.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-16.js @@ -9,22 +9,28 @@ description: > containing a hex number ---*/ - var testResult1 = true; - var testResult2 = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx > 1) { - testResult1 = false; - } +var testResult1 = true; +var testResult2 = false; - if (idx === 1) { - testResult2 = true; - } - return false; - } +function callbackfn(prevVal, curVal, idx, obj) { + if (idx > 1) { + testResult1 = false; + } - var obj = { 0: 12, 1: 11, 2: 9, length: "0x0002" }; + if (idx === 1) { + testResult2 = true; + } + return false; +} - Array.prototype.reduceRight.call(obj, callbackfn, 1); +var obj = { + 0: 12, + 1: 11, + 2: 9, + length: "0x0002" +}; + +Array.prototype.reduceRight.call(obj, callbackfn, 1); assert(testResult1, 'testResult1 !== true'); assert(testResult2, 'testResult2 !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-17.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-17.js index ace3561654..5da8f8d4fa 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-17.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-17.js @@ -9,22 +9,28 @@ description: > containing a number with leading zeros ---*/ - var testResult1 = true; - var testResult2 = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx > 1) { - testResult1 = false; - } +var testResult1 = true; +var testResult2 = false; - if (idx === 1) { - testResult2 = true; - } - return false; - } +function callbackfn(prevVal, curVal, idx, obj) { + if (idx > 1) { + testResult1 = false; + } - var obj = { 0: 12, 1: 11, 2: 9, length: "0002.00" }; + if (idx === 1) { + testResult2 = true; + } + return false; +} - Array.prototype.reduceRight.call(obj, callbackfn, 1); +var obj = { + 0: 12, + 1: 11, + 2: 9, + length: "0002.00" +}; + +Array.prototype.reduceRight.call(obj, callbackfn, 1); assert(testResult1, 'testResult1 !== true'); assert(testResult2, 'testResult2 !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-18.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-18.js index 1ae0c97f9a..bd2586f989 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-18.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-18.js @@ -9,13 +9,17 @@ description: > can't convert to a number ---*/ - var accessed = false; +var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; +} - var obj = { 0: 9, 1: 8, length: "two" }; +var obj = { + 0: 9, + 1: 8, + length: "two" +}; assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, 11), 11, 'Array.prototype.reduceRight.call(obj, callbackfn, 11)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-19.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-19.js index 4f314ad517..1e2f2e395b 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-19.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-19.js @@ -9,39 +9,40 @@ description: > has an own toString method ---*/ - var testResult1 = true; - var testResult2 = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx > 1) { - testResult1 = false; - } - - if (idx === 1) { - testResult2 = true; - } - return false; - } - - var toStringAccessed = false; - var obj = { - 0: 12, - 1: 11, - 2: 9, - length: { - toString: function () { - toStringAccessed = true; - return '2'; - } - } - }; - - // objects inherit the default valueOf() method from Object - // that simply returns itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. - - Array.prototype.reduceRight.call(obj, callbackfn, 1); +var testResult1 = true; +var testResult2 = false; + +function callbackfn(prevVal, curVal, idx, obj) { + if (idx > 1) { + testResult1 = false; + } + + if (idx === 1) { + testResult2 = true; + } + return false; +} + +var toStringAccessed = false; +var obj = { + 0: 12, + 1: 11, + 2: 9, + length: { + toString: function() { + toStringAccessed = true; + return '2'; + } + } +}; + +// objects inherit the default valueOf() method from Object +// that simply returns itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. + +Array.prototype.reduceRight.call(obj, callbackfn, 1); assert(testResult1, 'testResult1 !== true'); assert(testResult2, 'testResult2 !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-2.js index 80ddaeaa9c..77c0abd1b4 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-2.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-2.js @@ -9,13 +9,16 @@ description: > 'length' is 0 (length overridden to false(type conversion)) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(preVal, curVal, idx, obj) { - accessed = true; - } +function callbackfn(preVal, curVal, idx, obj) { + accessed = true; +} - var obj = { 0: 9, length: false }; +var obj = { + 0: 9, + length: false +}; assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, 1), 1, 'Array.prototype.reduceRight.call(obj, callbackfn, 1)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-20.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-20.js index f277c7fa84..5b8cf1cbd6 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-20.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-20.js @@ -9,34 +9,35 @@ description: > has an own valueOf method ---*/ - var testResult1 = true; - var testResult2 = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx > 1) { - testResult1 = false; - } - - if (idx === 1) { - testResult2 = true; - } - return false; - } - - var valueOfAccessed = false; - - var obj = { - 0: 12, - 1: 11, - 2: 9, - length: { - valueOf: function () { - valueOfAccessed = true; - return 2; - } - } - }; - - Array.prototype.reduceRight.call(obj, callbackfn, 1); +var testResult1 = true; +var testResult2 = false; + +function callbackfn(prevVal, curVal, idx, obj) { + if (idx > 1) { + testResult1 = false; + } + + if (idx === 1) { + testResult2 = true; + } + return false; +} + +var valueOfAccessed = false; + +var obj = { + 0: 12, + 1: 11, + 2: 9, + length: { + valueOf: function() { + valueOfAccessed = true; + return 2; + } + } +}; + +Array.prototype.reduceRight.call(obj, callbackfn, 1); assert(testResult1, 'testResult1 !== true'); assert(testResult2, 'testResult2 !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-21.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-21.js index 1f7f478cd6..31024633a6 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-21.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-21.js @@ -10,39 +10,40 @@ description: > returns a string ---*/ - var testResult1 = true; - var testResult2 = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx > 1) { - testResult1 = false; - } - - if (idx === 1) { - testResult2 = true; - } - return false; - } - - var toStringAccessed = false; - var valueOfAccessed = false; - - var obj = { - 0: 12, - 1: 11, - 2: 9, - length: { - valueOf: function () { - valueOfAccessed = true; - return {}; - }, - toString: function () { - toStringAccessed = true; - return '2'; - } - } - }; - - Array.prototype.reduceRight.call(obj, callbackfn, 1); +var testResult1 = true; +var testResult2 = false; + +function callbackfn(prevVal, curVal, idx, obj) { + if (idx > 1) { + testResult1 = false; + } + + if (idx === 1) { + testResult2 = true; + } + return false; +} + +var toStringAccessed = false; +var valueOfAccessed = false; + +var obj = { + 0: 12, + 1: 11, + 2: 9, + length: { + valueOf: function() { + valueOfAccessed = true; + return {}; + }, + toString: function() { + toStringAccessed = true; + return '2'; + } + } +}; + +Array.prototype.reduceRight.call(obj, callbackfn, 1); assert(testResult1, 'testResult1 !== true'); assert(testResult2, 'testResult2 !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-22.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-22.js index 717f2c2db1..488f1808f2 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 4a3951bcfc..f9f5fa105d 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 33ffe0951a..db317c993b 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-24.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-24.js @@ -9,22 +9,28 @@ description: > non-integer, ensure truncation occurs in the proper direction ---*/ - var testResult1 = true; - var testResult2 = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx > 1) { - testResult1 = false; - } +var testResult1 = true; +var testResult2 = false; - if (idx === 1) { - testResult2 = true; - } - return false; - } +function callbackfn(prevVal, curVal, idx, obj) { + if (idx > 1) { + testResult1 = false; + } - var obj = { 0: 12, 1: 11, 2: 9, length: 2.685 }; + if (idx === 1) { + testResult2 = true; + } + return false; +} - Array.prototype.reduceRight.call(obj, callbackfn, 1); +var obj = { + 0: 12, + 1: 11, + 2: 9, + length: 2.685 +}; + +Array.prototype.reduceRight.call(obj, callbackfn, 1); assert(testResult1, 'testResult1 !== true'); assert(testResult2, 'testResult2 !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-25.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-25.js index 4895baa710..eb311aa6fd 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-25.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-25.js @@ -9,27 +9,28 @@ description: > non-integer ---*/ - var testResult1 = true; - var testResult2 = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx > 1) { - testResult1 = false; - } +var testResult1 = true; +var testResult2 = false; - if (idx === 1) { - testResult2 = true; - } - return false; - } +function callbackfn(prevVal, curVal, idx, obj) { + if (idx > 1) { + testResult1 = false; + } - var obj = { - 0: 12, - 1: 11, - 2: 9, - length: -4294967294.5 - }; + if (idx === 1) { + testResult2 = true; + } + return false; +} - Array.prototype.reduceRight.call(obj, callbackfn, 1); +var obj = { + 0: 12, + 1: 11, + 2: 9, + length: -4294967294.5 +}; + +Array.prototype.reduceRight.call(obj, callbackfn, 1); assert(testResult1, 'testResult1 !== true'); assert.sameValue(testResult2, false, 'testResult2'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-3.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-3.js index 5eb7512218..b651dc45ec 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-3.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-3.js @@ -9,13 +9,16 @@ description: > is 0) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; +} - var obj = { 0: 9, length: 0 }; +var obj = { + 0: 9, + length: 0 +}; assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, 1), 1, 'Array.prototype.reduceRight.call(obj, callbackfn, 1)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-4.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-4.js index 8317bd611c..9b7f07bd48 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-4.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-4.js @@ -9,13 +9,16 @@ description: > is +0) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; +} - var obj = { 0: 9, length: +0 }; +var obj = { + 0: 9, + length: +0 +}; assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, 1), 1, 'Array.prototype.reduceRight.call(obj, callbackfn, 1)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-5.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-5.js index d41f2f0db0..9a8919e54f 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-5.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-5.js @@ -9,13 +9,16 @@ description: > is -0) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(preVal, curVal, idx, obj) { - accessed = true; - } +function callbackfn(preVal, curVal, idx, obj) { + accessed = true; +} - var obj = { 0: 9, length: -0 }; +var obj = { + 0: 9, + length: -0 +}; assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, 1), 1, 'Array.prototype.reduceRight.call(obj, callbackfn, 1)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-6.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-6.js index 4caab36e8a..69ed877c29 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-6.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-6.js @@ -9,22 +9,27 @@ description: > is positive) ---*/ - var testResult1 = true; - var testResult2 = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx > 1) { - testResult1 = false; - } +var testResult1 = true; +var testResult2 = false; - if (idx === 1) { - testResult2 = true; - } - return false; - } +function callbackfn(prevVal, curVal, idx, obj) { + if (idx > 1) { + testResult1 = false; + } - var obj = { 1: 11, 2: 9, length: 2 }; + if (idx === 1) { + testResult2 = true; + } + return false; +} - Array.prototype.reduceRight.call(obj, callbackfn, 1); +var obj = { + 1: 11, + 2: 9, + length: 2 +}; + +Array.prototype.reduceRight.call(obj, callbackfn, 1); assert(testResult1, 'testResult1 !== true'); assert(testResult2, 'testResult2 !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-7.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-7.js index 53556d6bdd..a8da6c075f 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-7.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-7.js @@ -9,22 +9,27 @@ description: > is negative) ---*/ - var testResult1 = true; - var testResult2 = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx > 1) { - testResult1 = false; - } +var testResult1 = true; +var testResult2 = false; - if (idx === 1) { - testResult2 = true; - } - return false; - } +function callbackfn(prevVal, curVal, idx, obj) { + if (idx > 1) { + testResult1 = false; + } - var obj = { 1: 11, 2: 9, length: -4294967294 }; + if (idx === 1) { + testResult2 = true; + } + return false; +} - Array.prototype.reduceRight.call(obj, callbackfn, 1); +var obj = { + 1: 11, + 2: 9, + length: -4294967294 +}; + +Array.prototype.reduceRight.call(obj, callbackfn, 1); assert(testResult1, 'testResult1 !== true'); assert.sameValue(testResult2, false, 'testResult2'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-9.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-9.js index b9a895999b..7ecc600aab 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-9.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-9.js @@ -9,13 +9,16 @@ description: > is -Infinity) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; +} - var obj = { 0: 9, length: -Infinity }; +var obj = { + 0: 9, + length: -Infinity +}; assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, 1), 1, 'Array.prototype.reduceRight.call(obj, callbackfn, 1)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-1.js index dc3e165910..04017e990a 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 78a88e9b86..b6a599910a 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-10.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-10.js @@ -9,15 +9,18 @@ description: > exception was thrown by step 2 ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - Object.defineProperty(obj, "length", { - get: function () { - throw new Test262Error(); - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + throw new Test262Error(); + }, + configurable: true +}); assert.throws(Test262Error, function() { - Array.prototype.reduceRight.call(obj, undefined); + Array.prototype.reduceRight.call(obj, undefined); }); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-11.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-11.js index cfb99f9c3b..34885bde34 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-11.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-11.js @@ -9,19 +9,22 @@ description: > exception was thrown by step 3 ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - Object.defineProperty(obj, "length", { - get: function () { - return { - toString: function () { - throw new Test262Error(); - } - }; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + return { + toString: function() { + throw new Test262Error(); + } + }; + }, + configurable: true +}); assert.throws(Test262Error, function() { - Array.prototype.reduceRight.call(obj, undefined); + Array.prototype.reduceRight.call(obj, undefined); }); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-12.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-12.js index 8f83394758..f4e76497f7 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-12.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-12.js @@ -7,10 +7,11 @@ es5id: 15.4.4.22-4-12 description: Array.prototype.reduceRight - 'callbackfn' is a function ---*/ - var initialValue = 0; - function callbackfn(accum, val, idx, obj) { - accum += val; - return accum; - } +var initialValue = 0; + +function callbackfn(accum, val, idx, obj) { + accum += val; + return accum; +} assert.sameValue([11, 9].reduceRight(callbackfn, initialValue), 20, '[11, 9].reduceRight(callbackfn, initialValue)'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-15.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-15.js index 38d8e3f06e..cdef077c69 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-15.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-15.js @@ -9,26 +9,28 @@ description: > same as passing undefined for callbackfn ---*/ - var obj = { 10: 10 }; - var lengthAccessed = false; - var loopAccessed = false; +var obj = { + 10: 10 +}; +var lengthAccessed = false; +var loopAccessed = false; - Object.defineProperty(obj, "length", { - get: function () { - lengthAccessed = true; - return 20; - }, - configurable: true - }); - Object.defineProperty(obj, "0", { - get: function () { - loopAccessed = true; - return 10; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + lengthAccessed = true; + return 20; + }, + configurable: true +}); +Object.defineProperty(obj, "0", { + get: function() { + loopAccessed = true; + return 10; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.reduceRight.call(obj, undefined); + Array.prototype.reduceRight.call(obj, undefined); }); assert(lengthAccessed, 'lengthAccessed !== true'); assert.sameValue(loopAccessed, false, 'loopAccessed'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-2.js index 51c148dce6..40ea5d53ca 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 129cfc44ce..76b084c2ba 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 d4dc6d1f2d..9f0043f12a 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 a20e6ccb38..e22ed21835 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 f323243994..e6437a1b33 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 86a86b8c97..c6104250da 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 2b7468f541..d76239982f 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-8.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-8.js @@ -9,18 +9,21 @@ description: > visible when an exception occurs ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - var accessed = false; +var accessed = false; - Object.defineProperty(obj, "length", { - get: function () { - accessed = true; - return 2; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + accessed = true; + return 2; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.reduceRight.call(obj, null); + Array.prototype.reduceRight.call(obj, null); }); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-9.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-9.js index dac9e41fa3..0da73eb44d 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-9.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-9.js @@ -9,22 +9,25 @@ description: > visible when an exception occurs ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - var accessed = false; +var accessed = false; - Object.defineProperty(obj, "length", { - get: function () { - return { - toString: function () { - accessed = true; - return "2"; - } - }; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + return { + toString: function() { + accessed = true; + return "2"; + } + }; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.reduceRight.call(obj, null); + Array.prototype.reduceRight.call(obj, null); }); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-1.js index 7aca869816..562903de42 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 ede41e29f6..f70a3062d0 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-10.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-10.js @@ -9,18 +9,21 @@ description: > an exception occurs ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - var accessed = false; +var accessed = false; - Object.defineProperty(obj, "length", { - get: function () { - accessed = true; - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + accessed = true; + return 0; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.reduceRight.call(obj, function () { }); + Array.prototype.reduceRight.call(obj, function() {}); }); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-11.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-11.js index 627bebe300..a0d148aacf 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-11.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-11.js @@ -9,22 +9,25 @@ description: > an exception occurs ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - var accessed = false; +var accessed = false; - Object.defineProperty(obj, "length", { - get: function () { - return { - toString: function () { - accessed = true; - return "0"; - } - }; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + return { + toString: function() { + accessed = true; + return "0"; + } + }; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.reduceRight.call(obj, function () { }); + Array.prototype.reduceRight.call(obj, function() {}); }); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-12.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-12.js index 7115439f27..5a8f490967 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-12.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-12.js @@ -9,15 +9,18 @@ description: > exception was thrown by step 2 ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - Object.defineProperty(obj, "length", { - get: function () { - throw new Test262Error(); - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + throw new Test262Error(); + }, + configurable: true +}); assert.throws(Test262Error, function() { - Array.prototype.reduceRight.call(obj, function () { }); + Array.prototype.reduceRight.call(obj, function() {}); }); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-13.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-13.js index 8ff17da58e..f3a658dbdf 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-13.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-13.js @@ -9,19 +9,22 @@ description: > exception was thrown by step 3 ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - Object.defineProperty(obj, "length", { - get: function () { - return { - toString: function () { - throw new Test262Error(); - } - }; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + return { + toString: function() { + throw new Test262Error(); + } + }; + }, + configurable: true +}); assert.throws(Test262Error, function() { - Array.prototype.reduceRight.call(obj, function () { }); + Array.prototype.reduceRight.call(obj, function() {}); }); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-2.js index 4f74f4fb56..e2ea6c0a1d 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-2.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-2.js @@ -10,12 +10,13 @@ description: > no initVal ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = null; +foo.prototype = new Array(1, 2, 3); - function cb(){} +function foo() {} +var f = new foo(); +f.length = null; + +function cb() {} assert.throws(TypeError, function() { - f.reduceRight(cb); + f.reduceRight(cb); }); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-3.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-3.js index a19e73e2b1..1256ed6687 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-3.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-3.js @@ -10,12 +10,13 @@ description: > no initVal ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = false; +foo.prototype = new Array(1, 2, 3); - function cb(){} +function foo() {} +var f = new foo(); +f.length = false; + +function cb() {} assert.throws(TypeError, function() { - f.reduceRight(cb); + f.reduceRight(cb); }); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-4.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-4.js index 31a202f5ec..ec024658ff 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-4.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-4.js @@ -10,12 +10,13 @@ description: > initVal ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = 0; +foo.prototype = new Array(1, 2, 3); - function cb(){} +function foo() {} +var f = new foo(); +f.length = 0; + +function cb() {} assert.throws(TypeError, function() { - f.reduceRight(cb); + f.reduceRight(cb); }); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-5.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-5.js index db633c2142..ddf90e92e9 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-5.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-5.js @@ -10,12 +10,13 @@ description: > initVal ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = '0'; +foo.prototype = new Array(1, 2, 3); - function cb(){} +function foo() {} +var f = new foo(); +f.length = '0'; + +function cb() {} assert.throws(TypeError, function() { - f.reduceRight(cb); + f.reduceRight(cb); }); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-6.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-6.js index cea6793e0b..76d34aed03 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-6.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-6.js @@ -10,14 +10,19 @@ description: > initVal ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); +foo.prototype = new Array(1, 2, 3); - var o = { valueOf: function () { return 0;}}; - f.length = o; +function foo() {} +var f = new foo(); - function cb(){} +var o = { + valueOf: function() { + return 0; + } +}; +f.length = o; + +function cb() {} assert.throws(TypeError, function() { - f.reduceRight(cb); + f.reduceRight(cb); }); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-7.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-7.js index 6fac3bfd8d..bd392b8003 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-7.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-7.js @@ -10,20 +10,25 @@ description: > (toString)), no initVal ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); +foo.prototype = new Array(1, 2, 3); - var o = { toString: function () { return '0';}}; - f.length = o; +function foo() {} +var f = new foo(); - // objects inherit the default valueOf method of the Object object; - // that simply returns the itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. +var o = { + toString: function() { + return '0'; + } +}; +f.length = o; - function cb(){} +// objects inherit the default valueOf method of the Object object; +// that simply returns the itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. + +function cb() {} assert.throws(TypeError, function() { - f.reduceRight(cb); + f.reduceRight(cb); }); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-8.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-8.js index 10631cf823..93ce902f0b 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-8.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-8.js @@ -9,27 +9,28 @@ description: > (subclassed Array, length overridden with []), no initVal ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); +foo.prototype = new Array(1, 2, 3); - f.length = []; +function foo() {} +var f = new foo(); - // objects inherit the default valueOf method of the Object object; - // that simply returns the itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. - // - // The toString( ) method on Array converts the array elements to strings, - // then returns the result of concatenating these strings, with commas in - // between. An array with no elements converts to the empty string, which - // converts to the number 0. If an array has a single element that is a - // number n, the array converts to a string representation of n, which is - // then converted back to n itself. If an array contains more than one element, - // or if its one element is not a number, the array converts to NaN. +f.length = []; - function cb(){} +// objects inherit the default valueOf method of the Object object; +// that simply returns the itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. +// +// The toString( ) method on Array converts the array elements to strings, +// then returns the result of concatenating these strings, with commas in +// between. An array with no elements converts to the empty string, which +// converts to the number 0. If an array has a single element that is a +// number n, the array converts to a string representation of n, which is +// then converted back to n itself. If an array contains more than one element, +// or if its one element is not a number, the array converts to NaN. + +function cb() {} assert.throws(TypeError, function() { - f.reduceRight(cb); + f.reduceRight(cb); }); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-9.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-9.js index ce3fe68446..8c9053cdb4 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 cd191ee0ea..76cec3316e 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 ca80beabf5..c50c734da4 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 c7c2a92a6d..466105ad62 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 d6bbe8e4db..226fe2e53b 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-2.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-2.js @@ -10,10 +10,11 @@ description: > to null (type conversion)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = null; +foo.prototype = new Array(1, 2, 3); - function cb(){} -assert.sameValue(f.reduceRight(cb,1), 1, 'f.reduceRight(cb,1)'); +function foo() {} +var f = new foo(); +f.length = null; + +function cb() {} +assert.sameValue(f.reduceRight(cb, 1), 1, 'f.reduceRight(cb,1)'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-3.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-3.js index f06d61ae53..07b39a3cce 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-3.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-3.js @@ -10,10 +10,11 @@ description: > to false (type conversion)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = false; +foo.prototype = new Array(1, 2, 3); - function cb(){} -assert.sameValue(f.reduceRight(cb,1), 1, 'f.reduceRight(cb,1)'); +function foo() {} +var f = new foo(); +f.length = false; + +function cb() {} +assert.sameValue(f.reduceRight(cb, 1), 1, 'f.reduceRight(cb,1)'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-4.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-4.js index 5cc4058fe4..6006a08c35 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-4.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-4.js @@ -10,10 +10,11 @@ description: > to 0 (type conversion)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = 0; +foo.prototype = new Array(1, 2, 3); - function cb(){} -assert.sameValue(f.reduceRight(cb,1), 1, 'f.reduceRight(cb,1)'); +function foo() {} +var f = new foo(); +f.length = 0; + +function cb() {} +assert.sameValue(f.reduceRight(cb, 1), 1, 'f.reduceRight(cb,1)'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-5.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-5.js index 1a7b538fdc..e91ba16276 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-5.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-5.js @@ -10,10 +10,11 @@ description: > to '0' (type conversion)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = '0'; +foo.prototype = new Array(1, 2, 3); - function cb(){} -assert.sameValue(f.reduceRight(cb,1), 1, 'f.reduceRight(cb,1)'); +function foo() {} +var f = new foo(); +f.length = '0'; + +function cb() {} +assert.sameValue(f.reduceRight(cb, 1), 1, 'f.reduceRight(cb,1)'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-6.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-6.js index 7d7f0356d0..5fda998754 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-6.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-6.js @@ -10,12 +10,17 @@ description: > with obj with valueOf) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); +foo.prototype = new Array(1, 2, 3); - var o = { valueOf: function () { return 0;}}; - f.length = o; +function foo() {} +var f = new foo(); - function cb(){} -assert.sameValue(f.reduceRight(cb,1), 1, 'f.reduceRight(cb,1)'); +var o = { + valueOf: function() { + return 0; + } +}; +f.length = o; + +function cb() {} +assert.sameValue(f.reduceRight(cb, 1), 1, 'f.reduceRight(cb,1)'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-7.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-7.js index a2fdb76eb0..80819a2b4c 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-7.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-7.js @@ -10,18 +10,23 @@ description: > with obj w/o valueOf (toString)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); +foo.prototype = new Array(1, 2, 3); - var o = { toString: function () { return '0';}}; - f.length = o; +function foo() {} +var f = new foo(); - // objects inherit the default valueOf method of the Object object; - // that simply returns the itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. +var o = { + toString: function() { + return '0'; + } +}; +f.length = o; - function cb(){} -assert.sameValue(f.reduceRight(cb,1), 1, 'f.reduceRight(cb,1)'); +// objects inherit the default valueOf method of the Object object; +// that simply returns the itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. + +function cb() {} +assert.sameValue(f.reduceRight(cb, 1), 1, 'f.reduceRight(cb,1)'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-8.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-8.js index 88fd551cf1..d2db08ed90 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-8.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-8.js @@ -10,25 +10,26 @@ description: > with []) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); +foo.prototype = new Array(1, 2, 3); - f.length = []; +function foo() {} +var f = new foo(); - // objects inherit the default valueOf method of the Object object; - // that simply returns the itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. - // - // The toString( ) method on Array converts the array elements to strings, - // then returns the result of concatenating these strings, with commas in - // between. An array with no elements converts to the empty string, which - // converts to the number 0. If an array has a single element that is a - // number n, the array converts to a string representation of n, which is - // then converted back to n itself. If an array contains more than one element, - // or if its one element is not a number, the array converts to NaN. +f.length = []; - function cb(){} -assert.sameValue(f.reduceRight(cb,1), 1, 'f.reduceRight(cb,1)'); +// objects inherit the default valueOf method of the Object object; +// that simply returns the itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. +// +// The toString( ) method on Array converts the array elements to strings, +// then returns the result of concatenating these strings, with commas in +// between. An array with no elements converts to the empty string, which +// converts to the number 0. If an array has a single element that is a +// number n, the array converts to a string representation of n, which is +// then converted back to n itself. If an array contains more than one element, +// or if its one element is not a number, the array converts to NaN. + +function cb() {} +assert.sameValue(f.reduceRight(cb, 1), 1, 'f.reduceRight(cb,1)'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-9.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-9.js index b7d1567e27..9903f299bf 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-9.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-9.js @@ -10,25 +10,26 @@ description: > with [0]) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); +foo.prototype = new Array(1, 2, 3); - f.length = [0]; +function foo() {} +var f = new foo(); - // objects inherit the default valueOf method of the Object object; - // that simply returns the itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. - // - // The toString( ) method on Array converts the array elements to strings, - // then returns the result of concatenating these strings, with commas in - // between. An array with no elements converts to the empty string, which - // converts to the number 0. If an array has a single element that is a - // number n, the array converts to a string representation of n, which is - // then converted back to n itself. If an array contains more than one element, - // or if its one element is not a number, the array converts to NaN. +f.length = [0]; - function cb(){} -assert.sameValue(f.reduceRight(cb,1), 1, 'f.reduceRight(cb,1)'); +// objects inherit the default valueOf method of the Object object; +// that simply returns the itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. +// +// The toString( ) method on Array converts the array elements to strings, +// then returns the result of concatenating these strings, with commas in +// between. An array with no elements converts to the empty string, which +// converts to the number 0. If an array has a single element that is a +// number n, the array converts to a string representation of n, which is +// then converted back to n itself. If an array contains more than one element, +// or if its one element is not a number, the array converts to NaN. + +function cb() {} +assert.sameValue(f.reduceRight(cb, 1), 1, 'f.reduceRight(cb,1)'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-1.js index 2763dde2e5..de85b84e2c 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-1.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-1.js @@ -9,20 +9,22 @@ description: > is 0 ---*/ - var accessed = false; +var accessed = false; - var obj = { length: 0 }; +var obj = { + length: 0 +}; - Object.defineProperty(obj, "0", { - get: function () { - accessed = true; - return 10; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + accessed = true; + return 10; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.reduceRight.call(obj, function () { }); + Array.prototype.reduceRight.call(obj, function() {}); }); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-2.js index c2c0b4e857..96e4d9109a 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-2.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-2.js @@ -9,22 +9,23 @@ description: > number of iterations in step 9 ---*/ - var called = 0; - function callbackfn(prevVal, curVal, idx, obj) { - called++; - return prevVal + curVal; - } +var called = 0; - var arr = [0, 1, 2, 3]; - Object.defineProperty(arr, "4", { - get: function () { - arr.length = 2; - return 10; - }, - configurable: true - }); +function callbackfn(prevVal, curVal, idx, obj) { + called++; + return prevVal + curVal; +} - var preVal = arr.reduceRight(callbackfn); +var arr = [0, 1, 2, 3]; +Object.defineProperty(arr, "4", { + get: function() { + arr.length = 2; + return 10; + }, + configurable: true +}); + +var preVal = arr.reduceRight(callbackfn); assert.sameValue(preVal, 11, 'preVal'); assert.sameValue(called, 2, 'called'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-3.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-3.js index cfa839663c..0c9292f976 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 41ea823dc7..cbd57020ed 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 4afeb3bb75..8da273e0c2 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-ii-2.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-ii-2.js @@ -9,14 +9,17 @@ description: > visible here ---*/ - var obj = { 2: "accumulator", 3: "another" }; +var obj = { + 2: "accumulator", + 3: "another" +}; - Object.defineProperty(obj, "length", { - get: function () { - delete obj[2]; - return 5; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + delete obj[2]; + return 5; + }, + configurable: true +}); -assert.notSameValue(Array.prototype.reduceRight.call(obj, function () { }), "accumulator", 'Array.prototype.reduceRight.call(obj, function () { })'); +assert.notSameValue(Array.prototype.reduceRight.call(obj, function() {}), "accumulator", 'Array.prototype.reduceRight.call(obj, function () { })'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-1.js index d3421ebb5c..3edc447853 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-1.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-1.js @@ -9,15 +9,20 @@ description: > property on an Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 0) { - testResult = (prevVal === 1); - } - } +var testResult = false; - var obj = { 0: 0, 1: 1, length: 2 }; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 0) { + testResult = (prevVal === 1); + } +} - Array.prototype.reduceRight.call(obj, callbackfn); +var obj = { + 0: 0, + 1: 1, + length: 2 +}; + +Array.prototype.reduceRight.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-10.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-10.js index 2f82c12890..d76cbfc026 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-10.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-10.js @@ -9,22 +9,23 @@ description: > accessor property on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 2) { - testResult = (curVal === 2); - } - } +var testResult = false; - var arr = [0, 1, , 3]; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 2) { + testResult = (curVal === 2); + } +} - Object.defineProperty(arr, "2", { - get: function () { - return 2; - }, - configurable: true - }); +var arr = [0, 1, , 3]; - arr.reduceRight(callbackfn); +Object.defineProperty(arr, "2", { + get: function() { + return 2; + }, + configurable: true +}); + +arr.reduceRight(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-11.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-11.js index 62c9245a9a..98aea64ef5 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-11.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-11.js @@ -10,28 +10,33 @@ description: > Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === "20"); - } - } - - var proto = { 0: 0, 1: 1, 2: 2 }; - - var Con = function () { }; - Con.prototype = proto; - - var child = new Con(); - child.length = 3; - - Object.defineProperty(child, "2", { - get: function () { - return "20"; - }, - configurable: true - }); - - Array.prototype.reduceRight.call(child, callbackfn); +var testResult = false; + +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === "20"); + } +} + +var proto = { + 0: 0, + 1: 1, + 2: 2 +}; + +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); +child.length = 3; + +Object.defineProperty(child, "2", { + get: function() { + return "20"; + }, + configurable: true +}); + +Array.prototype.reduceRight.call(child, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-12.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-12.js index ee042baaec..d322bc64d9 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-12.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-12.js @@ -10,23 +10,24 @@ description: > Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === "20"); - } - } +var testResult = false; - Array.prototype[2] = 2; - var arr = [0, 1]; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === "20"); + } +} - Object.defineProperty(arr, "2", { - get: function () { - return "20"; - }, - configurable: true - }); +Array.prototype[2] = 2; +var arr = [0, 1]; - arr.reduceRight(callbackfn); +Object.defineProperty(arr, "2", { + get: function() { + return "20"; + }, + configurable: true +}); + +arr.reduceRight(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-13.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-13.js index 0d3c40e0ab..f2e27dc4ed 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-13.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-13.js @@ -10,35 +10,39 @@ description: > an Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === "20"); - } - } - - var proto = { 0: 0, 1: 1 }; - - Object.defineProperty(proto, "2", { - get: function () { - return 2; - }, - configurable: true - }); - - var Con = function () { }; - Con.prototype = proto; - - var child = new Con(); - child.length = 3; - - Object.defineProperty(child, "2", { - get: function () { - return "20"; - }, - configurable: true - }); - - Array.prototype.reduceRight.call(child, callbackfn); +var testResult = false; + +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === "20"); + } +} + +var proto = { + 0: 0, + 1: 1 +}; + +Object.defineProperty(proto, "2", { + get: function() { + return 2; + }, + configurable: true +}); + +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); +child.length = 3; + +Object.defineProperty(child, "2", { + get: function() { + return "20"; + }, + configurable: true +}); + +Array.prototype.reduceRight.call(child, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-14.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-14.js index 3973a35930..74613a0782 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-14.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-14.js @@ -10,29 +10,30 @@ description: > an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === "20"); - } - } - - Object.defineProperty(Array.prototype, "2", { - get: function () { - return 2; - }, - configurable: true - }); - - var arr = [0, 1, , ]; - - Object.defineProperty(arr, "2", { - get: function () { - return "20"; - }, - configurable: true - }); - - arr.reduceRight(callbackfn); +var testResult = false; + +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === "20"); + } +} + +Object.defineProperty(Array.prototype, "2", { + get: function() { + return 2; + }, + configurable: true +}); + +var arr = [0, 1, , ]; + +Object.defineProperty(arr, "2", { + get: function() { + return "20"; + }, + configurable: true +}); + +arr.reduceRight(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-15.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-15.js index 5ed456fb15..4a484444e3 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-15.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-15.js @@ -9,28 +9,32 @@ description: > accessor property on an Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === 2); - } - } +var testResult = false; - var proto = { 0: 0, 1: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === 2); + } +} - Object.defineProperty(proto, "2", { - get: function () { - return 2; - }, - configurable: true - }); +var proto = { + 0: 0, + 1: 1 +}; - var Con = function () { }; - Con.prototype = proto; +Object.defineProperty(proto, "2", { + get: function() { + return 2; + }, + configurable: true +}); - var child = new Con(); - child.length = 3; +var Con = function() {}; +Con.prototype = proto; - Array.prototype.reduceRight.call(child, callbackfn); +var child = new Con(); +child.length = 3; + +Array.prototype.reduceRight.call(child, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-16.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-16.js index b2cc5cbb2f..8d473225be 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-16.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-16.js @@ -9,22 +9,23 @@ description: > accessor property on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === 2); - } - } +var testResult = false; - Object.defineProperty(Array.prototype, "2", { - get: function () { - return 2; - }, - configurable: true - }); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === 2); + } +} - var arr = [0, 1, , ]; +Object.defineProperty(Array.prototype, "2", { + get: function() { + return 2; + }, + configurable: true +}); - arr.reduceRight(callbackfn); +var arr = [0, 1, , ]; + +arr.reduceRight(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-17.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-17.js index 754f25206e..00cb060697 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-17.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-17.js @@ -9,20 +9,25 @@ description: > accessor property without a get function on an Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (typeof prevVal === "undefined"); - } - } +var testResult = false; - var obj = { 0: 0, 1: 1, length: 3 }; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (typeof prevVal === "undefined"); + } +} - Object.defineProperty(obj, "2", { - set: function () { }, - configurable: true - }); +var obj = { + 0: 0, + 1: 1, + length: 3 +}; - Array.prototype.reduceRight.call(obj, callbackfn); +Object.defineProperty(obj, "2", { + set: function() {}, + configurable: true +}); + +Array.prototype.reduceRight.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-18.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-18.js index 7413e3140f..4be07578a8 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-18.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-18.js @@ -9,20 +9,21 @@ description: > accessor property without a get function on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (typeof prevVal === "undefined"); - } - } +var testResult = false; - var arr = [0, 1]; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (typeof prevVal === "undefined"); + } +} - Object.defineProperty(arr, "2", { - set: function () { }, - configurable: true - }); +var arr = [0, 1]; - arr.reduceRight(callbackfn); +Object.defineProperty(arr, "2", { + set: function() {}, + configurable: true +}); + +arr.reduceRight(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-19.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-19.js index 55df142cb2..65b0ec395f 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-19.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-19.js @@ -10,21 +10,26 @@ description: > inherited accessor property on an Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (typeof prevVal === "undefined"); - } - } +var testResult = false; - Object.prototype[2] = 2; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (typeof prevVal === "undefined"); + } +} - var obj = { 0: 0, 1: 1, length: 3 }; - Object.defineProperty(obj, "2", { - set: function () { }, - configurable: true - }); +Object.prototype[2] = 2; - Array.prototype.reduceRight.call(obj, callbackfn); +var obj = { + 0: 0, + 1: 1, + length: 3 +}; +Object.defineProperty(obj, "2", { + set: function() {}, + configurable: true +}); + +Array.prototype.reduceRight.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-2.js index e7dfce50ce..6b68c4259f 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-2.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-2.js @@ -9,15 +9,16 @@ description: > property on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === 2); - } - } +var testResult = false; - var arr = [0, 1, 2]; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === 2); + } +} - arr.reduceRight(callbackfn); +var arr = [0, 1, 2]; + +arr.reduceRight(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-20.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-20.js index 7c0d2b3d55..f42f77de41 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-20.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-20.js @@ -10,20 +10,21 @@ description: > inherited accessor property on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (typeof prevVal === "undefined"); - } - } +var testResult = false; - Array.prototype[2] = 2; - var arr = [0, 1]; - Object.defineProperty(arr, "2", { - set: function () { }, - configurable: true - }); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (typeof prevVal === "undefined"); + } +} - arr.reduceRight(callbackfn); +Array.prototype[2] = 2; +var arr = [0, 1]; +Object.defineProperty(arr, "2", { + set: function() {}, + configurable: true +}); + +arr.reduceRight(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-21.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-21.js index c2586e35a0..234438eb9e 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-21.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-21.js @@ -9,26 +9,30 @@ description: > accessor property without a get function on an Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (typeof prevVal === "undefined"); - } - } +var testResult = false; - var proto = { 0: 0, 1: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (typeof prevVal === "undefined"); + } +} - Object.defineProperty(proto, "2", { - set: function () { }, - configurable: true - }); +var proto = { + 0: 0, + 1: 1 +}; - var Con = function () { }; - Con.prototype = proto; +Object.defineProperty(proto, "2", { + set: function() {}, + configurable: true +}); - var child = new Con(); - child.length = 3; +var Con = function() {}; +Con.prototype = proto; - Array.prototype.reduceRight.call(child, callbackfn); +var child = new Con(); +child.length = 3; + +Array.prototype.reduceRight.call(child, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-22.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-22.js index 0c3321dcec..8014170040 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-22.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-22.js @@ -9,20 +9,21 @@ description: > accessor property without a get function on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (typeof prevVal === "undefined"); - } - } +var testResult = false; - Object.defineProperty(Array.prototype, "2", { - set: function () { }, - configurable: true - }); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (typeof prevVal === "undefined"); + } +} - var arr = [0, 1, , ]; +Object.defineProperty(Array.prototype, "2", { + set: function() {}, + configurable: true +}); - arr.reduceRight(callbackfn); +var arr = [0, 1, , ]; + +arr.reduceRight(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-25.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-25.js index ed00735cb0..a00761e4bc 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-25.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-25.js @@ -10,17 +10,18 @@ description: > is less than number of parameters) ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 0) { - testResult = (prevVal === 1); - } - } +var testResult = false; - var func = function (a, b, c) { - Array.prototype.reduceRight.call(arguments, callbackfn); - }; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 0) { + testResult = (prevVal === 1); + } +} - func(0, 1); +var func = function(a, b, c) { + Array.prototype.reduceRight.call(arguments, callbackfn); +}; + +func(0, 1); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-26.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-26.js index fa3c52c43a..5024b8159f 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-26.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-26.js @@ -10,17 +10,18 @@ description: > equals number of parameters) ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === 2); - } - } +var testResult = false; - var func = function (a, b, c) { - Array.prototype.reduceRight.call(arguments, callbackfn); - }; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === 2); + } +} - func(0, 1, 2); +var func = function(a, b, c) { + Array.prototype.reduceRight.call(arguments, callbackfn); +}; + +func(0, 1, 2); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-27.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-27.js index c6cfe25cde..4b716884f9 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-27.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-27.js @@ -10,17 +10,18 @@ description: > is greater than number of parameters) ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 2) { - testResult = (prevVal === 3); - } - } +var testResult = false; - var func = function (a, b, c) { - Array.prototype.reduceRight.call(arguments, callbackfn); - }; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 2) { + testResult = (prevVal === 3); + } +} - func(0, 1, 2, 3); +var func = function(a, b, c) { + Array.prototype.reduceRight.call(arguments, callbackfn); +}; + +func(0, 1, 2, 3); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-28.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-28.js index 892cfdc56c..296ac59cd4 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-28.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-28.js @@ -9,15 +9,16 @@ description: > implements its own property get method ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === "2"); - } - } +var testResult = false; - var str = new String("012"); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === "2"); + } +} - Array.prototype.reduceRight.call(str, callbackfn); +var str = new String("012"); + +Array.prototype.reduceRight.call(str, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-29.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-29.js index acb274e175..e7c88ee8fc 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-29.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-29.js @@ -9,21 +9,22 @@ description: > implements its own property get method ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === 2); - } - } +var testResult = false; - var obj = function (a, b, c) { - return a + b + c; - }; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === 2); + } +} - obj[0] = 0; - obj[1] = 1; - obj[2] = 2; +var obj = function(a, b, c) { + return a + b + c; +}; - Array.prototype.reduceRight.call(obj, callbackfn); +obj[0] = 0; +obj[1] = 1; +obj[2] = 2; + +Array.prototype.reduceRight.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-3.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-3.js index 062f12ba1c..5dae8cadef 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-3.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-3.js @@ -10,22 +10,28 @@ description: > Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === "20"); - } - } +var testResult = false; - var proto = { 0: 0, 1: 1, 2: 2, length: 2 }; - var Con = function () { }; - Con.prototype = proto; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === "20"); + } +} - var child = new Con(); - child[1] = "10"; - child[2] = "20"; - child.length = 3; +var proto = { + 0: 0, + 1: 1, + 2: 2, + length: 2 +}; +var Con = function() {}; +Con.prototype = proto; - Array.prototype.reduceRight.call(child, callbackfn); +var child = new Con(); +child[1] = "10"; +child[2] = "20"; +child.length = 3; + +Array.prototype.reduceRight.call(child, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-30.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-30.js index bfebf8515e..dd07c30e29 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-30.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-30.js @@ -9,35 +9,36 @@ description: > iteration is observed in subsequent iterations on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1 && prevVal === 2); - } - } - - var arr = [0]; - var preIterVisible = false; - - Object.defineProperty(arr, "1", { - get: function () { - if (preIterVisible) { - return 1; - } else { - return "20"; - } - }, - configurable: true - }); - - Object.defineProperty(arr, "2", { - get: function () { - preIterVisible = true; - return 2; - }, - configurable: true - }); - - arr.reduceRight(callbackfn); +var testResult = false; + +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1 && prevVal === 2); + } +} + +var arr = [0]; +var preIterVisible = false; + +Object.defineProperty(arr, "1", { + get: function() { + if (preIterVisible) { + return 1; + } else { + return "20"; + } + }, + configurable: true +}); + +Object.defineProperty(arr, "2", { + get: function() { + preIterVisible = true; + return 2; + }, + configurable: true +}); + +arr.reduceRight(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-31.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-31.js index 8d8168a560..adc024dca6 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-31.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-31.js @@ -9,35 +9,39 @@ description: > iteration is observed subsequetly on an Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === 2 && curVal === 1); - } - } - - var obj = { 0: 0, length: 3 }; - var preIterVisible = false; - - Object.defineProperty(obj, "1", { - get: function () { - if (preIterVisible) { - return 1; - } else { - return "20"; - } - }, - configurable: true - }); - - Object.defineProperty(obj, "2", { - get: function () { - preIterVisible = true; - return 2; - }, - configurable: true - }); - - Array.prototype.reduceRight.call(obj, callbackfn); +var testResult = false; + +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === 2 && curVal === 1); + } +} + +var obj = { + 0: 0, + length: 3 +}; +var preIterVisible = false; + +Object.defineProperty(obj, "1", { + get: function() { + if (preIterVisible) { + return 1; + } else { + return "20"; + } + }, + configurable: true +}); + +Object.defineProperty(obj, "2", { + get: function() { + preIterVisible = true; + return 2; + }, + configurable: true +}); + +Array.prototype.reduceRight.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-32.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-32.js index 49146cd496..e4056e11fc 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-32.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-32.js @@ -9,21 +9,26 @@ description: > iteration on an Array-like object ---*/ - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx <= 1) { - accessed = true; - } - } +var accessed = false; - var obj = { 0: 0, 1: 1, length: 3 }; - Object.defineProperty(obj, "2", { - get: function () { - throw new RangeError("unhandle exception happened in getter"); - }, - configurable: true - }); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx <= 1) { + accessed = true; + } +} + +var obj = { + 0: 0, + 1: 1, + length: 3 +}; +Object.defineProperty(obj, "2", { + get: function() { + throw new RangeError("unhandle exception happened in getter"); + }, + configurable: true +}); assert.throws(RangeError, function() { - Array.prototype.reduceRight.call(obj, callbackfn); + Array.prototype.reduceRight.call(obj, callbackfn); }); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-33.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-33.js index 53f974e22d..b770c5cccd 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-33.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-33.js @@ -9,22 +9,23 @@ description: > iteration on an Array ---*/ - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx <= 1) { - accessed = true; - } - } +var accessed = false; - var arr = [0, 1]; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx <= 1) { + accessed = true; + } +} - Object.defineProperty(arr, "2", { - get: function () { - throw new RangeError("unhandle exception happened in getter"); - }, - configurable: true - }); +var arr = [0, 1]; + +Object.defineProperty(arr, "2", { + get: function() { + throw new RangeError("unhandle exception happened in getter"); + }, + configurable: true +}); assert.throws(RangeError, function() { - arr.reduceRight(callbackfn); + arr.reduceRight(callbackfn); }); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-4.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-4.js index 2bf4cc00dc..9363a9c3ba 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-4.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-4.js @@ -9,14 +9,15 @@ description: > property that overrides an inherited data property on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === 2); - } - } +var testResult = false; - Array.prototype[2] = "11"; - [0, 1, 2].reduceRight(callbackfn); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === 2); + } +} + +Array.prototype[2] = "11"; +[0, 1, 2].reduceRight(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-5.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-5.js index c08e592485..1eda02b462 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-5.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-5.js @@ -10,34 +10,35 @@ description: > Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === "20"); - } - } - - var proto = {}; - - Object.defineProperty(proto, "2", { - get: function () { - return 11; - }, - configurable: true - }); - - var Con = function () { }; - Con.prototype = proto; - - var child = new Con(); - child.length = 3; - child[0] = "0"; - child[1] = "1"; - Object.defineProperty(proto, "2", { - value: "20", - configurable: true - }); - - Array.prototype.reduceRight.call(child, callbackfn); +var testResult = false; + +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === "20"); + } +} + +var proto = {}; + +Object.defineProperty(proto, "2", { + get: function() { + return 11; + }, + configurable: true +}); + +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); +child.length = 3; +child[0] = "0"; +child[1] = "1"; +Object.defineProperty(proto, "2", { + value: "20", + configurable: true +}); + +Array.prototype.reduceRight.call(child, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-6.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-6.js index 6bd5ab5eb9..6f8f1eec3c 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-6.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-6.js @@ -9,19 +9,20 @@ description: > property that overrides an inherited accessor property on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === 2); - } - } +var testResult = false; - Object.defineProperty(Array.prototype, "2", { - get: function () { - return "2"; - }, - configurable: true - }); - [0, 1, 2].reduceRight(callbackfn); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === 2); + } +} + +Object.defineProperty(Array.prototype, "2", { + get: function() { + return "2"; + }, + configurable: true +}); +[0, 1, 2].reduceRight(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-7.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-7.js index a955557ecb..55a3d6dbda 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-7.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-7.js @@ -9,19 +9,25 @@ description: > data property on an Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === 2); - } - } +var testResult = false; - var proto = { 0: 0, 1: 1, 2: 2, length: 3 }; - var Con = function () { }; - Con.prototype = proto; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === 2); + } +} - var child = new Con(); +var proto = { + 0: 0, + 1: 1, + 2: 2, + length: 3 +}; +var Con = function() {}; +Con.prototype = proto; - Array.prototype.reduceRight.call(child, callbackfn); +var child = new Con(); + +Array.prototype.reduceRight.call(child, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-8.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-8.js index 983566a9cc..d7174183c7 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-8.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-8.js @@ -9,16 +9,17 @@ description: > data property on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === 2); - } - } +var testResult = false; - Array.prototype[0] = 0; - Array.prototype[1] = 1; - Array.prototype[2] = 2; - [, , ,].reduceRight(callbackfn); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === 2); + } +} + +Array.prototype[0] = 0; +Array.prototype[1] = 1; +Array.prototype[2] = 2; +[, , , ].reduceRight(callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-9.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-9.js index e2f7da4b6f..648e9485b5 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-9.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-9.js @@ -9,21 +9,26 @@ description: > accessor property on an Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === 2); - } - } +var testResult = false; - var obj = { 0: 0, 1: 1, length: 3 }; - Object.defineProperty(obj, "2", { - get: function () { - return 2; - }, - configurable: true - }); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === 2); + } +} - Array.prototype.reduceRight.call(obj, callbackfn); +var obj = { + 0: 0, + 1: 1, + length: 3 +}; +Object.defineProperty(obj, "2", { + get: function() { + return 2; + }, + configurable: true +}); + +Array.prototype.reduceRight.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-1.js index 9c1d91d3ca..8c59328e35 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-1.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-1.js @@ -9,11 +9,10 @@ description: > and initialValue is not present ---*/ - function callbackfn(prevVal, curVal, idx, obj) - { - } +function callbackfn(prevVal, curVal, idx, obj) +{} - var arr = new Array(10); +var arr = new Array(10); assert.throws(TypeError, function() { - arr.reduceRight(callbackfn); + arr.reduceRight(callbackfn); }); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-2.js index 05271d6745..3153f84f56 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-2.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-2.js @@ -10,13 +10,12 @@ description: > initialValue is not present ---*/ - function callbackfn(prevVal, curVal, idx, obj) - { - } +function callbackfn(prevVal, curVal, idx, obj) +{} - var arr = new Array(10); - arr[9] = 1; - arr.length = 5; +var arr = new Array(10); +arr[9] = 1; +arr.length = 5; assert.throws(TypeError, function() { - arr.reduceRight(callbackfn); + arr.reduceRight(callbackfn); }); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-3.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-3.js index e47a755d52..06d5460c7f 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-3.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-3.js @@ -9,16 +9,15 @@ description: > assigned values are deleted and initialValue is not present ---*/ - function callbackfn(prevVal, curVal, idx, obj) - { - } +function callbackfn(prevVal, curVal, idx, obj) +{} - var arr = [1,2,3,4,5]; - delete arr[0]; - delete arr[1]; - delete arr[2]; - delete arr[3]; - delete arr[4]; +var arr = [1, 2, 3, 4, 5]; +delete arr[0]; +delete arr[1]; +delete arr[2]; +delete arr[3]; +delete arr[4]; assert.throws(TypeError, function() { - arr.reduceRight(callbackfn); + arr.reduceRight(callbackfn); }); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-4.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-4.js index 18296c2bf4..4dc2980963 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 b5dd24963e..224ff36c30 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 476886a76b..3dab92c10b 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 2fabc8fd6d..fade921f98 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 52c2ed7a6a..d0e875976a 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 8132b414c5..ef9f267914 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 05fa751f08..4fa783dfe0 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 eb48426ea4..0455ef32ac 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 0c00cf9c9e..d3fa9884c3 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 8cbf9edee9..a11242c5d0 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-5.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-5.js @@ -9,14 +9,15 @@ description: > one element ---*/ - var callCnt = 0; - function callbackfn(prevVal, curVal, idx, obj) - { - callCnt++; - return 2; - } +var callCnt = 0; - var arr = [1]; +function callbackfn(prevVal, curVal, idx, obj) +{ + callCnt++; + return 2; +} + +var arr = [1]; assert.sameValue(arr.reduceRight(callbackfn), 1, 'arr.reduceRight(callbackfn)'); assert.sameValue(callCnt, 0, 'callCnt'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-6.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-6.js index ca9493b319..24f6586901 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 6adeffef53..b76b74b651 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 9968f8929f..a2ef4d7fec 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-8.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-8.js @@ -9,21 +9,24 @@ description: > is 0 ---*/ - var accessed = false; - function callbackfn() { - accessed = true; - } +var accessed = false; - var obj = { length: 0 }; +function callbackfn() { + accessed = true; +} - Object.defineProperty(obj, "5", { - get: function () { - accessed = true; - return 10; - }, - configurable: true - }); +var obj = { + length: 0 +}; - Array.prototype.reduceRight.call(obj, function () { }, "initialValue"); +Object.defineProperty(obj, "5", { + get: function() { + accessed = true; + return 10; + }, + configurable: true +}); + +Array.prototype.reduceRight.call(obj, function() {}, "initialValue"); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-9.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-9.js index f5fc22ab3b..ac47f378af 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-9.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-9.js @@ -9,19 +9,20 @@ description: > number of iterations ---*/ - var called = 0; - function callbackfn(preVal, val, idx, obj) { - called++; - } +var called = 0; - var arr = [0, 1, 2, 3]; - Object.defineProperty(arr, "4", { - get: function () { - arr.length = 2; - }, - configurable: true - }); +function callbackfn(preVal, val, idx, obj) { + called++; +} - arr.reduceRight(callbackfn, "initialValue"); +var arr = [0, 1, 2, 3]; +Object.defineProperty(arr, "4", { + get: function() { + arr.length = 2; + }, + configurable: true +}); + +arr.reduceRight(callbackfn, "initialValue"); assert.sameValue(called, 3, 'called'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-1.js index 9277ef37d0..b7336d05e7 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-1.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-1.js @@ -9,11 +9,10 @@ description: > empty and initialValue is not present ---*/ - function callbackfn(prevVal, curVal, idx, obj) - { - } +function callbackfn(prevVal, curVal, idx, obj) +{} - var arr = new Array(10); +var arr = new Array(10); -assert.sameValue(arr.reduceRight(callbackfn,5), 5, 'arr.reduceRight(callbackfn,5)'); +assert.sameValue(arr.reduceRight(callbackfn, 5), 5, 'arr.reduceRight(callbackfn,5)'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-10.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-10.js index a92bf8dcc6..1dd6fb9fe7 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-10.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-10.js @@ -10,28 +10,31 @@ description: > Array-like Object ---*/ - var accessed = false; - var testResult = true; +var accessed = false; +var testResult = true; - function callbackfn(preVal, val, idx, obj) { - accessed = true; - if (idx === 3) { - testResult = false; - } - } +function callbackfn(preVal, val, idx, obj) { + accessed = true; + if (idx === 3) { + testResult = false; + } +} - var obj = { 2: 2, length: 20 }; +var obj = { + 2: 2, + length: 20 +}; - Object.defineProperty(obj, "5", { - get: function () { - delete Object.prototype[3]; - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "5", { + get: function() { + delete Object.prototype[3]; + return 0; + }, + configurable: true +}); - Object.prototype[3] = 1; - Array.prototype.reduceRight.call(obj, callbackfn); +Object.prototype[3] = 1; +Array.prototype.reduceRight.call(obj, callbackfn); assert(testResult, 'testResult !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-11.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-11.js index bd1bcb4f31..e364fbbb78 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 9d1eca6456..a6aed7624d 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-12.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-12.js @@ -10,25 +10,29 @@ description: > on an Array-like object ---*/ - var testResult = false; +var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1 && curVal === 1) { - testResult = true; - } - } +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1 && curVal === 1) { + testResult = true; + } +} - var obj = { 0: 0, 1: 111, length: 10 }; +var obj = { + 0: 0, + 1: 111, + length: 10 +}; - Object.defineProperty(obj, "4", { - get: function () { - delete obj[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "4", { + get: function() { + delete obj[1]; + return 0; + }, + configurable: true +}); - Object.prototype[1] = 1; - Array.prototype.reduceRight.call(obj, callbackfn); +Object.prototype[1] = 1; +Array.prototype.reduceRight.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-13.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-13.js index fe522f0715..470c9420ae 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 16924c99cb..8307a9768d 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 456fc605b2..97695a950d 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 f23e5ecf04..71def64c72 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 d74fd82f58..d21d758ac4 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-17.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-17.js @@ -9,29 +9,31 @@ description: > visited on an Array-like object ---*/ - var testResult = false; +var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 0 && curVal === 0) { - testResult = true; - } - } +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 0 && curVal === 0) { + testResult = true; + } +} - var obj = { length: 2 }; +var obj = { + length: 2 +}; - Object.defineProperty(obj, "1", { - get: function () { - Object.defineProperty(obj, "0", { - get: function () { - return 0; - }, - configurable: true - }); - return 1; - }, - configurable: true - }); +Object.defineProperty(obj, "1", { + get: function() { + Object.defineProperty(obj, "0", { + get: function() { + return 0; + }, + configurable: true + }); + return 1; + }, + configurable: true +}); - Array.prototype.reduceRight.call(obj, callbackfn, "initialValue"); +Array.prototype.reduceRight.call(obj, callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-18.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-18.js index d6ab2aac61..89ed61d4e2 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 714b8ecd34..e31e3f370b 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-19.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-19.js @@ -9,29 +9,31 @@ description: > visited on an Array-like object ---*/ - var testResult = false; +var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1 && curVal === 6.99) { - testResult = true; - } - } +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1 && curVal === 6.99) { + testResult = true; + } +} - var obj = { length: 6 }; +var obj = { + length: 6 +}; - Object.defineProperty(obj, "2", { - get: function () { - Object.defineProperty(Object.prototype, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "2", { + get: function() { + Object.defineProperty(Object.prototype, "1", { + get: function() { + return 6.99; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); - Array.prototype.reduceRight.call(obj, callbackfn, "initialValue"); +Array.prototype.reduceRight.call(obj, callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-2.js index 423ae546ab..11d7140d9c 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 b993b17f58..47586d76f1 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 0b5b53ccfb..13f3eeaa68 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-21.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-21.js @@ -9,34 +9,37 @@ description: > index property not to be visited on an Array-like object ---*/ - var accessed = false; - var testResult = true; - - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - if (idx === 1) { - testResult = false; - } - } - - var obj = { 0: 10, length: 10 }; - - Object.defineProperty(obj, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); - - Object.defineProperty(obj, "5", { - get: function () { - delete obj[1]; - return 0; - }, - configurable: true - }); - - Array.prototype.reduceRight.call(obj, callbackfn, "initialValue"); +var accessed = false; +var testResult = true; + +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + if (idx === 1) { + testResult = false; + } +} + +var obj = { + 0: 10, + length: 10 +}; + +Object.defineProperty(obj, "1", { + get: function() { + return 6.99; + }, + configurable: true +}); + +Object.defineProperty(obj, "5", { + get: function() { + delete obj[1]; + return 0; + }, + configurable: true +}); + +Array.prototype.reduceRight.call(obj, callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-22.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-22.js index d0bffcff62..8c57a1bd23 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 611310635a..52046431c8 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-23.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-23.js @@ -10,28 +10,31 @@ description: > Object ---*/ - var accessed = false; - var testResult = true; +var accessed = false; +var testResult = true; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - if (idx === 3) { - testResult = false; - } - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + if (idx === 3) { + testResult = false; + } +} - var obj = { 2: 2, length: 20 }; +var obj = { + 2: 2, + length: 20 +}; - Object.defineProperty(obj, "5", { - get: function () { - delete Object.prototype[3]; - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "5", { + get: function() { + delete Object.prototype[3]; + return 0; + }, + configurable: true +}); - Object.prototype[3] = 1; - Array.prototype.reduceRight.call(obj, callbackfn, "initialValue"); +Object.prototype[3] = 1; +Array.prototype.reduceRight.call(obj, callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-24.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-24.js index 8f2c455206..9248519f97 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 78d46ed7ba..bbfac73480 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-25.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-25.js @@ -10,25 +10,30 @@ description: > Array-like object ---*/ - var testResult = false; +var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1 && curVal === 1) { - testResult = true; - } - } +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1 && curVal === 1) { + testResult = true; + } +} - var obj = { 0: 0, 1: 111, 4: 10, length: 10 }; +var obj = { + 0: 0, + 1: 111, + 4: 10, + length: 10 +}; - Object.defineProperty(obj, "4", { - get: function () { - delete obj[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "4", { + get: function() { + delete obj[1]; + return 0; + }, + configurable: true +}); - Object.prototype[1] = 1; - Array.prototype.reduceRight.call(obj, callbackfn, "initialValue"); +Object.prototype[1] = 1; +Array.prototype.reduceRight.call(obj, callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-26.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-26.js index 7b0e441b33..6b7362927e 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 45aa57a168..01b7f09b9e 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 31ab610686..a039a64b7a 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 b30c7d0b6d..b5cd3bd281 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 3e26f8b983..c9bf72fcb5 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-3.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-3.js @@ -9,27 +9,30 @@ description: > visible here ---*/ - var accessed = false; - var testResult = true; +var accessed = false; +var testResult = true; - function callbackfn(preVal, curVal, idx, obj) { - accessed = true; - if (idx === 2) { - testResult = false; - } - } +function callbackfn(preVal, curVal, idx, obj) { + accessed = true; + if (idx === 2) { + testResult = false; + } +} - var obj = { 2: "2", 3: 10 }; +var obj = { + 2: "2", + 3: 10 +}; - Object.defineProperty(obj, "length", { - get: function () { - delete obj[2]; - return 5; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + delete obj[2]; + return 5; + }, + configurable: true +}); - Array.prototype.reduceRight.call(obj, callbackfn, "initialValue"); +Array.prototype.reduceRight.call(obj, callbackfn, "initialValue"); assert(accessed, 'accessed !== true'); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-4.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-4.js index e8038a7976..de1e7e50eb 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-4.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-4.js @@ -9,29 +9,31 @@ description: > step 8 can be visited on an Array-like object ---*/ - var testResult = false; +var testResult = false; - function callbackfn(preVal, curVal, idx, obj) { - if (idx === 0 && curVal === 0) { - testResult = true; - } - } +function callbackfn(preVal, curVal, idx, obj) { + if (idx === 0 && curVal === 0) { + testResult = true; + } +} - var obj = { length: 2 }; +var obj = { + length: 2 +}; - Object.defineProperty(obj, "1", { - get: function () { - Object.defineProperty(obj, "0", { - get: function () { - return 0; - }, - configurable: true - }); - return 1; - }, - configurable: true - }); +Object.defineProperty(obj, "1", { + get: function() { + Object.defineProperty(obj, "0", { + get: function() { + return 0; + }, + configurable: true + }); + return 1; + }, + configurable: true +}); - Array.prototype.reduceRight.call(obj, callbackfn); +Array.prototype.reduceRight.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-5.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-5.js index 4c0df97032..be881241bc 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 7149dad93c..4c4616663d 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-6.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-6.js @@ -9,29 +9,31 @@ description: > step 8 visited on an Array-like object ---*/ - var testResult = false; +var testResult = false; - function callbackfn(preVal, curVal, idx, obj) { - if (idx === 1 && curVal === 6.99) { - testResult = true; - } - } +function callbackfn(preVal, curVal, idx, obj) { + if (idx === 1 && curVal === 6.99) { + testResult = true; + } +} - var obj = { length: 6 }; +var obj = { + length: 6 +}; - Object.defineProperty(obj, "2", { - get: function () { - Object.defineProperty(Object.prototype, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(obj, "2", { + get: function() { + Object.defineProperty(Object.prototype, "1", { + get: function() { + return 6.99; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); - Array.prototype.reduceRight.call(obj, callbackfn); +Array.prototype.reduceRight.call(obj, callbackfn); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-7.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-7.js index b38b4cb50a..1eea9497cb 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 6e5c2a5674..f71e3926ee 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-8.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-8.js @@ -10,34 +10,37 @@ description: > object ---*/ - var accessed = false; - var testResult = true; - - function callbackfn(preVal, val, idx, obj) { - accessed = true; - if (idx === 1) { - testResult = false; - } - } - - var obj = { 0: 10, length: 10 }; - - Object.defineProperty(obj, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); - - Object.defineProperty(obj, "5", { - get: function () { - delete obj[1]; - return 0; - }, - configurable: true - }); - - Array.prototype.reduceRight.call(obj, callbackfn); +var accessed = false; +var testResult = true; + +function callbackfn(preVal, val, idx, obj) { + accessed = true; + if (idx === 1) { + testResult = false; + } +} + +var obj = { + 0: 10, + length: 10 +}; + +Object.defineProperty(obj, "1", { + get: function() { + return 6.99; + }, + configurable: true +}); + +Object.defineProperty(obj, "5", { + get: function() { + delete obj[1]; + return 0; + }, + configurable: true +}); + +Array.prototype.reduceRight.call(obj, callbackfn); assert(testResult, 'testResult !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-9.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-9.js index 8cc4656065..215cab2ef5 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 fdce8cb0da..825a40814b 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-1.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-1.js @@ -9,15 +9,16 @@ description: > never been assigned values ---*/ - var callCnt = 0; - function callbackfn(prevVal, curVal, idx, obj) - { - callCnt++; - return curVal; - } +var callCnt = 0; - var arr = new Array(10); - arr[0] = arr[1] = undefined; //explicitly assigning a value +function callbackfn(prevVal, curVal, idx, obj) +{ + callCnt++; + return curVal; +} + +var arr = new Array(10); +arr[0] = arr[1] = undefined; //explicitly assigning a value assert.sameValue(arr.reduceRight(callbackfn), undefined, 'arr.reduceRight(callbackfn)'); assert.sameValue(callCnt, 1, 'callCnt'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-1.js index da0debdf94..351f363ff0 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-1.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-1.js @@ -9,14 +9,20 @@ description: > property on an Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 0) { - testResult = (curVal === 0); - } - } +var testResult = false; - var obj = { 0: 0, 1: 1, 2: 2, length: 2 }; - Array.prototype.reduceRight.call(obj, callbackfn, "initialValue"); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 0) { + testResult = (curVal === 0); + } +} + +var obj = { + 0: 0, + 1: 1, + 2: 2, + length: 2 +}; +Array.prototype.reduceRight.call(obj, callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-10.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-10.js index d4cf4da379..2c3a2f1e71 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-10.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-10.js @@ -9,22 +9,23 @@ description: > accessor property on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } +var testResult = false; - var arr = [0, , 2]; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} - Object.defineProperty(arr, "1", { - get: function () { - return 1; - }, - configurable: true - }); +var arr = [0, , 2]; - arr.reduceRight(callbackfn, "initialValue"); +Object.defineProperty(arr, "1", { + get: function() { + return 1; + }, + configurable: true +}); + +arr.reduceRight(callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-11.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-11.js index 1cbecd5edd..8d72dd51d5 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-11.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-11.js @@ -10,28 +10,33 @@ description: > Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === "1"); - } - } - - var proto = { 0: 0, 1: 11, 2: 2 }; - - var Con = function () { }; - Con.prototype = proto; - - var child = new Con(); - child.length = 3; - - Object.defineProperty(child, "1", { - get: function () { - return "1"; - }, - configurable: true - }); - - Array.prototype.reduceRight.call(child, callbackfn, "initialValue"); +var testResult = false; + +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === "1"); + } +} + +var proto = { + 0: 0, + 1: 11, + 2: 2 +}; + +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); +child.length = 3; + +Object.defineProperty(child, "1", { + get: function() { + return "1"; + }, + configurable: true +}); + +Array.prototype.reduceRight.call(child, callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-12.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-12.js index e7a9e708f5..61fb0309ab 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-12.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-12.js @@ -10,23 +10,24 @@ description: > Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === "1"); - } - } +var testResult = false; - Array.prototype[1] = 11; - var arr = [0, ,2]; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === "1"); + } +} - Object.defineProperty(arr, "1", { - get: function () { - return "1"; - }, - configurable: true - }); +Array.prototype[1] = 11; +var arr = [0, , 2]; - arr.reduceRight(callbackfn, "initialValue"); +Object.defineProperty(arr, "1", { + get: function() { + return "1"; + }, + configurable: true +}); + +arr.reduceRight(callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-13.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-13.js index d9cbbc10bd..f66c4bf60c 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-13.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-13.js @@ -10,35 +10,39 @@ description: > an Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === "1"); - } - } - - var proto = { 0: 0, 2: 2}; - - Object.defineProperty(proto, "1", { - get: function () { - return 11; - }, - configurable: true - }); - - var Con = function () { }; - Con.prototype = proto; - - var child = new Con(); - child.length = 3; - - Object.defineProperty(child, "1", { - get: function () { - return "1"; - }, - configurable: true - }); - - Array.prototype.reduceRight.call(child, callbackfn, "initialValue"); +var testResult = false; + +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === "1"); + } +} + +var proto = { + 0: 0, + 2: 2 +}; + +Object.defineProperty(proto, "1", { + get: function() { + return 11; + }, + configurable: true +}); + +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); +child.length = 3; + +Object.defineProperty(child, "1", { + get: function() { + return "1"; + }, + configurable: true +}); + +Array.prototype.reduceRight.call(child, callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-14.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-14.js index e0df7ceb04..25f63b507d 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-14.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-14.js @@ -10,28 +10,29 @@ description: > an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === "1"); - } - } +var testResult = false; - Object.defineProperty(Array.prototype, "1", { - get: function () { - return 11; - }, - configurable: true - }); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === "1"); + } +} - var arr = [0, ,2]; +Object.defineProperty(Array.prototype, "1", { + get: function() { + return 11; + }, + configurable: true +}); - Object.defineProperty(arr, "1", { - get: function () { - return "1"; - }, - configurable: true - }); - arr.reduceRight(callbackfn, "initialValue"); +var arr = [0, , 2]; + +Object.defineProperty(arr, "1", { + get: function() { + return "1"; + }, + configurable: true +}); +arr.reduceRight(callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-15.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-15.js index f8684e9e87..270f2ed4b8 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-15.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-15.js @@ -9,28 +9,32 @@ description: > accessor property on an Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } +var testResult = false; - var proto = { 0: 0, 2: 2 }; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} - Object.defineProperty(proto, "1", { - get: function () { - return 1; - }, - configurable: true - }); +var proto = { + 0: 0, + 2: 2 +}; - var Con = function () { }; - Con.prototype = proto; +Object.defineProperty(proto, "1", { + get: function() { + return 1; + }, + configurable: true +}); - var child = new Con(); - child.length = 3; +var Con = function() {}; +Con.prototype = proto; - Array.prototype.reduceRight.call(child, callbackfn, "initialValue"); +var child = new Con(); +child.length = 3; + +Array.prototype.reduceRight.call(child, callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-16.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-16.js index 0f70fe6179..78cdc1a281 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-16.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-16.js @@ -9,22 +9,23 @@ description: > accessor property on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } +var testResult = false; - Object.defineProperty(Array.prototype, "1", { - get: function () { - return 1; - }, - configurable: true - }); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} - var arr = [0, , 2]; +Object.defineProperty(Array.prototype, "1", { + get: function() { + return 1; + }, + configurable: true +}); - arr.reduceRight(callbackfn, "initialValue"); +var arr = [0, , 2]; + +arr.reduceRight(callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-17.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-17.js index 04d28b5566..7f9c3c0730 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-17.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-17.js @@ -9,20 +9,25 @@ description: > accessor property without a get function on an Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (typeof curVal === "undefined"); - } - } +var testResult = false; - var obj = { 0: 0, 2: 2, length: 3 }; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (typeof curVal === "undefined"); + } +} - Object.defineProperty(obj, "1", { - set: function () { }, - configurable: true - }); +var obj = { + 0: 0, + 2: 2, + length: 3 +}; - Array.prototype.reduceRight.call(obj, callbackfn, "initialValue"); +Object.defineProperty(obj, "1", { + set: function() {}, + configurable: true +}); + +Array.prototype.reduceRight.call(obj, callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-18.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-18.js index ffd33eaac3..21a4bf39dc 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-18.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-18.js @@ -9,20 +9,21 @@ description: > accessor property without a get function on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (typeof curVal === "undefined"); - } - } +var testResult = false; - var arr = [0, , 2]; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (typeof curVal === "undefined"); + } +} - Object.defineProperty(arr, "1", { - set: function () { }, - configurable: true - }); +var arr = [0, , 2]; - arr.reduceRight(callbackfn, "initialValue"); +Object.defineProperty(arr, "1", { + set: function() {}, + configurable: true +}); + +arr.reduceRight(callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-19.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-19.js index ca309ae008..82ab638bd0 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-19.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-19.js @@ -10,21 +10,26 @@ description: > inherited accessor property on an Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (typeof curVal === "undefined"); - } - } +var testResult = false; - Object.prototype[1] = 1; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (typeof curVal === "undefined"); + } +} - var obj = { 0: 0, 2: 2, length: 3 }; - Object.defineProperty(obj, "1", { - set: function () { }, - configurable: true - }); +Object.prototype[1] = 1; - Array.prototype.reduceRight.call(obj, callbackfn, "initialValue"); +var obj = { + 0: 0, + 2: 2, + length: 3 +}; +Object.defineProperty(obj, "1", { + set: function() {}, + configurable: true +}); + +Array.prototype.reduceRight.call(obj, callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-2.js index f608df6090..c7168a1949 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-2.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-2.js @@ -9,14 +9,15 @@ description: > property on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } +var testResult = false; - var arr = [0, 1, 2]; - arr.reduceRight(callbackfn, "initialValue"); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} + +var arr = [0, 1, 2]; +arr.reduceRight(callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-20.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-20.js index 266cafd1ae..0f39cd442b 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-20.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-20.js @@ -10,20 +10,21 @@ description: > inherited accessor property on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (typeof curVal === "undefined"); - } - } +var testResult = false; - Array.prototype[1] = 1; - var arr = [0, ,2]; - Object.defineProperty(arr, "1", { - set: function () { }, - configurable: true - }); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (typeof curVal === "undefined"); + } +} - arr.reduceRight(callbackfn, "initialValue"); +Array.prototype[1] = 1; +var arr = [0, , 2]; +Object.defineProperty(arr, "1", { + set: function() {}, + configurable: true +}); + +arr.reduceRight(callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-21.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-21.js index 1e7b5fd1ae..f5dda1c866 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-21.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-21.js @@ -9,26 +9,30 @@ description: > accessor property without a get function on an Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (typeof curVal === "undefined"); - } - } +var testResult = false; - var proto = { 0: 0, 2: 2 }; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (typeof curVal === "undefined"); + } +} - Object.defineProperty(proto, "1", { - set: function () { }, - configurable: true - }); +var proto = { + 0: 0, + 2: 2 +}; - var Con = function () { }; - Con.prototype = proto; +Object.defineProperty(proto, "1", { + set: function() {}, + configurable: true +}); - var child = new Con(); - child.length = 3; +var Con = function() {}; +Con.prototype = proto; - Array.prototype.reduceRight.call(child, callbackfn, "initialValue"); +var child = new Con(); +child.length = 3; + +Array.prototype.reduceRight.call(child, callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-22.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-22.js index dedd4b643b..365b543a52 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-22.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-22.js @@ -9,20 +9,21 @@ description: > accessor property without a get function on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (typeof curVal === "undefined"); - } - } +var testResult = false; - Object.defineProperty(Array.prototype, "1", { - set: function () { }, - configurable: true - }); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (typeof curVal === "undefined"); + } +} - var arr = [0, , 2]; +Object.defineProperty(Array.prototype, "1", { + set: function() {}, + configurable: true +}); - arr.reduceRight(callbackfn, "initialValue"); +var arr = [0, , 2]; + +arr.reduceRight(callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-25.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-25.js index 81d2d0e046..9c177f936a 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-25.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-25.js @@ -10,17 +10,18 @@ description: > is less than number of parameters) ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } +var testResult = false; - var func = function (a, b, c) { - Array.prototype.reduceRight.call(arguments, callbackfn, "initialValue"); - }; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} - func(0, 1); +var func = function(a, b, c) { + Array.prototype.reduceRight.call(arguments, callbackfn, "initialValue"); +}; + +func(0, 1); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-26.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-26.js index e2518afe35..79984ddfe3 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-26.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-26.js @@ -10,17 +10,18 @@ description: > equals number of parameters) ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 2) { - testResult = (curVal === 2); - } - } +var testResult = false; - var func = function (a, b, c) { - Array.prototype.reduceRight.call(arguments, callbackfn, "initialValue"); - }; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 2) { + testResult = (curVal === 2); + } +} - func(0, 1, 2); +var func = function(a, b, c) { + Array.prototype.reduceRight.call(arguments, callbackfn, "initialValue"); +}; + +func(0, 1, 2); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-27.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-27.js index 677bcd3da2..080ad10a21 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-27.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-27.js @@ -10,17 +10,18 @@ description: > is greater than number of parameters) ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 3) { - testResult = (curVal === 3); - } - } +var testResult = false; - var func = function (a, b, c) { - Array.prototype.reduceRight.call(arguments, callbackfn, "initialValue"); - }; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 3) { + testResult = (curVal === 3); + } +} - func(0, 1, 2, 3); +var func = function(a, b, c) { + Array.prototype.reduceRight.call(arguments, callbackfn, "initialValue"); +}; + +func(0, 1, 2, 3); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-28.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-28.js index 83976643ca..388685e913 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-28.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-28.js @@ -9,14 +9,15 @@ description: > implements its own property get method ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === "1"); - } - } +var testResult = false; - var str = new String("012"); - Array.prototype.reduceRight.call(str, callbackfn, "initialValue"); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === "1"); + } +} + +var str = new String("012"); +Array.prototype.reduceRight.call(str, callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-29.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-29.js index b69e0332b2..2cc8148fda 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-29.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-29.js @@ -9,22 +9,23 @@ description: > implements its own property get method ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } +var testResult = false; +var initialValue = 0; - var obj = function (a, b, c) { - return a + b + c; - }; - obj[0] = 0; - obj[1] = 1; - obj[2] = 2; - obj[3] = 3; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} - Array.prototype.reduceRight.call(obj, callbackfn, initialValue); +var obj = function(a, b, c) { + return a + b + c; +}; +obj[0] = 0; +obj[1] = 1; +obj[2] = 2; +obj[3] = 3; + +Array.prototype.reduceRight.call(obj, callbackfn, initialValue); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-3.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-3.js index 50fa727045..98c28ad1e0 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-3.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-3.js @@ -10,22 +10,28 @@ description: > Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === "1"); - } - } +var testResult = false; - var proto = { 0: 10, 1: 11, 2: 12, length: 2 }; - var Con = function () { }; - Con.prototype = proto; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === "1"); + } +} - var child = new Con(); - child[1] = "1"; - child[2] = "2"; - child.length = 3; +var proto = { + 0: 10, + 1: 11, + 2: 12, + length: 2 +}; +var Con = function() {}; +Con.prototype = proto; - Array.prototype.reduceRight.call(child, callbackfn, "initialValue"); +var child = new Con(); +child[1] = "1"; +child[2] = "2"; +child.length = 3; + +Array.prototype.reduceRight.call(child, callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-30.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-30.js index c3c66cd5fa..234bf191a1 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-30.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-30.js @@ -9,35 +9,36 @@ description: > previous iterations is observed on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } - - var arr = [, ,]; - var preIterVisible = false; - - Object.defineProperty(arr, "2", { - get: function () { - preIterVisible = true; - return 0; - }, - configurable: true - }); - - Object.defineProperty(arr, "1", { - get: function () { - if (preIterVisible) { - return 1; - } else { - return "11"; - } - }, - configurable: true - }); - - arr.reduceRight(callbackfn, "initialValue"); +var testResult = false; + +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} + +var arr = [, , ]; +var preIterVisible = false; + +Object.defineProperty(arr, "2", { + get: function() { + preIterVisible = true; + return 0; + }, + configurable: true +}); + +Object.defineProperty(arr, "1", { + get: function() { + if (preIterVisible) { + return 1; + } else { + return "11"; + } + }, + configurable: true +}); + +arr.reduceRight(callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-31.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-31.js index a25b153974..c560a641e9 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-31.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-31.js @@ -9,35 +9,38 @@ description: > previous iterations is observed on an Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } - - var obj = { length: 3 }; - var preIterVisible = false; - - Object.defineProperty(obj, "2", { - get: function () { - preIterVisible = true; - return 0; - }, - configurable: true - }); - - Object.defineProperty(obj, "1", { - get: function () { - if (preIterVisible) { - return 1; - } else { - return "11"; - } - }, - configurable: true - }); - - Array.prototype.reduceRight.call(obj, callbackfn, "initialValue"); +var testResult = false; + +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} + +var obj = { + length: 3 +}; +var preIterVisible = false; + +Object.defineProperty(obj, "2", { + get: function() { + preIterVisible = true; + return 0; + }, + configurable: true +}); + +Object.defineProperty(obj, "1", { + get: function() { + if (preIterVisible) { + return 1; + } else { + return "11"; + } + }, + configurable: true +}); + +Array.prototype.reduceRight.call(obj, callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-32.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-32.js index a0225a8820..57da7683af 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-32.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-32.js @@ -9,22 +9,27 @@ description: > getter terminate iteration on an Array-like object ---*/ - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx <= 1) { - accessed = true; - } - } +var accessed = false; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx <= 1) { + accessed = true; + } +} - var obj = { 0: 0, 2: 2, length: 3 }; - Object.defineProperty(obj, "1", { - get: function () { - throw new RangeError("unhandle exception happened in getter"); - }, - configurable: true - }); + +var obj = { + 0: 0, + 2: 2, + length: 3 +}; +Object.defineProperty(obj, "1", { + get: function() { + throw new RangeError("unhandle exception happened in getter"); + }, + configurable: true +}); assert.throws(RangeError, function() { - Array.prototype.reduceRight.call(obj, callbackfn, "initialValue"); + Array.prototype.reduceRight.call(obj, callbackfn, "initialValue"); }); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-33.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-33.js index 643f4ee4a2..257325e497 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-33.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-33.js @@ -9,24 +9,25 @@ description: > getter terminate iteration on an Array ---*/ - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx <= 1) { - accessed = true; - } - } +var accessed = false; - var arr = [0, , 2]; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx <= 1) { + accessed = true; + } +} - Object.defineProperty(arr, "1", { - get: function () { - throw new Test262Error("unhandle exception happened in getter"); - }, - configurable: true - }); +var arr = [0, , 2]; + +Object.defineProperty(arr, "1", { + get: function() { + throw new Test262Error("unhandle exception happened in getter"); + }, + configurable: true +}); assert.throws(Test262Error, function() { - arr.reduceRight(callbackfn, "initialValue"); + arr.reduceRight(callbackfn, "initialValue"); }); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-4.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-4.js index a5226d8d80..a5145b80d7 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-4.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-4.js @@ -9,14 +9,15 @@ description: > property that overrides an inherited data property on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } +var testResult = false; - Array.prototype[1] = "11"; - [0, 1, 2].reduceRight(callbackfn, "initialValue"); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} + +Array.prototype[1] = "11"; +[0, 1, 2].reduceRight(callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-5.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-5.js index fe417547f8..6feb43a1be 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-5.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-5.js @@ -10,33 +10,34 @@ description: > Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 0) { - testResult = (curVal === "0"); - } - } - - var proto = {}; - - Object.defineProperty(proto, "0", { - get: function () { - return 10; - }, - configurable: true - }); - - var Con = function () { }; - Con.prototype = proto; - - var child = new Con(); - child.length = 2; - Object.defineProperty(child, "0", { - value: "0", - configurable: true - }); - child[1] = "1"; - - Array.prototype.reduceRight.call(child, callbackfn, "initialValue"); +var testResult = false; + +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 0) { + testResult = (curVal === "0"); + } +} + +var proto = {}; + +Object.defineProperty(proto, "0", { + get: function() { + return 10; + }, + configurable: true +}); + +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); +child.length = 2; +Object.defineProperty(child, "0", { + value: "0", + configurable: true +}); +child[1] = "1"; + +Array.prototype.reduceRight.call(child, callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-6.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-6.js index d3715f273b..5b47467c31 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-6.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-6.js @@ -9,19 +9,20 @@ description: > property that overrides an inherited accessor property on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } +var testResult = false; - Object.defineProperty(Array.prototype, "1", { - get: function () { - return "11"; - }, - configurable: true - }); - [0, 1, 2].reduceRight(callbackfn, "initialValue"); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} + +Object.defineProperty(Array.prototype, "1", { + get: function() { + return "11"; + }, + configurable: true +}); +[0, 1, 2].reduceRight(callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-7.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-7.js index 31f37fcee5..e5a8ebfc36 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-7.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-7.js @@ -9,20 +9,25 @@ description: > data property on an Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } +var testResult = false; - var proto = { 0: 0, 1: 1, 2: 2 }; - var Con = function () { }; - Con.prototype = proto; +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} - var child = new Con(); - child.length = 3; +var proto = { + 0: 0, + 1: 1, + 2: 2 +}; +var Con = function() {}; +Con.prototype = proto; - Array.prototype.reduceRight.call(child, callbackfn, "initialValue"); +var child = new Con(); +child.length = 3; + +Array.prototype.reduceRight.call(child, callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-8.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-8.js index 754987649d..ad73acacbe 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-8.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-8.js @@ -9,16 +9,17 @@ description: > data property on an Array ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } +var testResult = false; - Array.prototype[0] = 0; - Array.prototype[1] = 1; - Array.prototype[2] = 2; - [, , , ].reduceRight(callbackfn, "initialValue"); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} + +Array.prototype[0] = 0; +Array.prototype[1] = 1; +Array.prototype[2] = 2; +[, , , ].reduceRight(callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-9.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-9.js index e26ebcc168..d512dd5daf 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-9.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-9.js @@ -9,21 +9,26 @@ description: > accessor property on an Array-like object ---*/ - var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === 1); - } - } +var testResult = false; - var obj = { 0: 0, 2: 2, length: 3 }; - Object.defineProperty(obj, "1", { - get: function () { - return 1; - }, - configurable: true - }); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === 1); + } +} - Array.prototype.reduceRight.call(obj, callbackfn, "initialValue"); +var obj = { + 0: 0, + 2: 2, + length: 3 +}; +Object.defineProperty(obj, "1", { + get: function() { + return 1; + }, + configurable: true +}); + +Array.prototype.reduceRight.call(obj, callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-1.js index ef650ba62a..50b5043be2 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 ef2c334856..1953c9a379 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 50fe7d7aac..d6e3cfd1d7 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 c29286b57d..5d7a7b572a 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 39325da4ed..6fc2965d5a 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 200649494e..07437dba51 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 101a63d5f2..401a680ec0 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-16.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-16.js @@ -9,15 +9,20 @@ description: > called on an Array-like object ---*/ - var testResult = false; +var testResult = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (prevVal === 8 || curVal === 8) { - testResult = true; - } - } +function callbackfn(prevVal, curVal, idx, obj) { + if (prevVal === 8 || curVal === 8) { + testResult = true; + } +} - var obj = { 0: 11, 10: 12, non_index_property: 8, length: 20 }; - Array.prototype.reduceRight.call(obj, callbackfn, "initialValue"); +var obj = { + 0: 11, + 10: 12, + non_index_property: 8, + length: 20 +}; +Array.prototype.reduceRight.call(obj, callbackfn, "initialValue"); assert.sameValue(testResult, false, 'testResult'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-17.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-17.js index 0b8e5be999..b2823532e8 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 7e7098d40e..28d86867b7 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 194a329176..991b82cf09 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 7324a06a84..238b1e2a3e 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 f4b5470c69..09cf7e0999 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-20.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-20.js @@ -7,13 +7,17 @@ es5id: 15.4.4.22-9-c-ii-20 description: Array.prototype.reduceRight - undefined can be used as accumulator ---*/ - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return typeof prevVal === "undefined"; - } +var accessed = false; - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return typeof prevVal === "undefined"; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, undefined), true, 'Array.prototype.reduceRight.call(obj, callbackfn, undefined)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-21.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-21.js index 7f10e3b787..83f18c38c5 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-21.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-21.js @@ -7,13 +7,17 @@ es5id: 15.4.4.22-9-c-ii-21 description: Array.prototype.reduceRight - null can be used as accumulator ---*/ - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === null; - } +var accessed = false; - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === null; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, null), true, 'Array.prototype.reduceRight.call(obj, callbackfn, null)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-22.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-22.js index 10b20d9427..e130868f08 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-22.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-22.js @@ -9,13 +9,17 @@ description: > accumulator ---*/ - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === false; - } +var accessed = false; - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === false; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, false), true, 'Array.prototype.reduceRight.call(obj, callbackfn, false)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-23.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-23.js index 57cb524bde..dc7dba028e 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-23.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-23.js @@ -9,13 +9,17 @@ description: > accumulator ---*/ - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === 12; - } +var accessed = false; - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === 12; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, 12), true, 'Array.prototype.reduceRight.call(obj, callbackfn, 12)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-24.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-24.js index 2326939fd0..768eb6a3dd 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-24.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-24.js @@ -9,13 +9,17 @@ description: > accumulator ---*/ - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === "hello_"; - } +var accessed = false; - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === "hello_"; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, "hello_"), true, 'Array.prototype.reduceRight.call(obj, callbackfn, "hello_")'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-25.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-25.js index 4de1b221a2..7d37c5f2ac 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-25.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-25.js @@ -9,14 +9,18 @@ description: > accumulator ---*/ - var accessed = false; - var objFunction = function () { }; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === objFunction; - } +var accessed = false; +var objFunction = function() {}; - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === objFunction; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, objFunction), true, 'Array.prototype.reduceRight.call(obj, callbackfn, objFunction)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-26.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-26.js index 485f17e109..e95896266c 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-26.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-26.js @@ -9,14 +9,18 @@ description: > accumulator ---*/ - var accessed = false; - var objArray = []; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === objArray; - } +var accessed = false; +var objArray = []; - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === objArray; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, objArray), true, 'Array.prototype.reduceRight.call(obj, callbackfn, objArray)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-27.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-27.js index 3414ccbc93..b5f187df0e 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-27.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-27.js @@ -9,14 +9,18 @@ description: > accumulator ---*/ - var accessed = false; - var objString = new String(); - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === objString; - } +var accessed = false; +var objString = new String(); - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === objString; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, objString), true, 'Array.prototype.reduceRight.call(obj, callbackfn, objString)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-28.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-28.js index 541ff7834c..e8f4b8bc06 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-28.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-28.js @@ -9,14 +9,18 @@ description: > accumulator ---*/ - var accessed = false; - var objBoolean = new Boolean(); - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === objBoolean; - } +var accessed = false; +var objBoolean = new Boolean(); - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === objBoolean; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, objBoolean), true, 'Array.prototype.reduceRight.call(obj, callbackfn, objBoolean)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-29.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-29.js index 852073958f..7194c1789b 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-29.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-29.js @@ -9,14 +9,18 @@ description: > accumulator ---*/ - var accessed = false; - var objNumber = new Number(); - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === objNumber; - } +var accessed = false; +var objNumber = new Number(); - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === objNumber; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, objNumber), true, 'Array.prototype.reduceRight.call(obj, callbackfn, objNumber)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-3.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-3.js index 7a53ea5627..86a77aa365 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-3.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-3.js @@ -7,16 +7,17 @@ es5id: 15.4.4.22-9-c-ii-3 description: Array.prototype.reduceRight - callbackfn takes 4 arguments ---*/ - var bCalled = false; - function callbackfn(prevVal, curVal, idx, obj) - { - bCalled = true; - if(prevVal === true && arguments.length === 4) - return true; - else - return false; - } - var arr = [0,1,2,3,4,5,6,7,8,9]; +var bCalled = false; -assert.sameValue(arr.reduceRight(callbackfn,true), true, 'arr.reduceRight(callbackfn,true)'); +function callbackfn(prevVal, curVal, idx, obj) +{ + bCalled = true; + if (prevVal === true && arguments.length === 4) + return true; + else + return false; +} +var arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; + +assert.sameValue(arr.reduceRight(callbackfn, true), true, 'arr.reduceRight(callbackfn,true)'); assert.sameValue(bCalled, true, 'bCalled'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-30.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-30.js index c151604233..0df7790188 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-30.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-30.js @@ -9,13 +9,17 @@ description: > accumulator ---*/ - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === Math; - } +var accessed = false; - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === Math; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, Math), true, 'Array.prototype.reduceRight.call(obj, callbackfn, Math)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-31.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-31.js index c58777b282..092e60ecf7 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-31.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-31.js @@ -9,14 +9,18 @@ description: > accumulator ---*/ - var accessed = false; - var objDate = new Date(); - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === objDate; - } +var accessed = false; +var objDate = new Date(); - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === objDate; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, objDate), true, 'Array.prototype.reduceRight.call(obj, callbackfn, objDate)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-32.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-32.js index 08e8e42323..921bc654da 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-32.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-32.js @@ -9,14 +9,18 @@ description: > accumulator ---*/ - var accessed = false; - var objRegExp = new RegExp(); - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === objRegExp; - } +var accessed = false; +var objRegExp = new RegExp(); - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === objRegExp; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, objRegExp), true, 'Array.prototype.reduceRight.call(obj, callbackfn, objRegExp)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-33.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-33.js index 97419e156b..37a2bd4a68 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-33.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-33.js @@ -7,13 +7,17 @@ es5id: 15.4.4.22-9-c-ii-33 description: Array.prototype.reduceRight - the JSON can be used as accumulator ---*/ - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === JSON; - } +var accessed = false; - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === JSON; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, JSON), true, 'Array.prototype.reduceRight.call(obj, callbackfn, JSON)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-34.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-34.js index f384ce9109..72fcc0cc56 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-34.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-34.js @@ -9,14 +9,18 @@ description: > accumulator ---*/ - var accessed = false; - var objError = new RangeError(); - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === objError; - } +var accessed = false; +var objError = new RangeError(); - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === objError; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, objError), true, 'Array.prototype.reduceRight.call(obj, callbackfn, objError)'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-35.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-35.js index 11d7428b73..db05c37e0d 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-35.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-35.js @@ -9,19 +9,22 @@ description: > accumulator ---*/ - var accessed = false; - var arg; +var accessed = false; +var arg; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === arg; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === arg; +} - var obj = { 0: 11, length: 1 }; +var obj = { + 0: 11, + length: 1 +}; - (function fun() { - arg = arguments; - }(10, 11, 12, 13)); +(function fun() { + arg = arguments; +}(10, 11, 12, 13)); assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, arg), true, 'Array.prototype.reduceRight.call(obj, callbackfn, arg)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-37.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-37.js index e8b37ab734..23314a32bd 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-37.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-37.js @@ -10,13 +10,17 @@ description: > ---*/ var global = this; - var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === global; - } +var accessed = false; - var obj = { 0: 11, length: 1 }; +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === global; +} + +var obj = { + 0: 11, + length: 1 +}; assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, this), true, 'Array.prototype.reduceRight.call(obj, callbackfn, this)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-4-s.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-4-s.js index 5993872575..35efbafc9e 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-4-s.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-4-s.js @@ -10,13 +10,14 @@ description: > flags: [noStrict] ---*/ - var innerThisCorrect = false; - function callbackfn(prevVal, curVal, idx, obj) - { - "use strict"; - innerThisCorrect = this===undefined; - return true; - } - [0].reduceRight(callbackfn,true); +var innerThisCorrect = false; + +function callbackfn(prevVal, curVal, idx, obj) +{ + "use strict"; + innerThisCorrect = this === undefined; + return true; +} +[0].reduceRight(callbackfn, true); assert(innerThisCorrect, 'innerThisCorrect !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-4.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-4.js index 2fc5083b78..7dd1ce5ed0 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 8d3811a03e..ccb63b8118 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 2c4f536010..f6f26025d8 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-7.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-7.js @@ -9,21 +9,26 @@ description: > callbackfn terminate iteration ---*/ - var accessed = false; +var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx < 10) { - accessed = true; - } - if (idx === 10) { - throw new Test262Error("Exception occurred in callbackfn"); - } - } +function callbackfn(prevVal, curVal, idx, obj) { + if (idx < 10) { + accessed = true; + } + if (idx === 10) { + throw new Test262Error("Exception occurred in callbackfn"); + } +} - var obj = { 0: 11, 4: 10, 10: 8, length: 20 }; +var obj = { + 0: 11, + 4: 10, + 10: 8, + length: 20 +}; assert.throws(Test262Error, function() { - Array.prototype.reduceRight.call(obj, callbackfn, 1); + Array.prototype.reduceRight.call(obj, callbackfn, 1); }); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-8.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-8.js index 3625e8a4df..439445c5b6 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-8.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-8.js @@ -9,15 +9,20 @@ description: > previous iterations is observed ---*/ - var accessed = false; - var obj = { 0: 11, 1: 12, length: 2 }; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - if (idx === 1) { - obj[idx - 1] = 8; - } - return curVal > 10; - } +var accessed = false; +var obj = { + 0: 11, + 1: 12, + length: 2 +}; + +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + if (idx === 1) { + obj[idx - 1] = 8; + } + return curVal > 10; +} assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, 1), false, 'Array.prototype.reduceRight.call(obj, callbackfn, 1)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-9.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-9.js index 170d9d3284..c1dfba3289 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 7ca4f7f6e3..fd092bbb99 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 62f93f6e53..a488885d41 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 ec750f6264..3840475991 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 2d521f1129..77693f71ce 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 1c41625f82..2fd9a2d2a8 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 82fa71a07d..44fefbf426 100644 --- a/test/built-ins/Array/prototype/reverse/S15.4.4.8_A4_T1.js +++ b/test/built-ins/Array/prototype/reverse/S15.4.4.8_A4_T1.js @@ -40,7 +40,9 @@ if (x[1] !== 1) { Object.prototype[1] = 1; Object.prototype.length = 2; Object.prototype.reverse = Array.prototype.reverse; -x = {0:0}; +x = { + 0: 0 +}; x.reverse(); //CHECK#5 diff --git a/test/built-ins/Array/prototype/reverse/S15.4.4.8_A4_T2.js b/test/built-ins/Array/prototype/reverse/S15.4.4.8_A4_T2.js index f658651f46..942d287ad7 100644 --- a/test/built-ins/Array/prototype/reverse/S15.4.4.8_A4_T2.js +++ b/test/built-ins/Array/prototype/reverse/S15.4.4.8_A4_T2.js @@ -11,7 +11,7 @@ description: > ---*/ Array.prototype[1] = -1; -var x = [0,1]; +var x = [0, 1]; x.length = 2; x.reverse(); @@ -40,7 +40,10 @@ if (x[1] !== -1) { Object.prototype[1] = -1; Object.prototype.length = 2; Object.prototype.reverse = Array.prototype.reverse; -x = {0:0,1:1}; +x = { + 0: 0, + 1: 1 +}; x.reverse(); //CHECK#5 diff --git a/test/built-ins/Array/prototype/reverse/length-exceeding-integer-limit-with-object.js b/test/built-ins/Array/prototype/reverse/length-exceeding-integer-limit-with-object.js index 2296861a50..94e53bb20b 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 e4b45f4595..308eb5e192 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 f84a5392ee..b087c14b74 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 3fac087a29..b736fa0f34 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 ea342a4697..caf6bcb180 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 2dc7695d29..af9768c912 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 f16915d791..51e927577b 100644 --- a/test/built-ins/Array/prototype/shift/S15.4.4.9_A2_T5.js +++ b/test/built-ins/Array/prototype/shift/S15.4.4.9_A2_T5.js @@ -17,7 +17,11 @@ obj.shift = Array.prototype.shift; //CHECK#1 obj[0] = -1; -obj.length = {valueOf: function() {return 1}}; +obj.length = { + valueOf: function() { + return 1 + } +}; var shift = obj.shift(); if (shift !== -1) { $ERROR('#1: obj[0] = -1; obj.length = {valueOf: function() {return 1}} obj.shift() === -1. Actual: ' + (shift)); @@ -25,7 +29,14 @@ if (shift !== -1) { //CHECK#2 obj[0] = -1; -obj.length = {valueOf: function() {return 1}, toString: function() {return 0}}; +obj.length = { + valueOf: function() { + return 1 + }, + toString: function() { + return 0 + } +}; var shift = obj.shift(); if (shift !== -1) { $ERROR('#0: obj[0] = -1; obj.length = {valueOf: function() {return 1}, toString: function() {return 0}} obj.shift() === -1. Actual: ' + (shift)); @@ -33,7 +44,14 @@ if (shift !== -1) { //CHECK#3 obj[0] = -1; -obj.length = {valueOf: function() {return 1}, toString: function() {return {}}}; +obj.length = { + valueOf: function() { + return 1 + }, + toString: function() { + return {} + } +}; var shift = obj.shift(); if (shift !== -1) { $ERROR('#3: obj[0] = -1; obj.length = {valueOf: function() {return 1}, toString: function() {return {}}} obj.shift() === -1. Actual: ' + (shift)); @@ -42,9 +60,16 @@ if (shift !== -1) { //CHECK#4 try { obj[0] = -1; - obj.length = {valueOf: function() {return 1}, toString: function() {throw "error"}}; + obj.length = { + valueOf: function() { + return 1 + }, + toString: function() { + throw "error" + } + }; var shift = obj.shift(); -if (shift !== -1) { + if (shift !== -1) { $ERROR('#4.1: obj[0] = -1; obj.length = {valueOf: function() {return 1}, toString: function() {throw "error"}}; obj.shift() === ",". Actual: ' + (shift)); } } @@ -58,7 +83,11 @@ catch (e) { //CHECK#5 obj[0] = -1; -obj.length = {toString: function() {return 0}}; +obj.length = { + toString: function() { + return 0 + } +}; var shift = obj.shift(); if (shift !== undefined) { $ERROR('#5: obj[0] = -1; obj.length = {toString: function() {return 0}} obj.shift() === undefined. Actual: ' + (shift)); @@ -66,7 +95,14 @@ if (shift !== undefined) { //CHECK#6 obj[0] = -1; -obj.length = {valueOf: function() {return {}}, toString: function() {return 0}} +obj.length = { + valueOf: function() { + return {} + }, + toString: function() { + return 0 + } +} var shift = obj.shift(); if (shift !== undefined) { $ERROR('#6: obj[0] = -1; obj.length = {valueOf: function() {return {}}, toString: function() {return 0}} obj.shift() === undefined. Actual: ' + (shift)); @@ -75,7 +111,14 @@ if (shift !== undefined) { //CHECK#7 try { obj[0] = -1; - obj.length = {valueOf: function() {throw "error"}, toString: function() {return 0}}; + obj.length = { + valueOf: function() { + throw "error" + }, + toString: function() { + return 0 + } + }; var shift = obj.shift(); $ERROR('#7.1: obj[0] = -1; obj.length = {valueOf: function() {throw "error"}, toString: function() {return 0}}; obj.shift() throw "error". Actual: ' + (shift)); } @@ -88,7 +131,14 @@ catch (e) { //CHECK#8 try { obj[0] = -1; - obj.length = {valueOf: function() {return {}}, toString: function() {return {}}}; + obj.length = { + valueOf: function() { + return {} + }, + toString: function() { + return {} + } + }; var shift = obj.shift(); $ERROR('#8.1: obj[0] = -1; obj.length = {valueOf: function() {return {}}, toString: function() {return {}}} obj.shift() throw TypeError. Actual: ' + (shift)); } diff --git a/test/built-ins/Array/prototype/shift/S15.4.4.9_A3_T3.js b/test/built-ins/Array/prototype/shift/S15.4.4.9_A3_T3.js index 60942b64a1..f1c786b210 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 3a7c667f3c..8b78546308 100644 --- a/test/built-ins/Array/prototype/shift/S15.4.4.9_A4_T1.js +++ b/test/built-ins/Array/prototype/shift/S15.4.4.9_A4_T1.js @@ -33,7 +33,9 @@ if (x[1] !== 1) { Object.prototype[1] = 1; Object.prototype.length = 2; Object.prototype.shift = Array.prototype.shift; -x = {0:0}; +x = { + 0: 0 +}; //CHECK#4 var shift = x.shift(); diff --git a/test/built-ins/Array/prototype/shift/S15.4.4.9_A4_T2.js b/test/built-ins/Array/prototype/shift/S15.4.4.9_A4_T2.js index 703c32e109..20fb5644e3 100644 --- a/test/built-ins/Array/prototype/shift/S15.4.4.9_A4_T2.js +++ b/test/built-ins/Array/prototype/shift/S15.4.4.9_A4_T2.js @@ -11,7 +11,7 @@ description: > ---*/ Array.prototype[1] = -1; -var x = [0,1]; +var x = [0, 1]; x.length = 2; //CHECK#1 @@ -33,7 +33,10 @@ if (x[1] !== -1) { Object.prototype[1] = -1; Object.prototype.length = 2; Object.prototype.shift = Array.prototype.shift; -x = {0:0,1:1}; +x = { + 0: 0, + 1: 1 +}; //CHECK#4 var shift = x.shift(); diff --git a/test/built-ins/Array/prototype/slice/15.4.4.10-10-c-ii-1.js b/test/built-ins/Array/prototype/slice/15.4.4.10-10-c-ii-1.js index bd1c365821..ec1f509d3a 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 567f24e6d4..befb1fd88c 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 42027f84c2..5955eb054e 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 29b2074ed8..1967fdbca4 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 7191ed8e2c..719d7634c5 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 b5ccf10648..6c6e24b859 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 c66a6bddf7..63a86046ab 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 5e1585a525..158c4e01d5 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 efac0d4156..f79bd3d4fe 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 f424caee99..ef60e55af9 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 8b6018424b..c598e86791 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 cddd4790b8..c12138e367 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 b5d84984f7..664ed6861a 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 0b4c0c2bc1..761cb1266d 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 f14a223e39..37f75f8cb1 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 f544b49f5e..c62284187e 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 91919d2072..ac01bd21b0 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 b0d7084648..a08595272a 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 222609a983..0942b395b2 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 cb326f2506..3536e83a97 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 dc61d20fad..47fc27eafe 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 7bdeb39832..d6423de98c 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 d81cd4a98a..ceecbe2ae4 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 6c86d2e502..be2087bab3 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 d61be15bf8..41514e0279 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 86c49a99a6..7d1f0fc99b 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 57e496f09c..e0c60b2fea 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T5.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T5.js @@ -8,8 +8,15 @@ es5id: 15.4.4.10_A2.1_T5 description: ToInteger use ToNumber ---*/ -var x = [0,1,2,3,4]; -var arr = x.slice({valueOf: function() {return 0}, toString: function() {return 3}},3); +var x = [0, 1, 2, 3, 4]; +var arr = x.slice({ + valueOf: function() { + return 0 + }, + toString: function() { + return 3 + } +}, 3); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T1.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T1.js index 5614b6d5ae..b5274f83b3 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 1ba6d49717..ab712d9ba1 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 71a12e4c5e..31c4a03593 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 b4e12693c4..d5f4063e89 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 17e113c6b9..78affa8a2c 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T5.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T5.js @@ -8,8 +8,15 @@ es5id: 15.4.4.10_A2.2_T5 description: ToInteger use ToNumber ---*/ -var x = [0,1,2,3,4]; -var arr = x.slice(0,{valueOf: function() {return 3}, toString: function() {return 0}}); +var x = [0, 1, 2, 3, 4]; +var arr = x.slice(0, { + valueOf: function() { + return 3 + }, + toString: function() { + return 0 + } +}); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T1.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T1.js index 2bb88ee450..05fb643f1c 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 bf6dbdc529..0971b1a476 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 2d0ef0d240..9214694c6a 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 d1aa9d2586..398423039f 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 1a4ad0bb16..63b69324ba 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 7c65b5fbe8..d6d1c630f2 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 a5b78f6f08..95da2f2238 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 9061638d0f..d1cbc45859 100644 --- a/test/built-ins/Array/prototype/slice/create-non-array.js +++ b/test/built-ins/Array/prototype/slice/create-non-array.js @@ -16,7 +16,9 @@ info: | 4. If isArray is false, return ? ArrayCreate(length). ---*/ -var obj = { length: 0 }; +var obj = { + length: 0 +}; var callCount = 0; var result; Object.defineProperty(obj, 'constructor', { diff --git a/test/built-ins/Array/prototype/slice/length-exceeding-integer-limit-proxied-array.js b/test/built-ins/Array/prototype/slice/length-exceeding-integer-limit-proxied-array.js index 1d9f80606d..d1839760a1 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 2fa32db97c..d3b4292881 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 216ca2186f..d4f780dfae 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 7c6c28469a..b0bf38a18c 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 79081ad78d..d61f9594be 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 e34099ca7c..905cf42746 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 650afc630c..55105713d5 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 292ab95afb..8218287846 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 d4622f376d..27cfa61dbe 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 bdcf9c45cd..abc12eef8d 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 49c698f379..38edf932d9 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 d17988608a..e025ac0c29 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 ce0483b517..827d030efd 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 a5c84bfe59..78791585ec 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 c44c66dc3e..f69a384e39 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 bbef0f62b1..4a439b90ef 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 3dd74e3021..866d6f61b8 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 b8d3aec50d..aa8eeca34c 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 29409cea90..5a97e40fd9 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 41b817a873..0406211196 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 df83ae028b..0f4f5077fd 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-2-12.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-12.js @@ -10,25 +10,28 @@ description: > Array-like object ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return val > 10; - } +function callbackfn(val, idx, obj) { + accessed = true; + return val > 10; +} - Object.defineProperty(Object.prototype, "length", { - get: function () { - return 2; - }, - configurable: true - }); +Object.defineProperty(Object.prototype, "length", { + get: function() { + return 2; + }, + configurable: true +}); - var obj = { 0: 11, 1: 12 }; - Object.defineProperty(obj, "length", { - set: function () { }, - configurable: true - }); +var obj = { + 0: 11, + 1: 12 +}; +Object.defineProperty(obj, "length", { + set: function() {}, + configurable: true +}); assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-13.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-13.js index d16ce11487..568c277050 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 ce43f05a32..78ee06b3e7 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-2-14.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-14.js @@ -9,14 +9,17 @@ description: > Array-like object ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return val > 10; - } +function callbackfn(val, idx, obj) { + accessed = true; + return val > 10; +} - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-17.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-17.js index 67829327e3..21eb5febac 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 e640da588e..336a943e4e 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 a299cbbc78..07c1ada28b 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 e546927edb..e8d870de64 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 d2ef52b08b..f663fb2742 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-2-3.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-3.js @@ -9,24 +9,26 @@ description: > overrides an inherited data property on an Array-like object ---*/ - function callbackfn1(val, idx, obj) { - return val > 10; - } +function callbackfn1(val, idx, obj) { + return val > 10; +} - function callbackfn2(val, idx, obj) { - return val > 11; - } +function callbackfn2(val, idx, obj) { + return val > 11; +} - var proto = { length: 3 }; +var proto = { + length: 3 +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child.length = 2; - child[0] = 9; - child[1] = 11; - child[2] = 12; +var child = new Con(); +child.length = 2; +child[0] = 9; +child[1] = 11; +child[2] = 12; assert(Array.prototype.some.call(child, callbackfn1), 'Array.prototype.some.call(child, callbackfn1) !== true'); assert.sameValue(Array.prototype.some.call(child, callbackfn2), false, 'Array.prototype.some.call(child, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-4.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-4.js index e3461b6b2b..b966fb8c8b 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-2-4.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-4.js @@ -9,18 +9,19 @@ description: > overrides an inherited data property on an array ---*/ - var arrProtoLen = 0; - function callbackfn1(val, idx, obj) { - return val > 10; - } +var arrProtoLen = 0; - function callbackfn2(val, idx, obj) { - return val > 11; - } +function callbackfn1(val, idx, obj) { + return val > 10; +} - arrProtoLen = Array.prototype.length; - Array.prototype.length = 0; - Array.prototype[2] = 12; +function callbackfn2(val, idx, obj) { + return val > 11; +} + +arrProtoLen = Array.prototype.length; +Array.prototype.length = 0; +Array.prototype[2] = 12; assert([9, 11].some(callbackfn1), '[9, 11].some(callbackfn1) !== true'); assert.sameValue([9, 11].some(callbackfn2), false, '[9, 11].some(callbackfn2)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-5.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-5.js index af407300f3..6433283d2a 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 c559436e50..2b322c6257 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-2-6.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-6.js @@ -9,23 +9,25 @@ description: > an Array-like object ---*/ - function callbackfn1(val, idx, obj) { - return val > 10; - } +function callbackfn1(val, idx, obj) { + return val > 10; +} - function callbackfn2(val, idx, obj) { - return val > 11; - } +function callbackfn2(val, idx, obj) { + return val > 11; +} - var proto = { length: 2 }; +var proto = { + length: 2 +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child[0] = 9; - child[1] = 11; - child[2] = 12; +var child = new Con(); +child[0] = 9; +child[1] = 11; +child[2] = 12; assert(Array.prototype.some.call(child, callbackfn1), 'Array.prototype.some.call(child, callbackfn1) !== true'); assert.sameValue(Array.prototype.some.call(child, callbackfn2), false, 'Array.prototype.some.call(child, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-7.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-7.js index 2231966742..0a3e4b4e68 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 4fd06784b1..9e23a93810 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-2-8.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-8.js @@ -9,31 +9,33 @@ description: > overrides an inherited data property on an Array-like object ---*/ - function callbackfn1(val, idx, obj) { - return val > 10; - } +function callbackfn1(val, idx, obj) { + return val > 10; +} - function callbackfn2(val, idx, obj) { - return val > 11; - } +function callbackfn2(val, idx, obj) { + return val > 11; +} - var proto = { length: 3 }; +var proto = { + length: 3 +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); +var child = new Con(); - Object.defineProperty(child, "length", { - get: function () { - return 2; - }, - configurable: true - }); +Object.defineProperty(child, "length", { + get: function() { + return 2; + }, + configurable: true +}); - child[0] = 9; - child[1] = 11; - child[2] = 12; +child[0] = 9; +child[1] = 11; +child[2] = 12; assert(Array.prototype.some.call(child, callbackfn1), 'Array.prototype.some.call(child, callbackfn1) !== true'); assert.sameValue(Array.prototype.some.call(child, callbackfn2), false, 'Array.prototype.some.call(child, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-9.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-9.js index efd0405f07..c670d9a8d5 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 75dd251336..8f93e82c57 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-3-1.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-1.js @@ -7,14 +7,17 @@ es5id: 15.4.4.17-3-1 description: Array.prototype.some - value of 'length' is undefined ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return val > 10; - } +function callbackfn(val, idx, obj) { + accessed = true; + return val > 10; +} - var obj = { 0: 11, length: undefined }; +var obj = { + 0: 11, + length: undefined +}; assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-10.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-10.js index 042091cbff..ef0361216a 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-3-10.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-10.js @@ -7,14 +7,17 @@ es5id: 15.4.4.17-3-10 description: Array.prototype.some - value of 'length' is a number (value is NaN) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return val > 10; - } +function callbackfn(val, idx, obj) { + accessed = true; + return val > 10; +} - var obj = { 0: 11, length: NaN }; +var obj = { + 0: 11, + length: NaN +}; assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-11.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-11.js index 0c0dc91bda..fa97906421 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-3-11.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-11.js @@ -9,15 +9,20 @@ description: > number ---*/ - function callbackfn1(val, idx, obj) { - return val > 10; - } +function callbackfn1(val, idx, obj) { + return val > 10; +} - function callbackfn2(val, idx, obj) { - return val > 11; - } +function callbackfn2(val, idx, obj) { + return val > 11; +} - var obj = { 0: 9, 1: 11, 2: 12, length: "2" }; +var obj = { + 0: 9, + 1: 11, + 2: 12, + length: "2" +}; assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true'); assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-12.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-12.js index 5308096de9..ac407faa9f 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-3-12.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-12.js @@ -9,15 +9,20 @@ description: > number ---*/ - function callbackfn1(val, idx, obj) { - return val > 10; - } +function callbackfn1(val, idx, obj) { + return val > 10; +} - function callbackfn2(val, idx, obj) { - return val > 11; - } +function callbackfn2(val, idx, obj) { + return val > 11; +} - var obj = { 0: 9, 1: 11, 2: 12, length: "-4294967294" }; +var obj = { + 0: 9, + 1: 11, + 2: 12, + length: "-4294967294" +}; assert.sameValue(Array.prototype.some.call(obj, callbackfn1), false, 'Array.prototype.some.call(obj, callbackfn1)'); assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-13.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-13.js index 127405c684..dcaa0d724f 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-3-13.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-13.js @@ -9,15 +9,20 @@ description: > number ---*/ - function callbackfn1(val, idx, obj) { - return val > 10; - } +function callbackfn1(val, idx, obj) { + return val > 10; +} - function callbackfn2(val, idx, obj) { - return val > 11; - } +function callbackfn2(val, idx, obj) { + return val > 11; +} - var obj = { 0: 9, 1: 11, 2: 12, length: "2.5" }; +var obj = { + 0: 9, + 1: 11, + 2: 12, + length: "2.5" +}; assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true'); assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-14.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-14.js index ac471bf34d..77607bfcaf 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-3-14.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-14.js @@ -7,16 +7,25 @@ es5id: 15.4.4.17-3-14 description: Array.prototype.some - 'length' is a string containing +/-Infinity ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return val > 10; - } +function callbackfn(val, idx, obj) { + accessed = true; + return val > 10; +} - var objOne = { 0: 11, length: "Infinity" }; - var objTwo = { 0: 11, length: "+Infinity" }; - var objThree = { 0: 11, length: "-Infinity" }; +var objOne = { + 0: 11, + length: "Infinity" +}; +var objTwo = { + 0: 11, + length: "+Infinity" +}; +var objThree = { + 0: 11, + length: "-Infinity" +}; assert(Array.prototype.some.call(objOne, callbackfn), 'Array.prototype.some.call(objOne, callbackfn) !== true'); assert(Array.prototype.some.call(objTwo, callbackfn), 'Array.prototype.some.call(objTwo, callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-15.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-15.js index 08a39ca38f..a74c4bcebd 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-3-15.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-15.js @@ -9,15 +9,20 @@ description: > exponential number ---*/ - function callbackfn1(val, idx, obj) { - return val > 10; - } +function callbackfn1(val, idx, obj) { + return val > 10; +} - function callbackfn2(val, idx, obj) { - return val > 11; - } +function callbackfn2(val, idx, obj) { + return val > 11; +} - var obj = { 0: 9, 1: 11, 2: 12, length: "2E0" }; +var obj = { + 0: 9, + 1: 11, + 2: 12, + length: "2E0" +}; assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true'); assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-16.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-16.js index 86173aca78..057f068765 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-3-16.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-16.js @@ -7,15 +7,20 @@ es5id: 15.4.4.17-3-16 description: Array.prototype.some - 'length' is a string containing a hex number ---*/ - function callbackfn1(val, idx, obj) { - return val > 10; - } +function callbackfn1(val, idx, obj) { + return val > 10; +} - function callbackfn2(val, idx, obj) { - return val > 11; - } +function callbackfn2(val, idx, obj) { + return val > 11; +} - var obj = { 0: 9, 1: 11, 2: 12, length: "0x0002" }; +var obj = { + 0: 9, + 1: 11, + 2: 12, + length: "0x0002" +}; assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true'); assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-17.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-17.js index cf2759e88f..857fa9a373 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-3-17.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-17.js @@ -9,15 +9,20 @@ description: > with leading zeros ---*/ - function callbackfn1(val, idx, obj) { - return val > 10; - } +function callbackfn1(val, idx, obj) { + return val > 10; +} - function callbackfn2(val, idx, obj) { - return val > 11; - } +function callbackfn2(val, idx, obj) { + return val > 11; +} - var obj = { 0: 9, 1: 11, 2: 12, length: "0002.00" }; +var obj = { + 0: 9, + 1: 11, + 2: 12, + length: "0002.00" +}; assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true'); assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-18.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-18.js index a8924f21ff..13de82ccd0 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-3-18.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-18.js @@ -9,14 +9,18 @@ description: > convert to a number ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return val > 10; - } +function callbackfn(val, idx, obj) { + accessed = true; + return val > 10; +} - var obj = { 0: 11, 1: 21, length: "two" }; +var obj = { + 0: 11, + 1: 21, + length: "two" +}; assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-19.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-19.js index dddf8132dc..c8521e83c3 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 3b90cbdd1b..2898ce5ae7 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-3-2.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-2.js @@ -9,15 +9,19 @@ description: > (length overridden to true(type conversion)) ---*/ - function callbackfn1(val, idx, obj) { - return val > 10; - } +function callbackfn1(val, idx, obj) { + return val > 10; +} - function callbackfn2(val, idx, obj) { - return val > 11; - } +function callbackfn2(val, idx, obj) { + return val > 11; +} - var obj = { 0: 11, 1: 12, length: true }; +var obj = { + 0: 11, + 1: 12, + length: true +}; assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true'); assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-20.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-20.js index af023ef5e8..9464bc45e2 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 cb1926df05..c0d6aa9c83 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 a166c39f73..1dc3f2b006 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 29c6dfbbd5..ec119aec48 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 fd95a3234c..562d7fdf15 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 ef10bed265..e1916896b9 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 31d402e2d1..b470634177 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 eeca40a0bd..132a0ec3b9 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 7699537640..97637f6a7b 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-3-3.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-3.js @@ -7,14 +7,17 @@ es5id: 15.4.4.17-3-3 description: Array.prototype.some - value of 'length' is a number (value is 0) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return val > 10; - } +function callbackfn(val, idx, obj) { + accessed = true; + return val > 10; +} - var obj = { 0: 11, length: 0 }; +var obj = { + 0: 11, + length: 0 +}; assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-4.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-4.js index cfcc27fc30..3a35aa1497 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-3-4.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-4.js @@ -7,14 +7,17 @@ es5id: 15.4.4.17-3-4 description: Array.prototype.some - value of 'length' is a number (value is +0) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return val > 10; - } +function callbackfn(val, idx, obj) { + accessed = true; + return val > 10; +} - var obj = { 0: 11, length: +0 }; +var obj = { + 0: 11, + length: +0 +}; assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-5.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-5.js index 27d31dea75..2eddf9891a 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-3-5.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-5.js @@ -7,14 +7,17 @@ es5id: 15.4.4.17-3-5 description: Array.prototype.some - value of 'length' is a number (value is -0) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return val > 10; - } +function callbackfn(val, idx, obj) { + accessed = true; + return val > 10; +} - var obj = { 0: 11, length: -0 }; +var obj = { + 0: 11, + length: -0 +}; assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-6.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-6.js index 053e096a98..c53b2808f3 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-3-6.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-6.js @@ -9,15 +9,20 @@ description: > positive) ---*/ - function callbackfn1(val, idx, obj) { - return val > 10; - } +function callbackfn1(val, idx, obj) { + return val > 10; +} - function callbackfn2(val, idx, obj) { - return val > 11; - } +function callbackfn2(val, idx, obj) { + return val > 11; +} - var obj = { 0: 9, 1: 11, 2: 12, length: 2 }; +var obj = { + 0: 9, + 1: 11, + 2: 12, + length: 2 +}; assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true'); assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-7.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-7.js index 31de3aa25c..fcfdbecf29 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-3-7.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-7.js @@ -9,15 +9,20 @@ description: > negative) ---*/ - function callbackfn1(val, idx, obj) { - return val > 10; - } +function callbackfn1(val, idx, obj) { + return val > 10; +} - function callbackfn2(val, idx, obj) { - return val > 11; - } +function callbackfn2(val, idx, obj) { + return val > 11; +} - var obj = { 0: 9, 1: 11, 2: 12, length: -4294967294 }; +var obj = { + 0: 9, + 1: 11, + 2: 12, + length: -4294967294 +}; assert.sameValue(Array.prototype.some.call(obj, callbackfn1), false, 'Array.prototype.some.call(obj, callbackfn1)'); assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-8.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-8.js index f5496a481f..6946b1899b 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-3-8.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-8.js @@ -9,14 +9,17 @@ description: > Infinity) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return val > 10; - } +function callbackfn(val, idx, obj) { + accessed = true; + return val > 10; +} - var obj = { 0: 11, length: Infinity }; +var obj = { + 0: 11, + length: Infinity +}; assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-9.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-9.js index c65f458c0d..c0b2c5c15f 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-3-9.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-9.js @@ -9,14 +9,17 @@ description: > -Infinity) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return val > 10; - } +function callbackfn(val, idx, obj) { + accessed = true; + return val > 10; +} - var obj = { 0: 11, length: -Infinity }; +var obj = { + 0: 11, + length: -Infinity +}; assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-4-1.js b/test/built-ins/Array/prototype/some/15.4.4.17-4-1.js index 9ff74cac0a..30976864ef 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 345f1474c3..3300ce5321 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-4-10.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-4-10.js @@ -9,15 +9,18 @@ description: > was thrown by step 2 ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - Object.defineProperty(obj, "length", { - get: function () { - throw new Test262Error(); - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + throw new Test262Error(); + }, + configurable: true +}); assert.throws(Test262Error, function() { - Array.prototype.some.call(obj, undefined); + Array.prototype.some.call(obj, undefined); }); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-4-11.js b/test/built-ins/Array/prototype/some/15.4.4.17-4-11.js index 0eec6e6c39..d0c7e6a74d 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-4-11.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-4-11.js @@ -9,19 +9,22 @@ description: > was thrown by step 3 ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - Object.defineProperty(obj, "length", { - get: function () { - return { - toString: function () { - throw new Test262Error(); - } - }; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + return { + toString: function() { + throw new Test262Error(); + } + }; + }, + configurable: true +}); assert.throws(Test262Error, function() { - Array.prototype.some.call(obj, undefined); + Array.prototype.some.call(obj, undefined); }); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-4-12.js b/test/built-ins/Array/prototype/some/15.4.4.17-4-12.js index a7d7c1f707..156090da39 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 ef372ed699..c46be1588f 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 8d200ecceb..260caee75c 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 79c8e45fdf..74b4e4acc7 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 9530cb7816..ef357be267 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 ac6df1f87a..7a281a2295 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 530cfb4e1b..7339b3cc4f 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 be4508eeb6..06105fd1eb 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 ea4f929348..4735534bd5 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-4-8.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-4-8.js @@ -9,18 +9,21 @@ description: > when an exception occurs ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - var accessed = false; +var accessed = false; - Object.defineProperty(obj, "length", { - get: function () { - accessed = true; - return 2; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + accessed = true; + return 2; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.some.call(obj, null); + Array.prototype.some.call(obj, null); }); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-4-9.js b/test/built-ins/Array/prototype/some/15.4.4.17-4-9.js index ba37bfec5d..7e77733591 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-4-9.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-4-9.js @@ -9,22 +9,25 @@ description: > when an exception occurs ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - var accessed = false; +var accessed = false; - Object.defineProperty(obj, "length", { - get: function () { - return { - toString: function () { - accessed = true; - return "2"; - } - }; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + return { + toString: function() { + accessed = true; + return "2"; + } + }; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.some.call(obj, null); + Array.prototype.some.call(obj, null); }); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-1-s.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-1-s.js index 737db1039b..f94bc04c65 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 bbbac58dbf..9effb1bb12 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 b30a41be92..7b9f0b960e 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 03e69a4aeb..19c1305d52 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 79f3e73ee5..7f908ab7f1 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 ec80e4d63f..d5d94de657 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 41ce9be978..93e4deb575 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 9bca4cb95e..1456812266 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 122b6abf64..e9a56f636b 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 344f84d9ec..27ec167f4c 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 5d6a3dccde..338b3c0dd4 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 6e702f470c..03815a02d2 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 76776201d4..e0142b343a 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-5-2.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-2.js @@ -7,14 +7,15 @@ es5id: 15.4.4.17-5-2 description: Array.prototype.some - thisArg is Object ---*/ - var res = false; - var o = new Object(); - o.res = true; - function callbackfn(val, idx, obj) - { - return this.res; - } +var res = false; +var o = new Object(); +o.res = true; - var arr = [1]; +function callbackfn(val, idx, obj) +{ + return this.res; +} + +var arr = [1]; assert.sameValue(arr.some(callbackfn, o), true, 'arr.some(callbackfn, o)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-21.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-21.js index 974c7f0e8d..e80fe9b22e 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-5-21.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-21.js @@ -8,8 +8,9 @@ description: Array.prototype.some - the global object can be used as thisArg ---*/ var global = this; - function callbackfn(val, idx, obj) { - return this === global; - } + +function callbackfn(val, idx, obj) { + return this === global; +} assert([11].some(callbackfn, this), '[11].some(callbackfn, global) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-22.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-22.js index e61e97a4ae..4480983121 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 3ded5ff259..a5f030fafe 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 5daa055f11..a1d268d09b 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 a20dcd8ad5..2c7c60a5a4 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 69a2180ccc..6e5d2f245e 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-5-3.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-3.js @@ -7,14 +7,15 @@ es5id: 15.4.4.17-5-3 description: Array.prototype.some - thisArg is Array ---*/ - var res = false; - var a = new Array(); - a.res = true; - function callbackfn(val, idx, obj) - { - return this.res; - } +var res = false; +var a = new Array(); +a.res = true; - var arr = [1]; +function callbackfn(val, idx, obj) +{ + return this.res; +} + +var arr = [1]; assert.sameValue(arr.some(callbackfn, a), true, 'arr.some(callbackfn, a)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-4.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-4.js index 95351bc9ab..32e813992a 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-5-4.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-4.js @@ -9,15 +9,16 @@ description: > template(prototype) ---*/ - var res = false; - function callbackfn(val, idx, obj) - { - return this.res; - } +var res = false; - function foo(){} - foo.prototype.res = true; - var f = new foo(); - var arr = [1]; +function callbackfn(val, idx, obj) +{ + return this.res; +} -assert.sameValue(arr.some(callbackfn,f), true, 'arr.some(callbackfn,f)'); +function foo() {} +foo.prototype.res = true; +var f = new foo(); +var arr = [1]; + +assert.sameValue(arr.some(callbackfn, f), true, 'arr.some(callbackfn,f)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-5.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-5.js index 3831816431..6b946e865a 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-5-5.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-5.js @@ -7,15 +7,16 @@ es5id: 15.4.4.17-5-5 description: Array.prototype.some - thisArg is object from object template ---*/ - var res = false; - function callbackfn(val, idx, obj) - { - return this.res; - } +var res = false; - function foo(){} - var f = new foo(); - f.res = true; - var arr = [1]; +function callbackfn(val, idx, obj) +{ + return this.res; +} -assert.sameValue(arr.some(callbackfn,f), true, 'arr.some(callbackfn,f)'); +function foo() {} +var f = new foo(); +f.res = true; +var arr = [1]; + +assert.sameValue(arr.some(callbackfn, f), true, 'arr.some(callbackfn,f)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-6.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-6.js index f7213225c0..e0d0749176 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-5-6.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-6.js @@ -7,14 +7,15 @@ es5id: 15.4.4.17-5-6 description: Array.prototype.some - thisArg is function ---*/ - var res = false; - function callbackfn(val, idx, obj) - { - return this.res; - } +var res = false; - function foo(){} - foo.res = true; - var arr = [1]; +function callbackfn(val, idx, obj) +{ + return this.res; +} -assert.sameValue(arr.some(callbackfn,foo), true, 'arr.some(callbackfn,foo)'); +function foo() {} +foo.res = true; +var arr = [1]; + +assert.sameValue(arr.some(callbackfn, foo), true, 'arr.some(callbackfn,foo)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-7.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-7.js index f4198a8b06..ae6c1fd3d6 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 501906bf9a..155ab3fd2a 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 5935681cbc..081c7a7889 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 8429933e08..117aeb7386 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 d27cbb211c..8b193f9333 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 5b060256f5..7d683efcf8 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 89a9a1770e..19fbb07fc5 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 e8da5fae68..a5f38a483b 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 e257955c9c..2712e0c85b 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-8.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-8.js @@ -7,14 +7,18 @@ es5id: 15.4.4.17-7-8 description: Array.prototype.some - no observable effects occur if length is 0 ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return val > 10; - } +function callbackfn(val, idx, obj) { + accessed = true; + return val > 10; +} - var obj = { 0: 11, 1: 12, length: 0 }; +var obj = { + 0: 11, + 1: 12, + length: 0 +}; assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)'); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-9.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-9.js index 312351df04..d07c519b08 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-9.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-9.js @@ -9,22 +9,26 @@ description: > of iterations ---*/ - var called = 0; +var called = 0; - function callbackfn(val, idx, obj) { - called++; - return val > 10; - } +function callbackfn(val, idx, obj) { + called++; + return val > 10; +} - var obj = { 0: 9, 2: 12, length: 3 }; +var obj = { + 0: 9, + 2: 12, + length: 3 +}; - Object.defineProperty(obj, "1", { - get: function () { - obj.length = 2; - return 8; - }, - configurable: true - }); +Object.defineProperty(obj, "1", { + get: function() { + obj.length = 2; + return 8; + }, + configurable: true +}); assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true'); assert.sameValue(called, 3, 'called'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-1.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-1.js index 997bac9825..b6b52b0996 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-1.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-1.js @@ -9,15 +9,16 @@ description: > been assigned values ---*/ - var callCnt = 0; - function callbackfn(val, idx, obj) - { - callCnt++; - return false; - } +var callCnt = 0; - var arr = new Array(10); - arr[1] = undefined; - arr.some(callbackfn); +function callbackfn(val, idx, obj) +{ + callCnt++; + return false; +} + +var arr = new Array(10); +arr[1] = undefined; +arr.some(callbackfn); assert.sameValue(callCnt, 1, 'callCnt'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-10.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-10.js index acddf79b86..008b55632c 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-10.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-10.js @@ -9,22 +9,26 @@ description: > prototype index property not to be visited on an Array-like Object ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return idx === 1; - } - var arr = { 2: 2, length: 20 }; +var accessed = false; - Object.defineProperty(arr, "0", { - get: function () { - delete Object.prototype[1]; - return 0; - }, - configurable: true - }); +function callbackfn(val, idx, obj) { + accessed = true; + return idx === 1; +} +var arr = { + 2: 2, + length: 20 +}; - Object.prototype[1] = 1; +Object.defineProperty(arr, "0", { + get: function() { + delete Object.prototype[1]; + return 0; + }, + configurable: true +}); + +Object.prototype[1] = 1; assert.sameValue(Array.prototype.some.call(arr, callbackfn), false, 'Array.prototype.some.call(arr, callbackfn)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-11.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-11.js index e7f1170a9e..3e457ac48e 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-11.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-11.js @@ -9,22 +9,23 @@ description: > prototype index property not to be visited on an Array ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return idx === 1; - } - var arr = [0, , 2]; +var accessed = false; - Object.defineProperty(arr, "0", { - get: function () { - delete Array.prototype[1]; - return 0; - }, - configurable: true - }); +function callbackfn(val, idx, obj) { + accessed = true; + return idx === 1; +} +var arr = [0, , 2]; - Array.prototype[1] = 1; +Object.defineProperty(arr, "0", { + get: function() { + delete Array.prototype[1]; + return 0; + }, + configurable: true +}); + +Array.prototype[1] = 1; assert.sameValue(arr.some(callbackfn), false, 'arr.some(callbackfn)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-12.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-12.js index e575c9fd6d..2eeb1e90c1 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-12.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-12.js @@ -10,23 +10,28 @@ description: > Array-like object ---*/ - function callbackfn(val, idx, obj) { - if (idx === 1 && val === 1) { - return true; - } else { - return false; - } - } - var arr = { 0: 0, 1: 111, 2: 2, length: 10 }; +function callbackfn(val, idx, obj) { + if (idx === 1 && val === 1) { + return true; + } else { + return false; + } +} +var arr = { + 0: 0, + 1: 111, + 2: 2, + length: 10 +}; - Object.defineProperty(arr, "0", { - get: function () { - delete arr[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + delete arr[1]; + return 0; + }, + configurable: true +}); - Object.prototype[1] = 1; +Object.prototype[1] = 1; assert(Array.prototype.some.call(arr, callbackfn), 'Array.prototype.some.call(arr, callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-13.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-13.js index 4f1afb3af3..c15b1fade7 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 db0bf87e45..ebcb32a565 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-14.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-14.js @@ -9,20 +9,21 @@ description: > property not to be visited ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return idx === 3; - } - var arr = [0, 1, 2, "last"]; +var accessed = false; - Object.defineProperty(arr, "0", { - get: function () { - arr.length = 3; - return 0; - }, - configurable: true - }); +function callbackfn(val, idx, obj) { + accessed = true; + return idx === 3; +} +var arr = [0, 1, 2, "last"]; + +Object.defineProperty(arr, "0", { + get: function() { + arr.length = 3; + return 0; + }, + configurable: true +}); assert.sameValue(arr.some(callbackfn), false, 'arr.some(callbackfn)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-15.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-15.js index 7c46475047..69f8f9a6c0 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 21fb924b08..86c3b3c000 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 e1dedd4116..abf9b78b98 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 fa54b0595c..2193d2469b 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-3.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-3.js @@ -9,20 +9,24 @@ description: > here ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return idx === 2; - } - var arr = { 2: 6.99, 8: 19}; +var accessed = false; - Object.defineProperty(arr, "length", { - get: function () { - delete arr[2]; - return 10; - }, - configurable: true - }); +function callbackfn(val, idx, obj) { + accessed = true; + return idx === 2; +} +var arr = { + 2: 6.99, + 8: 19 +}; + +Object.defineProperty(arr, "length", { + get: function() { + delete arr[2]; + return 10; + }, + configurable: true +}); assert.sameValue(Array.prototype.some.call(arr, callbackfn), false, 'Array.prototype.some.call(arr, callbackfn)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-4.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-4.js index 2f3a8122dd..8b02ca3362 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-4.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-4.js @@ -9,27 +9,29 @@ description: > current position are visited on an Array-like object ---*/ - function callbackfn(val, idx, obj) { - if (idx === 1 && val === 1) { - return true; - } else { - return false; - } - } +function callbackfn(val, idx, obj) { + if (idx === 1 && val === 1) { + return true; + } else { + return false; + } +} - var arr = { length: 2 }; +var arr = { + length: 2 +}; - Object.defineProperty(arr, "0", { - get: function () { - Object.defineProperty(arr, "1", { - get: function () { - return 1; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + Object.defineProperty(arr, "1", { + get: function() { + return 1; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); assert(Array.prototype.some.call(arr, callbackfn), 'Array.prototype.some.call(arr, callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-5.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-5.js index c808200a94..ab0a8e637e 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 b57354dc52..804282bc15 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-6.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-6.js @@ -9,26 +9,28 @@ description: > current position are visited on an Array-like object ---*/ - function callbackfn(val, idx, obj) { - if (idx === 1 && val === 6.99) { - return true; - } else { - return false; - } - } - var arr = { length: 2 }; +function callbackfn(val, idx, obj) { + if (idx === 1 && val === 6.99) { + return true; + } else { + return false; + } +} +var arr = { + length: 2 +}; - Object.defineProperty(arr, "0", { - get: function () { - Object.defineProperty(Object.prototype, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + Object.defineProperty(Object.prototype, "1", { + get: function() { + return 6.99; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); assert(Array.prototype.some.call(arr, callbackfn), 'Array.prototype.some.call(arr, callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-7.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-7.js index 5dd76771be..921e832ae0 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 b99ca81540..0ec7f33936 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-8.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-8.js @@ -9,27 +9,30 @@ description: > not to be visited on an Array-like object ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return idx === 1; - } - var arr = { length: 2 }; +var accessed = false; - Object.defineProperty(arr, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); +function callbackfn(val, idx, obj) { + accessed = true; + return idx === 1; +} +var arr = { + length: 2 +}; - Object.defineProperty(arr, "0", { - get: function () { - delete arr[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "1", { + get: function() { + return 6.99; + }, + configurable: true +}); + +Object.defineProperty(arr, "0", { + get: function() { + delete arr[1]; + return 0; + }, + configurable: true +}); assert.sameValue(Array.prototype.some.call(arr, callbackfn), false, 'Array.prototype.some.call(arr, callbackfn)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-9.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-9.js index 389a129ad5..42272384d6 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-9.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-9.js @@ -9,27 +9,28 @@ description: > not to be visited on an Array ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return idx === 1; - } - var arr = [1, 2]; +var accessed = false; - Object.defineProperty(arr, "1", { - get: function () { - return "6.99"; - }, - configurable: true - }); +function callbackfn(val, idx, obj) { + accessed = true; + return idx === 1; +} +var arr = [1, 2]; - Object.defineProperty(arr, "0", { - get: function () { - delete arr[1]; - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "1", { + get: function() { + return "6.99"; + }, + configurable: true +}); + +Object.defineProperty(arr, "0", { + get: function() { + delete arr[1]; + return 0; + }, + configurable: true +}); assert.sameValue(arr.some(callbackfn), false, 'arr.some(callbackfn)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-1.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-1.js index 7d22a36d5f..4f4115e587 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-1.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-1.js @@ -9,15 +9,18 @@ description: > property on an Array-like object ---*/ - var kValue = {}; +var kValue = {}; - function callbackfn(val, idx, obj) { - if (idx === 5) { - return val === kValue; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 5) { + return val === kValue; + } + return false; +} - var obj = { 5: kValue, length: 100 }; +var obj = { + 5: kValue, + length: 100 +}; assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-10.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-10.js index 32488b4883..85226cf16c 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 bbd62f9dcb..f0c2c4a150 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-11.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-11.js @@ -10,28 +10,30 @@ description: > Array-like object ---*/ - var kValue = "abc"; - - function callbackfn(val, idx, obj) { - if (idx === 1) { - return val === kValue; - } - return false; - } - - var proto = { 1: 6 }; - - var Con = function () { }; - Con.prototype = proto; - - var child = new Con(); - child.length = 10; - - Object.defineProperty(child, "1", { - get: function () { - return kValue; - }, - configurable: true - }); +var kValue = "abc"; + +function callbackfn(val, idx, obj) { + if (idx === 1) { + return val === kValue; + } + return false; +} + +var proto = { + 1: 6 +}; + +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); +child.length = 10; + +Object.defineProperty(child, "1", { + get: function() { + return kValue; + }, + configurable: true +}); assert(Array.prototype.some.call(child, callbackfn), 'Array.prototype.some.call(child, callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-12.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-12.js index 94c83d5545..753d317a6d 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 329d300014..e358b560c7 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 b96e60a535..bdb2d85ab3 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 7f862aaad3..f357611b9b 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 ee3cf2adb0..f610a757ff 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 b4113bdbcd..f3206fd63b 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-17.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-17.js @@ -9,17 +9,19 @@ description: > property without a get function on an Array-like object ---*/ - function callbackfn(val, idx, obj) { - if (idx === 1) { - return typeof val === "undefined"; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 1) { + return typeof val === "undefined"; + } + return false; +} - var obj = { length: 2 }; - Object.defineProperty(obj, "1", { - set: function () { }, - configurable: true - }); +var obj = { + length: 2 +}; +Object.defineProperty(obj, "1", { + set: function() {}, + configurable: true +}); assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-18.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-18.js index 41742e9815..55f64f688a 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 7d45a55238..859dc40228 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-19.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-19.js @@ -10,19 +10,21 @@ description: > accessor property on an Array-like object ---*/ - function callbackfn(val, idx, obj) { - if (idx === 1) { - return typeof val === "undefined"; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 1) { + return typeof val === "undefined"; + } + return false; +} - var obj = { length: 2 }; - Object.defineProperty(obj, "1", { - set: function () { }, - configurable: true - }); +var obj = { + length: 2 +}; +Object.defineProperty(obj, "1", { + set: function() {}, + configurable: true +}); - Object.prototype[1] = 10; +Object.prototype[1] = 10; assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-2.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-2.js index cd3c2ced72..543d15db45 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 320cb9899c..d39314005b 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 18fc2abe15..3365018fc6 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 a6086840bc..5635c65aaa 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 87a76dd0be..fe7a12aad8 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 626c4fec94..8a0dd4b0ff 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 de0a66b251..f54a10f05b 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 da8a40f1e5..8e423c6155 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 416660ba05..ac802b1128 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-29.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-29.js @@ -9,32 +9,34 @@ description: > iterations on an Array-like object ---*/ - function callbackfn(val, idx, obj) { - if (idx === 1) { - return val === 12; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 1) { + return val === 12; + } + return false; +} - var obj = { length: 2 }; - var helpVerifyVar = 11; +var obj = { + length: 2 +}; +var helpVerifyVar = 11; - Object.defineProperty(obj, "1", { - get: function () { - return helpVerifyVar; - }, - set: function (args) { - helpVerifyVar = args; - }, - configurable: true - }); +Object.defineProperty(obj, "1", { + get: function() { + return helpVerifyVar; + }, + set: function(args) { + helpVerifyVar = args; + }, + configurable: true +}); - Object.defineProperty(obj, "0", { - get: function () { - obj[1] = 12; - return 11; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + obj[1] = 12; + return 11; + }, + configurable: true +}); assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-3.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-3.js index e9b625ee73..0552315762 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-3.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-3.js @@ -10,22 +10,24 @@ description: > Array-like object ---*/ - var kValue = "abc"; +var kValue = "abc"; - function callbackfn(val, idx, obj) { - if (idx === 5) { - return val === kValue; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 5) { + return val === kValue; + } + return false; +} - var proto = { 5: 100 }; +var proto = { + 5: 100 +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child[5] = kValue; - child.length = 10; +var child = new Con(); +child[5] = kValue; +child.length = 10; assert(Array.prototype.some.call(child, callbackfn), 'Array.prototype.some.call(child, callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-30.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-30.js index 9803d35761..4ce67a0b6c 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-30.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-30.js @@ -9,22 +9,25 @@ description: > terminate iteration on an Array-like object ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - if (idx > 1) { - accessed = true; - } - return true; - } +var accessed = false; - var obj = { length: 20 }; - Object.defineProperty(obj, "1", { - get: function () { - throw new RangeError("unhandle exception happened in getter"); - }, - configurable: true - }); +function callbackfn(val, idx, obj) { + if (idx > 1) { + accessed = true; + } + return true; +} + +var obj = { + length: 20 +}; +Object.defineProperty(obj, "1", { + get: function() { + throw new RangeError("unhandle exception happened in getter"); + }, + configurable: true +}); assert.throws(RangeError, function() { - Array.prototype.some.call(obj, callbackfn); + Array.prototype.some.call(obj, callbackfn); }); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-31.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-31.js index 5fe12afb7a..9d9cc00c1c 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-31.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-31.js @@ -9,23 +9,24 @@ description: > terminate iteration on an Array ---*/ - var accessed = false; - function callbackfn(val, idx, obj) { - if (idx > 0) { - accessed = true; - } - return true; - } +var accessed = false; - var arr = []; - arr[10] = 100; - Object.defineProperty(arr, "0", { - get: function () { - throw new RangeError("unhandle exception happened in getter"); - }, - configurable: true - }); +function callbackfn(val, idx, obj) { + if (idx > 0) { + accessed = true; + } + return true; +} + +var arr = []; +arr[10] = 100; +Object.defineProperty(arr, "0", { + get: function() { + throw new RangeError("unhandle exception happened in getter"); + }, + configurable: true +}); assert.throws(RangeError, function() { - arr.some(callbackfn); + arr.some(callbackfn); }); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-4.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-4.js index 8312a515b6..64dd495a9b 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 5d2c92a761..d8fcfaf35a 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 19eece5654..ef5da14095 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 fe4c1e892d..f346f92524 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-7.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-7.js @@ -9,21 +9,23 @@ description: > property on an Array-like object ---*/ - var kValue = 'abc'; +var kValue = 'abc'; - function callbackfn(val, idx, obj) { - if (5 === idx) { - return kValue === val; - } - return false; - } +function callbackfn(val, idx, obj) { + if (5 === idx) { + return kValue === val; + } + return false; +} - var proto = { 5: kValue }; +var proto = { + 5: kValue +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child.length = 10; +var child = new Con(); +child.length = 10; assert(Array.prototype.some.call(child, callbackfn), 'Array.prototype.some.call(child, callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-8.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-8.js index 7fdcc88161..fb71d4fc7e 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 fe3819dddd..2081432745 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-9.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-9.js @@ -9,22 +9,24 @@ description: > property on an Array-like object ---*/ - var kValue = "abc"; +var kValue = "abc"; - function callbackfn(val, idx, obj) { - if (idx === 10) { - return val === kValue; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 10) { + return val === kValue; + } + return false; +} - var obj = { length: 20 }; +var obj = { + length: 20 +}; - Object.defineProperty(obj, "10", { - get: function () { - return kValue; - }, - configurable: true - }); +Object.defineProperty(obj, "10", { + get: function() { + return kValue; + }, + configurable: true +}); assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-1.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-1.js index 5d83fff70b..c865faae21 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 b7bbd6e847..13301777ba 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 c67f164527..3bf00f445a 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 9fcb899c65..a892afde59 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 6d61b65b61..6917e26355 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 c1f58e55a1..d6fb5d60bc 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-16.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-16.js @@ -9,10 +9,13 @@ description: > when 'T' is not an object ('T' is a boolean primitive) ---*/ - function callbackfn(val, idx, obj) { - return this.valueOf() === false; - } +function callbackfn(val, idx, obj) { + return this.valueOf() === false; +} - var obj = { 0: 11, length: 1 }; +var obj = { + 0: 11, + length: 1 +}; assert(Array.prototype.some.call(obj, callbackfn, false), 'Array.prototype.some.call(obj, callbackfn, false) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-17.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-17.js index 85a7f5b2ef..198346eb6e 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-17.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-17.js @@ -9,10 +9,13 @@ description: > when T is not an object (T is a number primitive) ---*/ - function callbackfn(val, idx, obj) { - return this.valueOf() === 5; - } +function callbackfn(val, idx, obj) { + return this.valueOf() === 5; +} - var obj = { 0: 11, length: 1 }; +var obj = { + 0: 11, + length: 1 +}; assert(Array.prototype.some.call(obj, callbackfn, 5), 'Array.prototype.some.call(obj, callbackfn, 5) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-18.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-18.js index e8edeec025..9498f8079c 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-18.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-18.js @@ -9,10 +9,14 @@ description: > when T is not an object (T is a string primitive) ---*/ - function callbackfn(val, idx, obj) { - return this.valueOf() === "hello!"; - } +function callbackfn(val, idx, obj) { + return this.valueOf() === "hello!"; +} - var obj = { 0: 11, 1: 9, length: 2 }; +var obj = { + 0: 11, + 1: 9, + length: 2 +}; assert(Array.prototype.some.call(obj, callbackfn, "hello!"), 'Array.prototype.some.call(obj, callbackfn, "hello!") !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-19.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-19.js index 2e8a6f2130..4d0063e47b 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-19.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-19.js @@ -7,14 +7,19 @@ es5id: 15.4.4.17-7-c-ii-19 description: Array.prototype.some - non-indexed properties are not called ---*/ - var called = 0; +var called = 0; - function callbackfn(val, idx, obj) { - called++; - return val === 11; - } +function callbackfn(val, idx, obj) { + called++; + return val === 11; +} - var obj = { 0: 9, 10: 8, non_index_property: 11, length: 20 }; +var obj = { + 0: 9, + 10: 8, + non_index_property: 11, + length: 20 +}; assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)'); assert.sameValue(called, 2, 'called'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-2.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-2.js index 0546acaa13..be738c154f 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 342f98b380..899fb2efb7 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-20.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-20.js @@ -9,12 +9,17 @@ description: > (thisArg is correct) ---*/ - var thisArg = { threshold: 10 }; +var thisArg = { + threshold: 10 +}; - function callbackfn(val, idx, obj) { - return this === thisArg; - } +function callbackfn(val, idx, obj) { + return this === thisArg; +} - var obj = { 0: 11, length: 2 }; +var obj = { + 0: 11, + length: 2 +}; assert(Array.prototype.some.call(obj, callbackfn, thisArg), 'Array.prototype.some.call(obj, callbackfn, thisArg) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-21.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-21.js index 2e95550123..31d3af3b03 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-21.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-21.js @@ -9,21 +9,25 @@ description: > (kValue is correct) ---*/ - var firstIndex = false; - var secondIndex = false; +var firstIndex = false; +var secondIndex = false; - function callbackfn(val, idx, obj) { - if (idx === 0) { - firstIndex = (val === 11); - return false; - } - if (idx === 1) { - secondIndex = (val === 12); - return false; - } - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + firstIndex = (val === 11); + return false; + } + if (idx === 1) { + secondIndex = (val === 12); + return false; + } +} - var obj = { 0: 11, 1: 12, length: 2 }; +var obj = { + 0: 11, + 1: 12, + length: 2 +}; assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)'); assert(firstIndex, 'firstIndex !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-22.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-22.js index 00f6a963c1..e01efeac2b 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-22.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-22.js @@ -9,21 +9,25 @@ description: > (the index k is correct) ---*/ - var firstIndex = false; - var secondIndex = false; +var firstIndex = false; +var secondIndex = false; - function callbackfn(val, idx, obj) { - if (val === 11) { - firstIndex = (idx === 0); - return false; - } - if (val === 12) { - secondIndex = (idx === 1); - return false; - } - } +function callbackfn(val, idx, obj) { + if (val === 11) { + firstIndex = (idx === 0); + return false; + } + if (val === 12) { + secondIndex = (idx === 1); + return false; + } +} - var obj = { 0: 11, 1: 12, length: 2 }; +var obj = { + 0: 11, + 1: 12, + length: 2 +}; assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)'); assert(firstIndex, 'firstIndex !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-23.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-23.js index b5baef3173..58c4b0ef2c 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-23.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-23.js @@ -9,10 +9,14 @@ description: > (this object O is correct) ---*/ - var obj = { 0: 11, 1: 12, length: 2 }; +var obj = { + 0: 11, + 1: 12, + length: 2 +}; - function callbackfn(val, idx, o) { - return obj === o; - } +function callbackfn(val, idx, o) { + return obj === o; +} assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-3.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-3.js index 8e784584d6..fb0265b5e2 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-3.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-3.js @@ -9,17 +9,18 @@ description: > returns true ---*/ - var callCnt = 0; - function callbackfn(val, idx, obj) - { - callCnt++; - if(idx > 5) - return true; - else - return false; - } +var callCnt = 0; - var arr = [0,1,2,3,4,5,6,7,8,9]; +function callbackfn(val, idx, obj) +{ + callCnt++; + if (idx > 5) + return true; + else + return false; +} + +var arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; assert.sameValue(arr.some(callbackfn), true, 'arr.some(callbackfn)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-4.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-4.js index c9c277ef3a..8642acfdbc 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 bfac0f4681..5b80ddcded 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 8700b391a5..f67b3e415c 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-6.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-6.js @@ -7,11 +7,14 @@ es5id: 15.4.4.17-7-c-ii-6 description: Array.prototype.some - arguments to callbackfn are self consistent ---*/ - var obj = { 0: 11, length: 1 }; - var thisArg = {}; +var obj = { + 0: 11, + length: 1 +}; +var thisArg = {}; - function callbackfn() { - return this === thisArg && arguments[0] === 11 && arguments[1] === 0 && arguments[2] === obj; - } +function callbackfn() { + return this === thisArg && arguments[0] === 11 && arguments[1] === 0 && arguments[2] === obj; +} assert(Array.prototype.some.call(obj, callbackfn, thisArg), 'Array.prototype.some.call(obj, callbackfn, thisArg) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-7.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-7.js index a8742d69f2..ff362211be 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-7.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-7.js @@ -9,20 +9,25 @@ description: > terminate iteration ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - if (idx > 0) { - accessed = true; - } - if (idx === 0) { - throw new Error("Exception occurred in callbackfn"); - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx > 0) { + accessed = true; + } + if (idx === 0) { + throw new Error("Exception occurred in callbackfn"); + } + return false; +} - var obj = { 0: 9, 1: 100, 10: 11, length: 20 }; +var obj = { + 0: 9, + 1: 100, + 10: 11, + length: 20 +}; assert.throws(Error, function() { - Array.prototype.some.call(obj, callbackfn); + Array.prototype.some.call(obj, callbackfn); }); assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-8.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-8.js index 9c926f28a9..451d0b3d37 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-8.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-8.js @@ -9,13 +9,17 @@ description: > iterations is observed ---*/ - function callbackfn(val, idx, obj) { - if (idx === 0) { - obj[idx + 1] = 11; - } - return val > 10; - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + obj[idx + 1] = 11; + } + return val > 10; +} - var obj = { 0: 9, 1: 8, length: 2 }; +var obj = { + 0: 9, + 1: 8, + length: 2 +}; assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-9.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-9.js index a49cd35a6a..b9c6c8eda9 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 5acfb38bf3..4e2074291e 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-1.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-1.js @@ -7,14 +7,17 @@ es5id: 15.4.4.17-7-c-iii-1 description: Array.prototype.some - return value of callbackfn is undefined ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return undefined; - } +function callbackfn(val, idx, obj) { + accessed = true; + return undefined; +} - var obj = { 0: 11, length: 2 }; +var obj = { + 0: 11, + length: 2 +}; assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-10.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-10.js index 0b26acd258..d561708440 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 e17e0f6ff5..1defdc292c 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 1eaab0e8aa..adfd8efbf5 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 5690c14b48..2e20fa5ba0 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 c0776e90f2..a15cbed88a 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 37974b816e..1de47b0a3e 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 dc3c10f897..f0b7db75d4 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 ba9188b146..a2be9ec374 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 871b4a2171..7d273f4ec4 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 0c71f54867..a87205ead3 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 19318e4b67..b52aff5276 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-2.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-2.js @@ -7,14 +7,17 @@ es5id: 15.4.4.17-7-c-iii-2 description: Array.prototype.some - return value of callbackfn is null ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return null; - } +function callbackfn(val, idx, obj) { + accessed = true; + return null; +} - var obj = { 0: 11, length: 2 }; +var obj = { + 0: 11, + length: 2 +}; assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-20.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-20.js index 481f06fc78..2911f87bcb 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 04a02a0da6..068cd5d0da 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 706a94dad8..b71d846358 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 d906757530..c0316a94b4 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 55f76e23dc..f8ff2dc7f4 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 b3aaf63669..f0237397db 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 e8119a33dc..d96e7e7834 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-26.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-26.js @@ -10,8 +10,9 @@ description: > ---*/ var global = this; - function callbackfn(val, idx, obj) { - return global; - } + +function callbackfn(val, idx, obj) { + return global; +} assert([11].some(callbackfn), '[11].some(callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-28.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-28.js index 3206596514..e971d690dd 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-28.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-28.js @@ -7,37 +7,40 @@ es5id: 15.4.4.17-7-c-iii-28 description: Array.prototype.some - true prevents further side effects ---*/ - var result = false; - function callbackfn(val, idx, obj) { - if (idx > 1) { - result = true; - } - return val > 10; - } - - var obj = { length: 20 }; - - Object.defineProperty(obj, "0", { - get: function () { - return 8; - }, - configurable: true - }); - - Object.defineProperty(obj, "1", { - get: function () { - return 11; - }, - configurable: true - }); - - Object.defineProperty(obj, "2", { - get: function () { - result = true; - return 11; - }, - configurable: true - }); +var result = false; + +function callbackfn(val, idx, obj) { + if (idx > 1) { + result = true; + } + return val > 10; +} + +var obj = { + length: 20 +}; + +Object.defineProperty(obj, "0", { + get: function() { + return 8; + }, + configurable: true +}); + +Object.defineProperty(obj, "1", { + get: function() { + return 11; + }, + configurable: true +}); + +Object.defineProperty(obj, "2", { + get: function() { + result = true; + return 11; + }, + configurable: true +}); assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true'); assert.sameValue(result, false, 'result'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-29.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-29.js index cb3c75c0d0..d0d8b0cdea 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 b5c6ee0eeb..ab3d088db4 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-3.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-3.js @@ -9,14 +9,17 @@ description: > (value is false) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - accessed = true; - return false; - } +function callbackfn(val, idx, obj) { + accessed = true; + return false; +} - var obj = { 0: 11, length: 2 }; +var obj = { + 0: 11, + length: 2 +}; assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-4.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-4.js index ff056a3259..9b885029ce 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-4.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-4.js @@ -9,10 +9,13 @@ description: > (value is true) ---*/ - function callbackfn(val, idx, obj) { - return true; - } +function callbackfn(val, idx, obj) { + return true; +} - var obj = { 0: 11, length: 2 }; +var obj = { + 0: 11, + length: 2 +}; assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-5.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-5.js index 6b0b20e3d5..f67054b66a 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 f54c2e9a78..af66994245 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 eae2d4fcba..ddb2d1df61 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 a5fc01f223..ce91332001 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 2d966cbd02..3f389202c6 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 0546141f50..d37fa7cb25 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 d3da6def0d..bb8b38ba1e 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-8-10.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-8-10.js @@ -7,19 +7,20 @@ es5id: 15.4.4.17-8-10 description: Array.prototype.some - subclassed array when length is reduced ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = 2; +foo.prototype = new Array(1, 2, 3); - function cb(val) - { - if(val > 2) - return true; - else - return false; - } - var i = f.some(cb); +function foo() {} +var f = new foo(); +f.length = 2; + +function cb(val) +{ + if (val > 2) + return true; + else + return false; +} +var i = f.some(cb); assert.sameValue(i, false, 'i'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-8-11.js b/test/built-ins/Array/prototype/some/15.4.4.17-8-11.js index 8d5f1a786c..c5914d1a6d 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-8-11.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-8-11.js @@ -9,14 +9,15 @@ description: > return false ---*/ - var callCnt = 0; - function callbackfn(val, idx, obj) - { - callCnt++; - return false; - } +var callCnt = 0; - var arr = [0,1,2,3,4,5,6,7,8,9]; +function callbackfn(val, idx, obj) +{ + callCnt++; + return false; +} + +var arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; assert.sameValue(arr.some(callbackfn), false, 'arr.some(callbackfn)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-8-12.js b/test/built-ins/Array/prototype/some/15.4.4.17-8-12.js index 5912e36c42..0ba4ed10fb 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 7ef5af8be4..863317f984 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-8-13.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-8-13.js @@ -7,16 +7,17 @@ es5id: 15.4.4.17-8-13 description: Array.prototype.some doesn't visit expandos ---*/ - var callCnt = 0; - function callbackfn(val, idx, obj) - { - callCnt++; - return false; - } +var callCnt = 0; - var arr = [0,1,2,3,4,5,6,7,8,9]; - arr["i"] = 10; - arr[true] = 11; +function callbackfn(val, idx, obj) +{ + callCnt++; + return false; +} + +var arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; +arr["i"] = 10; +arr[true] = 11; assert.sameValue(arr.some(callbackfn), false, 'arr.some(callbackfn)'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-8-2.js b/test/built-ins/Array/prototype/some/15.4.4.17-8-2.js index da760e8945..90ab6cb602 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-8-2.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-8-2.js @@ -9,13 +9,14 @@ description: > Array, length overridden to null (type conversion)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = null; +foo.prototype = new Array(1, 2, 3); - function cb(){} - var i = f.some(cb); +function foo() {} +var f = new foo(); +f.length = null; + +function cb() {} +var i = f.some(cb); assert.sameValue(i, false, 'i'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-8-3.js b/test/built-ins/Array/prototype/some/15.4.4.17-8-3.js index f35fe21966..efe0afb0c0 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-8-3.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-8-3.js @@ -9,13 +9,14 @@ description: > Array, length overridden to false (type conversion)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = false; +foo.prototype = new Array(1, 2, 3); - function cb(){} - var i = f.some(cb); +function foo() {} +var f = new foo(); +f.length = false; + +function cb() {} +var i = f.some(cb); assert.sameValue(i, false, 'i'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-8-4.js b/test/built-ins/Array/prototype/some/15.4.4.17-8-4.js index 5b6d7153e1..32bfde4080 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-8-4.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-8-4.js @@ -9,13 +9,14 @@ description: > Array, length overridden to 0 (type conversion)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = 0; +foo.prototype = new Array(1, 2, 3); - function cb(){} - var i = f.some(cb); +function foo() {} +var f = new foo(); +f.length = 0; + +function cb() {} +var i = f.some(cb); assert.sameValue(i, false, 'i'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-8-5.js b/test/built-ins/Array/prototype/some/15.4.4.17-8-5.js index e66aa48029..1e2fe9b3bf 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-8-5.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-8-5.js @@ -9,13 +9,14 @@ description: > Array, length overridden to '0' (type conversion)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - f.length = '0'; +foo.prototype = new Array(1, 2, 3); - function cb(){} - var i = f.some(cb); +function foo() {} +var f = new foo(); +f.length = '0'; + +function cb() {} +var i = f.some(cb); assert.sameValue(i, false, 'i'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-8-6.js b/test/built-ins/Array/prototype/some/15.4.4.17-8-6.js index 5607fad05c..546c43f500 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-8-6.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-8-6.js @@ -9,15 +9,20 @@ description: > Array, length overridden with obj with valueOf) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); +foo.prototype = new Array(1, 2, 3); - var o = { valueOf: function () { return 0;}}; - f.length = o; +function foo() {} +var f = new foo(); - function cb(){} - var i = f.some(cb); +var o = { + valueOf: function() { + return 0; + } +}; +f.length = o; + +function cb() {} +var i = f.some(cb); assert.sameValue(i, false, 'i'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-8-7.js b/test/built-ins/Array/prototype/some/15.4.4.17-8-7.js index c483ee3d6e..1b4d757c00 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-8-7.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-8-7.js @@ -9,21 +9,26 @@ description: > Array, length overridden with obj w/o valueOf (toString)) ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); +foo.prototype = new Array(1, 2, 3); - var o = { toString: function () { return '0';}}; - f.length = o; +function foo() {} +var f = new foo(); - // objects inherit the default valueOf method of the Object object; - // that simply returns the itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. +var o = { + toString: function() { + return '0'; + } +}; +f.length = o; - function cb(){} - var i = f.some(cb); +// objects inherit the default valueOf method of the Object object; +// that simply returns the itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. + +function cb() {} +var i = f.some(cb); assert.sameValue(i, false, 'i'); diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-8-8.js b/test/built-ins/Array/prototype/some/15.4.4.17-8-8.js index 14dd2908f9..1365c1fafb 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-8-8.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-8-8.js @@ -9,28 +9,29 @@ description: > Array, length overridden with [] ---*/ - foo.prototype = new Array(1, 2, 3); - function foo() {} - var f = new foo(); - - f.length = []; - - // objects inherit the default valueOf method of the Object object; - // that simply returns the itself. Since the default valueOf() method - // does not return a primitive value, ES next tries to convert the object - // to a number by calling its toString() method and converting the - // resulting string to a number. - // - // The toString( ) method on Array converts the array elements to strings, - // then returns the result of concatenating these strings, with commas in - // between. An array with no elements converts to the empty string, which - // converts to the number 0. If an array has a single element that is a - // number n, the array converts to a string representation of n, which is - // then converted back to n itself. If an array contains more than one element, - // or if its one element is not a number, the array converts to NaN. - - function cb(){} - var i = f.some(cb); +foo.prototype = new Array(1, 2, 3); + +function foo() {} +var f = new foo(); + +f.length = []; + +// objects inherit the default valueOf method of the Object object; +// that simply returns the itself. Since the default valueOf() method +// does not return a primitive value, ES next tries to convert the object +// to a number by calling its toString() method and converting the +// resulting string to a number. +// +// The toString( ) method on Array converts the array elements to strings, +// then returns the result of concatenating these strings, with commas in +// between. An array with no elements converts to the empty string, which +// converts to the number 0. If an array has a single element that is a +// number n, the array converts to a string representation of n, which is +// then converted back to n itself. If an array contains more than one element, +// or if its one element is not a number, the array converts to NaN. + +function cb() {} +var i = f.some(cb); assert.sameValue(i, false, 'i'); diff --git a/test/built-ins/Array/prototype/sort/S15.4.4.11_A1.2_T2.js b/test/built-ins/Array/prototype/sort/S15.4.4.11_A1.2_T2.js index 4dbefaaf61..b432109787 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 2a141dba51..0f6a273571 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 334aa6263e..321b6f63ff 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 336bcadfff..044858b0ab 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 de262fd3ca..c2bfb06155 100644 --- a/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.1_T3.js +++ b/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.1_T3.js @@ -11,9 +11,16 @@ es5id: 15.4.4.11_A2.1_T3 description: Checking ToString operator ---*/ -var obj = {valueOf: function() {return 1}, toString: function() {return -2}}; +var obj = { + valueOf: function() { + return 1 + }, + toString: function() { + return -2 + } +}; var alphabetR = [undefined, 2, 1, "X", -1, "a", true, obj, NaN, Infinity]; -var alphabet = [-1, obj, 1, 2, Infinity, NaN, "X", "a", true, undefined]; +var alphabet = [-1, obj, 1, 2, Infinity, NaN, "X", "a", true, undefined]; //CHECK#1 alphabetR.sort(); diff --git a/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.2_T1.js b/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.2_T1.js index 537e1be33d..771eba4c84 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 2c67068aef..0075ca2990 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 ddc5354f08..6e5df4ec45 100644 --- a/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.2_T3.js +++ b/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.2_T3.js @@ -8,11 +8,18 @@ es5id: 15.4.4.11_A2.2_T3 description: Checking ToString operator ---*/ -var obj = {valueOf: function() {return 1}, toString: function() {return -2}}; +var obj = { + valueOf: function() { + return 1 + }, + toString: function() { + return -2 + } +}; var alphabetR = [undefined, 2, 1, "X", -1, "a", true, obj, NaN, Infinity]; var alphabet = [true, "a", "X", NaN, Infinity, 2, 1, obj, -1, undefined]; -var myComparefn = function(x,y) { +var myComparefn = function(x, y) { var xS = String(x); var yS = String(y); if (xS < yS) return 1 diff --git a/test/built-ins/Array/prototype/sort/S15.4.4.11_A3_T1.js b/test/built-ins/Array/prototype/sort/S15.4.4.11_A3_T1.js index d4598f7c03..c8fe6d58f2 100644 --- a/test/built-ins/Array/prototype/sort/S15.4.4.11_A3_T1.js +++ b/test/built-ins/Array/prototype/sort/S15.4.4.11_A3_T1.js @@ -10,15 +10,33 @@ es5id: 15.4.4.11_A3_T1 description: If comparefn is undefined, use SortCompare operator ---*/ -var obj = {valueOf: function() {return 1}, toString: function() {return -2}}; -var alphabetR = {0:undefined, 1:2, 2:1, 3:"X", 4:-1, 5:"a", 6:true, 7:obj, 8:NaN, 9:Infinity}; +var obj = { + valueOf: function() { + return 1 + }, + toString: function() { + return -2 + } +}; +var alphabetR = { + 0: undefined, + 1: 2, + 2: 1, + 3: "X", + 4: -1, + 5: "a", + 6: true, + 7: obj, + 8: NaN, + 9: Infinity +}; alphabetR.sort = Array.prototype.sort; alphabetR.length = 10; var alphabet = [-1, obj, 1, 2, Infinity, NaN, "X", "a", true, undefined]; alphabetR.sort(); - //CHECK#0 +//CHECK#0 alphabetR.getClass = Object.prototype.toString; if (alphabetR.getClass() !== "[object " + "Object" + "]") { $ERROR('#0: alphabetR.sort() is Object object, not Array object'); diff --git a/test/built-ins/Array/prototype/sort/S15.4.4.11_A3_T2.js b/test/built-ins/Array/prototype/sort/S15.4.4.11_A3_T2.js index e5c56d65d3..5da87d3d43 100644 --- a/test/built-ins/Array/prototype/sort/S15.4.4.11_A3_T2.js +++ b/test/built-ins/Array/prototype/sort/S15.4.4.11_A3_T2.js @@ -10,13 +10,31 @@ es5id: 15.4.4.11_A3_T2 description: If comparefn is not undefined ---*/ -var obj = {valueOf: function() {return 1}, toString: function() {return -2}}; -var alphabetR = {0:undefined, 1:2, 2:1, 3:"X", 4:-1, 5:"a", 6:true, 7:obj, 8:NaN, 9:Infinity}; +var obj = { + valueOf: function() { + return 1 + }, + toString: function() { + return -2 + } +}; +var alphabetR = { + 0: undefined, + 1: 2, + 2: 1, + 3: "X", + 4: -1, + 5: "a", + 6: true, + 7: obj, + 8: NaN, + 9: Infinity +}; alphabetR.sort = Array.prototype.sort; alphabetR.length = 10; var alphabet = [true, "a", "X", NaN, Infinity, 2, 1, obj, -1, undefined]; - var myComparefn = function(x,y) { +var myComparefn = function(x, y) { var xS = String(x); var yS = String(y); if (xS < yS) return 1 @@ -26,7 +44,7 @@ var alphabet = [true, "a", "X", NaN, Infinity, 2, 1, obj, -1, undefined]; alphabetR.sort(myComparefn); - //CHECK#0 +//CHECK#0 alphabetR.getClass = Object.prototype.toString; if (alphabetR.getClass() !== "[object " + "Object" + "]") { $ERROR('#0: alphabetR.sort() is Object object, not Array object'); diff --git a/test/built-ins/Array/prototype/sort/S15.4.4.11_A5_T1.js b/test/built-ins/Array/prototype/sort/S15.4.4.11_A5_T1.js index b1549f26e6..32ddbcd187 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 4b623ca34b..4d26b47013 100644 --- a/test/built-ins/Array/prototype/sort/S15.4.4.11_A6_T2.js +++ b/test/built-ins/Array/prototype/sort/S15.4.4.11_A6_T2.js @@ -11,7 +11,7 @@ description: > ---*/ Array.prototype[1] = -1; -var x = [1,0]; +var x = [1, 0]; x.length = 2; x.sort(); @@ -40,7 +40,10 @@ if (x[1] !== -1) { Object.prototype[1] = -1; Object.prototype.length = 2; Object.prototype.sort = Array.prototype.sort; -x = {0:1,1:0}; +x = { + 0: 1, + 1: 0 +}; x.sort(); //CHECK#5 diff --git a/test/built-ins/Array/prototype/sort/S15.4.4.11_A8.js b/test/built-ins/Array/prototype/sort/S15.4.4.11_A8.js index 289887f032..bfa49d90ae 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 1c6e4d724d..a144d9fcde 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 1fbcd77ceb..ec571de20b 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 c35b0f876e..62ab296449 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 8ec20c11c8..0e0d144a6a 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 e911470f01..ab59bcf6f5 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 27bc884add..5cdd55a4ee 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 12cd147ecf..3685147d67 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 118d0a82a9..713f6a0416 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 5fb2399424..0eb829e794 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 9e2dac61f7..652524bd11 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 0ea1d8bcee..91253b80f1 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 1929add947..0db991b3ec 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 fddd02dc84..0be3d2398c 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 f5d24cac35..89e1ee2b5b 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 bb68a76802..02e2dbea84 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 f8fc1eccbc..ed8efafe78 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 909d270ac1..66c3d55e21 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 44917a67fa..089a2ce8c3 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 f4f2678ad9..5c56b995ac 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 1332574538..828e21cbbb 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 8c4475cd7e..cd2ccab2ca 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 01605c746d..9b4cd2228c 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 2862b3f60d..d531be2ee1 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 4be6a0b978..318d33a440 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 2dffe18b3d..9c2e3c5798 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 37ec9f17f0..4d051f44c3 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 4fa9aed73e..779089de14 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 ec581518de..046f111f8c 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 5551f3596c..4741352b58 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 32848cc6fb..2e66e7f34b 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 4e379cda8f..94ef139720 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 807c0a41ad..eaf3c07a1b 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 083ed9ca89..939454e488 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 51a7aa7654..9cf978a586 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T5.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T5.js @@ -8,8 +8,15 @@ es5id: 15.4.4.12_A2.1_T5 description: ToInteger use ToNumber ---*/ -var x = [0,1,2,3]; -var arr = x.splice({valueOf: function() {return 0}, toString: function() {return 3}},3); +var x = [0, 1, 2, 3]; +var arr = x.splice({ + valueOf: function() { + return 0 + }, + toString: function() { + return 3 + } +}, 3); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T1.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T1.js index 8a8cc929dc..4212e9e1f1 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 c97e14734c..cbe0fbb78f 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 8622ff7654..1a2e4fb1e7 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 6c3008074f..d0ec317ce6 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 d42f023fc9..911ee8defc 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T5.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T5.js @@ -8,8 +8,15 @@ es5id: 15.4.4.12_A2.2_T5 description: ToInteger use ToNumber ---*/ -var x = [0,1,2,3]; -var arr = x.splice(0,{valueOf: function() {return 3}, toString: function() {return 0}}); +var x = [0, 1, 2, 3]; +var arr = x.splice(0, { + valueOf: function() { + return 3 + }, + toString: function() { + return 0 + } +}); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T1.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T1.js index 120d64c816..53135fec31 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T1.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T1.js @@ -12,10 +12,15 @@ description: > positive, use min(deleteCount, length - start) ---*/ -var obj = {0:0,1:1,2:2,3:3}; +var obj = { + 0: 0, + 1: 1, + 2: 2, + 3: 3 +}; obj.length = 4; obj.splice = Array.prototype.splice; -var arr = obj.splice(0,3,4,5); +var arr = obj.splice(0, 3, 4, 5); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T2.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T2.js index 294da306b6..d0c6aed9b1 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T2.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T2.js @@ -12,10 +12,13 @@ description: > is negative, use 0 ---*/ -var obj = {0:0,1:1}; +var obj = { + 0: 0, + 1: 1 +}; obj.length = 2; obj.splice = Array.prototype.splice; -var arr = obj.splice(-2,-1,2,3); +var arr = obj.splice(-2, -1, 2, 3); //CHECK#0 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T3.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T3.js index 3131c9a3a7..4b6fdb4b94 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T3.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T3.js @@ -12,10 +12,13 @@ description: > negative, use 0 ---*/ -var obj = {0:0,1:1}; +var obj = { + 0: 0, + 1: 1 +}; obj.length = 2; obj.splice = Array.prototype.splice; -var arr = obj.splice(0,-1,2,3); +var arr = obj.splice(0, -1, 2, 3); //CHECK#0 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T4.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T4.js index ca455cad51..1127a7cb64 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T4.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T4.js @@ -12,10 +12,15 @@ description: > is positive, use min(deleteCount, length - start) ---*/ -var obj = {0:0,1:1,2:2,3:3}; +var obj = { + 0: 0, + 1: 1, + 2: 2, + 3: 3 +}; obj.length = 4; obj.splice = Array.prototype.splice; -var arr = obj.splice(-4,3,4,5); +var arr = obj.splice(-4, 3, 4, 5); //CHECK#1 arr.getClass = Object.prototype.toString; diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A3_T1.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A3_T1.js index 4d92ace055..bf7b3a654e 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 3232c9a112..309de2f1f4 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 ed0ab16aa5..7754dc3f4f 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T1.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T1.js @@ -11,8 +11,8 @@ description: > ---*/ Array.prototype[1] = -1; -var x = [0,1]; -var arr = x.splice(1,1); +var x = [0, 1]; +var arr = x.splice(1, 1); //CHECK#1 if (arr.length !== 1) { @@ -48,8 +48,11 @@ if (x[1] !== -1) { Object.prototype[1] = -1; Object.prototype.length = 2; Object.prototype.splice = Array.prototype.splice; -x = {0:0, 1:1}; -var arr = x.splice(1,1); +x = { + 0: 0, + 1: 1 +}; +var arr = x.splice(1, 1); //CHECK#7 if (arr.length !== 1) { diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T2.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T2.js index 3c203ee251..50cf6d031c 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T2.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T2.js @@ -11,8 +11,8 @@ description: > ---*/ Array.prototype[1] = -1; -var x = [0,1]; -var arr = x.splice(1,1,2); +var x = [0, 1]; +var arr = x.splice(1, 1, 2); //CHECK#1 if (arr.length !== 1) { @@ -48,8 +48,11 @@ if (x[1] !== 2) { Object.prototype[1] = -1; Object.prototype.length = 2; Object.prototype.splice = Array.prototype.splice; -x = {0:0, 1:1}; -var arr = x.splice(1,1,2); +x = { + 0: 0, + 1: 1 +}; +var arr = x.splice(1, 1, 2); //CHECK#7 if (arr.length !== 1) { diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T3.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T3.js index db412def32..423c669730 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 3c0ff7998a..cae54c1da1 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 e756767321..cf53a82359 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 e568f40d6c..f42c6f00fd 100644 --- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A6.1_T3.js +++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A6.1_T3.js @@ -9,15 +9,17 @@ description: Array.prototype.splice throws if `length` is read-only ---*/ var a = { - get length() { return 0; }, - splice: Array.prototype.splice + get length() { + return 0; + }, + splice: Array.prototype.splice }; try { - a.splice(1, 2, 4); - $ERROR("Expected a TypeError"); + a.splice(1, 2, 4); + $ERROR("Expected a TypeError"); } catch (e) { - if (!(e instanceof TypeError)) { - throw e; - } + if (!(e instanceof TypeError)) { + throw e; + } } diff --git a/test/built-ins/Array/prototype/splice/clamps-length-to-integer-limit.js b/test/built-ins/Array/prototype/splice/clamps-length-to-integer-limit.js index a376e42e71..24584ba48a 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 0af93e8c5a..153e484622 100644 --- a/test/built-ins/Array/prototype/splice/create-non-array.js +++ b/test/built-ins/Array/prototype/splice/create-non-array.js @@ -16,7 +16,9 @@ info: | 4. If isArray is false, return ? ArrayCreate(length). ---*/ -var obj = { length: 0 }; +var obj = { + length: 0 +}; var callCount = 0; var result; Object.defineProperty(obj, 'constructor', { diff --git a/test/built-ins/Array/prototype/splice/create-species-length-exceeding-integer-limit.js b/test/built-ins/Array/prototype/splice/create-species-length-exceeding-integer-limit.js index b2f373d616..f0a5d73ed5 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 f48e48d9e8..7734bb325a 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 e48f292ccb..8340b6a29e 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 9f0b857989..42cf6f9c50 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 a2c04e0fd8..25dbc37efb 100644 --- a/test/built-ins/Array/prototype/splice/set_length_no_args.js +++ b/test/built-ins/Array/prototype/splice/set_length_no_args.js @@ -14,7 +14,8 @@ es5id: 15.4.4.12 es6id: 22.1.3.25 ---*/ -var getCallCount = 0, setCallCount = 0; +var getCallCount = 0, + setCallCount = 0; var lengthValue; var obj = { diff --git a/test/built-ins/Array/prototype/splice/throws-if-integer-limit-exceeded.js b/test/built-ins/Array/prototype/splice/throws-if-integer-limit-exceeded.js index 883d0508f3..447eb4d0a5 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 1aaa20fc0b..c2f7a29a5b 100644 --- a/test/built-ins/Array/prototype/toLocaleString/S15.4.4.3_A1_T1.js +++ b/test/built-ins/Array/prototype/toLocaleString/S15.4.4.3_A1_T1.js @@ -13,7 +13,11 @@ description: it is the function that should be invoked ---*/ var n = 0; -var obj = {toLocaleString: function() {n++}}; +var obj = { + toLocaleString: function() { + n++ + } +}; var arr = [undefined, obj, null, obj, obj]; arr.toLocaleString(); diff --git a/test/built-ins/Array/prototype/toLocaleString/S15.4.4.3_A3_T1.js b/test/built-ins/Array/prototype/toLocaleString/S15.4.4.3_A3_T1.js index fd32d7702d..7bf7a44d53 100644 --- a/test/built-ins/Array/prototype/toLocaleString/S15.4.4.3_A3_T1.js +++ b/test/built-ins/Array/prototype/toLocaleString/S15.4.4.3_A3_T1.js @@ -10,7 +10,11 @@ description: "[[Prototype]] of Array instance is Array.prototype" //CHECK#1 var n = 0; -var obj = {toLocaleString: function() {n++}}; +var obj = { + toLocaleString: function() { + n++ + } +}; Array.prototype[1] = obj; var x = [obj]; x.length = 2; diff --git a/test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T1.js b/test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T1.js index dbcce93100..29ce4d673f 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 62a82f8b16..29e4177343 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 96ad808728..c3c93e46c8 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 1471739914..02045cb350 100644 --- a/test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T4.js +++ b/test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T4.js @@ -11,7 +11,11 @@ description: If Type(value) is Object, evaluate ToPrimitive(value, String) ---*/ //CHECK#1 -var object = {valueOf: function() {return "+"}}; +var object = { + valueOf: function() { + return "+" + } +}; var x = new Array(object); if (x.toString() !== x.join()) { $ERROR('#1.1: var object = {valueOf: function() {return "+"}} var x = new Array(object); x.toString() === x.join(). Actual: ' + (x.toString())); @@ -22,7 +26,14 @@ if (x.toString() !== x.join()) { } //CHECK#2 -var object = {valueOf: function() {return "+"}, toString: function() {return "*"}}; +var object = { + valueOf: function() { + return "+" + }, + toString: function() { + return "*" + } +}; var x = new Array(object); if (x.toString() !== x.join()) { $ERROR('#2.1: var object = {valueOf: function() {return "+"}, toString: function() {return x.join()}} var x = new Array(object); x.toString() === "*". Actual: ' + (x.toString())); @@ -33,7 +44,14 @@ if (x.toString() !== x.join()) { } //CHECK#3 -var object = {valueOf: function() {return "+"}, toString: function() {return {}}}; +var object = { + valueOf: function() { + return "+" + }, + toString: function() { + return {} + } +}; var x = new Array(object); if (x.toString() !== x.join()) { $ERROR('#3.1: var object = {valueOf: function() {return x.join()}, toString: function() {return {}}} var x = new Array(object); x.toString() === "+". Actual: ' + (x.toString())); @@ -45,7 +63,14 @@ if (x.toString() !== x.join()) { //CHECK#4 try { - var object = {valueOf: function() {throw "error"}, toString: function() {return "*"}}; + var object = { + valueOf: function() { + throw "error" + }, + toString: function() { + return "*" + } + }; var x = new Array(object); if (x.toString() !== x.join()) { $ERROR('#4.1: var object = {valueOf: function() {throw "error"}, toString: function() {return x.join()}} var x = new Array(object); x.toString() === "*". Actual: ' + (x.toString())); @@ -64,7 +89,11 @@ catch (e) { } //CHECK#5 -var object = {toString: function() {return "*"}}; +var object = { + toString: function() { + return "*" + } +}; var x = new Array(object); if (x.toString() !== x.join()) { $ERROR('#5.1: var object = {toString: function() {return x.join()}} var x = new Array(object); x.toString() === "*". Actual: ' + (x.toString())); @@ -75,7 +104,14 @@ if (x.toString() !== x.join()) { } //CHECK#6 -var object = {valueOf: function() {return {}}, toString: function() {return "*"}} +var object = { + valueOf: function() { + return {} + }, + toString: function() { + return "*" + } +} var x = new Array(object); if (x.toString() !== x.join()) { $ERROR('#6.1: var object = {valueOf: function() {return {}}, toString: function() {return x.join()}} var x = new Array(object); x.toString() === "*". Actual: ' + (x.toString())); @@ -87,7 +123,14 @@ if (x.toString() !== x.join()) { //CHECK#7 try { - var object = {valueOf: function() {return "+"}, toString: function() {throw "error"}}; + var object = { + valueOf: function() { + return "+" + }, + toString: function() { + throw "error" + } + }; var x = new Array(object); x.toString(); $ERROR('#7.1: var object = {valueOf: function() {return "+"}, toString: function() {throw "error"}} var x = new Array(object); x.toString() throw "error". Actual: ' + (x.toString())); @@ -100,7 +143,14 @@ catch (e) { //CHECK#8 try { - var object = {valueOf: function() {return {}}, toString: function() {return {}}}; + var object = { + valueOf: function() { + return {} + }, + toString: function() { + return {} + } + }; var x = new Array(object); x.toString(); $ERROR('#8.1: var object = {valueOf: function() {return {}}, toString: function() {return {}}} var x = new Array(object); x.toString() throw TypeError. Actual: ' + (x.toString())); diff --git a/test/built-ins/Array/prototype/unshift/S15.4.4.13_A2_T1.js b/test/built-ins/Array/prototype/unshift/S15.4.4.13_A2_T1.js index 325a8aded2..f45be1170a 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 c169a2c06f..979bc566b2 100644 --- a/test/built-ins/Array/prototype/unshift/S15.4.4.13_A2_T3.js +++ b/test/built-ins/Array/prototype/unshift/S15.4.4.13_A2_T3.js @@ -16,21 +16,39 @@ var obj = {}; obj.unshift = Array.prototype.unshift; //CHECK#1 -obj.length = {valueOf: function() {return 3}}; +obj.length = { + valueOf: function() { + return 3 + } +}; var unshift = obj.unshift(); if (unshift !== 3) { $ERROR('#1: obj.length = {valueOf: function() {return 3}} obj.unshift() === 3. Actual: ' + (unshift)); } //CHECK#2 -obj.length = {valueOf: function() {return 3}, toString: function() {return 1}}; +obj.length = { + valueOf: function() { + return 3 + }, + toString: function() { + return 1 + } +}; var unshift = obj.unshift(); if (unshift !== 3) { $ERROR('#0: obj.length = {valueOf: function() {return 3}, toString: function() {return 1}} obj.unshift() === 3. Actual: ' + (unshift)); } //CHECK#3 -obj.length = {valueOf: function() {return 3}, toString: function() {return {}}}; +obj.length = { + valueOf: function() { + return 3 + }, + toString: function() { + return {} + } +}; var unshift = obj.unshift(); if (unshift !== 3) { $ERROR('#1: obj.length = {valueOf: function() {return 3}, toString: function() {return {}}} obj.unshift() === 3. Actual: ' + (unshift)); @@ -38,7 +56,14 @@ if (unshift !== 3) { //CHECK#4 try { - obj.length = {valueOf: function() {return 3}, toString: function() {throw "error"}}; + obj.length = { + valueOf: function() { + return 3 + }, + toString: function() { + throw "error" + } + }; var unshift = obj.unshift(); if (unshift !== 3) { $ERROR('#4.1: obj.length = {valueOf: function() {return 3}, toString: function() {throw "error"}}; obj.unshift() === ",". Actual: ' + (unshift)); @@ -53,14 +78,25 @@ catch (e) { } //CHECK#5 -obj.length = {toString: function() {return 1}}; +obj.length = { + toString: function() { + return 1 + } +}; var unshift = obj.unshift(); if (unshift !== 1) { $ERROR('#5: obj.length = {toString: function() {return 1}} obj.unshift() === 1. Actual: ' + (unshift)); } //CHECK#6 -obj.length = {valueOf: function() {return {}}, toString: function() {return 1}} +obj.length = { + valueOf: function() { + return {} + }, + toString: function() { + return 1 + } +} var unshift = obj.unshift(); if (unshift !== 1) { $ERROR('#6: obj.length = {valueOf: function() {return {}}, toString: function() {return 1}} obj.unshift() === 1. Actual: ' + (unshift)); @@ -69,7 +105,14 @@ if (unshift !== 1) { //CHECK#7 try { - obj.length = {valueOf: function() {throw "error"}, toString: function() {return 1}}; + obj.length = { + valueOf: function() { + throw "error" + }, + toString: function() { + return 1 + } + }; var unshift = obj.unshift(); $ERROR('#7.1: obj.length = {valueOf: function() {throw "error"}, toString: function() {return 1}}; obj.unshift() throw "error". Actual: ' + (unshift)); } @@ -82,7 +125,14 @@ catch (e) { //CHECK#8 try { - obj.length = {valueOf: function() {return {}}, toString: function() {return {}}}; + obj.length = { + valueOf: function() { + return {} + }, + toString: function() { + return {} + } + }; var unshift = obj.unshift(); $ERROR('#8.1: obj.length = {valueOf: function() {return {}}, toString: function() {return {}}} obj.unshift() throw TypeError. Actual: ' + (unshift)); } diff --git a/test/built-ins/Array/prototype/unshift/S15.4.4.13_A3_T2.js b/test/built-ins/Array/prototype/unshift/S15.4.4.13_A3_T2.js index fe67c11de3..fcbbe10dd7 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 758fbb3386..0235e42bbb 100644 --- a/test/built-ins/Array/prototype/unshift/S15.4.4.13_A4_T1.js +++ b/test/built-ins/Array/prototype/unshift/S15.4.4.13_A4_T1.js @@ -40,7 +40,9 @@ if (x[0] !== -1) { Object.prototype[0] = -1; Object.prototype.length = 1; Object.prototype.unshift = Array.prototype.unshift; -x = {0:1}; +x = { + 0: 1 +}; //CHECK#5 var unshift = x.unshift(0); diff --git a/test/built-ins/Array/prototype/unshift/clamps-to-integer-limit.js b/test/built-ins/Array/prototype/unshift/clamps-to-integer-limit.js index 4818d2ab82..9f2e141845 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 bd4ad9aa66..5dff513e40 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 a6e0acc306..9ad723eca5 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 15a0170d14..74142c4b59 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 85cfd57a53..e53c92b1c5 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 a32cf9bd55..2e17f26bc2 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 8044f622b2..0d6c097d7f 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 72534dccf1..383aaeb938 100644 --- a/test/built-ins/ArrayBuffer/prototype/slice/end-default-if-undefined.js +++ b/test/built-ins/ArrayBuffer/prototype/slice/end-default-if-undefined.js @@ -17,6 +17,7 @@ info: | var arrayBuffer = new ArrayBuffer(8); -var start = 6, end = undefined; +var start = 6, + end = undefined; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 2); diff --git a/test/built-ins/ArrayBuffer/prototype/slice/end-exceeds-length.js b/test/built-ins/ArrayBuffer/prototype/slice/end-exceeds-length.js index 10d47bf188..5138b910da 100644 --- a/test/built-ins/ArrayBuffer/prototype/slice/end-exceeds-length.js +++ b/test/built-ins/ArrayBuffer/prototype/slice/end-exceeds-length.js @@ -16,14 +16,17 @@ info: | var arrayBuffer = new ArrayBuffer(8); -var start = 1, end = 12; +var start = 1, + end = 12; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 7, "slice(1, 12)"); -var start = 2, end = 0x100000000; +var start = 2, + end = 0x100000000; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 6, "slice(2, 0x100000000)"); -var start = 3, end = +Infinity; +var start = 3, + end = +Infinity; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 5, "slice(3, Infinity)"); diff --git a/test/built-ins/ArrayBuffer/prototype/slice/negative-end.js b/test/built-ins/ArrayBuffer/prototype/slice/negative-end.js index c41245c864..bafdd8a4fc 100644 --- a/test/built-ins/ArrayBuffer/prototype/slice/negative-end.js +++ b/test/built-ins/ArrayBuffer/prototype/slice/negative-end.js @@ -16,14 +16,17 @@ info: | var arrayBuffer = new ArrayBuffer(8); -var start = 2, end = -4; +var start = 2, + end = -4; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 2, "slice(2, -4)"); -var start = 2, end = -10; +var start = 2, + end = -10; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 0, "slice(2, -10)"); -var start = 2, end = -Infinity; +var start = 2, + end = -Infinity; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 0, "slice(2, -Infinity)"); diff --git a/test/built-ins/ArrayBuffer/prototype/slice/negative-start.js b/test/built-ins/ArrayBuffer/prototype/slice/negative-start.js index 34781706e0..afc33ffff0 100644 --- a/test/built-ins/ArrayBuffer/prototype/slice/negative-start.js +++ b/test/built-ins/ArrayBuffer/prototype/slice/negative-start.js @@ -16,14 +16,17 @@ info: | var arrayBuffer = new ArrayBuffer(8); -var start = -5, end = 6; +var start = -5, + end = 6; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 3, "slice(-5, 6)"); -var start = -12, end = 6; +var start = -12, + end = 6; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 6, "slice(-12, 6)"); -var start = -Infinity, end = 6; +var start = -Infinity, + end = 6; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 6, "slice(-Infinity, 6)"); diff --git a/test/built-ins/ArrayBuffer/prototype/slice/nonconstructor.js b/test/built-ins/ArrayBuffer/prototype/slice/nonconstructor.js index 1a3406f850..83c2ba3191 100644 --- a/test/built-ins/ArrayBuffer/prototype/slice/nonconstructor.js +++ b/test/built-ins/ArrayBuffer/prototype/slice/nonconstructor.js @@ -18,4 +18,6 @@ info: | assert.sameValue(Object.prototype.hasOwnProperty.call(ArrayBuffer.prototype.slice, "prototype"), false); var arrayBuffer = new ArrayBuffer(8); -assert.throws(TypeError, function() { new arrayBuffer.slice(); }); +assert.throws(TypeError, function() { + new arrayBuffer.slice(); +}); diff --git a/test/built-ins/ArrayBuffer/prototype/slice/species-constructor-is-not-object.js b/test/built-ins/ArrayBuffer/prototype/slice/species-constructor-is-not-object.js index ce293de3f8..94cf973cec 100644 --- a/test/built-ins/ArrayBuffer/prototype/slice/species-constructor-is-not-object.js +++ b/test/built-ins/ArrayBuffer/prototype/slice/species-constructor-is-not-object.js @@ -26,7 +26,9 @@ features: [Symbol] var arrayBuffer = new ArrayBuffer(8); -function callSlice() { arrayBuffer.slice(); } +function callSlice() { + arrayBuffer.slice(); +} arrayBuffer.constructor = null; assert.throws(TypeError, callSlice, "`constructor` value is null"); diff --git a/test/built-ins/ArrayBuffer/prototype/slice/species-is-not-constructor.js b/test/built-ins/ArrayBuffer/prototype/slice/species-is-not-constructor.js index a2ae81988e..707a12acb0 100644 --- a/test/built-ins/ArrayBuffer/prototype/slice/species-is-not-constructor.js +++ b/test/built-ins/ArrayBuffer/prototype/slice/species-is-not-constructor.js @@ -29,7 +29,9 @@ var speciesConstructor = {}; var arrayBuffer = new ArrayBuffer(8); arrayBuffer.constructor = speciesConstructor; -function callSlice() { arrayBuffer.slice(); } +function callSlice() { + arrayBuffer.slice(); +} speciesConstructor[Symbol.species] = {}; assert.throws(TypeError, callSlice, "`constructor[Symbol.species]` value is Object"); diff --git a/test/built-ins/ArrayBuffer/prototype/slice/species-is-not-object.js b/test/built-ins/ArrayBuffer/prototype/slice/species-is-not-object.js index d358cb90b5..8a751cd224 100644 --- a/test/built-ins/ArrayBuffer/prototype/slice/species-is-not-object.js +++ b/test/built-ins/ArrayBuffer/prototype/slice/species-is-not-object.js @@ -29,7 +29,9 @@ var speciesConstructor = {}; var arrayBuffer = new ArrayBuffer(8); arrayBuffer.constructor = speciesConstructor; -function callSlice() { arrayBuffer.slice(); } +function callSlice() { + arrayBuffer.slice(); +} speciesConstructor[Symbol.species] = true; assert.throws(TypeError, callSlice, "`constructor[Symbol.species]` value is Boolean"); diff --git a/test/built-ins/ArrayBuffer/prototype/slice/start-default-if-undefined.js b/test/built-ins/ArrayBuffer/prototype/slice/start-default-if-undefined.js index 65ad471f9b..3594379341 100644 --- a/test/built-ins/ArrayBuffer/prototype/slice/start-default-if-undefined.js +++ b/test/built-ins/ArrayBuffer/prototype/slice/start-default-if-undefined.js @@ -17,6 +17,7 @@ info: | var arrayBuffer = new ArrayBuffer(8); -var start = undefined, end = 6; +var start = undefined, + end = 6; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 6); diff --git a/test/built-ins/ArrayBuffer/prototype/slice/start-exceeds-end.js b/test/built-ins/ArrayBuffer/prototype/slice/start-exceeds-end.js index 2731261e09..af0ca352ad 100644 --- a/test/built-ins/ArrayBuffer/prototype/slice/start-exceeds-end.js +++ b/test/built-ins/ArrayBuffer/prototype/slice/start-exceeds-end.js @@ -16,6 +16,7 @@ info: | var arrayBuffer = new ArrayBuffer(8); -var start = 5, end = 4; +var start = 5, + end = 4; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 0); diff --git a/test/built-ins/ArrayBuffer/prototype/slice/start-exceeds-length.js b/test/built-ins/ArrayBuffer/prototype/slice/start-exceeds-length.js index b8abf3b5d4..70e00c7414 100644 --- a/test/built-ins/ArrayBuffer/prototype/slice/start-exceeds-length.js +++ b/test/built-ins/ArrayBuffer/prototype/slice/start-exceeds-length.js @@ -16,14 +16,17 @@ info: | var arrayBuffer = new ArrayBuffer(8); -var start = 10, end = 8; +var start = 10, + end = 8; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 0, "slice(10, 8)"); -var start = 0x100000000, end = 7; +var start = 0x100000000, + end = 7; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 0, "slice(0x100000000, 7)"); -var start = +Infinity, end = 6; +var start = +Infinity, + end = 6; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 0, "slice(+Infinity, 6)"); diff --git a/test/built-ins/ArrayBuffer/prototype/slice/tointeger-conversion-end.js b/test/built-ins/ArrayBuffer/prototype/slice/tointeger-conversion-end.js index 4beb7335ff..54e8ab1fa7 100644 --- a/test/built-ins/ArrayBuffer/prototype/slice/tointeger-conversion-end.js +++ b/test/built-ins/ArrayBuffer/prototype/slice/tointeger-conversion-end.js @@ -17,10 +17,12 @@ info: | var arrayBuffer = new ArrayBuffer(8); -var start = 0, end = 4.5; +var start = 0, + end = 4.5; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 4, "slice(0, 4.5)"); -var start = 0, end = NaN; +var start = 0, + end = NaN; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 0, "slice(0, NaN)"); diff --git a/test/built-ins/ArrayBuffer/prototype/slice/tointeger-conversion-start.js b/test/built-ins/ArrayBuffer/prototype/slice/tointeger-conversion-start.js index c775d42315..3150213e6a 100644 --- a/test/built-ins/ArrayBuffer/prototype/slice/tointeger-conversion-start.js +++ b/test/built-ins/ArrayBuffer/prototype/slice/tointeger-conversion-start.js @@ -17,10 +17,12 @@ info: | var arrayBuffer = new ArrayBuffer(8); -var start = 4.5, end = 8; +var start = 4.5, + end = 8; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 4, "slice(4.5, 8)"); -var start = NaN, end = 8; +var start = NaN, + end = 8; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 8, "slice(NaN, 8)"); diff --git a/test/built-ins/AsyncFunction/AsyncFunction-construct.js b/test/built-ins/AsyncFunction/AsyncFunction-construct.js index f839e90f01..bb71ff214b 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 f1e790b2a0..16c64658e6 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 737d3411c0..9eb72139f9 100644 --- a/test/built-ins/AsyncFunction/AsyncFunction-is-subclass.js +++ b/test/built-ins/AsyncFunction/AsyncFunction-is-subclass.js @@ -7,9 +7,8 @@ esid: sec-async-function-constructor description: > %AsyncFunction% is a subclass of Function ---*/ -async function foo() { }; +async function foo() {}; var AsyncFunction = foo.constructor; assert.sameValue(Object.getPrototypeOf(AsyncFunction), Function, "Prototype of constructor is Function"); assert.sameValue(Object.getPrototypeOf(AsyncFunction.prototype), Function.prototype, "Prototype of constructor's prototype is Function.prototype"); assert(foo instanceof Function, 'async function instance is instanceof Function'); - diff --git a/test/built-ins/AsyncFunction/AsyncFunction-length.js b/test/built-ins/AsyncFunction/AsyncFunction-length.js index 60af9c72fd..c6ba9360eb 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 cdc9ab069a..637d1ece14 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 2a2801238d..99a040b3f3 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 2f958c813e..77c5aaef3b 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 5dd8cdb97b..f8e4d7dde6 100644 --- a/test/built-ins/AsyncFunction/AsyncFunctionPrototype-is-extensible.js +++ b/test/built-ins/AsyncFunction/AsyncFunctionPrototype-is-extensible.js @@ -8,7 +8,6 @@ description: > %AsyncFunctionPrototype% has a [[Extensible]] of true ---*/ -var AsyncFunction = async function foo() { }.constructor; +var AsyncFunction = async function foo() {}.constructor; AsyncFunction.prototype.x = 1; assert.sameValue(AsyncFunction.prototype.x, 1); - diff --git a/test/built-ins/AsyncFunction/AsyncFunctionPrototype-prototype.js b/test/built-ins/AsyncFunction/AsyncFunctionPrototype-prototype.js index a917fbd258..327c5ee0fe 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 e2a35b2105..d9e8cb1ecf 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 1ca25171fe..8c5bec687c 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 cf118edae9..1def25c881 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 288ab45343..dd278bd05b 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 3b631ae283..6e14bff3f0 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 baf5140ff5..432ebf9a18 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 2139e57c23..b7aa9cd5ab 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 58cf977f05..ff1805808e 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 f6c30c5529..e0923889a4 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 1528abd3a0..3719f2f900 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 a62233274c..21d834eae9 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 fe91ae8019..1451092a2d 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 bfad491a02..e8435ff2e7 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 476238fe7a..bdcfbac744 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 7184954bf3..8d70354874 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 9fd8b9ab8c..a7538d0117 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 11824fc576..b7964e3610 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 c2d49e1885..a803a6f85b 100644 --- a/test/built-ins/Atomics/compareExchange/good-views.js +++ b/test/built-ins/Atomics/compareExchange/good-views.js @@ -13,62 +13,67 @@ var ab = new ArrayBuffer(16); var int_views = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array]; -var good_indices = [ (view) => 0/-1, // -0 - (view) => '-0', - (view) => view.length - 1, - (view) => ({ valueOf: () => 0 }), - (view) => ({ toString: () => '0', valueOf: false }) // non-callable valueOf triggers invocation of toString - ]; +var good_indices = [(view) => 0 / -1, // -0 + (view) => '-0', + (view) => view.length - 1, + (view) => ({ + valueOf: () => 0 + }), + (view) => ({ + toString: () => '0', + valueOf: false + }) // non-callable valueOf triggers invocation of toString +]; testWithTypedArrayConstructors(function(View) { - // Make it interesting - use non-zero byteOffsets and non-zero indexes. + // Make it interesting - use non-zero byteOffsets and non-zero indexes. - var view = new View(sab, 32, 20); - var control = new View(ab, 0, 2); + var view = new View(sab, 32, 20); + var control = new View(ab, 0, 2); - // Performs the exchange - view[8] = 0; - assert.sameValue(Atomics.compareExchange(view, 8, 0, 10), 0); - assert.sameValue(view[8], 10); + // Performs the exchange + view[8] = 0; + assert.sameValue(Atomics.compareExchange(view, 8, 0, 10), 0); + assert.sameValue(view[8], 10); - view[8] = 0; - assert.sameValue(Atomics.compareExchange(view, 8, 1, 10), 0, - "Does not perform the exchange"); - assert.sameValue(view[8], 0); + view[8] = 0; + assert.sameValue(Atomics.compareExchange(view, 8, 1, 10), 0, + "Does not perform the exchange"); + assert.sameValue(view[8], 0); - view[8] = 0; - assert.sameValue(Atomics.compareExchange(view, 8, 0, -5), 0, - "Performs the exchange, coercing the value being stored"); - control[0] = -5; - assert.sameValue(view[8], control[0]); + view[8] = 0; + assert.sameValue(Atomics.compareExchange(view, 8, 0, -5), 0, + "Performs the exchange, coercing the value being stored"); + control[0] = -5; + assert.sameValue(view[8], control[0]); - view[3] = -5; - control[0] = -5; - assert.sameValue(Atomics.compareExchange(view, 3, -5, 0), control[0], - "Performs the exchange, coercing the value being tested"); - assert.sameValue(view[3], 0); + view[3] = -5; + control[0] = -5; + assert.sameValue(Atomics.compareExchange(view, 3, -5, 0), control[0], + "Performs the exchange, coercing the value being tested"); + assert.sameValue(view[3], 0); - control[0] = 12345; - view[3] = 12345; - assert.sameValue(Atomics.compareExchange(view, 3, 12345, 0), control[0], - "Performs the exchange, chopping the value being tested"); - assert.sameValue(view[3], 0); + control[0] = 12345; + view[3] = 12345; + assert.sameValue(Atomics.compareExchange(view, 3, 12345, 0), control[0], + "Performs the exchange, chopping the value being tested"); + assert.sameValue(view[3], 0); - control[0] = 123456789; - view[3] = 123456789; - assert.sameValue(Atomics.compareExchange(view, 3, 123456789, 0), control[0], - "Performs the exchange, chopping the value being tested"); - assert.sameValue(view[3], 0); + control[0] = 123456789; + view[3] = 123456789; + assert.sameValue(Atomics.compareExchange(view, 3, 123456789, 0), control[0], + "Performs the exchange, chopping the value being tested"); + assert.sameValue(view[3], 0); - // In-bounds boundary cases for indexing - testWithAtomicsInBoundsIndices(function(IdxGen) { - let Idx = IdxGen(view); - view.fill(0); - // Atomics.store() computes an index from Idx in the same way as other - // Atomics operations, not quite like view[Idx]. - Atomics.store(view, Idx, 37); - assert.sameValue(Atomics.compareExchange(view, Idx, 37, 0), 37); - }); + // In-bounds boundary cases for indexing + testWithAtomicsInBoundsIndices(function(IdxGen) { + let Idx = IdxGen(view); + view.fill(0); + // Atomics.store() computes an index from Idx in the same way as other + // Atomics operations, not quite like view[Idx]. + Atomics.store(view, Idx, 37); + assert.sameValue(Atomics.compareExchange(view, Idx, 37, 0), 37); + }); }, int_views); diff --git a/test/built-ins/Atomics/compareExchange/non-views.js b/test/built-ins/Atomics/compareExchange/non-views.js index d579034078..fc51c91eca 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 c3a95b239f..c616509445 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 069e45abb9..059c9301e8 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 4392c1d782..15957b2002 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 f42c98abe5..d8fd39ee9f 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 b8c2b5463a..c4d28a2fa1 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 30b7617d15..e3f7302617 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 03293c2da4..a83b0c4623 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 fb364030c4..fe5ab9aad3 100644 --- a/test/built-ins/Atomics/isLockFree/corner-cases.js +++ b/test/built-ins/Atomics/isLockFree/corner-cases.js @@ -17,14 +17,21 @@ assert.sameValue(Atomics.isLockFree('3'), Atomics.isLockFree(3)); assert.sameValue(Atomics.isLockFree(true), Atomics.isLockFree(1)); -assert.sameValue(Atomics.isLockFree(1), Atomics.isLockFree({valueOf: () => 1})); -assert.sameValue(Atomics.isLockFree(3), Atomics.isLockFree({valueOf: () => 3})); -assert.sameValue(Atomics.isLockFree(1), Atomics.isLockFree({toString: () => '1'})); -assert.sameValue(Atomics.isLockFree(3), Atomics.isLockFree({toString: () => '3'})); +assert.sameValue(Atomics.isLockFree(1), Atomics.isLockFree({ + valueOf: () => 1 +})); +assert.sameValue(Atomics.isLockFree(3), Atomics.isLockFree({ + valueOf: () => 3 +})); +assert.sameValue(Atomics.isLockFree(1), Atomics.isLockFree({ + toString: () => '1' +})); +assert.sameValue(Atomics.isLockFree(3), Atomics.isLockFree({ + toString: () => '3' +})); function hide(k, x) { - if (k) - return hide(k-3, x) + x; - return 0; + if (k) + return hide(k - 3, x) + x; + return 0; } - diff --git a/test/built-ins/Atomics/isLockFree/value.js b/test/built-ins/Atomics/isLockFree/value.js index 4b8164716f..88eca120e0 100644 --- a/test/built-ins/Atomics/isLockFree/value.js +++ b/test/built-ins/Atomics/isLockFree/value.js @@ -7,41 +7,43 @@ description: > Test isLockFree on nonnegative integer arguments ---*/ -var sizes = [ 1, 2, 3, 4, 5, 6, 7, 8, - 9, 10, 11, 12]; -var answers = [ {}, {}, false, true, false, false, false, false, - false, false, false, false]; +var sizes = [1, 2, 3, 4, 5, 6, 7, 8, + 9, 10, 11, 12 +]; +var answers = [{}, {}, false, true, false, false, false, false, + false, false, false, false +]; function testIsLockFree() { - var saved = {}; - - // This should defeat most optimizations. - - for ( var i=0 ; i < sizes.length ; i++ ) { - var v = Atomics.isLockFree(sizes[i]); - var a = answers[i]; - assert.sameValue(typeof v, 'boolean'); - if (typeof a == 'boolean') - assert.sameValue(v, a); - else - saved[sizes[i]] = v; - } - - // This ought to be optimizable. Make sure the answers are the same - // as for the unoptimized case. - - assert.sameValue(Atomics.isLockFree(1), saved[1]); - assert.sameValue(Atomics.isLockFree(2), saved[2]); - assert.sameValue(Atomics.isLockFree(3), false); - assert.sameValue(Atomics.isLockFree(4), true); - assert.sameValue(Atomics.isLockFree(5), false); - assert.sameValue(Atomics.isLockFree(6), false); - assert.sameValue(Atomics.isLockFree(7), false); - assert.sameValue(Atomics.isLockFree(8), false); - assert.sameValue(Atomics.isLockFree(9), false); - assert.sameValue(Atomics.isLockFree(10), false); - assert.sameValue(Atomics.isLockFree(11), false); - assert.sameValue(Atomics.isLockFree(12), false); + var saved = {}; + + // This should defeat most optimizations. + + for (var i = 0; i < sizes.length; i++) { + var v = Atomics.isLockFree(sizes[i]); + var a = answers[i]; + assert.sameValue(typeof v, 'boolean'); + if (typeof a == 'boolean') + assert.sameValue(v, a); + else + saved[sizes[i]] = v; + } + + // This ought to be optimizable. Make sure the answers are the same + // as for the unoptimized case. + + assert.sameValue(Atomics.isLockFree(1), saved[1]); + assert.sameValue(Atomics.isLockFree(2), saved[2]); + assert.sameValue(Atomics.isLockFree(3), false); + assert.sameValue(Atomics.isLockFree(4), true); + assert.sameValue(Atomics.isLockFree(5), false); + assert.sameValue(Atomics.isLockFree(6), false); + assert.sameValue(Atomics.isLockFree(7), false); + assert.sameValue(Atomics.isLockFree(8), false); + assert.sameValue(Atomics.isLockFree(9), false); + assert.sameValue(Atomics.isLockFree(10), false); + assert.sameValue(Atomics.isLockFree(11), false); + assert.sameValue(Atomics.isLockFree(12), false); } testIsLockFree(); diff --git a/test/built-ins/Atomics/load/bad-range.js b/test/built-ins/Atomics/load/bad-range.js index d13ef4b5e3..7f1c7afc73 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 883cd58299..a4e2ad8806 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 28739abbc4..1c4442dbfb 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 05eff959c4..8442ce9493 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 20c33ba16c..726a618d02 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 a9fab884a6..5c3ff9b1b5 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 9c20459c02..6fab1d565e 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 ff73caa0cb..1135faa8e9 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 033174fcf9..a4f34569e3 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 bb649c5e65..0134956277 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 69a402646c..a13f1f177a 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 92e437db34..c39de60aa8 100644 --- a/test/built-ins/Atomics/store/good-views.js +++ b/test/built-ins/Atomics/store/good-views.js @@ -14,43 +14,45 @@ var ab = new ArrayBuffer(16); var int_views = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array]; testWithTypedArrayConstructors(function(View) { - // Make it interesting - use non-zero byteOffsets and non-zero indexes. - - var view = new View(sab, 32, 20); - var control = new View(ab, 0, 2); - - for ( let val of [10, - -5, - 12345, - 123456789, - Math.PI, - "33", - { valueOf: () => 33 }, - undefined] ) - { - assert.sameValue(Atomics.store(view, 3, val), ToInteger(val), - "Atomics.store returns its third argument (" + val + ") converted to Integer, not the input value nor the value that was stored"); - - control[0] = val; - assert.sameValue(view[3], control[0]); - } - - // In-bounds boundary cases for indexing - testWithAtomicsInBoundsIndices(function(IdxGen) { - let Idx = IdxGen(view); - view.fill(0); - Atomics.store(view, Idx, 37); - assert.sameValue(Atomics.load(view, Idx), 37); - }); + // Make it interesting - use non-zero byteOffsets and non-zero indexes. + + var view = new View(sab, 32, 20); + var control = new View(ab, 0, 2); + + for (let val of [10, -5, + 12345, + 123456789, + Math.PI, + "33", + { + valueOf: () => 33 + }, + undefined + ]) + { + assert.sameValue(Atomics.store(view, 3, val), ToInteger(val), + "Atomics.store returns its third argument (" + val + ") converted to Integer, not the input value nor the value that was stored"); + + control[0] = val; + assert.sameValue(view[3], control[0]); + } + + // In-bounds boundary cases for indexing + testWithAtomicsInBoundsIndices(function(IdxGen) { + let Idx = IdxGen(view); + view.fill(0); + Atomics.store(view, Idx, 37); + assert.sameValue(Atomics.load(view, Idx), 37); + }); }, int_views); function ToInteger(v) { - v = +v; - if (isNaN(v)) - return 0; - if (v == 0 || !isFinite(v)) - return v; - if (v < 0) - return -Math.floor(Math.abs(v)); - return Math.floor(v); + v = +v; + if (isNaN(v)) + return 0; + if (v == 0 || !isFinite(v)) + return v; + if (v < 0) + return -Math.floor(Math.abs(v)); + return Math.floor(v); } diff --git a/test/built-ins/Atomics/store/non-views.js b/test/built-ins/Atomics/store/non-views.js index 19fa071f6c..365a7fbba7 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 0153ed2fc1..7bf2f781e3 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 950e1d4426..c34f86024e 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 dabd7789e7..700309fffc 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 efa410344b..18b6982d73 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 55ca5bba85..985b95c00b 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 7383307f7d..70ed90a7da 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 f6c6801588..af237d2cda 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 c4e75dd963..4779b11c99 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 ff6dcf3a8c..ce559e350e 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 c3e773ef32..e1cbdaec91 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 26c32fd20d..e8cb85f8b2 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 edcde9aac1..405eac8bcd 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 b6e9cf0581..4da77da33f 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 c4a5fb4b02..4f6143fc3a 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 5a77ba2f46..b327abbda6 100644 --- a/test/built-ins/Atomics/wait/shared-nonint-views.js +++ b/test/built-ins/Atomics/wait/shared-nonint-views.js @@ -12,11 +12,12 @@ features: [TypedArray] var sab = new SharedArrayBuffer(1024); var other_views = [Int8Array, Uint8Array, Int16Array, Uint16Array, Uint32Array, - Uint8ClampedArray, Float32Array, Float64Array]; + Uint8ClampedArray, Float32Array, Float64Array +]; testWithTypedArrayConstructors(function(View) { - var view = new View(sab); + var view = new View(sab); - // Even with timout zero this should fail - assert.throws(TypeError, (() => Atomics.wait(view, 0, 0, 0))); + // Even with timout zero this should fail + assert.throws(TypeError, (() => Atomics.wait(view, 0, 0, 0))); }, other_views); diff --git a/test/built-ins/Atomics/wait/was-woken.js b/test/built-ins/Atomics/wait/was-woken.js index c2e11cb0ed..156b2617f7 100644 --- a/test/built-ins/Atomics/wait/was-woken.js +++ b/test/built-ins/Atomics/wait/was-woken.js @@ -8,7 +8,7 @@ description: > ---*/ $262.agent.start( -` + ` $262.agent.receiveBroadcast(function (sab, id) { var ia = new Int32Array(sab); $262.agent.report(Atomics.wait(ia, 0, 0)); // No timeout => Infinity @@ -19,14 +19,13 @@ $262.agent.receiveBroadcast(function (sab, id) { var ia = new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT)); $262.agent.broadcast(ia.buffer); -$262.agent.sleep(500); // Give the agent a chance to wait +$262.agent.sleep(500); // Give the agent a chance to wait Atomics.wake(ia, 0); assert.sameValue(getReport(), "ok"); function getReport() { - var r; - while ((r = $262.agent.getReport()) == null) - $262.agent.sleep(100); - return r; + var r; + while ((r = $262.agent.getReport()) == null) + $262.agent.sleep(100); + return r; } - diff --git a/test/built-ins/Atomics/wake/counts.js b/test/built-ins/Atomics/wake/counts.js index d2ee14e0c3..43fa023091 100644 --- a/test/built-ins/Atomics/wake/counts.js +++ b/test/built-ins/Atomics/wake/counts.js @@ -14,5 +14,7 @@ assert.sameValue(Atomics.wake(view, 0, -3), 0); assert.sameValue(Atomics.wake(view, 0, Number.POSITIVE_INFINITY), 0); assert.sameValue(Atomics.wake(view, 0, undefined), 0); assert.sameValue(Atomics.wake(view, 0, "33"), 0); -assert.sameValue(Atomics.wake(view, 0, { valueOf: 8 }), 0); +assert.sameValue(Atomics.wake(view, 0, { + valueOf: 8 +}), 0); assert.sameValue(Atomics.wake(view, 0), 0); diff --git a/test/built-ins/Atomics/wake/good-views.js b/test/built-ins/Atomics/wake/good-views.js index 4c704e0e3c..19ad2f2b37 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 555cd9c802..91461303b1 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 8e86e23858..cffc184e12 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 c5b4521d31..7f8ab41ed9 100644 --- a/test/built-ins/Atomics/wake/shared-nonint-views.js +++ b/test/built-ins/Atomics/wake/shared-nonint-views.js @@ -12,11 +12,12 @@ features: [TypedArray] var sab = new SharedArrayBuffer(1024); var other_views = [Int8Array, Uint8Array, Int16Array, Uint16Array, Uint32Array, - Uint8ClampedArray, Float32Array, Float64Array]; + Uint8ClampedArray, Float32Array, Float64Array +]; testWithTypedArrayConstructors(function(View) { - var view = new View(sab); + var view = new View(sab); - // Even with timout zero this should fail - assert.throws(TypeError, (() => Atomics.wake(view, 0, 0))); // Even with 0 to wake this should fail + // Even with timout zero this should fail + assert.throws(TypeError, (() => Atomics.wake(view, 0, 0))); // Even with 0 to wake this should fail }, other_views); diff --git a/test/built-ins/Atomics/wake/wake-all-on-loc.js b/test/built-ins/Atomics/wake/wake-all-on-loc.js index 55dbd04869..f7378b8885 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 0e013de278..abafe52ad0 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 db56eedc2a..f61eca099c 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 a4e8868ade..252fa91f96 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 49cb060927..de30c7cef3 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 fee30a9549..8223683b9c 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 5d436facb1..75419e067f 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 f2df4033a5..fa76081d36 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 1519869263..c51cf02ee0 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 395eaeacb4..73a3535cbd 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 195baba02e..6cbec2e5e5 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 0ab8b408e0..145286c89f 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 29e7420483..b9b683f3b8 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 cc786ec7f8..de67259c4d 100644 --- a/test/built-ins/BigInt/asIntN/arithmetic.js +++ b/test/built-ins/BigInt/asIntN/arithmetic.js @@ -14,57 +14,53 @@ features: [BigInt] assert.sameValue(BigInt.asIntN(0, -2n), 0n); assert.sameValue(BigInt.asIntN(0, -1n), 0n); -assert.sameValue(BigInt.asIntN(0, 0n), 0n); -assert.sameValue(BigInt.asIntN(0, 1n), 0n); -assert.sameValue(BigInt.asIntN(0, 2n), 0n); +assert.sameValue(BigInt.asIntN(0, 0n), 0n); +assert.sameValue(BigInt.asIntN(0, 1n), 0n); +assert.sameValue(BigInt.asIntN(0, 2n), 0n); assert.sameValue(BigInt.asIntN(1, -3n), -1n); -assert.sameValue(BigInt.asIntN(1, -2n), 0n); +assert.sameValue(BigInt.asIntN(1, -2n), 0n); assert.sameValue(BigInt.asIntN(1, -1n), -1n); -assert.sameValue(BigInt.asIntN(1, 0n), 0n); -assert.sameValue(BigInt.asIntN(1, 1n), -1n); -assert.sameValue(BigInt.asIntN(1, 2n), 0n); -assert.sameValue(BigInt.asIntN(1, 3n), -1n); +assert.sameValue(BigInt.asIntN(1, 0n), 0n); +assert.sameValue(BigInt.asIntN(1, 1n), -1n); +assert.sameValue(BigInt.asIntN(1, 2n), 0n); +assert.sameValue(BigInt.asIntN(1, 3n), -1n); assert.sameValue(BigInt.asIntN(1, -123456789012345678901n), -1n); -assert.sameValue(BigInt.asIntN(1, -123456789012345678900n), 0n); -assert.sameValue(BigInt.asIntN(1, 123456789012345678900n), 0n); -assert.sameValue(BigInt.asIntN(1, 123456789012345678901n), -1n); +assert.sameValue(BigInt.asIntN(1, -123456789012345678900n), 0n); +assert.sameValue(BigInt.asIntN(1, 123456789012345678900n), 0n); +assert.sameValue(BigInt.asIntN(1, 123456789012345678901n), -1n); -assert.sameValue(BigInt.asIntN(2, -3n), 1n); +assert.sameValue(BigInt.asIntN(2, -3n), 1n); assert.sameValue(BigInt.asIntN(2, -2n), -2n); assert.sameValue(BigInt.asIntN(2, -1n), -1n); -assert.sameValue(BigInt.asIntN(2, 0n), 0n); -assert.sameValue(BigInt.asIntN(2, 1n), 1n); -assert.sameValue(BigInt.asIntN(2, 2n), -2n); -assert.sameValue(BigInt.asIntN(2, 3n), -1n); +assert.sameValue(BigInt.asIntN(2, 0n), 0n); +assert.sameValue(BigInt.asIntN(2, 1n), 1n); +assert.sameValue(BigInt.asIntN(2, 2n), -2n); +assert.sameValue(BigInt.asIntN(2, 3n), -1n); assert.sameValue(BigInt.asIntN(2, -123456789012345678901n), -1n); -assert.sameValue(BigInt.asIntN(2, -123456789012345678900n), 0n); -assert.sameValue(BigInt.asIntN(2, 123456789012345678900n), 0n); -assert.sameValue(BigInt.asIntN(2, 123456789012345678901n), 1n); +assert.sameValue(BigInt.asIntN(2, -123456789012345678900n), 0n); +assert.sameValue(BigInt.asIntN(2, 123456789012345678900n), 0n); +assert.sameValue(BigInt.asIntN(2, 123456789012345678901n), 1n); assert.sameValue(BigInt.asIntN(8, 0xabn), -0x55n); assert.sameValue(BigInt.asIntN(8, 0xabcdn), -0x33n); assert.sameValue(BigInt.asIntN(8, 0xabcdef01n), 0x01n); -assert.sameValue(BigInt.asIntN(8, 0xabcdef0123456789abcdef0123n), 0x23n); +assert.sameValue(BigInt.asIntN(8, 0xabcdef0123456789abcdef0123n), 0x23n); assert.sameValue(BigInt.asIntN(8, 0xabcdef0123456789abcdef0183n), -0x7dn); assert.sameValue(BigInt.asIntN(64, 0xabcdef0123456789abcdefn), 0x0123456789abcdefn); assert.sameValue(BigInt.asIntN(65, 0xabcdef0123456789abcdefn), -0xfedcba9876543211n); assert.sameValue(BigInt.asIntN(200, - 0xcffffffffffffffffffffffffffffffffffffffffffffffffffn), - -0x00000000000000000000000000000000000000000000000001n -); + 0xcffffffffffffffffffffffffffffffffffffffffffffffffffn), -0x00000000000000000000000000000000000000000000000001n); assert.sameValue(BigInt.asIntN(201, - 0xcffffffffffffffffffffffffffffffffffffffffffffffffffn), - 0xffffffffffffffffffffffffffffffffffffffffffffffffffn + 0xcffffffffffffffffffffffffffffffffffffffffffffffffffn), + 0xffffffffffffffffffffffffffffffffffffffffffffffffffn ); assert.sameValue(BigInt.asIntN(200, - 0xc89e081df68b65fedb32cffea660e55df9605650a603ad5fc54n), - -0x761f7e209749a0124cd3001599f1aa2069fa9af59fc52a03acn -); + 0xc89e081df68b65fedb32cffea660e55df9605650a603ad5fc54n), -0x761f7e209749a0124cd3001599f1aa2069fa9af59fc52a03acn); assert.sameValue(BigInt.asIntN(201, - 0xc89e081df68b65fedb32cffea660e55df9605650a603ad5fc54n), - 0x89e081df68b65fedb32cffea660e55df9605650a603ad5fc54n + 0xc89e081df68b65fedb32cffea660e55df9605650a603ad5fc54n), + 0x89e081df68b65fedb32cffea660e55df9605650a603ad5fc54n ); diff --git a/test/built-ins/BigInt/asIntN/bigint-tobigint-toprimitive.js b/test/built-ins/BigInt/asIntN/bigint-tobigint-toprimitive.js index e2663a00b6..5846d39f9a 100644 --- a/test/built-ins/BigInt/asIntN/bigint-tobigint-toprimitive.js +++ b/test/built-ins/BigInt/asIntN/bigint-tobigint-toprimitive.js @@ -22,48 +22,48 @@ assert.sameValue(BigInt.asIntN(2, { }, valueOf: err, toString: err -}), 1n, "ToPrimitive: @@toPrimitive takes precedence"); +}), 1 n, "ToPrimitive: @@toPrimitive takes precedence"); assert.sameValue(BigInt.asIntN(2, { valueOf: function() { return "1"; }, toString: err -}), 1n, "ToPrimitive: valueOf takes precedence over toString"); +}), 1 n, "ToPrimitive: valueOf takes precedence over toString"); assert.sameValue(BigInt.asIntN(2, { toString: function() { return "1"; } -}), 1n, "ToPrimitive: toString with no valueOf"); +}), 1 n, "ToPrimitive: toString with no valueOf"); assert.sameValue(BigInt.asIntN(2, { [Symbol.toPrimitive]: undefined, valueOf: function() { return "1"; } -}), 1n, "ToPrimitive: skip @@toPrimitive when it's undefined"); +}), 1 n, "ToPrimitive: skip @@toPrimitive when it's undefined"); assert.sameValue(BigInt.asIntN(2, { [Symbol.toPrimitive]: null, valueOf: function() { return "1"; } -}), 1n, "ToPrimitive: skip @@toPrimitive when it's null"); +}), 1 n, "ToPrimitive: skip @@toPrimitive when it's null"); assert.sameValue(BigInt.asIntN(2, { valueOf: null, toString: function() { return "1"; } -}), 1n, "ToPrimitive: skip valueOf when it's not callable"); +}), 1 n, "ToPrimitive: skip valueOf when it's not callable"); assert.sameValue(BigInt.asIntN(2, { valueOf: 1, toString: function() { return "1"; } -}), 1n, "ToPrimitive: skip valueOf when it's not callable"); +}), 1 n, "ToPrimitive: skip valueOf when it's not callable"); assert.sameValue(BigInt.asIntN(2, { valueOf: {}, toString: function() { return "1"; } -}), 1n, "ToPrimitive: skip valueOf when it's not callable"); +}), 1 n, "ToPrimitive: skip valueOf when it's not callable"); assert.sameValue(BigInt.asIntN(2, { valueOf: function() { return {}; @@ -71,7 +71,7 @@ assert.sameValue(BigInt.asIntN(2, { toString: function() { return "1"; } -}), 1n, "ToPrimitive: skip valueOf when it returns an object"); +}), 1 n, "ToPrimitive: skip valueOf when it returns an object"); assert.sameValue(BigInt.asIntN(2, { valueOf: function() { return Object(12345); @@ -79,7 +79,7 @@ assert.sameValue(BigInt.asIntN(2, { toString: function() { return "1"; } -}), 1n, "ToPrimitive: skip valueOf when it returns an object"); +}), 1 n, "ToPrimitive: skip valueOf when it returns an object"); assert.throws(TypeError, function() { BigInt.asIntN(0, { [Symbol.toPrimitive]: 1 diff --git a/test/built-ins/BigInt/asIntN/bigint-tobigint-wrapped-values.js b/test/built-ins/BigInt/asIntN/bigint-tobigint-wrapped-values.js index 2ee3a6c6bb..f0cd9807d0 100644 --- a/test/built-ins/BigInt/asIntN/bigint-tobigint-wrapped-values.js +++ b/test/built-ins/BigInt/asIntN/bigint-tobigint-wrapped-values.js @@ -10,53 +10,53 @@ info: | features: [BigInt, Symbol.toPrimitive, computed-property-names] ---*/ -assert.sameValue(BigInt.asIntN(2, Object(0n)), 0n, "ToPrimitive: unbox object with internal slot"); +assert.sameValue(BigInt.asIntN(2, Object(0 n)), 0 n, "ToPrimitive: unbox object with internal slot"); assert.sameValue(BigInt.asIntN(2, { [Symbol.toPrimitive]: function() { - return 0n; + return 0 n; } -}), 0n, "ToPrimitive: @@toPrimitive"); +}), 0 n, "ToPrimitive: @@toPrimitive"); assert.sameValue(BigInt.asIntN(2, { valueOf: function() { - return 0n; + return 0 n; } -}), 0n, "ToPrimitive: valueOf"); +}), 0 n, "ToPrimitive: valueOf"); assert.sameValue(BigInt.asIntN(2, { toString: function() { - return 0n; + return 0 n; } -}), 0n, "ToPrimitive: toString"); -assert.sameValue(BigInt.asIntN(2, Object(true)), 1n, +}), 0 n, "ToPrimitive: toString"); +assert.sameValue(BigInt.asIntN(2, Object(true)), 1 n, "ToBigInt: unbox object with internal slot => true => 1n"); assert.sameValue(BigInt.asIntN(2, { [Symbol.toPrimitive]: function() { return true; } -}), 1n, "ToBigInt: @@toPrimitive => true => 1n"); +}), 1 n, "ToBigInt: @@toPrimitive => true => 1n"); assert.sameValue(BigInt.asIntN(2, { valueOf: function() { return true; } -}), 1n, "ToBigInt: valueOf => true => 1n"); +}), 1 n, "ToBigInt: valueOf => true => 1n"); assert.sameValue(BigInt.asIntN(2, { toString: function() { return true; } -}), 1n, "ToBigInt: toString => true => 1n"); -assert.sameValue(BigInt.asIntN(2, Object("1")), 1n, +}), 1 n, "ToBigInt: toString => true => 1n"); +assert.sameValue(BigInt.asIntN(2, Object("1")), 1 n, "ToBigInt: unbox object with internal slot => parse BigInt"); assert.sameValue(BigInt.asIntN(2, { [Symbol.toPrimitive]: function() { return "1"; } -}), 1n, "ToBigInt: @@toPrimitive => parse BigInt"); +}), 1 n, "ToBigInt: @@toPrimitive => parse BigInt"); assert.sameValue(BigInt.asIntN(2, { valueOf: function() { return "1"; } -}), 1n, "ToBigInt: valueOf => parse BigInt"); +}), 1 n, "ToBigInt: valueOf => parse BigInt"); assert.sameValue(BigInt.asIntN(2, { toString: function() { return "1"; } -}), 1n, "ToBigInt: toString => parse BigInt"); +}), 1 n, "ToBigInt: toString => parse BigInt"); diff --git a/test/built-ins/BigInt/asIntN/bits-toindex-errors.js b/test/built-ins/BigInt/asIntN/bits-toindex-errors.js index 892c480175..24c1317be7 100644 --- a/test/built-ins/BigInt/asIntN/bits-toindex-errors.js +++ b/test/built-ins/BigInt/asIntN/bits-toindex-errors.js @@ -11,74 +11,74 @@ features: [BigInt, Symbol, Symbol.toPrimitive, computed-property-names] ---*/ assert.throws(RangeError, function() { - BigInt.asIntN(-1, 0n); + BigInt.asIntN(-1, 0 n); }, "ToIndex: throw when integerIndex < 0"); assert.throws(RangeError, function() { - BigInt.asIntN(-2.5, 0n); + BigInt.asIntN(-2.5, 0 n); }, "ToIndex: throw when integerIndex < 0"); assert.throws(RangeError, function() { - BigInt.asIntN("-2.5", 0n); + BigInt.asIntN("-2.5", 0 n); }, "ToIndex: parse Number => throw when integerIndex < 0"); assert.throws(RangeError, function() { - BigInt.asIntN(-Infinity, 0n); + BigInt.asIntN(-Infinity, 0 n); }, "ToIndex: throw when integerIndex < 0"); assert.throws(RangeError, function() { - BigInt.asIntN(9007199254740992, 0n); + BigInt.asIntN(9007199254740992, 0 n); }, "ToIndex: throw when integerIndex > 2**53-1"); assert.throws(RangeError, function() { - BigInt.asIntN(Infinity, 0n); + BigInt.asIntN(Infinity, 0 n); }, "ToIndex: throw when integerIndex > 2**53-1"); assert.throws(TypeError, function() { - BigInt.asIntN(0n, 0n); + BigInt.asIntN(0 n, 0 n); }, "ToIndex: BigInt => TypeError"); assert.throws(TypeError, function() { - BigInt.asIntN(Object(0n), 0n); + BigInt.asIntN(Object(0 n), 0 n); }, "ToIndex: unbox object with internal slot => BigInt => TypeError"); assert.throws(TypeError, function() { BigInt.asIntN({ [Symbol.toPrimitive]: function() { - return 0n; + return 0 n; } - }, 0n); + }, 0 n); }, "ToIndex: @@toPrimitive => BigInt => TypeError"); assert.throws(TypeError, function() { BigInt.asIntN({ valueOf: function() { - return 0n; + return 0 n; } - }, 0n); + }, 0 n); }, "ToIndex: valueOf => BigInt => TypeError"); assert.throws(TypeError, function() { BigInt.asIntN({ toString: function() { - return 0n; + return 0 n; } - }, 0n); + }, 0 n); }, "ToIndex: toString => BigInt => TypeError"); assert.throws(TypeError, function() { - BigInt.asIntN(Symbol("1"), 0n); + BigInt.asIntN(Symbol("1"), 0 n); }, "ToIndex: Symbol => TypeError"); assert.throws(TypeError, function() { - BigInt.asIntN(Object(Symbol("1")), 0n); + BigInt.asIntN(Object(Symbol("1")), 0 n); }, "ToIndex: unbox object with internal slot => Symbol => TypeError"); assert.throws(TypeError, function() { BigInt.asIntN({ [Symbol.toPrimitive]: function() { return Symbol("1"); } - }, 0n); + }, 0 n); }, "ToIndex: @@toPrimitive => Symbol => TypeError"); assert.throws(TypeError, function() { BigInt.asIntN({ valueOf: function() { return Symbol("1"); } - }, 0n); + }, 0 n); }, "ToIndex: valueOf => Symbol => TypeError"); assert.throws(TypeError, function() { BigInt.asIntN({ toString: function() { return Symbol("1"); } - }, 0n); + }, 0 n); }, "ToIndex: toString => Symbol => TypeError"); diff --git a/test/built-ins/BigInt/asIntN/bits-toindex-toprimitive.js b/test/built-ins/BigInt/asIntN/bits-toindex-toprimitive.js index c6b874a84e..49b0a30411 100644 --- a/test/built-ins/BigInt/asIntN/bits-toindex-toprimitive.js +++ b/test/built-ins/BigInt/asIntN/bits-toindex-toprimitive.js @@ -22,48 +22,48 @@ assert.sameValue(BigInt.asIntN({ }, valueOf: err, toString: err -}, 1n), -1n, "ToPrimitive: @@toPrimitive takes precedence"); +}, 1 n), -1 n, "ToPrimitive: @@toPrimitive takes precedence"); assert.sameValue(BigInt.asIntN({ valueOf: function() { return 1; }, toString: err -}, 1n), -1n, "ToPrimitive: valueOf takes precedence over toString"); +}, 1 n), -1 n, "ToPrimitive: valueOf takes precedence over toString"); assert.sameValue(BigInt.asIntN({ toString: function() { return 1; } -}, 1n), -1n, "ToPrimitive: toString with no valueOf"); +}, 1 n), -1 n, "ToPrimitive: toString with no valueOf"); assert.sameValue(BigInt.asIntN({ [Symbol.toPrimitive]: undefined, valueOf: function() { return 1; } -}, 1n), -1n, "ToPrimitive: skip @@toPrimitive when it's undefined"); +}, 1 n), -1 n, "ToPrimitive: skip @@toPrimitive when it's undefined"); assert.sameValue(BigInt.asIntN({ [Symbol.toPrimitive]: null, valueOf: function() { return 1; } -}, 1n), -1n, "ToPrimitive: skip @@toPrimitive when it's null"); +}, 1 n), -1 n, "ToPrimitive: skip @@toPrimitive when it's null"); assert.sameValue(BigInt.asIntN({ valueOf: null, toString: function() { return 1; } -}, 1n), -1n, "ToPrimitive: skip valueOf when it's not callable"); +}, 1 n), -1 n, "ToPrimitive: skip valueOf when it's not callable"); assert.sameValue(BigInt.asIntN({ valueOf: 1, toString: function() { return 1; } -}, 1n), -1n, "ToPrimitive: skip valueOf when it's not callable"); +}, 1 n), -1 n, "ToPrimitive: skip valueOf when it's not callable"); assert.sameValue(BigInt.asIntN({ valueOf: {}, toString: function() { return 1; } -}, 1n), -1n, "ToPrimitive: skip valueOf when it's not callable"); +}, 1 n), -1 n, "ToPrimitive: skip valueOf when it's not callable"); assert.sameValue(BigInt.asIntN({ valueOf: function() { return {}; @@ -71,7 +71,7 @@ assert.sameValue(BigInt.asIntN({ toString: function() { return 1; } -}, 1n), -1n, "ToPrimitive: skip valueOf when it returns an object"); +}, 1 n), -1 n, "ToPrimitive: skip valueOf when it returns an object"); assert.sameValue(BigInt.asIntN({ valueOf: function() { return Object(12345); @@ -79,69 +79,69 @@ assert.sameValue(BigInt.asIntN({ toString: function() { return 1; } -}, 1n), -1n, "ToPrimitive: skip valueOf when it returns an object"); +}, 1 n), -1 n, "ToPrimitive: skip valueOf when it returns an object"); assert.throws(TypeError, function() { BigInt.asIntN({ [Symbol.toPrimitive]: 1 - }, 0n); + }, 0 n); }, "ToPrimitive: throw when @@toPrimitive is not callable"); assert.throws(TypeError, function() { BigInt.asIntN({ [Symbol.toPrimitive]: {} - }, 0n); + }, 0 n); }, "ToPrimitive: throw when @@toPrimitive is not callable"); assert.throws(TypeError, function() { BigInt.asIntN({ [Symbol.toPrimitive]: function() { return Object(1); } - }, 0n); + }, 0 n); }, "ToPrimitive: throw when @@toPrimitive returns an object"); assert.throws(TypeError, function() { BigInt.asIntN({ [Symbol.toPrimitive]: function() { return {}; } - }, 0n); + }, 0 n); }, "ToPrimitive: throw when @@toPrimitive returns an object"); assert.throws(MyError, function() { BigInt.asIntN({ [Symbol.toPrimitive]: function() { throw new MyError(); } - }, 0n); + }, 0 n); }, "ToPrimitive: propagate errors from @@toPrimitive"); assert.throws(MyError, function() { BigInt.asIntN({ valueOf: function() { throw new MyError(); } - }, 0n); + }, 0 n); }, "ToPrimitive: propagate errors from valueOf"); assert.throws(MyError, function() { BigInt.asIntN({ toString: function() { throw new MyError(); } - }, 0n); + }, 0 n); }, "ToPrimitive: propagate errors from toString"); assert.throws(TypeError, function() { BigInt.asIntN({ valueOf: null, toString: null - }, 0n); + }, 0 n); }, "ToPrimitive: throw when skipping both valueOf and toString"); assert.throws(TypeError, function() { BigInt.asIntN({ valueOf: 1, toString: 1 - }, 0n); + }, 0 n); }, "ToPrimitive: throw when skipping both valueOf and toString"); assert.throws(TypeError, function() { BigInt.asIntN({ valueOf: {}, toString: {} - }, 0n); + }, 0 n); }, "ToPrimitive: throw when skipping both valueOf and toString"); assert.throws(TypeError, function() { BigInt.asIntN({ @@ -151,7 +151,7 @@ assert.throws(TypeError, function() { toString: function() { return Object(1); } - }, 0n); + }, 0 n); }, "ToPrimitive: throw when skipping both valueOf and toString"); assert.throws(TypeError, function() { BigInt.asIntN({ @@ -161,5 +161,5 @@ assert.throws(TypeError, function() { toString: function() { return {}; } - }, 0n); + }, 0 n); }, "ToPrimitive: throw when skipping both valueOf and toString"); diff --git a/test/built-ins/BigInt/asIntN/bits-toindex-wrapped-values.js b/test/built-ins/BigInt/asIntN/bits-toindex-wrapped-values.js index cb9a5832a1..647829e641 100644 --- a/test/built-ins/BigInt/asIntN/bits-toindex-wrapped-values.js +++ b/test/built-ins/BigInt/asIntN/bits-toindex-wrapped-values.js @@ -10,100 +10,100 @@ info: | features: [BigInt, Symbol.toPrimitive, computed-property-names] ---*/ -assert.sameValue(BigInt.asIntN(Object(0), 1n), 0n, "ToPrimitive: unbox object with internal slot"); +assert.sameValue(BigInt.asIntN(Object(0), 1 n), 0 n, "ToPrimitive: unbox object with internal slot"); assert.sameValue(BigInt.asIntN({ [Symbol.toPrimitive]: function() { return 0; } -}, 1n), 0n, "ToPrimitive: @@toPrimitive"); +}, 1 n), 0 n, "ToPrimitive: @@toPrimitive"); assert.sameValue(BigInt.asIntN({ valueOf: function() { return 0; } -}, 1n), 0n, "ToPrimitive: valueOf"); +}, 1 n), 0 n, "ToPrimitive: valueOf"); assert.sameValue(BigInt.asIntN({ toString: function() { return 0; } -}, 1n), 0n, "ToPrimitive: toString"); -assert.sameValue(BigInt.asIntN(Object(NaN), 1n), 0n, +}, 1 n), 0 n, "ToPrimitive: toString"); +assert.sameValue(BigInt.asIntN(Object(NaN), 1 n), 0 n, "ToIndex: unbox object with internal slot => NaN => 0"); assert.sameValue(BigInt.asIntN({ [Symbol.toPrimitive]: function() { return NaN; } -}, 1n), 0n, "ToIndex: @@toPrimitive => NaN => 0"); +}, 1 n), 0 n, "ToIndex: @@toPrimitive => NaN => 0"); assert.sameValue(BigInt.asIntN({ valueOf: function() { return NaN; } -}, 1n), 0n, "ToIndex: valueOf => NaN => 0"); +}, 1 n), 0 n, "ToIndex: valueOf => NaN => 0"); assert.sameValue(BigInt.asIntN({ toString: function() { return NaN; } -}, 1n), 0n, "ToIndex: toString => NaN => 0"); +}, 1 n), 0 n, "ToIndex: toString => NaN => 0"); assert.sameValue(BigInt.asIntN({ [Symbol.toPrimitive]: function() { return undefined; } -}, 1n), 0n, "ToIndex: @@toPrimitive => undefined => NaN => 0"); +}, 1 n), 0 n, "ToIndex: @@toPrimitive => undefined => NaN => 0"); assert.sameValue(BigInt.asIntN({ valueOf: function() { return undefined; } -}, 1n), 0n, "ToIndex: valueOf => undefined => NaN => 0"); +}, 1 n), 0 n, "ToIndex: valueOf => undefined => NaN => 0"); assert.sameValue(BigInt.asIntN({ toString: function() { return undefined; } -}, 1n), 0n, "ToIndex: toString => undefined => NaN => 0"); +}, 1 n), 0 n, "ToIndex: toString => undefined => NaN => 0"); assert.sameValue(BigInt.asIntN({ [Symbol.toPrimitive]: function() { return null; } -}, 1n), 0n, "ToIndex: @@toPrimitive => null => 0"); +}, 1 n), 0 n, "ToIndex: @@toPrimitive => null => 0"); assert.sameValue(BigInt.asIntN({ valueOf: function() { return null; } -}, 1n), 0n, "ToIndex: valueOf => null => 0"); +}, 1 n), 0 n, "ToIndex: valueOf => null => 0"); assert.sameValue(BigInt.asIntN({ toString: function() { return null; } -}, 1n), 0n, "ToIndex: toString => null => 0"); -assert.sameValue(BigInt.asIntN(Object(true), 1n), -1n, +}, 1 n), 0 n, "ToIndex: toString => null => 0"); +assert.sameValue(BigInt.asIntN(Object(true), 1 n), -1 n, "ToIndex: unbox object with internal slot => true => 1"); assert.sameValue(BigInt.asIntN({ [Symbol.toPrimitive]: function() { return true; } -}, 1n), -1n, "ToIndex: @@toPrimitive => true => 1"); +}, 1 n), -1 n, "ToIndex: @@toPrimitive => true => 1"); assert.sameValue(BigInt.asIntN({ valueOf: function() { return true; } -}, 1n), -1n, "ToIndex: valueOf => true => 1"); +}, 1 n), -1 n, "ToIndex: valueOf => true => 1"); assert.sameValue(BigInt.asIntN({ toString: function() { return true; } -}, 1n), -1n, "ToIndex: toString => true => 1"); -assert.sameValue(BigInt.asIntN(Object("1"), 1n), -1n, +}, 1 n), -1 n, "ToIndex: toString => true => 1"); +assert.sameValue(BigInt.asIntN(Object("1"), 1 n), -1 n, "ToIndex: unbox object with internal slot => parse Number"); assert.sameValue(BigInt.asIntN({ [Symbol.toPrimitive]: function() { return "1"; } -}, 1n), -1n, "ToIndex: @@toPrimitive => parse Number"); +}, 1 n), -1 n, "ToIndex: @@toPrimitive => parse Number"); assert.sameValue(BigInt.asIntN({ valueOf: function() { return "1"; } -}, 1n), -1n, "ToIndex: valueOf => parse Number"); +}, 1 n), -1 n, "ToIndex: valueOf => parse Number"); assert.sameValue(BigInt.asIntN({ toString: function() { return "1"; } -}, 1n), -1n, "ToIndex: toString => parse Number"); +}, 1 n), -1 n, "ToIndex: toString => parse Number"); diff --git a/test/built-ins/BigInt/asIntN/bits-toindex.js b/test/built-ins/BigInt/asIntN/bits-toindex.js index b3b8acad92..c2646fbabe 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 5ab7b235c9..9e8154f7b5 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 15bfa47759..65008e1aaf 100644 --- a/test/built-ins/BigInt/asUintN/bigint-tobigint-toprimitive.js +++ b/test/built-ins/BigInt/asUintN/bigint-tobigint-toprimitive.js @@ -22,48 +22,48 @@ assert.sameValue(BigInt.asUintN(2, { }, valueOf: err, toString: err -}), 1n, "ToPrimitive: @@toPrimitive takes precedence"); +}), 1 n, "ToPrimitive: @@toPrimitive takes precedence"); assert.sameValue(BigInt.asUintN(2, { valueOf: function() { return "1"; }, toString: err -}), 1n, "ToPrimitive: valueOf takes precedence over toString"); +}), 1 n, "ToPrimitive: valueOf takes precedence over toString"); assert.sameValue(BigInt.asUintN(2, { toString: function() { return "1"; } -}), 1n, "ToPrimitive: toString with no valueOf"); +}), 1 n, "ToPrimitive: toString with no valueOf"); assert.sameValue(BigInt.asUintN(2, { [Symbol.toPrimitive]: undefined, valueOf: function() { return "1"; } -}), 1n, "ToPrimitive: skip @@toPrimitive when it's undefined"); +}), 1 n, "ToPrimitive: skip @@toPrimitive when it's undefined"); assert.sameValue(BigInt.asUintN(2, { [Symbol.toPrimitive]: null, valueOf: function() { return "1"; } -}), 1n, "ToPrimitive: skip @@toPrimitive when it's null"); +}), 1 n, "ToPrimitive: skip @@toPrimitive when it's null"); assert.sameValue(BigInt.asUintN(2, { valueOf: null, toString: function() { return "1"; } -}), 1n, "ToPrimitive: skip valueOf when it's not callable"); +}), 1 n, "ToPrimitive: skip valueOf when it's not callable"); assert.sameValue(BigInt.asUintN(2, { valueOf: 1, toString: function() { return "1"; } -}), 1n, "ToPrimitive: skip valueOf when it's not callable"); +}), 1 n, "ToPrimitive: skip valueOf when it's not callable"); assert.sameValue(BigInt.asUintN(2, { valueOf: {}, toString: function() { return "1"; } -}), 1n, "ToPrimitive: skip valueOf when it's not callable"); +}), 1 n, "ToPrimitive: skip valueOf when it's not callable"); assert.sameValue(BigInt.asUintN(2, { valueOf: function() { return {}; @@ -71,7 +71,7 @@ assert.sameValue(BigInt.asUintN(2, { toString: function() { return "1"; } -}), 1n, "ToPrimitive: skip valueOf when it returns an object"); +}), 1 n, "ToPrimitive: skip valueOf when it returns an object"); assert.sameValue(BigInt.asUintN(2, { valueOf: function() { return Object(12345); @@ -79,7 +79,7 @@ assert.sameValue(BigInt.asUintN(2, { toString: function() { return "1"; } -}), 1n, "ToPrimitive: skip valueOf when it returns an object"); +}), 1 n, "ToPrimitive: skip valueOf when it returns an object"); assert.throws(TypeError, function() { BigInt.asUintN(0, { [Symbol.toPrimitive]: 1 diff --git a/test/built-ins/BigInt/asUintN/bigint-tobigint-wrapped-values.js b/test/built-ins/BigInt/asUintN/bigint-tobigint-wrapped-values.js index 49741b9397..f7750a4204 100644 --- a/test/built-ins/BigInt/asUintN/bigint-tobigint-wrapped-values.js +++ b/test/built-ins/BigInt/asUintN/bigint-tobigint-wrapped-values.js @@ -10,53 +10,53 @@ info: | features: [BigInt, Symbol.toPrimitive, computed-property-names] ---*/ -assert.sameValue(BigInt.asUintN(2, Object(0n)), 0n, "ToPrimitive: unbox object with internal slot"); +assert.sameValue(BigInt.asUintN(2, Object(0 n)), 0 n, "ToPrimitive: unbox object with internal slot"); assert.sameValue(BigInt.asUintN(2, { [Symbol.toPrimitive]: function() { - return 0n; + return 0 n; } -}), 0n, "ToPrimitive: @@toPrimitive"); +}), 0 n, "ToPrimitive: @@toPrimitive"); assert.sameValue(BigInt.asUintN(2, { valueOf: function() { - return 0n; + return 0 n; } -}), 0n, "ToPrimitive: valueOf"); +}), 0 n, "ToPrimitive: valueOf"); assert.sameValue(BigInt.asUintN(2, { toString: function() { - return 0n; + return 0 n; } -}), 0n, "ToPrimitive: toString"); -assert.sameValue(BigInt.asUintN(2, Object(true)), 1n, +}), 0 n, "ToPrimitive: toString"); +assert.sameValue(BigInt.asUintN(2, Object(true)), 1 n, "ToBigInt: unbox object with internal slot => true => 1n"); assert.sameValue(BigInt.asUintN(2, { [Symbol.toPrimitive]: function() { return true; } -}), 1n, "ToBigInt: @@toPrimitive => true => 1n"); +}), 1 n, "ToBigInt: @@toPrimitive => true => 1n"); assert.sameValue(BigInt.asUintN(2, { valueOf: function() { return true; } -}), 1n, "ToBigInt: valueOf => true => 1n"); +}), 1 n, "ToBigInt: valueOf => true => 1n"); assert.sameValue(BigInt.asUintN(2, { toString: function() { return true; } -}), 1n, "ToBigInt: toString => true => 1n"); -assert.sameValue(BigInt.asUintN(2, Object("1")), 1n, +}), 1 n, "ToBigInt: toString => true => 1n"); +assert.sameValue(BigInt.asUintN(2, Object("1")), 1 n, "ToBigInt: unbox object with internal slot => parse BigInt"); assert.sameValue(BigInt.asUintN(2, { [Symbol.toPrimitive]: function() { return "1"; } -}), 1n, "ToBigInt: @@toPrimitive => parse BigInt"); +}), 1 n, "ToBigInt: @@toPrimitive => parse BigInt"); assert.sameValue(BigInt.asUintN(2, { valueOf: function() { return "1"; } -}), 1n, "ToBigInt: valueOf => parse BigInt"); +}), 1 n, "ToBigInt: valueOf => parse BigInt"); assert.sameValue(BigInt.asUintN(2, { toString: function() { return "1"; } -}), 1n, "ToBigInt: toString => parse BigInt"); +}), 1 n, "ToBigInt: toString => parse BigInt"); diff --git a/test/built-ins/BigInt/asUintN/bits-toindex-errors.js b/test/built-ins/BigInt/asUintN/bits-toindex-errors.js index 9b42b295d1..4ee6e8e731 100644 --- a/test/built-ins/BigInt/asUintN/bits-toindex-errors.js +++ b/test/built-ins/BigInt/asUintN/bits-toindex-errors.js @@ -11,74 +11,74 @@ features: [BigInt, Symbol, Symbol.toPrimitive, computed-property-names] ---*/ assert.throws(RangeError, function() { - BigInt.asUintN(-1, 0n); + BigInt.asUintN(-1, 0 n); }, "ToIndex: throw when integerIndex < 0"); assert.throws(RangeError, function() { - BigInt.asUintN(-2.5, 0n); + BigInt.asUintN(-2.5, 0 n); }, "ToIndex: throw when integerIndex < 0"); assert.throws(RangeError, function() { - BigInt.asUintN("-2.5", 0n); + BigInt.asUintN("-2.5", 0 n); }, "ToIndex: parse Number => throw when integerIndex < 0"); assert.throws(RangeError, function() { - BigInt.asUintN(-Infinity, 0n); + BigInt.asUintN(-Infinity, 0 n); }, "ToIndex: throw when integerIndex < 0"); assert.throws(RangeError, function() { - BigInt.asUintN(9007199254740992, 0n); + BigInt.asUintN(9007199254740992, 0 n); }, "ToIndex: throw when integerIndex > 2**53-1"); assert.throws(RangeError, function() { - BigInt.asUintN(Infinity, 0n); + BigInt.asUintN(Infinity, 0 n); }, "ToIndex: throw when integerIndex > 2**53-1"); assert.throws(TypeError, function() { - BigInt.asUintN(0n, 0n); + BigInt.asUintN(0 n, 0 n); }, "ToIndex: BigInt => TypeError"); assert.throws(TypeError, function() { - BigInt.asUintN(Object(0n), 0n); + BigInt.asUintN(Object(0 n), 0 n); }, "ToIndex: unbox object with internal slot => BigInt => TypeError"); assert.throws(TypeError, function() { BigInt.asUintN({ [Symbol.toPrimitive]: function() { - return 0n; + return 0 n; } - }, 0n); + }, 0 n); }, "ToIndex: @@toPrimitive => BigInt => TypeError"); assert.throws(TypeError, function() { BigInt.asUintN({ valueOf: function() { - return 0n; + return 0 n; } - }, 0n); + }, 0 n); }, "ToIndex: valueOf => BigInt => TypeError"); assert.throws(TypeError, function() { BigInt.asUintN({ toString: function() { - return 0n; + return 0 n; } - }, 0n); + }, 0 n); }, "ToIndex: toString => BigInt => TypeError"); assert.throws(TypeError, function() { - BigInt.asUintN(Symbol("1"), 0n); + BigInt.asUintN(Symbol("1"), 0 n); }, "ToIndex: Symbol => TypeError"); assert.throws(TypeError, function() { - BigInt.asUintN(Object(Symbol("1")), 0n); + BigInt.asUintN(Object(Symbol("1")), 0 n); }, "ToIndex: unbox object with internal slot => Symbol => TypeError"); assert.throws(TypeError, function() { BigInt.asUintN({ [Symbol.toPrimitive]: function() { return Symbol("1"); } - }, 0n); + }, 0 n); }, "ToIndex: @@toPrimitive => Symbol => TypeError"); assert.throws(TypeError, function() { BigInt.asUintN({ valueOf: function() { return Symbol("1"); } - }, 0n); + }, 0 n); }, "ToIndex: valueOf => Symbol => TypeError"); assert.throws(TypeError, function() { BigInt.asUintN({ toString: function() { return Symbol("1"); } - }, 0n); + }, 0 n); }, "ToIndex: toString => Symbol => TypeError"); diff --git a/test/built-ins/BigInt/asUintN/bits-toindex-toprimitive.js b/test/built-ins/BigInt/asUintN/bits-toindex-toprimitive.js index 68a0421a90..d8cde7652a 100644 --- a/test/built-ins/BigInt/asUintN/bits-toindex-toprimitive.js +++ b/test/built-ins/BigInt/asUintN/bits-toindex-toprimitive.js @@ -22,48 +22,48 @@ assert.sameValue(BigInt.asUintN({ }, valueOf: err, toString: err -}, 1n), 1n, "ToPrimitive: @@toPrimitive takes precedence"); +}, 1 n), 1 n, "ToPrimitive: @@toPrimitive takes precedence"); assert.sameValue(BigInt.asUintN({ valueOf: function() { return 1; }, toString: err -}, 1n), 1n, "ToPrimitive: valueOf takes precedence over toString"); +}, 1 n), 1 n, "ToPrimitive: valueOf takes precedence over toString"); assert.sameValue(BigInt.asUintN({ toString: function() { return 1; } -}, 1n), 1n, "ToPrimitive: toString with no valueOf"); +}, 1 n), 1 n, "ToPrimitive: toString with no valueOf"); assert.sameValue(BigInt.asUintN({ [Symbol.toPrimitive]: undefined, valueOf: function() { return 1; } -}, 1n), 1n, "ToPrimitive: skip @@toPrimitive when it's undefined"); +}, 1 n), 1 n, "ToPrimitive: skip @@toPrimitive when it's undefined"); assert.sameValue(BigInt.asUintN({ [Symbol.toPrimitive]: null, valueOf: function() { return 1; } -}, 1n), 1n, "ToPrimitive: skip @@toPrimitive when it's null"); +}, 1 n), 1 n, "ToPrimitive: skip @@toPrimitive when it's null"); assert.sameValue(BigInt.asUintN({ valueOf: null, toString: function() { return 1; } -}, 1n), 1n, "ToPrimitive: skip valueOf when it's not callable"); +}, 1 n), 1 n, "ToPrimitive: skip valueOf when it's not callable"); assert.sameValue(BigInt.asUintN({ valueOf: 1, toString: function() { return 1; } -}, 1n), 1n, "ToPrimitive: skip valueOf when it's not callable"); +}, 1 n), 1 n, "ToPrimitive: skip valueOf when it's not callable"); assert.sameValue(BigInt.asUintN({ valueOf: {}, toString: function() { return 1; } -}, 1n), 1n, "ToPrimitive: skip valueOf when it's not callable"); +}, 1 n), 1 n, "ToPrimitive: skip valueOf when it's not callable"); assert.sameValue(BigInt.asUintN({ valueOf: function() { return {}; @@ -71,7 +71,7 @@ assert.sameValue(BigInt.asUintN({ toString: function() { return 1; } -}, 1n), 1n, "ToPrimitive: skip valueOf when it returns an object"); +}, 1 n), 1 n, "ToPrimitive: skip valueOf when it returns an object"); assert.sameValue(BigInt.asUintN({ valueOf: function() { return Object(12345); @@ -79,69 +79,69 @@ assert.sameValue(BigInt.asUintN({ toString: function() { return 1; } -}, 1n), 1n, "ToPrimitive: skip valueOf when it returns an object"); +}, 1 n), 1 n, "ToPrimitive: skip valueOf when it returns an object"); assert.throws(TypeError, function() { BigInt.asUintN({ [Symbol.toPrimitive]: 1 - }, 0n); + }, 0 n); }, "ToPrimitive: throw when @@toPrimitive is not callable"); assert.throws(TypeError, function() { BigInt.asUintN({ [Symbol.toPrimitive]: {} - }, 0n); + }, 0 n); }, "ToPrimitive: throw when @@toPrimitive is not callable"); assert.throws(TypeError, function() { BigInt.asUintN({ [Symbol.toPrimitive]: function() { return Object(1); } - }, 0n); + }, 0 n); }, "ToPrimitive: throw when @@toPrimitive returns an object"); assert.throws(TypeError, function() { BigInt.asUintN({ [Symbol.toPrimitive]: function() { return {}; } - }, 0n); + }, 0 n); }, "ToPrimitive: throw when @@toPrimitive returns an object"); assert.throws(MyError, function() { BigInt.asUintN({ [Symbol.toPrimitive]: function() { throw new MyError(); } - }, 0n); + }, 0 n); }, "ToPrimitive: propagate errors from @@toPrimitive"); assert.throws(MyError, function() { BigInt.asUintN({ valueOf: function() { throw new MyError(); } - }, 0n); + }, 0 n); }, "ToPrimitive: propagate errors from valueOf"); assert.throws(MyError, function() { BigInt.asUintN({ toString: function() { throw new MyError(); } - }, 0n); + }, 0 n); }, "ToPrimitive: propagate errors from toString"); assert.throws(TypeError, function() { BigInt.asUintN({ valueOf: null, toString: null - }, 0n); + }, 0 n); }, "ToPrimitive: throw when skipping both valueOf and toString"); assert.throws(TypeError, function() { BigInt.asUintN({ valueOf: 1, toString: 1 - }, 0n); + }, 0 n); }, "ToPrimitive: throw when skipping both valueOf and toString"); assert.throws(TypeError, function() { BigInt.asUintN({ valueOf: {}, toString: {} - }, 0n); + }, 0 n); }, "ToPrimitive: throw when skipping both valueOf and toString"); assert.throws(TypeError, function() { BigInt.asUintN({ @@ -151,7 +151,7 @@ assert.throws(TypeError, function() { toString: function() { return Object(1); } - }, 0n); + }, 0 n); }, "ToPrimitive: throw when skipping both valueOf and toString"); assert.throws(TypeError, function() { BigInt.asUintN({ @@ -161,5 +161,5 @@ assert.throws(TypeError, function() { toString: function() { return {}; } - }, 0n); + }, 0 n); }, "ToPrimitive: throw when skipping both valueOf and toString"); diff --git a/test/built-ins/BigInt/asUintN/bits-toindex-wrapped-values.js b/test/built-ins/BigInt/asUintN/bits-toindex-wrapped-values.js index 3b78835cd0..d6d78b3178 100644 --- a/test/built-ins/BigInt/asUintN/bits-toindex-wrapped-values.js +++ b/test/built-ins/BigInt/asUintN/bits-toindex-wrapped-values.js @@ -10,100 +10,100 @@ info: | features: [BigInt, Symbol.toPrimitive, computed-property-names] ---*/ -assert.sameValue(BigInt.asUintN(Object(0), 1n), 0n, "ToPrimitive: unbox object with internal slot"); +assert.sameValue(BigInt.asUintN(Object(0), 1 n), 0 n, "ToPrimitive: unbox object with internal slot"); assert.sameValue(BigInt.asUintN({ [Symbol.toPrimitive]: function() { return 0; } -}, 1n), 0n, "ToPrimitive: @@toPrimitive"); +}, 1 n), 0 n, "ToPrimitive: @@toPrimitive"); assert.sameValue(BigInt.asUintN({ valueOf: function() { return 0; } -}, 1n), 0n, "ToPrimitive: valueOf"); +}, 1 n), 0 n, "ToPrimitive: valueOf"); assert.sameValue(BigInt.asUintN({ toString: function() { return 0; } -}, 1n), 0n, "ToPrimitive: toString"); -assert.sameValue(BigInt.asUintN(Object(NaN), 1n), 0n, +}, 1 n), 0 n, "ToPrimitive: toString"); +assert.sameValue(BigInt.asUintN(Object(NaN), 1 n), 0 n, "ToIndex: unbox object with internal slot => NaN => 0"); assert.sameValue(BigInt.asUintN({ [Symbol.toPrimitive]: function() { return NaN; } -}, 1n), 0n, "ToIndex: @@toPrimitive => NaN => 0"); +}, 1 n), 0 n, "ToIndex: @@toPrimitive => NaN => 0"); assert.sameValue(BigInt.asUintN({ valueOf: function() { return NaN; } -}, 1n), 0n, "ToIndex: valueOf => NaN => 0"); +}, 1 n), 0 n, "ToIndex: valueOf => NaN => 0"); assert.sameValue(BigInt.asUintN({ toString: function() { return NaN; } -}, 1n), 0n, "ToIndex: toString => NaN => 0"); +}, 1 n), 0 n, "ToIndex: toString => NaN => 0"); assert.sameValue(BigInt.asUintN({ [Symbol.toPrimitive]: function() { return undefined; } -}, 1n), 0n, "ToIndex: @@toPrimitive => undefined => NaN => 0"); +}, 1 n), 0 n, "ToIndex: @@toPrimitive => undefined => NaN => 0"); assert.sameValue(BigInt.asUintN({ valueOf: function() { return undefined; } -}, 1n), 0n, "ToIndex: valueOf => undefined => NaN => 0"); +}, 1 n), 0 n, "ToIndex: valueOf => undefined => NaN => 0"); assert.sameValue(BigInt.asUintN({ toString: function() { return undefined; } -}, 1n), 0n, "ToIndex: toString => undefined => NaN => 0"); +}, 1 n), 0 n, "ToIndex: toString => undefined => NaN => 0"); assert.sameValue(BigInt.asUintN({ [Symbol.toPrimitive]: function() { return null; } -}, 1n), 0n, "ToIndex: @@toPrimitive => null => 0"); +}, 1 n), 0 n, "ToIndex: @@toPrimitive => null => 0"); assert.sameValue(BigInt.asUintN({ valueOf: function() { return null; } -}, 1n), 0n, "ToIndex: valueOf => null => 0"); +}, 1 n), 0 n, "ToIndex: valueOf => null => 0"); assert.sameValue(BigInt.asUintN({ toString: function() { return null; } -}, 1n), 0n, "ToIndex: toString => null => 0"); -assert.sameValue(BigInt.asUintN(Object(true), 1n), 1n, +}, 1 n), 0 n, "ToIndex: toString => null => 0"); +assert.sameValue(BigInt.asUintN(Object(true), 1 n), 1 n, "ToIndex: unbox object with internal slot => true => 1"); assert.sameValue(BigInt.asUintN({ [Symbol.toPrimitive]: function() { return true; } -}, 1n), 1n, "ToIndex: @@toPrimitive => true => 1"); +}, 1 n), 1 n, "ToIndex: @@toPrimitive => true => 1"); assert.sameValue(BigInt.asUintN({ valueOf: function() { return true; } -}, 1n), 1n, "ToIndex: valueOf => true => 1"); +}, 1 n), 1 n, "ToIndex: valueOf => true => 1"); assert.sameValue(BigInt.asUintN({ toString: function() { return true; } -}, 1n), 1n, "ToIndex: toString => true => 1"); -assert.sameValue(BigInt.asUintN(Object("1"), 1n), 1n, +}, 1 n), 1 n, "ToIndex: toString => true => 1"); +assert.sameValue(BigInt.asUintN(Object("1"), 1 n), 1 n, "ToIndex: unbox object with internal slot => parse Number"); assert.sameValue(BigInt.asUintN({ [Symbol.toPrimitive]: function() { return "1"; } -}, 1n), 1n, "ToIndex: @@toPrimitive => parse Number"); +}, 1 n), 1 n, "ToIndex: @@toPrimitive => parse Number"); assert.sameValue(BigInt.asUintN({ valueOf: function() { return "1"; } -}, 1n), 1n, "ToIndex: valueOf => parse Number"); +}, 1 n), 1 n, "ToIndex: valueOf => parse Number"); assert.sameValue(BigInt.asUintN({ toString: function() { return "1"; } -}, 1n), 1n, "ToIndex: toString => parse Number"); +}, 1 n), 1 n, "ToIndex: toString => parse Number"); diff --git a/test/built-ins/BigInt/asUintN/bits-toindex.js b/test/built-ins/BigInt/asUintN/bits-toindex.js index 7d774bc33e..7318fc88e8 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 95b89af322..b3a02ab0b8 100644 --- a/test/built-ins/BigInt/call-value-of-when-to-string-present.js +++ b/test/built-ins/BigInt/call-value-of-when-to-string-present.js @@ -22,4 +22,3 @@ let o = { } assert.sameValue(BigInt(o), 44n); - diff --git a/test/built-ins/BigInt/constructor-empty-string.js b/test/built-ins/BigInt/constructor-empty-string.js index 73abca3735..e8b2fb52b4 100644 --- a/test/built-ins/BigInt/constructor-empty-string.js +++ b/test/built-ins/BigInt/constructor-empty-string.js @@ -14,4 +14,3 @@ features: [BigInt] assert.sameValue(BigInt(""), 0n); assert.sameValue(BigInt(" "), 0n); - diff --git a/test/built-ins/BigInt/constructor-from-binary-string.js b/test/built-ins/BigInt/constructor-from-binary-string.js index 6e30de3bf4..35cfda0acb 100644 --- a/test/built-ins/BigInt/constructor-from-binary-string.js +++ b/test/built-ins/BigInt/constructor-from-binary-string.js @@ -20,7 +20,7 @@ assert.sameValue(BigInt("0b1"), 1n); let binaryString = "0b1"; for (let i = 0; i < 128; i++) - binaryString += "0"; + binaryString += "0"; assert.sameValue(BigInt(binaryString), 340282366920938463463374607431768211456n); @@ -31,7 +31,6 @@ assert.sameValue(BigInt("0B1"), 1n); binaryString = "0B1"; for (let i = 0; i < 128; i++) - binaryString += "0"; + binaryString += "0"; assert.sameValue(BigInt(binaryString), 340282366920938463463374607431768211456n); - diff --git a/test/built-ins/BigInt/constructor-from-decimal-string.js b/test/built-ins/BigInt/constructor-from-decimal-string.js index 34ad017956..c732b7f7aa 100644 --- a/test/built-ins/BigInt/constructor-from-decimal-string.js +++ b/test/built-ins/BigInt/constructor-from-decimal-string.js @@ -24,4 +24,3 @@ assert.sameValue(BigInt("-18446744073709551616"), -18446744073709551616n); assert.sameValue(BigInt("-7"), -7n); assert.sameValue(BigInt("-88"), -88n); assert.sameValue(BigInt("-900"), -900n); - diff --git a/test/built-ins/BigInt/constructor-from-hex-string.js b/test/built-ins/BigInt/constructor-from-hex-string.js index 4ae408ee2a..f26b9d2698 100644 --- a/test/built-ins/BigInt/constructor-from-hex-string.js +++ b/test/built-ins/BigInt/constructor-from-hex-string.js @@ -22,4 +22,3 @@ assert.sameValue(BigInt("0Xa"), 10n); assert.sameValue(BigInt("0Xff"), 255n); assert.sameValue(BigInt("0Xfabc"), 64188n); assert.sameValue(BigInt("0Xfffffffffffffffffff"), 75557863725914323419135n); - diff --git a/test/built-ins/BigInt/constructor-from-octal-string.js b/test/built-ins/BigInt/constructor-from-octal-string.js index aada81a52d..59d18c64d1 100644 --- a/test/built-ins/BigInt/constructor-from-octal-string.js +++ b/test/built-ins/BigInt/constructor-from-octal-string.js @@ -20,4 +20,3 @@ assert.sameValue(BigInt("0o20"), 16n); assert.sameValue(BigInt("0O7"), 7n); assert.sameValue(BigInt("0O10"), 8n); assert.sameValue(BigInt("0O20"), 16n); - diff --git a/test/built-ins/BigInt/constructor-trailing-leading-spaces.js b/test/built-ins/BigInt/constructor-trailing-leading-spaces.js index ccdad852be..8db1a76ea6 100644 --- a/test/built-ins/BigInt/constructor-trailing-leading-spaces.js +++ b/test/built-ins/BigInt/constructor-trailing-leading-spaces.js @@ -18,4 +18,3 @@ assert.sameValue(BigInt("18446744073709551616 "), 18446744073709551616n); assert.sameValue(BigInt(" 7 "), 7n); assert.sameValue(BigInt(" -197 "), -197n); assert.sameValue(BigInt(" "), 0n); - diff --git a/test/built-ins/BigInt/new-target-throws.js b/test/built-ins/BigInt/new-target-throws.js index a240eecb7d..aaf91b1174 100644 --- a/test/built-ins/BigInt/new-target-throws.js +++ b/test/built-ins/BigInt/new-target-throws.js @@ -16,6 +16,8 @@ assert.throws(TypeError, function() { assert.throws(TypeError, function() { new BigInt({ - valueOf: function() { throw new Test262Error("unreachable"); } + valueOf: function() { + throw new Test262Error("unreachable"); + } }); }); diff --git a/test/built-ins/BigInt/prototype/Symbol.toStringTag.js b/test/built-ins/BigInt/prototype/Symbol.toStringTag.js index 1463697192..835e35224c 100644 --- a/test/built-ins/BigInt/prototype/Symbol.toStringTag.js +++ b/test/built-ins/BigInt/prototype/Symbol.toStringTag.js @@ -21,8 +21,8 @@ verifyProperty(BigInt.prototype, Symbol.toStringTag, { configurable: true }); -assert.sameValue(Object.prototype.toString.call(3n), "[object BigInt]"); -assert.sameValue(Object.prototype.toString.call(Object(3n)), "[object BigInt]"); +assert.sameValue(Object.prototype.toString.call(3 n), "[object BigInt]"); +assert.sameValue(Object.prototype.toString.call(Object(3 n)), "[object BigInt]"); // Verify that Object.prototype.toString does not have special casing for BigInt // as it does for most other primitive types @@ -33,5 +33,5 @@ Object.defineProperty(BigInt.prototype, Symbol.toStringTag, { configurable: true }); -assert.sameValue(Object.prototype.toString.call(3n), "[object FooBar]"); -assert.sameValue(Object.prototype.toString.call(Object(3n)), "[object FooBar]"); +assert.sameValue(Object.prototype.toString.call(3 n), "[object FooBar]"); +assert.sameValue(Object.prototype.toString.call(Object(3 n)), "[object FooBar]"); diff --git a/test/built-ins/BigInt/prototype/toString/thisbigintvalue-not-valid-throws.js b/test/built-ins/BigInt/prototype/toString/thisbigintvalue-not-valid-throws.js index 78ae9bd680..f67ca293c4 100644 --- a/test/built-ins/BigInt/prototype/toString/thisbigintvalue-not-valid-throws.js +++ b/test/built-ins/BigInt/prototype/toString/thisbigintvalue-not-valid-throws.js @@ -22,17 +22,25 @@ features: [BigInt, Symbol.toPrimitive] var toString = BigInt.prototype.toString; assert.throws(TypeError, function() { - toString.call({x: 1n}); + toString.call({ + x: 1 n + }); }, '{x: 1n}'); assert.throws(TypeError, function() { - toString.call([1n]); + toString.call([1 n]); }, '[1n]'); var obj = { - valueOf: function() { throw new Test262Error('no [[BigIntData]]') }, - toString: function() { throw new Test262Error('no [[BigIntData]]') }, - [Symbol.toPrimitive]: function() { throw new Test262Error('no [[BigIntData]]') } + valueOf: function() { + throw new Test262Error('no [[BigIntData]]') + }, + toString: function() { + throw new Test262Error('no [[BigIntData]]') + }, + [Symbol.toPrimitive]: function() { + throw new Test262Error('no [[BigIntData]]') + } }; assert.throws(TypeError, function() { toString.call(obj); diff --git a/test/built-ins/BigInt/prototype/valueOf/return.js b/test/built-ins/BigInt/prototype/valueOf/return.js index de7336057c..887b5f921e 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 690b0fa944..671a9b94ca 100644 --- a/test/built-ins/BigInt/value-of-throws.js +++ b/test/built-ins/BigInt/value-of-throws.js @@ -14,13 +14,16 @@ features: [BigInt] assert.throws(Test262Error, function() { BigInt({ - valueOf: function() { throw new Test262Error(); } + valueOf: function() { + throw new Test262Error(); + } }); }); assert.throws(Test262Error, function() { BigInt({ - toString: function() { throw new Test262Error(); } + toString: function() { + throw new Test262Error(); + } }); }); - diff --git a/test/built-ins/Boolean/S15.6.1.1_A1_T1.js b/test/built-ins/Boolean/S15.6.1.1_A1_T1.js index 64461bc2eb..c19b7eefe5 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 375786f57c..e9dc0bb55b 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 56e6633672..ab9b2a1b33 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 dc85899bf0..18a8bf587b 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 cd1686531b..f465fbb22a 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 9e5aa40618..6d91cb6d75 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 787b6a1c7d..fc5d516d5a 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 25168c58d9..6d56be832d 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 097fff4fbb..5937d38e5c 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 980936ebe9..7dc740ee17 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 080daa3eb8..218632c660 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 fa1b305389..cf32db61ab 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 d949b83b62..399a3676c8 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 7331619e9f..df5ad2fe80 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 ae3cded491..8ada5d7462 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 c13b361d1b..f3df79be20 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 382dc7cd28..277cf2646b 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 a6dca911df..99776dd85f 100644 --- a/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A2_T5.js +++ b/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A2_T5.js @@ -12,27 +12,31 @@ description: transferring to the other objects ---*/ //CHECK#1 -try{ - var s1 = {x: 1}; +try { + var s1 = { + x: 1 + }; s1.toString = Boolean.prototype.toString; var v1 = s1.toString(); $ERROR('#1: Boolean.prototype.toString on not a Boolean object should throw TypeError'); } -catch(e){ - if(!(e instanceof TypeError)){ - $ERROR('#1: Boolean.prototype.toString on not a Boolean object should throw TypeError, not '+e); +catch (e) { + if (!(e instanceof TypeError)) { + $ERROR('#1: Boolean.prototype.toString on not a Boolean object should throw TypeError, not ' + e); } } //CHECK#1 -try{ - var s2 = {x: 1}; +try { + var s2 = { + x: 1 + }; s2.myToString = Boolean.prototype.toString; var v2 = s2.myToString(); $ERROR('#2: Boolean.prototype.toString on not a Boolean object should throw TypeError'); } -catch(e){ - if(!(e instanceof TypeError)){ - $ERROR('#2: Boolean.prototype.toString on not a Boolean object should throw TypeError, not '+e); +catch (e) { + if (!(e instanceof TypeError)) { + $ERROR('#2: Boolean.prototype.toString on not a Boolean object should throw TypeError, not ' + e); } } diff --git a/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A1_T1.js b/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A1_T1.js index 257721b866..743e1966c0 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 2cdc5fe692..095d0daaaa 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 f878faef28..0651f8cb35 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 3596de93bb..6e2af85b2e 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 560843e415..f66950631b 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 93f19a68ae..816ef97d71 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 138ed48c22..3f645a0bf0 100644 --- a/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A2_T5.js +++ b/test/built-ins/Boolean/prototype/valueOf/S15.6.4.3_A2_T5.js @@ -12,27 +12,31 @@ description: transferring to the other objects ---*/ //CHECK#1 -try{ - var s1 = {x: 1}; +try { + var s1 = { + x: 1 + }; s1.valueOf = Boolean.prototype.valueOf; var v1 = s1.valueOf(); $ERROR('#1: Boolean.prototype.valueOf on not a Boolean object should throw TypeError'); } -catch(e){ - if(!(e instanceof TypeError)){ - $ERROR('#1: Boolean.prototype.valueOf on not a Boolean object should throw TypeError, not '+e); +catch (e) { + if (!(e instanceof TypeError)) { + $ERROR('#1: Boolean.prototype.valueOf on not a Boolean object should throw TypeError, not ' + e); } } //CHECK#1 -try{ - var s2 = {x: 1}; +try { + var s2 = { + x: 1 + }; s2.myValueOf = Boolean.prototype.valueOf; var v2 = s2.myValueOf(); $ERROR('#2: Boolean.prototype.valueOf on not a Boolean object should throw TypeError'); } -catch(e){ - if(!(e instanceof TypeError)){ - $ERROR('#2: Boolean.prototype.valueOf on not a Boolean object should throw TypeError, not '+e); +catch (e) { + if (!(e instanceof TypeError)) { + $ERROR('#2: Boolean.prototype.valueOf on not a Boolean object should throw TypeError, not ' + e); } } diff --git a/test/built-ins/DataView/prototype/getBigInt64/detached-buffer-after-toindex-byteoffset.js b/test/built-ins/DataView/prototype/getBigInt64/detached-buffer-after-toindex-byteoffset.js index 163513c770..2e493d64ef 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 e2aae64359..b25d05470b 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 ed1b5a8c64..53fd563ae3 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 57e75e8e95..5172653142 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 eb466a69d1..2b17f822b3 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 51a723d82e..6e71746c8d 100644 --- a/test/built-ins/DataView/prototype/getBigInt64/return-abrupt-from-tonumber-byteoffset.js +++ b/test/built-ins/DataView/prototype/getBigInt64/return-abrupt-from-tonumber-byteoffset.js @@ -23,8 +23,16 @@ features: [DataView, ArrayBuffer, BigInt, arrow-function] var buffer = new ArrayBuffer(1); var sample = new DataView(buffer, 0); -var bo1 = { valueOf() { throw new Test262Error(); } }; -var bo2 = { toString() { throw new Test262Error(); } }; +var bo1 = { + valueOf() { + throw new Test262Error(); + } +}; +var bo2 = { + toString() { + throw new Test262Error(); + } +}; assert.throws(Test262Error, () => sample.getBigInt64(bo1), "valueOf"); diff --git a/test/built-ins/DataView/prototype/getBigInt64/return-value-clean-arraybuffer.js b/test/built-ins/DataView/prototype/getBigInt64/return-value-clean-arraybuffer.js index ceb1311041..14e27dad61 100644 --- a/test/built-ins/DataView/prototype/getBigInt64/return-value-clean-arraybuffer.js +++ b/test/built-ins/DataView/prototype/getBigInt64/return-value-clean-arraybuffer.js @@ -36,13 +36,13 @@ features: [DataView, ArrayBuffer, BigInt] var buffer = new ArrayBuffer(12); var sample = new DataView(buffer, 0); -assert.sameValue(sample.getBigInt64(0, true), 0n, "sample.getBigInt64(0, true)"); -assert.sameValue(sample.getBigInt64(1, true), 0n, "sample.getBigInt64(1, true)"); -assert.sameValue(sample.getBigInt64(2, true), 0n, "sample.getBigInt64(2, true)"); -assert.sameValue(sample.getBigInt64(3, true), 0n, "sample.getBigInt64(3, true)"); -assert.sameValue(sample.getBigInt64(4, true), 0n, "sample.getBigInt64(4, true)"); -assert.sameValue(sample.getBigInt64(0, false), 0n, "sample.getBigInt64(0, false)"); -assert.sameValue(sample.getBigInt64(1, false), 0n, "sample.getBigInt64(1, false)"); -assert.sameValue(sample.getBigInt64(2, false), 0n, "sample.getBigInt64(2, false)"); -assert.sameValue(sample.getBigInt64(3, false), 0n, "sample.getBigInt64(3, false)"); -assert.sameValue(sample.getBigInt64(4, false), 0n, "sample.getBigInt64(4, false)"); +assert.sameValue(sample.getBigInt64(0, true), 0 n, "sample.getBigInt64(0, true)"); +assert.sameValue(sample.getBigInt64(1, true), 0 n, "sample.getBigInt64(1, true)"); +assert.sameValue(sample.getBigInt64(2, true), 0 n, "sample.getBigInt64(2, true)"); +assert.sameValue(sample.getBigInt64(3, true), 0 n, "sample.getBigInt64(3, true)"); +assert.sameValue(sample.getBigInt64(4, true), 0 n, "sample.getBigInt64(4, true)"); +assert.sameValue(sample.getBigInt64(0, false), 0 n, "sample.getBigInt64(0, false)"); +assert.sameValue(sample.getBigInt64(1, false), 0 n, "sample.getBigInt64(1, false)"); +assert.sameValue(sample.getBigInt64(2, false), 0 n, "sample.getBigInt64(2, false)"); +assert.sameValue(sample.getBigInt64(3, false), 0 n, "sample.getBigInt64(3, false)"); +assert.sameValue(sample.getBigInt64(4, false), 0 n, "sample.getBigInt64(4, false)"); diff --git a/test/built-ins/DataView/prototype/getBigInt64/return-values-custom-offset.js b/test/built-ins/DataView/prototype/getBigInt64/return-values-custom-offset.js index daa5790ae9..d6fcf8f710 100644 --- a/test/built-ins/DataView/prototype/getBigInt64/return-values-custom-offset.js +++ b/test/built-ins/DataView/prototype/getBigInt64/return-values-custom-offset.js @@ -55,14 +55,14 @@ sample.setUint8(15, 0x80); sample = new DataView(buffer, 4); -assert.sameValue(sample.getBigInt64(0, false), -0x7fff7ffe80fffefen, "0, false"); -assert.sameValue(sample.getBigInt64(1, false), 0x80017f00010280n, "1, false"); -assert.sameValue(sample.getBigInt64(2, false), -0x7ffe80fffefd7f81n, "2, false"); -assert.sameValue(sample.getBigInt64(3, false), 0x17f000102807fffn, "3, false"); -assert.sameValue(sample.getBigInt64(4, false), 0x7f000102807fff80n, "4, false"); +assert.sameValue(sample.getBigInt64(0, false), -0x7fff7ffe80fffefe n, "0, false"); +assert.sameValue(sample.getBigInt64(1, false), 0x80017f00010280 n, "1, false"); +assert.sameValue(sample.getBigInt64(2, false), -0x7ffe80fffefd7f81 n, "2, false"); +assert.sameValue(sample.getBigInt64(3, false), 0x17f000102807fff n, "3, false"); +assert.sameValue(sample.getBigInt64(4, false), 0x7f000102807fff80 n, "4, false"); -assert.sameValue(sample.getBigInt64(0, true), 0x201007f01800080n, "0, true"); -assert.sameValue(sample.getBigInt64(1, true), -0x7ffdfeff80fe8000n, "1, true"); -assert.sameValue(sample.getBigInt64(2, true), 0x7f800201007f0180n, "2, true"); -assert.sameValue(sample.getBigInt64(3, true), -0x807ffdfeff80ffn, "3, true"); -assert.sameValue(sample.getBigInt64(4, true), -0x7f00807ffdfeff81n, "4, true"); +assert.sameValue(sample.getBigInt64(0, true), 0x201007f01800080 n, "0, true"); +assert.sameValue(sample.getBigInt64(1, true), -0x7ffdfeff80fe8000 n, "1, true"); +assert.sameValue(sample.getBigInt64(2, true), 0x7f800201007f0180 n, "2, true"); +assert.sameValue(sample.getBigInt64(3, true), -0x807ffdfeff80ff n, "3, true"); +assert.sameValue(sample.getBigInt64(4, true), -0x7f00807ffdfeff81 n, "4, true"); diff --git a/test/built-ins/DataView/prototype/getBigInt64/return-values.js b/test/built-ins/DataView/prototype/getBigInt64/return-values.js index a9b6fdd836..66a7ee0082 100644 --- a/test/built-ins/DataView/prototype/getBigInt64/return-values.js +++ b/test/built-ins/DataView/prototype/getBigInt64/return-values.js @@ -48,22 +48,22 @@ sample.setUint8(13, 0x7f); sample.setUint8(14, 0xff); sample.setUint8(15, 0x80); -assert.sameValue(sample.getBigInt64(0, false), 0x2702060280008001n, "0, false"); -assert.sameValue(sample.getBigInt64(1, false), 0x20602800080017fn, "1, false"); -assert.sameValue(sample.getBigInt64(2, false), 0x602800080017f00n, "2, false"); -assert.sameValue(sample.getBigInt64(3, false), 0x2800080017f0001n, "3, false"); -assert.sameValue(sample.getBigInt64(4, false), -0x7fff7ffe80fffefen, "4, false"); -assert.sameValue(sample.getBigInt64(5, false), 0x80017f00010280n, "5, false"); -assert.sameValue(sample.getBigInt64(6, false), -0x7ffe80fffefd7f81n, "6, false"); -assert.sameValue(sample.getBigInt64(7, false), 0x17f000102807fffn, "7, false"); -assert.sameValue(sample.getBigInt64(8, false), 0x7f000102807fff80n, "8, false"); +assert.sameValue(sample.getBigInt64(0, false), 0x2702060280008001 n, "0, false"); +assert.sameValue(sample.getBigInt64(1, false), 0x20602800080017f n, "1, false"); +assert.sameValue(sample.getBigInt64(2, false), 0x602800080017f00 n, "2, false"); +assert.sameValue(sample.getBigInt64(3, false), 0x2800080017f0001 n, "3, false"); +assert.sameValue(sample.getBigInt64(4, false), -0x7fff7ffe80fffefe n, "4, false"); +assert.sameValue(sample.getBigInt64(5, false), 0x80017f00010280 n, "5, false"); +assert.sameValue(sample.getBigInt64(6, false), -0x7ffe80fffefd7f81 n, "6, false"); +assert.sameValue(sample.getBigInt64(7, false), 0x17f000102807fff n, "7, false"); +assert.sameValue(sample.getBigInt64(8, false), 0x7f000102807fff80 n, "8, false"); -assert.sameValue(sample.getBigInt64(0, true), 0x180008002060227n, "0, true"); -assert.sameValue(sample.getBigInt64(1, true), 0x7f01800080020602n, "1, true"); -assert.sameValue(sample.getBigInt64(2, true), 0x7f018000800206n, "2, true"); -assert.sameValue(sample.getBigInt64(3, true), 0x1007f0180008002n, "3, true"); -assert.sameValue(sample.getBigInt64(4, true), 0x201007f01800080n, "4, true"); -assert.sameValue(sample.getBigInt64(5, true), -0x7ffdfeff80fe8000n, "5, true"); -assert.sameValue(sample.getBigInt64(6, true), 0x7f800201007f0180n, "6, true"); -assert.sameValue(sample.getBigInt64(7, true), -0x807ffdfeff80ffn, "7, true"); -assert.sameValue(sample.getBigInt64(8, true), -0x7f00807ffdfeff81n, "8, true"); +assert.sameValue(sample.getBigInt64(0, true), 0x180008002060227 n, "0, true"); +assert.sameValue(sample.getBigInt64(1, true), 0x7f01800080020602 n, "1, true"); +assert.sameValue(sample.getBigInt64(2, true), 0x7f018000800206 n, "2, true"); +assert.sameValue(sample.getBigInt64(3, true), 0x1007f0180008002 n, "3, true"); +assert.sameValue(sample.getBigInt64(4, true), 0x201007f01800080 n, "4, true"); +assert.sameValue(sample.getBigInt64(5, true), -0x7ffdfeff80fe8000 n, "5, true"); +assert.sameValue(sample.getBigInt64(6, true), 0x7f800201007f0180 n, "6, true"); +assert.sameValue(sample.getBigInt64(7, true), -0x807ffdfeff80ff n, "7, true"); +assert.sameValue(sample.getBigInt64(8, true), -0x7f00807ffdfeff81 n, "8, true"); diff --git a/test/built-ins/DataView/prototype/getBigInt64/this-is-not-object.js b/test/built-ins/DataView/prototype/getBigInt64/this-is-not-object.js index 1dad1108dd..cf8682a050 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 9ab87b5e15..d0be65d63d 100644 --- a/test/built-ins/DataView/prototype/getBigInt64/to-boolean-littleendian.js +++ b/test/built-ins/DataView/prototype/getBigInt64/to-boolean-littleendian.js @@ -36,32 +36,32 @@ features: [ArrayBuffer, BigInt, DataView, DataView.prototype.setUint8, Symbol] var buffer = new ArrayBuffer(8); var sample = new DataView(buffer, 0); sample.setUint8(7, 0xff); -assert.sameValue(sample.getBigInt64(0), 0xffn, "no argument"); +assert.sameValue(sample.getBigInt64(0), 0xff n, "no argument"); -assert.sameValue(sample.getBigInt64(0, false), 0xffn); -assert.sameValue(sample.getBigInt64(0, true), -0x100000000000000n); -assert.sameValue(sample.getBigInt64(0, 0), 0xffn, "ToBoolean: 0 => false"); -assert.sameValue(sample.getBigInt64(0, -0), 0xffn, "ToBoolean: -0 => false"); -assert.sameValue(sample.getBigInt64(0, 1), -0x100000000000000n, "ToBoolean: Number != 0 => true"); -assert.sameValue(sample.getBigInt64(0, -1), -0x100000000000000n, "ToBoolean: Number != 0 => true"); -assert.sameValue(sample.getBigInt64(0, 0.1), -0x100000000000000n, "ToBoolean: Number != 0 => true"); -assert.sameValue(sample.getBigInt64(0, Infinity), -0x100000000000000n, +assert.sameValue(sample.getBigInt64(0, false), 0xff n); +assert.sameValue(sample.getBigInt64(0, true), -0x100000000000000 n); +assert.sameValue(sample.getBigInt64(0, 0), 0xff n, "ToBoolean: 0 => false"); +assert.sameValue(sample.getBigInt64(0, -0), 0xff n, "ToBoolean: -0 => false"); +assert.sameValue(sample.getBigInt64(0, 1), -0x100000000000000 n, "ToBoolean: Number != 0 => true"); +assert.sameValue(sample.getBigInt64(0, -1), -0x100000000000000 n, "ToBoolean: Number != 0 => true"); +assert.sameValue(sample.getBigInt64(0, 0.1), -0x100000000000000 n, "ToBoolean: Number != 0 => true"); +assert.sameValue(sample.getBigInt64(0, Infinity), -0x100000000000000 n, "ToBoolean: Number != 0 => true"); -assert.sameValue(sample.getBigInt64(0, NaN), 0xffn, "ToBoolean: NaN => false"); -assert.sameValue(sample.getBigInt64(0, undefined), 0xffn, "ToBoolean: undefined => false"); -assert.sameValue(sample.getBigInt64(0, null), 0xffn, "ToBoolean: null => false"); -assert.sameValue(sample.getBigInt64(0, ""), 0xffn, "ToBoolean: String .length == 0 => false"); -assert.sameValue(sample.getBigInt64(0, "string"), -0x100000000000000n, +assert.sameValue(sample.getBigInt64(0, NaN), 0xff n, "ToBoolean: NaN => false"); +assert.sameValue(sample.getBigInt64(0, undefined), 0xff n, "ToBoolean: undefined => false"); +assert.sameValue(sample.getBigInt64(0, null), 0xff n, "ToBoolean: null => false"); +assert.sameValue(sample.getBigInt64(0, ""), 0xff n, "ToBoolean: String .length == 0 => false"); +assert.sameValue(sample.getBigInt64(0, "string"), -0x100000000000000 n, "ToBoolean: String .length > 0 => true"); -assert.sameValue(sample.getBigInt64(0, "false"), -0x100000000000000n, +assert.sameValue(sample.getBigInt64(0, "false"), -0x100000000000000 n, "ToBoolean: String .length > 0 => true"); -assert.sameValue(sample.getBigInt64(0, " "), -0x100000000000000n, +assert.sameValue(sample.getBigInt64(0, " "), -0x100000000000000 n, "ToBoolean: String .length > 0 => true"); -assert.sameValue(sample.getBigInt64(0, Symbol("1")), -0x100000000000000n, +assert.sameValue(sample.getBigInt64(0, Symbol("1")), -0x100000000000000 n, "ToBoolean: Symbol => true"); -assert.sameValue(sample.getBigInt64(0, 0n), 0xffn, "ToBoolean: 0n => false"); -assert.sameValue(sample.getBigInt64(0, 1n), -0x100000000000000n, "ToBoolean: BigInt != 0n => true"); -assert.sameValue(sample.getBigInt64(0, []), -0x100000000000000n, "ToBoolean: any object => true"); -assert.sameValue(sample.getBigInt64(0, {}), -0x100000000000000n, "ToBoolean: any object => true"); -assert.sameValue(sample.getBigInt64(0, Object(false)), -0x100000000000000n, +assert.sameValue(sample.getBigInt64(0, 0 n), 0xff n, "ToBoolean: 0n => false"); +assert.sameValue(sample.getBigInt64(0, 1 n), -0x100000000000000 n, "ToBoolean: BigInt != 0n => true"); +assert.sameValue(sample.getBigInt64(0, []), -0x100000000000000 n, "ToBoolean: any object => true"); +assert.sameValue(sample.getBigInt64(0, {}), -0x100000000000000 n, "ToBoolean: any object => true"); +assert.sameValue(sample.getBigInt64(0, Object(false)), -0x100000000000000 n, "ToBoolean: any object => true; no ToPrimitive"); diff --git a/test/built-ins/DataView/prototype/getBigInt64/toindex-byteoffset-errors.js b/test/built-ins/DataView/prototype/getBigInt64/toindex-byteoffset-errors.js index c96648cec2..bfa9c9c99d 100644 --- a/test/built-ins/DataView/prototype/getBigInt64/toindex-byteoffset-errors.js +++ b/test/built-ins/DataView/prototype/getBigInt64/toindex-byteoffset-errors.js @@ -52,29 +52,29 @@ assert.throws(RangeError, function() { sample.getBigInt64(Infinity); }, "ToIndex: throw when integerIndex > 2**53-1"); assert.throws(TypeError, function() { - sample.getBigInt64(0n); + sample.getBigInt64(0 n); }, "ToIndex: BigInt => TypeError"); assert.throws(TypeError, function() { - sample.getBigInt64(Object(0n)); + sample.getBigInt64(Object(0 n)); }, "ToIndex: unbox object with internal slot => BigInt => TypeError"); assert.throws(TypeError, function() { sample.getBigInt64({ [Symbol.toPrimitive]: function() { - return 0n; + return 0 n; } }); }, "ToIndex: @@toPrimitive => BigInt => TypeError"); assert.throws(TypeError, function() { sample.getBigInt64({ valueOf: function() { - return 0n; + return 0 n; } }); }, "ToIndex: valueOf => BigInt => TypeError"); assert.throws(TypeError, function() { sample.getBigInt64({ toString: function() { - return 0n; + return 0 n; } }); }, "ToIndex: toString => BigInt => TypeError"); diff --git a/test/built-ins/DataView/prototype/getBigInt64/toindex-byteoffset-toprimitive.js b/test/built-ins/DataView/prototype/getBigInt64/toindex-byteoffset-toprimitive.js index f5476694a8..9d345ac245 100644 --- a/test/built-ins/DataView/prototype/getBigInt64/toindex-byteoffset-toprimitive.js +++ b/test/built-ins/DataView/prototype/getBigInt64/toindex-byteoffset-toprimitive.js @@ -45,48 +45,48 @@ assert.sameValue(sample.getBigInt64({ }, valueOf: err, toString: err -}), 0x20602800080017fn, "ToPrimitive: @@toPrimitive takes precedence"); +}), 0x20602800080017f n, "ToPrimitive: @@toPrimitive takes precedence"); assert.sameValue(sample.getBigInt64({ valueOf: function() { return 1; }, toString: err -}), 0x20602800080017fn, "ToPrimitive: valueOf takes precedence over toString"); +}), 0x20602800080017f n, "ToPrimitive: valueOf takes precedence over toString"); assert.sameValue(sample.getBigInt64({ toString: function() { return 1; } -}), 0x20602800080017fn, "ToPrimitive: toString with no valueOf"); +}), 0x20602800080017f n, "ToPrimitive: toString with no valueOf"); assert.sameValue(sample.getBigInt64({ [Symbol.toPrimitive]: undefined, valueOf: function() { return 1; } -}), 0x20602800080017fn, "ToPrimitive: skip @@toPrimitive when it's undefined"); +}), 0x20602800080017f n, "ToPrimitive: skip @@toPrimitive when it's undefined"); assert.sameValue(sample.getBigInt64({ [Symbol.toPrimitive]: null, valueOf: function() { return 1; } -}), 0x20602800080017fn, "ToPrimitive: skip @@toPrimitive when it's null"); +}), 0x20602800080017f n, "ToPrimitive: skip @@toPrimitive when it's null"); assert.sameValue(sample.getBigInt64({ valueOf: null, toString: function() { return 1; } -}), 0x20602800080017fn, "ToPrimitive: skip valueOf when it's not callable"); +}), 0x20602800080017f n, "ToPrimitive: skip valueOf when it's not callable"); assert.sameValue(sample.getBigInt64({ valueOf: 1, toString: function() { return 1; } -}), 0x20602800080017fn, "ToPrimitive: skip valueOf when it's not callable"); +}), 0x20602800080017f n, "ToPrimitive: skip valueOf when it's not callable"); assert.sameValue(sample.getBigInt64({ valueOf: {}, toString: function() { return 1; } -}), 0x20602800080017fn, "ToPrimitive: skip valueOf when it's not callable"); +}), 0x20602800080017f n, "ToPrimitive: skip valueOf when it's not callable"); assert.sameValue(sample.getBigInt64({ valueOf: function() { return {}; @@ -94,7 +94,7 @@ assert.sameValue(sample.getBigInt64({ toString: function() { return 1; } -}), 0x20602800080017fn, "ToPrimitive: skip valueOf when it returns an object"); +}), 0x20602800080017f n, "ToPrimitive: skip valueOf when it returns an object"); assert.sameValue(sample.getBigInt64({ valueOf: function() { return Object(12345); @@ -102,7 +102,7 @@ assert.sameValue(sample.getBigInt64({ toString: function() { return 1; } -}), 0x20602800080017fn, "ToPrimitive: skip valueOf when it returns an object"); +}), 0x20602800080017f n, "ToPrimitive: skip valueOf when it returns an object"); assert.throws(TypeError, function() { sample.getBigInt64({ [Symbol.toPrimitive]: 1 diff --git a/test/built-ins/DataView/prototype/getBigInt64/toindex-byteoffset-wrapped-values.js b/test/built-ins/DataView/prototype/getBigInt64/toindex-byteoffset-wrapped-values.js index cddda9ee48..b0baccc944 100644 --- a/test/built-ins/DataView/prototype/getBigInt64/toindex-byteoffset-wrapped-values.js +++ b/test/built-ins/DataView/prototype/getBigInt64/toindex-byteoffset-wrapped-values.js @@ -33,101 +33,101 @@ sample.setUint8(9, 0x00); sample.setUint8(10, 0x01); sample.setUint8(11, 0x02); -assert.sameValue(sample.getBigInt64(Object(0)), 0x2702060280008001n, +assert.sameValue(sample.getBigInt64(Object(0)), 0x2702060280008001 n, "ToPrimitive: unbox object with internal slot"); assert.sameValue(sample.getBigInt64({ [Symbol.toPrimitive]: function() { return 0; } -}), 0x2702060280008001n, "ToPrimitive: @@toPrimitive"); +}), 0x2702060280008001 n, "ToPrimitive: @@toPrimitive"); assert.sameValue(sample.getBigInt64({ valueOf: function() { return 0; } -}), 0x2702060280008001n, "ToPrimitive: valueOf"); +}), 0x2702060280008001 n, "ToPrimitive: valueOf"); assert.sameValue(sample.getBigInt64({ toString: function() { return 0; } -}), 0x2702060280008001n, "ToPrimitive: toString"); -assert.sameValue(sample.getBigInt64(Object(NaN)), 0x2702060280008001n, +}), 0x2702060280008001 n, "ToPrimitive: toString"); +assert.sameValue(sample.getBigInt64(Object(NaN)), 0x2702060280008001 n, "ToIndex: unbox object with internal slot => NaN => 0"); assert.sameValue(sample.getBigInt64({ [Symbol.toPrimitive]: function() { return NaN; } -}), 0x2702060280008001n, "ToIndex: @@toPrimitive => NaN => 0"); +}), 0x2702060280008001 n, "ToIndex: @@toPrimitive => NaN => 0"); assert.sameValue(sample.getBigInt64({ valueOf: function() { return NaN; } -}), 0x2702060280008001n, "ToIndex: valueOf => NaN => 0"); +}), 0x2702060280008001 n, "ToIndex: valueOf => NaN => 0"); assert.sameValue(sample.getBigInt64({ toString: function() { return NaN; } -}), 0x2702060280008001n, "ToIndex: toString => NaN => 0"); +}), 0x2702060280008001 n, "ToIndex: toString => NaN => 0"); assert.sameValue(sample.getBigInt64({ [Symbol.toPrimitive]: function() { return undefined; } -}), 0x2702060280008001n, "ToIndex: @@toPrimitive => undefined => NaN => 0"); +}), 0x2702060280008001 n, "ToIndex: @@toPrimitive => undefined => NaN => 0"); assert.sameValue(sample.getBigInt64({ valueOf: function() { return undefined; } -}), 0x2702060280008001n, "ToIndex: valueOf => undefined => NaN => 0"); +}), 0x2702060280008001 n, "ToIndex: valueOf => undefined => NaN => 0"); assert.sameValue(sample.getBigInt64({ toString: function() { return undefined; } -}), 0x2702060280008001n, "ToIndex: toString => undefined => NaN => 0"); +}), 0x2702060280008001 n, "ToIndex: toString => undefined => NaN => 0"); assert.sameValue(sample.getBigInt64({ [Symbol.toPrimitive]: function() { return null; } -}), 0x2702060280008001n, "ToIndex: @@toPrimitive => null => 0"); +}), 0x2702060280008001 n, "ToIndex: @@toPrimitive => null => 0"); assert.sameValue(sample.getBigInt64({ valueOf: function() { return null; } -}), 0x2702060280008001n, "ToIndex: valueOf => null => 0"); +}), 0x2702060280008001 n, "ToIndex: valueOf => null => 0"); assert.sameValue(sample.getBigInt64({ toString: function() { return null; } -}), 0x2702060280008001n, "ToIndex: toString => null => 0"); -assert.sameValue(sample.getBigInt64(Object(true)), 0x20602800080017fn, +}), 0x2702060280008001 n, "ToIndex: toString => null => 0"); +assert.sameValue(sample.getBigInt64(Object(true)), 0x20602800080017f n, "ToIndex: unbox object with internal slot => true => 1"); assert.sameValue(sample.getBigInt64({ [Symbol.toPrimitive]: function() { return true; } -}), 0x20602800080017fn, "ToIndex: @@toPrimitive => true => 1"); +}), 0x20602800080017f n, "ToIndex: @@toPrimitive => true => 1"); assert.sameValue(sample.getBigInt64({ valueOf: function() { return true; } -}), 0x20602800080017fn, "ToIndex: valueOf => true => 1"); +}), 0x20602800080017f n, "ToIndex: valueOf => true => 1"); assert.sameValue(sample.getBigInt64({ toString: function() { return true; } -}), 0x20602800080017fn, "ToIndex: toString => true => 1"); -assert.sameValue(sample.getBigInt64(Object("1")), 0x20602800080017fn, +}), 0x20602800080017f n, "ToIndex: toString => true => 1"); +assert.sameValue(sample.getBigInt64(Object("1")), 0x20602800080017f n, "ToIndex: unbox object with internal slot => parse Number"); assert.sameValue(sample.getBigInt64({ [Symbol.toPrimitive]: function() { return "1"; } -}), 0x20602800080017fn, "ToIndex: @@toPrimitive => parse Number"); +}), 0x20602800080017f n, "ToIndex: @@toPrimitive => parse Number"); assert.sameValue(sample.getBigInt64({ valueOf: function() { return "1"; } -}), 0x20602800080017fn, "ToIndex: valueOf => parse Number"); +}), 0x20602800080017f n, "ToIndex: valueOf => parse Number"); assert.sameValue(sample.getBigInt64({ toString: function() { return "1"; } -}), 0x20602800080017fn, "ToIndex: toString => parse Number"); +}), 0x20602800080017f n, "ToIndex: toString => parse Number"); diff --git a/test/built-ins/DataView/prototype/getBigInt64/toindex-byteoffset.js b/test/built-ins/DataView/prototype/getBigInt64/toindex-byteoffset.js index 70a5cdba8a..d9367fd3cb 100644 --- a/test/built-ins/DataView/prototype/getBigInt64/toindex-byteoffset.js +++ b/test/built-ins/DataView/prototype/getBigInt64/toindex-byteoffset.js @@ -33,38 +33,38 @@ sample.setUint8(9, 0x00); sample.setUint8(10, 0x01); sample.setUint8(11, 0x02); -assert.sameValue(sample.getBigInt64(0), 0x2702060280008001n); -assert.sameValue(sample.getBigInt64(1), 0x20602800080017fn); -assert.sameValue(sample.getBigInt64(-0.9), 0x2702060280008001n, "ToIndex: truncate towards 0"); -assert.sameValue(sample.getBigInt64(0.9), 0x2702060280008001n, "ToIndex: truncate towards 0"); -assert.sameValue(sample.getBigInt64(NaN), 0x2702060280008001n, "ToIndex: NaN => 0"); -assert.sameValue(sample.getBigInt64(undefined), 0x2702060280008001n, +assert.sameValue(sample.getBigInt64(0), 0x2702060280008001 n); +assert.sameValue(sample.getBigInt64(1), 0x20602800080017f n); +assert.sameValue(sample.getBigInt64(-0.9), 0x2702060280008001 n, "ToIndex: truncate towards 0"); +assert.sameValue(sample.getBigInt64(0.9), 0x2702060280008001 n, "ToIndex: truncate towards 0"); +assert.sameValue(sample.getBigInt64(NaN), 0x2702060280008001 n, "ToIndex: NaN => 0"); +assert.sameValue(sample.getBigInt64(undefined), 0x2702060280008001 n, "ToIndex: undefined => NaN => 0"); -assert.sameValue(sample.getBigInt64(null), 0x2702060280008001n, "ToIndex: null => 0"); -assert.sameValue(sample.getBigInt64(false), 0x2702060280008001n, "ToIndex: false => 0"); -assert.sameValue(sample.getBigInt64(true), 0x20602800080017fn, "ToIndex: true => 1"); -assert.sameValue(sample.getBigInt64("0"), 0x2702060280008001n, "ToIndex: parse Number"); -assert.sameValue(sample.getBigInt64("1"), 0x20602800080017fn, "ToIndex: parse Number"); -assert.sameValue(sample.getBigInt64(""), 0x2702060280008001n, "ToIndex: parse Number => NaN => 0"); -assert.sameValue(sample.getBigInt64("foo"), 0x2702060280008001n, +assert.sameValue(sample.getBigInt64(null), 0x2702060280008001 n, "ToIndex: null => 0"); +assert.sameValue(sample.getBigInt64(false), 0x2702060280008001 n, "ToIndex: false => 0"); +assert.sameValue(sample.getBigInt64(true), 0x20602800080017f n, "ToIndex: true => 1"); +assert.sameValue(sample.getBigInt64("0"), 0x2702060280008001 n, "ToIndex: parse Number"); +assert.sameValue(sample.getBigInt64("1"), 0x20602800080017f n, "ToIndex: parse Number"); +assert.sameValue(sample.getBigInt64(""), 0x2702060280008001 n, "ToIndex: parse Number => NaN => 0"); +assert.sameValue(sample.getBigInt64("foo"), 0x2702060280008001 n, "ToIndex: parse Number => NaN => 0"); -assert.sameValue(sample.getBigInt64("true"), 0x2702060280008001n, +assert.sameValue(sample.getBigInt64("true"), 0x2702060280008001 n, "ToIndex: parse Number => NaN => 0"); -assert.sameValue(sample.getBigInt64(2), 0x602800080017F00n); -assert.sameValue(sample.getBigInt64("2"), 0x602800080017F00n, "toIndex: parse Number"); -assert.sameValue(sample.getBigInt64(2.9), 0x602800080017F00n, "toIndex: truncate towards 0"); -assert.sameValue(sample.getBigInt64("2.9"), 0x602800080017F00n, +assert.sameValue(sample.getBigInt64(2), 0x602800080017F00 n); +assert.sameValue(sample.getBigInt64("2"), 0x602800080017F00 n, "toIndex: parse Number"); +assert.sameValue(sample.getBigInt64(2.9), 0x602800080017F00 n, "toIndex: truncate towards 0"); +assert.sameValue(sample.getBigInt64("2.9"), 0x602800080017F00 n, "toIndex: parse Number => truncate towards 0"); -assert.sameValue(sample.getBigInt64(3), 0x2800080017F0001n); -assert.sameValue(sample.getBigInt64("3"), 0x2800080017F0001n, "toIndex: parse Number"); -assert.sameValue(sample.getBigInt64(3.9), 0x2800080017F0001n, "toIndex: truncate towards 0"); -assert.sameValue(sample.getBigInt64("3.9"), 0x2800080017F0001n, +assert.sameValue(sample.getBigInt64(3), 0x2800080017F0001 n); +assert.sameValue(sample.getBigInt64("3"), 0x2800080017F0001 n, "toIndex: parse Number"); +assert.sameValue(sample.getBigInt64(3.9), 0x2800080017F0001 n, "toIndex: truncate towards 0"); +assert.sameValue(sample.getBigInt64("3.9"), 0x2800080017F0001 n, "toIndex: parse Number => truncate towards 0"); -assert.sameValue(sample.getBigInt64([0]), 0x2702060280008001n, +assert.sameValue(sample.getBigInt64([0]), 0x2702060280008001 n, 'ToIndex: [0].toString() => "0" => 0'); -assert.sameValue(sample.getBigInt64(["1"]), 0x20602800080017fn, +assert.sameValue(sample.getBigInt64(["1"]), 0x20602800080017f n, 'ToIndex: ["1"].toString() => "1" => 1'); -assert.sameValue(sample.getBigInt64({}), 0x2702060280008001n, +assert.sameValue(sample.getBigInt64({}), 0x2702060280008001 n, 'ToIndex: ({}).toString() => "[object Object]" => NaN => 0'); -assert.sameValue(sample.getBigInt64([]), 0x2702060280008001n, +assert.sameValue(sample.getBigInt64([]), 0x2702060280008001 n, 'ToIndex: [].toString() => "" => NaN => 0'); diff --git a/test/built-ins/DataView/prototype/getBigUint64/detached-buffer-after-toindex-byteoffset.js b/test/built-ins/DataView/prototype/getBigUint64/detached-buffer-after-toindex-byteoffset.js index a96d8c9c5c..894b550687 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 9b0fb3d272..4155c6d698 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 b3fdb8b29d..de42ea2981 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 88f38cb64a..7f25d2e677 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 3216d86c88..ea981f6878 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 4f7bb95960..5482c5d1b6 100644 --- a/test/built-ins/DataView/prototype/getBigUint64/return-abrupt-from-tonumber-byteoffset.js +++ b/test/built-ins/DataView/prototype/getBigUint64/return-abrupt-from-tonumber-byteoffset.js @@ -11,8 +11,16 @@ features: [DataView, ArrayBuffer, BigInt, arrow-function] var buffer = new ArrayBuffer(1); var sample = new DataView(buffer, 0); -var bo1 = { valueOf() { throw new Test262Error(); } }; -var bo2 = { toString() { throw new Test262Error(); } }; +var bo1 = { + valueOf() { + throw new Test262Error(); + } +}; +var bo2 = { + toString() { + throw new Test262Error(); + } +}; assert.throws(Test262Error, () => sample.getBigUint64(bo1), "valueOf"); diff --git a/test/built-ins/DataView/prototype/getBigUint64/return-value-clean-arraybuffer.js b/test/built-ins/DataView/prototype/getBigUint64/return-value-clean-arraybuffer.js index 25ee7766d2..37de5946ef 100644 --- a/test/built-ins/DataView/prototype/getBigUint64/return-value-clean-arraybuffer.js +++ b/test/built-ins/DataView/prototype/getBigUint64/return-value-clean-arraybuffer.js @@ -11,13 +11,13 @@ features: [DataView, ArrayBuffer, BigInt] var buffer = new ArrayBuffer(12); var sample = new DataView(buffer, 0); -assert.sameValue(sample.getBigUint64(0, true), 0n, "sample.getBigUint64(0, true)"); -assert.sameValue(sample.getBigUint64(1, true), 0n, "sample.getBigUint64(1, true)"); -assert.sameValue(sample.getBigUint64(2, true), 0n, "sample.getBigUint64(2, true)"); -assert.sameValue(sample.getBigUint64(3, true), 0n, "sample.getBigUint64(3, true)"); -assert.sameValue(sample.getBigUint64(4, true), 0n, "sample.getBigUint64(4, true)"); -assert.sameValue(sample.getBigUint64(0, false), 0n, "sample.getBigUint64(0, false)"); -assert.sameValue(sample.getBigUint64(1, false), 0n, "sample.getBigUint64(1, false)"); -assert.sameValue(sample.getBigUint64(2, false), 0n, "sample.getBigUint64(2, false)"); -assert.sameValue(sample.getBigUint64(3, false), 0n, "sample.getBigUint64(3, false)"); -assert.sameValue(sample.getBigUint64(4, false), 0n, "sample.getBigUint64(4, false)"); +assert.sameValue(sample.getBigUint64(0, true), 0 n, "sample.getBigUint64(0, true)"); +assert.sameValue(sample.getBigUint64(1, true), 0 n, "sample.getBigUint64(1, true)"); +assert.sameValue(sample.getBigUint64(2, true), 0 n, "sample.getBigUint64(2, true)"); +assert.sameValue(sample.getBigUint64(3, true), 0 n, "sample.getBigUint64(3, true)"); +assert.sameValue(sample.getBigUint64(4, true), 0 n, "sample.getBigUint64(4, true)"); +assert.sameValue(sample.getBigUint64(0, false), 0 n, "sample.getBigUint64(0, false)"); +assert.sameValue(sample.getBigUint64(1, false), 0 n, "sample.getBigUint64(1, false)"); +assert.sameValue(sample.getBigUint64(2, false), 0 n, "sample.getBigUint64(2, false)"); +assert.sameValue(sample.getBigUint64(3, false), 0 n, "sample.getBigUint64(3, false)"); +assert.sameValue(sample.getBigUint64(4, false), 0 n, "sample.getBigUint64(4, false)"); diff --git a/test/built-ins/DataView/prototype/getBigUint64/return-values-custom-offset.js b/test/built-ins/DataView/prototype/getBigUint64/return-values-custom-offset.js index 074c8a2799..26cb5349f7 100644 --- a/test/built-ins/DataView/prototype/getBigUint64/return-values-custom-offset.js +++ b/test/built-ins/DataView/prototype/getBigUint64/return-values-custom-offset.js @@ -30,14 +30,14 @@ sample.setUint8(15, 0x80); sample = new DataView(buffer, 4); -assert.sameValue(sample.getBigUint64(0, false), 0x800080017f000102n, "0, false"); -assert.sameValue(sample.getBigUint64(1, false), 0x80017f00010280n, "1, false"); -assert.sameValue(sample.getBigUint64(2, false), 0x80017f000102807fn, "2, false"); -assert.sameValue(sample.getBigUint64(3, false), 0x17f000102807fffn, "3, false"); -assert.sameValue(sample.getBigUint64(4, false), 0x7f000102807fff80n, "4, false"); +assert.sameValue(sample.getBigUint64(0, false), 0x800080017f000102 n, "0, false"); +assert.sameValue(sample.getBigUint64(1, false), 0x80017f00010280 n, "1, false"); +assert.sameValue(sample.getBigUint64(2, false), 0x80017f000102807f n, "2, false"); +assert.sameValue(sample.getBigUint64(3, false), 0x17f000102807fff n, "3, false"); +assert.sameValue(sample.getBigUint64(4, false), 0x7f000102807fff80 n, "4, false"); -assert.sameValue(sample.getBigUint64(0, true), 0x201007f01800080n, "0, true"); -assert.sameValue(sample.getBigUint64(1, true), 0x800201007f018000n, "1, true"); -assert.sameValue(sample.getBigUint64(2, true), 0x7f800201007f0180n, "2, true"); -assert.sameValue(sample.getBigUint64(3, true), 0xff7f800201007f01n, "3, true"); -assert.sameValue(sample.getBigUint64(4, true), 0x80ff7f800201007fn, "4, true"); +assert.sameValue(sample.getBigUint64(0, true), 0x201007f01800080 n, "0, true"); +assert.sameValue(sample.getBigUint64(1, true), 0x800201007f018000 n, "1, true"); +assert.sameValue(sample.getBigUint64(2, true), 0x7f800201007f0180 n, "2, true"); +assert.sameValue(sample.getBigUint64(3, true), 0xff7f800201007f01 n, "3, true"); +assert.sameValue(sample.getBigUint64(4, true), 0x80ff7f800201007f n, "4, true"); diff --git a/test/built-ins/DataView/prototype/getBigUint64/return-values.js b/test/built-ins/DataView/prototype/getBigUint64/return-values.js index 7b6b4250b4..4ed45b127d 100644 --- a/test/built-ins/DataView/prototype/getBigUint64/return-values.js +++ b/test/built-ins/DataView/prototype/getBigUint64/return-values.js @@ -28,22 +28,22 @@ sample.setUint8(13, 0x7f); sample.setUint8(14, 0xff); sample.setUint8(15, 0x80); -assert.sameValue(sample.getBigUint64(0, false), 0x2702060280008001n, "0, false"); -assert.sameValue(sample.getBigUint64(1, false), 0x20602800080017fn, "1, false"); -assert.sameValue(sample.getBigUint64(2, false), 0x602800080017f00n, "2, false"); -assert.sameValue(sample.getBigUint64(3, false), 0x2800080017f0001n, "3, false"); -assert.sameValue(sample.getBigUint64(4, false), 0x800080017f000102n, "4, false"); -assert.sameValue(sample.getBigUint64(5, false), 0x80017f00010280n, "5, false"); -assert.sameValue(sample.getBigUint64(6, false), 0x80017f000102807fn, "6, false"); -assert.sameValue(sample.getBigUint64(7, false), 0x17f000102807fffn, "7, false"); -assert.sameValue(sample.getBigUint64(8, false), 0x7f000102807fff80n, "8, false"); +assert.sameValue(sample.getBigUint64(0, false), 0x2702060280008001 n, "0, false"); +assert.sameValue(sample.getBigUint64(1, false), 0x20602800080017f n, "1, false"); +assert.sameValue(sample.getBigUint64(2, false), 0x602800080017f00 n, "2, false"); +assert.sameValue(sample.getBigUint64(3, false), 0x2800080017f0001 n, "3, false"); +assert.sameValue(sample.getBigUint64(4, false), 0x800080017f000102 n, "4, false"); +assert.sameValue(sample.getBigUint64(5, false), 0x80017f00010280 n, "5, false"); +assert.sameValue(sample.getBigUint64(6, false), 0x80017f000102807f n, "6, false"); +assert.sameValue(sample.getBigUint64(7, false), 0x17f000102807fff n, "7, false"); +assert.sameValue(sample.getBigUint64(8, false), 0x7f000102807fff80 n, "8, false"); -assert.sameValue(sample.getBigUint64(0, true), 0x180008002060227n, "0, true"); -assert.sameValue(sample.getBigUint64(1, true), 0x7f01800080020602n, "1, true"); -assert.sameValue(sample.getBigUint64(2, true), 0x7f018000800206n, "2, true"); -assert.sameValue(sample.getBigUint64(3, true), 0x1007f0180008002n, "3, true"); -assert.sameValue(sample.getBigUint64(4, true), 0x201007f01800080n, "4, true"); -assert.sameValue(sample.getBigUint64(5, true), 0x800201007F018000n, "5, true"); -assert.sameValue(sample.getBigUint64(6, true), 0x7f800201007f0180n, "6, true"); -assert.sameValue(sample.getBigUint64(7, true), 0xff7f800201007f01n, "7, true"); -assert.sameValue(sample.getBigUint64(8, true), 0x80ff7f800201007fn, "8, true"); +assert.sameValue(sample.getBigUint64(0, true), 0x180008002060227 n, "0, true"); +assert.sameValue(sample.getBigUint64(1, true), 0x7f01800080020602 n, "1, true"); +assert.sameValue(sample.getBigUint64(2, true), 0x7f018000800206 n, "2, true"); +assert.sameValue(sample.getBigUint64(3, true), 0x1007f0180008002 n, "3, true"); +assert.sameValue(sample.getBigUint64(4, true), 0x201007f01800080 n, "4, true"); +assert.sameValue(sample.getBigUint64(5, true), 0x800201007F018000 n, "5, true"); +assert.sameValue(sample.getBigUint64(6, true), 0x7f800201007f0180 n, "6, true"); +assert.sameValue(sample.getBigUint64(7, true), 0xff7f800201007f01 n, "7, true"); +assert.sameValue(sample.getBigUint64(8, true), 0x80ff7f800201007f n, "8, true"); diff --git a/test/built-ins/DataView/prototype/getBigUint64/this-is-not-object.js b/test/built-ins/DataView/prototype/getBigUint64/this-is-not-object.js index a60b3cca3e..4c3d250c69 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 4885dfe416..fd14414eb3 100644 --- a/test/built-ins/DataView/prototype/getBigUint64/to-boolean-littleendian.js +++ b/test/built-ins/DataView/prototype/getBigUint64/to-boolean-littleendian.js @@ -9,32 +9,32 @@ features: [ArrayBuffer, BigInt, DataView, DataView.prototype.setUint8, Symbol] var buffer = new ArrayBuffer(8); var sample = new DataView(buffer, 0); sample.setUint8(7, 0xff); -assert.sameValue(sample.getBigUint64(0), 0xffn, "no argument"); +assert.sameValue(sample.getBigUint64(0), 0xff n, "no argument"); -assert.sameValue(sample.getBigUint64(0, false), 0xffn); -assert.sameValue(sample.getBigUint64(0, true), 0xff00000000000000n); -assert.sameValue(sample.getBigUint64(0, 0), 0xffn, "ToBoolean: 0 => false"); -assert.sameValue(sample.getBigUint64(0, -0), 0xffn, "ToBoolean: -0 => false"); -assert.sameValue(sample.getBigUint64(0, 1), 0xff00000000000000n, "ToBoolean: Number != 0 => true"); -assert.sameValue(sample.getBigUint64(0, -1), 0xff00000000000000n, "ToBoolean: Number != 0 => true"); -assert.sameValue(sample.getBigUint64(0, 0.1), 0xff00000000000000n, "ToBoolean: Number != 0 => true"); -assert.sameValue(sample.getBigUint64(0, Infinity), 0xff00000000000000n, +assert.sameValue(sample.getBigUint64(0, false), 0xff n); +assert.sameValue(sample.getBigUint64(0, true), 0xff00000000000000 n); +assert.sameValue(sample.getBigUint64(0, 0), 0xff n, "ToBoolean: 0 => false"); +assert.sameValue(sample.getBigUint64(0, -0), 0xff n, "ToBoolean: -0 => false"); +assert.sameValue(sample.getBigUint64(0, 1), 0xff00000000000000 n, "ToBoolean: Number != 0 => true"); +assert.sameValue(sample.getBigUint64(0, -1), 0xff00000000000000 n, "ToBoolean: Number != 0 => true"); +assert.sameValue(sample.getBigUint64(0, 0.1), 0xff00000000000000 n, "ToBoolean: Number != 0 => true"); +assert.sameValue(sample.getBigUint64(0, Infinity), 0xff00000000000000 n, "ToBoolean: Number != 0 => true"); -assert.sameValue(sample.getBigUint64(0, NaN), 0xffn, "ToBoolean: NaN => false"); -assert.sameValue(sample.getBigUint64(0, undefined), 0xffn, "ToBoolean: undefined => false"); -assert.sameValue(sample.getBigUint64(0, null), 0xffn, "ToBoolean: null => false"); -assert.sameValue(sample.getBigUint64(0, ""), 0xffn, "ToBoolean: String .length == 0 => false"); -assert.sameValue(sample.getBigUint64(0, "string"), 0xff00000000000000n, +assert.sameValue(sample.getBigUint64(0, NaN), 0xff n, "ToBoolean: NaN => false"); +assert.sameValue(sample.getBigUint64(0, undefined), 0xff n, "ToBoolean: undefined => false"); +assert.sameValue(sample.getBigUint64(0, null), 0xff n, "ToBoolean: null => false"); +assert.sameValue(sample.getBigUint64(0, ""), 0xff n, "ToBoolean: String .length == 0 => false"); +assert.sameValue(sample.getBigUint64(0, "string"), 0xff00000000000000 n, "ToBoolean: String .length > 0 => true"); -assert.sameValue(sample.getBigUint64(0, "false"), 0xff00000000000000n, +assert.sameValue(sample.getBigUint64(0, "false"), 0xff00000000000000 n, "ToBoolean: String .length > 0 => true"); -assert.sameValue(sample.getBigUint64(0, " "), 0xff00000000000000n, +assert.sameValue(sample.getBigUint64(0, " "), 0xff00000000000000 n, "ToBoolean: String .length > 0 => true"); -assert.sameValue(sample.getBigUint64(0, Symbol("1")), 0xff00000000000000n, +assert.sameValue(sample.getBigUint64(0, Symbol("1")), 0xff00000000000000 n, "ToBoolean: Symbol => true"); -assert.sameValue(sample.getBigUint64(0, 0n), 0xffn, "ToBoolean: 0n => false"); -assert.sameValue(sample.getBigUint64(0, 1n), 0xff00000000000000n, "ToBoolean: BigInt != 0n => true"); -assert.sameValue(sample.getBigUint64(0, []), 0xff00000000000000n, "ToBoolean: any object => true"); -assert.sameValue(sample.getBigUint64(0, {}), 0xff00000000000000n, "ToBoolean: any object => true"); -assert.sameValue(sample.getBigUint64(0, Object(false)), 0xff00000000000000n, +assert.sameValue(sample.getBigUint64(0, 0 n), 0xff n, "ToBoolean: 0n => false"); +assert.sameValue(sample.getBigUint64(0, 1 n), 0xff00000000000000 n, "ToBoolean: BigInt != 0n => true"); +assert.sameValue(sample.getBigUint64(0, []), 0xff00000000000000 n, "ToBoolean: any object => true"); +assert.sameValue(sample.getBigUint64(0, {}), 0xff00000000000000 n, "ToBoolean: any object => true"); +assert.sameValue(sample.getBigUint64(0, Object(false)), 0xff00000000000000 n, "ToBoolean: any object => true; no ToPrimitive"); diff --git a/test/built-ins/DataView/prototype/getBigUint64/toindex-byteoffset-errors.js b/test/built-ins/DataView/prototype/getBigUint64/toindex-byteoffset-errors.js index c11af740c2..2dcbcacfc8 100644 --- a/test/built-ins/DataView/prototype/getBigUint64/toindex-byteoffset-errors.js +++ b/test/built-ins/DataView/prototype/getBigUint64/toindex-byteoffset-errors.js @@ -40,29 +40,29 @@ assert.throws(RangeError, function() { sample.getBigUint64(Infinity); }, "ToIndex: throw when integerIndex > 2**53-1"); assert.throws(TypeError, function() { - sample.getBigUint64(0n); + sample.getBigUint64(0 n); }, "ToIndex: BigInt => TypeError"); assert.throws(TypeError, function() { - sample.getBigUint64(Object(0n)); + sample.getBigUint64(Object(0 n)); }, "ToIndex: unbox object with internal slot => BigInt => TypeError"); assert.throws(TypeError, function() { sample.getBigUint64({ [Symbol.toPrimitive]: function() { - return 0n; + return 0 n; } }); }, "ToIndex: @@toPrimitive => BigInt => TypeError"); assert.throws(TypeError, function() { sample.getBigUint64({ valueOf: function() { - return 0n; + return 0 n; } }); }, "ToIndex: valueOf => BigInt => TypeError"); assert.throws(TypeError, function() { sample.getBigUint64({ toString: function() { - return 0n; + return 0 n; } }); }, "ToIndex: toString => BigInt => TypeError"); diff --git a/test/built-ins/DataView/prototype/getBigUint64/toindex-byteoffset-toprimitive.js b/test/built-ins/DataView/prototype/getBigUint64/toindex-byteoffset-toprimitive.js index 243e230154..33d9f8307c 100644 --- a/test/built-ins/DataView/prototype/getBigUint64/toindex-byteoffset-toprimitive.js +++ b/test/built-ins/DataView/prototype/getBigUint64/toindex-byteoffset-toprimitive.js @@ -33,48 +33,48 @@ assert.sameValue(sample.getBigUint64({ }, valueOf: err, toString: err -}), 0x20602800080017fn, "ToPrimitive: @@toPrimitive takes precedence"); +}), 0x20602800080017f n, "ToPrimitive: @@toPrimitive takes precedence"); assert.sameValue(sample.getBigUint64({ valueOf: function() { return 1; }, toString: err -}), 0x20602800080017fn, "ToPrimitive: valueOf takes precedence over toString"); +}), 0x20602800080017f n, "ToPrimitive: valueOf takes precedence over toString"); assert.sameValue(sample.getBigUint64({ toString: function() { return 1; } -}), 0x20602800080017fn, "ToPrimitive: toString with no valueOf"); +}), 0x20602800080017f n, "ToPrimitive: toString with no valueOf"); assert.sameValue(sample.getBigUint64({ [Symbol.toPrimitive]: undefined, valueOf: function() { return 1; } -}), 0x20602800080017fn, "ToPrimitive: skip @@toPrimitive when it's undefined"); +}), 0x20602800080017f n, "ToPrimitive: skip @@toPrimitive when it's undefined"); assert.sameValue(sample.getBigUint64({ [Symbol.toPrimitive]: null, valueOf: function() { return 1; } -}), 0x20602800080017fn, "ToPrimitive: skip @@toPrimitive when it's null"); +}), 0x20602800080017f n, "ToPrimitive: skip @@toPrimitive when it's null"); assert.sameValue(sample.getBigUint64({ valueOf: null, toString: function() { return 1; } -}), 0x20602800080017fn, "ToPrimitive: skip valueOf when it's not callable"); +}), 0x20602800080017f n, "ToPrimitive: skip valueOf when it's not callable"); assert.sameValue(sample.getBigUint64({ valueOf: 1, toString: function() { return 1; } -}), 0x20602800080017fn, "ToPrimitive: skip valueOf when it's not callable"); +}), 0x20602800080017f n, "ToPrimitive: skip valueOf when it's not callable"); assert.sameValue(sample.getBigUint64({ valueOf: {}, toString: function() { return 1; } -}), 0x20602800080017fn, "ToPrimitive: skip valueOf when it's not callable"); +}), 0x20602800080017f n, "ToPrimitive: skip valueOf when it's not callable"); assert.sameValue(sample.getBigUint64({ valueOf: function() { return {}; @@ -82,7 +82,7 @@ assert.sameValue(sample.getBigUint64({ toString: function() { return 1; } -}), 0x20602800080017fn, "ToPrimitive: skip valueOf when it returns an object"); +}), 0x20602800080017f n, "ToPrimitive: skip valueOf when it returns an object"); assert.sameValue(sample.getBigUint64({ valueOf: function() { return Object(12345); @@ -90,7 +90,7 @@ assert.sameValue(sample.getBigUint64({ toString: function() { return 1; } -}), 0x20602800080017fn, "ToPrimitive: skip valueOf when it returns an object"); +}), 0x20602800080017f n, "ToPrimitive: skip valueOf when it returns an object"); assert.throws(TypeError, function() { sample.getBigUint64({ [Symbol.toPrimitive]: 1 diff --git a/test/built-ins/DataView/prototype/getBigUint64/toindex-byteoffset-wrapped-values.js b/test/built-ins/DataView/prototype/getBigUint64/toindex-byteoffset-wrapped-values.js index 8803f393c8..c59cdba2c6 100644 --- a/test/built-ins/DataView/prototype/getBigUint64/toindex-byteoffset-wrapped-values.js +++ b/test/built-ins/DataView/prototype/getBigUint64/toindex-byteoffset-wrapped-values.js @@ -21,101 +21,101 @@ sample.setUint8(9, 0x00); sample.setUint8(10, 0x01); sample.setUint8(11, 0x02); -assert.sameValue(sample.getBigUint64(Object(0)), 0x2702060280008001n, +assert.sameValue(sample.getBigUint64(Object(0)), 0x2702060280008001 n, "ToPrimitive: unbox object with internal slot"); assert.sameValue(sample.getBigUint64({ [Symbol.toPrimitive]: function() { return 0; } -}), 0x2702060280008001n, "ToPrimitive: @@toPrimitive"); +}), 0x2702060280008001 n, "ToPrimitive: @@toPrimitive"); assert.sameValue(sample.getBigUint64({ valueOf: function() { return 0; } -}), 0x2702060280008001n, "ToPrimitive: valueOf"); +}), 0x2702060280008001 n, "ToPrimitive: valueOf"); assert.sameValue(sample.getBigUint64({ toString: function() { return 0; } -}), 0x2702060280008001n, "ToPrimitive: toString"); -assert.sameValue(sample.getBigUint64(Object(NaN)), 0x2702060280008001n, +}), 0x2702060280008001 n, "ToPrimitive: toString"); +assert.sameValue(sample.getBigUint64(Object(NaN)), 0x2702060280008001 n, "ToIndex: unbox object with internal slot => NaN => 0"); assert.sameValue(sample.getBigUint64({ [Symbol.toPrimitive]: function() { return NaN; } -}), 0x2702060280008001n, "ToIndex: @@toPrimitive => NaN => 0"); +}), 0x2702060280008001 n, "ToIndex: @@toPrimitive => NaN => 0"); assert.sameValue(sample.getBigUint64({ valueOf: function() { return NaN; } -}), 0x2702060280008001n, "ToIndex: valueOf => NaN => 0"); +}), 0x2702060280008001 n, "ToIndex: valueOf => NaN => 0"); assert.sameValue(sample.getBigUint64({ toString: function() { return NaN; } -}), 0x2702060280008001n, "ToIndex: toString => NaN => 0"); +}), 0x2702060280008001 n, "ToIndex: toString => NaN => 0"); assert.sameValue(sample.getBigUint64({ [Symbol.toPrimitive]: function() { return undefined; } -}), 0x2702060280008001n, "ToIndex: @@toPrimitive => undefined => NaN => 0"); +}), 0x2702060280008001 n, "ToIndex: @@toPrimitive => undefined => NaN => 0"); assert.sameValue(sample.getBigUint64({ valueOf: function() { return undefined; } -}), 0x2702060280008001n, "ToIndex: valueOf => undefined => NaN => 0"); +}), 0x2702060280008001 n, "ToIndex: valueOf => undefined => NaN => 0"); assert.sameValue(sample.getBigUint64({ toString: function() { return undefined; } -}), 0x2702060280008001n, "ToIndex: toString => undefined => NaN => 0"); +}), 0x2702060280008001 n, "ToIndex: toString => undefined => NaN => 0"); assert.sameValue(sample.getBigUint64({ [Symbol.toPrimitive]: function() { return null; } -}), 0x2702060280008001n, "ToIndex: @@toPrimitive => null => 0"); +}), 0x2702060280008001 n, "ToIndex: @@toPrimitive => null => 0"); assert.sameValue(sample.getBigUint64({ valueOf: function() { return null; } -}), 0x2702060280008001n, "ToIndex: valueOf => null => 0"); +}), 0x2702060280008001 n, "ToIndex: valueOf => null => 0"); assert.sameValue(sample.getBigUint64({ toString: function() { return null; } -}), 0x2702060280008001n, "ToIndex: toString => null => 0"); -assert.sameValue(sample.getBigUint64(Object(true)), 0x20602800080017fn, +}), 0x2702060280008001 n, "ToIndex: toString => null => 0"); +assert.sameValue(sample.getBigUint64(Object(true)), 0x20602800080017f n, "ToIndex: unbox object with internal slot => true => 1"); assert.sameValue(sample.getBigUint64({ [Symbol.toPrimitive]: function() { return true; } -}), 0x20602800080017fn, "ToIndex: @@toPrimitive => true => 1"); +}), 0x20602800080017f n, "ToIndex: @@toPrimitive => true => 1"); assert.sameValue(sample.getBigUint64({ valueOf: function() { return true; } -}), 0x20602800080017fn, "ToIndex: valueOf => true => 1"); +}), 0x20602800080017f n, "ToIndex: valueOf => true => 1"); assert.sameValue(sample.getBigUint64({ toString: function() { return true; } -}), 0x20602800080017fn, "ToIndex: toString => true => 1"); -assert.sameValue(sample.getBigUint64(Object("1")), 0x20602800080017fn, +}), 0x20602800080017f n, "ToIndex: toString => true => 1"); +assert.sameValue(sample.getBigUint64(Object("1")), 0x20602800080017f n, "ToIndex: unbox object with internal slot => parse Number"); assert.sameValue(sample.getBigUint64({ [Symbol.toPrimitive]: function() { return "1"; } -}), 0x20602800080017fn, "ToIndex: @@toPrimitive => parse Number"); +}), 0x20602800080017f n, "ToIndex: @@toPrimitive => parse Number"); assert.sameValue(sample.getBigUint64({ valueOf: function() { return "1"; } -}), 0x20602800080017fn, "ToIndex: valueOf => parse Number"); +}), 0x20602800080017f n, "ToIndex: valueOf => parse Number"); assert.sameValue(sample.getBigUint64({ toString: function() { return "1"; } -}), 0x20602800080017fn, "ToIndex: toString => parse Number"); +}), 0x20602800080017f n, "ToIndex: toString => parse Number"); diff --git a/test/built-ins/DataView/prototype/getBigUint64/toindex-byteoffset.js b/test/built-ins/DataView/prototype/getBigUint64/toindex-byteoffset.js index fbc74dd2fc..e43ab67de8 100644 --- a/test/built-ins/DataView/prototype/getBigUint64/toindex-byteoffset.js +++ b/test/built-ins/DataView/prototype/getBigUint64/toindex-byteoffset.js @@ -21,38 +21,38 @@ sample.setUint8(9, 0x00); sample.setUint8(10, 0x01); sample.setUint8(11, 0x02); -assert.sameValue(sample.getBigUint64(0), 0x2702060280008001n); -assert.sameValue(sample.getBigUint64(1), 0x20602800080017fn); -assert.sameValue(sample.getBigUint64(-0.9), 0x2702060280008001n, "ToIndex: truncate towards 0"); -assert.sameValue(sample.getBigUint64(0.9), 0x2702060280008001n, "ToIndex: truncate towards 0"); -assert.sameValue(sample.getBigUint64(NaN), 0x2702060280008001n, "ToIndex: NaN => 0"); -assert.sameValue(sample.getBigUint64(undefined), 0x2702060280008001n, +assert.sameValue(sample.getBigUint64(0), 0x2702060280008001 n); +assert.sameValue(sample.getBigUint64(1), 0x20602800080017f n); +assert.sameValue(sample.getBigUint64(-0.9), 0x2702060280008001 n, "ToIndex: truncate towards 0"); +assert.sameValue(sample.getBigUint64(0.9), 0x2702060280008001 n, "ToIndex: truncate towards 0"); +assert.sameValue(sample.getBigUint64(NaN), 0x2702060280008001 n, "ToIndex: NaN => 0"); +assert.sameValue(sample.getBigUint64(undefined), 0x2702060280008001 n, "ToIndex: undefined => NaN => 0"); -assert.sameValue(sample.getBigUint64(null), 0x2702060280008001n, "ToIndex: null => 0"); -assert.sameValue(sample.getBigUint64(false), 0x2702060280008001n, "ToIndex: false => 0"); -assert.sameValue(sample.getBigUint64(true), 0x20602800080017fn, "ToIndex: true => 1"); -assert.sameValue(sample.getBigUint64("0"), 0x2702060280008001n, "ToIndex: parse Number"); -assert.sameValue(sample.getBigUint64("1"), 0x20602800080017fn, "ToIndex: parse Number"); -assert.sameValue(sample.getBigUint64(""), 0x2702060280008001n, "ToIndex: parse Number => NaN => 0"); -assert.sameValue(sample.getBigUint64("foo"), 0x2702060280008001n, +assert.sameValue(sample.getBigUint64(null), 0x2702060280008001 n, "ToIndex: null => 0"); +assert.sameValue(sample.getBigUint64(false), 0x2702060280008001 n, "ToIndex: false => 0"); +assert.sameValue(sample.getBigUint64(true), 0x20602800080017f n, "ToIndex: true => 1"); +assert.sameValue(sample.getBigUint64("0"), 0x2702060280008001 n, "ToIndex: parse Number"); +assert.sameValue(sample.getBigUint64("1"), 0x20602800080017f n, "ToIndex: parse Number"); +assert.sameValue(sample.getBigUint64(""), 0x2702060280008001 n, "ToIndex: parse Number => NaN => 0"); +assert.sameValue(sample.getBigUint64("foo"), 0x2702060280008001 n, "ToIndex: parse Number => NaN => 0"); -assert.sameValue(sample.getBigUint64("true"), 0x2702060280008001n, +assert.sameValue(sample.getBigUint64("true"), 0x2702060280008001 n, "ToIndex: parse Number => NaN => 0"); -assert.sameValue(sample.getBigUint64(2), 0x602800080017F00n); -assert.sameValue(sample.getBigUint64("2"), 0x602800080017F00n, "toIndex: parse Number"); -assert.sameValue(sample.getBigUint64(2.9), 0x602800080017F00n, "toIndex: truncate towards 0"); -assert.sameValue(sample.getBigUint64("2.9"), 0x602800080017F00n, +assert.sameValue(sample.getBigUint64(2), 0x602800080017F00 n); +assert.sameValue(sample.getBigUint64("2"), 0x602800080017F00 n, "toIndex: parse Number"); +assert.sameValue(sample.getBigUint64(2.9), 0x602800080017F00 n, "toIndex: truncate towards 0"); +assert.sameValue(sample.getBigUint64("2.9"), 0x602800080017F00 n, "toIndex: parse Number => truncate towards 0"); -assert.sameValue(sample.getBigUint64(3), 0x2800080017F0001n); -assert.sameValue(sample.getBigUint64("3"), 0x2800080017F0001n, "toIndex: parse Number"); -assert.sameValue(sample.getBigUint64(3.9), 0x2800080017F0001n, "toIndex: truncate towards 0"); -assert.sameValue(sample.getBigUint64("3.9"), 0x2800080017F0001n, +assert.sameValue(sample.getBigUint64(3), 0x2800080017F0001 n); +assert.sameValue(sample.getBigUint64("3"), 0x2800080017F0001 n, "toIndex: parse Number"); +assert.sameValue(sample.getBigUint64(3.9), 0x2800080017F0001 n, "toIndex: truncate towards 0"); +assert.sameValue(sample.getBigUint64("3.9"), 0x2800080017F0001 n, "toIndex: parse Number => truncate towards 0"); -assert.sameValue(sample.getBigUint64([0]), 0x2702060280008001n, +assert.sameValue(sample.getBigUint64([0]), 0x2702060280008001 n, 'ToIndex: [0].toString() => "0" => 0'); -assert.sameValue(sample.getBigUint64(["1"]), 0x20602800080017fn, +assert.sameValue(sample.getBigUint64(["1"]), 0x20602800080017f n, 'ToIndex: ["1"].toString() => "1" => 1'); -assert.sameValue(sample.getBigUint64({}), 0x2702060280008001n, +assert.sameValue(sample.getBigUint64({}), 0x2702060280008001 n, 'ToIndex: ({}).toString() => "[object Object]" => NaN => 0'); -assert.sameValue(sample.getBigUint64([]), 0x2702060280008001n, +assert.sameValue(sample.getBigUint64([]), 0x2702060280008001 n, 'ToIndex: [].toString() => "" => NaN => 0'); diff --git a/test/built-ins/DataView/prototype/setBigInt64/detached-buffer-after-bigint-value.js b/test/built-ins/DataView/prototype/setBigInt64/detached-buffer-after-bigint-value.js index 7a96e21ca8..48a491cb6c 100644 --- a/test/built-ins/DataView/prototype/setBigInt64/detached-buffer-after-bigint-value.js +++ b/test/built-ins/DataView/prototype/setBigInt64/detached-buffer-after-bigint-value.js @@ -12,7 +12,11 @@ features: [DataView, ArrayBuffer, BigInt] var buffer = new ArrayBuffer(8); var sample = new DataView(buffer, 0); -var v = { valueOf() { throw new Test262Error(); } }; +var v = { + valueOf() { + throw new Test262Error(); + } +}; $DETACHBUFFER(buffer); assert.throws(Test262Error, function() { diff --git a/test/built-ins/DataView/prototype/setBigInt64/detached-buffer.js b/test/built-ins/DataView/prototype/setBigInt64/detached-buffer.js index 3b25b94979..4361bb71af 100644 --- a/test/built-ins/DataView/prototype/setBigInt64/detached-buffer.js +++ b/test/built-ins/DataView/prototype/setBigInt64/detached-buffer.js @@ -14,5 +14,5 @@ var sample = new DataView(buffer, 0); $DETACHBUFFER(buffer); assert.throws(TypeError, function() { - sample.setBigInt64(0, 0n); + sample.setBigInt64(0, 0 n); }); diff --git a/test/built-ins/DataView/prototype/setBigInt64/index-check-before-value-conversion.js b/test/built-ins/DataView/prototype/setBigInt64/index-check-before-value-conversion.js index a092a47c3c..0852b54985 100644 --- a/test/built-ins/DataView/prototype/setBigInt64/index-check-before-value-conversion.js +++ b/test/built-ins/DataView/prototype/setBigInt64/index-check-before-value-conversion.js @@ -12,7 +12,9 @@ features: [DataView, ArrayBuffer, BigInt] var dataView = new DataView(new ArrayBuffer(8), 0); var poisoned = { - valueOf() { throw new Test262Error("valueOf called"); } + valueOf() { + throw new Test262Error("valueOf called"); + } }; assert.throws(RangeError, function() { diff --git a/test/built-ins/DataView/prototype/setBigInt64/index-is-out-of-range.js b/test/built-ins/DataView/prototype/setBigInt64/index-is-out-of-range.js index 17664246e7..420adff59e 100644 --- a/test/built-ins/DataView/prototype/setBigInt64/index-is-out-of-range.js +++ b/test/built-ins/DataView/prototype/setBigInt64/index-is-out-of-range.js @@ -14,75 +14,75 @@ var buffer = new ArrayBuffer(12); sample = new DataView(buffer, 0); assert.throws(RangeError, function() { - sample.setBigInt64(Infinity, 39n); + sample.setBigInt64(Infinity, 39 n); }, "getIndex == Infinity"); assert.throws(RangeError, function() { - sample.setBigInt64(13, 39n); + sample.setBigInt64(13, 39 n); }, "13 + 8 > 12"); assert.throws(RangeError, function() { - sample.setBigInt64(12, 39n); + sample.setBigInt64(12, 39 n); }, "12 + 8 > 12"); assert.throws(RangeError, function() { - sample.setBigInt64(11, 39n); + sample.setBigInt64(11, 39 n); }, "11 + 8 > 12"); assert.throws(RangeError, function() { - sample.setBigInt64(10, 39n); + sample.setBigInt64(10, 39 n); }, "10 + 8 > 12"); assert.throws(RangeError, function() { - sample.setBigInt64(9, 39n); + sample.setBigInt64(9, 39 n); }, "9 + 8 > 12"); assert.throws(RangeError, function() { - sample.setBigInt64(8, 39n); + sample.setBigInt64(8, 39 n); }, "8 + 8 > 12"); assert.throws(RangeError, function() { - sample.setBigInt64(7, 39n); + sample.setBigInt64(7, 39 n); }, "7 + 8 > 12"); assert.throws(RangeError, function() { - sample.setBigInt64(6, 39n); + sample.setBigInt64(6, 39 n); }, "6 + 8 > 12"); assert.throws(RangeError, function() { - sample.setBigInt64(5, 39n); + sample.setBigInt64(5, 39 n); }, "5 + 8 > 12"); sample = new DataView(buffer, 8); assert.throws(RangeError, function() { - sample.setBigInt64(1, 39n); + sample.setBigInt64(1, 39 n); }, "1 + 8 > 4 (offset)"); sample = new DataView(buffer, 9); assert.throws(RangeError, function() { - sample.setBigInt64(0, 39n); + sample.setBigInt64(0, 39 n); }, "0 + 8 > 3 (offset)"); sample = new DataView(buffer, 0, 8); assert.throws(RangeError, function() { - sample.setBigInt64(1, 39n); + sample.setBigInt64(1, 39 n); }, "1 + 8 > 8 (length)"); sample = new DataView(buffer, 0, 7); assert.throws(RangeError, function() { - sample.setBigInt64(0, 39n); + sample.setBigInt64(0, 39 n); }, "0 + 8 > 7 (length)"); sample = new DataView(buffer, 4, 8); assert.throws(RangeError, function() { - sample.setBigInt64(1, 39n); + sample.setBigInt64(1, 39 n); }, "1 + 8 > 8 (offset+length)"); sample = new DataView(buffer, 4, 7); assert.throws(RangeError, function() { - sample.setBigInt64(0, 39n); + sample.setBigInt64(0, 39 n); }, "0 + 8 > 7 (offset+length)"); sample = new DataView(buffer, 0); -assert.sameValue(sample.getBigInt64(0), 0n, "[0] no value was set"); -assert.sameValue(sample.getBigInt64(4), 0n, "[1] no value was set"); +assert.sameValue(sample.getBigInt64(0), 0 n, "[0] no value was set"); +assert.sameValue(sample.getBigInt64(4), 0 n, "[1] no value was set"); diff --git a/test/built-ins/DataView/prototype/setBigInt64/negative-byteoffset-throws.js b/test/built-ins/DataView/prototype/setBigInt64/negative-byteoffset-throws.js index fcb35cf21f..9ad0110621 100644 --- a/test/built-ins/DataView/prototype/setBigInt64/negative-byteoffset-throws.js +++ b/test/built-ins/DataView/prototype/setBigInt64/negative-byteoffset-throws.js @@ -12,11 +12,11 @@ var buffer = new ArrayBuffer(12); var sample = new DataView(buffer, 0); assert.throws(RangeError, function() { - sample.setBigInt64(-1, 39n); + sample.setBigInt64(-1, 39 n); }, "DataView access at index -1 should throw"); -assert.sameValue(sample.getBigInt64(0), 0n, "-1 - no value was set"); +assert.sameValue(sample.getBigInt64(0), 0 n, "-1 - no value was set"); assert.throws(RangeError, function() { - sample.setBigInt64(-Infinity, 39n); + sample.setBigInt64(-Infinity, 39 n); }, "DataView access at index -Infinity should throw"); -assert.sameValue(sample.getBigInt64(0), 0n, "-Infinity - no value was set"); +assert.sameValue(sample.getBigInt64(0), 0 n, "-Infinity - no value was set"); diff --git a/test/built-ins/DataView/prototype/setBigInt64/range-check-after-value-conversion.js b/test/built-ins/DataView/prototype/setBigInt64/range-check-after-value-conversion.js index 85e88974cc..6c05febdd8 100644 --- a/test/built-ins/DataView/prototype/setBigInt64/range-check-after-value-conversion.js +++ b/test/built-ins/DataView/prototype/setBigInt64/range-check-after-value-conversion.js @@ -10,7 +10,11 @@ features: [DataView, ArrayBuffer, BigInt] var dataView = new DataView(new ArrayBuffer(8), 0); -var poisoned = { valueOf() { throw new Test262Error(); } }; +var poisoned = { + valueOf() { + throw new Test262Error(); + } +}; assert.throws(Test262Error, function() { dataView.setBigInt64(100, poisoned); diff --git a/test/built-ins/DataView/prototype/setBigInt64/return-abrupt-from-tobigint-value.js b/test/built-ins/DataView/prototype/setBigInt64/return-abrupt-from-tobigint-value.js index 0411fe56b0..d09e12b13a 100644 --- a/test/built-ins/DataView/prototype/setBigInt64/return-abrupt-from-tobigint-value.js +++ b/test/built-ins/DataView/prototype/setBigInt64/return-abrupt-from-tobigint-value.js @@ -11,8 +11,16 @@ features: [DataView, ArrayBuffer, BigInt] var buffer = new ArrayBuffer(8); var sample = new DataView(buffer, 0); -var bo1 = { valueOf() { throw new Test262Error(); } }; -var bo2 = { toString() { throw new Test262Error(); } }; +var bo1 = { + valueOf() { + throw new Test262Error(); + } +}; +var bo2 = { + toString() { + throw new Test262Error(); + } +}; assert.throws(Test262Error, function() { sample.setBigInt64(0, bo1); diff --git a/test/built-ins/DataView/prototype/setBigInt64/return-abrupt-from-tonumber-byteoffset-symbol.js b/test/built-ins/DataView/prototype/setBigInt64/return-abrupt-from-tonumber-byteoffset-symbol.js index caddbafdb8..566a7d54f5 100644 --- a/test/built-ins/DataView/prototype/setBigInt64/return-abrupt-from-tonumber-byteoffset-symbol.js +++ b/test/built-ins/DataView/prototype/setBigInt64/return-abrupt-from-tonumber-byteoffset-symbol.js @@ -14,5 +14,5 @@ var sample = new DataView(buffer, 0); var s = Symbol("1"); assert.throws(TypeError, function() { - sample.setBigInt64(s, 1n); + sample.setBigInt64(s, 1 n); }); diff --git a/test/built-ins/DataView/prototype/setBigInt64/return-abrupt-from-tonumber-byteoffset.js b/test/built-ins/DataView/prototype/setBigInt64/return-abrupt-from-tonumber-byteoffset.js index c54224decf..52ae143fd9 100644 --- a/test/built-ins/DataView/prototype/setBigInt64/return-abrupt-from-tonumber-byteoffset.js +++ b/test/built-ins/DataView/prototype/setBigInt64/return-abrupt-from-tonumber-byteoffset.js @@ -11,13 +11,21 @@ features: [DataView, ArrayBuffer, BigInt] var buffer = new ArrayBuffer(1); var sample = new DataView(buffer, 0); -var bo1 = { valueOf() { throw new Test262Error(); } }; -var bo2 = { toString() { throw new Test262Error(); } }; +var bo1 = { + valueOf() { + throw new Test262Error(); + } +}; +var bo2 = { + toString() { + throw new Test262Error(); + } +}; assert.throws(Test262Error, function() { - sample.setBigInt64(bo1, 1n); + sample.setBigInt64(bo1, 1 n); }, "valueOf"); assert.throws(Test262Error, function() { - sample.setBigInt64(bo2, 1n); + sample.setBigInt64(bo2, 1 n); }, "toString"); diff --git a/test/built-ins/DataView/prototype/setBigInt64/set-values-little-endian-order.js b/test/built-ins/DataView/prototype/setBigInt64/set-values-little-endian-order.js index 9edb9da5b3..7716f66a36 100644 --- a/test/built-ins/DataView/prototype/setBigInt64/set-values-little-endian-order.js +++ b/test/built-ins/DataView/prototype/setBigInt64/set-values-little-endian-order.js @@ -13,26 +13,26 @@ var sample = new DataView(buffer, 0); var result; -result = sample.setBigInt64(0, -0x6f80ff08n, true); +result = sample.setBigInt64(0, -0x6f80ff08 n, true); assert.sameValue(result, undefined, "returns undefined #1"); -assert.sameValue(sample.getBigInt64(0), -0x7ff806f00000001n); +assert.sameValue(sample.getBigInt64(0), -0x7ff806f00000001 n); -result = sample.setBigInt64(0, -0x7ff8070n, true); +result = sample.setBigInt64(0, -0x7ff8070 n, true); assert.sameValue(result, undefined, "returns undefined #2"); -assert.sameValue(sample.getBigInt64(0), -0x6f80ff0700000001n); +assert.sameValue(sample.getBigInt64(0), -0x6f80ff0700000001 n); -result = sample.setBigInt64(0, 0x6f80ff08n, true); +result = sample.setBigInt64(0, 0x6f80ff08 n, true); assert.sameValue(result, undefined, "returns undefined #3"); -assert.sameValue(sample.getBigInt64(0), 0x8ff806f00000000n); +assert.sameValue(sample.getBigInt64(0), 0x8ff806f00000000 n); -result = sample.setBigInt64(0, 0x8ff806fn, true); +result = sample.setBigInt64(0, 0x8ff806f n, true); assert.sameValue(result, undefined, "returns undefined #4"); -assert.sameValue(sample.getBigInt64(0), 0x6f80ff0800000000n); +assert.sameValue(sample.getBigInt64(0), 0x6f80ff0800000000 n); -result = sample.setBigInt64(0, 0xf8007f90n, true); +result = sample.setBigInt64(0, 0xf8007f90 n, true); assert.sameValue(result, undefined, "returns undefined #5"); -assert.sameValue(sample.getBigInt64(0), -0x6f80ff0800000000n); +assert.sameValue(sample.getBigInt64(0), -0x6f80ff0800000000 n); -result = sample.setBigInt64(0, 0x907f00f8n, true); +result = sample.setBigInt64(0, 0x907f00f8 n, true); assert.sameValue(result, undefined, "returns undefined #6"); -assert.sameValue(sample.getBigInt64(0), -0x7ff807000000000n); +assert.sameValue(sample.getBigInt64(0), -0x7ff807000000000 n); diff --git a/test/built-ins/DataView/prototype/setBigInt64/set-values-return-undefined.js b/test/built-ins/DataView/prototype/setBigInt64/set-values-return-undefined.js index a92ede6c69..4e2d481c1f 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 760dd8f625..8311d9b3df 100644 --- a/test/built-ins/DataView/prototype/setBigInt64/to-boolean-littleendian.js +++ b/test/built-ins/DataView/prototype/setBigInt64/to-boolean-littleendian.js @@ -12,23 +12,23 @@ var buffer = new ArrayBuffer(8); var sample = new DataView(buffer, 0); // False -sample.setBigInt64(0, 1n); -assert.sameValue(sample.getBigInt64(0), 1n, "no arg"); -sample.setBigInt64(0, 2n, undefined); -assert.sameValue(sample.getBigInt64(0), 2n, "undefined"); -sample.setBigInt64(0, 3n, null); -assert.sameValue(sample.getBigInt64(0), 3n, "null"); -sample.setBigInt64(0, 4n, 0); -assert.sameValue(sample.getBigInt64(0), 4n, "0"); -sample.setBigInt64(0, 5n, ""); -assert.sameValue(sample.getBigInt64(0), 5n, "the empty string"); +sample.setBigInt64(0, 1 n); +assert.sameValue(sample.getBigInt64(0), 1 n, "no arg"); +sample.setBigInt64(0, 2 n, undefined); +assert.sameValue(sample.getBigInt64(0), 2 n, "undefined"); +sample.setBigInt64(0, 3 n, null); +assert.sameValue(sample.getBigInt64(0), 3 n, "null"); +sample.setBigInt64(0, 4 n, 0); +assert.sameValue(sample.getBigInt64(0), 4 n, "0"); +sample.setBigInt64(0, 5 n, ""); +assert.sameValue(sample.getBigInt64(0), 5 n, "the empty string"); // True -sample.setBigInt64(0, 6n, {}); -assert.sameValue(sample.getBigInt64(0), 0x600000000000000n, "{}"); -sample.setBigInt64(0, 7n, Symbol("1")); -assert.sameValue(sample.getBigInt64(0), 0x700000000000000n, "symbol"); -sample.setBigInt64(0, 8n, 1); -assert.sameValue(sample.getBigInt64(0), 0x800000000000000n, "1"); -sample.setBigInt64(0, 9n, "string"); -assert.sameValue(sample.getBigInt64(0), 0x900000000000000n, "string"); +sample.setBigInt64(0, 6 n, {}); +assert.sameValue(sample.getBigInt64(0), 0x600000000000000 n, "{}"); +sample.setBigInt64(0, 7 n, Symbol("1")); +assert.sameValue(sample.getBigInt64(0), 0x700000000000000 n, "symbol"); +sample.setBigInt64(0, 8 n, 1); +assert.sameValue(sample.getBigInt64(0), 0x800000000000000 n, "1"); +sample.setBigInt64(0, 9 n, "string"); +assert.sameValue(sample.getBigInt64(0), 0x900000000000000 n, "string"); diff --git a/test/built-ins/DataView/prototype/setBigInt64/toindex-byteoffset.js b/test/built-ins/DataView/prototype/setBigInt64/toindex-byteoffset.js index a55f905ae3..169aba7d1d 100644 --- a/test/built-ins/DataView/prototype/setBigInt64/toindex-byteoffset.js +++ b/test/built-ins/DataView/prototype/setBigInt64/toindex-byteoffset.js @@ -11,73 +11,81 @@ features: [DataView, ArrayBuffer, BigInt] var buffer = new ArrayBuffer(12); var sample = new DataView(buffer, 0); -var obj1 = { valueOf() { return 3; } }; -var obj2 = { toString() { return 4; } }; - -sample.setBigInt64(0, 0n); -sample.setBigInt64(-0, 42n); -assert.sameValue(sample.getBigInt64(0), 42n, "-0"); - -sample.setBigInt64(3, 0n); -sample.setBigInt64(obj1, 42n); -assert.sameValue(sample.getBigInt64(3), 42n, "object's valueOf"); - -sample.setBigInt64(4, 0n); -sample.setBigInt64(obj2, 42n); -assert.sameValue(sample.getBigInt64(4), 42n, "object's toString"); - -sample.setBigInt64(0, 0n); -sample.setBigInt64("", 42n); -assert.sameValue(sample.getBigInt64(0), 42n, "the Empty string"); - -sample.setBigInt64(0, 0n); -sample.setBigInt64("0", 42n); -assert.sameValue(sample.getBigInt64(0), 42n, "string '0'"); - -sample.setBigInt64(2, 0n); -sample.setBigInt64("2", 42n); -assert.sameValue(sample.getBigInt64(2), 42n, "string '2'"); - -sample.setBigInt64(1, 0n); -sample.setBigInt64(true, 42n); -assert.sameValue(sample.getBigInt64(1), 42n, "true"); - -sample.setBigInt64(0, 0n); -sample.setBigInt64(false, 42n); -assert.sameValue(sample.getBigInt64(0), 42n, "false"); - -sample.setBigInt64(0, 0n); -sample.setBigInt64(NaN, 42n); -assert.sameValue(sample.getBigInt64(0), 42n, "NaN"); - -sample.setBigInt64(0, 0n); -sample.setBigInt64(null, 42n); -assert.sameValue(sample.getBigInt64(0), 42n, "null"); - -sample.setBigInt64(0, 0n); -sample.setBigInt64(0.1, 42n); -assert.sameValue(sample.getBigInt64(0), 42n, "0.1"); - -sample.setBigInt64(0, 0n); -sample.setBigInt64(0.9, 42n); -assert.sameValue(sample.getBigInt64(0), 42n, "0.9"); - -sample.setBigInt64(1, 0n); -sample.setBigInt64(1.1, 42n); -assert.sameValue(sample.getBigInt64(1), 42n, "1.1"); - -sample.setBigInt64(1, 0n); -sample.setBigInt64(1.9, 42n); -assert.sameValue(sample.getBigInt64(1), 42n, "1.9"); - -sample.setBigInt64(0, 0n); -sample.setBigInt64(-0.1, 42n); -assert.sameValue(sample.getBigInt64(0), 42n, "-0.1"); - -sample.setBigInt64(0, 0n); -sample.setBigInt64(-0.99999, 42n); -assert.sameValue(sample.getBigInt64(0), 42n, "-0.99999"); - -sample.setBigInt64(0, 0n); -sample.setBigInt64(undefined, 42n); -assert.sameValue(sample.getBigInt64(0), 42n, "undefined"); +var obj1 = { + valueOf() { + return 3; + } +}; +var obj2 = { + toString() { + return 4; + } +}; + +sample.setBigInt64(0, 0 n); +sample.setBigInt64(-0, 42 n); +assert.sameValue(sample.getBigInt64(0), 42 n, "-0"); + +sample.setBigInt64(3, 0 n); +sample.setBigInt64(obj1, 42 n); +assert.sameValue(sample.getBigInt64(3), 42 n, "object's valueOf"); + +sample.setBigInt64(4, 0 n); +sample.setBigInt64(obj2, 42 n); +assert.sameValue(sample.getBigInt64(4), 42 n, "object's toString"); + +sample.setBigInt64(0, 0 n); +sample.setBigInt64("", 42 n); +assert.sameValue(sample.getBigInt64(0), 42 n, "the Empty string"); + +sample.setBigInt64(0, 0 n); +sample.setBigInt64("0", 42 n); +assert.sameValue(sample.getBigInt64(0), 42 n, "string '0'"); + +sample.setBigInt64(2, 0 n); +sample.setBigInt64("2", 42 n); +assert.sameValue(sample.getBigInt64(2), 42 n, "string '2'"); + +sample.setBigInt64(1, 0 n); +sample.setBigInt64(true, 42 n); +assert.sameValue(sample.getBigInt64(1), 42 n, "true"); + +sample.setBigInt64(0, 0 n); +sample.setBigInt64(false, 42 n); +assert.sameValue(sample.getBigInt64(0), 42 n, "false"); + +sample.setBigInt64(0, 0 n); +sample.setBigInt64(NaN, 42 n); +assert.sameValue(sample.getBigInt64(0), 42 n, "NaN"); + +sample.setBigInt64(0, 0 n); +sample.setBigInt64(null, 42 n); +assert.sameValue(sample.getBigInt64(0), 42 n, "null"); + +sample.setBigInt64(0, 0 n); +sample.setBigInt64(0.1, 42 n); +assert.sameValue(sample.getBigInt64(0), 42 n, "0.1"); + +sample.setBigInt64(0, 0 n); +sample.setBigInt64(0.9, 42 n); +assert.sameValue(sample.getBigInt64(0), 42 n, "0.9"); + +sample.setBigInt64(1, 0 n); +sample.setBigInt64(1.1, 42 n); +assert.sameValue(sample.getBigInt64(1), 42 n, "1.1"); + +sample.setBigInt64(1, 0 n); +sample.setBigInt64(1.9, 42 n); +assert.sameValue(sample.getBigInt64(1), 42 n, "1.9"); + +sample.setBigInt64(0, 0 n); +sample.setBigInt64(-0.1, 42 n); +assert.sameValue(sample.getBigInt64(0), 42 n, "-0.1"); + +sample.setBigInt64(0, 0 n); +sample.setBigInt64(-0.99999, 42 n); +assert.sameValue(sample.getBigInt64(0), 42 n, "-0.99999"); + +sample.setBigInt64(0, 0 n); +sample.setBigInt64(undefined, 42 n); +assert.sameValue(sample.getBigInt64(0), 42 n, "undefined"); diff --git a/test/built-ins/DataView/prototype/setInt32/toindex-byteoffset.js b/test/built-ins/DataView/prototype/setInt32/toindex-byteoffset.js index f5b45a5ae9..0d71d4dfbc 100644 --- a/test/built-ins/DataView/prototype/setInt32/toindex-byteoffset.js +++ b/test/built-ins/DataView/prototype/setInt32/toindex-byteoffset.js @@ -106,4 +106,4 @@ assert.sameValue(sample.getInt32(0), 42, "undefined"); sample.setInt32(0, 7); sample.setInt32(); -assert.sameValue(sample.getInt32(0), 0, "no arg"); \ No newline at end of file +assert.sameValue(sample.getInt32(0), 0, "no arg"); diff --git a/test/built-ins/Date/15.9.1.15-1.js b/test/built-ins/Date/15.9.1.15-1.js index b2f1f1c01f..395a20bbc8 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 fd49157378..24722c8ddd 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 c461b0e875..4d627a8091 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 af7e4e3e67..7e6baff635 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 a787643e81..3265980f92 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 648c8bbce7..875e3a8a4d 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 086ed9a6ca..ef574b9651 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 6a6ed02fdf..0f1d0df2c8 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 5288bf7b97..dac4065f5e 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 6f31096ca0..cf02c44a1a 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 d94064962f..b10c645855 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 cf4ed45a9b..bb2848b632 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 1b2c23946a..b1549d400b 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 d1b0a43fa5..8b34dd84b4 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 b3ff5fc8cc..8fde48a2fa 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 6f7174902b..890ce66430 100644 --- a/test/built-ins/Date/S15.9.3.1_A4_T1.js +++ b/test/built-ins/Date/S15.9.3.1_A4_T1.js @@ -17,30 +17,34 @@ es5id: 15.9.3.1_A4_T1 description: 2 arguments, (year, month) ---*/ -var myObj = function(val){ +var myObj = function(val) { this.value = val; - this.valueOf = function(){throw "valueOf-"+this.value;}; - this.toString = function(){throw "toString-"+this.value;}; + this.valueOf = function() { + throw "valueOf-" + this.value; + }; + this.toString = function() { + throw "toString-" + this.value; + }; }; //CHECK#1 -try{ +try { var x1 = new Date(new myObj(1), new myObj(2)); $ERROR("#1: The 1st step is calling ToNumber(year)"); } -catch(e){ - if(e !== "valueOf-1"){ +catch (e) { + if (e !== "valueOf-1") { $ERROR("#1: The 1st step is calling ToNumber(year)"); } } //CHECK#2 -try{ +try { var x2 = new Date(1, new myObj(2)); $ERROR("#2: The 2nd step is calling ToNumber(month)"); } -catch(e){ - if(e !== "valueOf-2"){ +catch (e) { + if (e !== "valueOf-2") { $ERROR("#2: The 2nd step is calling ToNumber(month)"); } } diff --git a/test/built-ins/Date/S15.9.3.1_A4_T2.js b/test/built-ins/Date/S15.9.3.1_A4_T2.js index 3dbe78ff75..bc3fc25037 100644 --- a/test/built-ins/Date/S15.9.3.1_A4_T2.js +++ b/test/built-ins/Date/S15.9.3.1_A4_T2.js @@ -17,41 +17,45 @@ es5id: 15.9.3.1_A4_T2 description: 3 arguments, (year, month, date) ---*/ -var myObj = function(val){ +var myObj = function(val) { this.value = val; - this.valueOf = function(){throw "valueOf-"+this.value;}; - this.toString = function(){throw "toString-"+this.value;}; + this.valueOf = function() { + throw "valueOf-" + this.value; + }; + this.toString = function() { + throw "toString-" + this.value; + }; }; //CHECK#1 -try{ +try { var x1 = new Date(new myObj(1), new myObj(2), new myObj(3)); $ERROR("#1: The 1st step is calling ToNumber(year)"); } -catch(e){ - if(e !== "valueOf-1"){ +catch (e) { + if (e !== "valueOf-1") { $ERROR("#1: The 1st step is calling ToNumber(year)"); } } //CHECK#2 -try{ +try { var x2 = new Date(1, new myObj(2), new myObj(3)); $ERROR("#2: The 2nd step is calling ToNumber(month)"); } -catch(e){ - if(e !== "valueOf-2"){ +catch (e) { + if (e !== "valueOf-2") { $ERROR("#2: The 2nd step is calling ToNumber(month)"); } } //CHECK#3 -try{ +try { var x3 = new Date(1, 2, new myObj(3)); $ERROR("#3: The 3rd step is calling ToNumber(date)"); } -catch(e){ - if(e !== "valueOf-3"){ +catch (e) { + if (e !== "valueOf-3") { $ERROR("#3: The 3rd step is calling ToNumber(date)"); } } diff --git a/test/built-ins/Date/S15.9.3.1_A4_T3.js b/test/built-ins/Date/S15.9.3.1_A4_T3.js index ff59c4e69b..2280edf5df 100644 --- a/test/built-ins/Date/S15.9.3.1_A4_T3.js +++ b/test/built-ins/Date/S15.9.3.1_A4_T3.js @@ -17,52 +17,56 @@ es5id: 15.9.3.1_A4_T3 description: 4 arguments, (year, month, date, hours) ---*/ -var myObj = function(val){ +var myObj = function(val) { this.value = val; - this.valueOf = function(){throw "valueOf-"+this.value;}; - this.toString = function(){throw "toString-"+this.value;}; + this.valueOf = function() { + throw "valueOf-" + this.value; + }; + this.toString = function() { + throw "toString-" + this.value; + }; }; //CHECK#1 -try{ +try { var x1 = new Date(new myObj(1), new myObj(2), new myObj(3), new myObj(4)); $ERROR("#1: The 1st step is calling ToNumber(year)"); } -catch(e){ - if(e !== "valueOf-1"){ +catch (e) { + if (e !== "valueOf-1") { $ERROR("#1: The 1st step is calling ToNumber(year)"); } } //CHECK#2 -try{ +try { var x2 = new Date(1, new myObj(2), new myObj(3), new myObj(4)); $ERROR("#2: The 2nd step is calling ToNumber(month)"); } -catch(e){ - if(e !== "valueOf-2"){ +catch (e) { + if (e !== "valueOf-2") { $ERROR("#2: The 2nd step is calling ToNumber(month)"); } } //CHECK#3 -try{ +try { var x3 = new Date(1, 2, new myObj(3), new myObj(4)); $ERROR("#3: The 3rd step is calling ToNumber(date)"); } -catch(e){ - if(e !== "valueOf-3"){ +catch (e) { + if (e !== "valueOf-3") { $ERROR("#3: The 3rd step is calling ToNumber(date)"); } } //CHECK#4 -try{ +try { var x4 = new Date(1, 2, 3, new myObj(4)); $ERROR("#4: The 4th step is calling ToNumber(hours)"); } -catch(e){ - if(e !== "valueOf-4"){ +catch (e) { + if (e !== "valueOf-4") { $ERROR("#4: The 4th step is calling ToNumber(hours)"); } } diff --git a/test/built-ins/Date/S15.9.3.1_A4_T4.js b/test/built-ins/Date/S15.9.3.1_A4_T4.js index c9377d5993..49a0d15d2d 100644 --- a/test/built-ins/Date/S15.9.3.1_A4_T4.js +++ b/test/built-ins/Date/S15.9.3.1_A4_T4.js @@ -17,63 +17,67 @@ es5id: 15.9.3.1_A4_T4 description: 5 arguments, (year, month, date, hours, minutes) ---*/ -var myObj = function(val){ +var myObj = function(val) { this.value = val; - this.valueOf = function(){throw "valueOf-"+this.value;}; - this.toString = function(){throw "toString-"+this.value;}; + this.valueOf = function() { + throw "valueOf-" + this.value; + }; + this.toString = function() { + throw "toString-" + this.value; + }; }; //CHECK#1 -try{ +try { var x1 = new Date(new myObj(1), new myObj(2), new myObj(3), new myObj(4), new myObj(5)); $ERROR("#1: The 1st step is calling ToNumber(year)"); } -catch(e){ - if(e !== "valueOf-1"){ +catch (e) { + if (e !== "valueOf-1") { $ERROR("#1: The 1st step is calling ToNumber(year)"); } } //CHECK#2 -try{ +try { var x2 = new Date(1, new myObj(2), new myObj(3), new myObj(4), new myObj(5)); $ERROR("#2: The 2nd step is calling ToNumber(month)"); } -catch(e){ - if(e !== "valueOf-2"){ +catch (e) { + if (e !== "valueOf-2") { $ERROR("#2: The 2nd step is calling ToNumber(month)"); } } //CHECK#3 -try{ +try { var x3 = new Date(1, 2, new myObj(3), new myObj(4), new myObj(5)); $ERROR("#3: The 3rd step is calling ToNumber(date)"); } -catch(e){ - if(e !== "valueOf-3"){ +catch (e) { + if (e !== "valueOf-3") { $ERROR("#3: The 3rd step is calling ToNumber(date)"); } } //CHECK#4 -try{ +try { var x4 = new Date(1, 2, 3, new myObj(4), new myObj(5)); $ERROR("#4: The 4th step is calling ToNumber(hours)"); } -catch(e){ - if(e !== "valueOf-4"){ +catch (e) { + if (e !== "valueOf-4") { $ERROR("#4: The 4th step is calling ToNumber(hours)"); } } //CHECK#5 -try{ +try { var x5 = new Date(1, 2, 3, 4, new myObj(5)); $ERROR("#5: The 5th step is calling ToNumber(minutes)"); } -catch(e){ - if(e !== "valueOf-5"){ +catch (e) { + if (e !== "valueOf-5") { $ERROR("#5: The 5th step is calling ToNumber(minutes)"); } } diff --git a/test/built-ins/Date/S15.9.3.1_A4_T5.js b/test/built-ins/Date/S15.9.3.1_A4_T5.js index 646a93696f..f7bf7f2042 100644 --- a/test/built-ins/Date/S15.9.3.1_A4_T5.js +++ b/test/built-ins/Date/S15.9.3.1_A4_T5.js @@ -17,74 +17,78 @@ es5id: 15.9.3.1_A4_T5 description: 6 arguments, (year, month, date, hours, minutes, seconds) ---*/ -var myObj = function(val){ +var myObj = function(val) { this.value = val; - this.valueOf = function(){throw "valueOf-"+this.value;}; - this.toString = function(){throw "toString-"+this.value;}; + this.valueOf = function() { + throw "valueOf-" + this.value; + }; + this.toString = function() { + throw "toString-" + this.value; + }; }; //CHECK#1 -try{ +try { var x1 = new Date(new myObj(1), new myObj(2), new myObj(3), new myObj(4), new myObj(5), new myObj(6)); $ERROR("#1: The 1st step is calling ToNumber(year)"); } -catch(e){ - if(e !== "valueOf-1"){ +catch (e) { + if (e !== "valueOf-1") { $ERROR("#1: The 1st step is calling ToNumber(year)"); } } //CHECK#2 -try{ +try { var x2 = new Date(1, new myObj(2), new myObj(3), new myObj(4), new myObj(5), new myObj(6)); $ERROR("#2: The 2nd step is calling ToNumber(month)"); } -catch(e){ - if(e !== "valueOf-2"){ +catch (e) { + if (e !== "valueOf-2") { $ERROR("#2: The 2nd step is calling ToNumber(month)"); } } //CHECK#3 -try{ +try { var x3 = new Date(1, 2, new myObj(3), new myObj(4), new myObj(5), new myObj(6)); $ERROR("#3: The 3rd step is calling ToNumber(date)"); } -catch(e){ - if(e !== "valueOf-3"){ +catch (e) { + if (e !== "valueOf-3") { $ERROR("#3: The 3rd step is calling ToNumber(date)"); } } //CHECK#4 -try{ +try { var x4 = new Date(1, 2, 3, new myObj(4), new myObj(5), new myObj(6)); $ERROR("#4: The 4th step is calling ToNumber(hours)"); } -catch(e){ - if(e !== "valueOf-4"){ +catch (e) { + if (e !== "valueOf-4") { $ERROR("#4: The 4th step is calling ToNumber(hours)"); } } //CHECK#5 -try{ +try { var x5 = new Date(1, 2, 3, 4, new myObj(5), new myObj(6)); $ERROR("#5: The 5th step is calling ToNumber(minutes)"); } -catch(e){ - if(e !== "valueOf-5"){ +catch (e) { + if (e !== "valueOf-5") { $ERROR("#5: The 5th step is calling ToNumber(minutes)"); } } //CHECK#6 -try{ +try { var x6 = new Date(1, 2, 3, 4, 5, new myObj(6)); $ERROR("#6: The 6th step is calling ToNumber(seconds)"); } -catch(e){ - if(e !== "valueOf-6"){ +catch (e) { + if (e !== "valueOf-6") { $ERROR("#6: The 6th step is calling ToNumber(seconds)"); } } diff --git a/test/built-ins/Date/S15.9.3.1_A4_T6.js b/test/built-ins/Date/S15.9.3.1_A4_T6.js index 16f6dedb88..8eebc2ec66 100644 --- a/test/built-ins/Date/S15.9.3.1_A4_T6.js +++ b/test/built-ins/Date/S15.9.3.1_A4_T6.js @@ -17,85 +17,89 @@ es5id: 15.9.3.1_A4_T6 description: 7 arguments, (year, month, date, hours, minutes, seconds, ms) ---*/ -var myObj = function(val){ +var myObj = function(val) { this.value = val; - this.valueOf = function(){throw "valueOf-"+this.value;}; - this.toString = function(){throw "toString-"+this.value;}; + this.valueOf = function() { + throw "valueOf-" + this.value; + }; + this.toString = function() { + throw "toString-" + this.value; + }; }; //CHECK#1 -try{ +try { var x1 = new Date(new myObj(1), new myObj(2), new myObj(3), new myObj(4), new myObj(5), new myObj(6), new myObj(7)); $ERROR("#1: The 1st step is calling ToNumber(year)"); } -catch(e){ - if(e !== "valueOf-1"){ +catch (e) { + if (e !== "valueOf-1") { $ERROR("#1: The 1st step is calling ToNumber(year)"); } } //CHECK#2 -try{ +try { var x2 = new Date(1, new myObj(2), new myObj(3), new myObj(4), new myObj(5), new myObj(6), new myObj(7)); $ERROR("#2: The 2nd step is calling ToNumber(month)"); } -catch(e){ - if(e !== "valueOf-2"){ +catch (e) { + if (e !== "valueOf-2") { $ERROR("#2: The 2nd step is calling ToNumber(month)"); } } //CHECK#3 -try{ +try { var x3 = new Date(1, 2, new myObj(3), new myObj(4), new myObj(5), new myObj(6), new myObj(7)); $ERROR("#3: The 3rd step is calling ToNumber(date)"); } -catch(e){ - if(e !== "valueOf-3"){ +catch (e) { + if (e !== "valueOf-3") { $ERROR("#3: The 3rd step is calling ToNumber(date)"); } } //CHECK#4 -try{ +try { var x4 = new Date(1, 2, 3, new myObj(4), new myObj(5), new myObj(6), new myObj(7)); $ERROR("#4: The 4th step is calling ToNumber(hours)"); } -catch(e){ - if(e !== "valueOf-4"){ +catch (e) { + if (e !== "valueOf-4") { $ERROR("#4: The 4th step is calling ToNumber(hours)"); } } //CHECK#5 -try{ +try { var x5 = new Date(1, 2, 3, 4, new myObj(5), new myObj(6), new myObj(7)); $ERROR("#5: The 5th step is calling ToNumber(minutes)"); } -catch(e){ - if(e !== "valueOf-5"){ +catch (e) { + if (e !== "valueOf-5") { $ERROR("#5: The 5th step is calling ToNumber(minutes)"); } } //CHECK#6 -try{ +try { var x6 = new Date(1, 2, 3, 4, 5, new myObj(6), new myObj(7)); $ERROR("#6: The 6th step is calling ToNumber(seconds)"); } -catch(e){ - if(e !== "valueOf-6"){ +catch (e) { + if (e !== "valueOf-6") { $ERROR("#6: The 6th step is calling ToNumber(seconds)"); } } //CHECK#7 -try{ +try { var x7 = new Date(1, 2, 3, 4, 5, 6, new myObj(7)); $ERROR("#7: The 7th step is calling ToNumber(ms)"); } -catch(e){ - if(e !== "valueOf-7"){ +catch (e) { + if (e !== "valueOf-7") { $ERROR("#7: The 7th step is calling ToNumber(ms)"); } } diff --git a/test/built-ins/Date/S15.9.3.1_A5_T1.js b/test/built-ins/Date/S15.9.3.1_A5_T1.js index 9c98a6a640..e9f2d545c6 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 28a0f459f7..90c8ac12d7 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 83e35fd245..cc3c1a2894 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 aec94cc406..f7d549bb99 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 db3d3e9907..69d00640c3 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 e222772c24..ae5c324d77 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 ebde6e4bd4..bd82eadd9a 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 3cc1825c61..80e2dacd87 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 02b7842b7e..7957670f63 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 3090a39e02..dd0652d887 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 0c86338612..162bf922fb 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 96d9b652f8..066e575b0c 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 8f30c29885..7def6880c7 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 6a930ef7f4..a6c590a814 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 af50c5f72b..3db47612a1 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 3846946cdc..ced5116878 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 ce29d4b9dd..79d0468c74 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 e14dccda30..99fc8db1be 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 bbca1753e4..ccdefb1d18 100644 --- a/test/built-ins/Date/UTC/coercion-errors.js +++ b/test/built-ins/Date/UTC/coercion-errors.js @@ -17,8 +17,16 @@ info: | 9. Return TimeClip(MakeDate(MakeDay(yr, m, dt), MakeTime(h, min, s, milli))). ---*/ -var thrower = { toString: function() { throw new Test262Error(); } }; -var counter = { toString: function() { callCount += 1; } }; +var thrower = { + toString: function() { + throw new Test262Error(); + } +}; +var counter = { + toString: function() { + callCount += 1; + } +}; var callCount = 0; assert.throws(Test262Error, function() { diff --git a/test/built-ins/Date/UTC/coercion-order.js b/test/built-ins/Date/UTC/coercion-order.js index eb1d00c5f8..ec0bcd940f 100644 --- a/test/built-ins/Date/UTC/coercion-order.js +++ b/test/built-ins/Date/UTC/coercion-order.js @@ -18,14 +18,49 @@ info: | ---*/ var log = ''; -var year = { toString: function() { log += 'year'; return 0; } }; -var month = { toString: function() { log += 'month'; return 0; } }; -var date = { toString: function() { log += 'date'; return 1; } }; -var hours = { toString: function() { log += 'hours'; return 0; } }; -var minutes = { toString: function() { log += 'minutes'; return 0; } }; -var seconds = { toString: function() { log += 'seconds'; return 0; } }; -var ms = { toString: function() { log += 'ms'; return 0; } }; +var year = { + toString: function() { + log += 'year'; + return 0; + } +}; +var month = { + toString: function() { + log += 'month'; + return 0; + } +}; +var date = { + toString: function() { + log += 'date'; + return 1; + } +}; +var hours = { + toString: function() { + log += 'hours'; + return 0; + } +}; +var minutes = { + toString: function() { + log += 'minutes'; + return 0; + } +}; +var seconds = { + toString: function() { + log += 'seconds'; + return 0; + } +}; +var ms = { + toString: function() { + log += 'ms'; + return 0; + } +}; -Date.UTC(year, month, date, hours,minutes, seconds, ms); +Date.UTC(year, month, date, hours, minutes, seconds, ms); assert.sameValue(log, 'yearmonthdatehoursminutessecondsms'); diff --git a/test/built-ins/Date/UTC/infinity-make-day.js b/test/built-ins/Date/UTC/infinity-make-day.js index f0362a4c04..0fee93fd6f 100644 --- a/test/built-ins/Date/UTC/infinity-make-day.js +++ b/test/built-ins/Date/UTC/infinity-make-day.js @@ -25,4 +25,3 @@ assert.sameValue(Date.UTC(0, -Infinity), NaN, 'month: -Infinity'); assert.sameValue(Date.UTC(0, 0, Infinity), NaN, 'date: Infinity'); assert.sameValue(Date.UTC(0, 0, -Infinity), NaN, 'date: -Infinity'); - diff --git a/test/built-ins/Date/coercion-errors.js b/test/built-ins/Date/coercion-errors.js index 70aef63828..32f11d8155 100644 --- a/test/built-ins/Date/coercion-errors.js +++ b/test/built-ins/Date/coercion-errors.js @@ -21,8 +21,16 @@ info: | l. Return O. ---*/ -var thrower = { toString: function() { throw new Test262Error(); } }; -var counter = { toString: function() { callCount += 1; } }; +var thrower = { + toString: function() { + throw new Test262Error(); + } +}; +var counter = { + toString: function() { + callCount += 1; + } +}; var callCount = 0; assert.throws(Test262Error, function() { diff --git a/test/built-ins/Date/coercion-order.js b/test/built-ins/Date/coercion-order.js index f794b4d911..6ecba56b9d 100644 --- a/test/built-ins/Date/coercion-order.js +++ b/test/built-ins/Date/coercion-order.js @@ -22,14 +22,49 @@ info: | ---*/ var log = ''; -var year = { toString: function() { log += 'year'; return 0; } }; -var month = { toString: function() { log += 'month'; return 0; } }; -var date = { toString: function() { log += 'date'; return 1; } }; -var hours = { toString: function() { log += 'hours'; return 0; } }; -var minutes = { toString: function() { log += 'minutes'; return 0; } }; -var seconds = { toString: function() { log += 'seconds'; return 0; } }; -var ms = { toString: function() { log += 'ms'; return 0; } }; +var year = { + toString: function() { + log += 'year'; + return 0; + } +}; +var month = { + toString: function() { + log += 'month'; + return 0; + } +}; +var date = { + toString: function() { + log += 'date'; + return 1; + } +}; +var hours = { + toString: function() { + log += 'hours'; + return 0; + } +}; +var minutes = { + toString: function() { + log += 'minutes'; + return 0; + } +}; +var seconds = { + toString: function() { + log += 'seconds'; + return 0; + } +}; +var ms = { + toString: function() { + log += 'ms'; + return 0; + } +}; -new Date(year, month, date, hours,minutes, seconds, ms); +new Date(year, month, date, hours, minutes, seconds, ms); assert.sameValue(log, 'yearmonthdatehoursminutessecondsms'); diff --git a/test/built-ins/Date/now/15.9.4.4-0-3.js b/test/built-ins/Date/now/15.9.4.4-0-3.js index bafb8bcdde..49c7ac4259 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 48587d9d69..e820b95d02 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 1b7e25f8d7..65bb436f50 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 b91821807a..28de1c4973 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 bfec5f9087..83b526abcd 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 dc2af6291a..50c4f3128e 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 404fbfa251..5e2de082f6 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 e40edd102d..584534f08d 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 03fa78a01b..4e8aa39a4b 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 dc4be9ce96..2eed4f1eb3 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 9aefb6afe5..0ee361179e 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 45f26ff7b3..c069dc245b 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 748d927ddb..93d0473d5f 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 1c3a6f0fa2..03d792523b 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 eb79567f32..d4e616a3b0 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 bb69276387..956c540300 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 7f28f0e7e7..1702b4f796 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 4c6c2369d2..a97e2830e6 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 2e12494f19..a808725adf 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 22a6ea411d..8d697d6659 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 f99b87ae63..4e8e7e1c6d 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 6decf276d5..901af6df6b 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 8ea5416202..1ea076f8b7 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 f45c81f911..e6e74d724c 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 f4131a3870..a1bfd2a829 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 1bfad7eddd..b0c5d99148 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 d023a173d9..121995f933 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 fa1eb9a962..91af4cab85 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 004239f0b2..f6b144d329 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 77de3c9645..7e06d80203 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 63cc548530..8dab8344e2 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 745978484b..62bf0c5fe8 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 945c9f4951..a3fa23e11e 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 2b04f057b0..dce48a446e 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 29ca2ca874..5cfb076ede 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 757515d0ac..9477085b7a 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 73e634993c..c9fe329cb4 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 87df1a9224..e65718a734 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 332509563c..64f801900c 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 086486601e..19e349e8b1 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 e64d4dade1..85f07b5f2f 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 887364be28..4810950ba9 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 ef6a352ada..c2a98b4144 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 7eff330465..4fa278360c 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 2d76fab112..1c88f55bd9 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 562c03ec12..1b4ce8b06a 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 b5d13f4bff..0798b71487 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 096cb7f621..b32f6858f7 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 af8535a377..879e1bfc91 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 c6c4eb4b44..61dc0ef4cb 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 61e0ee127b..207f28c6ad 100644 --- a/test/built-ins/Date/prototype/Symbol.toPrimitive/hint-invalid.js +++ b/test/built-ins/Date/prototype/Symbol.toPrimitive/hint-invalid.js @@ -48,5 +48,9 @@ assert.throws(TypeError, function() { }); assert.throws(TypeError, function() { - d[Symbol.toPrimitive]({ toString: function() { 'number'; } }); + d[Symbol.toPrimitive]({ + toString: function() { + 'number'; + } + }); }); diff --git a/test/built-ins/Date/prototype/constructor/S15.9.5.1_A1_T1.js b/test/built-ins/Date/prototype/constructor/S15.9.5.1_A1_T1.js index 015869e875..7b31914c45 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 1969ffc3e6..fb7f638138 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 4c0bd7cb39..585613408a 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 e7fe30436b..49cd15ab26 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 529e66b44d..b5beb2284d 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 e913c47d30..d920a2e816 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 602a86f0e6..3a75f29c6e 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 1b88c0dfa1..61047cc755 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 8c8984d235..76ad845df2 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 14a92d6e3d..4756c8aa0d 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 d52223e2dc..464dd1a2f5 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 2bfb76a144..1838bde8e8 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 6734712ca1..31eb39ad36 100644 --- a/test/built-ins/Date/prototype/getDate/this-value-non-date.js +++ b/test/built-ins/Date/prototype/getDate/this-value-non-date.js @@ -16,7 +16,9 @@ info: | ---*/ var getDate = Date.prototype.getDate; -var args = (function() { return arguments; }()); +var args = (function() { + return arguments; +}()); assert.sameValue(typeof getDate, 'function'); diff --git a/test/built-ins/Date/prototype/getDay/S15.9.5.16_A1_T1.js b/test/built-ins/Date/prototype/getDay/S15.9.5.16_A1_T1.js index 646100bc1b..dd0195edc3 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 2524225ed7..dc5b545841 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 ec4cc8a1aa..d7c241aaad 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 a1d10c6dca..f9ab232680 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 44019e9b98..fa7ea6a930 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 8d062a86b6..e0c5e04e38 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 71adf2c099..f03661dd90 100644 --- a/test/built-ins/Date/prototype/getDay/this-value-non-date.js +++ b/test/built-ins/Date/prototype/getDay/this-value-non-date.js @@ -16,7 +16,9 @@ info: | ---*/ var getDay = Date.prototype.getDay; -var args = (function() { return arguments; }()); +var args = (function() { + return arguments; +}()); assert.sameValue(typeof getDay, 'function'); diff --git a/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A1_T1.js b/test/built-ins/Date/prototype/getFullYear/S15.9.5.10_A1_T1.js index e965ed28db..54897a558c 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 087abbffb7..bfc30f4390 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 e410c92139..bc6e973095 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 76682ac390..e6126c6a1c 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 8b35eb11b0..9bdbc7d895 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 36e66960f2..7fedce52a1 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 db86b65f9b..f191bd5a6c 100644 --- a/test/built-ins/Date/prototype/getFullYear/this-value-non-date.js +++ b/test/built-ins/Date/prototype/getFullYear/this-value-non-date.js @@ -16,7 +16,9 @@ info: | ---*/ var getFullYear = Date.prototype.getFullYear; -var args = (function() { return arguments; }()); +var args = (function() { + return arguments; +}()); assert.sameValue(typeof getFullYear, 'function'); diff --git a/test/built-ins/Date/prototype/getHours/S15.9.5.18_A1_T1.js b/test/built-ins/Date/prototype/getHours/S15.9.5.18_A1_T1.js index 77a92e2fd6..b587f199e1 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 b0c1a1677c..08824758c7 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 b9a4dd05bb..eb6d465017 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 675c26289e..81af2ec449 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 44b4002599..2f00e05fd2 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 57b77bb9d0..ad3d3e28ab 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 7c922a9b22..075c0dd9ad 100644 --- a/test/built-ins/Date/prototype/getHours/this-value-non-date.js +++ b/test/built-ins/Date/prototype/getHours/this-value-non-date.js @@ -16,7 +16,9 @@ info: | ---*/ var getHours = Date.prototype.getHours; -var args = (function() { return arguments; }()); +var args = (function() { + return arguments; +}()); assert.sameValue(typeof getHours, 'function'); diff --git a/test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A1_T1.js b/test/built-ins/Date/prototype/getMilliseconds/S15.9.5.24_A1_T1.js index 765dcd7e05..d1e27ba34c 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 f4e40a3e01..41309fa454 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 3e16f9726a..38483bcc47 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 8ad8bf927f..e564b8cb8e 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 47e7ee0fd6..02f01b39ea 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 fd1e1c6749..303c244a2c 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 1c71dc3839..284cbcbfed 100644 --- a/test/built-ins/Date/prototype/getMilliseconds/this-value-non-date.js +++ b/test/built-ins/Date/prototype/getMilliseconds/this-value-non-date.js @@ -16,7 +16,9 @@ info: | ---*/ var getMilliseconds = Date.prototype.getMilliseconds; -var args = (function() { return arguments; }()); +var args = (function() { + return arguments; +}()); assert.sameValue(typeof getMilliseconds, 'function'); diff --git a/test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A1_T1.js b/test/built-ins/Date/prototype/getMinutes/S15.9.5.20_A1_T1.js index f3d30e6bfc..b41afec04f 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 0ef2017329..a219893050 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 bf774828d6..5992ea3fe6 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 92f972fb11..6b83032daf 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 7d6952bf71..f8b013db84 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 35b1fe5fa6..92454620e9 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 b8e220a5aa..1eca182ac0 100644 --- a/test/built-ins/Date/prototype/getMinutes/this-value-non-date.js +++ b/test/built-ins/Date/prototype/getMinutes/this-value-non-date.js @@ -16,7 +16,9 @@ info: | ---*/ var getMinutes = Date.prototype.getMinutes; -var args = (function() { return arguments; }()); +var args = (function() { + return arguments; +}()); assert.sameValue(typeof getMinutes, 'function'); diff --git a/test/built-ins/Date/prototype/getMonth/S15.9.5.12_A1_T1.js b/test/built-ins/Date/prototype/getMonth/S15.9.5.12_A1_T1.js index 98da5f955e..a21e5c917d 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 82c5bc31fc..1ebae46de9 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 45b981bf70..ad2707c4c4 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 57b392e3c8..369327b27f 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 7352f0fe7e..f138e4541d 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 6f8e681676..ef10bf2164 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 35e9a49c8c..0dbd2ef096 100644 --- a/test/built-ins/Date/prototype/getMonth/this-value-non-date.js +++ b/test/built-ins/Date/prototype/getMonth/this-value-non-date.js @@ -16,7 +16,9 @@ info: | ---*/ var getMonth = Date.prototype.getMonth; -var args = (function() { return arguments; }()); +var args = (function() { + return arguments; +}()); assert.sameValue(typeof getMonth, 'function'); diff --git a/test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A1_T1.js b/test/built-ins/Date/prototype/getSeconds/S15.9.5.22_A1_T1.js index 2a323bf2f8..c3ecf96709 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 5a54ceef22..0f5b25ac6b 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 8bdef21e52..c8ef094ed0 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 2421448a40..4670ca41c6 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 0d15087da5..6bf3900c9b 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 f60e804892..5f3a77b801 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 e2068723ea..01b061bb67 100644 --- a/test/built-ins/Date/prototype/getSeconds/this-value-non-date.js +++ b/test/built-ins/Date/prototype/getSeconds/this-value-non-date.js @@ -16,7 +16,9 @@ info: | ---*/ var getSeconds = Date.prototype.getSeconds; -var args = (function() { return arguments; }()); +var args = (function() { + return arguments; +}()); assert.sameValue(typeof getSeconds, 'function'); diff --git a/test/built-ins/Date/prototype/getTime/S15.9.5.9_A1_T1.js b/test/built-ins/Date/prototype/getTime/S15.9.5.9_A1_T1.js index 48649c664f..d64c25bda6 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 f8989220a0..c492eeb3e0 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 c390183cc0..03899aedbd 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 3c58405328..bfb10ee717 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 7a966b47f0..ed9a191ef7 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 bdd9c3d202..9c70eb7d3f 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 ee4bb53d55..5e97078b72 100644 --- a/test/built-ins/Date/prototype/getTime/this-value-non-date.js +++ b/test/built-ins/Date/prototype/getTime/this-value-non-date.js @@ -16,7 +16,9 @@ info: | ---*/ var getTime = Date.prototype.getTime; -var args = (function() { return arguments; }()); +var args = (function() { + return arguments; +}()); assert.sameValue(typeof getTime, 'function'); diff --git a/test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A1_T1.js b/test/built-ins/Date/prototype/getTimezoneOffset/S15.9.5.26_A1_T1.js index 7255118e1b..f3a664fcb3 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 721d0a6572..553711f41a 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 d52abbf4c5..6665c7a287 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 75f1923f74..606a8b167c 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 68b62628aa..2d122a8789 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 e49b97ebe2..07d60f18af 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 5cda482118..a2babe656b 100644 --- a/test/built-ins/Date/prototype/getTimezoneOffset/this-value-non-date.js +++ b/test/built-ins/Date/prototype/getTimezoneOffset/this-value-non-date.js @@ -16,7 +16,9 @@ info: | ---*/ var getTimezoneOffset = Date.prototype.getTimezoneOffset; -var args = (function() { return arguments; }()); +var args = (function() { + return arguments; +}()); assert.sameValue(typeof getTimezoneOffset, 'function'); diff --git a/test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A1_T1.js b/test/built-ins/Date/prototype/getUTCDate/S15.9.5.15_A1_T1.js index 2d827c88a1..a0dbe95e8d 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 70c26e2832..90ab47a5d4 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 522c090fcf..e91f04ae88 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 92141a35ec..d9a4b4075c 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 e033667357..de279e6ea4 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 780ec6ea48..5f7607bda7 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 d2dae66340..19c4ffdb2c 100644 --- a/test/built-ins/Date/prototype/getUTCDate/this-value-non-date.js +++ b/test/built-ins/Date/prototype/getUTCDate/this-value-non-date.js @@ -16,7 +16,9 @@ info: | ---*/ var getUTCDate = Date.prototype.getUTCDate; -var args = (function() { return arguments; }()); +var args = (function() { + return arguments; +}()); assert.sameValue(typeof getUTCDate, 'function'); diff --git a/test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A1_T1.js b/test/built-ins/Date/prototype/getUTCDay/S15.9.5.17_A1_T1.js index e7d0f56a33..b461a8e7b7 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 526741c0a6..05074a1e11 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 49aeeec1b9..3c7bc11a95 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 f506616e0c..616287d5b5 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 0eac97f72c..e16a345ee9 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 00f0e984ca..edbb9776c4 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 a7cbdb9531..156fe2099b 100644 --- a/test/built-ins/Date/prototype/getUTCDay/this-value-non-date.js +++ b/test/built-ins/Date/prototype/getUTCDay/this-value-non-date.js @@ -16,7 +16,9 @@ info: | ---*/ var getUTCDay = Date.prototype.getUTCDay; -var args = (function() { return arguments; }()); +var args = (function() { + return arguments; +}()); assert.sameValue(typeof getUTCDay, 'function'); diff --git a/test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A1_T1.js b/test/built-ins/Date/prototype/getUTCFullYear/S15.9.5.11_A1_T1.js index b1fa8320d3..c96f0d581d 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 1af48d17c9..db54c4e560 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 1a306a52af..76ac39c617 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 106f8dbfdf..392c4f2270 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 587a257d1e..12616454fc 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 a2f421570d..973396f11d 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 deb4325ec2..b64b3df416 100644 --- a/test/built-ins/Date/prototype/getUTCFullYear/this-value-non-date.js +++ b/test/built-ins/Date/prototype/getUTCFullYear/this-value-non-date.js @@ -16,7 +16,9 @@ info: | ---*/ var getUTCFullYear = Date.prototype.getUTCFullYear; -var args = (function() { return arguments; }()); +var args = (function() { + return arguments; +}()); assert.sameValue(typeof getUTCFullYear, 'function'); diff --git a/test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A1_T1.js b/test/built-ins/Date/prototype/getUTCHours/S15.9.5.19_A1_T1.js index 7836d0c30b..a34f021090 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 d874fb1620..da81ad63dd 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 fd140cd31a..1109de1d06 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 040c4f959e..1d9e61e9fd 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 9d5cc21862..9a83ba9687 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 4e567e4fa7..f8f01c1f6f 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 6eeee6196c..5a094cf771 100644 --- a/test/built-ins/Date/prototype/getUTCHours/this-value-non-date.js +++ b/test/built-ins/Date/prototype/getUTCHours/this-value-non-date.js @@ -16,7 +16,9 @@ info: | ---*/ var getUTCHours = Date.prototype.getUTCHours; -var args = (function() { return arguments; }()); +var args = (function() { + return arguments; +}()); assert.sameValue(typeof getUTCHours, 'function'); diff --git a/test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A1_T1.js b/test/built-ins/Date/prototype/getUTCMilliseconds/S15.9.5.25_A1_T1.js index 66f8ac106a..7ca02ffca5 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 63c9005a29..5d8c8b31f6 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 dcb5380849..0c0a8d319f 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 b14b5e9a4b..2d8a11c1bb 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 665f2989e2..9b079694f4 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 3e94430804..7a33960ae2 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 f819746d16..6c20b2ed70 100644 --- a/test/built-ins/Date/prototype/getUTCMilliseconds/this-value-non-date.js +++ b/test/built-ins/Date/prototype/getUTCMilliseconds/this-value-non-date.js @@ -16,7 +16,9 @@ info: | ---*/ var getUTCMilliseconds = Date.prototype.getUTCMilliseconds; -var args = (function() { return arguments; }()); +var args = (function() { + return arguments; +}()); assert.sameValue(typeof getUTCMilliseconds, 'function'); diff --git a/test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A1_T1.js b/test/built-ins/Date/prototype/getUTCMinutes/S15.9.5.21_A1_T1.js index 3ddc4e156d..de48fbbabe 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 7bca0c22de..04951c393d 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 2cac17d360..bcf79fcdca 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 ec48a54547..0704d95d0d 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 6991e95303..c33ebaaea0 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 de2100e163..b5b26ff33e 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 d1ce694e4e..10e42c208c 100644 --- a/test/built-ins/Date/prototype/getUTCMinutes/this-value-non-date.js +++ b/test/built-ins/Date/prototype/getUTCMinutes/this-value-non-date.js @@ -16,7 +16,9 @@ info: | ---*/ var getUTCMinutes = Date.prototype.getUTCMinutes; -var args = (function() { return arguments; }()); +var args = (function() { + return arguments; +}()); assert.sameValue(typeof getUTCMinutes, 'function'); diff --git a/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A1_T1.js b/test/built-ins/Date/prototype/getUTCMonth/S15.9.5.13_A1_T1.js index 705c403c3a..7e18abfda1 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 9ea891483e..a36fde2dbd 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 70498de044..bdff66e89a 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 c75a98145a..987754bcce 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 da0788086f..7f1b9e9110 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 f6755a860c..f2258b3150 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 0dacaba82f..cfb11a6a96 100644 --- a/test/built-ins/Date/prototype/getUTCMonth/this-value-non-date.js +++ b/test/built-ins/Date/prototype/getUTCMonth/this-value-non-date.js @@ -16,7 +16,9 @@ info: | ---*/ var getUTCMonth = Date.prototype.getUTCMonth; -var args = (function() { return arguments; }()); +var args = (function() { + return arguments; +}()); assert.sameValue(typeof getUTCMonth, 'function'); diff --git a/test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A1_T1.js b/test/built-ins/Date/prototype/getUTCSeconds/S15.9.5.23_A1_T1.js index b12f8f56c4..634414bb1e 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 80019c13ee..4a56c810f9 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 1d0051b560..c727249732 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 80a364e36e..e621eb0bcd 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 37ca26af5a..8ee7aa797a 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 208feef432..2a35566750 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 0b4fc5f08b..7e05c14405 100644 --- a/test/built-ins/Date/prototype/getUTCSeconds/this-value-non-date.js +++ b/test/built-ins/Date/prototype/getUTCSeconds/this-value-non-date.js @@ -16,7 +16,9 @@ info: | ---*/ var getUTCSeconds = Date.prototype.getUTCSeconds; -var args = (function() { return arguments; }()); +var args = (function() { + return arguments; +}()); assert.sameValue(typeof getUTCSeconds, 'function'); diff --git a/test/built-ins/Date/prototype/setDate/S15.9.5.36_A1_T1.js b/test/built-ins/Date/prototype/setDate/S15.9.5.36_A1_T1.js index 9745d426d9..44bf2281f4 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 ead65ce16e..106d19e4f3 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 9d30e635bc..90cdad160c 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 51be0cd064..c85ae0c509 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 d58c650788..83862dd217 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 2a523fedbd..52762004e5 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 8cfe106312..b09fd4e3ef 100644 --- a/test/built-ins/Date/prototype/setDate/this-value-non-date.js +++ b/test/built-ins/Date/prototype/setDate/this-value-non-date.js @@ -23,7 +23,9 @@ var arg = { return 1; } }; -var args = (function() { return arguments; }()); +var args = (function() { + return arguments; +}()); assert.sameValue(typeof setDate, 'function'); diff --git a/test/built-ins/Date/prototype/setFullYear/15.9.5.40_1.js b/test/built-ins/Date/prototype/setFullYear/15.9.5.40_1.js index cde7bec693..446066ceca 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 f148514c49..87c6dfceca 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 6b430e5284..2614ce2be8 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 2ecf10d654..506cc08696 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 0a49250a5c..4cab3b3347 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 ba50177466..5dab62ff42 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 565a1f80aa..170c26f653 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 ece79ddc41..9a4d316d35 100644 --- a/test/built-ins/Date/prototype/setFullYear/this-value-non-date.js +++ b/test/built-ins/Date/prototype/setFullYear/this-value-non-date.js @@ -23,7 +23,9 @@ var arg = { return 1; } }; -var args = (function() { return arguments; }()); +var args = (function() { + return arguments; +}()); assert.sameValue(typeof setFullYear, 'function'); diff --git a/test/built-ins/Date/prototype/setHours/S15.9.5.34_A1_T1.js b/test/built-ins/Date/prototype/setHours/S15.9.5.34_A1_T1.js index 7b709c7599..95b5a5a210 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 fbca2081e2..a46d72b437 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 614e46e976..9d005c8e7c 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 e000d2ab63..7b8bfb66aa 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 c15bc6d2e5..83d468f5d6 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 318de235b1..d33d529cd0 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 1f0c79bffb..e1f4fc3bea 100644 --- a/test/built-ins/Date/prototype/setHours/this-value-non-date.js +++ b/test/built-ins/Date/prototype/setHours/this-value-non-date.js @@ -23,7 +23,9 @@ var arg = { return 1; } }; -var args = (function() { return arguments; }()); +var args = (function() { + return arguments; +}()); assert.sameValue(typeof setHours, 'function'); diff --git a/test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A1_T1.js b/test/built-ins/Date/prototype/setMilliseconds/S15.9.5.28_A1_T1.js index 5942a20066..ff1c5768b6 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 2bbc4a9082..7af41c60df 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 304c43553d..9f8624a50b 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 4d123f0ee2..e784ed356a 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 c53633c556..44772a4fb8 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 264f0c077e..f0af044b59 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 4ec16e5897..7e8d6c2fe4 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 df836da906..f0b0010944 100644 --- a/test/built-ins/Date/prototype/setMilliseconds/this-value-non-date.js +++ b/test/built-ins/Date/prototype/setMilliseconds/this-value-non-date.js @@ -23,7 +23,9 @@ var arg = { return 1; } }; -var args = (function() { return arguments; }()); +var args = (function() { + return arguments; +}()); assert.sameValue(typeof setMilliseconds, 'function'); diff --git a/test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A1_T1.js b/test/built-ins/Date/prototype/setMinutes/S15.9.5.32_A1_T1.js index 0eb55d5095..66a0393335 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 a326bb1dc6..050e72b87b 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 7df0448c55..aa2534cbaf 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 63b492e5a7..307c3faf82 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 027585d5fe..2defce23d6 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 90f2d2a076..8d0ec12157 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 dfb851f093..dfd21f485a 100644 --- a/test/built-ins/Date/prototype/setMinutes/this-value-non-date.js +++ b/test/built-ins/Date/prototype/setMinutes/this-value-non-date.js @@ -23,7 +23,9 @@ var arg = { return 1; } }; -var args = (function() { return arguments; }()); +var args = (function() { + return arguments; +}()); assert.sameValue(typeof setMinutes, 'function'); diff --git a/test/built-ins/Date/prototype/setMonth/S15.9.5.38_A1_T1.js b/test/built-ins/Date/prototype/setMonth/S15.9.5.38_A1_T1.js index db7ec51acb..c38de02142 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 a2d3318c18..9c1ab2a20a 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 2998b51cf7..14a0d15377 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 dd68de3b02..8a5de9ca46 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 17adaeb47a..efca28cee2 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 8169cab415..ef07cbb5c1 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 2828944675..6d16b1ff4c 100644 --- a/test/built-ins/Date/prototype/setMonth/this-value-non-date.js +++ b/test/built-ins/Date/prototype/setMonth/this-value-non-date.js @@ -23,7 +23,9 @@ var arg = { return 1; } }; -var args = (function() { return arguments; }()); +var args = (function() { + return arguments; +}()); assert.sameValue(typeof setMonth, 'function'); diff --git a/test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A1_T1.js b/test/built-ins/Date/prototype/setSeconds/S15.9.5.30_A1_T1.js index 1ebdb5b51e..519120b36f 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 43b17d0f86..f9f122a645 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 f4215dd838..8d960dcb62 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 49c6c90836..a2fe30e525 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 ef7f322d83..be61ed9a8b 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 bfd04c09dd..5a281d8d04 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 23821c06a8..e63ed9c372 100644 --- a/test/built-ins/Date/prototype/setSeconds/this-value-non-date.js +++ b/test/built-ins/Date/prototype/setSeconds/this-value-non-date.js @@ -23,7 +23,9 @@ var arg = { return 1; } }; -var args = (function() { return arguments; }()); +var args = (function() { + return arguments; +}()); assert.sameValue(typeof setSeconds, 'function'); diff --git a/test/built-ins/Date/prototype/setTime/S15.9.5.27_A1_T1.js b/test/built-ins/Date/prototype/setTime/S15.9.5.27_A1_T1.js index 1358fd8f9f..2a56bf3ae8 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 1718c42135..2e872fd729 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 ed64ee5ed9..0a9fd6ce56 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 0b47d76ce3..f7f68712d9 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 95b02e0d5c..f804e38d9b 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 1981007be3..cdd444a6b8 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 c2fb0f4b65..ca4ade5b2f 100644 --- a/test/built-ins/Date/prototype/setTime/this-value-non-date.js +++ b/test/built-ins/Date/prototype/setTime/this-value-non-date.js @@ -23,7 +23,9 @@ var arg = { return 1; } }; -var args = (function() { return arguments; }()); +var args = (function() { + return arguments; +}()); assert.sameValue(typeof setTime, 'function'); diff --git a/test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A1_T1.js b/test/built-ins/Date/prototype/setUTCDate/S15.9.5.37_A1_T1.js index fb0106d710..c296387b8e 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 5cb5c8bb1a..3ef3186fac 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 f99b22fccd..90decdc776 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 4e810092e9..3cbefe81a8 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 732f6bf78b..5e29f15a81 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 eb097a6acd..ffebf07973 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 ff165c535e..fa2e021e24 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 a12b7435d2..1d8a1262ce 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 1a388a6822..7abfca4650 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 185a24888a..1c332dd811 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 a35c415903..a2228d5895 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 f67269dc1f..6ef0033d83 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 f59d7877c7..887d73eca8 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 48a615ba21..c314b25bd1 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 a7355fa1d7..e7645db480 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 4101fa7e6a..aff70c61e1 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 6f4e2dd0d8..907b8712ef 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 745bfc88f3..c80cf62191 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 76f4e76b02..a1d0a1947a 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 75d82db9e0..4d8fc8fa5d 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 caebe55dd8..c24ff83d56 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 881c01fcc3..345a3e3d35 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 57cd4142ae..f70f57b134 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 6dde346d8f..a47a18c295 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 688f48e216..44c08e64fc 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 9d9f27c44f..3bde3ee4d5 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 cce942cbf1..edc715a860 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 c6aa7f7d0d..bf0efd4767 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 d512247e65..5b19af2eaf 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 28b7f74995..0614a194bd 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 078ac39c18..da43ff45f1 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 48de38d729..9790d9a99e 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 ed6ca3fe17..ed7332bd2e 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 a4c5d29ed6..682dd9f727 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 82c3bf8b4d..07e8dda601 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 d02f44bbe6..1fee64d567 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 2e7d84561a..903d2dc772 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 0e74c82ad6..7d3d1d09e8 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 1ca934a4ad..eb427b1ffc 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 5dc03a2ad9..edcc69006d 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 b056583098..26c0833404 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 17ec0c0ee4..2cb04dd625 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 c133ffc5ad..ce21f347a9 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 3afef1875c..e72d1fbd8e 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 a17110e05d..ab2d1e72d4 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 0248330b0d..32c140ce94 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 090b9646d1..19bc54bb6a 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 6c52d43db4..0f83f7f219 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 5ea87075e1..9f7cffda73 100644 --- a/test/built-ins/Date/prototype/toDateString/invalid-date.js +++ b/test/built-ins/Date/prototype/toDateString/invalid-date.js @@ -13,5 +13,3 @@ info: | ---*/ assert.sameValue(new Date(NaN).toDateString(), "Invalid Date"); - - diff --git a/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-10.js b/test/built-ins/Date/prototype/toISOString/15.9.5.43-0-10.js index 596f803435..f94e964d4d 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 63feb9075e..b08fa65380 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 5e976d17ea..2086f48a9a 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 431a79c414..71a9232eb0 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 49a859c59b..7dc2be64af 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 f086863248..752120dfc6 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 e27b08feb2..d3be4f9fb4 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 f2c53adbf2..9703836e16 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 f27f7e0ae4..d2f2e391eb 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 35359f9022..0dc17db6fa 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 53b001d872..dda74767f9 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 b4d5bc8005..517fb74533 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 3c55da5fae..e85077c6ce 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 8907ccb686..04c9fd69cb 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 16804d115c..baafe4540a 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 0c41bc3be7..8e976f0ed3 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 045c649f07..656300446f 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 704b25ff70..6a8cef0a64 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 96541c978f..5b7959dc77 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 75c0ad18a2..85565c6bca 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 f015937cd6..63440c5500 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 a2d621c88e..4f20c546b7 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 845ad90ebc..44476c8e43 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 2aa877b571..aa96373cbb 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 7713b34ae7..29ba76ea95 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 4deaaa40a7..161ab95414 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 c5d11f4e8f..5068199094 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 3c1aa53177..eec3df6ac3 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 564821c338..4fc755ef25 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 50d48f8d79..5e7cff2a0b 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 9471cf5567..14f226a02b 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 1a034dba46..8e02b4e6f7 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 6562daad47..53aea089b5 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 04e6d7ffa0..c4938dc06f 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 63c170fe62..e391337569 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 1317b0abd8..382fc242ca 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 861d62cab1..a5026ecfd6 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 b264985cb8..3bc1f906c6 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 15c54f0209..0c4a7fe58a 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 4273975b1b..3d0885b9ce 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 4739c7cf1b..9ca9f0008e 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 2c4d753a9b..0b0ecf006b 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 b8b070ebdc..6d4babc06d 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 305b2a96a4..880915233b 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 f05985402e..92e4da3235 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 36232375d8..6476bf513c 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 1078d9557e..39cc97528d 100644 --- a/test/built-ins/Date/prototype/toTimeString/invalid-date.js +++ b/test/built-ins/Date/prototype/toTimeString/invalid-date.js @@ -13,5 +13,3 @@ info: | ---*/ assert.sameValue(new Date(NaN).toTimeString(), "Invalid Date"); - - diff --git a/test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A1_T1.js b/test/built-ins/Date/prototype/toUTCString/S15.9.5.42_A1_T1.js index de0313086f..3fee728b23 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 d515e34469..caca517fce 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 27d217a35e..6149d52a9b 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 8d56631edf..ad2262d325 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 b001e606ca..26cebb299b 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 e5a2ae8c62..c3e445fb5b 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 ce9cdfaabe..7f164060f2 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 3430e4b3cf..0f81fe11e0 100644 --- a/test/built-ins/Date/prototype/toUTCString/invalid-date.js +++ b/test/built-ins/Date/prototype/toUTCString/invalid-date.js @@ -13,4 +13,3 @@ info: | ---*/ assert.sameValue(new Date(NaN).toUTCString(), "Invalid Date"); - diff --git a/test/built-ins/Date/prototype/toUTCString/month-names.js b/test/built-ins/Date/prototype/toUTCString/month-names.js index a50dc18b36..4658270901 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 6a33b59ee6..9492a8ae85 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 96d3028b5b..d6a5b8eb0c 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 dd791639f4..81f7098e93 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 514ec3605e..8a95d40db6 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 cdebc7dd55..3ad642916b 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 e7ab16930a..dfedf8c62d 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 732217448c..457e126aaf 100644 --- a/test/built-ins/Date/value-symbol-to-prim-return-obj.js +++ b/test/built-ins/Date/value-symbol-to-prim-return-obj.js @@ -39,7 +39,9 @@ assert.throws(TypeError, function() { new Date(y); }, 'ordinary object'); -retVal = (function() { return arguments; }()); +retVal = (function() { + return arguments; +}()); assert.throws(TypeError, function() { new Date(y); }, 'arguments exotic object'); diff --git a/test/built-ins/Date/value-to-primitive-result-faulty.js b/test/built-ins/Date/value-to-primitive-result-faulty.js index 50ff50e290..3f2ae125c7 100644 --- a/test/built-ins/Date/value-to-primitive-result-faulty.js +++ b/test/built-ins/Date/value-to-primitive-result-faulty.js @@ -40,7 +40,9 @@ assert.throws(TypeError, function() { new Date(faultyToPrimitive); }, 'Array exotic object'); -returnValue = (function() { return arguments; }()); +returnValue = (function() { + return arguments; +}()); assert.throws(TypeError, function() { new Date(faultyToPrimitive); }, 'arguments exotic object'); diff --git a/test/built-ins/Error/S15.11.1.1_A1_T1.js b/test/built-ins/Error/S15.11.1.1_A1_T1.js index 351059e767..a30502f423 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 72f7343590..5e0c1bd836 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 6add7727bf..b6709d8cc0 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 d45ddac8e0..5892170d2a 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 4ea3e05efd..804116b32c 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 6ad2ef59fc..5848bcd4c1 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 8c653807ff..4cd39953a4 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 534d5f0320..c0074b6a86 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 41e8e6b761..6cf25327a8 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 e7bc80e565..b7da126aa6 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 29a397af74..d8ab08a9e4 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 d76e90fb51..2d2c78f914 100644 --- a/test/built-ins/Error/prototype/S15.11.3.1_A3_T1.js +++ b/test/built-ins/Error/prototype/S15.11.3.1_A3_T1.js @@ -11,19 +11,21 @@ includes: [propertyHelper.js] ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(Error.hasOwnProperty('prototype'))) { - $ERROR('#1: Error.hasOwnProperty(\'prototype\') return true. Actual: '+Error.hasOwnProperty('prototype')); + $ERROR('#1: Error.hasOwnProperty(\'prototype\') return true. Actual: ' + Error.hasOwnProperty('prototype')); } // ////////////////////////////////////////////////////////////////////////////// var __obj = Error.prototype; -verifyNotWritable(Error, "prototype", null, function(){return "shifted";}); +verifyNotWritable(Error, "prototype", null, function() { + return "shifted"; +}); ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (Error.prototype !== __obj) { - $ERROR('#2: __obj = Error.prototype; Error.prototype = function(){return "shifted";}; Error.prototype === __obj. Actual: '+Error.prototype ); + $ERROR('#2: __obj = Error.prototype; Error.prototype = function(){return "shifted";}; Error.prototype === __obj. Actual: ' + Error.prototype); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/Error/prototype/S15.11.3.1_A4_T1.js b/test/built-ins/Error/prototype/S15.11.3.1_A4_T1.js index 1770637cea..258f205e21 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 cbb35f4bb5..c3b9afef42 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 80f6cbc2b4..bb85666d1a 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 e514df09ae..72b2daf6bf 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 751033a83c..354fd78020 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 ced9d00908..01508f865c 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 14869ce39d..5a530d90f2 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 6860135a9f..303078ba80 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 14517881b4..a5cad6d0ef 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 7df0656c17..de519ef06d 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 9f9acadf05..3c3a6475a7 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 05f044cc7d..8ee95946eb 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 dd30cf0ea1..f4a2b63570 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 efd54b91de..0235303d86 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 28db42997e..c10b3a9f69 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 835145acb1..7aa42aa767 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 b79e46eedc..7534084cb2 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 2f86f3150a..be197606ba 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 bcd99d2f71..d5d22db6f4 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 35ce0d95ec..de13b62423 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 e03cedaf5d..dabfb8ab75 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 8caa5e5f77..9c6706de1b 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 7f670f1477..4ed4ad8c95 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 29adf517de..204f9724b4 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 a1d3cf4316..95e89dd53c 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 858a9d7ac9..155a55fd61 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 00db234620..6017374b12 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 90d4195724..debbe409bc 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 5d5362cbb8..6f840ef8db 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 dd1d6e55ad..e82253bc15 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 2795b4ddf6..a9ec023b02 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 fef8fdade3..a80d3e15fa 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 129fa78349..ee28fb1ef3 100644 --- a/test/built-ins/Function/15.3.5-1gs.js +++ b/test/built-ins/Function/15.3.5-1gs.js @@ -10,6 +10,7 @@ flags: [onlyStrict] ---*/ "use strict"; + function _15_3_5_1_gs() {} assert.throws(TypeError, function() { diff --git a/test/built-ins/Function/15.3.5.4_2-10gs.js b/test/built-ins/Function/15.3.5.4_2-10gs.js index 70be7b5f0b..70f1e76a9a 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 25824f9379..8303b2068c 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 4b1fc53638..a63cb49e02 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 2d641a9d6b..0ad5d98a60 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 0df946d586..dd7bae085c 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 73478f8773..beb5bf5082 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 8046f54578..bcc4de2655 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 4a911e8057..2aa9d93b0a 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 01aba82424..87b8589055 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 be861cf0c9..71aba80652 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 302881fcc9..97d6b0615f 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 0e2a8219a3..579f9624af 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 a99ee52a7f..67c4da2774 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 363d5b4e2b..cd0e1fbae0 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 e57bf63ab4..f1bc42f745 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 3277521332..3e7b58f3a5 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 f4c7b216eb..03f8856421 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 0fdee36d28..c37e20a700 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 9c3b4388cf..ba70939a09 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 70fa7f3ee1..3d70c74897 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 5f792dbb8f..5aeff3ea99 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 fed111eb26..f942fcf193 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 d49e9861eb..bec9e4323a 100644 --- a/test/built-ins/Function/15.3.5.4_2-30gs.js +++ b/test/built-ins/Function/15.3.5.4_2-30gs.js @@ -11,17 +11,18 @@ flags: [noStrict] ---*/ function f1() { - "use strict"; - function f() { - gNonStrict(); - } - f(); + "use strict"; + + function f() { + gNonStrict(); + } + f(); } assert.throws(TypeError, function() { - f1(); + f1(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-31gs.js b/test/built-ins/Function/15.3.5.4_2-31gs.js index 9401b802e2..2a041c132e 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 9b5ae34a64..a1300dacac 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 9f366b3f6a..6508770f4f 100644 --- a/test/built-ins/Function/15.3.5.4_2-33gs.js +++ b/test/built-ins/Function/15.3.5.4_2-33gs.js @@ -10,18 +10,19 @@ description: > flags: [noStrict] ---*/ -var f1 = function () { - "use strict"; - function f() { - gNonStrict(); - } - f(); +var f1 = function() { + "use strict"; + + function f() { + gNonStrict(); + } + f(); } assert.throws(TypeError, function() { - f1(); + f1(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-34gs.js b/test/built-ins/Function/15.3.5.4_2-34gs.js index 7c028bcbff..257211176c 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 2c4d8c6c48..f6e683ba24 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 5625d5fbfb..ded271ba8d 100644 --- a/test/built-ins/Function/15.3.5.4_2-36gs.js +++ b/test/built-ins/Function/15.3.5.4_2-36gs.js @@ -11,15 +11,16 @@ flags: [noStrict] ---*/ assert.throws(TypeError, function() { - (function () { - "use strict"; - function f() { - gNonStrict(); - } - f(); - })(); + (function() { + "use strict"; + + function f() { + gNonStrict(); + } + f(); + })(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-37gs.js b/test/built-ins/Function/15.3.5.4_2-37gs.js index d3eab113fa..8a515705b4 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 d824dc0a22..998fecee0a 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 5a651dd7b5..1f7ee2ccab 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 ec2224106a..05378cc29a 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 102b702658..3e616381f9 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 2e17cff15d..5cf5456b51 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 43af9ac804..7d5deece01 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 40f2e23cb4..c09efeb66d 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 c23e618ab1..8ce197b447 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 e2745596d8..175bdae724 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 6dea39b00e..c120259a70 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 180c64dd2e..a845ba280c 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 7a06d72803..1b15f29f1b 100644 --- a/test/built-ins/Function/15.3.5.4_2-48gs.js +++ b/test/built-ins/Function/15.3.5.4_2-48gs.js @@ -9,12 +9,16 @@ description: > flags: [onlyStrict] ---*/ -var o = { get foo() { gNonStrict(); } } +var o = { + get foo() { + gNonStrict(); + } +} assert.throws(TypeError, function() { - o.foo; + o.foo; }); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-49gs.js b/test/built-ins/Function/15.3.5.4_2-49gs.js index a539635300..36b0045704 100644 --- a/test/built-ins/Function/15.3.5.4_2-49gs.js +++ b/test/built-ins/Function/15.3.5.4_2-49gs.js @@ -10,12 +10,17 @@ description: > flags: [noStrict] ---*/ -var o = { get foo() { "use strict"; gNonStrict(); } } +var o = { + get foo() { + "use strict"; + gNonStrict(); + } +} assert.throws(TypeError, function() { - o.foo; + o.foo; }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-4gs.js b/test/built-ins/Function/15.3.5.4_2-4gs.js index 3f03d52024..eae7c646df 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 2c7ab8abf1..30d3c26769 100644 --- a/test/built-ins/Function/15.3.5.4_2-50gs.js +++ b/test/built-ins/Function/15.3.5.4_2-50gs.js @@ -9,12 +9,16 @@ description: > flags: [onlyStrict] ---*/ -var o = { set foo(stuff) { gNonStrict(); } } +var o = { + set foo(stuff) { + gNonStrict(); + } +} assert.throws(TypeError, function() { - o.foo = 7; + o.foo = 7; }); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-51gs.js b/test/built-ins/Function/15.3.5.4_2-51gs.js index f087b31806..f99cf02455 100644 --- a/test/built-ins/Function/15.3.5.4_2-51gs.js +++ b/test/built-ins/Function/15.3.5.4_2-51gs.js @@ -10,12 +10,17 @@ description: > flags: [noStrict] ---*/ -var o = { set foo(stuff) { "use strict"; gNonStrict(); } } +var o = { + set foo(stuff) { + "use strict"; + gNonStrict(); + } +} assert.throws(TypeError, function() { - o.foo = 8; + o.foo = 8; }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-52gs.js b/test/built-ins/Function/15.3.5.4_2-52gs.js index b996eadf72..7bd5c98fd6 100644 --- a/test/built-ins/Function/15.3.5.4_2-52gs.js +++ b/test/built-ins/Function/15.3.5.4_2-52gs.js @@ -10,12 +10,16 @@ flags: [onlyStrict] ---*/ var o = {}; -Object.defineProperty(o, "foo", { get: function() { gNonStrict(); } }); +Object.defineProperty(o, "foo", { + get: function() { + gNonStrict(); + } +}); assert.throws(TypeError, function() { - o.foo; + o.foo; }); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-53gs.js b/test/built-ins/Function/15.3.5.4_2-53gs.js index 50bfb37e31..662870cbf0 100644 --- a/test/built-ins/Function/15.3.5.4_2-53gs.js +++ b/test/built-ins/Function/15.3.5.4_2-53gs.js @@ -11,12 +11,17 @@ flags: [noStrict] ---*/ var o = {}; -Object.defineProperty(o, "foo", { get: function() { "use strict"; gNonStrict(); } }); +Object.defineProperty(o, "foo", { + get: function() { + "use strict"; + gNonStrict(); + } +}); assert.throws(TypeError, function() { - o.foo; + o.foo; }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-54gs.js b/test/built-ins/Function/15.3.5.4_2-54gs.js index 6182bd6e13..dc45d89163 100644 --- a/test/built-ins/Function/15.3.5.4_2-54gs.js +++ b/test/built-ins/Function/15.3.5.4_2-54gs.js @@ -10,12 +10,16 @@ flags: [onlyStrict] ---*/ var o = {}; -Object.defineProperty(o, "foo", { set: function(stuff) { gNonStrict(); } }); +Object.defineProperty(o, "foo", { + set: function(stuff) { + gNonStrict(); + } +}); assert.throws(TypeError, function() { - o.foo = 9; + o.foo = 9; }); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-55gs.js b/test/built-ins/Function/15.3.5.4_2-55gs.js index 9656eecfb7..35a7768490 100644 --- a/test/built-ins/Function/15.3.5.4_2-55gs.js +++ b/test/built-ins/Function/15.3.5.4_2-55gs.js @@ -11,12 +11,17 @@ flags: [noStrict] ---*/ var o = {}; -Object.defineProperty(o, "foo", { set: function(stuff) { "use strict"; gNonStrict(); } }); +Object.defineProperty(o, "foo", { + set: function(stuff) { + "use strict"; + gNonStrict(); + } +}); assert.throws(TypeError, function() { - o.foo = 10; + o.foo = 10; }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-56gs.js b/test/built-ins/Function/15.3.5.4_2-56gs.js index ab4190fda6..28094f41b6 100644 --- a/test/built-ins/Function/15.3.5.4_2-56gs.js +++ b/test/built-ins/Function/15.3.5.4_2-56gs.js @@ -10,13 +10,19 @@ description: > flags: [noStrict] ---*/ -function f() { "use strict"; gNonStrict(); }; -function foo() { return f();} +function f() { + "use strict"; + gNonStrict(); +}; + +function foo() { + return f(); +} assert.throws(TypeError, function() { - foo(); + foo(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-57gs.js b/test/built-ins/Function/15.3.5.4_2-57gs.js index 771c4a0bff..4d2be93149 100644 --- a/test/built-ins/Function/15.3.5.4_2-57gs.js +++ b/test/built-ins/Function/15.3.5.4_2-57gs.js @@ -10,12 +10,15 @@ description: > flags: [noStrict] ---*/ -function f() { "use strict"; gNonStrict(); }; +function f() { + "use strict"; + gNonStrict(); +}; assert.throws(TypeError, function() { - eval("f();"); + eval("f();"); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-58gs.js b/test/built-ins/Function/15.3.5.4_2-58gs.js index d903bdc478..7967333352 100644 --- a/test/built-ins/Function/15.3.5.4_2-58gs.js +++ b/test/built-ins/Function/15.3.5.4_2-58gs.js @@ -10,12 +10,15 @@ description: > flags: [noStrict] ---*/ -function f() { "use strict"; gNonStrict(); }; +function f() { + "use strict"; + gNonStrict(); +}; assert.throws(TypeError, function() { - Function("return f();")(); + Function("return f();")(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-59gs.js b/test/built-ins/Function/15.3.5.4_2-59gs.js index 75d85d2fd8..6df2cdfc93 100644 --- a/test/built-ins/Function/15.3.5.4_2-59gs.js +++ b/test/built-ins/Function/15.3.5.4_2-59gs.js @@ -10,12 +10,15 @@ description: > flags: [noStrict] ---*/ -function f() { "use strict"; gNonStrict(); }; +function f() { + "use strict"; + gNonStrict(); +}; assert.throws(TypeError, function() { - new Function("return f();")(); + new Function("return f();")(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-5gs.js b/test/built-ins/Function/15.3.5.4_2-5gs.js index 6e6f67821a..299e8ce1b0 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 eed2e180a3..2064f51c42 100644 --- a/test/built-ins/Function/15.3.5.4_2-60gs.js +++ b/test/built-ins/Function/15.3.5.4_2-60gs.js @@ -10,12 +10,15 @@ description: > flags: [noStrict] ---*/ -function f() { "use strict"; gNonStrict();}; +function f() { + "use strict"; + gNonStrict(); +}; assert.throws(TypeError, function() { - f.apply(); + f.apply(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-61gs.js b/test/built-ins/Function/15.3.5.4_2-61gs.js index 696449b697..fb1ed900f0 100644 --- a/test/built-ins/Function/15.3.5.4_2-61gs.js +++ b/test/built-ins/Function/15.3.5.4_2-61gs.js @@ -10,12 +10,15 @@ description: > flags: [noStrict] ---*/ -function f() { "use strict"; gNonStrict();}; +function f() { + "use strict"; + gNonStrict(); +}; assert.throws(TypeError, function() { - f.apply(null); + f.apply(null); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-62gs.js b/test/built-ins/Function/15.3.5.4_2-62gs.js index 57dd44c7a7..e2ca688092 100644 --- a/test/built-ins/Function/15.3.5.4_2-62gs.js +++ b/test/built-ins/Function/15.3.5.4_2-62gs.js @@ -10,12 +10,15 @@ description: > flags: [noStrict] ---*/ -function f() { "use strict"; gNonStrict();}; +function f() { + "use strict"; + gNonStrict(); +}; assert.throws(TypeError, function() { - f.apply(undefined); + f.apply(undefined); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-63gs.js b/test/built-ins/Function/15.3.5.4_2-63gs.js index 83dbe0b4fb..2f8cf457c9 100644 --- a/test/built-ins/Function/15.3.5.4_2-63gs.js +++ b/test/built-ins/Function/15.3.5.4_2-63gs.js @@ -10,13 +10,16 @@ description: > flags: [noStrict] ---*/ -function f() { "use strict"; gNonStrict();}; +function f() { + "use strict"; + gNonStrict(); +}; var o = {}; assert.throws(TypeError, function() { - f.apply(o); + f.apply(o); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-64gs.js b/test/built-ins/Function/15.3.5.4_2-64gs.js index a95d82a416..b4b18805f3 100644 --- a/test/built-ins/Function/15.3.5.4_2-64gs.js +++ b/test/built-ins/Function/15.3.5.4_2-64gs.js @@ -11,12 +11,16 @@ flags: [noStrict] ---*/ var global = this; -function f() { "use strict"; gNonStrict();}; + +function f() { + "use strict"; + gNonStrict(); +}; assert.throws(TypeError, function() { - f.apply(global); + f.apply(global); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-65gs.js b/test/built-ins/Function/15.3.5.4_2-65gs.js index 6062b1d814..7fe4ebbcba 100644 --- a/test/built-ins/Function/15.3.5.4_2-65gs.js +++ b/test/built-ins/Function/15.3.5.4_2-65gs.js @@ -10,12 +10,15 @@ description: > flags: [noStrict] ---*/ -function f() { "use strict"; gNonStrict();}; +function f() { + "use strict"; + gNonStrict(); +}; assert.throws(TypeError, function() { - f.call(); + f.call(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-66gs.js b/test/built-ins/Function/15.3.5.4_2-66gs.js index 1c410c7e72..ef1d045d90 100644 --- a/test/built-ins/Function/15.3.5.4_2-66gs.js +++ b/test/built-ins/Function/15.3.5.4_2-66gs.js @@ -10,12 +10,15 @@ description: > flags: [noStrict] ---*/ -function f() { "use strict"; gNonStrict();}; +function f() { + "use strict"; + gNonStrict(); +}; assert.throws(TypeError, function() { - f.call(null); + f.call(null); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-67gs.js b/test/built-ins/Function/15.3.5.4_2-67gs.js index 76308260fc..2c1e85967a 100644 --- a/test/built-ins/Function/15.3.5.4_2-67gs.js +++ b/test/built-ins/Function/15.3.5.4_2-67gs.js @@ -10,12 +10,15 @@ description: > flags: [noStrict] ---*/ -function f() { "use strict"; gNonStrict();}; +function f() { + "use strict"; + gNonStrict(); +}; assert.throws(TypeError, function() { - f.call(undefined); + f.call(undefined); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-68gs.js b/test/built-ins/Function/15.3.5.4_2-68gs.js index 0f23492bdb..37667415d7 100644 --- a/test/built-ins/Function/15.3.5.4_2-68gs.js +++ b/test/built-ins/Function/15.3.5.4_2-68gs.js @@ -10,13 +10,16 @@ description: > flags: [noStrict] ---*/ -function f() { "use strict"; gNonStrict();}; +function f() { + "use strict"; + gNonStrict(); +}; var o = {}; assert.throws(TypeError, function() { - f.call(o); + f.call(o); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-69gs.js b/test/built-ins/Function/15.3.5.4_2-69gs.js index 0572d8603c..664a8003da 100644 --- a/test/built-ins/Function/15.3.5.4_2-69gs.js +++ b/test/built-ins/Function/15.3.5.4_2-69gs.js @@ -11,12 +11,16 @@ flags: [noStrict] ---*/ var global = this; -function f() { "use strict"; gNonStrict();}; + +function f() { + "use strict"; + gNonStrict(); +}; assert.throws(TypeError, function() { - f.call(this); + f.call(this); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-6gs.js b/test/built-ins/Function/15.3.5.4_2-6gs.js index 425f3dcc85..5a3ca1b07f 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 0ce9f72af8..67c58c3014 100644 --- a/test/built-ins/Function/15.3.5.4_2-70gs.js +++ b/test/built-ins/Function/15.3.5.4_2-70gs.js @@ -10,12 +10,15 @@ description: > flags: [noStrict] ---*/ -function f() { "use strict"; gNonStrict();}; +function f() { + "use strict"; + gNonStrict(); +}; assert.throws(TypeError, function() { - f.bind()(); + f.bind()(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-71gs.js b/test/built-ins/Function/15.3.5.4_2-71gs.js index 3c3a1567e3..73977b200f 100644 --- a/test/built-ins/Function/15.3.5.4_2-71gs.js +++ b/test/built-ins/Function/15.3.5.4_2-71gs.js @@ -10,12 +10,15 @@ description: > flags: [noStrict] ---*/ -function f() { "use strict"; gNonStrict();}; +function f() { + "use strict"; + gNonStrict(); +}; assert.throws(TypeError, function() { - f.bind(null)(); + f.bind(null)(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-72gs.js b/test/built-ins/Function/15.3.5.4_2-72gs.js index 7cd70c9daa..a2db6d625d 100644 --- a/test/built-ins/Function/15.3.5.4_2-72gs.js +++ b/test/built-ins/Function/15.3.5.4_2-72gs.js @@ -10,12 +10,15 @@ description: > flags: [noStrict] ---*/ -function f() { "use strict"; gNonStrict();}; +function f() { + "use strict"; + gNonStrict(); +}; assert.throws(TypeError, function() { - f.bind(undefined)(); + f.bind(undefined)(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-73gs.js b/test/built-ins/Function/15.3.5.4_2-73gs.js index c616c07e46..0c463d764c 100644 --- a/test/built-ins/Function/15.3.5.4_2-73gs.js +++ b/test/built-ins/Function/15.3.5.4_2-73gs.js @@ -10,13 +10,16 @@ description: > flags: [noStrict] ---*/ -function f() { "use strict"; gNonStrict();}; +function f() { + "use strict"; + gNonStrict(); +}; var o = {}; assert.throws(TypeError, function() { - f.bind(o)(); + f.bind(o)(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-74gs.js b/test/built-ins/Function/15.3.5.4_2-74gs.js index e1c730c23d..4918478c27 100644 --- a/test/built-ins/Function/15.3.5.4_2-74gs.js +++ b/test/built-ins/Function/15.3.5.4_2-74gs.js @@ -11,12 +11,16 @@ flags: [noStrict] ---*/ var global = this; -function f() { "use strict"; gNonStrict();}; + +function f() { + "use strict"; + gNonStrict(); +}; assert.throws(TypeError, function() { - f.bind(global)(); + f.bind(global)(); }); function gNonStrict() { - return gNonStrict.caller || gNonStrict.caller.throwTypeError; + return gNonStrict.caller || gNonStrict.caller.throwTypeError; } diff --git a/test/built-ins/Function/15.3.5.4_2-75gs.js b/test/built-ins/Function/15.3.5.4_2-75gs.js index b39e30f70e..8f02e17e70 100644 --- a/test/built-ins/Function/15.3.5.4_2-75gs.js +++ b/test/built-ins/Function/15.3.5.4_2-75gs.js @@ -11,11 +11,17 @@ flags: [noStrict] features: [caller] ---*/ -function f() { return gNonStrict();}; -function foo() { "use strict"; f();} -foo(); +function f() { + return gNonStrict(); +}; + +function foo() { + "use strict"; + f(); +} +foo(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-76gs.js b/test/built-ins/Function/15.3.5.4_2-76gs.js index 9da118714e..51bb190b25 100644 --- a/test/built-ins/Function/15.3.5.4_2-76gs.js +++ b/test/built-ins/Function/15.3.5.4_2-76gs.js @@ -11,10 +11,15 @@ flags: [noStrict] features: [caller] ---*/ -function f() { return gNonStrict();}; -(function () {"use strict"; return eval("f();"); })(); +function f() { + return gNonStrict(); +}; +(function() { + "use strict"; + return eval("f();"); +})(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-77gs.js b/test/built-ins/Function/15.3.5.4_2-77gs.js index 572e382053..fa9345310e 100644 --- a/test/built-ins/Function/15.3.5.4_2-77gs.js +++ b/test/built-ins/Function/15.3.5.4_2-77gs.js @@ -11,10 +11,15 @@ flags: [noStrict] features: [caller] ---*/ -function f() {return gNonStrict();}; -(function () {"use strict"; Function("return f();")(); })(); +function f() { + return gNonStrict(); +}; +(function() { + "use strict"; + Function("return f();")(); +})(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-78gs.js b/test/built-ins/Function/15.3.5.4_2-78gs.js index 80aa51604e..7ee58dd314 100644 --- a/test/built-ins/Function/15.3.5.4_2-78gs.js +++ b/test/built-ins/Function/15.3.5.4_2-78gs.js @@ -11,10 +11,15 @@ flags: [noStrict] features: [caller] ---*/ -function f() { return gNonStrict();}; -(function () {"use strict"; return new Function("return f();")(); })(); +function f() { + return gNonStrict(); +}; +(function() { + "use strict"; + return new Function("return f();")(); +})(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-79gs.js b/test/built-ins/Function/15.3.5.4_2-79gs.js index e0814d0d23..6754f8fd0a 100644 --- a/test/built-ins/Function/15.3.5.4_2-79gs.js +++ b/test/built-ins/Function/15.3.5.4_2-79gs.js @@ -11,10 +11,15 @@ flags: [noStrict] features: [caller] ---*/ -function f() { return gNonStrict();}; -(function () {"use strict"; f.apply();})(); +function f() { + return gNonStrict(); +}; +(function() { + "use strict"; + f.apply(); +})(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-7gs.js b/test/built-ins/Function/15.3.5.4_2-7gs.js index f66abe159f..9630356d3a 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 aa03f3ec21..17efe2a02f 100644 --- a/test/built-ins/Function/15.3.5.4_2-80gs.js +++ b/test/built-ins/Function/15.3.5.4_2-80gs.js @@ -11,10 +11,15 @@ flags: [noStrict] features: [caller] ---*/ -function f() { return gNonStrict();}; -(function () {"use strict"; f.apply(null); })(); +function f() { + return gNonStrict(); +}; +(function() { + "use strict"; + f.apply(null); +})(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-81gs.js b/test/built-ins/Function/15.3.5.4_2-81gs.js index e3f028da4c..d4a12ba2f7 100644 --- a/test/built-ins/Function/15.3.5.4_2-81gs.js +++ b/test/built-ins/Function/15.3.5.4_2-81gs.js @@ -11,10 +11,15 @@ flags: [noStrict] features: [caller] ---*/ -function f() { return gNonStrict();}; -(function () {"use strict"; f.apply(undefined); })(); +function f() { + return gNonStrict(); +}; +(function() { + "use strict"; + f.apply(undefined); +})(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-82gs.js b/test/built-ins/Function/15.3.5.4_2-82gs.js index 7a78c1726c..101a01f508 100644 --- a/test/built-ins/Function/15.3.5.4_2-82gs.js +++ b/test/built-ins/Function/15.3.5.4_2-82gs.js @@ -11,11 +11,16 @@ flags: [noStrict] features: [caller] ---*/ -function f() { return gNonStrict();}; +function f() { + return gNonStrict(); +}; var o = {}; -(function () {"use strict"; f.apply(o); })(); +(function() { + "use strict"; + f.apply(o); +})(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-83gs.js b/test/built-ins/Function/15.3.5.4_2-83gs.js index 940e7d7e42..a7ba40be04 100644 --- a/test/built-ins/Function/15.3.5.4_2-83gs.js +++ b/test/built-ins/Function/15.3.5.4_2-83gs.js @@ -12,10 +12,16 @@ features: [caller] ---*/ var global = this; -function f() { return gNonStrict();}; -(function () {"use strict"; f.apply(global); })(); + +function f() { + return gNonStrict(); +}; +(function() { + "use strict"; + f.apply(global); +})(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-84gs.js b/test/built-ins/Function/15.3.5.4_2-84gs.js index ecc1e152dc..0246f8b6a4 100644 --- a/test/built-ins/Function/15.3.5.4_2-84gs.js +++ b/test/built-ins/Function/15.3.5.4_2-84gs.js @@ -11,10 +11,15 @@ flags: [noStrict] features: [caller] ---*/ -function f() { return gNonStrict();}; -(function () {"use strict"; f.call();})(); +function f() { + return gNonStrict(); +}; +(function() { + "use strict"; + f.call(); +})(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-85gs.js b/test/built-ins/Function/15.3.5.4_2-85gs.js index ff899ce7c7..8dcb404c60 100644 --- a/test/built-ins/Function/15.3.5.4_2-85gs.js +++ b/test/built-ins/Function/15.3.5.4_2-85gs.js @@ -11,10 +11,15 @@ flags: [noStrict] features: [caller] ---*/ -function f() { return gNonStrict();}; -(function () {"use strict"; f.call(null);})(); +function f() { + return gNonStrict(); +}; +(function() { + "use strict"; + f.call(null); +})(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-86gs.js b/test/built-ins/Function/15.3.5.4_2-86gs.js index c617f4eb73..f8375dd90b 100644 --- a/test/built-ins/Function/15.3.5.4_2-86gs.js +++ b/test/built-ins/Function/15.3.5.4_2-86gs.js @@ -11,10 +11,15 @@ flags: [noStrict] features: [caller] ---*/ -function f() { return gNonStrict();}; -(function () {"use strict"; f.call(undefined); })(); +function f() { + return gNonStrict(); +}; +(function() { + "use strict"; + f.call(undefined); +})(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-87gs.js b/test/built-ins/Function/15.3.5.4_2-87gs.js index c2ba651420..37e027c766 100644 --- a/test/built-ins/Function/15.3.5.4_2-87gs.js +++ b/test/built-ins/Function/15.3.5.4_2-87gs.js @@ -11,11 +11,16 @@ flags: [noStrict] features: [caller] ---*/ -function f() { return gNonStrict();}; +function f() { + return gNonStrict(); +}; var o = {}; -(function () {"use strict"; f.call(o); })(); +(function() { + "use strict"; + f.call(o); +})(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-88gs.js b/test/built-ins/Function/15.3.5.4_2-88gs.js index 7d1b0825c6..58ee449f01 100644 --- a/test/built-ins/Function/15.3.5.4_2-88gs.js +++ b/test/built-ins/Function/15.3.5.4_2-88gs.js @@ -12,10 +12,16 @@ features: [caller] ---*/ var global = this; -function f() { return gNonStrict();}; -(function () {"use strict"; f.call(global); })(); + +function f() { + return gNonStrict(); +}; +(function() { + "use strict"; + f.call(global); +})(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-89gs.js b/test/built-ins/Function/15.3.5.4_2-89gs.js index ec574b3a7d..ed310abede 100644 --- a/test/built-ins/Function/15.3.5.4_2-89gs.js +++ b/test/built-ins/Function/15.3.5.4_2-89gs.js @@ -11,10 +11,15 @@ flags: [noStrict] features: [caller] ---*/ -function f() { return gNonStrict();}; -(function () {"use strict"; f.bind()();})(); +function f() { + return gNonStrict(); +}; +(function() { + "use strict"; + f.bind()(); +})(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-8gs.js b/test/built-ins/Function/15.3.5.4_2-8gs.js index dd20678dd8..437514a5a9 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 bbab075d19..8ad7189460 100644 --- a/test/built-ins/Function/15.3.5.4_2-90gs.js +++ b/test/built-ins/Function/15.3.5.4_2-90gs.js @@ -11,10 +11,15 @@ flags: [noStrict] features: [caller] ---*/ -function f() { return gNonStrict();}; -(function () {"use strict"; f.bind(null)(); })(); +function f() { + return gNonStrict(); +}; +(function() { + "use strict"; + f.bind(null)(); +})(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-91gs.js b/test/built-ins/Function/15.3.5.4_2-91gs.js index 1049047f04..ccab0095c8 100644 --- a/test/built-ins/Function/15.3.5.4_2-91gs.js +++ b/test/built-ins/Function/15.3.5.4_2-91gs.js @@ -11,10 +11,15 @@ flags: [noStrict] features: [caller] ---*/ -function f() { return gNonStrict();}; -(function () {"use strict"; f.bind(undefined)(); })(); +function f() { + return gNonStrict(); +}; +(function() { + "use strict"; + f.bind(undefined)(); +})(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-92gs.js b/test/built-ins/Function/15.3.5.4_2-92gs.js index 8ff2abc398..9a2f49972c 100644 --- a/test/built-ins/Function/15.3.5.4_2-92gs.js +++ b/test/built-ins/Function/15.3.5.4_2-92gs.js @@ -11,11 +11,16 @@ flags: [noStrict] features: [caller] ---*/ -function f() { return gNonStrict();}; +function f() { + return gNonStrict(); +}; var o = {}; -(function () {"use strict"; f.bind(o)(); })(); +(function() { + "use strict"; + f.bind(o)(); +})(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-93gs.js b/test/built-ins/Function/15.3.5.4_2-93gs.js index bad743269d..8fe3b1120c 100644 --- a/test/built-ins/Function/15.3.5.4_2-93gs.js +++ b/test/built-ins/Function/15.3.5.4_2-93gs.js @@ -12,10 +12,16 @@ features: [caller] ---*/ var global = this; -function f() { return gNonStrict();}; -(function () {"use strict"; f.bind(global)(); })(); + +function f() { + return gNonStrict(); +}; +(function() { + "use strict"; + f.bind(global)(); +})(); function gNonStrict() { - return gNonStrict.caller; + return gNonStrict.caller; } diff --git a/test/built-ins/Function/15.3.5.4_2-94gs.js b/test/built-ins/Function/15.3.5.4_2-94gs.js index fefc31e182..81bcd689ac 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 836017045d..34f7c5b645 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 bb601c08f7..03dc813f58 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 7c4d7474b8..61c9233315 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 08fbd5cb34..07c0decbcc 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 503a17fd31..3a9d96b63b 100644 --- a/test/built-ins/Function/S10.1.1_A1_T3.js +++ b/test/built-ins/Function/S10.1.1_A1_T3.js @@ -12,6 +12,8 @@ description: > ---*/ //CHECK#1 -var x=new function f1(){return 1;}; -if(typeof(x.constructor)!=="function") +var x = new function f1() { + return 1; +}; +if (typeof(x.constructor) !== "function") $ERROR('#1: typeof(x.constructor)!=="function"'); diff --git a/test/built-ins/Function/S15.3.1_A1_T1.js b/test/built-ins/Function/S15.3.1_A1_T1.js index 43129631d5..8175c337df 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 12c037b043..52e20e1fd1 100644 --- a/test/built-ins/Function/S15.3.2.1_A1_T1.js +++ b/test/built-ins/Function/S15.3.2.1_A1_T1.js @@ -14,7 +14,11 @@ es5id: 15.3.2.1_A1_T1 description: "The body of the function is \"{toString:function(){throw 7;}}\"" ---*/ -var body = {toString:function(){throw 7;}} +var body = { + toString: function() { + throw 7; + } +} //CHECK#1 try { @@ -22,6 +26,6 @@ try { $ERROR('#1: When the Function constructor is called with one argument then body be that argument the following step are taken: call ToString(body)'); } catch (e) { if (e !== 7) { - $ERROR('#1.1: When the Function constructor is called with one argument then body be that argument the following step are taken: call ToString(body)'); + $ERROR('#1.1: When the Function constructor is called with one argument then body be that argument the following step are taken: call ToString(body)'); } } diff --git a/test/built-ins/Function/S15.3.2.1_A1_T10.js b/test/built-ins/Function/S15.3.2.1_A1_T10.js index f1ed2fe5cd..764e5b2a00 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 18baa8e9a5..74248f2832 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 bc4646e088..81d816f38e 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 fbc01fc896..09942b2c59 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 0e971af373..a1424960b6 100644 --- a/test/built-ins/Function/S15.3.2.1_A1_T2.js +++ b/test/built-ins/Function/S15.3.2.1_A1_T2.js @@ -16,13 +16,17 @@ description: > 1;";}}" ---*/ -var body={toString:function(){return "return 1;";}}; +var body = { + toString: function() { + return "return 1;"; + } +}; //CHECK#1 try { - var f = new Function(body); + var f = new Function(body); } catch (e) { - $ERROR('#1: test failed with error '+e); + $ERROR('#1: test failed with error ' + e); } //CHECK#2 @@ -31,6 +35,6 @@ if (f.constructor !== Function) { } //CHECK#3 -if (f()!==1) { +if (f() !== 1) { $ERROR('#3: hen the Function constructor is called with one argument then body be that argument the following steps are taken...'); } diff --git a/test/built-ins/Function/S15.3.2.1_A1_T3.js b/test/built-ins/Function/S15.3.2.1_A1_T3.js index aec811fe1c..25e9f5493f 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 2d862279dd..2b9be51a58 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 9cde6597ff..c7c3df4c09 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 9ed5398b42..548718444b 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 23bde27777..bb68c4257d 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 0b1c5d4db4..e17847cbde 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 8316ce12ac..e007a4af01 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 e02bc648f2..241712a5b7 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 afa0b05de2..dee237ec5a 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 973be30e40..d2e54ebb22 100644 --- a/test/built-ins/Function/S15.3.2.1_A2_T4.js +++ b/test/built-ins/Function/S15.3.2.1_A2_T4.js @@ -11,9 +11,13 @@ description: > various results ---*/ -var i=0; +var i = 0; -var p={toString:function(){return "arg"+(++i);}}; +var p = { + toString: function() { + return "arg" + (++i); + } +}; //CHECK#1 try { @@ -23,11 +27,11 @@ try { } //CHECK#2 -if (!(f instanceof Function)){ +if (!(f instanceof Function)) { $ERROR('#2: It is permissible but not necessary to have one argument for each formal parameter to be specified'); } //CHECK#3 -if (f(4,"2","QUESTION") !== "42QUESTION") { +if (f(4, "2", "QUESTION") !== "42QUESTION") { $ERROR('#3: It is permissible but not necessary to have one argument for each formal parameter to be specified'); } diff --git a/test/built-ins/Function/S15.3.2.1_A2_T5.js b/test/built-ins/Function/S15.3.2.1_A2_T5.js index 70ca03e738..bc9b1f0b46 100644 --- a/test/built-ins/Function/S15.3.2.1_A2_T5.js +++ b/test/built-ins/Function/S15.3.2.1_A2_T5.js @@ -11,23 +11,27 @@ description: > various results and a concotenation of strings ---*/ -var i=0; +var i = 0; -var p={toString:function(){return "arg"+(++i)}}; +var p = { + toString: function() { + return "arg" + (++i) + } +}; //CHECK#1 try { - var f = Function(p+","+p,p, "return arg1+arg2+arg3;"); + var f = Function(p + "," + p, p, "return arg1+arg2+arg3;"); } catch (e) { $ERROR('#1: test failed'); } //CHECK#2 -if (!(f instanceof Function)){ +if (!(f instanceof Function)) { $ERROR('#2: It is permissible but not necessary to have one argument for each formal parameter to be specified'); } //CHECK#3 -if (f("",1,2) !== "12") { +if (f("", 1, 2) !== "12") { $ERROR('#3: It is permissible but not necessary to have one argument for each formal parameter to be specified'); } diff --git a/test/built-ins/Function/S15.3.2.1_A2_T6.js b/test/built-ins/Function/S15.3.2.1_A2_T6.js index 15fe4beb56..0d658808de 100644 --- a/test/built-ins/Function/S15.3.2.1_A2_T6.js +++ b/test/built-ins/Function/S15.3.2.1_A2_T6.js @@ -11,23 +11,27 @@ description: > various results and a concotenation of strings ---*/ -var i=0; +var i = 0; -var p={toString:function(){return "arg"+(++i)}}; +var p = { + toString: function() { + return "arg" + (++i) + } +}; //CHECK#1 try { - var f = Function(p+","+p+","+p, "return arg1+arg2+arg3;"); + var f = Function(p + "," + p + "," + p, "return arg1+arg2+arg3;"); } catch (e) { $ERROR('#1: test failed'); } //CHECK#2 -if (!(f instanceof Function)){ +if (!(f instanceof Function)) { $ERROR('#2: It is permissible but not necessary to have one argument for each formal parameter to be specified'); } //CHECK#3 -if (f("",1,p) !== "1arg4") { +if (f("", 1, p) !== "1arg4") { $ERROR('#3: It is permissible but not necessary to have one argument for each formal parameter to be specified'); } diff --git a/test/built-ins/Function/S15.3.2.1_A3_T1.js b/test/built-ins/Function/S15.3.2.1_A3_T1.js index 3a1013ecd4..b5c796b350 100644 --- a/test/built-ins/Function/S15.3.2.1_A3_T1.js +++ b/test/built-ins/Function/S15.3.2.1_A3_T1.js @@ -19,15 +19,23 @@ description: > 'body';}}" ---*/ -var p = {toString:function(){throw 1;}}; -var body = {toString:function(){throw "body";}}; +var p = { + toString: function() { + throw 1; + } +}; +var body = { + toString: function() { + throw "body"; + } +}; //CHECK#1 try { - var f = new Function(p,body); + var f = new Function(p, body); $ERROR('#1: test failed'); } catch (e) { if (e !== 1) { - $ERROR('#1.1: i) Let Result(i) be the first argument; ii) Let P be ToString(Result(i))'); + $ERROR('#1.1: i) Let Result(i) be the first argument; ii) Let P be ToString(Result(i))'); } } diff --git a/test/built-ins/Function/S15.3.2.1_A3_T10.js b/test/built-ins/Function/S15.3.2.1_A3_T10.js index 1945adbbe3..684c1e7da3 100644 --- a/test/built-ins/Function/S15.3.2.1_A3_T10.js +++ b/test/built-ins/Function/S15.3.2.1_A3_T10.js @@ -19,14 +19,18 @@ description: > ---*/ var body = "return this;"; -var p={toString:function(){return "z;x"}}; +var p = { + toString: function() { + return "z;x" + } +}; //CHECK#1 try { - var f = new Function(p,body); + var f = new Function(p, body); $ERROR('#1: If P is not parsable as a FormalParameterList_opt then throw a SyntaxError exception'); } catch (e) { if (!(e instanceof SyntaxError)) { - $ERROR('#1.1: If P is not parsable as a FormalParameterList_opt then throw a SyntaxError exception'); + $ERROR('#1.1: If P is not parsable as a FormalParameterList_opt then throw a SyntaxError exception'); } } diff --git a/test/built-ins/Function/S15.3.2.1_A3_T11.js b/test/built-ins/Function/S15.3.2.1_A3_T11.js index f547d69738..1091a94b38 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 a3698bbfd1..a87f0ba3e9 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 f74d02cf6d..e2d5c251a5 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 0d7a871927..38af3ccdfe 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 e3f6eb2bd0..43796ef884 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 1649e9fad5..069ddeabf4 100644 --- a/test/built-ins/Function/S15.3.2.1_A3_T2.js +++ b/test/built-ins/Function/S15.3.2.1_A3_T2.js @@ -18,14 +18,18 @@ description: > "{toString:function(){return 'a';}}" and "return a;" ---*/ -var p = {toString:function(){return "a";}}; +var p = { + toString: function() { + return "a"; + } +}; var body = "return a;"; //CHECK#1 try { - var f = new Function(p,body); + var f = new Function(p, body); } catch (e) { - $ERROR('#1: test failed with error '+e); + $ERROR('#1: test failed with error ' + e); } //CHECK#2 @@ -34,6 +38,6 @@ if (f.constructor !== Function) { } //CHECK#3 -if (f(42)!==42) { +if (f(42) !== 42) { $ERROR('#3: When the Function constructor is called with arguments p, body creates a new Function object as specified in 13.2'); } diff --git a/test/built-ins/Function/S15.3.2.1_A3_T3.js b/test/built-ins/Function/S15.3.2.1_A3_T3.js index 4ba1f0f488..29454c2f91 100644 --- a/test/built-ins/Function/S15.3.2.1_A3_T3.js +++ b/test/built-ins/Function/S15.3.2.1_A3_T3.js @@ -19,16 +19,25 @@ description: > "{toString:function(){throw "body";}}" ---*/ -var p = {toString:function(){p=1;return "a";}}; -var body = {toString:function(){throw "body";}}; +var p = { + toString: function() { + p = 1; + return "a"; + } +}; +var body = { + toString: function() { + throw "body"; + } +}; //CHECK#1 try { - var f = new Function(p,body); + var f = new Function(p, body); $ERROR('#1: test failed'); } catch (e) { if (e !== "body") { - $ERROR('#1.1: i) Let Result(i) be the first argument; ii) Let P be ToString(Result(i))'); + $ERROR('#1.1: i) Let Result(i) be the first argument; ii) Let P be ToString(Result(i))'); } } diff --git a/test/built-ins/Function/S15.3.2.1_A3_T4.js b/test/built-ins/Function/S15.3.2.1_A3_T4.js index e817ba1b35..7a0ec0d00c 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 67887edd37..47a69636ba 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 129c462f25..f39efaffc8 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 fa680f6b5f..de41763f2e 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 2e3c361105..33d353c922 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 4d5d1a042f..d4134cb375 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 05200e2125..a498f01311 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 a22a560d0f..b4fb578792 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 16f1e7ae39..00b25df86f 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 861e754d49..5a233d07fa 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 f7cc03dd0a..92448aaf08 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 6fbc17a5c7..1c3de3f64d 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 97d3d2ec9f..8574cfb874 100644 --- a/test/built-ins/Function/S15.3_A3_T1.js +++ b/test/built-ins/Function/S15.3_A3_T1.js @@ -11,7 +11,11 @@ description: First argument is object //CHECK#1 - does not throw var f = Function.call(mars, "return name;"); -var mars={name:"mars", color:"red", number:4}; +var mars = { + name: "mars", + color: "red", + number: 4 +}; var f = Function.call(mars, "this.godname=\"ares\"; return this.color;"); @@ -23,6 +27,6 @@ if (about_mars !== undefined) { } //CHECK#3 -if (this.godname !== "ares" && mars.godname===undefined) { +if (this.godname !== "ares" && mars.godname === undefined) { $ERROR('#3: When applied to the Function object itself, thisArg should be ignored'); } diff --git a/test/built-ins/Function/S15.3_A3_T2.js b/test/built-ins/Function/S15.3_A3_T2.js index 72f827feae..aa0fe3961d 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 7c2b0d6d75..7ac27927d2 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 69c045d2d5..769f6bbb46 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 3129b520ca..753410f5c4 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 44af50aaa2..fa88d7e5a3 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 84c73661f6..5371dbf61b 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 2a8ee4e26a..0ee96c1244 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 09f5776a63..ff5452aaaa 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 ccc4b10436..2e773dda30 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 7684cd9183..dc6f91375c 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 f650350711..882152b04b 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 c10714b3f4..02d981a455 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 2482faecd1..e6cb737b35 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 ed321e683d..818d82d638 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 14f9cc4104..894c65e926 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 c67c5f6a59..8e1d150c68 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 cdf721374c..44e16e8f89 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 af9795ab90..f06c15489a 100644 --- a/test/built-ins/Function/prototype/S15.3.3.1_A1.js +++ b/test/built-ins/Function/prototype/S15.3.3.1_A1.js @@ -10,7 +10,9 @@ includes: [propertyHelper.js] var obj = Function.prototype; -verifyNotWritable(Function, "prototype", null, function(){return "shifted";}); +verifyNotWritable(Function, "prototype", null, function() { + return "shifted"; +}); //CHECK#1 if (Function.prototype !== obj) { @@ -19,9 +21,9 @@ if (Function.prototype !== obj) { //CHECK#2 try { - if(Function.prototype()!==undefined){ - $ERROR('#2: the Function.prototype property has the attributes ReadOnly'); + if (Function.prototype() !== undefined) { + $ERROR('#2: the Function.prototype property has the attributes ReadOnly'); } } catch (e) { - $ERROR('#2.1: the Function.prototype property has the attributes ReadOnly: '+e); + $ERROR('#2.1: the Function.prototype property has the attributes ReadOnly: ' + e); } diff --git a/test/built-ins/Function/prototype/S15.3.3.1_A2.js b/test/built-ins/Function/prototype/S15.3.3.1_A2.js index 280e6d3a53..8642fe1d6b 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 17f5d057bf..9feac6cb2a 100644 --- a/test/built-ins/Function/prototype/S15.3.3.1_A4.js +++ b/test/built-ins/Function/prototype/S15.3.3.1_A4.js @@ -15,8 +15,10 @@ description: > function foo() {} -Object.defineProperty(foo, 'prototype', { value: {} }); +Object.defineProperty(foo, 'prototype', { + value: {} +}); if (foo.prototype !== - Object.getOwnPropertyDescriptor(foo, 'prototype').value) { + Object.getOwnPropertyDescriptor(foo, 'prototype').value) { $ERROR("A function.prototype's descriptor lies"); } diff --git a/test/built-ins/Function/prototype/S15.3.4_A1.js b/test/built-ins/Function/prototype/S15.3.4_A1.js index b1b163bb51..b54a90c55c 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 ebfcef721c..cd8afff2f0 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 48dffef53c..5ddc03b77b 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 f72522a140..5b4b159cd3 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 2d31234ce3..7f85502343 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 5fdee9b54a..eb6eaa1aa4 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 33d46760db..8e97762bee 100644 --- a/test/built-ins/Function/prototype/Symbol.hasInstance/this-val-poisoned-prototype.js +++ b/test/built-ins/Function/prototype/Symbol.hasInstance/this-val-poisoned-prototype.js @@ -16,7 +16,9 @@ features: [Symbol.hasInstance] ---*/ // Create a callable object without a `prototype` property -var f = Object.getOwnPropertyDescriptor({ get f() {} }, 'f').get; +var f = Object.getOwnPropertyDescriptor({ + get f() {} +}, 'f').get; Object.defineProperty(f, 'prototype', { get: function() { diff --git a/test/built-ins/Function/prototype/apply/15.3.4.3-1-s.js b/test/built-ins/Function/prototype/apply/15.3.4.3-1-s.js index 7ee954176d..daeed835d0 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 a717204bd4..0c792e14ab 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 762c5c5936..f62f5d967a 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 ce9541aa01..244c35acd7 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A10.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A10.js @@ -17,7 +17,9 @@ if (!(Function.prototype.apply.hasOwnProperty('length'))) { var obj = Function.prototype.apply.length; -verifyNotWritable(Function.prototype.apply, "length", null, function(){return "shifted";}); +verifyNotWritable(Function.prototype.apply, "length", null, function() { + return "shifted"; +}); //CHECK#2 if (Function.prototype.apply.length !== obj) { diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A11.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A11.js index 18da556b62..dcab5610c1 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 c84faf7766..50ea57ee82 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 ce11c7e88a..bf25dfed35 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 c8a7711c8a..77e0ffe083 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 8d65c78db6..ad2b147707 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 a56a6b4d10..872e465975 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 b2667397c3..2864ae8e30 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 de2baaba0b..c4fe404824 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T6.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T6.js @@ -12,8 +12,10 @@ description: > flags: [noStrict] ---*/ -function FACTORY(){ - (function(){this.feat="kamon beyba"}).apply(null); +function FACTORY() { + (function() { + this.feat = "kamon beyba" + }).apply(null); }; var obj = new FACTORY; diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T7.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T7.js index 7138f11cd2..1065e8d275 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 bec48bd99b..94449eb37b 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T8.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T8.js @@ -12,8 +12,10 @@ description: > flags: [noStrict] ---*/ -(function FACTORY(){ - (function(){this.feat="kamon beyba"}).apply(undefined); +(function FACTORY() { + (function() { + this.feat = "kamon beyba" + }).apply(undefined); })(); //CHECK#1 diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T9.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T9.js index e7055f8306..4fe65248ab 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 b0a73eab7f..937f8cb9fa 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 88e6a92cb7..79d6cf8163 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 8ec4feae58..eeb07e45eb 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T3.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T3.js @@ -10,9 +10,12 @@ description: thisArg is string flags: [noStrict] ---*/ -var obj="soap"; +var obj = "soap"; -var retobj = ( function(){this.touched= true; return this;} ).apply(obj); +var retobj = (function() { + this.touched = true; + return this; +}).apply(obj); //CHECK#1 if (typeof obj.touched !== "undefined") { diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T4.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T4.js index 65230c6ebc..527311ae9d 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T4.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T4.js @@ -10,7 +10,10 @@ description: thisArg is function variable that return this flags: [noStrict] ---*/ -f = function(){this.touched= true; return this;}; +f = function() { + this.touched = true; + return this; +}; retobj = f.apply(obj); diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T5.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T5.js index b4947b2233..8d88bfdd1c 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T5.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T5.js @@ -9,9 +9,11 @@ es5id: 15.3.4.3_A5_T5 description: thisArg is function variable ---*/ -var f = function(){this.touched= true;}; +var f = function() { + this.touched = true; +}; -var obj={}; +var obj = {}; f.apply(obj); diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T6.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T6.js index 3a852f7704..ffabe93c30 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T6.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T6.js @@ -9,9 +9,11 @@ es5id: 15.3.4.3_A5_T6 description: thisArg is new String() ---*/ -var obj=new String("soap"); +var obj = new String("soap"); -( function(){this.touched= true;}).apply(obj); +(function() { + this.touched = true; +}).apply(obj); //CHECK#1 if (!(obj.touched)) { diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T7.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T7.js index 3aea79d4cb..f99dfe61f3 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 3e7ff77431..26ce5a6ec8 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 ddeca4bbb1..a21265dd32 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 2fa2501c37..313e89d794 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 afa24ed018..018dcc7bd7 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 8e518ebd6a..7a77fd2d17 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 fbfadbdb7f..f54f65d30b 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 1f27d4ef22..d4ce5fc1d4 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T3.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T3.js @@ -9,13 +9,17 @@ es5id: 15.3.4.3_A7_T3 description: argArray is (empty object, new Array("nine","inch","nails")) ---*/ -var i=0; +var i = 0; -var p={toString:function(){return "a"+(++i);}}; +var p = { + toString: function() { + return "a" + (++i); + } +}; -var obj={}; +var obj = {}; -Function(p,"a2,a3","this.shifted=a1;").apply(obj, new Array("nine","inch","nails")); +Function(p, "a2,a3", "this.shifted=a1;").apply(obj, new Array("nine", "inch", "nails")); //CHECK#1 if (obj["shifted"] !== "nine") { diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T4.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T4.js index a88cc9e735..9a747b4a10 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T4.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T4.js @@ -11,13 +11,19 @@ description: > ("a","b","c")) ---*/ -var i=0; +var i = 0; -var p={toString:function(){return "a"+(++i);}}; +var p = { + toString: function() { + return "a" + (++i); + } +}; -var obj={}; +var obj = {}; -new Function(p,p,p, "this.shifted=a3;").apply( obj,( function(){return arguments;}) ("a","b","c") ); +new Function(p, p, p, "this.shifted=a3;").apply(obj, (function() { + return arguments; +})("a", "b", "c")); //CHECK#1 if (obj["shifted"] !== "c") { diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T5.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T5.js index 26d0b1a28b..44ab20da00 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 2e2f76d646..23e9ac8ec6 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 0ee4e41eea..59dbd059a2 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 b3cf864861..f0c0215cd2 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 8781ceff11..d478bc629a 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 0279d3e1e4..75eeb6534a 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 ea44af1c2e..94169ef9d4 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 721390cf70..6a5c1ec346 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 7486fce8d4..757d27d50b 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 924da6e026..cc302b88d0 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 76a189908d..c1dfb471a2 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 d0aedf9065..a99ce8cd2e 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 b2a968ed3a..c712aad440 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 152d1eb8bc..8fe162a201 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 fcf6139fa6..c95236da25 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 038084b1aa..8b50e13470 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 ff341342eb..e2ca7cfe83 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 19ed95b0d1..11cad43ede 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 f0305bbe49..8c5f06f4c0 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 f0f5a41e6e..1ac7dc4c67 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-15-4.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-15-4.js @@ -8,16 +8,17 @@ description: > property in F set as false ---*/ - var canEnumerable = false; - var hasProperty = false; - function foo() { } - var obj = foo.bind({}); - hasProperty = obj.hasOwnProperty("length"); - for (var prop in obj) { - if (prop === "length") { - canEnumerable = true; - } - } +var canEnumerable = false; +var hasProperty = false; + +function foo() {} +var obj = foo.bind({}); +hasProperty = obj.hasOwnProperty("length"); +for (var prop in obj) { + if (prop === "length") { + canEnumerable = true; + } +} assert(hasProperty, 'hasProperty !== true'); assert.sameValue(canEnumerable, false, 'canEnumerable'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-15-5.js b/test/built-ins/Function/prototype/bind/15.3.4.5-15-5.js index 9a0e9fe660..447d9d6171 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-15-5.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-15-5.js @@ -8,13 +8,14 @@ description: > property in F set as true ---*/ - var canConfigurable = false; - var hasProperty = false; - function foo() { } - var obj = foo.bind({}); - hasProperty = obj.hasOwnProperty("length"); - delete obj.length; - canConfigurable = !obj.hasOwnProperty("length"); +var canConfigurable = false; +var hasProperty = false; + +function foo() {} +var obj = foo.bind({}); +hasProperty = obj.hasOwnProperty("length"); +delete obj.length; +canConfigurable = !obj.hasOwnProperty("length"); assert(hasProperty, 'hasProperty !== true'); assert(canConfigurable, 'canConfigurable !== true'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-16-1.js b/test/built-ins/Function/prototype/bind/15.3.4.5-16-1.js index 385cc179a3..ddec313c68 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 0a1d795413..2bb3449a64 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 22274ec435..4fe22c9add 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 b7cc355aa4..d351a80859 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 a6b2d25365..cb8b5bb005 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 ac81d90cbb..bb5299cb69 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 0745139ad9..8e99cd6f6c 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 64b0899f79..48710b1df8 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 887441b2cf..83c763a957 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 4d72a31fe1..55832a1c17 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 17fc39e388..83f9770a88 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 72842e357e..38baf8fa06 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 b334450514..c4c97b3103 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 935f654cb1..893d19b53b 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 e9924b7d2f..d659c61b0f 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 8df9453942..124f1f87e3 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 79efe3ccf8..99474ac4d1 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 337e8b6da2..f16e2404fa 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 c07b78a052..ce141fdab6 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 15516ceb6b..b3f830dbb5 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 8779bc06da..2d7c5dfcaf 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 c132f9d096..34bf7d6f21 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 0a88f6d3b7..f6aab4e450 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 89e32473e2..5a24273992 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 d4d1b09966..7d46c866ed 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 2f39398177..3febd3790f 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 416294bc0d..8ac9fab502 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 e6718ada40..b770d4876e 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 a3cc6aaacb..ea79e26d21 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 914e182098..f1c1bdb024 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 e75c71ee19..4f12d470a4 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 4abb56c501..d327415301 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 7dc8018d11..a5037a2f49 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 65bf83aad4..8ccd3143fd 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 bedb8acfb8..6f2465005c 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 3ef542bdc8..71eda47c4b 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 cc9ca589be..7edffd174c 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 ff231a57bc..b2e9a05b66 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 597e3ca158..e8f93ad8da 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 9d386aa4fd..d29e6ada97 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 13c4a05bc7..48116b915a 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-10.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-10.js @@ -8,12 +8,14 @@ description: > 'boundArgs' is 0, length of 'ExtraArgs' is 0, and with 'boundThis' ---*/ - var obj = { prop: "abc" }; +var obj = { + prop: "abc" +}; - var func = function (x) { - return this === obj && typeof x === "undefined"; - }; +var func = function(x) { + return this === obj && typeof x === "undefined"; +}; - var newFunc = Function.prototype.bind.call(func, obj); +var newFunc = Function.prototype.bind.call(func, obj); assert(newFunc(), 'newFunc() !== true'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-11.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-11.js index 162dfdbc2c..5f9e6167e9 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-11.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-11.js @@ -8,12 +8,14 @@ description: > 'boundArgs' is 0, length of 'ExtraArgs' is 1, and with 'boundThis' ---*/ - var obj = { prop: "abc" }; +var obj = { + prop: "abc" +}; - var func = function (x) { - return this === obj && x === 1 && arguments[0] === 1 && arguments.length === 1 && this.prop === "abc"; - }; +var func = function(x) { + return this === obj && x === 1 && arguments[0] === 1 && arguments.length === 1 && this.prop === "abc"; +}; - var newFunc = Function.prototype.bind.call(func, obj); +var newFunc = Function.prototype.bind.call(func, obj); assert(newFunc(1), 'newFunc(1) !== true'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-12.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-12.js index 0185bd3e22..c2ac2a3dd2 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-12.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-12.js @@ -8,13 +8,15 @@ description: > 'boundArgs' is 0, length of 'ExtraArgs' is 2, and with 'boundThis' ---*/ - var obj = { prop: "abc" }; +var obj = { + prop: "abc" +}; - var func = function (x) { - return this === obj && x === 1 && arguments[1] === 2 && - arguments[0] === 1 && arguments.length === 2 && this.prop === "abc"; - }; +var func = function(x) { + return this === obj && x === 1 && arguments[1] === 2 && + arguments[0] === 1 && arguments.length === 2 && this.prop === "abc"; +}; - var newFunc = Function.prototype.bind.call(func, obj); +var newFunc = Function.prototype.bind.call(func, obj); assert(newFunc(1, 2), 'newFunc(1, 2) !== true'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-13.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-13.js index 477b95d8ed..5bf7925655 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-13.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-13.js @@ -8,13 +8,15 @@ description: > 'boundArgs' is 1, length of 'ExtraArgs' is 0, and with 'boundThis' ---*/ - var obj = { prop: "abc" }; +var obj = { + prop: "abc" +}; - var func = function (x) { - return this === obj && x === 1 && - arguments[0] === 1 && arguments.length === 1 && this.prop === "abc"; - }; +var func = function(x) { + return this === obj && x === 1 && + arguments[0] === 1 && arguments.length === 1 && this.prop === "abc"; +}; - var newFunc = Function.prototype.bind.call(func, obj, 1); +var newFunc = Function.prototype.bind.call(func, obj, 1); assert(newFunc(), 'newFunc() !== true'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-14.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-14.js index 3c844f557e..8090b28f30 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-14.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-14.js @@ -8,13 +8,15 @@ description: > 'boundArgs' is 1, length of 'ExtraArgs' is 1, and with 'boundThis' ---*/ - var obj = { prop: "abc" }; +var obj = { + prop: "abc" +}; - var func = function (x) { - return this === obj && x === 1 && arguments[1] === 2 && - arguments[0] === 1 && arguments.length === 2 && this.prop === "abc"; - }; +var func = function(x) { + return this === obj && x === 1 && arguments[1] === 2 && + arguments[0] === 1 && arguments.length === 2 && this.prop === "abc"; +}; - var newFunc = Function.prototype.bind.call(func, obj, 1); +var newFunc = Function.prototype.bind.call(func, obj, 1); assert(newFunc(2), 'newFunc(2) !== true'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-15.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-15.js index 772059d8fd..d10b5a53be 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-15.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-15.js @@ -8,13 +8,15 @@ description: > 'boundArgs' is 2, length of 'ExtraArgs' is 0, and with 'boundThis' ---*/ - var obj = { prop: "abc" }; +var obj = { + prop: "abc" +}; - var func = function (x) { - return this === obj && x === 1 && arguments[1] === 2 && - arguments[0] === 1 && arguments.length === 2 && this.prop === "abc"; - }; +var func = function(x) { + return this === obj && x === 1 && arguments[1] === 2 && + arguments[0] === 1 && arguments.length === 2 && this.prop === "abc"; +}; - var newFunc = Function.prototype.bind.call(func, obj, 1, 2); +var newFunc = Function.prototype.bind.call(func, obj, 1, 2); assert(newFunc(), 'newFunc() !== true'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-2.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-2.js index 329b1e78c5..77ad477162 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-2.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-2.js @@ -9,12 +9,14 @@ description: > when 'F' is called ---*/ - var obj = { "prop": "a" }; +var obj = { + "prop": "a" +}; - var func = function () { - return this; - }; +var func = function() { + return this; +}; - var newFunc = Function.prototype.bind.call(func, obj); +var newFunc = Function.prototype.bind.call(func, obj); assert.sameValue(newFunc(), obj, 'newFunc()'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-3.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-3.js index c0bb824d0a..138e22f6cb 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 829615fff5..c7575ddc38 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 7342bbdd38..40f2188b48 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 88da5973ce..4188a07b6f 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-6.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-6.js @@ -8,12 +8,14 @@ description: > 'boundArgs' is 0, length of 'ExtraArgs' is 0, and with 'boundThis' ---*/ - var obj = { prop: "abc" }; +var obj = { + prop: "abc" +}; - var func = function () { - return this === obj && arguments.length === 0; - }; +var func = function() { + return this === obj && arguments.length === 0; +}; - var newFunc = Function.prototype.bind.call(func, obj); +var newFunc = Function.prototype.bind.call(func, obj); assert(newFunc(), 'newFunc() !== true'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-7.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-7.js index 2e90afd021..a541eaaadc 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-7.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-7.js @@ -8,12 +8,14 @@ description: > 'boundArgs' is 1, length of 'ExtraArgs' is 0, and with 'boundThis' ---*/ - var obj = { prop: "abc" }; +var obj = { + prop: "abc" +}; - var func = function () { - return this === obj && arguments[0] === 1; - }; +var func = function() { + return this === obj && arguments[0] === 1; +}; - var newFunc = Function.prototype.bind.call(func, obj, 1); +var newFunc = Function.prototype.bind.call(func, obj, 1); assert(newFunc(), 'newFunc() !== true'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-8.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-8.js index 7203696e82..405ece18fa 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-8.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-8.js @@ -8,12 +8,14 @@ description: > 'boundArgs' is 0, length of 'ExtraArgs' is 1, and with 'boundThis' ---*/ - var obj = { prop: "abc" }; +var obj = { + prop: "abc" +}; - var func = function () { - return this === obj && arguments[0] === 1; - }; +var func = function() { + return this === obj && arguments[0] === 1; +}; - var newFunc = Function.prototype.bind.call(func, obj); +var newFunc = Function.prototype.bind.call(func, obj); assert(newFunc(1), 'newFunc(1) !== true'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-9.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-9.js index 496a18584f..d3c13c4e48 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-9.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-9.js @@ -8,12 +8,14 @@ description: > 'boundArgs' is 1, length of 'ExtraArgs' is 1, and with 'boundThis' ---*/ - var obj = { prop: "abc" }; +var obj = { + prop: "abc" +}; - var func = function () { - return this === obj && arguments[0] === 1 && arguments[1] === 2; - }; +var func = function() { + return this === obj && arguments[0] === 1 && arguments[1] === 2; +}; - var newFunc = Function.prototype.bind.call(func, obj, 1); +var newFunc = Function.prototype.bind.call(func, obj, 1); assert(newFunc(2), 'newFunc(2) !== true'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-1.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-1.js index 5088d7335c..b71c216782 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 c3a9014e1d..182b4bcec5 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 1d385d0819..7588ba3c66 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 2a3ab1bf23..cc813fe58d 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 ad86f0904e..d31433b28a 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 e893ad5a8e..2650b236fb 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 cdee9fae61..4109332f15 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 535e38e0e9..4e191f160f 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 2fdf32fd38..c668db2ace 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 1bc2037b54..dc04a872e1 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-5.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-5.js @@ -8,16 +8,18 @@ description: > 'boundArgs' is 0, length of 'ExtraArgs' is 0, and with 'boundThis' ---*/ - var obj = { prop: "abc" }; +var obj = { + prop: "abc" +}; - Object.prototype.verifyThis = "verifyThis"; - var func = function () { - return new Boolean(arguments.length === 0 && Object.prototype.toString.call(this) === "[object Object]" && - this.verifyThis === "verifyThis"); - }; +Object.prototype.verifyThis = "verifyThis"; +var func = function() { + return new Boolean(arguments.length === 0 && Object.prototype.toString.call(this) === "[object Object]" && + this.verifyThis === "verifyThis"); +}; - var NewFunc = Function.prototype.bind.call(func, obj); +var NewFunc = Function.prototype.bind.call(func, obj); - var newInstance = new NewFunc(); +var newInstance = new NewFunc(); assert(newInstance.valueOf(), 'newInstance.valueOf() !== true'); diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-6.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-6.js index 1afb3b7cf5..90fe291b08 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 085e9545e6..217c01c901 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 4207a187cf..2dc27e06cf 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 4c25b405d9..ff53ee6128 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 02d66d06dd..cae9bb2ae4 100644 --- a/test/built-ins/Function/prototype/bind/S15.3.4.5_A1.js +++ b/test/built-ins/Function/prototype/bind/S15.3.4.5_A1.js @@ -7,9 +7,14 @@ es5id: 15.3.4.5_A1 description: A bound function should fail to find its "caller" ---*/ -function foo() { return bar.caller; } +function foo() { + return bar.caller; +} var bar = foo.bind({}); -function baz() { return bar(); } + +function baz() { + return bar(); +} assert.throws(TypeError, function() { baz(); diff --git a/test/built-ins/Function/prototype/bind/S15.3.4.5_A16.js b/test/built-ins/Function/prototype/bind/S15.3.4.5_A16.js index 92d5f82d8f..b53e5d61c5 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 25ef64935a..d7dd278699 100644 --- a/test/built-ins/Function/prototype/bind/S15.3.4.5_A2.js +++ b/test/built-ins/Function/prototype/bind/S15.3.4.5_A2.js @@ -7,9 +7,14 @@ es5id: 15.3.4.5_A2 description: a bound function should fail to find the bound function "arguments" ---*/ -function foo() { return bar.arguments; } +function foo() { + return bar.arguments; +} var bar = foo.bind({}); -function baz() { return bar(); } + +function baz() { + return bar(); +} assert.throws(TypeError, function() { baz(); diff --git a/test/built-ins/Function/prototype/bind/instance-construct-newtarget-boundtarget-bound.js b/test/built-ins/Function/prototype/bind/instance-construct-newtarget-boundtarget-bound.js index 465b4664ec..97e37f9e49 100644 --- a/test/built-ins/Function/prototype/bind/instance-construct-newtarget-boundtarget-bound.js +++ b/test/built-ins/Function/prototype/bind/instance-construct-newtarget-boundtarget-bound.js @@ -16,6 +16,7 @@ features: [Reflect, new.target] ---*/ var newTarget; + function A() { newTarget = new.target; } diff --git a/test/built-ins/Function/prototype/bind/instance-construct-newtarget-boundtarget.js b/test/built-ins/Function/prototype/bind/instance-construct-newtarget-boundtarget.js index b889634db4..a8b8696991 100644 --- a/test/built-ins/Function/prototype/bind/instance-construct-newtarget-boundtarget.js +++ b/test/built-ins/Function/prototype/bind/instance-construct-newtarget-boundtarget.js @@ -15,6 +15,7 @@ features: [Reflect, new.target] ---*/ var newTarget; + function A() { newTarget = new.target; } diff --git a/test/built-ins/Function/prototype/bind/instance-construct-newtarget-self-new.js b/test/built-ins/Function/prototype/bind/instance-construct-newtarget-self-new.js index f183dbf79a..5177da492f 100644 --- a/test/built-ins/Function/prototype/bind/instance-construct-newtarget-self-new.js +++ b/test/built-ins/Function/prototype/bind/instance-construct-newtarget-self-new.js @@ -14,6 +14,7 @@ features: [new.target] ---*/ var newTarget; + function A() { newTarget = new.target; } diff --git a/test/built-ins/Function/prototype/bind/instance-construct-newtarget-self-reflect.js b/test/built-ins/Function/prototype/bind/instance-construct-newtarget-self-reflect.js index 8664a6eea6..fa8a94894d 100644 --- a/test/built-ins/Function/prototype/bind/instance-construct-newtarget-self-reflect.js +++ b/test/built-ins/Function/prototype/bind/instance-construct-newtarget-self-reflect.js @@ -15,6 +15,7 @@ features: [Reflect, new.target] ---*/ var newTarget; + function A() { newTarget = new.target; } diff --git a/test/built-ins/Function/prototype/bind/instance-name-chained.js b/test/built-ins/Function/prototype/bind/instance-name-chained.js index a9ad72bb87..2b8ce18d66 100644 --- a/test/built-ins/Function/prototype/bind/instance-name-chained.js +++ b/test/built-ins/Function/prototype/bind/instance-name-chained.js @@ -13,7 +13,9 @@ info: | includes: [propertyHelper.js] ---*/ -var target = Object.defineProperty(function() {}, 'name', { value: 'target' }); +var target = Object.defineProperty(function() {}, 'name', { + value: 'target' +}); assert.sameValue(target.bind().bind().name, 'bound bound target'); verifyNotEnumerable(target.bind().bind(), 'name'); diff --git a/test/built-ins/Function/prototype/bind/instance-name-non-string.js b/test/built-ins/Function/prototype/bind/instance-name-non-string.js index 4ef412a19c..63e74038dc 100644 --- a/test/built-ins/Function/prototype/bind/instance-name-non-string.js +++ b/test/built-ins/Function/prototype/bind/instance-name-non-string.js @@ -16,42 +16,54 @@ features: [Symbol] var target; -target = Object.defineProperty(function() {}, 'name', { value: undefined }); +target = Object.defineProperty(function() {}, 'name', { + value: undefined +}); assert.sameValue(target.bind().name, 'bound '); verifyNotEnumerable(target.bind(), 'name'); verifyNotWritable(target.bind(), 'name'); verifyConfigurable(target.bind(), 'name'); -target = Object.defineProperty(function() {}, 'name', { value: null }); +target = Object.defineProperty(function() {}, 'name', { + value: null +}); assert.sameValue(target.bind().name, 'bound '); verifyNotEnumerable(target.bind(), 'name'); verifyNotWritable(target.bind(), 'name'); verifyConfigurable(target.bind(), 'name'); -target = Object.defineProperty(function() {}, 'name', { value: true }); +target = Object.defineProperty(function() {}, 'name', { + value: true +}); assert.sameValue(target.bind().name, 'bound '); verifyNotEnumerable(target.bind(), 'name'); verifyNotWritable(target.bind(), 'name'); verifyConfigurable(target.bind(), 'name'); -target = Object.defineProperty(function() {}, 'name', { value: Symbol('s') }); +target = Object.defineProperty(function() {}, 'name', { + value: Symbol('s') +}); assert.sameValue(target.bind().name, 'bound '); verifyNotEnumerable(target.bind(), 'name'); verifyNotWritable(target.bind(), 'name'); verifyConfigurable(target.bind(), 'name'); -target = Object.defineProperty(function() {}, 'name', { value: 23 }); +target = Object.defineProperty(function() {}, 'name', { + value: 23 +}); assert.sameValue(target.bind().name, 'bound '); verifyNotEnumerable(target.bind(), 'name'); verifyNotWritable(target.bind(), 'name'); verifyConfigurable(target.bind(), 'name'); -target = Object.defineProperty(function() {}, 'name', { value: {} }); +target = Object.defineProperty(function() {}, 'name', { + value: {} +}); assert.sameValue(target.bind().name, 'bound '); verifyNotEnumerable(target.bind(), 'name'); diff --git a/test/built-ins/Function/prototype/bind/instance-name.js b/test/built-ins/Function/prototype/bind/instance-name.js index 1750d98d1b..b69f8c6557 100644 --- a/test/built-ins/Function/prototype/bind/instance-name.js +++ b/test/built-ins/Function/prototype/bind/instance-name.js @@ -12,7 +12,9 @@ info: | includes: [propertyHelper.js] ---*/ -var target = Object.defineProperty(function() {}, 'name', { value: 'target' }); +var target = Object.defineProperty(function() {}, 'name', { + value: 'target' +}); assert.sameValue(target.bind().name, 'bound target'); verifyNotEnumerable(target.bind(), 'name'); diff --git a/test/built-ins/Function/prototype/bind/proto-from-ctor-realm.js b/test/built-ins/Function/prototype/bind/proto-from-ctor-realm.js index 76e163d465..1963de281a 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 a4f618bb16..a7e12df0d9 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 687003b5cd..27563643a1 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 a92bdea11d..cc7fb19986 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 dd8819d49b..bf2aa724c0 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A10.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A10.js @@ -17,7 +17,9 @@ if (!(Function.prototype.call.hasOwnProperty('length'))) { var obj = Function.prototype.call.length; -verifyNotWritable(Function.prototype.call, "length", null, function(){return "shifted";}); +verifyNotWritable(Function.prototype.call, "length", null, function() { + return "shifted"; +}); //CHECK#2 if (Function.prototype.call.length !== obj) { diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A11.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A11.js index c9be0531d2..830678ae90 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 a75e65fcb2..dde3a6c71e 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 2bde783ddc..383666a136 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 9933917959..7d3f3dddb0 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 a07cbd0ef7..de04b43dd3 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 45f06ff71a..a6c9d6eade 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 de55a01297..df370cdeee 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 20a4d2fad1..297d48abf7 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T6.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T6.js @@ -12,8 +12,10 @@ description: > flags: [noStrict] ---*/ -function FACTORY(){ - (function(){this.feat="kamon beyba"}).call(null); +function FACTORY() { + (function() { + this.feat = "kamon beyba" + }).call(null); }; var obj = new FACTORY; diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T7.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T7.js index b31ef5ae4b..d6a3e721b1 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 06362d1a02..60ec21eb9c 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T8.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T8.js @@ -12,8 +12,10 @@ description: > flags: [noStrict] ---*/ -(function FACTORY(){ - (function(){this.feat="kamon beyba"}).call(undefined); +(function FACTORY() { + (function() { + this.feat = "kamon beyba" + }).call(undefined); })(); diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T9.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T9.js index ead02bfc22..94e0aecc72 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 7e09b39029..91db8755e3 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 dd6f658cec..84b8fc456e 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 d718672225..b4d2167fd9 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T3.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T3.js @@ -10,9 +10,12 @@ description: thisArg is string flags: [noStrict] ---*/ -var obj="soap"; +var obj = "soap"; -var retobj = ( function(){this.touched= true; return this;} ).call(obj); +var retobj = (function() { + this.touched = true; + return this; +}).call(obj); //CHECK#1 if (typeof obj.touched !== "undefined") { diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T4.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T4.js index b0799cf004..23fa062190 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T4.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T4.js @@ -10,7 +10,10 @@ description: thisArg is function variable that return this flags: [noStrict] ---*/ -var f = function(){this.touched= true; return this;}; +var f = function() { + this.touched = true; + return this; +}; var retobj = f.call(obj); diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T5.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T5.js index a2e307928e..9857f09e4e 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T5.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T5.js @@ -9,9 +9,11 @@ es5id: 15.3.4.4_A5_T5 description: thisArg is function variable ---*/ -var f = function(){this.touched= true;}; +var f = function() { + this.touched = true; +}; -var obj={}; +var obj = {}; f.call(obj); diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T6.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T6.js index e8fe5d4d80..7ffe1a4d65 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T6.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T6.js @@ -9,9 +9,11 @@ es5id: 15.3.4.4_A5_T6 description: thisArg is new String() ---*/ -var obj=new String("soap"); +var obj = new String("soap"); -( function(){this.touched= true;}).call(obj); +(function() { + this.touched = true; +}).call(obj); //CHECK#1 if (!(obj.touched)) { diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T7.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T7.js index 7cbce9229a..9dc90b7caa 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 debf823963..9955eb6d59 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 f8e0aba158..0890634757 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 fed1b7aad0..be97b1f583 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 989080fa01..5620f40771 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 b70556e039..05368a6c2c 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T3.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T3.js @@ -11,13 +11,17 @@ description: > Array("nine","inch","nails")) ---*/ -var i=0; +var i = 0; -var p={toString:function(){return "a"+(++i);}}; +var p = { + toString: function() { + return "a" + (++i); + } +}; -var obj={}; +var obj = {}; -Function(p,"a2,a3","this.shifted=a1;").call(obj, new Array("nine","inch","nails")); +Function(p, "a2,a3", "this.shifted=a1;").call(obj, new Array("nine", "inch", "nails")); //CHECK#1 if (obj["shifted"].length !== 3) { @@ -25,7 +29,7 @@ if (obj["shifted"].length !== 3) { } //CHECK#2 -if ((obj["shifted"][0] !== "nine")||(obj["shifted"][1] !== "inch")||(obj["shifted"][2] !== "nails")) { +if ((obj["shifted"][0] !== "nine") || (obj["shifted"][1] !== "inch") || (obj["shifted"][2] !== "nails")) { $ERROR('#2: The call method takes one or more arguments, thisArg and (optionally) arg1, arg2 etc, and performs a function call using the [[Call]] property of the object'); } diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T4.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T4.js index 5b51b1d8ed..3125575141 100644 --- a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T4.js +++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T4.js @@ -11,13 +11,19 @@ description: > arguments;})("a","b","c","d"),"",2) ---*/ -var i=0; +var i = 0; -var p={toString:function(){return "a"+(++i);}}; +var p = { + toString: function() { + return "a" + (++i); + } +}; -var obj={}; +var obj = {}; -new Function(p,p,p, "this.shifted=a3+a2+a1.length;").call( obj,( function(){return arguments;})("a","b","c","d"),"",2 ); +new Function(p, p, p, "this.shifted=a3+a2+a1.length;").call(obj, (function() { + return arguments; +})("a", "b", "c", "d"), "", 2); //CHECK#1 if (obj["shifted"] !== "24") { diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T5.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T5.js index b049d45ce8..ac798300c2 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 597feba635..7956ab5acf 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 cfce0647d9..2c29c47251 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 9601af80cd..1978d9acf0 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 d93a3e2a19..99bf13b9d5 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 f3dee96035..7cec40c130 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 d88e10c020..8bf0e67bb3 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 5010b3deef..1faf047baf 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 bd40032983..e069ee7c9f 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 804d9e17f0..c9d1d4495c 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 43cce215e9..de753afddb 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 2f0362a8d8..dd75ab84fa 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 523f1cd2a7..35a5a7a7e6 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 7391b67ed7..99c46fb0ef 100644 --- a/test/built-ins/Function/prototype/toString/S15.3.4.2_A10.js +++ b/test/built-ins/Function/prototype/toString/S15.3.4.2_A10.js @@ -17,7 +17,9 @@ if (!(Function.prototype.toString.hasOwnProperty('length'))) { var obj = Function.prototype.toString.length; -verifyNotWritable(Function.prototype.toString, "length", null, function(){return "shifted";}); +verifyNotWritable(Function.prototype.toString, "length", null, function() { + return "shifted"; +}); //CHECK#2 if (Function.prototype.toString.length !== obj) { diff --git a/test/built-ins/Function/prototype/toString/S15.3.4.2_A16.js b/test/built-ins/Function/prototype/toString/S15.3.4.2_A16.js index 4cba0c3b54..5f367dd457 100644 --- a/test/built-ins/Function/prototype/toString/S15.3.4.2_A16.js +++ b/test/built-ins/Function/prototype/toString/S15.3.4.2_A16.js @@ -12,7 +12,9 @@ description: > bound to that object. ---*/ -var obj = {toString: Function.prototype.toString}; +var obj = { + toString: Function.prototype.toString +}; assert.throws(TypeError, function() { String(obj); diff --git a/test/built-ins/Function/prototype/toString/S15.3.4.2_A6.js b/test/built-ins/Function/prototype/toString/S15.3.4.2_A6.js index a3d4e3b160..e859379448 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 b730a6ec2f..23b8b0ee2e 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 06990b14c5..62fab71aee 100644 --- a/test/built-ins/Function/prototype/toString/arrow-function.js +++ b/test/built-ins/Function/prototype/toString/arrow-function.js @@ -6,9 +6,10 @@ esid: sec-arrow-function-definitions-runtime-semantics-evaluation description: Function.prototype.toString on an arrow function ---*/ -let f = /* before */( /* a */ a /* b */ , /* c */ b /* d */ ) /* e */ => /* f */ { /* g */ ; /* h */ }/* after */; -let g = /* before */( /* a */ ) /* b */ => /* c */ 0/* after */; -let h = /* before */a /* a */ => /* b */ 0/* after */; +let f = /* before */ ( /* a */ a /* b */ , /* c */ b /* d */ ) /* e */ => /* f */ { /* g */ ; /* h */ +} /* after */ ; +let g = /* before */ ( /* a */ ) /* b */ => /* c */ 0 /* after */ ; +let h = /* before */ a /* a */ => /* b */ 0 /* after */ ; assert.sameValue(f.toString(), "( /* a */ a /* b */ , /* c */ b /* d */ ) /* e */ => /* f */ { /* g */ ; /* h */ }"); assert.sameValue(g.toString(), "( /* a */ ) /* b */ => /* c */ 0"); diff --git a/test/built-ins/Function/prototype/toString/async-arrow-function.js b/test/built-ins/Function/prototype/toString/async-arrow-function.js index 39a2a03886..1dff802ee0 100644 --- a/test/built-ins/Function/prototype/toString/async-arrow-function.js +++ b/test/built-ins/Function/prototype/toString/async-arrow-function.js @@ -7,9 +7,10 @@ description: Function.prototype.toString on an async arrow function features: [async-functions] ---*/ -let f = /* before */async /* a */ ( /* b */ a /* c */ , /* d */ b /* e */ ) /* f */ => /* g */ { /* h */ ; /* i */ }/* after */; -let g = /* before */async /* a */ ( /* b */ ) /* c */ => /* d */ 0/* after */; -let h = /* before */async /* a */ a /* b */ => /* c */ 0/* after */; +let f = /* before */ async /* a */ ( /* b */ a /* c */ , /* d */ b /* e */ ) /* f */ => /* g */ { /* h */ ; /* i */ +} /* after */ ; +let g = /* before */ async /* a */ ( /* b */ ) /* c */ => /* d */ 0 /* after */ ; +let h = /* before */ async /* a */ a /* b */ => /* c */ 0 /* after */ ; assert.sameValue(f.toString(), "async /* a */ ( /* b */ a /* c */ , /* d */ b /* e */ ) /* f */ => /* g */ { /* h */ ; /* i */ }"); assert.sameValue(g.toString(), "async /* a */ ( /* b */ ) /* c */ => /* d */ 0"); diff --git a/test/built-ins/Function/prototype/toString/async-function-declaration.js b/test/built-ins/Function/prototype/toString/async-function-declaration.js index 4b909bbf7b..c1f62a5f04 100644 --- a/test/built-ins/Function/prototype/toString/async-function-declaration.js +++ b/test/built-ins/Function/prototype/toString/async-function-declaration.js @@ -8,6 +8,8 @@ description: Function.prototype.toString on an async function declaration features: [async-functions] ---*/ -/* before */async function /* a */ f /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ }/* after */ +/* before */ +async function /* a */ f /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ +} /* after */ assert.sameValue(f.toString(), "async function /* a */ f /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ }"); diff --git a/test/built-ins/Function/prototype/toString/async-function-expression.js b/test/built-ins/Function/prototype/toString/async-function-expression.js index 6b7f26bd5c..6d38d27461 100644 --- a/test/built-ins/Function/prototype/toString/async-function-expression.js +++ b/test/built-ins/Function/prototype/toString/async-function-expression.js @@ -8,8 +8,10 @@ description: Function.prototype.toString on an async function expression features: [async-functions] ---*/ -let f = /* before */async function /* a */ F /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ }/* after */; -let g = /* before */async function /* a */ ( /* b */ x /* c */ , /* d */ y /* e */ ) /* f */ { /* g */ ; /* h */ ; /* i */ }/* after */; +let f = /* before */ async function /* a */ F /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ +} /* after */ ; +let g = /* before */ async function /* a */ ( /* b */ x /* c */ , /* d */ y /* e */ ) /* f */ { /* g */ ; /* h */ ; /* i */ +} /* after */ ; assert.sameValue(f.toString(), "async function /* a */ F /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ }"); assert.sameValue(g.toString(), "async function /* a */ ( /* b */ x /* c */ , /* d */ y /* e */ ) /* f */ { /* g */ ; /* h */ ; /* i */ }"); diff --git a/test/built-ins/Function/prototype/toString/async-generator-declaration.js b/test/built-ins/Function/prototype/toString/async-generator-declaration.js index 9a5bb3f3db..f4bdcde604 100644 --- a/test/built-ins/Function/prototype/toString/async-generator-declaration.js +++ b/test/built-ins/Function/prototype/toString/async-generator-declaration.js @@ -7,6 +7,8 @@ description: Function.prototype.toString on an async generator declaration features: [async-iteration] ---*/ -/* before */async /* a */ function /* b */ * /* c */ f /* d */ ( /* e */ x /* f */ , /* g */ y /* h */ ) /* i */ { /* j */ ; /* k */ ; /* l */ }/* after */ +/* before */ +async /* a */ function /* b */ * /* c */ f /* d */ ( /* e */ x /* f */ , /* g */ y /* h */ ) /* i */ { /* j */ ; /* k */ ; /* l */ +} /* after */ assert.sameValue(f.toString(), "async /* a */ function /* b */ * /* c */ f /* d */ ( /* e */ x /* f */ , /* g */ y /* h */ ) /* i */ { /* j */ ; /* k */ ; /* l */ }"); diff --git a/test/built-ins/Function/prototype/toString/async-generator-expression.js b/test/built-ins/Function/prototype/toString/async-generator-expression.js index 60a712820d..1332f6c935 100644 --- a/test/built-ins/Function/prototype/toString/async-generator-expression.js +++ b/test/built-ins/Function/prototype/toString/async-generator-expression.js @@ -7,8 +7,10 @@ description: Function.prototype.toString on an async generator expression features: [async-iteration] ---*/ -let f = /* before */async /* a */ function /* b */ * /* c */ F /* d */ ( /* e */ x /* f */ , /* g */ y /* h */ ) /* i */ { /* j */ ; /* k */ ; /* l */ }/* after */; -let g = /* before */async /* a */ function /* b */ * /* c */ ( /* d */ x /* e */ , /* f */ y /* g */ ) /* h */ { /* i */ ; /* j */ ; /* k */ }/* after */; +let f = /* before */ async /* a */ function /* b */ * /* c */ F /* d */ ( /* e */ x /* f */ , /* g */ y /* h */ ) /* i */ { /* j */ ; /* k */ ; /* l */ +} /* after */ ; +let g = /* before */ async /* a */ function /* b */ * /* c */ ( /* d */ x /* e */ , /* f */ y /* g */ ) /* h */ { /* i */ ; /* j */ ; /* k */ +} /* after */ ; assert.sameValue(f.toString(), "async /* a */ function /* b */ * /* c */ F /* d */ ( /* e */ x /* f */ , /* g */ y /* h */ ) /* i */ { /* j */ ; /* k */ ; /* l */ }"); assert.sameValue(g.toString(), "async /* a */ function /* b */ * /* c */ ( /* d */ x /* e */ , /* f */ y /* g */ ) /* h */ { /* i */ ; /* j */ ; /* k */ }"); diff --git a/test/built-ins/Function/prototype/toString/async-generator-method-class-expression-static.js b/test/built-ins/Function/prototype/toString/async-generator-method-class-expression-static.js index 03ac897e2c..fbe7fd3a91 100644 --- a/test/built-ins/Function/prototype/toString/async-generator-method-class-expression-static.js +++ b/test/built-ins/Function/prototype/toString/async-generator-method-class-expression-static.js @@ -8,9 +8,15 @@ features: [async-iteration] ---*/ let x = "h"; -let f = class { static /* before */async /* a */ * /* b */ f /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ }.f; -let g = class { static /* before */async /* a */ * /* b */ [ /* c */ "g" /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }/* after */ }.g; -let h = class { static /* before */async /* a */ * /* b */ [ /* c */ x /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }/* after */ }.h; +let f = class { + static /* before */ async /* a */ * /* b */ f /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */ +}.f; +let g = class { + static /* before */ async /* a */ * /* b */ [ /* c */ "g" /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ } /* after */ +}.g; +let h = class { + static /* before */ async /* a */ * /* b */ [ /* c */ x /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ } /* after */ +}.h; assert.sameValue(f.toString(), "async /* a */ * /* b */ f /* c */ ( /* d */ ) /* e */ { /* f */ }"); assert.sameValue(g.toString(), "async /* a */ * /* b */ [ /* c */ \"g\" /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }"); diff --git a/test/built-ins/Function/prototype/toString/async-generator-method-class-expression.js b/test/built-ins/Function/prototype/toString/async-generator-method-class-expression.js index 3c98485583..f51f2ee2cb 100644 --- a/test/built-ins/Function/prototype/toString/async-generator-method-class-expression.js +++ b/test/built-ins/Function/prototype/toString/async-generator-method-class-expression.js @@ -8,9 +8,15 @@ features: [async-iteration] ---*/ let x = "h"; -let f = class { /* before */async /* a */ * /* b */ f /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ }.prototype.f; -let g = class { /* before */async /* a */ * /* b */ [ /* c */ "g" /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }/* after */ }.prototype.g; -let h = class { /* before */async /* a */ * /* b */ [ /* c */ x /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }/* after */ }.prototype.h; +let f = class { /* before */ + async /* a */ * /* b */ f /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */ +}.prototype.f; +let g = class { /* before */ + async /* a */ * /* b */ [ /* c */ "g" /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ } /* after */ +}.prototype.g; +let h = class { /* before */ + async /* a */ * /* b */ [ /* c */ x /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ } /* after */ +}.prototype.h; assert.sameValue(f.toString(), "async /* a */ * /* b */ f /* c */ ( /* d */ ) /* e */ { /* f */ }"); assert.sameValue(g.toString(), "async /* a */ * /* b */ [ /* c */ \"g\" /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }"); diff --git a/test/built-ins/Function/prototype/toString/async-generator-method-class-statement-static.js b/test/built-ins/Function/prototype/toString/async-generator-method-class-statement-static.js index 58d5835eba..bdbd186073 100644 --- a/test/built-ins/Function/prototype/toString/async-generator-method-class-statement-static.js +++ b/test/built-ins/Function/prototype/toString/async-generator-method-class-statement-static.js @@ -8,9 +8,15 @@ features: [async-iteration] ---*/ let x = "h"; -class F { static /* before */async /* a */ * /* b */ f /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ } -class G { static /* before */async /* a */ * /* b */ [ /* c */ "g" /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }/* after */ } -class H { static /* before */async /* a */ * /* b */ [ /* c */ x /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }/* after */ } +class F { + static /* before */ async /* a */ * /* b */ f /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */ +} +class G { + static /* before */ async /* a */ * /* b */ [ /* c */ "g" /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ } /* after */ +} +class H { + static /* before */ async /* a */ * /* b */ [ /* c */ x /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ } /* after */ +} let f = F.f; let g = G.g; diff --git a/test/built-ins/Function/prototype/toString/async-generator-method-class-statement.js b/test/built-ins/Function/prototype/toString/async-generator-method-class-statement.js index 1001b983c5..acd8b9a52f 100644 --- a/test/built-ins/Function/prototype/toString/async-generator-method-class-statement.js +++ b/test/built-ins/Function/prototype/toString/async-generator-method-class-statement.js @@ -8,9 +8,15 @@ features: [async-iteration] ---*/ let x = "h"; -class F { /* before */async /* a */ * /* b */ f /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ } -class G { /* before */async /* a */ * /* b */ [ /* c */ "g" /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }/* after */ } -class H { /* before */async /* a */ * /* b */ [ /* c */ x /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }/* after */ } +class F { /* before */ + async /* a */ * /* b */ f /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */ +} +class G { /* before */ + async /* a */ * /* b */ [ /* c */ "g" /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ } /* after */ +} +class H { /* before */ + async /* a */ * /* b */ [ /* c */ x /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ } /* after */ +} let f = F.prototype.f; let g = G.prototype.g; diff --git a/test/built-ins/Function/prototype/toString/async-generator-method-object.js b/test/built-ins/Function/prototype/toString/async-generator-method-object.js index 58a274a851..f6b2760c5d 100644 --- a/test/built-ins/Function/prototype/toString/async-generator-method-object.js +++ b/test/built-ins/Function/prototype/toString/async-generator-method-object.js @@ -8,9 +8,15 @@ features: [async-iteration] ---*/ let x = "h"; -let f = { /* before */async /* a */ * /* b */ f /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ }.f; -let g = { /* before */async /* a */ * /* b */ [ /* c */ "g" /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }/* after */ }.g; -let h = { /* before */async /* a */ * /* b */ [ /* c */ x /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }/* after */ }.h; +let f = { /* before */ + async /* a */ * /* b */ f /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */ +}.f; +let g = { /* before */ + async /* a */ * /* b */ [ /* c */ "g" /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ } /* after */ +}.g; +let h = { /* before */ + async /* a */ * /* b */ [ /* c */ x /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ } /* after */ +}.h; assert.sameValue(f.toString(), "async /* a */ * /* b */ f /* c */ ( /* d */ ) /* e */ { /* f */ }"); assert.sameValue(g.toString(), "async /* a */ * /* b */ [ /* c */ \"g\" /* d */ ] /* e */ ( /* f */ ) /* g */ { /* h */ }"); diff --git a/test/built-ins/Function/prototype/toString/async-method-class-expression-static.js b/test/built-ins/Function/prototype/toString/async-method-class-expression-static.js index 8388c4dda5..b2bc520eef 100644 --- a/test/built-ins/Function/prototype/toString/async-method-class-expression-static.js +++ b/test/built-ins/Function/prototype/toString/async-method-class-expression-static.js @@ -8,9 +8,15 @@ features: [async-functions] ---*/ let x = "h"; -let f = class { static /* before */async f /* a */ ( /* b */ ) /* c */ { /* d */ }/* after */ }.f; -let g = class { static /* before */async /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }.g; -let h = class { static /* before */async /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }.h; +let f = class { + static /* before */ async f /* a */ ( /* b */ ) /* c */ { /* d */ } /* after */ +}.f; +let g = class { + static /* before */ async /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ +}.g; +let h = class { + static /* before */ async /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ +}.h; assert.sameValue(f.toString(), "async f /* a */ ( /* b */ ) /* c */ { /* d */ }"); assert.sameValue(g.toString(), "async /* a */ [ /* b */ \"g\" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }"); diff --git a/test/built-ins/Function/prototype/toString/async-method-class-expression.js b/test/built-ins/Function/prototype/toString/async-method-class-expression.js index dcacd9c9dd..a4c84fc764 100644 --- a/test/built-ins/Function/prototype/toString/async-method-class-expression.js +++ b/test/built-ins/Function/prototype/toString/async-method-class-expression.js @@ -8,9 +8,15 @@ features: [async-functions] ---*/ let x = "h"; -let f = class { /* before */async f /* a */ ( /* b */ ) /* c */ { /* d */ }/* after */ }.prototype.f; -let g = class { /* before */async /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }.prototype.g; -let h = class { /* before */async /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }.prototype.h; +let f = class { /* before */ + async f /* a */ ( /* b */ ) /* c */ { /* d */ } /* after */ +}.prototype.f; +let g = class { /* before */ + async /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ +}.prototype.g; +let h = class { /* before */ + async /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ +}.prototype.h; assert.sameValue(f.toString(), "async f /* a */ ( /* b */ ) /* c */ { /* d */ }"); assert.sameValue(g.toString(), "async /* a */ [ /* b */ \"g\" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }"); diff --git a/test/built-ins/Function/prototype/toString/async-method-class-statement-static.js b/test/built-ins/Function/prototype/toString/async-method-class-statement-static.js index 56e27d0ead..641489fbf9 100644 --- a/test/built-ins/Function/prototype/toString/async-method-class-statement-static.js +++ b/test/built-ins/Function/prototype/toString/async-method-class-statement-static.js @@ -8,9 +8,15 @@ features: [async-functions] ---*/ let x = "h"; -class F { static /* before */async f /* a */ ( /* b */ ) /* c */ { /* d */ }/* after */ } -class G { static /* before */async /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ } -class H { static /* before */async /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ } +class F { + static /* before */ async f /* a */ ( /* b */ ) /* c */ { /* d */ } /* after */ +} +class G { + static /* before */ async /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ +} +class H { + static /* before */ async /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ +} let f = F.f; let g = G.g; diff --git a/test/built-ins/Function/prototype/toString/async-method-class-statement.js b/test/built-ins/Function/prototype/toString/async-method-class-statement.js index 50f512607f..c5a00b124b 100644 --- a/test/built-ins/Function/prototype/toString/async-method-class-statement.js +++ b/test/built-ins/Function/prototype/toString/async-method-class-statement.js @@ -8,9 +8,15 @@ features: [async-functions] ---*/ let x = "h"; -class F { /* before */async f /* a */ ( /* b */ ) /* c */ { /* d */ }/* after */ } -class G { /* before */async /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ } -class H { /* before */async /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ } +class F { /* before */ + async f /* a */ ( /* b */ ) /* c */ { /* d */ } /* after */ +} +class G { /* before */ + async /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ +} +class H { /* before */ + async /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ +} let f = F.prototype.f; let g = G.prototype.g; diff --git a/test/built-ins/Function/prototype/toString/async-method-object.js b/test/built-ins/Function/prototype/toString/async-method-object.js index de117ed4f1..99e6e76702 100644 --- a/test/built-ins/Function/prototype/toString/async-method-object.js +++ b/test/built-ins/Function/prototype/toString/async-method-object.js @@ -9,9 +9,15 @@ features: [async-functions] ---*/ let x = "h"; -let f = { /* before */async f /* a */ ( /* b */ ) /* c */ { /* d */ }/* after */ }.f; -let g = { /* before */async /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }.g; -let h = { /* before */async /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }.h; +let f = { /* before */ + async f /* a */ ( /* b */ ) /* c */ { /* d */ } /* after */ +}.f; +let g = { /* before */ + async /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ +}.g; +let h = { /* before */ + async /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ +}.h; assert.sameValue(f.toString(), "async f /* a */ ( /* b */ ) /* c */ { /* d */ }"); assert.sameValue(g.toString(), "async /* a */ [ /* b */ \"g\" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }"); diff --git a/test/built-ins/Function/prototype/toString/bound-function.js b/test/built-ins/Function/prototype/toString/bound-function.js index b6ceb116ef..f8eca49a58 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 dbf60ee83a..b2956cf568 100644 --- a/test/built-ins/Function/prototype/toString/class-declaration-complex-heritage.js +++ b/test/built-ins/Function/prototype/toString/class-declaration-complex-heritage.js @@ -6,6 +6,7 @@ esid: sec-runtime-semantics-bindingclassdeclarationevaluation description: Function.prototype.toString on a class declaration (with complex heritage) ---*/ -/* before */class /* a */ A /* b */ extends /* c */ class /* d */ B /* e */ { /* f */ } /* g */ { /* h */ }/* after */ +/* before */ +class /* a */ A /* b */ extends /* c */ class /* d */ B /* e */ { /* f */ } /* g */ { /* h */ } /* after */ assert.sameValue(A.toString(), "class /* a */ A /* b */ extends /* c */ class /* d */ B /* e */ { /* f */ } /* g */ { /* h */ }"); diff --git a/test/built-ins/Function/prototype/toString/class-declaration-explicit-ctor.js b/test/built-ins/Function/prototype/toString/class-declaration-explicit-ctor.js index c3b4b264f6..a015ab88d3 100644 --- a/test/built-ins/Function/prototype/toString/class-declaration-explicit-ctor.js +++ b/test/built-ins/Function/prototype/toString/class-declaration-explicit-ctor.js @@ -6,8 +6,13 @@ esid: sec-runtime-semantics-bindingclassdeclarationevaluation description: Function.prototype.toString on a class declaration (explicit constructor) ---*/ -/* before */class /* a */ A /* b */ extends /* c */ B /* d */ { /* e */ constructor /* f */ ( /* g */ ) /* h */ { /* i */ ; /* j */ } /* k */ m /* l */ ( /* m */ ) /* n */ { /* o */ } /* p */ }/* after */ +/* before */ +class /* a */ A /* b */ extends /* c */ B /* d */ { /* e */ + constructor /* f */ ( /* g */ ) /* h */ { /* i */ ; /* j */ + } /* k */ + m /* l */ ( /* m */ ) /* n */ { /* o */ } /* p */ +} /* after */ assert.sameValue(A.toString(), "class /* a */ A /* b */ extends /* c */ B /* d */ { /* e */ constructor /* f */ ( /* g */ ) /* h */ { /* i */ ; /* j */ } /* k */ m /* l */ ( /* m */ ) /* n */ { /* o */ } /* p */ }"); -function B(){} +function B() {} diff --git a/test/built-ins/Function/prototype/toString/class-declaration-implicit-ctor.js b/test/built-ins/Function/prototype/toString/class-declaration-implicit-ctor.js index 9dea84bb61..bb89e29691 100644 --- a/test/built-ins/Function/prototype/toString/class-declaration-implicit-ctor.js +++ b/test/built-ins/Function/prototype/toString/class-declaration-implicit-ctor.js @@ -6,9 +6,14 @@ esid: sec-runtime-semantics-bindingclassdeclarationevaluation description: Function.prototype.toString on a class declaration (implicit constructor) ---*/ -/* before */class /* a */ A /* b */ { /* c */ }/* after */ -/* before */class /* a */ B /* b */ extends /* c */ A /* d */ { /* e */ }/* after */ -/* before */class /* a */ C /* b */ extends /* c */ B /* d */ { /* e */ m /* f */ ( /* g */ ) /* h */ { /* i */ } /* j */ }/* after */ +/* before */ +class /* a */ A /* b */ { /* c */ } /* after */ +/* before */ +class /* a */ B /* b */ extends /* c */ A /* d */ { /* e */ } /* after */ +/* before */ +class /* a */ C /* b */ extends /* c */ B /* d */ { /* e */ + m /* f */ ( /* g */ ) /* h */ { /* i */ } /* j */ +} /* after */ assert.sameValue(A.toString(), "class /* a */ A /* b */ { /* c */ }"); assert.sameValue(B.toString(), "class /* a */ B /* b */ extends /* c */ A /* d */ { /* e */ }"); diff --git a/test/built-ins/Function/prototype/toString/class-expression-explicit-ctor.js b/test/built-ins/Function/prototype/toString/class-expression-explicit-ctor.js index 93d7448479..c6fdcc5b12 100644 --- a/test/built-ins/Function/prototype/toString/class-expression-explicit-ctor.js +++ b/test/built-ins/Function/prototype/toString/class-expression-explicit-ctor.js @@ -6,8 +6,12 @@ esid: sec-class-definitions-runtime-semantics-evaluation description: Function.prototype.toString on a class expression (explicit constructor) ---*/ -let A = /* before */class /* a */ A /* b */ extends /* c */ B /* d */ { /* e */ constructor /* f */ ( /* g */ ) /* h */ { /* i */ ; /* j */ } /* k */ m /* l */ ( /* m */ ) /* n */ { /* o */ } /* p */ }/* after */; +let A = /* before */ class /* a */ A /* b */ extends /* c */ B /* d */ { /* e */ + constructor /* f */ ( /* g */ ) /* h */ { /* i */ ; /* j */ + } /* k */ + m /* l */ ( /* m */ ) /* n */ { /* o */ } /* p */ +} /* after */ ; assert.sameValue(A.toString(), "class /* a */ A /* b */ extends /* c */ B /* d */ { /* e */ constructor /* f */ ( /* g */ ) /* h */ { /* i */ ; /* j */ } /* k */ m /* l */ ( /* m */ ) /* n */ { /* o */ } /* p */ }"); -function B(){} +function B() {} diff --git a/test/built-ins/Function/prototype/toString/class-expression-implicit-ctor.js b/test/built-ins/Function/prototype/toString/class-expression-implicit-ctor.js index 91ab621341..07b2a9a009 100644 --- a/test/built-ins/Function/prototype/toString/class-expression-implicit-ctor.js +++ b/test/built-ins/Function/prototype/toString/class-expression-implicit-ctor.js @@ -6,9 +6,11 @@ esid: sec-class-definitions-runtime-semantics-evaluation description: Function.prototype.toString on a class expression (implicit constructor) ---*/ -let A = /* before */class /* a */ A /* b */ { /* c */ }/* after */; -let B = /* before */class /* a */ B /* b */ extends /* c */ A /* d */ { /* e */ }/* after */; -let C = /* before */class /* a */ C /* b */ extends /* c */ B /* d */ { /* e */ m /* f */ ( /* g */ ) /* h */ { /* i */ } /* j */ }/* after */; +let A = /* before */ class /* a */ A /* b */ { /* c */ } /* after */ ; +let B = /* before */ class /* a */ B /* b */ extends /* c */ A /* d */ { /* e */ } /* after */ ; +let C = /* before */ class /* a */ C /* b */ extends /* c */ B /* d */ { /* e */ + m /* f */ ( /* g */ ) /* h */ { /* i */ } /* j */ +} /* after */ ; assert.sameValue(A.toString(), "class /* a */ A /* b */ { /* c */ }"); assert.sameValue(B.toString(), "class /* a */ B /* b */ extends /* c */ A /* d */ { /* e */ }"); diff --git a/test/built-ins/Function/prototype/toString/function-declaration-non-simple-parameter-list.js b/test/built-ins/Function/prototype/toString/function-declaration-non-simple-parameter-list.js index 7ff7971e01..3b5acaa73e 100644 --- a/test/built-ins/Function/prototype/toString/function-declaration-non-simple-parameter-list.js +++ b/test/built-ins/Function/prototype/toString/function-declaration-non-simple-parameter-list.js @@ -6,6 +6,9 @@ esid: sec-function-definitions-runtime-semantics-instantiatefunctionobject description: Function.prototype.toString on a function with a non-simple parameter list ---*/ -/* before */function /* a */ f /* b */ ( /* c */ a /* d */ = /* e */ 0 /* f */ , /* g */ { /* h */ b /* i */ = /* j */ 0 /* k */ } /* l */ ) /* m */ { /* n */ }/* after */ +/* before */ +function /* a */ f /* b */ ( /* c */ a /* d */ = /* e */ 0 /* f */ , /* g */ { /* h */ + b /* i */ = /* j */ 0 /* k */ +} /* l */ ) /* m */ { /* n */ } /* after */ assert.sameValue(f.toString(), "function /* a */ f /* b */ ( /* c */ a /* d */ = /* e */ 0 /* f */ , /* g */ { /* h */ b /* i */ = /* j */ 0 /* k */ } /* l */ ) /* m */ { /* n */ }"); diff --git a/test/built-ins/Function/prototype/toString/function-declaration.js b/test/built-ins/Function/prototype/toString/function-declaration.js index a0446ba712..0d2db3877a 100644 --- a/test/built-ins/Function/prototype/toString/function-declaration.js +++ b/test/built-ins/Function/prototype/toString/function-declaration.js @@ -6,6 +6,8 @@ esid: sec-function-definitions-runtime-semantics-instantiatefunctionobject description: Function.prototype.toString on a function declaration ---*/ -/* before */function /* a */ f /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ }/* after */ +/* before */ +function /* a */ f /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ +} /* after */ assert.sameValue(f.toString(), "function /* a */ f /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ }"); diff --git a/test/built-ins/Function/prototype/toString/function-expression.js b/test/built-ins/Function/prototype/toString/function-expression.js index b1bcedaf49..5c67dd8af1 100644 --- a/test/built-ins/Function/prototype/toString/function-expression.js +++ b/test/built-ins/Function/prototype/toString/function-expression.js @@ -6,8 +6,10 @@ esid: sec-function-definitions-runtime-semantics-evaluation description: Function.prototype.toString on a function expression ---*/ -let f = /* before */function /* a */ F /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ }/* after */; -let g = /* before */function /* a */ ( /* b */ x /* c */ , /* d */ y /* e */ ) /* f */ { /* g */ ; /* h */ ; /* i */ }/* after */; +let f = /* before */ function /* a */ F /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ +} /* after */ ; +let g = /* before */ function /* a */ ( /* b */ x /* c */ , /* d */ y /* e */ ) /* f */ { /* g */ ; /* h */ ; /* i */ +} /* after */ ; assert.sameValue(f.toString(), "function /* a */ F /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ }"); assert.sameValue(g.toString(), "function /* a */ ( /* b */ x /* c */ , /* d */ y /* e */ ) /* f */ { /* g */ ; /* h */ ; /* i */ }"); diff --git a/test/built-ins/Function/prototype/toString/generator-function-declaration.js b/test/built-ins/Function/prototype/toString/generator-function-declaration.js index 133f9af8cb..cab7f840d5 100644 --- a/test/built-ins/Function/prototype/toString/generator-function-declaration.js +++ b/test/built-ins/Function/prototype/toString/generator-function-declaration.js @@ -6,6 +6,8 @@ esid: sec-generator-function-definitions-runtime-semantics-instantiatefunctionob description: Function.prototype.toString on a generator function declaration ---*/ -/* before */function /* a */ * /* b */ g /* c */ ( /* d */ x /* e */ , /* f */ y /* g */ ) /* h */ { /* i */ ; /* j */ ; /* k */ }/* after */ +/* before */ +function /* a */ * /* b */ g /* c */ ( /* d */ x /* e */ , /* f */ y /* g */ ) /* h */ { /* i */ ; /* j */ ; /* k */ +} /* after */ assert.sameValue(g.toString(), "function /* a */ * /* b */ g /* c */ ( /* d */ x /* e */ , /* f */ y /* g */ ) /* h */ { /* i */ ; /* j */ ; /* k */ }"); diff --git a/test/built-ins/Function/prototype/toString/generator-function-expression.js b/test/built-ins/Function/prototype/toString/generator-function-expression.js index d175055ec1..6d1dae971e 100644 --- a/test/built-ins/Function/prototype/toString/generator-function-expression.js +++ b/test/built-ins/Function/prototype/toString/generator-function-expression.js @@ -6,8 +6,10 @@ esid: sec-generator-function-definitions-runtime-semantics-evaluation description: Function.prototype.toString on a generator function expression ---*/ -let f = /* before */function /* a */ * /* b */ F /* c */ ( /* d */ x /* e */ , /* f */ y /* g */ ) /* h */ { /* i */ ; /* j */ ; /* k */ }/* after */ -let g = /* before */function /* a */ * /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ }/* after */ +let f = /* before */ function /* a */ * /* b */ F /* c */ ( /* d */ x /* e */ , /* f */ y /* g */ ) /* h */ { /* i */ ; /* j */ ; /* k */ +} /* after */ +let g = /* before */ function /* a */ * /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ +} /* after */ assert.sameValue(f.toString(), "function /* a */ * /* b */ F /* c */ ( /* d */ x /* e */ , /* f */ y /* g */ ) /* h */ { /* i */ ; /* j */ ; /* k */ }"); assert.sameValue(g.toString(), "function /* a */ * /* b */ ( /* c */ x /* d */ , /* e */ y /* f */ ) /* g */ { /* h */ ; /* i */ ; /* j */ }"); diff --git a/test/built-ins/Function/prototype/toString/generator-method.js b/test/built-ins/Function/prototype/toString/generator-method.js index f5cb5d2187..041fcbcc6f 100644 --- a/test/built-ins/Function/prototype/toString/generator-method.js +++ b/test/built-ins/Function/prototype/toString/generator-method.js @@ -7,9 +7,12 @@ description: Function.prototype.toString on a generator method ---*/ let x = "h"; -let f = { /* before */* /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ }/* after */ }.f; -let g = { /* before */* /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }.g; -let h = { /* before */* /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }.h; +let f = { /* before */ * /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ } /* after */ +}.f; +let g = { /* before */ * /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ +}.g; +let h = { /* before */ * /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ +}.h; assert.sameValue(f.toString(), "* /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ }"); assert.sameValue(g.toString(), "* /* a */ [ /* b */ \"g\" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }"); diff --git a/test/built-ins/Function/prototype/toString/getter-class-expression-static.js b/test/built-ins/Function/prototype/toString/getter-class-expression-static.js index 009d92127b..e220cf4352 100644 --- a/test/built-ins/Function/prototype/toString/getter-class-expression-static.js +++ b/test/built-ins/Function/prototype/toString/getter-class-expression-static.js @@ -7,9 +7,15 @@ description: Function.prototype.toString on a getter (class; static) ---*/ let x = "h"; -let f = Object.getOwnPropertyDescriptor(class { static /* before */get /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ }/* after */ }, "f").get; -let g = Object.getOwnPropertyDescriptor(class { static /* before */get /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }, "g").get; -let h = Object.getOwnPropertyDescriptor(class { static /* before */get /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }, "h").get; +let f = Object.getOwnPropertyDescriptor(class { + static /* before */ get /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ } /* after */ +}, "f").get; +let g = Object.getOwnPropertyDescriptor(class { + static /* before */ get /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ +}, "g").get; +let h = Object.getOwnPropertyDescriptor(class { + static /* before */ get /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ +}, "h").get; assert.sameValue(f.toString(), "get /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ }"); assert.sameValue(g.toString(), "get /* a */ [ /* b */ \"g\" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }"); diff --git a/test/built-ins/Function/prototype/toString/getter-class-expression.js b/test/built-ins/Function/prototype/toString/getter-class-expression.js index 7b3eef410a..b5e1d9d695 100644 --- a/test/built-ins/Function/prototype/toString/getter-class-expression.js +++ b/test/built-ins/Function/prototype/toString/getter-class-expression.js @@ -7,9 +7,15 @@ description: Function.prototype.toString on a getter (class) ---*/ let x = "h"; -let f = Object.getOwnPropertyDescriptor(class { /* before */get /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ }/* after */ }.prototype, "f").get; -let g = Object.getOwnPropertyDescriptor(class { /* before */get /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }.prototype, "g").get; -let h = Object.getOwnPropertyDescriptor(class { /* before */get /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }.prototype, "h").get; +let f = Object.getOwnPropertyDescriptor(class { /* before */ + get /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ } /* after */ +}.prototype, "f").get; +let g = Object.getOwnPropertyDescriptor(class { /* before */ + get /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ +}.prototype, "g").get; +let h = Object.getOwnPropertyDescriptor(class { /* before */ + get /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ +}.prototype, "h").get; assert.sameValue(f.toString(), "get /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ }"); assert.sameValue(g.toString(), "get /* a */ [ /* b */ \"g\" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }"); diff --git a/test/built-ins/Function/prototype/toString/getter-class-statement-static.js b/test/built-ins/Function/prototype/toString/getter-class-statement-static.js index 4ac72bccdd..411a51cbdc 100644 --- a/test/built-ins/Function/prototype/toString/getter-class-statement-static.js +++ b/test/built-ins/Function/prototype/toString/getter-class-statement-static.js @@ -7,9 +7,15 @@ description: Function.prototype.toString on a getter (class; static) ---*/ let x = "h"; -class F { static /* before */get /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ }/* after */ } -class G { static /* before */get /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ } -class H { static /* before */get /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ } +class F { + static /* before */ get /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ } /* after */ +} +class G { + static /* before */ get /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ +} +class H { + static /* before */ get /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ +} let f = Object.getOwnPropertyDescriptor(F, "f").get; let g = Object.getOwnPropertyDescriptor(G, "g").get; diff --git a/test/built-ins/Function/prototype/toString/getter-class-statement.js b/test/built-ins/Function/prototype/toString/getter-class-statement.js index 83139c33c4..768500ad2a 100644 --- a/test/built-ins/Function/prototype/toString/getter-class-statement.js +++ b/test/built-ins/Function/prototype/toString/getter-class-statement.js @@ -7,9 +7,15 @@ description: Function.prototype.toString on a getter (class) ---*/ let x = "h"; -class F { /* before */get /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ }/* after */ } -class G { /* before */get /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ } -class H { /* before */get /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ } +class F { /* before */ + get /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ } /* after */ +} +class G { /* before */ + get /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ +} +class H { /* before */ + get /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ +} let f = Object.getOwnPropertyDescriptor(F.prototype, "f").get; let g = Object.getOwnPropertyDescriptor(G.prototype, "g").get; diff --git a/test/built-ins/Function/prototype/toString/getter-object.js b/test/built-ins/Function/prototype/toString/getter-object.js index 3e794d04bd..2a7625cd9d 100644 --- a/test/built-ins/Function/prototype/toString/getter-object.js +++ b/test/built-ins/Function/prototype/toString/getter-object.js @@ -7,9 +7,15 @@ description: Function.prototype.toString on a getter (object) ---*/ let x = "h"; -let f = Object.getOwnPropertyDescriptor({ /* before */get /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ }/* after */ }, "f").get; -let g = Object.getOwnPropertyDescriptor({ /* before */get /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }, "g").get; -let h = Object.getOwnPropertyDescriptor({ /* before */get /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }/* after */ }, "h").get; +let f = Object.getOwnPropertyDescriptor({ /* before */ + get /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ } /* after */ +}, "f").get; +let g = Object.getOwnPropertyDescriptor({ /* before */ + get /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ +}, "g").get; +let h = Object.getOwnPropertyDescriptor({ /* before */ + get /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ } /* after */ +}, "h").get; assert.sameValue(f.toString(), "get /* a */ f /* b */ ( /* c */ ) /* d */ { /* e */ }"); assert.sameValue(g.toString(), "get /* a */ [ /* b */ \"g\" /* c */ ] /* d */ ( /* e */ ) /* f */ { /* g */ }"); diff --git a/test/built-ins/Function/prototype/toString/intrinsics.js b/test/built-ins/Function/prototype/toString/intrinsics.js index dc13195961..61cbff78be 100644 --- a/test/built-ins/Function/prototype/toString/intrinsics.js +++ b/test/built-ins/Function/prototype/toString/intrinsics.js @@ -8,11 +8,48 @@ includes: [nativeFunctionMatcher.js] ---*/ let intrinsics = { - Array, ArrayBuffer, Boolean, DataView, Date, decodeURI, decodeURIComponent, encodeURI, - encodeURIComponent, Error, eval, EvalError, Float32Array, Float64Array, Function, Int8Array, - Int16Array, Int32Array, isFinite, isNaN, Map, Number, Object, parseFloat, parseInt, Promise, - Proxy, RangeError, ReferenceError, RegExp, Set, String, Symbol, SyntaxError, TypeError, - Uint8Array, Uint8ClampedArray, Uint16Array, Uint32Array, URIError, WeakMap, WeakSet, + Array, + ArrayBuffer, + Boolean, + DataView, + Date, + decodeURI, + decodeURIComponent, + encodeURI, + encodeURIComponent, + Error, + eval, + EvalError, + Float32Array, + Float64Array, + Function, + Int8Array, + Int16Array, + Int32Array, + isFinite, + isNaN, + Map, + Number, + Object, + parseFloat, + parseInt, + Promise, + Proxy, + RangeError, + ReferenceError, + RegExp, + Set, + String, + Symbol, + SyntaxError, + TypeError, + Uint8Array, + Uint8ClampedArray, + Uint16Array, + Uint32Array, + URIError, + WeakMap, + WeakSet, }; for (let intrinsicName in intrinsics) { diff --git a/test/built-ins/Function/prototype/toString/line-terminator-normalisation-CR-LF.js b/test/built-ins/Function/prototype/toString/line-terminator-normalisation-CR-LF.js index 93f653936a..8b362356f2 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 4e55706f64..d71053779a 100644 --- a/test/built-ins/Function/prototype/toString/line-terminator-normalisation-CR.js +++ b/test/built-ins/Function/prototype/toString/line-terminator-normalisation-CR.js @@ -1 +1,36 @@ -// Copyright (C) 2016 Michael Ficarra. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-function-definitions-runtime-semantics-instantiatefunctionobject description: Function.prototype.toString line terminator normalisation (CR) info: | Function.prototype.toString should not normalise line terminator sequences to Line Feed characters. This file uses Carriage Return characters as line terminators. ---*/ // before function // a f // b ( // c x // d , // e y // f ) // g { // h ; // i ; // j } // after assert.sameValue(f.toString(), "function\r// a\rf\r// b\r(\r// c\rx\r// d\r,\r// e\ry\r// f\r)\r// g\r{\r// h\r;\r// i\r;\r// j\r}"); +// Copyright (C) 2016 Michael Ficarra. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-function-definitions-runtime-semantics-instantiatefunctionobject +description: Function.prototype.toString line terminator normalisation (CR) +info: | + Function.prototype.toString should not normalise line terminator sequences to Line Feed characters. + This file uses Carriage Return characters as line terminators. +---*/ + +// before +function +// a +f +// b +( + // c + x + // d + , + // e + y + // f +) +// g +{ + // h + ; + // i + ; + // j +} +// after + +assert.sameValue(f.toString(), "function\r// a\rf\r// b\r(\r// c\rx\r// d\r,\r// e\ry\r// f\r)\r// g\r{\r// h\r;\r// i\r;\r// j\r}"); diff --git a/test/built-ins/Function/prototype/toString/line-terminator-normalisation-LF.js b/test/built-ins/Function/prototype/toString/line-terminator-normalisation-LF.js index 69b7855430..35d0a9cf5c 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 9a81f8f10f..752c9d0850 100644 --- a/test/built-ins/Function/prototype/toString/method-class-expression-static.js +++ b/test/built-ins/Function/prototype/toString/method-class-expression-static.js @@ -7,9 +7,15 @@ description: Function.prototype.toString on a method (class; static) ---*/ let x = "h"; -let f = class { static /* before */f /* a */ ( /* b */ ) /* c */ { /* d */ }/* after */ }.f; -let g = class { static /* before */[ /* a */ "g" /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ }.g; -let h = class { static /* before */[ /* a */ x /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ }.h; +let f = class { + static /* before */ f /* a */ ( /* b */ ) /* c */ { /* d */ } /* after */ +}.f; +let g = class { + static /* before */ [ /* a */ "g" /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */ +}.g; +let h = class { + static /* before */ [ /* a */ x /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */ +}.h; assert.sameValue(f.toString(), "f /* a */ ( /* b */ ) /* c */ { /* d */ }"); assert.sameValue(g.toString(), "[ /* a */ \"g\" /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ }"); diff --git a/test/built-ins/Function/prototype/toString/method-class-expression.js b/test/built-ins/Function/prototype/toString/method-class-expression.js index cdfe9643ed..a77b6b1630 100644 --- a/test/built-ins/Function/prototype/toString/method-class-expression.js +++ b/test/built-ins/Function/prototype/toString/method-class-expression.js @@ -7,9 +7,15 @@ description: Function.prototype.toString on a method (class) ---*/ let x = "h"; -let f = class { /* before */f /* a */ ( /* b */ ) /* c */ { /* d */ }/* after */ }.prototype.f; -let g = class { /* before */[ /* a */ "g" /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ }.prototype.g; -let h = class { /* before */[ /* a */ x /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ }.prototype.h; +let f = class { /* before */ + f /* a */ ( /* b */ ) /* c */ { /* d */ } /* after */ +}.prototype.f; +let g = class { /* before */ + [ /* a */ "g" /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */ +}.prototype.g; +let h = class { /* before */ + [ /* a */ x /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */ +}.prototype.h; assert.sameValue(f.toString(), "f /* a */ ( /* b */ ) /* c */ { /* d */ }"); assert.sameValue(g.toString(), "[ /* a */ \"g\" /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ }"); diff --git a/test/built-ins/Function/prototype/toString/method-class-statement-static.js b/test/built-ins/Function/prototype/toString/method-class-statement-static.js index f8e9817a8f..5bb809870d 100644 --- a/test/built-ins/Function/prototype/toString/method-class-statement-static.js +++ b/test/built-ins/Function/prototype/toString/method-class-statement-static.js @@ -7,9 +7,15 @@ description: Function.prototype.toString on a method (class; static) ---*/ let x = "h"; -class F { static /* before */f /* a */ ( /* b */ ) /* c */ { /* d */ }/* after */ } -class G { static /* before */[ /* a */ "g" /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ } -class H { static /* before */[ /* a */ x /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ } +class F { + static /* before */ f /* a */ ( /* b */ ) /* c */ { /* d */ } /* after */ +} +class G { + static /* before */ [ /* a */ "g" /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */ +} +class H { + static /* before */ [ /* a */ x /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */ +} let f = F.f; let g = G.g; diff --git a/test/built-ins/Function/prototype/toString/method-class-statement.js b/test/built-ins/Function/prototype/toString/method-class-statement.js index 3ee83d514c..63f7e3871d 100644 --- a/test/built-ins/Function/prototype/toString/method-class-statement.js +++ b/test/built-ins/Function/prototype/toString/method-class-statement.js @@ -7,9 +7,15 @@ description: Function.prototype.toString on a method (class) ---*/ let x = "h"; -class F { /* before */f /* a */ ( /* b */ ) /* c */ { /* d */ }/* after */ } -class G { /* before */[ /* a */ "g" /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ } -class H { /* before */[ /* a */ x /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ } +class F { /* before */ + f /* a */ ( /* b */ ) /* c */ { /* d */ } /* after */ +} +class G { /* before */ + [ /* a */ "g" /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */ +} +class H { /* before */ + [ /* a */ x /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */ +} let f = F.prototype.f; let g = G.prototype.g; diff --git a/test/built-ins/Function/prototype/toString/method-computed-property-name.js b/test/built-ins/Function/prototype/toString/method-computed-property-name.js index dcf692d23d..af4d893bef 100644 --- a/test/built-ins/Function/prototype/toString/method-computed-property-name.js +++ b/test/built-ins/Function/prototype/toString/method-computed-property-name.js @@ -6,8 +6,14 @@ esid: sec-runtime-semantics-definemethod description: Function.prototype.toString on a method (object) ---*/ -let f = { /* before */[ /* a */ "f" /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ }/* after */ }.f; -let g = { [ { a(){} }.a ](){ } }["a(){}"]; +let f = { /* before */ + [ /* a */ "f" /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ } /* after */ +}.f; +let g = { + [{ + a() {} + }.a]() {} +}["a(){}"]; assert.sameValue(f.toString(), "[ /* a */ \"f\" /* b */ ] /* c */ ( /* d */ ) /* e */ { /* f */ }"); assert.sameValue("" + g, "[ { a(){} }.a ](){ }"); diff --git a/test/built-ins/Function/prototype/toString/method-object.js b/test/built-ins/Function/prototype/toString/method-object.js index 6930964ed1..0e15678730 100644 --- a/test/built-ins/Function/prototype/toString/method-object.js +++ b/test/built-ins/Function/prototype/toString/method-object.js @@ -6,6 +6,8 @@ esid: sec-runtime-semantics-definemethod description: Function.prototype.toString on a method (object) ---*/ -let f = { /* before */f /* a */ ( /* b */ ) /* c */ { /* d */ }/* after */ }.f; +let f = { /* before */ + f /* a */ ( /* b */ ) /* c */ { /* d */ } /* after */ +}.f; assert.sameValue(f.toString(), "f /* a */ ( /* b */ ) /* c */ { /* d */ }"); diff --git a/test/built-ins/Function/prototype/toString/setter-class-expression-static.js b/test/built-ins/Function/prototype/toString/setter-class-expression-static.js index ab0b1ede43..f276c8657a 100644 --- a/test/built-ins/Function/prototype/toString/setter-class-expression-static.js +++ b/test/built-ins/Function/prototype/toString/setter-class-expression-static.js @@ -7,9 +7,15 @@ description: Function.prototype.toString on a setter (class; static) ---*/ let x = "h"; -let f = Object.getOwnPropertyDescriptor(class { static /* before */set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ }/* after */ }, "f").set; -let g = Object.getOwnPropertyDescriptor(class { static /* before */set /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }/* after */ }, "g").set; -let h = Object.getOwnPropertyDescriptor(class { static /* before */set /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }/* after */ }, "h").set; +let f = Object.getOwnPropertyDescriptor(class { + static /* before */ set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ } /* after */ +}, "f").set; +let g = Object.getOwnPropertyDescriptor(class { + static /* before */ set /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ } /* after */ +}, "g").set; +let h = Object.getOwnPropertyDescriptor(class { + static /* before */ set /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ } /* after */ +}, "h").set; assert.sameValue(f.toString(), "set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ }"); assert.sameValue(g.toString(), "set /* a */ [ /* b */ \"g\" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }"); diff --git a/test/built-ins/Function/prototype/toString/setter-class-expression.js b/test/built-ins/Function/prototype/toString/setter-class-expression.js index b34b4128e5..954d6d52fb 100644 --- a/test/built-ins/Function/prototype/toString/setter-class-expression.js +++ b/test/built-ins/Function/prototype/toString/setter-class-expression.js @@ -7,9 +7,15 @@ description: Function.prototype.toString on a setter (class) ---*/ let x = "h"; -let f = Object.getOwnPropertyDescriptor(class { /* before */set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ }/* after */ }.prototype, "f").set; -let g = Object.getOwnPropertyDescriptor(class { /* before */set /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }/* after */ }.prototype, "g").set; -let h = Object.getOwnPropertyDescriptor(class { /* before */set /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }/* after */ }.prototype, "h").set; +let f = Object.getOwnPropertyDescriptor(class { /* before */ + set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ } /* after */ +}.prototype, "f").set; +let g = Object.getOwnPropertyDescriptor(class { /* before */ + set /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ } /* after */ +}.prototype, "g").set; +let h = Object.getOwnPropertyDescriptor(class { /* before */ + set /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ } /* after */ +}.prototype, "h").set; assert.sameValue(f.toString(), "set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ }"); assert.sameValue(g.toString(), "set /* a */ [ /* b */ \"g\" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }"); diff --git a/test/built-ins/Function/prototype/toString/setter-class-statement-static.js b/test/built-ins/Function/prototype/toString/setter-class-statement-static.js index 7a5a37de0a..dec3c24711 100644 --- a/test/built-ins/Function/prototype/toString/setter-class-statement-static.js +++ b/test/built-ins/Function/prototype/toString/setter-class-statement-static.js @@ -7,9 +7,15 @@ description: Function.prototype.toString on a setter (class; static) ---*/ let x = "h"; -class F { static /* before */set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ }/* after */ } -class G { static /* before */set /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }/* after */ } -class H { static /* before */set /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }/* after */ } +class F { + static /* before */ set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ } /* after */ +} +class G { + static /* before */ set /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ } /* after */ +} +class H { + static /* before */ set /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ } /* after */ +} let f = Object.getOwnPropertyDescriptor(F, "f").set; let g = Object.getOwnPropertyDescriptor(G, "g").set; diff --git a/test/built-ins/Function/prototype/toString/setter-class-statement.js b/test/built-ins/Function/prototype/toString/setter-class-statement.js index 7c0c2b3e0c..4534d8aa19 100644 --- a/test/built-ins/Function/prototype/toString/setter-class-statement.js +++ b/test/built-ins/Function/prototype/toString/setter-class-statement.js @@ -7,9 +7,15 @@ description: Function.prototype.toString on a setter (class) ---*/ let x = "h"; -class F { /* before */set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ }/* after */ } -class G { /* before */set /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }/* after */ } -class H { /* before */set /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }/* after */ } +class F { /* before */ + set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ } /* after */ +} +class G { /* before */ + set /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ } /* after */ +} +class H { /* before */ + set /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ } /* after */ +} let f = Object.getOwnPropertyDescriptor(F.prototype, "f").set; let g = Object.getOwnPropertyDescriptor(G.prototype, "g").set; diff --git a/test/built-ins/Function/prototype/toString/setter-object.js b/test/built-ins/Function/prototype/toString/setter-object.js index 20adbe3e05..0e207d25c7 100644 --- a/test/built-ins/Function/prototype/toString/setter-object.js +++ b/test/built-ins/Function/prototype/toString/setter-object.js @@ -7,9 +7,15 @@ description: Function.prototype.toString on a setter (object) ---*/ let x = "h"; -let f = Object.getOwnPropertyDescriptor({ /* before */set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ }/* after */ }, "f").set; -let g = Object.getOwnPropertyDescriptor({ /* before */set /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }/* after */ }, "g").set; -let h = Object.getOwnPropertyDescriptor({ /* before */set /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }/* after */ }, "h").set; +let f = Object.getOwnPropertyDescriptor({ /* before */ + set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ } /* after */ +}, "f").set; +let g = Object.getOwnPropertyDescriptor({ /* before */ + set /* a */ [ /* b */ "g" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ } /* after */ +}, "g").set; +let h = Object.getOwnPropertyDescriptor({ /* before */ + set /* a */ [ /* b */ x /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ } /* after */ +}, "h").set; assert.sameValue(f.toString(), "set /* a */ f /* b */ ( /* c */ a /* d */ ) /* e */ { /* f */ }"); assert.sameValue(g.toString(), "set /* a */ [ /* b */ \"g\" /* c */ ] /* d */ ( /* e */ a /* f */ ) /* g */ { /* h */ }"); diff --git a/test/built-ins/Function/prototype/toString/unicode.js b/test/built-ins/Function/prototype/toString/unicode.js index fa176fac29..a46303ef9e 100644 --- a/test/built-ins/Function/prototype/toString/unicode.js +++ b/test/built-ins/Function/prototype/toString/unicode.js @@ -9,6 +9,13 @@ info: | any potential Unicode escape sequence substitution in identifiers ---*/ -function \u0061(\u{62}, \u0063) { \u0062 = \u{00063}; return b; } +function\ u0061(\u { + 62 +}, \u0063) {\ + u0062 = \u { + 00063 + }; + return b; +} assert.sameValue(a.toString(), "function \\u0061(\\u{62}, \\u0063) { \\u0062 = \\u{00063}; return b; }"); diff --git a/test/built-ins/GeneratorFunction/extensibility.js b/test/built-ins/GeneratorFunction/extensibility.js index 265cffc02c..4328a904e3 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 80d176b784..3b5ad67f80 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 8225a4776a..1cec55dd73 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 fb1389f736..0951a1a2a3 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 5dab8a3124..88fcd961a3 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 3f6db037d2..e542b89640 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 a04982da88..419360a88f 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 cb5bf8e8a9..564810fa12 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 a32adad02a..7b7ac8429c 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 928f733744..204d5a30b5 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 e49ddcbc4e..279bfd129f 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 f118d1de61..b989303dec 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 99f02561ca..2d517748b1 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 b8215acf4e..313fd4baab 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 26c4370b14..87cb431844 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 4a71347693..ca9f590996 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 1ba38ae8aa..e28a1d04bb 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 3f6332163c..3986c63d0f 100644 --- a/test/built-ins/GeneratorPrototype/next/consecutive-yields.js +++ b/test/built-ins/GeneratorPrototype/next/consecutive-yields.js @@ -8,7 +8,10 @@ description: > features: [generators] ---*/ -function* g() { yield 1; yield 2; } +function* g() { + yield 1; + yield 2; +} var iter = g(); var result; diff --git a/test/built-ins/GeneratorPrototype/next/context-method-invocation.js b/test/built-ins/GeneratorPrototype/next/context-method-invocation.js index 5e6f3ed5a5..aff5667ad8 100644 --- a/test/built-ins/GeneratorPrototype/next/context-method-invocation.js +++ b/test/built-ins/GeneratorPrototype/next/context-method-invocation.js @@ -9,8 +9,13 @@ features: [generators] ---*/ var context; -function* g() { context = this; } -var obj = { g: g }; + +function* g() { + context = this; +} +var obj = { + g: g +}; var iter = obj.g(); iter.next(); diff --git a/test/built-ins/GeneratorPrototype/next/from-state-executing.js b/test/built-ins/GeneratorPrototype/next/from-state-executing.js index 29461cc117..2a05f8c2f7 100644 --- a/test/built-ins/GeneratorPrototype/next/from-state-executing.js +++ b/test/built-ins/GeneratorPrototype/next/from-state-executing.js @@ -37,9 +37,11 @@ features: [generators] ---*/ var iter, result; + function* withoutVal() { iter.next(); } + function* withVal() { iter.next(42); } diff --git a/test/built-ins/GeneratorPrototype/next/lone-return.js b/test/built-ins/GeneratorPrototype/next/lone-return.js index cae93289b4..0a444cbc14 100644 --- a/test/built-ins/GeneratorPrototype/next/lone-return.js +++ b/test/built-ins/GeneratorPrototype/next/lone-return.js @@ -8,7 +8,9 @@ description: > features: [generators] ---*/ -function* g() { return 23; } +function* g() { + return 23; +} var iter = g(); var result; diff --git a/test/built-ins/GeneratorPrototype/next/lone-yield.js b/test/built-ins/GeneratorPrototype/next/lone-yield.js index 76199c6721..c909af1480 100644 --- a/test/built-ins/GeneratorPrototype/next/lone-yield.js +++ b/test/built-ins/GeneratorPrototype/next/lone-yield.js @@ -8,7 +8,9 @@ description: > features: [generators] ---*/ -function* g() { yield 1; } +function* g() { + yield 1; +} var iter = g(); var result; diff --git a/test/built-ins/GeneratorPrototype/next/this-val-not-generator.js b/test/built-ins/GeneratorPrototype/next/this-val-not-generator.js index dee7dfc4ef..25727d062d 100644 --- a/test/built-ins/GeneratorPrototype/next/this-val-not-generator.js +++ b/test/built-ins/GeneratorPrototype/next/this-val-not-generator.js @@ -27,44 +27,60 @@ var GeneratorPrototype = Object.getPrototypeOf(g).prototype; assert.throws( TypeError, - function() { GeneratorPrototype.next.call({}); }, + function() { + GeneratorPrototype.next.call({}); + }, 'ordinary object (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.next.call({}, 1); }, + function() { + GeneratorPrototype.next.call({}, 1); + }, 'ordinary object (with value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.next.call(function() {}); }, + function() { + GeneratorPrototype.next.call(function() {}); + }, 'function object (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.next.call(function() {}, 1); }, + function() { + GeneratorPrototype.next.call(function() {}, 1); + }, 'function object (with value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.next.call(g); }, + function() { + GeneratorPrototype.next.call(g); + }, 'generator function object (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.next.call(g, 1); }, + function() { + GeneratorPrototype.next.call(g, 1); + }, 'generator function object (with value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.next.call(g.prototype); }, + function() { + GeneratorPrototype.next.call(g.prototype); + }, 'generator function prototype object (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.next.call(g.prototype, 1); }, + function() { + GeneratorPrototype.next.call(g.prototype, 1); + }, 'generator function prototype object (with value)' ); diff --git a/test/built-ins/GeneratorPrototype/next/this-val-not-object.js b/test/built-ins/GeneratorPrototype/next/this-val-not-object.js index 646590b6fe..c42b5777f0 100644 --- a/test/built-ins/GeneratorPrototype/next/this-val-not-object.js +++ b/test/built-ins/GeneratorPrototype/next/this-val-not-object.js @@ -26,66 +26,90 @@ var symbol = Symbol(); assert.throws( TypeError, - function() { GeneratorPrototype.next.call(undefined); }, + function() { + GeneratorPrototype.next.call(undefined); + }, 'undefined (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.next.call(undefined, 1); }, + function() { + GeneratorPrototype.next.call(undefined, 1); + }, 'undefined (with value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.next.call(null); }, + function() { + GeneratorPrototype.next.call(null); + }, 'null (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.next.call(null, 1); }, + function() { + GeneratorPrototype.next.call(null, 1); + }, 'null (with value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.next.call(true); }, + function() { + GeneratorPrototype.next.call(true); + }, 'boolean (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.next.call(true, 1); }, + function() { + GeneratorPrototype.next.call(true, 1); + }, 'boolean (with value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.next.call('s'); }, + function() { + GeneratorPrototype.next.call('s'); + }, 'string (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.next.call('s', 1); }, + function() { + GeneratorPrototype.next.call('s', 1); + }, 'string (with value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.next.call(1); }, + function() { + GeneratorPrototype.next.call(1); + }, 'number (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.next.call(1, 1); }, + function() { + GeneratorPrototype.next.call(1, 1); + }, 'number (with value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.next.call(symbol); }, + function() { + GeneratorPrototype.next.call(symbol); + }, 'symbol (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.next.call(symbol, 1); }, + function() { + GeneratorPrototype.next.call(symbol, 1); + }, 'symbol (with value)' ); diff --git a/test/built-ins/GeneratorPrototype/return/from-state-executing.js b/test/built-ins/GeneratorPrototype/return/from-state-executing.js index 9cf5a78bdf..203c1a7465 100644 --- a/test/built-ins/GeneratorPrototype/return/from-state-executing.js +++ b/test/built-ins/GeneratorPrototype/return/from-state-executing.js @@ -37,6 +37,7 @@ features: [generators] ---*/ var iter, result; + function* g() { iter.return(42); } diff --git a/test/built-ins/GeneratorPrototype/return/from-state-suspended-start.js b/test/built-ins/GeneratorPrototype/return/from-state-suspended-start.js index b20ad0aed5..34e6eebfb7 100644 --- a/test/built-ins/GeneratorPrototype/return/from-state-suspended-start.js +++ b/test/built-ins/GeneratorPrototype/return/from-state-suspended-start.js @@ -10,6 +10,7 @@ features: [generators] ---*/ var bodyCount = 0; + function* G() { bodyCount += 1; } diff --git a/test/built-ins/GeneratorPrototype/return/this-val-not-generator.js b/test/built-ins/GeneratorPrototype/return/this-val-not-generator.js index 1af04d2996..dd0ff4b332 100644 --- a/test/built-ins/GeneratorPrototype/return/this-val-not-generator.js +++ b/test/built-ins/GeneratorPrototype/return/this-val-not-generator.js @@ -27,44 +27,60 @@ var GeneratorPrototype = Object.getPrototypeOf(g).prototype; assert.throws( TypeError, - function() { GeneratorPrototype.return.call({}); }, + function() { + GeneratorPrototype.return.call({}); + }, 'ordinary object (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.return.call({}, 1); }, + function() { + GeneratorPrototype.return.call({}, 1); + }, 'ordinary object (with value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.return.call(function() {}); }, + function() { + GeneratorPrototype.return.call(function() {}); + }, 'function object (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.return.call(function() {}, 1); }, + function() { + GeneratorPrototype.return.call(function() {}, 1); + }, 'function object (with value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.return.call(g); }, + function() { + GeneratorPrototype.return.call(g); + }, 'generator function object (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.return.call(g, 1); }, + function() { + GeneratorPrototype.return.call(g, 1); + }, 'generator function object (with value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.return.call(g.prototype); }, + function() { + GeneratorPrototype.return.call(g.prototype); + }, 'generator function prototype object (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.return.call(g.prototype, 1); }, + function() { + GeneratorPrototype.return.call(g.prototype, 1); + }, 'generator function prototype object (with value)' ); diff --git a/test/built-ins/GeneratorPrototype/return/this-val-not-object.js b/test/built-ins/GeneratorPrototype/return/this-val-not-object.js index edf0b124ed..c8431b407c 100644 --- a/test/built-ins/GeneratorPrototype/return/this-val-not-object.js +++ b/test/built-ins/GeneratorPrototype/return/this-val-not-object.js @@ -26,66 +26,90 @@ var symbol = Symbol(); assert.throws( TypeError, - function() { GeneratorPrototype.return.call(undefined); }, + function() { + GeneratorPrototype.return.call(undefined); + }, 'undefined (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.return.call(undefined, 1); }, + function() { + GeneratorPrototype.return.call(undefined, 1); + }, 'undefined (with value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.return.call(null); }, + function() { + GeneratorPrototype.return.call(null); + }, 'null (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.return.call(null, 1); }, + function() { + GeneratorPrototype.return.call(null, 1); + }, 'null (with value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.return.call(true); }, + function() { + GeneratorPrototype.return.call(true); + }, 'boolean (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.return.call(true, 1); }, + function() { + GeneratorPrototype.return.call(true, 1); + }, 'boolean (with value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.return.call('s'); }, + function() { + GeneratorPrototype.return.call('s'); + }, 'string (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.return.call('s', 1); }, + function() { + GeneratorPrototype.return.call('s', 1); + }, 'string (with value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.return.call(1); }, + function() { + GeneratorPrototype.return.call(1); + }, 'number (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.return.call(1, 1); }, + function() { + GeneratorPrototype.return.call(1, 1); + }, 'number (with value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.return.call(symbol); }, + function() { + GeneratorPrototype.return.call(symbol); + }, 'symbol (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.return.call(symbol, 1); }, + function() { + GeneratorPrototype.return.call(symbol, 1); + }, 'symbol (with value)' ); diff --git a/test/built-ins/GeneratorPrototype/return/try-catch-before-try.js b/test/built-ins/GeneratorPrototype/return/try-catch-before-try.js index f1b1bdc441..d7c40026dd 100644 --- a/test/built-ins/GeneratorPrototype/return/try-catch-before-try.js +++ b/test/built-ins/GeneratorPrototype/return/try-catch-before-try.js @@ -10,6 +10,7 @@ features: [generators] ---*/ var unreachable = 0; + function* g() { yield; try { diff --git a/test/built-ins/GeneratorPrototype/return/try-catch-following-catch.js b/test/built-ins/GeneratorPrototype/return/try-catch-following-catch.js index f354530be2..b7880cea80 100644 --- a/test/built-ins/GeneratorPrototype/return/try-catch-following-catch.js +++ b/test/built-ins/GeneratorPrototype/return/try-catch-following-catch.js @@ -11,6 +11,7 @@ features: [generators] var afterCatch = 0; var unreachable = 0; + function* g() { try { throw new Error(); diff --git a/test/built-ins/GeneratorPrototype/return/try-catch-within-catch.js b/test/built-ins/GeneratorPrototype/return/try-catch-within-catch.js index 16c9573f6c..a995017d2a 100644 --- a/test/built-ins/GeneratorPrototype/return/try-catch-within-catch.js +++ b/test/built-ins/GeneratorPrototype/return/try-catch-within-catch.js @@ -11,6 +11,7 @@ features: [generators] var inCatch = 0; var unreachable = 0; + function* g() { try { throw new Error(); diff --git a/test/built-ins/GeneratorPrototype/return/try-catch-within-try.js b/test/built-ins/GeneratorPrototype/return/try-catch-within-try.js index 3e925ba106..2d86cb3bf1 100644 --- a/test/built-ins/GeneratorPrototype/return/try-catch-within-try.js +++ b/test/built-ins/GeneratorPrototype/return/try-catch-within-try.js @@ -11,6 +11,7 @@ features: [generators] var inTry = 0; var unreachable = 0; + function* g() { try { inTry += 1; diff --git a/test/built-ins/GeneratorPrototype/return/try-finally-before-try.js b/test/built-ins/GeneratorPrototype/return/try-finally-before-try.js index 1f1522fbb8..24be6db3c5 100644 --- a/test/built-ins/GeneratorPrototype/return/try-finally-before-try.js +++ b/test/built-ins/GeneratorPrototype/return/try-finally-before-try.js @@ -10,12 +10,11 @@ features: [generators] ---*/ var unreachable = 0; + function* g() { yield; unreachable += 1; - try { - } finally { - } + try {} finally {} } var iter = g(); var result; diff --git a/test/built-ins/GeneratorPrototype/return/try-finally-following-finally.js b/test/built-ins/GeneratorPrototype/return/try-finally-following-finally.js index 9066852be2..665e968b46 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 25e1c134ea..937a0bd280 100644 --- a/test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-catch.js +++ b/test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-catch.js @@ -13,6 +13,7 @@ features: [generators] var inCatch = 0; var inFinally = 0; var unreachable = 0; + function* g() { try { try { diff --git a/test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-finally.js b/test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-finally.js index 42ff56701b..6bfef0e304 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 8cb4b6ba1e..9d8d5b6aee 100644 --- a/test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-inner-try.js +++ b/test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-inner-try.js @@ -13,6 +13,7 @@ features: [generators] var inTry = 0; var inFinally = 0; var unreachable = 0; + function* g() { try { try { diff --git a/test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-outer-try-after-nested.js b/test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-outer-try-after-nested.js index 2342f69a60..5e056c140c 100644 --- a/test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-outer-try-after-nested.js +++ b/test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-outer-try-after-nested.js @@ -13,6 +13,7 @@ features: [generators] var inCatch = 0; var inFinally = 0; var unreachable = 0; + function* g() { try { try { @@ -29,7 +30,7 @@ function* g() { var iter = g(); var result; - iter.next(); +iter.next(); assert.sameValue(inCatch, 1, '`catch` code path executed'); assert.sameValue(inFinally, 1, '`finally` code path executed'); diff --git a/test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-outer-try-before-nested.js b/test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-outer-try-before-nested.js index f97d9bb485..7121ebd779 100644 --- a/test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-outer-try-before-nested.js +++ b/test/built-ins/GeneratorPrototype/return/try-finally-nested-try-catch-within-outer-try-before-nested.js @@ -13,6 +13,7 @@ features: [generators] var inTry = 0; var inFinally = 0; var unreachable = 0; + function* g() { try { inTry += 1; diff --git a/test/built-ins/GeneratorPrototype/return/try-finally-within-finally.js b/test/built-ins/GeneratorPrototype/return/try-finally-within-finally.js index 4ea893dc34..fbec889d98 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 5b0dce6ef2..336c0389b5 100644 --- a/test/built-ins/GeneratorPrototype/return/try-finally-within-try.js +++ b/test/built-ins/GeneratorPrototype/return/try-finally-within-try.js @@ -12,6 +12,7 @@ features: [generators] var inTry = 0; var inFinally = 0; var unreachable = 0; + function* g() { try { inTry += 1; diff --git a/test/built-ins/GeneratorPrototype/throw/from-state-completed.js b/test/built-ins/GeneratorPrototype/throw/from-state-completed.js index 3d8e6cbf5d..209ab9fed5 100644 --- a/test/built-ins/GeneratorPrototype/throw/from-state-completed.js +++ b/test/built-ins/GeneratorPrototype/throw/from-state-completed.js @@ -9,13 +9,16 @@ features: [generators] ---*/ function E() {} + function* G() {} var iter; iter = G(); iter.next(); -assert.throws(E, function() { iter.throw(new E()); }); +assert.throws(E, function() { + iter.throw(new E()); +}); var result = iter.next(); diff --git a/test/built-ins/GeneratorPrototype/throw/from-state-executing.js b/test/built-ins/GeneratorPrototype/throw/from-state-executing.js index 2af2f73ab3..df1601517a 100644 --- a/test/built-ins/GeneratorPrototype/throw/from-state-executing.js +++ b/test/built-ins/GeneratorPrototype/throw/from-state-executing.js @@ -37,6 +37,7 @@ features: [generators] ---*/ var iter, result; + function* g() { iter.throw(42); } diff --git a/test/built-ins/GeneratorPrototype/throw/from-state-suspended-start.js b/test/built-ins/GeneratorPrototype/throw/from-state-suspended-start.js index 53d44904e5..3bf6296c35 100644 --- a/test/built-ins/GeneratorPrototype/throw/from-state-suspended-start.js +++ b/test/built-ins/GeneratorPrototype/throw/from-state-suspended-start.js @@ -10,6 +10,7 @@ features: [generators] ---*/ function E() {} + function* G() { yield 1; yield 2; @@ -17,7 +18,9 @@ function* G() { var iter; iter = G(); -assert.throws(E, function() { iter.throw(new E()); }); +assert.throws(E, function() { + iter.throw(new E()); +}); var result = iter.next(); diff --git a/test/built-ins/GeneratorPrototype/throw/this-val-not-generator.js b/test/built-ins/GeneratorPrototype/throw/this-val-not-generator.js index 8667ad8979..fae6fe7b75 100644 --- a/test/built-ins/GeneratorPrototype/throw/this-val-not-generator.js +++ b/test/built-ins/GeneratorPrototype/throw/this-val-not-generator.js @@ -27,44 +27,60 @@ var GeneratorPrototype = Object.getPrototypeOf(g).prototype; assert.throws( TypeError, - function() { GeneratorPrototype.throw.call({}); }, + function() { + GeneratorPrototype.throw.call({}); + }, 'ordinary object (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.throw.call({}, 1); }, + function() { + GeneratorPrototype.throw.call({}, 1); + }, 'ordinary object (with value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.throw.call(function() {}); }, + function() { + GeneratorPrototype.throw.call(function() {}); + }, 'function object (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.throw.call(function() {}, 1); }, + function() { + GeneratorPrototype.throw.call(function() {}, 1); + }, 'function object (with value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.throw.call(g); }, + function() { + GeneratorPrototype.throw.call(g); + }, 'generator function object (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.throw.call(g, 1); }, + function() { + GeneratorPrototype.throw.call(g, 1); + }, 'generator function object (with value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.throw.call(g.prototype); }, + function() { + GeneratorPrototype.throw.call(g.prototype); + }, 'generator function prototype object (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.throw.call(g.prototype, 1); }, + function() { + GeneratorPrototype.throw.call(g.prototype, 1); + }, 'generator function prototype object (with value)' ); diff --git a/test/built-ins/GeneratorPrototype/throw/this-val-not-object.js b/test/built-ins/GeneratorPrototype/throw/this-val-not-object.js index 8b4d342be2..8122f2b382 100644 --- a/test/built-ins/GeneratorPrototype/throw/this-val-not-object.js +++ b/test/built-ins/GeneratorPrototype/throw/this-val-not-object.js @@ -26,66 +26,90 @@ var symbol = Symbol(); assert.throws( TypeError, - function() { GeneratorPrototype.throw.call(undefined); }, + function() { + GeneratorPrototype.throw.call(undefined); + }, 'undefined (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.throw.call(undefined, 1); }, + function() { + GeneratorPrototype.throw.call(undefined, 1); + }, 'undefined (with value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.throw.call(null); }, + function() { + GeneratorPrototype.throw.call(null); + }, 'null (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.throw.call(null, 1); }, + function() { + GeneratorPrototype.throw.call(null, 1); + }, 'null (with value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.throw.call(true); }, + function() { + GeneratorPrototype.throw.call(true); + }, 'boolean (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.throw.call(true, 1); }, + function() { + GeneratorPrototype.throw.call(true, 1); + }, 'boolean (with value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.throw.call('s'); }, + function() { + GeneratorPrototype.throw.call('s'); + }, 'string (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.throw.call('s', 1); }, + function() { + GeneratorPrototype.throw.call('s', 1); + }, 'string (with value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.throw.call(1); }, + function() { + GeneratorPrototype.throw.call(1); + }, 'number (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.throw.call(1, 1); }, + function() { + GeneratorPrototype.throw.call(1, 1); + }, 'number (with value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.throw.call(symbol); }, + function() { + GeneratorPrototype.throw.call(symbol); + }, 'symbol (without value)' ); assert.throws( TypeError, - function() { GeneratorPrototype.throw.call(symbol, 1); }, + function() { + GeneratorPrototype.throw.call(symbol, 1); + }, 'symbol (with value)' ); diff --git a/test/built-ins/GeneratorPrototype/throw/try-catch-before-try.js b/test/built-ins/GeneratorPrototype/throw/try-catch-before-try.js index bfd3086c7a..bc2707e5c8 100644 --- a/test/built-ins/GeneratorPrototype/throw/try-catch-before-try.js +++ b/test/built-ins/GeneratorPrototype/throw/try-catch-before-try.js @@ -10,6 +10,7 @@ features: [generators] ---*/ var unreachable = 0; + function* g() { yield 1; unreachable += 1; @@ -31,7 +32,9 @@ assert.sameValue( unreachable, 0, 'statement following `yield` not executed (paused at yield)' ); -assert.throws(Test262Error, function() { iter.throw(new Test262Error()); }); +assert.throws(Test262Error, function() { + iter.throw(new Test262Error()); +}); assert.sameValue( unreachable, diff --git a/test/built-ins/GeneratorPrototype/throw/try-catch-following-catch.js b/test/built-ins/GeneratorPrototype/throw/try-catch-following-catch.js index 1e69125421..1866ad20dc 100644 --- a/test/built-ins/GeneratorPrototype/throw/try-catch-following-catch.js +++ b/test/built-ins/GeneratorPrototype/throw/try-catch-following-catch.js @@ -11,6 +11,7 @@ features: [generators] var obj = {}; var unreachable = 0; + function* g() { yield 1; try { @@ -41,7 +42,9 @@ result = iter.next(); assert.sameValue(result.value, 3, 'Fourth result `value`'); assert.sameValue(result.done, false, 'Fourth result `done` flag'); -assert.throws(Test262Error, function() { iter.throw(new Test262Error()); }); +assert.throws(Test262Error, function() { + iter.throw(new Test262Error()); +}); assert.sameValue( unreachable, diff --git a/test/built-ins/GeneratorPrototype/throw/try-catch-within-catch.js b/test/built-ins/GeneratorPrototype/throw/try-catch-within-catch.js index 176b4cc412..9370044287 100644 --- a/test/built-ins/GeneratorPrototype/throw/try-catch-within-catch.js +++ b/test/built-ins/GeneratorPrototype/throw/try-catch-within-catch.js @@ -10,6 +10,7 @@ features: [generators] ---*/ var unreachable = 0; + function* g() { yield 1; try { @@ -38,7 +39,9 @@ result = iter.next(); assert.sameValue(result.value, exception, 'Third result `value`'); assert.sameValue(result.done, false, 'Third result `done` flag'); -assert.throws(Test262Error, function() { iter.throw(new Test262Error()); }); +assert.throws(Test262Error, function() { + iter.throw(new Test262Error()); +}); assert.sameValue( unreachable, diff --git a/test/built-ins/GeneratorPrototype/throw/try-catch-within-try.js b/test/built-ins/GeneratorPrototype/throw/try-catch-within-try.js index af352ae29b..e63430ce6c 100644 --- a/test/built-ins/GeneratorPrototype/throw/try-catch-within-try.js +++ b/test/built-ins/GeneratorPrototype/throw/try-catch-within-try.js @@ -10,6 +10,7 @@ features: [generators] ---*/ var unreachable = 0; + function* g() { yield 1; try { diff --git a/test/built-ins/GeneratorPrototype/throw/try-finally-before-try.js b/test/built-ins/GeneratorPrototype/throw/try-finally-before-try.js index 4ecd883b9b..daad602d03 100644 --- a/test/built-ins/GeneratorPrototype/throw/try-finally-before-try.js +++ b/test/built-ins/GeneratorPrototype/throw/try-finally-before-try.js @@ -10,6 +10,7 @@ features: [generators] ---*/ var unreachable = 0; + function* g() { yield 1; unreachable += 1; @@ -33,7 +34,9 @@ assert.sameValue( unreachable, 0, 'statement following `yield` not executed (paused at yield)' ); -assert.throws(Test262Error, function() { iter.throw(new Test262Error()); }); +assert.throws(Test262Error, function() { + iter.throw(new Test262Error()); +}); assert.sameValue( unreachable, @@ -45,7 +48,7 @@ result = iter.next(); assert.sameValue( result.value, undefined, 'Result `value` is undefined when done' ); -assert.sameValue( result.done, true, 'Result `done` flag is `true` when done'); +assert.sameValue(result.done, true, 'Result `done` flag is `true` when done'); assert.sameValue( unreachable, 0, 'statement following `yield` not executed (once "completed")' ); diff --git a/test/built-ins/GeneratorPrototype/throw/try-finally-following-finally.js b/test/built-ins/GeneratorPrototype/throw/try-finally-following-finally.js index fdc9fa55d2..aac9dd1309 100644 --- a/test/built-ins/GeneratorPrototype/throw/try-finally-following-finally.js +++ b/test/built-ins/GeneratorPrototype/throw/try-finally-following-finally.js @@ -10,6 +10,7 @@ features: [generators] ---*/ var unreachable = 0; + function* g() { yield 1; try { @@ -39,7 +40,9 @@ result = iter.next(); assert.sameValue(result.value, 4, 'Third result `value`'); assert.sameValue(result.done, false, 'Third result `done` flag'); -assert.throws(Test262Error, function() { iter.throw(new Test262Error()); }); +assert.throws(Test262Error, function() { + iter.throw(new Test262Error()); +}); assert.sameValue( unreachable, diff --git a/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-catch.js b/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-catch.js index c69d12f424..16c78fe313 100644 --- a/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-catch.js +++ b/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-catch.js @@ -11,6 +11,7 @@ features: [generators] ---*/ var unreachable = 0; + function* g() { try { yield 1; @@ -47,7 +48,9 @@ result = iter.throw(new Test262Error()); assert.sameValue(result.value, 4, 'Fourth result `value`'); assert.sameValue(result.done, false, 'Fourth result `done` flag'); -assert.throws(Test262Error, function() { iter.next(); }); +assert.throws(Test262Error, function() { + iter.next(); +}); assert.sameValue( unreachable, diff --git a/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-finally.js b/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-finally.js index 8c5392ea7a..eb691f39ce 100644 --- a/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-finally.js +++ b/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-finally.js @@ -10,6 +10,7 @@ features: [generators] ---*/ var unreachable = 0; + function* g() { try { yield 1; @@ -38,7 +39,9 @@ result = iter.next(); assert.sameValue(result.value, 4, 'Second result `value`'); assert.sameValue(result.done, false, 'First result `done` flag'); -assert.throws(Test262Error, function() { iter.throw(new Test262Error()); }); +assert.throws(Test262Error, function() { + iter.throw(new Test262Error()); +}); assert.sameValue( unreachable, diff --git a/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-inner-try.js b/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-inner-try.js index 6b0ae2647a..20c833b456 100644 --- a/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-inner-try.js +++ b/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-inner-try.js @@ -11,6 +11,7 @@ features: [generators] ---*/ var unreachable = 0; + function* g() { try { yield 1; diff --git a/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-outer-try-after-nested.js b/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-outer-try-after-nested.js index 93c9cbad5e..cb1c4318b4 100644 --- a/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-outer-try-after-nested.js +++ b/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-outer-try-after-nested.js @@ -11,6 +11,7 @@ features: [generators] ---*/ var unreachable = 0; + function* g() { try { yield 1; @@ -57,7 +58,9 @@ assert.sameValue( 'statement following `yield` not executed (following `throw`)' ); -assert.throws(Test262Error, function() { iter.next(); }); +assert.throws(Test262Error, function() { + iter.next(); +}); result = iter.next(); assert.sameValue( diff --git a/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-outer-try-before-nested.js b/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-outer-try-before-nested.js index 942234e3cc..5ce3a05164 100644 --- a/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-outer-try-before-nested.js +++ b/test/built-ins/GeneratorPrototype/throw/try-finally-nested-try-catch-within-outer-try-before-nested.js @@ -11,6 +11,7 @@ features: [generators] ---*/ var unreachable = 0; + function* g() { try { yield 1; @@ -43,7 +44,9 @@ assert.sameValue( 'statement following `yield` not executed (following `throw`)' ); -assert.throws(Test262Error, function() { iter.next(); }); +assert.throws(Test262Error, function() { + iter.next(); +}); result = iter.next(); assert.sameValue( diff --git a/test/built-ins/GeneratorPrototype/throw/try-finally-within-finally.js b/test/built-ins/GeneratorPrototype/throw/try-finally-within-finally.js index 8a83967c56..6289871167 100644 --- a/test/built-ins/GeneratorPrototype/throw/try-finally-within-finally.js +++ b/test/built-ins/GeneratorPrototype/throw/try-finally-within-finally.js @@ -10,6 +10,7 @@ features: [generators] ---*/ var unreachable = 0; + function* g() { yield 1; try { @@ -35,7 +36,9 @@ result = iter.next(); assert.sameValue(result.value, 3, 'Third result `value`'); assert.sameValue(result.done, false, 'Third result `done` flag'); -assert.throws(Test262Error, function() { iter.throw(new Test262Error()); }); +assert.throws(Test262Error, function() { + iter.throw(new Test262Error()); +}); assert.sameValue( unreachable, diff --git a/test/built-ins/GeneratorPrototype/throw/try-finally-within-try.js b/test/built-ins/GeneratorPrototype/throw/try-finally-within-try.js index 19764d8b7b..91105b8b70 100644 --- a/test/built-ins/GeneratorPrototype/throw/try-finally-within-try.js +++ b/test/built-ins/GeneratorPrototype/throw/try-finally-within-try.js @@ -10,6 +10,7 @@ features: [generators] ---*/ var unreachable = 0; + function* g() { yield 1; try { @@ -41,7 +42,9 @@ assert.sameValue( 'statement following `yield` not executed (following `throw`)' ); -assert.throws(Test262Error, function() { iter.next(); }); +assert.throws(Test262Error, function() { + iter.next(); +}); result = iter.next(); assert.sameValue( diff --git a/test/built-ins/Infinity/15.1.1.2-0.js b/test/built-ins/Infinity/15.1.1.2-0.js index a2e63985e2..4c713b5919 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 063168d55f..5895191bd0 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 0a64354663..1575771b24 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 d6c4093870..ea99c3061f 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 8e8433f4dd..09b1a74678 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 fe9c76f6d1..73dadfecc7 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 7dcb5975bd..1d0776cc74 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 924b54991a..5c086b5336 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 4a511110ac..4e082c49f0 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 565dcc95b5..804c336872 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 d1bb9eecd0..6134ce18f0 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 8254a4d62a..e2e3f87e10 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 fb213cb00d..32fe772310 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 34b31816c9..879335aa18 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 e18222fd23..59aff18b63 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 cfaf7d0505..ff2889373f 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 fa7bb87b3d..d342003b96 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 e669bb290e..5deb8a5813 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 4325a2899d..3b0ccd4709 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 4c71c01a76..f42e2c7a80 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 80e533c416..7de4180597 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 b00e82b558..03684d8f56 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 cf4a5d47f1..97a669bbb3 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 d7b8a45848..6015ce7988 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 5022dcbca3..a5d434e6d4 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 9d13dbb696..da95a89e9a 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 e222184eb6..9e584f0ffb 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 d03a299208..5ba676d88d 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 e577bd6f60..d6085f0826 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 7d3cc1d3e0..2bb7779492 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 40ebfdb2fd..fe9569381d 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 068cf69fc7..de7d3f825e 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 a2a42946f1..d307ad6d0e 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 0f3c73ac11..24f298c884 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 d577d5b76b..6af5601aef 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 20f19e1b2c..0bd6dc9e9e 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 755f4578f8..819f7160fb 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 1b0a6240bb..ebd3e27be5 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 c4fb8b863c..80f4a5de68 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 2cb912b1fa..ed1db8a095 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 ab571c59f0..ae58602b3e 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 ab7ca39ccd..02b7bb72dc 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 fe3686849c..fbcb3aa466 100644 --- a/test/built-ins/JSON/parse/revived-proxy.js +++ b/test/built-ins/JSON/parse/revived-proxy.js @@ -35,7 +35,10 @@ info: | features: [Proxy] ---*/ -var objectProxy = new Proxy({ length: 0, other: 0 }, {}); +var objectProxy = new Proxy({ + length: 0, + other: 0 +}, {}); var arrayProxy = new Proxy([], {}); var arrayProxyProxy = new Proxy(arrayProxy, {}); var visitedOther, injectProxy; diff --git a/test/built-ins/JSON/parse/reviver-object-define-prop-err.js b/test/built-ins/JSON/parse/reviver-object-define-prop-err.js index c42cff0a67..d62dbaf894 100644 --- a/test/built-ins/JSON/parse/reviver-object-define-prop-err.js +++ b/test/built-ins/JSON/parse/reviver-object-define-prop-err.js @@ -30,7 +30,9 @@ info: | features: [Proxy] ---*/ -var badDefine = new Proxy({ 0: null }, { +var badDefine = new Proxy({ + 0: null +}, { defineProperty: function() { throw new Test262Error(); } diff --git a/test/built-ins/JSON/parse/reviver-object-delete-err.js b/test/built-ins/JSON/parse/reviver-object-delete-err.js index d596d4e277..edded21fa7 100644 --- a/test/built-ins/JSON/parse/reviver-object-delete-err.js +++ b/test/built-ins/JSON/parse/reviver-object-delete-err.js @@ -28,7 +28,9 @@ info: | features: [Proxy] ---*/ -var badDelete = new Proxy({ a: 1 }, { +var badDelete = new Proxy({ + a: 1 +}, { deleteProperty: function() { throw new Test262Error(); } diff --git a/test/built-ins/JSON/stringify/15.12.3-0-1.js b/test/built-ins/JSON/stringify/15.12.3-0-1.js index c79c6f0265..5cc4240c7d 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 3f5fe1ec08..08e864d0c8 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 d8a575973a..76e41ffb8a 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 f151731964..c59045ebb0 100644 --- a/test/built-ins/JSON/stringify/15.12.3-11-10.js +++ b/test/built-ins/JSON/stringify/15.12.3-11-10.js @@ -8,4 +8,6 @@ description: > value can return undefined. ---*/ -assert.sameValue(JSON.stringify(42, function(k, v) { return undefined }), undefined, 'JSON.stringify(42, function(k, v) { return undefined })'); +assert.sameValue(JSON.stringify(42, function(k, v) { + return undefined +}), undefined, 'JSON.stringify(42, function(k, v) { return undefined })'); diff --git a/test/built-ins/JSON/stringify/15.12.3-11-11.js b/test/built-ins/JSON/stringify/15.12.3-11-11.js index da886044b9..f4da04f92c 100644 --- a/test/built-ins/JSON/stringify/15.12.3-11-11.js +++ b/test/built-ins/JSON/stringify/15.12.3-11-11.js @@ -8,4 +8,8 @@ description: > can return undefined. ---*/ -assert.sameValue(JSON.stringify({prop:1}, function(k, v) { return undefined }), undefined, 'JSON.stringify({prop:1}, function(k, v) { return undefined })'); +assert.sameValue(JSON.stringify({ + prop: 1 +}, function(k, v) { + return undefined +}), undefined, 'JSON.stringify({prop:1}, function(k, v) { return undefined })'); diff --git a/test/built-ins/JSON/stringify/15.12.3-11-12.js b/test/built-ins/JSON/stringify/15.12.3-11-12.js index 5fdfea8383..1238189a0f 100644 --- a/test/built-ins/JSON/stringify/15.12.3-11-12.js +++ b/test/built-ins/JSON/stringify/15.12.3-11-12.js @@ -8,4 +8,6 @@ description: > can return an Array. ---*/ -assert.sameValue(JSON.stringify(42, function(k, v) { return v==42 ?[4,2]:v }), '[4,2]', 'JSON.stringify(42, function(k, v) { return v==42 ?[4,2]:v })'); +assert.sameValue(JSON.stringify(42, function(k, v) { + return v == 42 ? [4, 2] : v +}), '[4,2]', 'JSON.stringify(42, function(k, v) { return v==42 ?[4,2]:v })'); diff --git a/test/built-ins/JSON/stringify/15.12.3-11-13.js b/test/built-ins/JSON/stringify/15.12.3-11-13.js index e98f671164..22b244c0b6 100644 --- a/test/built-ins/JSON/stringify/15.12.3-11-13.js +++ b/test/built-ins/JSON/stringify/15.12.3-11-13.js @@ -8,4 +8,8 @@ description: > can return an Object. ---*/ -assert.sameValue(JSON.stringify(42, function(k, v) { return v==42 ? {forty:2}: v}), '{"forty":2}', 'JSON.stringify(42, function(k, v) { return v==42 ? {forty:2}: v})'); +assert.sameValue(JSON.stringify(42, function(k, v) { + return v == 42 ? { + forty: 2 + } : v +}), '{"forty":2}', 'JSON.stringify(42, function(k, v) { return v==42 ? {forty:2}: v})'); diff --git a/test/built-ins/JSON/stringify/15.12.3-11-15.js b/test/built-ins/JSON/stringify/15.12.3-11-15.js index d2cb931914..5a4b35c96e 100644 --- a/test/built-ins/JSON/stringify/15.12.3-11-15.js +++ b/test/built-ins/JSON/stringify/15.12.3-11-15.js @@ -8,4 +8,6 @@ description: > returns the replacer value. ---*/ -assert.sameValue(JSON.stringify(function() {}, function(k,v) {return 99}), '99', 'JSON.stringify(function() {}, function(k,v) {return 99})'); +assert.sameValue(JSON.stringify(function() {}, function(k, v) { + return 99 +}), '99', 'JSON.stringify(function() {}, function(k,v) {return 99})'); diff --git a/test/built-ins/JSON/stringify/15.12.3-11-16.js b/test/built-ins/JSON/stringify/15.12.3-11-16.js index e9d92d5c2d..23f89c2f9c 100644 --- a/test/built-ins/JSON/stringify/15.12.3-11-16.js +++ b/test/built-ins/JSON/stringify/15.12.3-11-16.js @@ -9,46 +9,48 @@ description: > step 2.c) ---*/ - var result = true; +var result = true; - var expectedNullChars = new Array(); - expectedNullChars[0] = "\\u0000"; - expectedNullChars[1] = "\\u0001"; - expectedNullChars[2] = "\\u0002"; - expectedNullChars[3] = "\\u0003"; - expectedNullChars[4] = "\\u0004"; - expectedNullChars[5] = "\\u0005"; - expectedNullChars[6] = "\\u0006"; - expectedNullChars[7] = "\\u0007"; - expectedNullChars[8] = "\\b"; - expectedNullChars[9] = "\\t"; - expectedNullChars[10] = "\\n"; - expectedNullChars[11] = "\\u000b"; - expectedNullChars[12] = "\\f"; - expectedNullChars[13] = "\\r"; - expectedNullChars[14] = "\\u000e"; - expectedNullChars[15] = "\\u000f"; - expectedNullChars[16] = "\\u0010"; - expectedNullChars[17] = "\\u0011"; - expectedNullChars[18] = "\\u0012"; - expectedNullChars[19] = "\\u0013"; - expectedNullChars[20] = "\\u0014"; - expectedNullChars[21] = "\\u0015"; - expectedNullChars[22] = "\\u0016"; - expectedNullChars[23] = "\\u0017"; - expectedNullChars[24] = "\\u0018"; - expectedNullChars[25] = "\\u0019"; - expectedNullChars[26] = "\\u001a"; - expectedNullChars[27] = "\\u001b"; - expectedNullChars[28] = "\\u001c"; - expectedNullChars[29] = "\\u001d"; - expectedNullChars[30] = "\\u001e"; - expectedNullChars[31] = "\\u001f"; +var expectedNullChars = new Array(); +expectedNullChars[0] = "\\u0000"; +expectedNullChars[1] = "\\u0001"; +expectedNullChars[2] = "\\u0002"; +expectedNullChars[3] = "\\u0003"; +expectedNullChars[4] = "\\u0004"; +expectedNullChars[5] = "\\u0005"; +expectedNullChars[6] = "\\u0006"; +expectedNullChars[7] = "\\u0007"; +expectedNullChars[8] = "\\b"; +expectedNullChars[9] = "\\t"; +expectedNullChars[10] = "\\n"; +expectedNullChars[11] = "\\u000b"; +expectedNullChars[12] = "\\f"; +expectedNullChars[13] = "\\r"; +expectedNullChars[14] = "\\u000e"; +expectedNullChars[15] = "\\u000f"; +expectedNullChars[16] = "\\u0010"; +expectedNullChars[17] = "\\u0011"; +expectedNullChars[18] = "\\u0012"; +expectedNullChars[19] = "\\u0013"; +expectedNullChars[20] = "\\u0014"; +expectedNullChars[21] = "\\u0015"; +expectedNullChars[22] = "\\u0016"; +expectedNullChars[23] = "\\u0017"; +expectedNullChars[24] = "\\u0018"; +expectedNullChars[25] = "\\u0019"; +expectedNullChars[26] = "\\u001a"; +expectedNullChars[27] = "\\u001b"; +expectedNullChars[28] = "\\u001c"; +expectedNullChars[29] = "\\u001d"; +expectedNullChars[30] = "\\u001e"; +expectedNullChars[31] = "\\u001f"; - for (var index in expectedNullChars) { +for (var index in expectedNullChars) { - var str = JSON.stringify({ "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F": "John" }); - result = (result && str.indexOf(expectedNullChars[index]) !== -1); - } + var str = JSON.stringify({ + "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F": "John" + }); + result = (result && str.indexOf(expectedNullChars[index]) !== -1); +} assert(result, 'result !== true'); diff --git a/test/built-ins/JSON/stringify/15.12.3-11-17.js b/test/built-ins/JSON/stringify/15.12.3-11-17.js index fe8a268b6f..9723236294 100644 --- a/test/built-ins/JSON/stringify/15.12.3-11-17.js +++ b/test/built-ins/JSON/stringify/15.12.3-11-17.js @@ -9,46 +9,48 @@ description: > Quote(value) step 2.c) ---*/ - var result = true; +var result = true; - var expectedNullChars = new Array(); - expectedNullChars[0] = "\\u0000"; - expectedNullChars[1] = "\\u0001"; - expectedNullChars[2] = "\\u0002"; - expectedNullChars[3] = "\\u0003"; - expectedNullChars[4] = "\\u0004"; - expectedNullChars[5] = "\\u0005"; - expectedNullChars[6] = "\\u0006"; - expectedNullChars[7] = "\\u0007"; - expectedNullChars[8] = "\\b"; - expectedNullChars[9] = "\\t"; - expectedNullChars[10] = "\\n"; - expectedNullChars[11] = "\\u000b"; - expectedNullChars[12] = "\\f"; - expectedNullChars[13] = "\\r"; - expectedNullChars[14] = "\\u000e"; - expectedNullChars[15] = "\\u000f"; - expectedNullChars[16] = "\\u0010"; - expectedNullChars[17] = "\\u0011"; - expectedNullChars[18] = "\\u0012"; - expectedNullChars[19] = "\\u0013"; - expectedNullChars[20] = "\\u0014"; - expectedNullChars[21] = "\\u0015"; - expectedNullChars[22] = "\\u0016"; - expectedNullChars[23] = "\\u0017"; - expectedNullChars[24] = "\\u0018"; - expectedNullChars[25] = "\\u0019"; - expectedNullChars[26] = "\\u001a"; - expectedNullChars[27] = "\\u001b"; - expectedNullChars[28] = "\\u001c"; - expectedNullChars[29] = "\\u001d"; - expectedNullChars[30] = "\\u001e"; - expectedNullChars[31] = "\\u001f"; +var expectedNullChars = new Array(); +expectedNullChars[0] = "\\u0000"; +expectedNullChars[1] = "\\u0001"; +expectedNullChars[2] = "\\u0002"; +expectedNullChars[3] = "\\u0003"; +expectedNullChars[4] = "\\u0004"; +expectedNullChars[5] = "\\u0005"; +expectedNullChars[6] = "\\u0006"; +expectedNullChars[7] = "\\u0007"; +expectedNullChars[8] = "\\b"; +expectedNullChars[9] = "\\t"; +expectedNullChars[10] = "\\n"; +expectedNullChars[11] = "\\u000b"; +expectedNullChars[12] = "\\f"; +expectedNullChars[13] = "\\r"; +expectedNullChars[14] = "\\u000e"; +expectedNullChars[15] = "\\u000f"; +expectedNullChars[16] = "\\u0010"; +expectedNullChars[17] = "\\u0011"; +expectedNullChars[18] = "\\u0012"; +expectedNullChars[19] = "\\u0013"; +expectedNullChars[20] = "\\u0014"; +expectedNullChars[21] = "\\u0015"; +expectedNullChars[22] = "\\u0016"; +expectedNullChars[23] = "\\u0017"; +expectedNullChars[24] = "\\u0018"; +expectedNullChars[25] = "\\u0019"; +expectedNullChars[26] = "\\u001a"; +expectedNullChars[27] = "\\u001b"; +expectedNullChars[28] = "\\u001c"; +expectedNullChars[29] = "\\u001d"; +expectedNullChars[30] = "\\u001e"; +expectedNullChars[31] = "\\u001f"; - for (var index in expectedNullChars) { +for (var index in expectedNullChars) { - var str = JSON.stringify({ "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001Fname": "John" }); - result = (result && str.indexOf(expectedNullChars[index]) !== -1); - } + var str = JSON.stringify({ + "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001Fname": "John" + }); + result = (result && str.indexOf(expectedNullChars[index]) !== -1); +} assert(result, 'result !== true'); diff --git a/test/built-ins/JSON/stringify/15.12.3-11-18.js b/test/built-ins/JSON/stringify/15.12.3-11-18.js index 721fe41e3c..6766a4e199 100644 --- a/test/built-ins/JSON/stringify/15.12.3-11-18.js +++ b/test/built-ins/JSON/stringify/15.12.3-11-18.js @@ -9,46 +9,48 @@ description: > Quote(value) step 2.c) ---*/ - var result = true; +var result = true; - var expectedNullChars = new Array(); - expectedNullChars[0] = "\\u0000"; - expectedNullChars[1] = "\\u0001"; - expectedNullChars[2] = "\\u0002"; - expectedNullChars[3] = "\\u0003"; - expectedNullChars[4] = "\\u0004"; - expectedNullChars[5] = "\\u0005"; - expectedNullChars[6] = "\\u0006"; - expectedNullChars[7] = "\\u0007"; - expectedNullChars[8] = "\\b"; - expectedNullChars[9] = "\\t"; - expectedNullChars[10] = "\\n"; - expectedNullChars[11] = "\\u000b"; - expectedNullChars[12] = "\\f"; - expectedNullChars[13] = "\\r"; - expectedNullChars[14] = "\\u000e"; - expectedNullChars[15] = "\\u000f"; - expectedNullChars[16] = "\\u0010"; - expectedNullChars[17] = "\\u0011"; - expectedNullChars[18] = "\\u0012"; - expectedNullChars[19] = "\\u0013"; - expectedNullChars[20] = "\\u0014"; - expectedNullChars[21] = "\\u0015"; - expectedNullChars[22] = "\\u0016"; - expectedNullChars[23] = "\\u0017"; - expectedNullChars[24] = "\\u0018"; - expectedNullChars[25] = "\\u0019"; - expectedNullChars[26] = "\\u001a"; - expectedNullChars[27] = "\\u001b"; - expectedNullChars[28] = "\\u001c"; - expectedNullChars[29] = "\\u001d"; - expectedNullChars[30] = "\\u001e"; - expectedNullChars[31] = "\\u001f"; +var expectedNullChars = new Array(); +expectedNullChars[0] = "\\u0000"; +expectedNullChars[1] = "\\u0001"; +expectedNullChars[2] = "\\u0002"; +expectedNullChars[3] = "\\u0003"; +expectedNullChars[4] = "\\u0004"; +expectedNullChars[5] = "\\u0005"; +expectedNullChars[6] = "\\u0006"; +expectedNullChars[7] = "\\u0007"; +expectedNullChars[8] = "\\b"; +expectedNullChars[9] = "\\t"; +expectedNullChars[10] = "\\n"; +expectedNullChars[11] = "\\u000b"; +expectedNullChars[12] = "\\f"; +expectedNullChars[13] = "\\r"; +expectedNullChars[14] = "\\u000e"; +expectedNullChars[15] = "\\u000f"; +expectedNullChars[16] = "\\u0010"; +expectedNullChars[17] = "\\u0011"; +expectedNullChars[18] = "\\u0012"; +expectedNullChars[19] = "\\u0013"; +expectedNullChars[20] = "\\u0014"; +expectedNullChars[21] = "\\u0015"; +expectedNullChars[22] = "\\u0016"; +expectedNullChars[23] = "\\u0017"; +expectedNullChars[24] = "\\u0018"; +expectedNullChars[25] = "\\u0019"; +expectedNullChars[26] = "\\u001a"; +expectedNullChars[27] = "\\u001b"; +expectedNullChars[28] = "\\u001c"; +expectedNullChars[29] = "\\u001d"; +expectedNullChars[30] = "\\u001e"; +expectedNullChars[31] = "\\u001f"; - for (var index in expectedNullChars) { +for (var index in expectedNullChars) { - var str = JSON.stringify({ "name\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F": "John" }); - result = (result && str.indexOf(expectedNullChars[index]) !== -1); - } + var str = JSON.stringify({ + "name\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F": "John" + }); + result = (result && str.indexOf(expectedNullChars[index]) !== -1); +} assert(result, 'result !== true'); diff --git a/test/built-ins/JSON/stringify/15.12.3-11-19.js b/test/built-ins/JSON/stringify/15.12.3-11-19.js index c372e890f4..052e394f27 100644 --- a/test/built-ins/JSON/stringify/15.12.3-11-19.js +++ b/test/built-ins/JSON/stringify/15.12.3-11-19.js @@ -9,46 +9,48 @@ description: > operation Quote(value) step 2.c) ---*/ - var result = true; +var result = true; - var expectedNullChars = new Array(); - expectedNullChars[0] = "\\u0000"; - expectedNullChars[1] = "\\u0001"; - expectedNullChars[2] = "\\u0002"; - expectedNullChars[3] = "\\u0003"; - expectedNullChars[4] = "\\u0004"; - expectedNullChars[5] = "\\u0005"; - expectedNullChars[6] = "\\u0006"; - expectedNullChars[7] = "\\u0007"; - expectedNullChars[8] = "\\b"; - expectedNullChars[9] = "\\t"; - expectedNullChars[10] = "\\n"; - expectedNullChars[11] = "\\u000b"; - expectedNullChars[12] = "\\f"; - expectedNullChars[13] = "\\r"; - expectedNullChars[14] = "\\u000e"; - expectedNullChars[15] = "\\u000f"; - expectedNullChars[16] = "\\u0010"; - expectedNullChars[17] = "\\u0011"; - expectedNullChars[18] = "\\u0012"; - expectedNullChars[19] = "\\u0013"; - expectedNullChars[20] = "\\u0014"; - expectedNullChars[21] = "\\u0015"; - expectedNullChars[22] = "\\u0016"; - expectedNullChars[23] = "\\u0017"; - expectedNullChars[24] = "\\u0018"; - expectedNullChars[25] = "\\u0019"; - expectedNullChars[26] = "\\u001a"; - expectedNullChars[27] = "\\u001b"; - expectedNullChars[28] = "\\u001c"; - expectedNullChars[29] = "\\u001d"; - expectedNullChars[30] = "\\u001e"; - expectedNullChars[31] = "\\u001f"; +var expectedNullChars = new Array(); +expectedNullChars[0] = "\\u0000"; +expectedNullChars[1] = "\\u0001"; +expectedNullChars[2] = "\\u0002"; +expectedNullChars[3] = "\\u0003"; +expectedNullChars[4] = "\\u0004"; +expectedNullChars[5] = "\\u0005"; +expectedNullChars[6] = "\\u0006"; +expectedNullChars[7] = "\\u0007"; +expectedNullChars[8] = "\\b"; +expectedNullChars[9] = "\\t"; +expectedNullChars[10] = "\\n"; +expectedNullChars[11] = "\\u000b"; +expectedNullChars[12] = "\\f"; +expectedNullChars[13] = "\\r"; +expectedNullChars[14] = "\\u000e"; +expectedNullChars[15] = "\\u000f"; +expectedNullChars[16] = "\\u0010"; +expectedNullChars[17] = "\\u0011"; +expectedNullChars[18] = "\\u0012"; +expectedNullChars[19] = "\\u0013"; +expectedNullChars[20] = "\\u0014"; +expectedNullChars[21] = "\\u0015"; +expectedNullChars[22] = "\\u0016"; +expectedNullChars[23] = "\\u0017"; +expectedNullChars[24] = "\\u0018"; +expectedNullChars[25] = "\\u0019"; +expectedNullChars[26] = "\\u001a"; +expectedNullChars[27] = "\\u001b"; +expectedNullChars[28] = "\\u001c"; +expectedNullChars[29] = "\\u001d"; +expectedNullChars[30] = "\\u001e"; +expectedNullChars[31] = "\\u001f"; - for (var index in expectedNullChars) { +for (var index in expectedNullChars) { - var str = JSON.stringify({ "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001Fname\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F": "John" }); - result = (result && str.indexOf(expectedNullChars[index]) !== -1 && str.indexOf(expectedNullChars[index]) !== -1); - } + var str = JSON.stringify({ + "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001Fname\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F": "John" + }); + result = (result && str.indexOf(expectedNullChars[index]) !== -1 && str.indexOf(expectedNullChars[index]) !== -1); +} assert(result, 'result !== true'); diff --git a/test/built-ins/JSON/stringify/15.12.3-11-2.js b/test/built-ins/JSON/stringify/15.12.3-11-2.js index f6dc5e8622..adc1c36c88 100644 --- a/test/built-ins/JSON/stringify/15.12.3-11-2.js +++ b/test/built-ins/JSON/stringify/15.12.3-11-2.js @@ -8,4 +8,6 @@ description: > undefined value. ---*/ -assert.sameValue(JSON.stringify(undefined, function(k, v) { return "replacement" }), '"replacement"', 'JSON.stringify(undefined, function(k, v) { return "replacement" })'); +assert.sameValue(JSON.stringify(undefined, function(k, v) { + return "replacement" +}), '"replacement"', 'JSON.stringify(undefined, function(k, v) { return "replacement" })'); diff --git a/test/built-ins/JSON/stringify/15.12.3-11-20.js b/test/built-ins/JSON/stringify/15.12.3-11-20.js index 6b7c2e6f4f..8c9bc27838 100644 --- a/test/built-ins/JSON/stringify/15.12.3-11-20.js +++ b/test/built-ins/JSON/stringify/15.12.3-11-20.js @@ -9,46 +9,48 @@ description: > operation Quote(value) step 2.c) ---*/ - var result = true; +var result = true; - var expectedNullChars = new Array(); - expectedNullChars[0] = "\\u0000"; - expectedNullChars[1] = "\\u0001"; - expectedNullChars[2] = "\\u0002"; - expectedNullChars[3] = "\\u0003"; - expectedNullChars[4] = "\\u0004"; - expectedNullChars[5] = "\\u0005"; - expectedNullChars[6] = "\\u0006"; - expectedNullChars[7] = "\\u0007"; - expectedNullChars[8] = "\\b"; - expectedNullChars[9] = "\\t"; - expectedNullChars[10] = "\\n"; - expectedNullChars[11] = "\\u000b"; - expectedNullChars[12] = "\\f"; - expectedNullChars[13] = "\\r"; - expectedNullChars[14] = "\\u000e"; - expectedNullChars[15] = "\\u000f"; - expectedNullChars[16] = "\\u0010"; - expectedNullChars[17] = "\\u0011"; - expectedNullChars[18] = "\\u0012"; - expectedNullChars[19] = "\\u0013"; - expectedNullChars[20] = "\\u0014"; - expectedNullChars[21] = "\\u0015"; - expectedNullChars[22] = "\\u0016"; - expectedNullChars[23] = "\\u0017"; - expectedNullChars[24] = "\\u0018"; - expectedNullChars[25] = "\\u0019"; - expectedNullChars[26] = "\\u001a"; - expectedNullChars[27] = "\\u001b"; - expectedNullChars[28] = "\\u001c"; - expectedNullChars[29] = "\\u001d"; - expectedNullChars[30] = "\\u001e"; - expectedNullChars[31] = "\\u001f"; +var expectedNullChars = new Array(); +expectedNullChars[0] = "\\u0000"; +expectedNullChars[1] = "\\u0001"; +expectedNullChars[2] = "\\u0002"; +expectedNullChars[3] = "\\u0003"; +expectedNullChars[4] = "\\u0004"; +expectedNullChars[5] = "\\u0005"; +expectedNullChars[6] = "\\u0006"; +expectedNullChars[7] = "\\u0007"; +expectedNullChars[8] = "\\b"; +expectedNullChars[9] = "\\t"; +expectedNullChars[10] = "\\n"; +expectedNullChars[11] = "\\u000b"; +expectedNullChars[12] = "\\f"; +expectedNullChars[13] = "\\r"; +expectedNullChars[14] = "\\u000e"; +expectedNullChars[15] = "\\u000f"; +expectedNullChars[16] = "\\u0010"; +expectedNullChars[17] = "\\u0011"; +expectedNullChars[18] = "\\u0012"; +expectedNullChars[19] = "\\u0013"; +expectedNullChars[20] = "\\u0014"; +expectedNullChars[21] = "\\u0015"; +expectedNullChars[22] = "\\u0016"; +expectedNullChars[23] = "\\u0017"; +expectedNullChars[24] = "\\u0018"; +expectedNullChars[25] = "\\u0019"; +expectedNullChars[26] = "\\u001a"; +expectedNullChars[27] = "\\u001b"; +expectedNullChars[28] = "\\u001c"; +expectedNullChars[29] = "\\u001d"; +expectedNullChars[30] = "\\u001e"; +expectedNullChars[31] = "\\u001f"; - for (var index in expectedNullChars) { +for (var index in expectedNullChars) { - var str = JSON.stringify({ "na\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001Fme": "John" }); - result = (result && str.indexOf(expectedNullChars[index]) !== -1); - } + var str = JSON.stringify({ + "na\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001Fme": "John" + }); + result = (result && str.indexOf(expectedNullChars[index]) !== -1); +} assert(result, 'result !== true'); diff --git a/test/built-ins/JSON/stringify/15.12.3-11-21.js b/test/built-ins/JSON/stringify/15.12.3-11-21.js index e22b848cc9..ca7e598d61 100644 --- a/test/built-ins/JSON/stringify/15.12.3-11-21.js +++ b/test/built-ins/JSON/stringify/15.12.3-11-21.js @@ -9,46 +9,48 @@ description: > Quote(value) step 2.c) ---*/ - var result = true; +var result = true; - var expectedNullChars = new Array(); - expectedNullChars[0] = "\\u0000"; - expectedNullChars[1] = "\\u0001"; - expectedNullChars[2] = "\\u0002"; - expectedNullChars[3] = "\\u0003"; - expectedNullChars[4] = "\\u0004"; - expectedNullChars[5] = "\\u0005"; - expectedNullChars[6] = "\\u0006"; - expectedNullChars[7] = "\\u0007"; - expectedNullChars[8] = "\\b"; - expectedNullChars[9] = "\\t"; - expectedNullChars[10] = "\\n"; - expectedNullChars[11] = "\\u000b"; - expectedNullChars[12] = "\\f"; - expectedNullChars[13] = "\\r"; - expectedNullChars[14] = "\\u000e"; - expectedNullChars[15] = "\\u000f"; - expectedNullChars[16] = "\\u0010"; - expectedNullChars[17] = "\\u0011"; - expectedNullChars[18] = "\\u0012"; - expectedNullChars[19] = "\\u0013"; - expectedNullChars[20] = "\\u0014"; - expectedNullChars[21] = "\\u0015"; - expectedNullChars[22] = "\\u0016"; - expectedNullChars[23] = "\\u0017"; - expectedNullChars[24] = "\\u0018"; - expectedNullChars[25] = "\\u0019"; - expectedNullChars[26] = "\\u001a"; - expectedNullChars[27] = "\\u001b"; - expectedNullChars[28] = "\\u001c"; - expectedNullChars[29] = "\\u001d"; - expectedNullChars[30] = "\\u001e"; - expectedNullChars[31] = "\\u001f"; +var expectedNullChars = new Array(); +expectedNullChars[0] = "\\u0000"; +expectedNullChars[1] = "\\u0001"; +expectedNullChars[2] = "\\u0002"; +expectedNullChars[3] = "\\u0003"; +expectedNullChars[4] = "\\u0004"; +expectedNullChars[5] = "\\u0005"; +expectedNullChars[6] = "\\u0006"; +expectedNullChars[7] = "\\u0007"; +expectedNullChars[8] = "\\b"; +expectedNullChars[9] = "\\t"; +expectedNullChars[10] = "\\n"; +expectedNullChars[11] = "\\u000b"; +expectedNullChars[12] = "\\f"; +expectedNullChars[13] = "\\r"; +expectedNullChars[14] = "\\u000e"; +expectedNullChars[15] = "\\u000f"; +expectedNullChars[16] = "\\u0010"; +expectedNullChars[17] = "\\u0011"; +expectedNullChars[18] = "\\u0012"; +expectedNullChars[19] = "\\u0013"; +expectedNullChars[20] = "\\u0014"; +expectedNullChars[21] = "\\u0015"; +expectedNullChars[22] = "\\u0016"; +expectedNullChars[23] = "\\u0017"; +expectedNullChars[24] = "\\u0018"; +expectedNullChars[25] = "\\u0019"; +expectedNullChars[26] = "\\u001a"; +expectedNullChars[27] = "\\u001b"; +expectedNullChars[28] = "\\u001c"; +expectedNullChars[29] = "\\u001d"; +expectedNullChars[30] = "\\u001e"; +expectedNullChars[31] = "\\u001f"; - for (var index in expectedNullChars) { +for (var index in expectedNullChars) { - var str = JSON.stringify({ "name": "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F" }); - result = (result && str.indexOf(expectedNullChars[index]) !== -1); - } + var str = JSON.stringify({ + "name": "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F" + }); + result = (result && str.indexOf(expectedNullChars[index]) !== -1); +} assert(result, 'result !== true'); diff --git a/test/built-ins/JSON/stringify/15.12.3-11-22.js b/test/built-ins/JSON/stringify/15.12.3-11-22.js index 238b6c35f7..eec1325004 100644 --- a/test/built-ins/JSON/stringify/15.12.3-11-22.js +++ b/test/built-ins/JSON/stringify/15.12.3-11-22.js @@ -9,46 +9,48 @@ description: > operation Quote(value) step 2.c) ---*/ - var result = true; +var result = true; - var expectedNullChars = new Array(); - expectedNullChars[0] = "\\u0000"; - expectedNullChars[1] = "\\u0001"; - expectedNullChars[2] = "\\u0002"; - expectedNullChars[3] = "\\u0003"; - expectedNullChars[4] = "\\u0004"; - expectedNullChars[5] = "\\u0005"; - expectedNullChars[6] = "\\u0006"; - expectedNullChars[7] = "\\u0007"; - expectedNullChars[8] = "\\b"; - expectedNullChars[9] = "\\t"; - expectedNullChars[10] = "\\n"; - expectedNullChars[11] = "\\u000b"; - expectedNullChars[12] = "\\f"; - expectedNullChars[13] = "\\r"; - expectedNullChars[14] = "\\u000e"; - expectedNullChars[15] = "\\u000f"; - expectedNullChars[16] = "\\u0010"; - expectedNullChars[17] = "\\u0011"; - expectedNullChars[18] = "\\u0012"; - expectedNullChars[19] = "\\u0013"; - expectedNullChars[20] = "\\u0014"; - expectedNullChars[21] = "\\u0015"; - expectedNullChars[22] = "\\u0016"; - expectedNullChars[23] = "\\u0017"; - expectedNullChars[24] = "\\u0018"; - expectedNullChars[25] = "\\u0019"; - expectedNullChars[26] = "\\u001a"; - expectedNullChars[27] = "\\u001b"; - expectedNullChars[28] = "\\u001c"; - expectedNullChars[29] = "\\u001d"; - expectedNullChars[30] = "\\u001e"; - expectedNullChars[31] = "\\u001f"; +var expectedNullChars = new Array(); +expectedNullChars[0] = "\\u0000"; +expectedNullChars[1] = "\\u0001"; +expectedNullChars[2] = "\\u0002"; +expectedNullChars[3] = "\\u0003"; +expectedNullChars[4] = "\\u0004"; +expectedNullChars[5] = "\\u0005"; +expectedNullChars[6] = "\\u0006"; +expectedNullChars[7] = "\\u0007"; +expectedNullChars[8] = "\\b"; +expectedNullChars[9] = "\\t"; +expectedNullChars[10] = "\\n"; +expectedNullChars[11] = "\\u000b"; +expectedNullChars[12] = "\\f"; +expectedNullChars[13] = "\\r"; +expectedNullChars[14] = "\\u000e"; +expectedNullChars[15] = "\\u000f"; +expectedNullChars[16] = "\\u0010"; +expectedNullChars[17] = "\\u0011"; +expectedNullChars[18] = "\\u0012"; +expectedNullChars[19] = "\\u0013"; +expectedNullChars[20] = "\\u0014"; +expectedNullChars[21] = "\\u0015"; +expectedNullChars[22] = "\\u0016"; +expectedNullChars[23] = "\\u0017"; +expectedNullChars[24] = "\\u0018"; +expectedNullChars[25] = "\\u0019"; +expectedNullChars[26] = "\\u001a"; +expectedNullChars[27] = "\\u001b"; +expectedNullChars[28] = "\\u001c"; +expectedNullChars[29] = "\\u001d"; +expectedNullChars[30] = "\\u001e"; +expectedNullChars[31] = "\\u001f"; - for (var index in expectedNullChars) { +for (var index in expectedNullChars) { - var str = JSON.stringify({ "name": "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001FJohn" }); - result = (result && str.indexOf(expectedNullChars[index]) !== -1); - } + var str = JSON.stringify({ + "name": "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001FJohn" + }); + result = (result && str.indexOf(expectedNullChars[index]) !== -1); +} assert(result, 'result !== true'); diff --git a/test/built-ins/JSON/stringify/15.12.3-11-23.js b/test/built-ins/JSON/stringify/15.12.3-11-23.js index c19435273b..982968f34d 100644 --- a/test/built-ins/JSON/stringify/15.12.3-11-23.js +++ b/test/built-ins/JSON/stringify/15.12.3-11-23.js @@ -9,46 +9,48 @@ description: > Quote(value) step 2.c) ---*/ - var result = true; +var result = true; - var expectedNullChars = new Array(); - expectedNullChars[0] = "\\u0000"; - expectedNullChars[1] = "\\u0001"; - expectedNullChars[2] = "\\u0002"; - expectedNullChars[3] = "\\u0003"; - expectedNullChars[4] = "\\u0004"; - expectedNullChars[5] = "\\u0005"; - expectedNullChars[6] = "\\u0006"; - expectedNullChars[7] = "\\u0007"; - expectedNullChars[8] = "\\b"; - expectedNullChars[9] = "\\t"; - expectedNullChars[10] = "\\n"; - expectedNullChars[11] = "\\u000b"; - expectedNullChars[12] = "\\f"; - expectedNullChars[13] = "\\r"; - expectedNullChars[14] = "\\u000e"; - expectedNullChars[15] = "\\u000f"; - expectedNullChars[16] = "\\u0010"; - expectedNullChars[17] = "\\u0011"; - expectedNullChars[18] = "\\u0012"; - expectedNullChars[19] = "\\u0013"; - expectedNullChars[20] = "\\u0014"; - expectedNullChars[21] = "\\u0015"; - expectedNullChars[22] = "\\u0016"; - expectedNullChars[23] = "\\u0017"; - expectedNullChars[24] = "\\u0018"; - expectedNullChars[25] = "\\u0019"; - expectedNullChars[26] = "\\u001a"; - expectedNullChars[27] = "\\u001b"; - expectedNullChars[28] = "\\u001c"; - expectedNullChars[29] = "\\u001d"; - expectedNullChars[30] = "\\u001e"; - expectedNullChars[31] = "\\u001f"; +var expectedNullChars = new Array(); +expectedNullChars[0] = "\\u0000"; +expectedNullChars[1] = "\\u0001"; +expectedNullChars[2] = "\\u0002"; +expectedNullChars[3] = "\\u0003"; +expectedNullChars[4] = "\\u0004"; +expectedNullChars[5] = "\\u0005"; +expectedNullChars[6] = "\\u0006"; +expectedNullChars[7] = "\\u0007"; +expectedNullChars[8] = "\\b"; +expectedNullChars[9] = "\\t"; +expectedNullChars[10] = "\\n"; +expectedNullChars[11] = "\\u000b"; +expectedNullChars[12] = "\\f"; +expectedNullChars[13] = "\\r"; +expectedNullChars[14] = "\\u000e"; +expectedNullChars[15] = "\\u000f"; +expectedNullChars[16] = "\\u0010"; +expectedNullChars[17] = "\\u0011"; +expectedNullChars[18] = "\\u0012"; +expectedNullChars[19] = "\\u0013"; +expectedNullChars[20] = "\\u0014"; +expectedNullChars[21] = "\\u0015"; +expectedNullChars[22] = "\\u0016"; +expectedNullChars[23] = "\\u0017"; +expectedNullChars[24] = "\\u0018"; +expectedNullChars[25] = "\\u0019"; +expectedNullChars[26] = "\\u001a"; +expectedNullChars[27] = "\\u001b"; +expectedNullChars[28] = "\\u001c"; +expectedNullChars[29] = "\\u001d"; +expectedNullChars[30] = "\\u001e"; +expectedNullChars[31] = "\\u001f"; - for (var index in expectedNullChars) { +for (var index in expectedNullChars) { - var str = JSON.stringify({ "name": "John\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F" }); - result = (result && str.indexOf(expectedNullChars[index]) !== -1); - } + var str = JSON.stringify({ + "name": "John\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F" + }); + result = (result && str.indexOf(expectedNullChars[index]) !== -1); +} assert(result, 'result !== true'); diff --git a/test/built-ins/JSON/stringify/15.12.3-11-24.js b/test/built-ins/JSON/stringify/15.12.3-11-24.js index 17a9c9631e..3fc4140a2c 100644 --- a/test/built-ins/JSON/stringify/15.12.3-11-24.js +++ b/test/built-ins/JSON/stringify/15.12.3-11-24.js @@ -9,46 +9,48 @@ description: > operation Quote(value) step 2.c) ---*/ - var result = true; +var result = true; - var expectedNullChars = new Array(); - expectedNullChars[0] = "\\u0000"; - expectedNullChars[1] = "\\u0001"; - expectedNullChars[2] = "\\u0002"; - expectedNullChars[3] = "\\u0003"; - expectedNullChars[4] = "\\u0004"; - expectedNullChars[5] = "\\u0005"; - expectedNullChars[6] = "\\u0006"; - expectedNullChars[7] = "\\u0007"; - expectedNullChars[8] = "\\b"; - expectedNullChars[9] = "\\t"; - expectedNullChars[10] = "\\n"; - expectedNullChars[11] = "\\u000b"; - expectedNullChars[12] = "\\f"; - expectedNullChars[13] = "\\r"; - expectedNullChars[14] = "\\u000e"; - expectedNullChars[15] = "\\u000f"; - expectedNullChars[16] = "\\u0010"; - expectedNullChars[17] = "\\u0011"; - expectedNullChars[18] = "\\u0012"; - expectedNullChars[19] = "\\u0013"; - expectedNullChars[20] = "\\u0014"; - expectedNullChars[21] = "\\u0015"; - expectedNullChars[22] = "\\u0016"; - expectedNullChars[23] = "\\u0017"; - expectedNullChars[24] = "\\u0018"; - expectedNullChars[25] = "\\u0019"; - expectedNullChars[26] = "\\u001a"; - expectedNullChars[27] = "\\u001b"; - expectedNullChars[28] = "\\u001c"; - expectedNullChars[29] = "\\u001d"; - expectedNullChars[30] = "\\u001e"; - expectedNullChars[31] = "\\u001f"; +var expectedNullChars = new Array(); +expectedNullChars[0] = "\\u0000"; +expectedNullChars[1] = "\\u0001"; +expectedNullChars[2] = "\\u0002"; +expectedNullChars[3] = "\\u0003"; +expectedNullChars[4] = "\\u0004"; +expectedNullChars[5] = "\\u0005"; +expectedNullChars[6] = "\\u0006"; +expectedNullChars[7] = "\\u0007"; +expectedNullChars[8] = "\\b"; +expectedNullChars[9] = "\\t"; +expectedNullChars[10] = "\\n"; +expectedNullChars[11] = "\\u000b"; +expectedNullChars[12] = "\\f"; +expectedNullChars[13] = "\\r"; +expectedNullChars[14] = "\\u000e"; +expectedNullChars[15] = "\\u000f"; +expectedNullChars[16] = "\\u0010"; +expectedNullChars[17] = "\\u0011"; +expectedNullChars[18] = "\\u0012"; +expectedNullChars[19] = "\\u0013"; +expectedNullChars[20] = "\\u0014"; +expectedNullChars[21] = "\\u0015"; +expectedNullChars[22] = "\\u0016"; +expectedNullChars[23] = "\\u0017"; +expectedNullChars[24] = "\\u0018"; +expectedNullChars[25] = "\\u0019"; +expectedNullChars[26] = "\\u001a"; +expectedNullChars[27] = "\\u001b"; +expectedNullChars[28] = "\\u001c"; +expectedNullChars[29] = "\\u001d"; +expectedNullChars[30] = "\\u001e"; +expectedNullChars[31] = "\\u001f"; - for (var index in expectedNullChars) { +for (var index in expectedNullChars) { - var str = JSON.stringify({ "name": "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001FJohn\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F" }); - result = (result && str.indexOf(expectedNullChars[index]) !== -1 && str.indexOf(expectedNullChars[index]) !== -1); - } + var str = JSON.stringify({ + "name": "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001FJohn\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F" + }); + result = (result && str.indexOf(expectedNullChars[index]) !== -1 && str.indexOf(expectedNullChars[index]) !== -1); +} assert(result, 'result !== true'); diff --git a/test/built-ins/JSON/stringify/15.12.3-11-25.js b/test/built-ins/JSON/stringify/15.12.3-11-25.js index 146d71200e..9a26fa4181 100644 --- a/test/built-ins/JSON/stringify/15.12.3-11-25.js +++ b/test/built-ins/JSON/stringify/15.12.3-11-25.js @@ -9,46 +9,48 @@ description: > operation Quote(value) step 2.c) ---*/ - var result = true; +var result = true; - var expectedNullChars = new Array(); - expectedNullChars[0] = "\\u0000"; - expectedNullChars[1] = "\\u0001"; - expectedNullChars[2] = "\\u0002"; - expectedNullChars[3] = "\\u0003"; - expectedNullChars[4] = "\\u0004"; - expectedNullChars[5] = "\\u0005"; - expectedNullChars[6] = "\\u0006"; - expectedNullChars[7] = "\\u0007"; - expectedNullChars[8] = "\\b"; - expectedNullChars[9] = "\\t"; - expectedNullChars[10] = "\\n"; - expectedNullChars[11] = "\\u000b"; - expectedNullChars[12] = "\\f"; - expectedNullChars[13] = "\\r"; - expectedNullChars[14] = "\\u000e"; - expectedNullChars[15] = "\\u000f"; - expectedNullChars[16] = "\\u0010"; - expectedNullChars[17] = "\\u0011"; - expectedNullChars[18] = "\\u0012"; - expectedNullChars[19] = "\\u0013"; - expectedNullChars[20] = "\\u0014"; - expectedNullChars[21] = "\\u0015"; - expectedNullChars[22] = "\\u0016"; - expectedNullChars[23] = "\\u0017"; - expectedNullChars[24] = "\\u0018"; - expectedNullChars[25] = "\\u0019"; - expectedNullChars[26] = "\\u001a"; - expectedNullChars[27] = "\\u001b"; - expectedNullChars[28] = "\\u001c"; - expectedNullChars[29] = "\\u001d"; - expectedNullChars[30] = "\\u001e"; - expectedNullChars[31] = "\\u001f"; +var expectedNullChars = new Array(); +expectedNullChars[0] = "\\u0000"; +expectedNullChars[1] = "\\u0001"; +expectedNullChars[2] = "\\u0002"; +expectedNullChars[3] = "\\u0003"; +expectedNullChars[4] = "\\u0004"; +expectedNullChars[5] = "\\u0005"; +expectedNullChars[6] = "\\u0006"; +expectedNullChars[7] = "\\u0007"; +expectedNullChars[8] = "\\b"; +expectedNullChars[9] = "\\t"; +expectedNullChars[10] = "\\n"; +expectedNullChars[11] = "\\u000b"; +expectedNullChars[12] = "\\f"; +expectedNullChars[13] = "\\r"; +expectedNullChars[14] = "\\u000e"; +expectedNullChars[15] = "\\u000f"; +expectedNullChars[16] = "\\u0010"; +expectedNullChars[17] = "\\u0011"; +expectedNullChars[18] = "\\u0012"; +expectedNullChars[19] = "\\u0013"; +expectedNullChars[20] = "\\u0014"; +expectedNullChars[21] = "\\u0015"; +expectedNullChars[22] = "\\u0016"; +expectedNullChars[23] = "\\u0017"; +expectedNullChars[24] = "\\u0018"; +expectedNullChars[25] = "\\u0019"; +expectedNullChars[26] = "\\u001a"; +expectedNullChars[27] = "\\u001b"; +expectedNullChars[28] = "\\u001c"; +expectedNullChars[29] = "\\u001d"; +expectedNullChars[30] = "\\u001e"; +expectedNullChars[31] = "\\u001f"; - for (var index in expectedNullChars) { +for (var index in expectedNullChars) { - var str = JSON.stringify({ "name": "Jo\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001Fhn" }); - result = (result && str.indexOf(expectedNullChars[index]) !== -1 && str.indexOf(expectedNullChars[index]) !== -1); - } + var str = JSON.stringify({ + "name": "Jo\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000A\u000B\u000C\u000D\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001Fhn" + }); + result = (result && str.indexOf(expectedNullChars[index]) !== -1 && str.indexOf(expectedNullChars[index]) !== -1); +} assert(result, 'result !== true'); diff --git a/test/built-ins/JSON/stringify/15.12.3-11-26.js b/test/built-ins/JSON/stringify/15.12.3-11-26.js index a04f354a09..142160ce5d 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 0f7eafd118..d681486988 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 719f653c9f..0304b03c2f 100644 --- a/test/built-ins/JSON/stringify/15.12.3-5-a-i-1.js +++ b/test/built-ins/JSON/stringify/15.12.3-5-a-i-1.js @@ -8,6 +8,15 @@ description: > Number values ---*/ - var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'}; +var obj = { + a1: { + b1: [1, 2, 3, 4], + b2: { + c1: 1, + c2: 2 + } + }, + a2: 'a2' +}; -assert.sameValue(JSON.stringify(obj,null, new Number(5)), JSON.stringify(obj,null, 5), 'JSON.stringify(obj,null, new Number(5))'); +assert.sameValue(JSON.stringify(obj, null, new Number(5)), JSON.stringify(obj, null, 5), 'JSON.stringify(obj,null, new Number(5))'); diff --git a/test/built-ins/JSON/stringify/15.12.3-5-b-i-1.js b/test/built-ins/JSON/stringify/15.12.3-5-b-i-1.js index 034123aec1..baf3d06f5d 100644 --- a/test/built-ins/JSON/stringify/15.12.3-5-b-i-1.js +++ b/test/built-ins/JSON/stringify/15.12.3-5-b-i-1.js @@ -8,6 +8,15 @@ description: > String values ---*/ - var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'}; +var obj = { + a1: { + b1: [1, 2, 3, 4], + b2: { + c1: 1, + c2: 2 + } + }, + a2: 'a2' +}; -assert.sameValue(JSON.stringify(obj,null, new String('xxx')), JSON.stringify(obj,null, 'xxx'), 'JSON.stringify(obj,null, new String("xxx"))'); +assert.sameValue(JSON.stringify(obj, null, new String('xxx')), JSON.stringify(obj, null, 'xxx'), 'JSON.stringify(obj,null, new String("xxx"))'); diff --git a/test/built-ins/JSON/stringify/15.12.3-6-a-1.js b/test/built-ins/JSON/stringify/15.12.3-6-a-1.js index fd0d4ded4b..2d7e6386f0 100644 --- a/test/built-ins/JSON/stringify/15.12.3-6-a-1.js +++ b/test/built-ins/JSON/stringify/15.12.3-6-a-1.js @@ -8,6 +8,15 @@ description: > same as a space argument of 10. ---*/ - var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'}; +var obj = { + a1: { + b1: [1, 2, 3, 4], + b2: { + c1: 1, + c2: 2 + } + }, + a2: 'a2' +}; -assert.sameValue(JSON.stringify(obj,null, 10), JSON.stringify(obj,null, 100), 'JSON.stringify(obj,null, 10)'); +assert.sameValue(JSON.stringify(obj, null, 10), JSON.stringify(obj, null, 100), 'JSON.stringify(obj,null, 10)'); diff --git a/test/built-ins/JSON/stringify/15.12.3-6-a-2.js b/test/built-ins/JSON/stringify/15.12.3-6-a-2.js index 1cfe50a805..16349f1f3d 100644 --- a/test/built-ins/JSON/stringify/15.12.3-6-a-2.js +++ b/test/built-ins/JSON/stringify/15.12.3-6-a-2.js @@ -8,6 +8,15 @@ description: > their integer part. ---*/ - var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'}; +var obj = { + a1: { + b1: [1, 2, 3, 4], + b2: { + c1: 1, + c2: 2 + } + }, + a2: 'a2' +}; -assert.sameValue(JSON.stringify(obj,null, 5.99999), JSON.stringify(obj,null, 5), 'JSON.stringify(obj,null, 5.99999)'); +assert.sameValue(JSON.stringify(obj, null, 5.99999), JSON.stringify(obj, null, 5), 'JSON.stringify(obj,null, 5.99999)'); diff --git a/test/built-ins/JSON/stringify/15.12.3-6-b-1.js b/test/built-ins/JSON/stringify/15.12.3-6-b-1.js index d5eea1024f..d178f1eef3 100644 --- a/test/built-ins/JSON/stringify/15.12.3-6-b-1.js +++ b/test/built-ins/JSON/stringify/15.12.3-6-b-1.js @@ -8,7 +8,16 @@ description: > (0.999999)the same as empty string space argument. ---*/ - var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'}; +var obj = { + a1: { + b1: [1, 2, 3, 4], + b2: { + c1: 1, + c2: 2 + } + }, + a2: 'a2' +}; /* empty string should be same as no space arg */ -assert.sameValue(JSON.stringify(obj,null, 0.999999), JSON.stringify(obj)); +assert.sameValue(JSON.stringify(obj, null, 0.999999), JSON.stringify(obj)); diff --git a/test/built-ins/JSON/stringify/15.12.3-6-b-2.js b/test/built-ins/JSON/stringify/15.12.3-6-b-2.js index d1bf8401b2..504e939e67 100644 --- a/test/built-ins/JSON/stringify/15.12.3-6-b-2.js +++ b/test/built-ins/JSON/stringify/15.12.3-6-b-2.js @@ -8,7 +8,16 @@ description: > same as empty string space argument. ---*/ - var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'}; +var obj = { + a1: { + b1: [1, 2, 3, 4], + b2: { + c1: 1, + c2: 2 + } + }, + a2: 'a2' +}; /* empty string should be same as no space arg */ -assert.sameValue(JSON.stringify(obj,null, 0), JSON.stringify(obj)); +assert.sameValue(JSON.stringify(obj, null, 0), JSON.stringify(obj)); diff --git a/test/built-ins/JSON/stringify/15.12.3-6-b-3.js b/test/built-ins/JSON/stringify/15.12.3-6-b-3.js index 9310f9470b..92db3c8254 100644 --- a/test/built-ins/JSON/stringify/15.12.3-6-b-3.js +++ b/test/built-ins/JSON/stringify/15.12.3-6-b-3.js @@ -8,7 +8,16 @@ description: > same as empty string space argument. ---*/ - var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'}; +var obj = { + a1: { + b1: [1, 2, 3, 4], + b2: { + c1: 1, + c2: 2 + } + }, + a2: 'a2' +}; - /* empty string should be same as no space arg */ - assert.sameValue(JSON.stringify(obj,null, -5), JSON.stringify(obj)); +/* empty string should be same as no space arg */ +assert.sameValue(JSON.stringify(obj, null, -5), JSON.stringify(obj)); diff --git a/test/built-ins/JSON/stringify/15.12.3-6-b-4.js b/test/built-ins/JSON/stringify/15.12.3-6-b-4.js index de03303674..e492e43a3c 100644 --- a/test/built-ins/JSON/stringify/15.12.3-6-b-4.js +++ b/test/built-ins/JSON/stringify/15.12.3-6-b-4.js @@ -8,8 +8,17 @@ description: > is equivalent to a string of spaces of that length. ---*/ - var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'}; - var fiveSpaces = ' '; - // '12345' +var obj = { + a1: { + b1: [1, 2, 3, 4], + b2: { + c1: 1, + c2: 2 + } + }, + a2: 'a2' +}; +var fiveSpaces = ' '; +// '12345' -assert.sameValue(JSON.stringify(obj,null, 5), JSON.stringify(obj, null, fiveSpaces), 'JSON.stringify(obj,null, 5)'); +assert.sameValue(JSON.stringify(obj, null, 5), JSON.stringify(obj, null, fiveSpaces), 'JSON.stringify(obj,null, 5)'); diff --git a/test/built-ins/JSON/stringify/15.12.3-7-a-1.js b/test/built-ins/JSON/stringify/15.12.3-7-a-1.js index e16a25e6f9..fd579d854d 100644 --- a/test/built-ins/JSON/stringify/15.12.3-7-a-1.js +++ b/test/built-ins/JSON/stringify/15.12.3-7-a-1.js @@ -8,6 +8,15 @@ description: > arguments. ---*/ - var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'}; +var obj = { + a1: { + b1: [1, 2, 3, 4], + b2: { + c1: 1, + c2: 2 + } + }, + a2: 'a2' +}; -assert.sameValue(JSON.stringify(obj,null, '0123456789xxxxxxxxx'), JSON.stringify(obj,null, '0123456789'), 'JSON.stringify(obj,null, "0123456789xxxxxxxxx")'); +assert.sameValue(JSON.stringify(obj, null, '0123456789xxxxxxxxx'), JSON.stringify(obj, null, '0123456789'), 'JSON.stringify(obj,null, "0123456789xxxxxxxxx")'); diff --git a/test/built-ins/JSON/stringify/15.12.3-8-a-1.js b/test/built-ins/JSON/stringify/15.12.3-8-a-1.js index c95e950e61..7fc0583f61 100644 --- a/test/built-ins/JSON/stringify/15.12.3-8-a-1.js +++ b/test/built-ins/JSON/stringify/15.12.3-8-a-1.js @@ -8,6 +8,15 @@ description: > missing space argument. ---*/ - var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'}; +var obj = { + a1: { + b1: [1, 2, 3, 4], + b2: { + c1: 1, + c2: 2 + } + }, + a2: 'a2' +}; -assert.sameValue(JSON.stringify(obj), JSON.stringify(obj,null, ''), 'JSON.stringify(obj)'); +assert.sameValue(JSON.stringify(obj), JSON.stringify(obj, null, ''), 'JSON.stringify(obj)'); diff --git a/test/built-ins/JSON/stringify/15.12.3-8-a-2.js b/test/built-ins/JSON/stringify/15.12.3-8-a-2.js index 0443eb753a..eacd51d52c 100644 --- a/test/built-ins/JSON/stringify/15.12.3-8-a-2.js +++ b/test/built-ins/JSON/stringify/15.12.3-8-a-2.js @@ -8,6 +8,15 @@ description: > missing space argument. ---*/ - var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'}; +var obj = { + a1: { + b1: [1, 2, 3, 4], + b2: { + c1: 1, + c2: 2 + } + }, + a2: 'a2' +}; -assert.sameValue(JSON.stringify(obj), JSON.stringify(obj,null, true), 'JSON.stringify(obj)'); +assert.sameValue(JSON.stringify(obj), JSON.stringify(obj, null, true), 'JSON.stringify(obj)'); diff --git a/test/built-ins/JSON/stringify/15.12.3-8-a-3.js b/test/built-ins/JSON/stringify/15.12.3-8-a-3.js index 6d4bc3eb86..072eb9d536 100644 --- a/test/built-ins/JSON/stringify/15.12.3-8-a-3.js +++ b/test/built-ins/JSON/stringify/15.12.3-8-a-3.js @@ -8,6 +8,15 @@ description: > space argument. ---*/ - var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'}; +var obj = { + a1: { + b1: [1, 2, 3, 4], + b2: { + c1: 1, + c2: 2 + } + }, + a2: 'a2' +}; -assert.sameValue(JSON.stringify(obj), JSON.stringify(obj,null, null), 'JSON.stringify(obj)'); +assert.sameValue(JSON.stringify(obj), JSON.stringify(obj, null, null), 'JSON.stringify(obj)'); diff --git a/test/built-ins/JSON/stringify/15.12.3-8-a-4.js b/test/built-ins/JSON/stringify/15.12.3-8-a-4.js index d13b9c5c80..7ac1a28ecf 100644 --- a/test/built-ins/JSON/stringify/15.12.3-8-a-4.js +++ b/test/built-ins/JSON/stringify/15.12.3-8-a-4.js @@ -8,6 +8,15 @@ description: > as a missing space argument. ---*/ - var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'}; +var obj = { + a1: { + b1: [1, 2, 3, 4], + b2: { + c1: 1, + c2: 2 + } + }, + a2: 'a2' +}; -assert.sameValue(JSON.stringify(obj), JSON.stringify(obj,null, new Boolean(true)), 'JSON.stringify(obj)'); +assert.sameValue(JSON.stringify(obj), JSON.stringify(obj, null, new Boolean(true)), 'JSON.stringify(obj)'); diff --git a/test/built-ins/JSON/stringify/15.12.3-8-a-5.js b/test/built-ins/JSON/stringify/15.12.3-8-a-5.js index 56532c4ecc..4f05d178f9 100644 --- a/test/built-ins/JSON/stringify/15.12.3-8-a-5.js +++ b/test/built-ins/JSON/stringify/15.12.3-8-a-5.js @@ -8,6 +8,15 @@ description: > the same as a missing space argument. ---*/ - var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'}; +var obj = { + a1: { + b1: [1, 2, 3, 4], + b2: { + c1: 1, + c2: 2 + } + }, + a2: 'a2' +}; -assert.sameValue(JSON.stringify(obj), JSON.stringify(obj,null, obj), 'JSON.stringify(obj)'); +assert.sameValue(JSON.stringify(obj), JSON.stringify(obj, null, obj), 'JSON.stringify(obj)'); diff --git a/test/built-ins/JSON/stringify/15.12.3_2-2-b-i-1.js b/test/built-ins/JSON/stringify/15.12.3_2-2-b-i-1.js index 6f6fa62da5..447652a8b1 100644 --- a/test/built-ins/JSON/stringify/15.12.3_2-2-b-i-1.js +++ b/test/built-ins/JSON/stringify/15.12.3_2-2-b-i-1.js @@ -8,9 +8,11 @@ description: > toJSON call to literal strings. ---*/ - var obj = { - prop:42, - toJSON: function () {return 'fortytwo objects'} - }; +var obj = { + prop: 42, + toJSON: function() { + return 'fortytwo objects' + } +}; assert.sameValue(JSON.stringify([obj]), '["fortytwo objects"]', 'JSON.stringify([obj])'); diff --git a/test/built-ins/JSON/stringify/15.12.3_2-2-b-i-2.js b/test/built-ins/JSON/stringify/15.12.3_2-2-b-i-2.js index b665d80044..aa418fefd5 100644 --- a/test/built-ins/JSON/stringify/15.12.3_2-2-b-i-2.js +++ b/test/built-ins/JSON/stringify/15.12.3_2-2-b-i-2.js @@ -8,9 +8,11 @@ description: > toJSON call to literal Number. ---*/ - var obj = { - prop:42, - toJSON: function () {return new Number(42)} - }; +var obj = { + prop: 42, + toJSON: function() { + return new Number(42) + } +}; assert.sameValue(JSON.stringify([obj]), '[42]', 'JSON.stringify([obj])'); diff --git a/test/built-ins/JSON/stringify/15.12.3_2-2-b-i-3.js b/test/built-ins/JSON/stringify/15.12.3_2-2-b-i-3.js index 9a192f26c1..6f4eaccdf1 100644 --- a/test/built-ins/JSON/stringify/15.12.3_2-2-b-i-3.js +++ b/test/built-ins/JSON/stringify/15.12.3_2-2-b-i-3.js @@ -8,9 +8,11 @@ description: > toJSON call to literal Boolean values. ---*/ - var obj = { - prop:42, - toJSON: function () {return new Boolean(true)} - }; +var obj = { + prop: 42, + toJSON: function() { + return new Boolean(true) + } +}; assert.sameValue(JSON.stringify([obj]), '[true]', 'JSON.stringify([obj])'); diff --git a/test/built-ins/JSON/stringify/15.12.3_2-3-a-1.js b/test/built-ins/JSON/stringify/15.12.3_2-3-a-1.js index 853acb01d6..aefb5d77ca 100644 --- a/test/built-ins/JSON/stringify/15.12.3_2-3-a-1.js +++ b/test/built-ins/JSON/stringify/15.12.3_2-3-a-1.js @@ -8,4 +8,6 @@ description: > replacer functions to literal strings. ---*/ -assert.sameValue(JSON.stringify([42], function(k,v) {return v===42? new String('fortytwo'):v}), '["fortytwo"]', 'JSON.stringify([42], function(k,v) {return v===42? new String("fortytwo"):v})'); +assert.sameValue(JSON.stringify([42], function(k, v) { + return v === 42 ? new String('fortytwo') : v +}), '["fortytwo"]', 'JSON.stringify([42], function(k,v) {return v===42? new String("fortytwo"):v})'); diff --git a/test/built-ins/JSON/stringify/15.12.3_2-3-a-2.js b/test/built-ins/JSON/stringify/15.12.3_2-3-a-2.js index 7888996d77..87b0df0ac0 100644 --- a/test/built-ins/JSON/stringify/15.12.3_2-3-a-2.js +++ b/test/built-ins/JSON/stringify/15.12.3_2-3-a-2.js @@ -8,4 +8,6 @@ description: > replacer functions to literal numbers. ---*/ -assert.sameValue(JSON.stringify([42], function(k,v) {return v===42? new Number(84):v}), '[84]', 'JSON.stringify([42], function(k,v) {return v===42? new Number(84):v})'); +assert.sameValue(JSON.stringify([42], function(k, v) { + return v === 42 ? new Number(84) : v +}), '[84]', 'JSON.stringify([42], function(k,v) {return v===42? new Number(84):v})'); diff --git a/test/built-ins/JSON/stringify/15.12.3_2-3-a-3.js b/test/built-ins/JSON/stringify/15.12.3_2-3-a-3.js index adb582fe20..a26ae4b2f0 100644 --- a/test/built-ins/JSON/stringify/15.12.3_2-3-a-3.js +++ b/test/built-ins/JSON/stringify/15.12.3_2-3-a-3.js @@ -8,4 +8,6 @@ description: > replacer functions to literal numbers. ---*/ -assert.sameValue(JSON.stringify([42], function(k,v) {return v===42? new Boolean(false):v}), '[false]', 'JSON.stringify([42], function(k,v) {return v===42? new Boolean(false):v})'); +assert.sameValue(JSON.stringify([42], function(k, v) { + return v === 42 ? new Boolean(false) : v +}), '[false]', 'JSON.stringify([42], function(k,v) {return v===42? new Boolean(false):v})'); diff --git a/test/built-ins/JSON/stringify/15.12.3_4-1-1.js b/test/built-ins/JSON/stringify/15.12.3_4-1-1.js index f9b5f68ab3..40b42f5742 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 a79907bd0f..299853c916 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 30d0a4339c..feb1a6c9c3 100644 --- a/test/built-ins/JSON/stringify/15.12.3_4-1-3.js +++ b/test/built-ins/JSON/stringify/15.12.3_4-1-3.js @@ -6,9 +6,13 @@ es5id: 15.12.3_4-1-3 description: JSON.stringify a indirectly circular object throws a error ---*/ - var obj = {p1: {p2: {}}}; - obj.p1.p2.prop = obj; +var obj = { + p1: { + p2: {} + } +}; +obj.p1.p2.prop = obj; assert.throws(TypeError, function() { - JSON.stringify(obj); + JSON.stringify(obj); }); diff --git a/test/built-ins/JSON/stringify/bigint-order.js b/test/built-ins/JSON/stringify/bigint-order.js index 7dc1d96727..a6de336877 100644 --- a/test/built-ins/JSON/stringify/bigint-order.js +++ b/test/built-ins/JSON/stringify/bigint-order.js @@ -27,16 +27,19 @@ let step; function replacer(x, k, v) { assert.sameValue(step++, 1); - assert.sameValue(v, 1n); + assert.sameValue(v, 1 n); return x; } -BigInt.prototype.toJSON = function () { assert.sameValue(step++, 0); return 1n; }; +BigInt.prototype.toJSON = function() { + assert.sameValue(step++, 0); + return 1 n; +}; step = 0; -assert.throws(TypeError, () => JSON.stringify(0n, (k, v) => replacer(2n, k, v))); +assert.throws(TypeError, () => JSON.stringify(0 n, (k, v) => replacer(2 n, k, v))); assert.sameValue(step, 2); step = 0; -assert.throws(TypeError, () => JSON.stringify(0n, (k, v) => replacer(Object(2n), k, v))); +assert.throws(TypeError, () => JSON.stringify(0 n, (k, v) => replacer(Object(2 n), k, v))); assert.sameValue(step, 2); diff --git a/test/built-ins/JSON/stringify/bigint-replacer.js b/test/built-ins/JSON/stringify/bigint-replacer.js index 03878ec5c1..72e19c1498 100644 --- a/test/built-ins/JSON/stringify/bigint-replacer.js +++ b/test/built-ins/JSON/stringify/bigint-replacer.js @@ -14,11 +14,13 @@ features: [BigInt] function replacer(k, v) { - if (typeof v === "bigint") - return "bigint"; - else - return v; + if (typeof v === "bigint") + return "bigint"; + else + return v; } assert.sameValue(JSON.stringify(0n, replacer), '"bigint"'); -assert.sameValue(JSON.stringify({x: 0n}, replacer), '{"x":"bigint"}'); +assert.sameValue(JSON.stringify({ + x: 0n +}, replacer), '{"x":"bigint"}'); diff --git a/test/built-ins/JSON/stringify/bigint-tojson.js b/test/built-ins/JSON/stringify/bigint-tojson.js index bf4f531f2a..c314d74bdd 100644 --- a/test/built-ins/JSON/stringify/bigint-tojson.js +++ b/test/built-ins/JSON/stringify/bigint-tojson.js @@ -14,5 +14,7 @@ info: | features: [BigInt] ---*/ -BigInt.prototype.toJSON = function () { return this.toString(); }; +BigInt.prototype.toJSON = function() { + return this.toString(); +}; assert.sameValue(JSON.stringify(0n), '"0"'); diff --git a/test/built-ins/JSON/stringify/bigint.js b/test/built-ins/JSON/stringify/bigint.js index 80d17799ef..bba26f4dc8 100644 --- a/test/built-ins/JSON/stringify/bigint.js +++ b/test/built-ins/JSON/stringify/bigint.js @@ -9,4 +9,6 @@ features: [BigInt] assert.throws(TypeError, () => JSON.stringify(0n)); assert.throws(TypeError, () => JSON.stringify(Object(0n))); -assert.throws(TypeError, () => JSON.stringify({x: 0n})); +assert.throws(TypeError, () => JSON.stringify({ + x: 0n +})); diff --git a/test/built-ins/JSON/stringify/replacer-proxy.js b/test/built-ins/JSON/stringify/replacer-proxy.js index 9ac8d5bb5f..8ec585a987 100644 --- a/test/built-ins/JSON/stringify/replacer-proxy.js +++ b/test/built-ins/JSON/stringify/replacer-proxy.js @@ -36,10 +36,14 @@ var arrayProxyProxy = new Proxy(arrayProxy, {}); assert.sameValue(JSON.stringify(objectProxy), '{}'); assert.sameValue(JSON.stringify(arrayProxy), '[]', 'proxy for an array'); assert.sameValue( - JSON.stringify([[arrayProxy]]), '[[[]]]', 'proxy for an array (nested)' + JSON.stringify([ + [arrayProxy] + ]), '[[[]]]', 'proxy for an array (nested)' ); assert.sameValue( - JSON.stringify([[arrayProxyProxy]]), + JSON.stringify([ + [arrayProxyProxy] + ]), '[[[]]]', 'proxy for a proxy for an array (nested)' ); diff --git a/test/built-ins/JSON/stringify/value-proxy-revoked.js b/test/built-ins/JSON/stringify/value-proxy-revoked.js index 24b34f5dc4..81cd50d989 100644 --- a/test/built-ins/JSON/stringify/value-proxy-revoked.js +++ b/test/built-ins/JSON/stringify/value-proxy-revoked.js @@ -38,5 +38,9 @@ assert.throws(TypeError, function() { }, 'top-level value'); assert.throws(TypeError, function() { - JSON.stringify([[[handle.proxy]]]); + JSON.stringify([ + [ + [handle.proxy] + ] + ]); }, 'nested value'); diff --git a/test/built-ins/Map/iterable-calls-set.js b/test/built-ins/Map/iterable-calls-set.js index 989cab985c..3b512eb4b1 100644 --- a/test/built-ins/Map/iterable-calls-set.js +++ b/test/built-ins/Map/iterable-calls-set.js @@ -18,7 +18,10 @@ includes: [compareArray.js] var mapSet = Map.prototype.set; var counter = 0; -var iterable = [["foo", 1], ["bar", 2]]; +var iterable = [ + ["foo", 1], + ["bar", 2] +]; var results = []; var _this = []; diff --git a/test/built-ins/Map/iterator-close-after-set-failure.js b/test/built-ins/Map/iterator-close-after-set-failure.js index 144d74373c..321c0a729f 100644 --- a/test/built-ins/Map/iterator-close-after-set-failure.js +++ b/test/built-ins/Map/iterator-close-after-set-failure.js @@ -20,14 +20,19 @@ var iterable = {}; iterable[Symbol.iterator] = function() { return { next: function() { - return { value: [], done: false }; + return { + value: [], + done: false + }; }, return: function() { count += 1; } }; }; -Map.prototype.set = function() { throw new Test262Error(); } +Map.prototype.set = function() { + throw new Test262Error(); +} assert.throws(Test262Error, function() { new Map(iterable); diff --git a/test/built-ins/Map/iterator-items-are-not-object-close-iterator.js b/test/built-ins/Map/iterator-items-are-not-object-close-iterator.js index 4e8e10a6c0..8c9bc4fe89 100644 --- a/test/built-ins/Map/iterator-items-are-not-object-close-iterator.js +++ b/test/built-ins/Map/iterator-items-are-not-object-close-iterator.js @@ -27,7 +27,10 @@ var iterable = {}; iterable[Symbol.iterator] = function() { return { next: function() { - return { value: nextItem, done: false }; + return { + value: nextItem, + done: false + }; }, return: function() { count += 1; diff --git a/test/built-ins/Map/iterator-items-are-not-object.js b/test/built-ins/Map/iterator-items-are-not-object.js index 18b2b6df2e..aceebcef7c 100644 --- a/test/built-ins/Map/iterator-items-are-not-object.js +++ b/test/built-ins/Map/iterator-items-are-not-object.js @@ -44,5 +44,7 @@ assert.throws(TypeError, function() { }); assert.throws(TypeError, function() { - new Map([['a', 1], 2]); + new Map([ + ['a', 1], 2 + ]); }); diff --git a/test/built-ins/Map/map-iterable-throws-when-set-is-not-callable.js b/test/built-ins/Map/map-iterable-throws-when-set-is-not-callable.js index d4ec50d3f6..89fc9ce3ca 100644 --- a/test/built-ins/Map/map-iterable-throws-when-set-is-not-callable.js +++ b/test/built-ins/Map/map-iterable-throws-when-set-is-not-callable.js @@ -23,5 +23,8 @@ info: | Map.prototype.set = null; assert.throws(TypeError, function() { - new Map([[1,1], [2,2]]); + new Map([ + [1, 1], + [2, 2] + ]); }); diff --git a/test/built-ins/Map/map-iterable.js b/test/built-ins/Map/map-iterable.js index 3aab35f3db..e46330ead8 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 a9589a4cc5..0206d23b14 100644 --- a/test/built-ins/Map/newtarget.js +++ b/test/built-ins/Map/newtarget.js @@ -25,7 +25,10 @@ assert.sameValue( "`Object.getPrototypeOf(m1)` returns `Map.prototype`" ); -var m2 = new Map([[1, 1], [2, 2]]); +var m2 = new Map([ + [1, 1], + [2, 2] +]); assert.sameValue( Object.getPrototypeOf(m2), diff --git a/test/built-ins/Map/prototype/clear/clear-map.js b/test/built-ins/Map/prototype/clear/clear-map.js index b6580d0a4b..e5341fbdd3 100644 --- a/test/built-ins/Map/prototype/clear/clear-map.js +++ b/test/built-ins/Map/prototype/clear/clear-map.js @@ -17,11 +17,14 @@ info: | features: [Symbol] ---*/ -var m1 = new Map([['foo', 'bar'], [1, 1]]); +var m1 = new Map([ + ['foo', 'bar'], + [1, 1] +]); var m2 = new Map(); var m3 = new Map(); m2.set('foo', 'bar'); -m2.set(1,1); +m2.set(1, 1); m2.set(Symbol('a'), Symbol('a')); m1.clear(); diff --git a/test/built-ins/Map/prototype/clear/clear.js b/test/built-ins/Map/prototype/clear/clear.js index 59f28de2e9..80fe0ac786 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 f49aefda0a..e83b87d5cd 100644 --- a/test/built-ins/Map/prototype/clear/map-data-list-is-preserved.js +++ b/test/built-ins/Map/prototype/clear/map-data-list-is-preserved.js @@ -20,7 +20,11 @@ info: | 6. Return undefined. ---*/ -var m = new Map([[1,1], [2,2], [3,3]]); +var m = new Map([ + [1, 1], + [2, 2], + [3, 3] +]); var e = m.entries(); e.next(); diff --git a/test/built-ins/Map/prototype/clear/returns-undefined.js b/test/built-ins/Map/prototype/clear/returns-undefined.js index 1e1d662aa3..ce4cfcff21 100644 --- a/test/built-ins/Map/prototype/clear/returns-undefined.js +++ b/test/built-ins/Map/prototype/clear/returns-undefined.js @@ -16,7 +16,10 @@ info: | 6. Return undefined. ---*/ -var m1 = new Map([['foo', 'bar'], [1, 1]]); +var m1 = new Map([ + ['foo', 'bar'], + [1, 1] +]); assert.sameValue(m1.clear(), undefined, 'clears a map and returns undefined'); assert.sameValue(m1.clear(), undefined, 'returns undefined on an empty map'); diff --git a/test/built-ins/Map/prototype/delete/delete.js b/test/built-ins/Map/prototype/delete/delete.js index 4bf8688efa..6d01496fe9 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 895a7ecef5..1a788fdc0c 100644 --- a/test/built-ins/Map/prototype/delete/does-not-break-iterators.js +++ b/test/built-ins/Map/prototype/delete/does-not-break-iterators.js @@ -16,7 +16,11 @@ info: | ... ---*/ -var m = new Map([['a',1], ['b', 2], ['c', 3]]); +var m = new Map([ + ['a', 1], + ['b', 2], + ['c', 3] +]); var e = m.entries(); e.next(); diff --git a/test/built-ins/Map/prototype/delete/returns-false.js b/test/built-ins/Map/prototype/delete/returns-false.js index 2f2300d35a..d1db1c97c9 100644 --- a/test/built-ins/Map/prototype/delete/returns-false.js +++ b/test/built-ins/Map/prototype/delete/returns-false.js @@ -15,7 +15,10 @@ info: | 6. Return false. ---*/ -var m = new Map([['a',1], ['b', 2]]); +var m = new Map([ + ['a', 1], + ['b', 2] +]); assert.sameValue(m.delete('not-in-the-map'), false); diff --git a/test/built-ins/Map/prototype/delete/returns-true-for-deleted-entry.js b/test/built-ins/Map/prototype/delete/returns-true-for-deleted-entry.js index 02ad4b12d9..1f4ccb52ea 100644 --- a/test/built-ins/Map/prototype/delete/returns-true-for-deleted-entry.js +++ b/test/built-ins/Map/prototype/delete/returns-true-for-deleted-entry.js @@ -16,7 +16,10 @@ info: | ... ---*/ -var m = new Map([['a',1], ['b', 2]]); +var m = new Map([ + ['a', 1], + ['b', 2] +]); var result = m.delete('a'); diff --git a/test/built-ins/Map/prototype/entries/returns-iterator.js b/test/built-ins/Map/prototype/entries/returns-iterator.js index b2a8ef5c41..96626b2448 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 d61bb4e2db..f377e9c6e8 100644 --- a/test/built-ins/Map/prototype/forEach/callback-result-is-abrupt.js +++ b/test/built-ins/Map/prototype/forEach/callback-result-is-abrupt.js @@ -19,7 +19,9 @@ info: | flags: [noStrict] ---*/ -var map = new Map([[0, 0]]); +var map = new Map([ + [0, 0] +]); assert.throws(Test262Error, function() { map.forEach(function() { diff --git a/test/built-ins/Map/prototype/get/returns-undefined.js b/test/built-ins/Map/prototype/get/returns-undefined.js index 42744d8c64..84f511184a 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 0be565021b..86c0897c08 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 591f451094..bcdaa0418c 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 8e5d430698..5d84eb8a24 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 3cc9f6f621..93b99dcd92 100644 --- a/test/built-ins/Map/prototype/set/append-new-values.js +++ b/test/built-ins/Map/prototype/set/append-new-values.js @@ -17,7 +17,11 @@ features: [Symbol] ---*/ var s = Symbol(2); -var map = new Map([[4, 4], ['foo3', 3], [s, 2]]); +var map = new Map([ + [4, 4], + ['foo3', 3], + [s, 2] +]); map.set(null, 42); map.set(1, 'valid'); diff --git a/test/built-ins/Map/prototype/set/replaces-a-value-normalizes-zero-key.js b/test/built-ins/Map/prototype/set/replaces-a-value-normalizes-zero-key.js index 991c8a2770..427e7eb2c1 100644 --- a/test/built-ins/Map/prototype/set/replaces-a-value-normalizes-zero-key.js +++ b/test/built-ins/Map/prototype/set/replaces-a-value-normalizes-zero-key.js @@ -16,11 +16,15 @@ info: | ... ---*/ -var map = new Map([[+0, 1]]); +var map = new Map([ + [+0, 1] +]); map.set(-0, 42); assert.sameValue(map.get(+0), 42, 'zero key is normalized in SameValueZero'); -map = new Map([[-0, 1]]); +map = new Map([ + [-0, 1] +]); map.set(+0, 42); assert.sameValue(map.get(-0), 42, 'zero key is normalized in SameValueZero'); diff --git a/test/built-ins/Map/prototype/set/replaces-a-value-returns-map.js b/test/built-ins/Map/prototype/set/replaces-a-value-returns-map.js index 447a8c4d9e..f211e63a5b 100644 --- a/test/built-ins/Map/prototype/set/replaces-a-value-returns-map.js +++ b/test/built-ins/Map/prototype/set/replaces-a-value-returns-map.js @@ -17,7 +17,9 @@ info: | ... ---*/ -var map = new Map([['item', 0]]); +var map = new Map([ + ['item', 0] +]); var map2 = new Map(); var x = map.set('item', 42); diff --git a/test/built-ins/Map/prototype/set/replaces-a-value.js b/test/built-ins/Map/prototype/set/replaces-a-value.js index 35b339dc6b..21f48ea88b 100644 --- a/test/built-ins/Map/prototype/set/replaces-a-value.js +++ b/test/built-ins/Map/prototype/set/replaces-a-value.js @@ -16,7 +16,9 @@ info: | ... ---*/ -var m = new Map([['item', 1]]); +var m = new Map([ + ['item', 1] +]); m.set('item', 42); assert.sameValue(m.get('item'), 42); diff --git a/test/built-ins/MapIteratorPrototype/next/does-not-have-mapiterator-internal-slots-map.js b/test/built-ins/MapIteratorPrototype/next/does-not-have-mapiterator-internal-slots-map.js index 9d80385e54..68782caab4 100644 --- a/test/built-ins/MapIteratorPrototype/next/does-not-have-mapiterator-internal-slots-map.js +++ b/test/built-ins/MapIteratorPrototype/next/does-not-have-mapiterator-internal-slots-map.js @@ -16,7 +16,10 @@ info: | features: [Symbol.iterator] ---*/ -var map = new Map([[1, 11], [2, 22]]); +var map = new Map([ + [1, 11], + [2, 22] +]); var iterator = map[Symbol.iterator](); assert.throws(TypeError, function() { diff --git a/test/built-ins/MapIteratorPrototype/next/does-not-have-mapiterator-internal-slots.js b/test/built-ins/MapIteratorPrototype/next/does-not-have-mapiterator-internal-slots.js index 93e0c4cef1..0190d8c356 100644 --- a/test/built-ins/MapIteratorPrototype/next/does-not-have-mapiterator-internal-slots.js +++ b/test/built-ins/MapIteratorPrototype/next/does-not-have-mapiterator-internal-slots.js @@ -16,7 +16,10 @@ info: | features: [Symbol.iterator] ---*/ -var map = new Map([[1, 11], [2, 22]]); +var map = new Map([ + [1, 11], + [2, 22] +]); var iterator = map[Symbol.iterator](); assert.throws(TypeError, function() { diff --git a/test/built-ins/MapIteratorPrototype/next/this-not-object-throw-entries.js b/test/built-ins/MapIteratorPrototype/next/this-not-object-throw-entries.js index 968f79a349..56d0a4cd48 100644 --- a/test/built-ins/MapIteratorPrototype/next/this-not-object-throw-entries.js +++ b/test/built-ins/MapIteratorPrototype/next/this-not-object-throw-entries.js @@ -17,7 +17,10 @@ features: - Symbol.iterator ---*/ -var map = new Map([[1, 11], [2, 22]]); +var map = new Map([ + [1, 11], + [2, 22] +]); var iterator = map.entries(); assert.throws(TypeError, function() { diff --git a/test/built-ins/MapIteratorPrototype/next/this-not-object-throw-keys.js b/test/built-ins/MapIteratorPrototype/next/this-not-object-throw-keys.js index 06ac501d24..875ba5f369 100644 --- a/test/built-ins/MapIteratorPrototype/next/this-not-object-throw-keys.js +++ b/test/built-ins/MapIteratorPrototype/next/this-not-object-throw-keys.js @@ -17,7 +17,10 @@ features: - Symbol.iterator ---*/ -var map = new Map([[1, 11], [2, 22]]); +var map = new Map([ + [1, 11], + [2, 22] +]); var iterator = map.keys(); assert.throws(TypeError, function() { diff --git a/test/built-ins/MapIteratorPrototype/next/this-not-object-throw-prototype-iterator.js b/test/built-ins/MapIteratorPrototype/next/this-not-object-throw-prototype-iterator.js index dccb08c52d..912f5f15ec 100644 --- a/test/built-ins/MapIteratorPrototype/next/this-not-object-throw-prototype-iterator.js +++ b/test/built-ins/MapIteratorPrototype/next/this-not-object-throw-prototype-iterator.js @@ -17,7 +17,10 @@ features: - Symbol.iterator ---*/ -var map = new Map([[1, 11], [2, 22]]); +var map = new Map([ + [1, 11], + [2, 22] +]); var iterator = map[Symbol.iterator](); assert.throws(TypeError, function() { diff --git a/test/built-ins/MapIteratorPrototype/next/this-not-object-throw-values.js b/test/built-ins/MapIteratorPrototype/next/this-not-object-throw-values.js index 55a61d9a3d..79822a393c 100644 --- a/test/built-ins/MapIteratorPrototype/next/this-not-object-throw-values.js +++ b/test/built-ins/MapIteratorPrototype/next/this-not-object-throw-values.js @@ -17,7 +17,10 @@ features: - Symbol.iterator ---*/ -var map = new Map([[1, 11], [2, 22]]); +var map = new Map([ + [1, 11], + [2, 22] +]); var iterator = map.values(); assert.throws(TypeError, function() { diff --git a/test/built-ins/Math/abs/S15.8.2.1_A3.js b/test/built-ins/Math/abs/S15.8.2.1_A3.js index 4584dc9c9a..da4ec1890c 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 4917b4905c..b58e45dd56 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 0c2fda9657..33d88207c0 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 0b1d92a2a2..fafadc81bc 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 19f2509a17..5c0ea9823f 100644 --- a/test/built-ins/Math/atan2/S15.8.2.5_A16.js +++ b/test/built-ins/Math/atan2/S15.8.2.5_A16.js @@ -20,8 +20,7 @@ var ynum = 3; for (var i = 0; i < ynum; i++) { assert.sameValue( - Math.atan2(y[i], x), - -0, + Math.atan2(y[i], x), -0, "(" + y[i] + ", Infinity)" ); } diff --git a/test/built-ins/Math/atan2/S15.8.2.5_A4.js b/test/built-ins/Math/atan2/S15.8.2.5_A4.js index ef663e63ff..5472b973f1 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 64dc40028f..de7ff4e1e7 100644 --- a/test/built-ins/Math/atan2/S15.8.2.5_A8.js +++ b/test/built-ins/Math/atan2/S15.8.2.5_A8.js @@ -12,14 +12,13 @@ var y = -0; var x = new Array(); x[0] = 0.000000000000001; x[2] = +Infinity; -x[1] = 1; +x[1] = 1; var xnum = 3; for (var i = 0; i < xnum; i++) { assert.sameValue( - Math.atan2(y, x[i]), - -0, + Math.atan2(y, x[i]), -0, "(-0, " + x[i] + ")" ); } diff --git a/test/built-ins/Math/atanh/atanh-specialVals.js b/test/built-ins/Math/atanh/atanh-specialVals.js index b144e4bb5e..9148c1bb43 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 a1f9fcde0b..9ac640cabe 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 0a5a2657cc..e7d83a78fd 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 e600908cbf..6339e327e8 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 74e605aab0..c37068f60f 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 9f6f715923..b951f80d46 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 a22ee05a71..8d3ca7f5a7 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 b567b4406a..ef100a2835 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 7c36a759ad..ddb5445391 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 db4ba2d12a..11ea36c450 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 32054e3e62..6f8e4ca46e 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 94d37dc2f7..a4bb1e2042 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 3d62cc398e..65aa97904d 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 2cdb904864..a74af8c6e9 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 0d35398cab..290ce49310 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 37b598401c..2f19b43a79 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 4106a0a777..5fbe0deaa2 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 93854fdfce..b95438b2a7 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 1cf45192ef..045b73c50e 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 5a8411b760..341ea36e09 100644 --- a/test/built-ins/Math/log10/Log10-specialVals.js +++ b/test/built-ins/Math/log10/Log10-specialVals.js @@ -1,33 +1,32 @@ -// Copyright 2015 Microsoft Corporation. All rights reserved. -// This code is governed by the license found in the LICENSE file. - -/*--- -description: Math.Log10 with sample values. -es6id: 20.2.2.20 ----*/ - -assert.sameValue(Math.log10(-0), Number.NEGATIVE_INFINITY, - "Math.log10 produces incorrect output for -0"); -assert.sameValue(Math.log10(+0), Number.NEGATIVE_INFINITY, - "Math.log10 produces incorrect output for +0"); -assert.sameValue(Math.log10(-0.9), Number.NaN, - "Math.log10 produces incorrect output for -0.9"); -assert.sameValue(Math.log10(NaN), Number.NaN, - "Math.log10 produces incorrect output for NaN"); -assert.sameValue(Math.log10(-10), Number.NaN, - "Math.log10 produces incorrect output for -10"); -assert.sameValue(Math.log10(null), Number.NEGATIVE_INFINITY, - "Math.log10 produces incorrect output for null"); -assert.sameValue(Math.log10(undefined), Number.NaN, - "Math.log10 produces incorrect output for undefined"); -assert.sameValue(Math.log10(Number.POSITIVE_INFINITY), Number.POSITIVE_INFINITY, - "Math.log10 produces incorrect output for Number.POSITIVE_INFINITY"); -assert.sameValue(Math.log10(1), 0, - "Math.log10 produces incorrect output for 1"); -assert.sameValue(Math.log10(10.00), 1, - "Math.log10 produces incorrect output for 10.00"); -assert.sameValue(Math.log10(100.00), 2, - "Math.log10 produces incorrect output for 100.00"); -assert.sameValue(Math.log10(1000.00), 3, - "Math.log10 produces incorrect output for 1000.00"); - +// Copyright 2015 Microsoft Corporation. All rights reserved. +// This code is governed by the license found in the LICENSE file. + +/*--- +description: Math.Log10 with sample values. +es6id: 20.2.2.20 +---*/ + +assert.sameValue(Math.log10(-0), Number.NEGATIVE_INFINITY, + "Math.log10 produces incorrect output for -0"); +assert.sameValue(Math.log10(+0), Number.NEGATIVE_INFINITY, + "Math.log10 produces incorrect output for +0"); +assert.sameValue(Math.log10(-0.9), Number.NaN, + "Math.log10 produces incorrect output for -0.9"); +assert.sameValue(Math.log10(NaN), Number.NaN, + "Math.log10 produces incorrect output for NaN"); +assert.sameValue(Math.log10(-10), Number.NaN, + "Math.log10 produces incorrect output for -10"); +assert.sameValue(Math.log10(null), Number.NEGATIVE_INFINITY, + "Math.log10 produces incorrect output for null"); +assert.sameValue(Math.log10(undefined), Number.NaN, + "Math.log10 produces incorrect output for undefined"); +assert.sameValue(Math.log10(Number.POSITIVE_INFINITY), Number.POSITIVE_INFINITY, + "Math.log10 produces incorrect output for Number.POSITIVE_INFINITY"); +assert.sameValue(Math.log10(1), 0, + "Math.log10 produces incorrect output for 1"); +assert.sameValue(Math.log10(10.00), 1, + "Math.log10 produces incorrect output for 10.00"); +assert.sameValue(Math.log10(100.00), 2, + "Math.log10 produces incorrect output for 100.00"); +assert.sameValue(Math.log10(1000.00), 3, + "Math.log10 produces incorrect output for 1000.00"); diff --git a/test/built-ins/Math/log2/log2-basicTests.js b/test/built-ins/Math/log2/log2-basicTests.js index 3feeb1df4a..bd3bb510a3 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 a305b5b256..4fb9984f55 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 04aea82ec7..8507e9102d 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 fab69fcf30..7055503d30 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 ef52ac7855..0a396aeadb 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 3ec27bf76f..2c90b28658 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 d2555044cf..e4f16bed2e 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 a21cdb0be8..fc788b35f8 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 536b51474a..f44e1d30cd 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 9096d37fb3..daac829f45 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 a987088d6f..e5ab5e270d 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 ddf01dada1..565353c2c3 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 d0dc29cc2b..41d840c29c 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 f5b246ed65..5a2cf3b0e8 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 de41acd015..8075195490 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 826a4305bb..4104d287b5 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 e0edd6acf7..7fa5ecc466 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 a5bf6f33a3..1d8fa231af 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 10cc9f4666..4b5db856bc 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 cfc81a02a1..b5743303f0 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 8c0fff3b70..0447ef01c4 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 ffb74f3131..a96cd1124b 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 ad26e408e0..ed92c8bf5f 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 0e63fe895f..9026c223ce 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 cc93825cb2..beda3cd0f8 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 45bf9cba50..8cfd5fc324 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 27e9e57524..a26b2af2aa 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 92834c7305..a99c6cb50c 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 a1d6e1cb26..19efbf6b65 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 c8638ede8c..f775484dbd 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 2ed88aa61e..0fe23aa65e 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 e357fbe370..f2654376c9 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 c9e072c4b4..475c1eb9b5 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 797f524381..a4ec304857 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 e4bba35d8c..e867affdb8 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 7b620b069d..6b24e6c17a 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 8378470ec7..0a23c4427b 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 0435aa0df8..83c607d580 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 2136e588d4..d6a7450bd5 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 f13ec952da..a087f3247e 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 e42b6a024b..1d094a056f 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 f38fa26dd1..0b41b4d39a 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 ba99b06084..37106c76d3 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 bf524cd4c0..0782599cb1 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 9f7f11f08b..3bf26e28e5 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 d01bc84191..069c25eb88 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 dfe4f3e3f9..0e66e69d25 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 7c9dadce0c..9b1bff195c 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 c6b3261598..03ce9dfd52 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 7afcbf2bb9..3c20131298 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 7b79c2a4fa..449a752745 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 043024634b..6c7afa9e32 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 b77d071736..c3ea2aeac0 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 4958bef8ee..83ff9a762b 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 22fe3db003..3643e41ae3 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 7c64a6a7f4..947f8358e6 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 4c5eb4a238..762d85b114 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 fd36a65b1c..a7a260d10b 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 ea01590a57..f9ca248a69 100644 --- a/test/built-ins/Number/S8.12.8_A3.js +++ b/test/built-ins/Number/S8.12.8_A3.js @@ -13,12 +13,19 @@ description: > try { - var __obj = {toString: function() {return "1"}, valueOf: function() {return new Object();}} + var __obj = { + toString: function() { + return "1" + }, + valueOf: function() { + return new Object(); + } + } if (Number(__obj) !== 1) { $ERROR('#1.1: var __obj = {toNumber: function() {return "1"}, valueOf: function() {return new Object();}}; Number(__obj) === 1. Actual: ' + (Number(__obj))); } } -catch(e) +catch (e) { $ERROR('#1.2: var __obj = {toNumber: function() {return "1"}, valueOf: function() {return new Object();}}; Number(__obj) === 1. Actual: ' + (e)); } diff --git a/test/built-ins/Number/S8.12.8_A4.js b/test/built-ins/Number/S8.12.8_A4.js index 1a1aa0894f..1cd3cbf015 100644 --- a/test/built-ins/Number/S8.12.8_A4.js +++ b/test/built-ins/Number/S8.12.8_A4.js @@ -13,11 +13,18 @@ description: > try { - var __obj = {valueOf:function(){return new Object;},toString: function() {return new Object();}} + var __obj = { + valueOf: function() { + return new Object; + }, + toString: function() { + return new Object(); + } + } Number(__obj); $ERROR('#1.1: var __obj = {valueOf:function(){return new Object;},toNumber: function() {return new Object();}}; Number(__obj) throw TypeError. Actual: ' + (Number(__obj))); } -catch(e) +catch (e) { if ((e instanceof TypeError) !== true) { $ERROR('#1.2: var __obj = {valueOf:function(){return new Object;},toNumber: function() {return new Object();}}; Number(__obj) throw TypeError. Actual: ' + (e)); diff --git a/test/built-ins/Number/S9.1_A1_T1.js b/test/built-ins/Number/S9.1_A1_T1.js index b081181596..458f74711b 100644 --- a/test/built-ins/Number/S9.1_A1_T1.js +++ b/test/built-ins/Number/S9.1_A1_T1.js @@ -12,13 +12,27 @@ description: > ---*/ // CHECK#1 -var object = {valueOf: function() {return "1"}, toString: function() {return 0}}; +var object = { + valueOf: function() { + return "1" + }, + toString: function() { + return 0 + } +}; if (Number(object) !== 1) { $ERROR('#1: var object = {valueOf: function() {return "1"}, toString: function() {return 0}}; Number(object) === 1. Actual: ' + (Number(object))); } // CHECK#2 -var object = {valueOf: function() {return {}}, toString: function() {return "0"}}; +var object = { + valueOf: function() { + return {} + }, + toString: function() { + return "0" + } +}; if (Number(object) !== 0) { $ERROR('#2: var object = {valueOf: function() {return {}}, toString: function() {return "0"}}; Number(object) === 0. Actual: ' + (Number(object))); } diff --git a/test/built-ins/Number/S9.3.1_A1.js b/test/built-ins/Number/S9.3.1_A1.js index 030b818344..0730f50173 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 b13c0855e8..2f3206e5a9 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 b33d96633f..3d1ec721f2 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 57ff2f1756..4435832ca2 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 f356b228c7..08414f98b2 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 5b83689c80..e00fce7d71 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 5428195b72..41efa98803 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 a41a110fb0..8600d6eacb 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 0bccc171dc..1ab8affeb4 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 1982f636a3..5c17b0996d 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 e52c47e0e8..697c5e7231 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 76c6c6f8f3..c6a4614bf3 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 1fbf9ab104..32f800a364 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 d2f8a03dde..8ca71ebe3d 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 18cf4300da..c0d57edbc0 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 7f439f7296..c1970da5a5 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 0a96493939..671da26d20 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 526af63de9..a392efa30e 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 95a1c48030..4a2eba6674 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 d7fe6d8cb9..83c7986594 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 f62f3a778b..b08f679078 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 261bd8b1e4..f2e43e227d 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 6cc699d2bd..4a328c4688 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 31f860763c..143ae00314 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 2b1a70c10b..cb69897cca 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 0fd742865d..b9ed8acd77 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 5e1307fe71..13708e3bf7 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 5046e90f34..83d5b961ec 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 a1223636cd..2b84aa762f 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 2b2e68f8d9..d73f0d7931 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 4edb53988e..940ca1fc08 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 04a1250106..4e763ee487 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 ca4e35d084..8726eb9e74 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 35b9c8fabb..a12a7d66f8 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 6094444ecc..88110ad6fd 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 36cc4ccd0f..1f3cbd96ce 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 42321e8d82..798b22369d 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 23af423dc5..bdf4e43b8e 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 5536e9739d..e00d195eaa 100644 --- a/test/built-ins/Number/S9.3_A5_T1.js +++ b/test/built-ins/Number/S9.3_A5_T1.js @@ -29,7 +29,7 @@ assert.sameValue(Number(new Number(NaN)), NaN, "Number(new Number(NaN)"); if (Number(new Number(null)) !== 0) { $ERROR('#4.1: Number(new Number(null)) === 0. Actual: ' + (Number(new Number(null)))); } else { - if (1/Number(new Number(null)) !== Number.POSITIVE_INFINITY) { + if (1 / Number(new Number(null)) !== Number.POSITIVE_INFINITY) { $ERROR('#4.2: Number(new Number(null)) === +0. Actual: -0'); } } @@ -46,7 +46,7 @@ if (Number(new Number(true)) !== 1) { if (Number(new Number(false)) !== +0) { $ERROR('#7.1: Number(new Number(false)) === 0. Actual: ' + (Number(new Number(false)))); } else { - if (1/Number(new Number(false)) !== Number.POSITIVE_INFINITY) { + if (1 / Number(new Number(false)) !== Number.POSITIVE_INFINITY) { $ERROR('#7.2: Number(new Number(false)) === +0. Actual: -0'); } } @@ -60,56 +60,78 @@ if (Number(new Boolean(true)) !== 1) { if (Number(new Boolean(false)) !== +0) { $ERROR('#9.1: Number(new Boolean(false)) === 0. Actual: ' + (Number(new Boolean(false)))); } else { - if (1/Number(new Boolean(false)) !== Number.POSITIVE_INFINITY) { + if (1 / Number(new Boolean(false)) !== Number.POSITIVE_INFINITY) { $ERROR('#9.2: Number(new Boolean(false)) === +0. Actual: -0'); } } // CHECK#10 -assert.sameValue(Number(new Array(2,4,8,16,32)), NaN, "Number(new Array(2,4,8,16,32))"); +assert.sameValue(Number(new Array(2, 4, 8, 16, 32)), NaN, "Number(new Array(2,4,8,16,32))"); // CHECK#11 var myobj1 = { - ToNumber : function(){return 12345;}, - toString : function(){return "67890";}, - valueOf : function(){return "[object MyObj]";} - }; + ToNumber: function() { + return 12345; + }, + toString: function() { + return "67890"; + }, + valueOf: function() { + return "[object MyObj]"; + } +}; assert.sameValue(Number(myobj1), NaN, "Number(myobj1)"); // CHECK#12 var myobj2 = { - ToNumber : function(){return 12345;}, - toString : function(){return "67890";}, - valueOf : function(){return "9876543210";} - }; + ToNumber: function() { + return 12345; + }, + toString: function() { + return "67890"; + }, + valueOf: function() { + return "9876543210"; + } +}; -if (Number(myobj2) !== 9876543210){ +if (Number(myobj2) !== 9876543210) { $ERROR("#12: Number(myobj2) calls ToPrimitive with hint Number. Exptected: 9876543210. Actual: " + (Number(myobj2))); } // CHECK#13 var myobj3 = { - ToNumber : function(){return 12345;}, - toString : function(){return "[object MyObj]";} - }; + ToNumber: function() { + return 12345; + }, + toString: function() { + return "[object MyObj]"; + } +}; assert.sameValue(Number(myobj3), NaN, "Number(myobj3)"); // CHECK#14 var myobj4 = { - ToNumber : function(){return 12345;}, - toString : function(){return "67890";} - }; + ToNumber: function() { + return 12345; + }, + toString: function() { + return "67890"; + } +}; -if (Number(myobj4) !== 67890){ +if (Number(myobj4) !== 67890) { $ERROR("#14: Number(myobj4) calls ToPrimitive with hint Number. Exptected: 67890. Actual: " + (Number(myobj4))); } // CHECK#15 var myobj5 = { - ToNumber : function(){return 12345;} - }; + ToNumber: function() { + return 12345; + } +}; assert.sameValue(Number(myobj5), NaN, "Number(myobj5)"); diff --git a/test/built-ins/Number/prototype/15.7.3.1-2.js b/test/built-ins/Number/prototype/15.7.3.1-2.js index dbb49123f6..0d3bd2a221 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 5f86ce5fa5..5abcc2012d 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 a9c7aab468..a314e8c9c8 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 102060a357..46fc97dd6e 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 d233dc7e16..c4f97672cd 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 ad9b3ec4f2..ffae90cb49 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 76bb43fca8..11d7b1c404 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 7ff9bccfdd..5d54261f76 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 71efe0c735..4860f866df 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 fcd674d13a..edf58debfe 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 8560ade75f..f6f025f638 100644 --- a/test/built-ins/Number/prototype/toExponential/range.js +++ b/test/built-ins/Number/prototype/toExponential/range.js @@ -17,5 +17,3 @@ assert.throws(RangeError, () => (3).toExponential(-1)); assert.sameValue((3).toExponential(100), "3.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e+0"); assert.throws(RangeError, () => (3).toExponential(101)); - - diff --git a/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.1_T01.js b/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.1_T01.js index 726ceadd19..37dd400ede 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 00d8c80654..7732b7ee5c 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 ab98bf30c9..7fc8f14853 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 459fcd998d..cb96395d03 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 e2318bff2a..e577c80f0c 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 280def3767..ad7bf816cd 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 9bbfeeb868..106be090ee 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 ddaed46e7d..5c5b39cb0c 100644 --- a/test/built-ins/Number/prototype/toPrecision/range.js +++ b/test/built-ins/Number/prototype/toPrecision/range.js @@ -18,4 +18,3 @@ assert.throws(RangeError, () => (3).toPrecision(-10)); assert.sameValue((3).toPrecision(100), "3.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"); assert.throws(RangeError, () => (3).toPrecision(101)); - diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A1_T01.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A1_T01.js index 7100e76730..fb57dde963 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 48f0f4a845..73b2fb8e93 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 16c179d448..8ed410a745 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 20c270d5d2..fd829eee88 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 2d3d73c361..2bf3e565b7 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 33979bd07a..e6f6d98f88 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 f1a4eb7f42..d6f7c812db 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 8b9866606b..80da9e51e8 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 3422a253cb..aac01ee0a8 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 131adda254..334a1205f9 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 c668382830..50d674deef 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 e4a0903530..98014b16ce 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 5804302f3f..6a2f03a541 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 277dc39211..0103606719 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 eead1a5320..86b09f7ee0 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 01b284aaf0..22947fb578 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 ed1c70aae6..9daf9df1a3 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 5355c100f3..2154961ee3 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 5367718efd..b2c9559b19 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 bc51f7c3a3..93469824ba 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 f5ebae9497..3c0aa4a404 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 a424798348..1ccdc57c6b 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 8ee2cae70a..762ef884db 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 6588d3e702..d7bb9b9e92 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 f9e726d495..90f3a18f5e 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 7a8be29a9d..4d959df962 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 46b4b8c66b..a17f094194 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 534de71ecb..69bb10dc8a 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 71cd097751..f80f78216a 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 f8dd136b8a..e76d243934 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 deda5fc2e3..1785e33be0 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 c675984c07..13d43a251c 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 abe0383848..41055500e0 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 9f0187a6a6..b14849bfa0 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 99543d170c..9de1cca336 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 be9013758b..55fb04064f 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 7c2cfabbc2..82f8fea872 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 bc2190c3e0..cc6b6aadc1 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T01.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T01.js @@ -8,65 +8,57 @@ description: radix is 1 ---*/ //CHECK#1 -try{ +try { var n = Number.prototype.toString(1); $ERROR('#1: Number.prototype.toString(1) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#2 -try{ +try { var n = (new Number()).toString(1); $ERROR('#2: (new Number()).toString(1) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#3 -try{ +try { var n = (new Number(0)).toString(1); $ERROR('#3: (new Number(0)).toString(1) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#4 -try{ +try { var n = (new Number(-1)).toString(1); $ERROR('#4: (new Number(-1)).toString(1) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#5 -try{ - var n =(new Number(1)).toString(1); +try { + var n = (new Number(1)).toString(1); $ERROR('#5: (new Number(1)).toString(1) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#6 -try{ - var n =(new Number(Number.NaN)).toString(1); +try { + var n = (new Number(Number.NaN)).toString(1); $ERROR('#6: (new Number(Number.NaN)).toString(1) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#7 -try{ - var n =(new Number(Number.POSITIVE_INFINITY)).toString(1); +try { + var n = (new Number(Number.POSITIVE_INFINITY)).toString(1); $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(1) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#8 -try{ - var n =(new Number(Number.NEGATIVE_INFINITY)).toString(1); +try { + var n = (new Number(Number.NEGATIVE_INFINITY)).toString(1); $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(1) should throw an Error'); } -catch(e){ -} +catch (e) {} diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T02.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T02.js index e26c3aa290..1033c384fb 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T02.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T02.js @@ -8,65 +8,57 @@ description: radix is 37 ---*/ //CHECK#1 -try{ - var n =Number.prototype.toString(37); +try { + var n = Number.prototype.toString(37); $ERROR('#1: Number.prototype.toString(37) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#2 -try{ - var n =(new Number()).toString(37); +try { + var n = (new Number()).toString(37); $ERROR('#2: (new Number()).toString(37) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#3 -try{ - var n =(new Number(0)).toString(37); +try { + var n = (new Number(0)).toString(37); $ERROR('#3: (new Number(0)).toString(37) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#4 -try{ - var n =(new Number(-1)).toString(37); +try { + var n = (new Number(-1)).toString(37); $ERROR('#4: (new Number(-1)).toString(37) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#5 -try{ - var n =(new Number(1)).toString(37); +try { + var n = (new Number(1)).toString(37); $ERROR('#5: (new Number(1)).toString(37) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#6 -try{ - var n =(new Number(Number.NaN)).toString(37); +try { + var n = (new Number(Number.NaN)).toString(37); $ERROR('#6: (new Number(Number.NaN)).toString(37) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#7 -try{ - var n =(new Number(Number.POSITIVE_INFINITY)).toString(37); +try { + var n = (new Number(Number.POSITIVE_INFINITY)).toString(37); $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(37) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#8 -try{ - var n =(new Number(Number.NEGATIVE_INFINITY)).toString(37); +try { + var n = (new Number(Number.NEGATIVE_INFINITY)).toString(37); $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(37) should throw an Error'); } -catch(e){ -} +catch (e) {} diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T03.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T03.js index a612293269..8c7b1ca54a 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T03.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T03.js @@ -8,65 +8,57 @@ description: radix is null value ---*/ //CHECK#1 -try{ +try { var n = Number.prototype.toString(null); $ERROR('#1: Number.prototype.toString(null) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#2 -try{ +try { var n = (new Number()).toString(null); $ERROR('#2: (new Number()).toString(null) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#3 -try{ +try { var n = (new Number(0)).toString(null); $ERROR('#3: (new Number(0)).toString(null) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#4 -try{ +try { var n = (new Number(-1)).toString(null); $ERROR('#4: (new Number(-1)).toString(null) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#5 -try{ +try { var n = (new Number(1)).toString(null); $ERROR('#5: (new Number(1)).toString(null) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#6 -try{ +try { var n = (new Number(Number.NaN)).toString(null); $ERROR('#6: (new Number(Number.NaN)).toString(null) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#7 -try{ +try { var n = (new Number(Number.POSITIVE_INFINITY)).toString(null); $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(null) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#8 -try{ +try { var n = (new Number(Number.NEGATIVE_INFINITY)).toString(null); $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(null) should throw an Error'); } -catch(e){ -} +catch (e) {} diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T04.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T04.js index 9437e809cd..5a42dc9cf2 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T04.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T04.js @@ -8,65 +8,57 @@ description: radix is 0 ---*/ //CHECK#1 -try{ +try { var n = Number.prototype.toString(0); $ERROR('#1: Number.prototype.toString(0) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#2 -try{ +try { var n = (new Number()).toString(0); $ERROR('#2: (new Number()).toString(0) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#3 -try{ +try { var n = (new Number(0)).toString(0); $ERROR('#3: (new Number(0)).toString(0) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#4 -try{ +try { var n = (new Number(-1)).toString(0); $ERROR('#4: (new Number(-1)).toString(0) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#5 -try{ +try { var n = (new Number(1)).toString(0); $ERROR('#5: (new Number(1)).toString(0) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#6 -try{ +try { var n = (new Number(Number.NaN)).toString(0); $ERROR('#6: (new Number(Number.NaN)).toString(0) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#7 -try{ +try { var n = (new Number(Number.POSITIVE_INFINITY)).toString(0); $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(0) should throw an Error'); } -catch(e){ -} +catch (e) {} //CHECK#8 -try{ +try { var n = (new Number(Number.NEGATIVE_INFINITY)).toString(0); $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(0) should throw an Error'); } -catch(e){ -} +catch (e) {} diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T01.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T01.js index f057f3b1c9..44d3c72f81 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 ba45672d6d..23a395ee14 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 182a873aa4..c0fb163144 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 bb62879f21..32950e329d 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 01e34d92a4..fc0f76e86e 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T05.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T05.js @@ -11,27 +11,31 @@ description: transferring to the other objects ---*/ //CHECK#1 -try{ - var s1 = {x: 1}; +try { + var s1 = { + x: 1 + }; s1.toString = Number.prototype.toString; - var v1 = s1.toString(); + var v1 = s1.toString(); $ERROR('#1: Number.prototype.toString on not a Number object should throw TypeError'); } -catch(e){ - if(!(e instanceof TypeError)){ - $ERROR('#1: Number.prototype.toString on not a Number object should throw TypeError, not '+e); +catch (e) { + if (!(e instanceof TypeError)) { + $ERROR('#1: Number.prototype.toString on not a Number object should throw TypeError, not ' + e); } } //CHECK#2 -try{ - var s2 = {x: 1}; +try { + var s2 = { + x: 1 + }; s2.myToString = Number.prototype.toString; - var v2 = s2.myToString(); + var v2 = s2.myToString(); $ERROR('#2: Number.prototype.toString on not a Number object should throw TypeError'); } -catch(e){ - if(!(e instanceof TypeError)){ - $ERROR('#2: Number.prototype.toString on not a Number object should throw TypeError, not '+e); +catch (e) { + if (!(e instanceof TypeError)) { + $ERROR('#2: Number.prototype.toString on not a Number object should throw TypeError, not ' + e); } } diff --git a/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A1_T01.js b/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A1_T01.js index 1345810ac7..0bb16d143b 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 4f4a443894..ff22bf71f2 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 eae012d634..dc32174b42 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 56521db0ab..61c6c6369e 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 5d7a68dcd1..503ca141e7 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 e6011f8d32..af1438ba8d 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 625dc68dee..eb862fd33f 100644 --- a/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T05.js +++ b/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T05.js @@ -11,27 +11,31 @@ description: transferring to the other objects ---*/ //CHECK#1 -try{ - var s1 = {x: 1}; +try { + var s1 = { + x: 1 + }; s1.valueOf = Number.prototype.valueOf; - var v1 = s1.valueOf(); + var v1 = s1.valueOf(); $ERROR('#1: Number.prototype.valueOf on not a Number object should throw TypeError'); } -catch(e){ - if(!(e instanceof TypeError)){ - $ERROR('#1: Number.prototype.valueOf on not a Number object should throw TypeError, not '+e); +catch (e) { + if (!(e instanceof TypeError)) { + $ERROR('#1: Number.prototype.valueOf on not a Number object should throw TypeError, not ' + e); } } //CHECK#2 -try{ - var s2 = {x: 1}; +try { + var s2 = { + x: 1 + }; s2.myValueOf = Number.prototype.valueOf; - var v2 = s2.myValueOf(); + var v2 = s2.myValueOf(); $ERROR('#2: Number.prototype.valueOf on not a Number object should throw TypeError'); } -catch(e){ - if(!(e instanceof TypeError)){ - $ERROR('#2: Number.prototype.valueOf on not a Number object should throw TypeError, not '+e); +catch (e) { + if (!(e instanceof TypeError)) { + $ERROR('#2: Number.prototype.valueOf on not a Number object should throw TypeError, not ' + e); } } diff --git a/test/built-ins/Number/string-numeric-separator-literal-dd-dot-dd-ep-sign-plus-dds-nsl-dd.js b/test/built-ins/Number/string-numeric-separator-literal-dd-dot-dd-ep-sign-plus-dds-nsl-dd.js index 36d2d44bfe..7f840db50e 100644 --- a/test/built-ins/Number/string-numeric-separator-literal-dd-dot-dd-ep-sign-plus-dds-nsl-dd.js +++ b/test/built-ins/Number/string-numeric-separator-literal-dd-dot-dd-ep-sign-plus-dds-nsl-dd.js @@ -26,4 +26,3 @@ features: [numeric-separator-literal] ---*/ assert.sameValue(Number("1.0e+10_0"), NaN, "1.0e+10_0"); - diff --git a/test/built-ins/Number/string-numeric-separator-literal-nzd-nsl-dd-one-of.js b/test/built-ins/Number/string-numeric-separator-literal-nzd-nsl-dd-one-of.js index 1b48592c98..888e62fb14 100644 --- a/test/built-ins/Number/string-numeric-separator-literal-nzd-nsl-dd-one-of.js +++ b/test/built-ins/Number/string-numeric-separator-literal-nzd-nsl-dd-one-of.js @@ -37,5 +37,3 @@ assert.sameValue(Number("6_6"), NaN, "6_6"); assert.sameValue(Number("7_7"), NaN, "7_7"); assert.sameValue(Number("8_8"), NaN, "8_8"); assert.sameValue(Number("9_9"), NaN, "9_9"); - - diff --git a/test/built-ins/Object/S15.2.1.1_A1_T1.js b/test/built-ins/Object/S15.2.1.1_A1_T1.js index a7b7554443..ed1059c682 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 db9f99a704..d49d7c709f 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 4f572b14e3..47685eae43 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 ebfbe5d233..15a35d0a05 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 5d1bf5bfe3..bf55633125 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 a6d56a54a0..48bfbfd6e1 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 bc3778df19..c0f0606d78 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 53e4e3884d..03ca6fbccb 100644 --- a/test/built-ins/Object/S15.2.1.1_A2_T11.js +++ b/test/built-ins/Object/S15.2.1.1_A2_T11.js @@ -14,10 +14,12 @@ if (typeof func !== 'undefined') { $ERROR('#1: function expression can\'t be declarated'); } -var n_obj = Object(function func(){return 1;}); +var n_obj = Object(function func() { + return 1; +}); //CHECK#2 -if ((n_obj.constructor !== Function)||(n_obj()!==1)) { +if ((n_obj.constructor !== Function) || (n_obj() !== 1)) { $ERROR('#2: Object(function func(){return 1;}) returns function'); } diff --git a/test/built-ins/Object/S15.2.1.1_A2_T12.js b/test/built-ins/Object/S15.2.1.1_A2_T12.js index da3f46fd03..820956ed6b 100644 --- a/test/built-ins/Object/S15.2.1.1_A2_T12.js +++ b/test/built-ins/Object/S15.2.1.1_A2_T12.js @@ -9,7 +9,9 @@ es5id: 15.2.1.1_A2_T12 description: Calling Object function with numeric expression as argument value ---*/ -var obj = Object(1.1*([].length+{q:1}["q"])); +var obj = Object(1.1 * ([].length + { + q: 1 +}["q"])); //CHECK#2 if (typeof obj !== "object") { @@ -22,7 +24,7 @@ if (obj.constructor !== Number) { } //CHECK#4 -if ((obj != 1.1)||(obj === 1.1)) { +if ((obj != 1.1) || (obj === 1.1)) { $ERROR('#4: Object(expression) returns ToObject(expression)'); } // diff --git a/test/built-ins/Object/S15.2.1.1_A2_T13.js b/test/built-ins/Object/S15.2.1.1_A2_T13.js index 09ba92926f..d301fb5ecc 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 02fe89f795..69e4299315 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 1a71e961ef..d9241c2ce0 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 8a99ff9660..f0dc0a6158 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 6d9cd33c8b..21090a7a1d 100644 --- a/test/built-ins/Object/S15.2.1.1_A2_T4.js +++ b/test/built-ins/Object/S15.2.1.1_A2_T4.js @@ -9,7 +9,9 @@ es5id: 15.2.1.1_A2_T4 description: Calling Object function with object argument value ---*/ -var obj = {flag:true}; +var obj = { + flag: true +}; //CHECK#1 if (typeof(obj) !== 'object') { @@ -19,6 +21,6 @@ if (typeof(obj) !== 'object') { var n_obj = Object(obj); //CHECK#2 -if ((n_obj !== obj)||(!(n_obj['flag']))) { +if ((n_obj !== obj) || (!(n_obj['flag']))) { $ERROR('#2: Object({flag:true}) returns ToObject({flag:true})'); } diff --git a/test/built-ins/Object/S15.2.1.1_A2_T5.js b/test/built-ins/Object/S15.2.1.1_A2_T5.js index 0b23040891..ff1c17d8bf 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 9621af10f2..0d1d4a3bb5 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 27fa0b2b80..33d4117cd7 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 16b04489f6..a55517655f 100644 --- a/test/built-ins/Object/S15.2.1.1_A2_T8.js +++ b/test/built-ins/Object/S15.2.1.1_A2_T8.js @@ -9,7 +9,9 @@ es5id: 15.2.1.1_A2_T8 description: Calling Object function with function variable argument value ---*/ -var func = function(){return 1;}; +var func = function() { + return 1; +}; //CHECK#1 if (typeof func !== 'function') { @@ -19,6 +21,6 @@ if (typeof func !== 'function') { var n_obj = Object(func); //CHECK#2 -if ((n_obj !== func)||(n_obj()!==1)) { +if ((n_obj !== func) || (n_obj() !== 1)) { $ERROR('#2: Object(function) returns function'); } diff --git a/test/built-ins/Object/S15.2.1.1_A2_T9.js b/test/built-ins/Object/S15.2.1.1_A2_T9.js index c41c5b646c..223566efc1 100644 --- a/test/built-ins/Object/S15.2.1.1_A2_T9.js +++ b/test/built-ins/Object/S15.2.1.1_A2_T9.js @@ -19,8 +19,10 @@ if (typeof func !== 'function') { var n_obj = Object(func); //CHECK#2 -if ((n_obj !== func)||(n_obj()!==1)) { +if ((n_obj !== func) || (n_obj() !== 1)) { $ERROR('#2: Object(function) returns function'); } -function func(){return 1;}; +function func() { + return 1; +}; diff --git a/test/built-ins/Object/S15.2.1.1_A3_T1.js b/test/built-ins/Object/S15.2.1.1_A3_T1.js index 49a0d680c8..de23e0a570 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 9e4739970d..a19658eaaa 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 5666f47ed0..6d45592dae 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 bacba29d83..f2ca067e80 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 a54cffbef1..9d073d2158 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 f6845dd282..754853b211 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 36b2fe8d5b..c04305b17b 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 ccd859a6b0..b2835a9b86 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 ef78c47baa..1740d2fb23 100644 --- a/test/built-ins/Object/S15.2.2.1_A2_T1.js +++ b/test/built-ins/Object/S15.2.2.1_A2_T1.js @@ -9,7 +9,9 @@ es5id: 15.2.2.1_A2_T1 description: The value is Object ---*/ -var obj = {prop:1}; +var obj = { + prop: 1 +}; var n_obj = new Object(obj); diff --git a/test/built-ins/Object/S15.2.2.1_A2_T2.js b/test/built-ins/Object/S15.2.2.1_A2_T2.js index 20dcf2ab43..58fb4f0b53 100644 --- a/test/built-ins/Object/S15.2.2.1_A2_T2.js +++ b/test/built-ins/Object/S15.2.2.1_A2_T2.js @@ -9,7 +9,9 @@ es5id: 15.2.2.1_A2_T2 description: The value is a function variable ---*/ -var func = function(){return 1;}; +var func = function() { + return 1; +}; var n_obj = new Object(func); diff --git a/test/built-ins/Object/S15.2.2.1_A2_T3.js b/test/built-ins/Object/S15.2.2.1_A2_T3.js index b6676e1126..2321141c2f 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 ece80f4564..a0bb964544 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 dd35d07dce..f2cdbfbf78 100644 --- a/test/built-ins/Object/S15.2.2.1_A2_T6.js +++ b/test/built-ins/Object/S15.2.2.1_A2_T6.js @@ -21,4 +21,6 @@ if (n_obj() !== 1) { $ERROR('When the Object constructor is called and if the value is an Object simply value returns'); } -function func(){return 1;}; +function func() { + return 1; +}; diff --git a/test/built-ins/Object/S15.2.2.1_A2_T7.js b/test/built-ins/Object/S15.2.2.1_A2_T7.js index f2d898fa79..a4cf47654c 100644 --- a/test/built-ins/Object/S15.2.2.1_A2_T7.js +++ b/test/built-ins/Object/S15.2.2.1_A2_T7.js @@ -14,7 +14,9 @@ if (typeof func !== 'undefined') { $ERROR('#0: function expression can\'t be declarated'); } -var n_obj = new Object(function func(){return 1;}); +var n_obj = new Object(function func() { + return 1; +}); //CHECK#1 if (n_obj.constructor !== Function) { diff --git a/test/built-ins/Object/S15.2.2.1_A3_T1.js b/test/built-ins/Object/S15.2.2.1_A3_T1.js index c1904f5e76..a1aca13ca6 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 d70da9bcfe..5b4a35edfb 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 e79b57a344..8210a7d3e4 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 247ad06ea5..f3238f139c 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 7e39823dbf..c84eeeed56 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 0cf3249979..9515740fc0 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 658cf0e17d..ec8809219d 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 7e55724018..722d6b38df 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 188734c9ba..ae1d15c912 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 0d4e8ec8c2..1ea06e2c91 100644 --- a/test/built-ins/Object/S15.2.2.1_A5_T4.js +++ b/test/built-ins/Object/S15.2.2.1_A5_T4.js @@ -9,7 +9,9 @@ es5id: 15.2.2.1_A5_T4 description: Argument value is numeric expression ---*/ -var n_obj = new Object( 2*([].length + {q:1}["q"])); +var n_obj = new Object(2 * ([].length + { + q: 1 +}["q"])); //CHECK#2 if (n_obj.constructor !== Number) { @@ -22,11 +24,11 @@ if (typeof n_obj !== 'object') { } //CHECK#4 -if ( n_obj != 2) { +if (n_obj != 2) { $ERROR('#4: When the Object constructor is called with Number argument return ToObject(number)'); } //CHECK#5 -if ( n_obj === 2) { +if (n_obj === 2) { $ERROR('#5: When the Object constructor is called with Number argument return ToObject(number)'); } diff --git a/test/built-ins/Object/S15.2.2.1_A6_T1.js b/test/built-ins/Object/S15.2.2.1_A6_T1.js index 45d034977c..23f73a818e 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 136338da6a..537ed6e546 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 b7e307151f..cee0898bae 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 0b7564f500..663f1eaaf1 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 0c72e32832..cdff0f5ad4 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 6cbac35e03..b8bc45d87e 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 0c10e8736a..b527535393 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 36e813e8c0..7421de20ce 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 f6ff7e642c..a303eafc9f 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 b6c19d4a67..566177e3ac 100644 --- a/test/built-ins/Object/S9.9_A6.js +++ b/test/built-ins/Object/S9.9_A6.js @@ -9,31 +9,33 @@ es5id: 9.9_A6 description: Converting from Objects to Object ---*/ -function MyObject( val ) { - this.value = val; - this.valueOf = function (){ return this.value; } +function MyObject(val) { + this.value = val; + this.valueOf = function() { + return this.value; + } } var x = new MyObject(1); var y = Object(x); // CHECK#1 -if (y.valueOf() !== x.valueOf()){ +if (y.valueOf() !== x.valueOf()) { $ERROR('#1: Object(obj).valueOf() === obj.valueOf(). Actual: ' + (Object(obj).valueOf())); } // CHECK#2 -if (typeof y !== typeof x){ +if (typeof y !== typeof x) { $ERROR('#2: typeof Object(obj) === typeof obj. Actual: ' + (typeof Object(obj))); } // CHECK#3 -if (y.constructor.prototype !== x.constructor.prototype){ +if (y.constructor.prototype !== x.constructor.prototype) { $ERROR('#3: Object(obj).constructor.prototype === obj.constructor.prototype. Actual: ' + (Object(obj).constructor.prototype)); } // CHECK#4 -if (y !== x){ +if (y !== x) { $ERROR('#4: Object(obj) === obj'); } diff --git a/test/built-ins/Object/assign/ObjectOverride-sameproperty.js b/test/built-ins/Object/assign/ObjectOverride-sameproperty.js index dab26f33fa..6256691118 100644 --- a/test/built-ins/Object/assign/ObjectOverride-sameproperty.js +++ b/test/built-ins/Object/assign/ObjectOverride-sameproperty.js @@ -7,7 +7,13 @@ description: Object properties are assigned to target in ascending index order, es6id: 19.1.2.1 ---*/ -var target = {a: 1}; -var result = Object.assign(target,{a:2},{a:"c"}); +var target = { + a: 1 +}; +var result = Object.assign(target, { + a: 2 +}, { + a: "c" +}); assert.sameValue(result.a, "c", "The value should be 'c'."); diff --git a/test/built-ins/Object/assign/Override-notstringtarget.js b/test/built-ins/Object/assign/Override-notstringtarget.js index 49ade3cb54..8621d75ddc 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 efe94452ef..cb0f60a8ee 100644 --- a/test/built-ins/Object/assign/Override.js +++ b/test/built-ins/Object/assign/Override.js @@ -7,7 +7,9 @@ esid: sec-object.assign ---*/ //"a" will be an property of the final object and the value should be 1 -var target = {a:1}; +var target = { + a: 1 +}; /* "1a2c3" have own enumerable properties, so it Should be wrapped to objects; {b:6} is an object,should be assigned to final object. @@ -15,9 +17,15 @@ undefined and null should be ignored; 125 is a number,it cannot has own enumerable properties; {a:"c"},{a:5} will override property a, the value should be 5. */ -var result = Object.assign(target,"1a2c3",{a:"c"},undefined,{b:6},null,125,{a:5}); +var result = Object.assign(target, "1a2c3", { + a: "c" +}, undefined, { + b: 6 +}, null, 125, { + a: 5 +}); -assert.sameValue(Object.keys(result).length, 7 , "The length should be 7 in the final object."); +assert.sameValue(Object.keys(result).length, 7, "The length should be 7 in the final object."); assert.sameValue(result.a, 5, "The value should be {a:5}."); assert.sameValue(result[0], "1", "The value should be {\"0\":\"1\"}."); assert.sameValue(result[1], "a", "The value should be {\"1\":\"a\"}."); diff --git a/test/built-ins/Object/assign/Source-Null-Undefined.js b/test/built-ins/Object/assign/Source-Null-Undefined.js index 8e8da3d2fb..b41e102fc0 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 eae453e21f..9989bb2094 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 fe2a8adf6a..78e006461e 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 d41c4ba5d0..457190cbfe 100644 --- a/test/built-ins/Object/assign/Target-Boolean.js +++ b/test/built-ins/Object/assign/Target-Boolean.js @@ -7,6 +7,8 @@ description: Test the first argument(target) of Object.Assign(target,...sources) es6id: 19.1.2.1.1 ---*/ -var result = Object.assign(true,{a:1}); +var result = Object.assign(true, { + a: 1 +}); assert.sameValue(typeof result, "object", "Return value should be an object."); assert.sameValue(result.valueOf(), true, "Return value should be true."); diff --git a/test/built-ins/Object/assign/Target-Null.js b/test/built-ins/Object/assign/Target-Null.js index d5eb7803e3..07223a7e4a 100644 --- a/test/built-ins/Object/assign/Target-Null.js +++ b/test/built-ins/Object/assign/Target-Null.js @@ -7,4 +7,8 @@ description: Test the first argument(target) of Object.Assign(target,...sources) es6id: 19.1.2.1.1 ---*/ -assert.throws(TypeError, function(){Object.assign(null, {a:1});}); +assert.throws(TypeError, function() { + Object.assign(null, { + a: 1 + }); +}); diff --git a/test/built-ins/Object/assign/Target-Number.js b/test/built-ins/Object/assign/Target-Number.js index 0971ca3d10..0dde68edcf 100644 --- a/test/built-ins/Object/assign/Target-Number.js +++ b/test/built-ins/Object/assign/Target-Number.js @@ -7,6 +7,8 @@ description: Test the first argument(target) of Object.Assign(target,...sources) es6id: 19.1.2.1.1 ---*/ -var result = Object.assign(1,{a:1}); +var result = Object.assign(1, { + a: 1 +}); assert.sameValue(typeof result, "object", "Return value should be an object."); assert.sameValue(result.valueOf(), 1, "Return value should be 1."); diff --git a/test/built-ins/Object/assign/Target-Object.js b/test/built-ins/Object/assign/Target-Object.js index d3ba7da0f8..2aa73287f3 100644 --- a/test/built-ins/Object/assign/Target-Object.js +++ b/test/built-ins/Object/assign/Target-Object.js @@ -7,8 +7,12 @@ description: Test the first argument(target) of Object.Assign(target,...sources) es6id: 19.1.2.1.1 ---*/ -var target = {foo: 1}; -var result = Object.assign(target,{a:2}); +var target = { + foo: 1 +}; +var result = Object.assign(target, { + a: 2 +}); assert.sameValue(result.foo, 1, "The value should be {foo: 1}."); assert.sameValue(result.a, 2, "The value should be {a: 2}."); diff --git a/test/built-ins/Object/assign/Target-String.js b/test/built-ins/Object/assign/Target-String.js index 2adecfb31f..0ecbe714c8 100644 --- a/test/built-ins/Object/assign/Target-String.js +++ b/test/built-ins/Object/assign/Target-String.js @@ -7,6 +7,8 @@ description: Test the first argument(target) of Object.Assign(target,...sources) es6id: 19.1.2.1.1 ---*/ -var result = Object.assign("test",{a:1}); +var result = Object.assign("test", { + a: 1 +}); assert.sameValue(typeof result, "object", "Return value should be an object."); assert.sameValue(result.valueOf(), "test", "Return value should be 'test'."); diff --git a/test/built-ins/Object/assign/Target-Symbol.js b/test/built-ins/Object/assign/Target-Symbol.js index 2c24f4b504..0917822f4d 100644 --- a/test/built-ins/Object/assign/Target-Symbol.js +++ b/test/built-ins/Object/assign/Target-Symbol.js @@ -9,7 +9,9 @@ features: [Symbol] ---*/ var target = Symbol('foo'); -var result = Object.assign(target,{a:1}); +var result = Object.assign(target, { + a: 1 +}); assert.sameValue(typeof result, "object", "Return value should be a symbol object."); assert.sameValue(result.toString(), "Symbol(foo)", "Return value should be 'Symbol(foo)'."); diff --git a/test/built-ins/Object/assign/Target-Undefined.js b/test/built-ins/Object/assign/Target-Undefined.js index 9df5bee105..03189f1779 100644 --- a/test/built-ins/Object/assign/Target-Undefined.js +++ b/test/built-ins/Object/assign/Target-Undefined.js @@ -7,4 +7,8 @@ description: Test the first argument(target) of Object.Assign(target,...sources) es6id: 19.1.2.1.1 ---*/ -assert.throws(TypeError, function(){Object.assign(undefined, {a:1});}); +assert.throws(TypeError, function() { + Object.assign(undefined, { + a: 1 + }); +}); diff --git a/test/built-ins/Object/assign/name.js b/test/built-ins/Object/assign/name.js index ba9dd0fbbb..6cb22e25c5 100644 --- a/test/built-ins/Object/assign/name.js +++ b/test/built-ins/Object/assign/name.js @@ -28,4 +28,3 @@ assert.sameValue( verifyNotEnumerable(Object.assign, 'name'); verifyNotWritable(Object.assign, 'name'); verifyConfigurable(Object.assign, 'name'); - diff --git a/test/built-ins/Object/assign/source-own-prop-error.js b/test/built-ins/Object/assign/source-own-prop-error.js index c6b7297fbd..cea4275b9a 100644 --- a/test/built-ins/Object/assign/source-own-prop-error.js +++ b/test/built-ins/Object/assign/source-own-prop-error.js @@ -13,7 +13,9 @@ info: | features: [Proxy] ---*/ -var source = new Proxy({ attr: null }, { +var source = new Proxy({ + attr: null +}, { getOwnPropertyDescriptor: function() { throw new Test262Error(); } diff --git a/test/built-ins/Object/assign/target-set-not-writable.js b/test/built-ins/Object/assign/target-set-not-writable.js index 4d751c595a..ad4b9704f8 100644 --- a/test/built-ins/Object/assign/target-set-not-writable.js +++ b/test/built-ins/Object/assign/target-set-not-writable.js @@ -21,5 +21,7 @@ Object.defineProperty(target, 'attr', { }); assert.throws(TypeError, function() { - Object.assign(target, { attr: 1 }); + Object.assign(target, { + attr: 1 + }); }); diff --git a/test/built-ins/Object/assign/target-set-user-error.js b/test/built-ins/Object/assign/target-set-user-error.js index b235b983eb..8aec2c0959 100644 --- a/test/built-ins/Object/assign/target-set-user-error.js +++ b/test/built-ins/Object/assign/target-set-user-error.js @@ -23,5 +23,7 @@ Object.defineProperty(target, 'attr', { }); assert.throws(Test262Error, function() { - Object.assign(target, { attr: 1 }); + Object.assign(target, { + attr: 1 + }); }); diff --git a/test/built-ins/Object/create/15.2.3.5-1-1.js b/test/built-ins/Object/create/15.2.3.5-1-1.js index dfec567946..93e0267839 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 36226f322a..d15171aa3a 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 2a8aa4b639..5e88a60a58 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 e33ef8ddb4..c748a5f1fd 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 645c0c974f..1b44ca3751 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 a9a8c7b83b..4b340210c3 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 d853baffe8..a3687ef845 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 a63a939ad3..94e4050b69 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 be6c0fa63d..cbcefe7684 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-1.js +++ b/test/built-ins/Object/create/15.2.3.5-4-1.js @@ -11,11 +11,19 @@ description: > new properties ---*/ - function base() {} - var b = new base(); - var prop = new Object(); - var d = Object.create(b,{ "x": {value: true,writable: false}, - "y": {value: "str",writable: false} }); +function base() {} +var b = new base(); +var prop = new Object(); +var d = Object.create(b, { + "x": { + value: true, + writable: false + }, + "y": { + value: "str", + writable: false + } +}); assert.sameValue(Object.getPrototypeOf(d), b, 'Object.getPrototypeOf(d)'); assert.sameValue(b.isPrototypeOf(d), true, 'b.isPrototypeOf(d)'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-10.js b/test/built-ins/Object/create/15.2.3.5-4-10.js index b62c3b3c42..55d42da32a 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 17f2ea33b4..d219852c9f 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 a1aac19d69..84bcf29eb5 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 d8fbe1baa5..88aebe8b6e 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 6217dc79a4..cd95c4308e 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-103.js +++ b/test/built-ins/Object/create/15.2.3.5-4-103.js @@ -11,21 +11,20 @@ includes: [propertyHelper.js] ---*/ var proto = { - configurable: true + configurable: true }; -var ConstructFun = function () { }; +var ConstructFun = function() {}; ConstructFun.prototype = proto; var descObj = new ConstructFun(); Object.defineProperty(descObj, "configurable", { - value: false + value: false }); var newObj = Object.create({}, { - prop: descObj + prop: descObj }); assert(newObj.hasOwnProperty("prop")); verifyNotConfigurable(newObj, "prop"); - diff --git a/test/built-ins/Object/create/15.2.3.5-4-104.js b/test/built-ins/Object/create/15.2.3.5-4-104.js index 8505738f01..1d9346fd8e 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 afff08cca5..fbd5ea25ba 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 721181e09f..b96690f708 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 696cf44107..0f1b7c6465 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-107.js +++ b/test/built-ins/Object/create/15.2.3.5-4-107.js @@ -11,23 +11,22 @@ includes: [propertyHelper.js] ---*/ var proto = { - configurable: true + configurable: true }; -var ConstructFun = function () { }; +var ConstructFun = function() {}; ConstructFun.prototype = proto; var descObj = new ConstructFun(); Object.defineProperty(descObj, "configurable", { - get: function () { - return false; - } + get: function() { + return false; + } }); var newObj = Object.create({}, { - prop: descObj + prop: descObj }); assert(newObj.hasOwnProperty("prop")); verifyNotConfigurable(newObj, "prop"); - diff --git a/test/built-ins/Object/create/15.2.3.5-4-108.js b/test/built-ins/Object/create/15.2.3.5-4-108.js index af11689789..bd69f790ef 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 c744dacb9f..c8e9df1d83 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 4dbd85f61e..7f997a2449 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 12e0454def..0f45922d8a 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 2acc75b9b8..523c329b87 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 81b491fb26..e698085cfc 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 26b9e86982..2708a2dcf1 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 6ddb9994d7..31e69df69a 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 d7ad3da624..959214dc48 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 861bd8b655..30ec5cb102 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 0def02aaa8..4f1723e21a 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 7fcd8a59d4..07a0c5613d 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 2d92b08bb4..8b26b7a59e 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 fd7b0a164a..0050973e45 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 0ca99d1355..c0e966771b 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 5e9ebc1be9..2bb11aab73 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 13d7609e5e..08a36f4bc2 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-122.js +++ b/test/built-ins/Object/create/15.2.3.5-4-122.js @@ -9,16 +9,18 @@ description: > 'configurable' property (8.10.5 step 4.a) ---*/ - var argObj = (function () { return arguments; })(); +var argObj = (function() { + return arguments; +})(); - argObj.configurable = true; +argObj.configurable = true; - var newObj = Object.create({}, { - prop: argObj - }); - var result1 = newObj.hasOwnProperty("prop"); - delete newObj.prop; - var result2 = newObj.hasOwnProperty("prop"); +var newObj = Object.create({}, { + prop: argObj +}); +var result1 = newObj.hasOwnProperty("prop"); +delete newObj.prop; +var result2 = newObj.hasOwnProperty("prop"); assert.sameValue(result1, true, 'result1'); assert.sameValue(result2, false, 'result2'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-124.js b/test/built-ins/Object/create/15.2.3.5-4-124.js index 664fdd2765..595dacfa31 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 9109a0ca0f..1ea05541e9 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 03d1db1eb5..4e100ce381 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 f66387a568..39f7fc3590 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 3d05007993..c8a10125c5 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 11cc44982b..14c74b0473 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 582f529fdb..41bd013b77 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 7bada285cc..83769b6caa 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 a4fdf40a2b..e855085d7c 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 0377fd5f7a..15f8487974 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 cd34826270..2a06c35599 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 e74cde5e4f..a6de3a3d74 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 7b4d6b03f7..d675ebc245 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 c00e28b6a4..bb2ea1bfda 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 884d3f95f0..ba189488ca 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 2a81156150..c089064576 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 f821b61726..297f6d4cd4 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 91c6fe65cd..13945c1dd7 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-14.js +++ b/test/built-ins/Object/create/15.2.3.5-4-14.js @@ -8,21 +8,24 @@ description: > step 2) ---*/ - var props = new Error("test"); - var result = false; +var props = new Error("test"); +var result = false; - (Object.getOwnPropertyNames(props)).forEach(function(name){ - props[name] = {value:11, configurable:true} - }); +(Object.getOwnPropertyNames(props)).forEach(function(name) { + props[name] = { + value: 11, + configurable: true + } +}); - Object.defineProperty(props, "prop15_2_3_5_4_14", { - get: function () { - result = this instanceof Error; - return {}; - }, - enumerable: true - }); - var newObj = Object.create({}, props); +Object.defineProperty(props, "prop15_2_3_5_4_14", { + get: function() { + result = this instanceof Error; + return {}; + }, + enumerable: true +}); +var newObj = Object.create({}, props); assert(result, 'result !== true'); assert(newObj.hasOwnProperty("prop15_2_3_5_4_14"), 'newObj.hasOwnProperty("prop15_2_3_5_4_14") !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-140.js b/test/built-ins/Object/create/15.2.3.5-4-140.js index c4407af611..6157350c54 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 9ad3bb8491..c421aa6496 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 706c93be6c..eac935f599 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 2c13898bf8..fd08e43a9c 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 a77690f053..0a5e3ecc5a 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 59b7607b23..fa55b5b90a 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 b187b2c799..049de634b3 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 c5966f17c1..014dd54d40 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-147.js +++ b/test/built-ins/Object/create/15.2.3.5-4-147.js @@ -8,19 +8,21 @@ description: > 'Properties' is an Arguments object (8.10.5 step 4.b) ---*/ - var argObj = (function () { return arguments; })(); +var argObj = (function() { + return arguments; +})(); - var newObj = Object.create({}, { - prop: { - configurable: argObj - } - }); +var newObj = Object.create({}, { + prop: { + configurable: argObj + } +}); - var beforeDeleted = newObj.hasOwnProperty("prop"); +var beforeDeleted = newObj.hasOwnProperty("prop"); - delete newObj.prop; +delete newObj.prop; - var afterDeleted = newObj.hasOwnProperty("prop"); +var afterDeleted = newObj.hasOwnProperty("prop"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-149.js b/test/built-ins/Object/create/15.2.3.5-4-149.js index d5b9cd9275..ac9616597d 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 97856238da..6497f51716 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-15.js +++ b/test/built-ins/Object/create/15.2.3.5-4-15.js @@ -8,19 +8,21 @@ description: > (15.2.3.7 step 2) ---*/ - var result = false; +var result = false; - var argObj = (function () { return arguments; })(); +var argObj = (function() { + return arguments; +})(); - Object.defineProperty(argObj, "prop", { - get: function () { - result = ('[object Arguments]' === Object.prototype.toString.call(this)); - return {}; - }, - enumerable: true - }); +Object.defineProperty(argObj, "prop", { + get: function() { + result = ('[object Arguments]' === Object.prototype.toString.call(this)); + return {}; + }, + enumerable: true +}); - var newObj = Object.create({}, argObj); +var newObj = Object.create({}, argObj); assert(result, 'result !== true'); assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-150.js b/test/built-ins/Object/create/15.2.3.5-4-150.js index a39b6ec1a5..9ed32d00d1 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 0652a29d96..897b65106d 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 d10a654917..df98987609 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 9e468d7d72..87f9433446 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 6d173dedbd..95975d00b5 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 9da761bcb2..37fa24eb3f 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 7161dc784c..f3a2f4ce2b 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 4a8fb1a795..7c587f7a35 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 1f31f645b8..de5d281091 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 4ed1f46a46..c232656139 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 7916c17fe5..73880fd381 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 692a8589f2..fae08097f4 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 ad384083c3..637b2c0ea2 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 ec528e311e..70c676c9d6 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 2f3d0e80fb..4dedb1f635 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 d3a0f706b0..a4d92bcbc6 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 df8cb009bc..f5342706b7 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 0e844df158..d5e05f8a80 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 2f4959e6ca..84ce5be596 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 bb2fd7d998..67c5abeb82 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 529e7b3fee..9f649ef301 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 8083d035f6..e483b13a48 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 b3c6507920..308b568a24 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 7dce499564..a603d0dff6 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 6b467c8b08..e2ec0f8396 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 01a7041692..d44156cc85 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 49aabea535..4ea8dd8f68 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 ef17be9ef2..e1adbd723d 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-175.js +++ b/test/built-ins/Object/create/15.2.3.5-4-175.js @@ -9,12 +9,14 @@ description: > 'value' property (8.10.5 step 5.a) ---*/ - var argObj = (function () { return arguments; })(); +var argObj = (function() { + return arguments; +})(); - argObj.value = "ArgValue"; +argObj.value = "ArgValue"; - var newObj = Object.create({}, { - prop: argObj - }); +var newObj = Object.create({}, { + prop: argObj +}); assert.sameValue(newObj.prop, "ArgValue", 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-177.js b/test/built-ins/Object/create/15.2.3.5-4-177.js index 58825c2a82..5b9d67cbe9 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 d07158967d..e2ce679db0 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 cde7f79f25..1c71b6ebc8 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 4bd85b5c0c..9096b53fdd 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 3f335be922..ccc5f39408 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 dd7c4798c5..036f352af6 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 aab02965aa..7421e6f511 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 abd7e52bd0..5d35785a03 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 fdc42d8e6f..c87b09d6e5 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 e1152493bf..9798108c0c 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 38eafffccf..d72fadb912 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 4419c8873a..9410fedc03 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 46aef9df28..25ae2dfc30 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-188.js +++ b/test/built-ins/Object/create/15.2.3.5-4-188.js @@ -10,14 +10,16 @@ description: > includes: [propertyHelper.js] ---*/ -var descObj = { value: 100 }; +var descObj = { + value: 100 +}; Object.defineProperty(descObj, "writable", { - set: function () { } + set: function() {} }); var newObj = Object.create({}, { - prop: descObj + prop: descObj }); assert.sameValue(newObj.prop, 100); diff --git a/test/built-ins/Object/create/15.2.3.5-4-189.js b/test/built-ins/Object/create/15.2.3.5-4-189.js index 0ff9668f97..1f4ef0c787 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 dce154b89c..b2d519292e 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 b58182e558..a2d96068e9 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-190.js +++ b/test/built-ins/Object/create/15.2.3.5-4-190.js @@ -10,19 +10,21 @@ description: > includes: [propertyHelper.js] ---*/ -var proto = { value: 100 }; +var proto = { + value: 100 +}; Object.defineProperty(proto, "writable", { - set: function () { } + set: function() {} }); -var ConstructFun = function () { }; +var ConstructFun = function() {}; ConstructFun.prototype = proto; var descObj = new ConstructFun(); var newObj = Object.create({}, { - prop: descObj + prop: descObj }); assert.sameValue(newObj.prop, 100); diff --git a/test/built-ins/Object/create/15.2.3.5-4-191.js b/test/built-ins/Object/create/15.2.3.5-4-191.js index 974137f75d..ab546cbf01 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 6adc605917..01ec481391 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 a4c1d21ba6..5736037e6b 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 55fb8cc628..cd2347e58a 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 75defcd96c..3995d3864d 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 4a10a2d35a..38ce45508f 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 826b411eee..fdf8704b59 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 549af5c863..c1e428849c 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 b0d1119927..2a9ed8b677 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 773eec561d..0808659603 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 5a158b32b4..a0c5c354cc 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 f5583aafdf..2f5badee0e 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 205a6f616a..55d89504a7 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-201.js +++ b/test/built-ins/Object/create/15.2.3.5-4-201.js @@ -9,19 +9,21 @@ description: > 'writable' property (8.10.5 step 6.a) ---*/ - var argObj = (function () { return arguments; })(); +var argObj = (function() { + return arguments; +})(); - argObj.writable = true; +argObj.writable = true; - var newObj = Object.create({}, { - prop: argObj - }); +var newObj = Object.create({}, { + prop: argObj +}); - var beforeWrite = (newObj.hasOwnProperty("prop") && typeof (newObj.prop) === "undefined"); +var beforeWrite = (newObj.hasOwnProperty("prop") && typeof(newObj.prop) === "undefined"); - newObj.prop = "isWritable"; +newObj.prop = "isWritable"; - var afterWrite = (newObj.prop === "isWritable"); +var afterWrite = (newObj.prop === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-203.js b/test/built-ins/Object/create/15.2.3.5-4-203.js index 2dd1036259..02121c841c 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 c887e94eff..26bd33b2fc 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 64db1e0ee5..62ef931158 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 4f42500687..aa4244002b 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 96aec20716..e7b26dcb0c 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 94ac43212d..3934339394 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 1c256cfe26..c7f0534ccc 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 178b2dcf67..727d04f5fe 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 3fb67d9674..dd792fb506 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 72da9c9d08..859704cac2 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 b68ad748c5..8f2ec73fed 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 69ee1f25bc..4a6cedb23d 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 9e82743a15..1e18925d27 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 0a5b0e1872..85825fb999 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 eb3b062e83..3388d3869b 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 2bab6a1869..5aba7363a2 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 64a7de9c3a..96b7278473 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 6965d7881d..13da7f7011 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 3ee831a577..0de4cee28e 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 7cf13ce5cc..c26e1170b7 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 d380fc50cb..80789555e4 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 28e848af12..2f03b51e3d 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 5a7b95b49d..7df7e01fd9 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 e5e3927490..21ec7f049f 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 5c428978ef..65b98ccab6 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 25f359e78a..5836e8c5ec 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-226.js +++ b/test/built-ins/Object/create/15.2.3.5-4-226.js @@ -8,16 +8,18 @@ description: > 'Properties' is an Arguments object (8.10.5 step 6.b) ---*/ - var argObj = (function () { return arguments; })(); +var argObj = (function() { + return arguments; +})(); - var newObj = Object.create({}, { - prop: { - writable: argObj - } - }); - var hasProperty = newObj.hasOwnProperty("prop"); +var newObj = Object.create({}, { + prop: { + writable: argObj + } +}); +var hasProperty = newObj.hasOwnProperty("prop"); - newObj.prop = 121; +newObj.prop = 121; assert(hasProperty, 'hasProperty !== true'); assert.sameValue(newObj.prop, 121, 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-228.js b/test/built-ins/Object/create/15.2.3.5-4-228.js index 6b8ffee240..bbe28fcc25 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 b4ed3b4acb..b3baf808b1 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 f7ebf041f8..9dce4997c5 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-23.js +++ b/test/built-ins/Object/create/15.2.3.5-4-23.js @@ -9,25 +9,27 @@ description: > in 'obj' (15.2.3.7 step 5.a) ---*/ - var proto = {}; - Object.defineProperty(proto, "prop", { - get: function () { - return { value: 9 }; - }, - enumerable: true - }); +var proto = {}; +Object.defineProperty(proto, "prop", { + get: function() { + return { + value: 9 + }; + }, + enumerable: true +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var child = new ConstructFun(); - Object.defineProperty(child, "prop", { - value: { - value: 12 - }, - enumerable: true - }); - var newObj = Object.create({}, child); +var child = new ConstructFun(); +Object.defineProperty(child, "prop", { + value: { + value: 12 + }, + enumerable: true +}); +var newObj = Object.create({}, child); assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true'); assert.sameValue(newObj.prop, 12, 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-230.js b/test/built-ins/Object/create/15.2.3.5-4-230.js index 392cacd8bc..7741e30f66 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 d758b8a8d0..5228e544fd 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 f7edbce48f..1c0eca86e9 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 d0f6b3979a..f9b8addafa 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 6d53c01f2f..84cbca9691 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 67474ae09c..b900beba5e 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 dd0bab3da9..7a559dd09f 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 9ff6e5ec19..b0dae46f42 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 bd1d724273..b9e656c9a3 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 33af127302..b15bd2eb09 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 3e9958961b..2388668b61 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 82839e1df3..30e9186d0a 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 a5621412b4..b3bf67deda 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 ceca51dcc1..bad9246a9f 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 05b2a20145..f18c3865d1 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 d1c448d76d..cc43ee0b1a 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 98bdaae835..0c3a7f11b3 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 83543f250a..bc93c97d2d 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 2307c1f419..a13afb818c 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 441c41f6fe..a1ac6c8351 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 5144160400..afbf4ec88e 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 d4aa1a0791..dd0d7abb4f 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 861c07e15e..1d3ca0e74b 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 eceff600f5..a94cdb032b 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 e5cd76b909..96441ccf63 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 06515f7f24..1adfcf3559 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 e315a8ae4a..17708dec2a 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-254.js +++ b/test/built-ins/Object/create/15.2.3.5-4-254.js @@ -9,14 +9,16 @@ description: > property (8.10.5 step 7.a) ---*/ - var argObj = (function () { return arguments; })(); +var argObj = (function() { + return arguments; +})(); - argObj.get = function () { - return "VerifyArgumentsObject"; - }; +argObj.get = function() { + return "VerifyArgumentsObject"; +}; - var newObj = Object.create({}, { - prop: argObj - }); +var newObj = Object.create({}, { + prop: argObj +}); assert.sameValue(newObj.prop, "VerifyArgumentsObject", 'newObj.prop'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-256.js b/test/built-ins/Object/create/15.2.3.5-4-256.js index 1fb8acfc8e..6a008d56a7 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 ca56dae002..00e9fd1bf6 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 e20c4f14b1..8adec71c74 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 f4ae695fa8..9546d55a5b 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 90605aecef..d7f814f30a 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 031bdfd567..76d525ff08 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 8a7f3f955b..987227bc3b 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 f02da1a389..2736a816d5 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 36e92fb03e..eac85ecd00 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 7711341d24..a52a337ecb 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 b631d8719e..39336cdc3b 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 60f58383e8..16dcec95bb 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 d09f86e987..b10039dc22 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 913f3b4e11..116c6961b2 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 229ab99286..cbf40fba63 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 81e2538bb7..53a1362025 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 210068b1b5..d26d4a51db 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 4d274295a9..110ab43e9c 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 38d4b172ab..7172878c6e 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 3db96d6f07..6a1ae3a298 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 da31aa0b68..c4f80fded8 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 32768a89c2..d62abfeffb 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 a90edec9a5..feddd569f2 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 6dde3c5348..cf8f314314 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 ad5b99f6f3..447cbbc96f 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 870f30857a..8d5d2621f4 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 e21b55dff8..1714c3d586 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 88805140c7..ffc1d532fe 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 16bbd2655c..17a6634c28 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 58777acf28..c0581d9993 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 1bf31557bc..04a3b4b423 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 15e839baff..faf579591b 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 6057e68fbb..6b86ddf6ac 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 1db623aa7e..8e52a0aabb 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 f14ebb6674..204be50725 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-289.js +++ b/test/built-ins/Object/create/15.2.3.5-4-289.js @@ -9,21 +9,23 @@ description: > property (8.10.5 step 8.a) ---*/ - var argObj = (function () { return arguments; })(); +var argObj = (function() { + return arguments; +})(); - var data = "data"; +var data = "data"; - argObj.set = function (value) { - data = value; - }; +argObj.set = function(value) { + data = value; +}; - var newobj = Object.create({}, { - prop: argObj - }); +var newobj = Object.create({}, { + prop: argObj +}); - var hasProperty = newobj.hasOwnProperty("prop"); +var hasProperty = newobj.hasOwnProperty("prop"); - newobj.prop = "overrideData"; +newobj.prop = "overrideData"; assert(hasProperty, 'hasProperty !== true'); assert.sameValue(data, "overrideData", 'data'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-29.js b/test/built-ins/Object/create/15.2.3.5-4-29.js index bcd6fdb518..b840b79a3b 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 b412aa9d08..33c423a27f 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 a13e18d5b8..5f18a390ef 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 b5141d316e..ca1d2ed80d 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 0253d46f9b..e383baec94 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 db9776e037..5d27c9b840 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 9912d08063..dc615210a0 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 0365a10f8b..36a3c9acbf 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 e47f6121d0..2b680d63e0 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 5d998fb973..592654ea1c 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 13b59d8afb..f8d67b7f9a 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 4e350f9e77..c261cbe152 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 41acad4d2b..a7f9180cb8 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 9d9b0dc596..8fbe8eda18 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 459a8580e1..365fc271df 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 bae6d8dff5..c0ae83d2ec 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 225047a59d..3608542658 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 328c209d49..a4fbb82362 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 3f9e40703b..fd79b1d4ad 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 07980d2878..ef8c63a26f 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 98930055a6..a9143455b0 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-309.js +++ b/test/built-ins/Object/create/15.2.3.5-4-309.js @@ -11,13 +11,12 @@ includes: [propertyHelper.js] ---*/ var newObj = Object.create({}, { - prop: { - value: 1001, - writable: true, - enumerable: true - } + prop: { + value: 1001, + writable: true, + enumerable: true + } }); assert(newObj.hasOwnProperty("prop")); verifyNotConfigurable(newObj, "prop"); - diff --git a/test/built-ins/Object/create/15.2.3.5-4-31.js b/test/built-ins/Object/create/15.2.3.5-4-31.js index 45044ed2f3..7bb081770e 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 e61fac09df..33fb666127 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 c9e5b2cf44..fa6f42a1ed 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 d6e54fa175..12f4b4e57a 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 0a0d7f57e5..9ab55313b8 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 7fd8b2b126..d7e7c59641 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 096ac14adb..d4bfc58cf3 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-315.js +++ b/test/built-ins/Object/create/15.2.3.5-4-315.js @@ -10,26 +10,28 @@ includes: [propertyHelper.js] ---*/ var newObj = {}; + function getFunc() { - return 10; + return 10; } + function setFunc(value) { - newObj.setVerifyHelpProp = value; + newObj.setVerifyHelpProp = value; } newObj = Object.create({}, { - foo1: { - value: 200, - enumerable: true, - writable: true, - configurable: true - }, - foo2: { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: true - } + foo1: { + value: 200, + enumerable: true, + writable: true, + configurable: true + }, + foo2: { + get: getFunc, + set: setFunc, + enumerable: true, + configurable: true + } }); verifyEqualTo(newObj, "foo1", 200); diff --git a/test/built-ins/Object/create/15.2.3.5-4-316.js b/test/built-ins/Object/create/15.2.3.5-4-316.js index bc43715d49..2f42172f41 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-316.js +++ b/test/built-ins/Object/create/15.2.3.5-4-316.js @@ -8,31 +8,32 @@ description: > numerical names (15.2.3.7 step 7) ---*/ - function getFunc() { - return 20; - } - function setFunc() { } +function getFunc() { + return 20; +} - var newObj = Object.create({}, { - 0: { - value: 100, - enumerable: true, - writable: true, - configurable: true - }, - 1: { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: true - }, - 2: { - value: 200, - enumerable: true, - writable: true, - configurable: true - } - }); +function setFunc() {} + +var newObj = Object.create({}, { + 0: { + value: 100, + enumerable: true, + writable: true, + configurable: true + }, + 1: { + get: getFunc, + set: setFunc, + enumerable: true, + configurable: true + }, + 2: { + value: 200, + enumerable: true, + writable: true, + configurable: true + } +}); assert.sameValue(newObj[0], 100, 'newObj[0]'); assert.sameValue(newObj[1], 20, 'newObj[1]'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-32.js b/test/built-ins/Object/create/15.2.3.5-4-32.js index 2e4d7c4365..1f940b5e7e 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 28684d926b..3bc37eca73 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 33bf19e07f..c2d007dea6 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 effb3e92e7..2a7a7664c4 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 f11823460e..5e11b46b38 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 dcef0aea44..ba4098ae5b 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-37.js +++ b/test/built-ins/Object/create/15.2.3.5-4-37.js @@ -9,16 +9,19 @@ description: > 5.a) ---*/ - var props = new Error("test"); +var props = new Error("test"); - (Object.getOwnPropertyNames(props)).forEach(function(name){ - props[name] = {value:11, configurable:true} - }); +(Object.getOwnPropertyNames(props)).forEach(function(name) { + props[name] = { + value: 11, + configurable: true + } +}); - props.prop15_2_3_5_4_37 = { - value: 12, - enumerable: true - }; - var newObj = Object.create({}, props); +props.prop15_2_3_5_4_37 = { + value: 12, + enumerable: true +}; +var newObj = Object.create({}, props); assert(newObj.hasOwnProperty("prop15_2_3_5_4_37"), 'newObj.hasOwnProperty("prop15_2_3_5_4_37") !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-38.js b/test/built-ins/Object/create/15.2.3.5-4-38.js index b0ffcabf08..50cd1a2ebb 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-38.js +++ b/test/built-ins/Object/create/15.2.3.5-4-38.js @@ -9,13 +9,15 @@ description: > property (15.2.3.7 step 5.a) ---*/ - var argObj = (function () { return arguments; })(); +var argObj = (function() { + return arguments; +})(); - argObj.prop = { - value: 12, - enumerable: true - }; +argObj.prop = { + value: 12, + enumerable: true +}; - var newObj = Object.create({}, argObj); +var newObj = Object.create({}, argObj); assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-39.js b/test/built-ins/Object/create/15.2.3.5-4-39.js index 6bd0d2a9a0..7b644636a2 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-39.js +++ b/test/built-ins/Object/create/15.2.3.5-4-39.js @@ -9,19 +9,25 @@ description: > 5.a) ---*/ - var props = {}; - props.prop1 = { value: 12, enumerable: true }; - props.prop2 = { value: true, enumerable: true }; +var props = {}; +props.prop1 = { + value: 12, + enumerable: true +}; +props.prop2 = { + value: true, + enumerable: true +}; - var tempArray = []; - for (var p in props) { - if (props.hasOwnProperty(p)) { - tempArray.push(p); - } - } +var tempArray = []; +for (var p in props) { + if (props.hasOwnProperty(p)) { + tempArray.push(p); + } +} - var newObj = Object.create({}, props); - var index = 0; - for (var q in newObj) { - assert.sameValue(tempArray[index++] !== q && newObj.hasOwnProperty(q), false, 'tempArray[index++] !== q && newObj.hasOwnProperty(q)'); - } +var newObj = Object.create({}, props); +var index = 0; +for (var q in newObj) { + assert.sameValue(tempArray[index++] !== q && newObj.hasOwnProperty(q), false, 'tempArray[index++] !== q && newObj.hasOwnProperty(q)'); +} diff --git a/test/built-ins/Object/create/15.2.3.5-4-4.js b/test/built-ins/Object/create/15.2.3.5-4-4.js index 5cf42f78ec..852786420a 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 91c14b190a..2cc93673b8 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 d74dd58cde..b7ecc92853 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 424a2be666..6facce6549 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 f3ca54ea48..e8ea28ed64 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 18073ec961..1f2f43ba98 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 653c33ccb1..1c76337e74 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 b0bc6c13be..2e8c022ec4 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 1fc56ec9d6..2fa4616785 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 5c4b6e0b4b..390d8f526d 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 77261ab265..a829bdbd92 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 f348366e07..d599cb1162 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 72e4b5269f..eec68263f7 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 88e7e27786..593b35ab41 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 66d732240f..91a8e862cb 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 46ae8e51bf..504ad406ed 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 1ca9d8db5f..f04ce911a9 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 3111507b4d..9c6e201cf3 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 1d71a5d36a..d0fb5995d3 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 d39fd50352..217831b9c2 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 2054d70d5d..4e91fc6fad 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 0c85eb4e60..00ea9000b3 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 d216b379a3..09df5f96cf 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 06cc1e9756..cd92635b7f 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 5bdb0912fa..293d2886d7 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 cd237f4bdd..79b165669f 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 0af44b539b..3a4cd5862f 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 dcb8a6f233..52b6a9b300 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 d4e700a4a3..d0761a6fd7 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 3a893bfc2e..66058d2139 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 c9daddf94b..d054525f7c 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 6a1c26234a..8c11147ab2 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 59f4183229..78b361b4dc 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-69.js +++ b/test/built-ins/Object/create/15.2.3.5-4-69.js @@ -9,18 +9,20 @@ description: > 'enumerable' property (8.10.5 step 3.a) ---*/ - var accessed = false; - var argObj = (function () { return arguments; })(); +var accessed = false; +var argObj = (function() { + return arguments; +})(); - argObj.enumerable = true; +argObj.enumerable = true; - var newObj = Object.create({}, { - prop: argObj - }); - for (var property in newObj) { - if (property === "prop") { - accessed = true; - } - } +var newObj = Object.create({}, { + prop: argObj +}); +for (var property in newObj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-7.js b/test/built-ins/Object/create/15.2.3.5-4-7.js index daee331b97..f6ae81d93f 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 2d6ecb8dd1..866b12b2bb 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 46c3157451..b7a5491d69 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 b67405d353..0ed2539aae 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 6971654ace..8b0934415e 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 8c69638b05..c3546aba78 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 3924258d3a..269796c4bb 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 c3d8cb2900..bad5567d78 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 1b85d21f9d..34ba24c028 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 472f164d24..be16e90021 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 d87b1b6e3e..4ef160b837 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 84207e3825..d0bfc0567a 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 27f1fde732..2e0270763e 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 c86ae44b3d..d275e9bb44 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 d0a69d948b..32c0cebc15 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 c0721deedd..09f5f79f54 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 b7aa0da3a0..7afe545876 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 d089bb6112..5c88021eb1 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 d31f4e86a6..bb363c4c36 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 83e38608fc..deb4b0d8bb 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 b8c211e183..2f17fa9d54 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 564f8ac0cc..36682e2eae 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 21fc225b81..b953f2f2bc 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 c9ea3746e5..4d6e1ea42e 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 535b22ee19..3943f23536 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 1ac6ded11a..b2713f7d08 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 4f33838fce..8b53b8303a 100644 --- a/test/built-ins/Object/create/15.2.3.5-4-94.js +++ b/test/built-ins/Object/create/15.2.3.5-4-94.js @@ -8,18 +8,20 @@ description: > 'Properties' is an Arguments object (8.10.5 step 3.b) ---*/ - var accessed = false; - var argObj = (function () { return arguments; })(); +var accessed = false; +var argObj = (function() { + return arguments; +})(); - var newObj = Object.create({}, { - prop: { - enumerable: argObj - } - }); - for (var property in newObj) { - if (property === "prop") { - accessed = true; - } - } +var newObj = Object.create({}, { + prop: { + enumerable: argObj + } +}); +for (var property in newObj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/create/15.2.3.5-4-96.js b/test/built-ins/Object/create/15.2.3.5-4-96.js index 8250c6f28c..c564ef7ae2 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 86b471b8c0..0acd1124b4 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 49b6b8214f..74b55f6351 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 cff852151e..59e1a18809 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 9bb6997007..2768ba5550 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 6bf9439eff..96e8293905 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 b4eae1229a..f184888194 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 0974b1a06b..211adc261f 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 673f986086..06c6cc73cf 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 c6b27773c9..41a1e98e70 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 4f8ca8d07d..02a5807c20 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 87ca4be776..a9e6b3cdb1 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-2-10.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-2-10.js @@ -6,18 +6,18 @@ es5id: 15.2.3.7-2-10 description: Object.defineProperties - argument 'Properties' is an Array object ---*/ - var obj = {}; - var props = []; - var result = false; - - Object.defineProperty(props, "prop", { - get: function () { - result = this instanceof Array; - return {}; - }, - enumerable: true - }); +var obj = {}; +var props = []; +var result = false; - Object.defineProperties(obj, props); +Object.defineProperty(props, "prop", { + get: function() { + result = this instanceof Array; + return {}; + }, + enumerable: true +}); + +Object.defineProperties(obj, props); assert(result, 'result !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-2-11.js b/test/built-ins/Object/defineProperties/15.2.3.7-2-11.js index 49e5f42084..6ac6227e87 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 83f0889385..103a8ea8d1 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-2-12.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-2-12.js @@ -6,18 +6,18 @@ es5id: 15.2.3.7-2-12 description: Object.defineProperties - argument 'Properties' is a Date object ---*/ - var obj = {}; - var props = new Date(); - var result = false; - - Object.defineProperty(props, "prop", { - get: function () { - result = this instanceof Date; - return {}; - }, - enumerable: true - }); +var obj = {}; +var props = new Date(); +var result = false; - Object.defineProperties(obj, props); +Object.defineProperty(props, "prop", { + get: function() { + result = this instanceof Date; + return {}; + }, + enumerable: true +}); + +Object.defineProperties(obj, props); assert(result, 'result !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-2-13.js b/test/built-ins/Object/defineProperties/15.2.3.7-2-13.js index bea1c4158a..35ad5d75d2 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-2-13.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-2-13.js @@ -6,18 +6,18 @@ es5id: 15.2.3.7-2-13 description: Object.defineProperties - argument 'Properties' is a RegExp object ---*/ - var obj = {}; - var props = new RegExp(); - var result = false; - - Object.defineProperty(props, "prop", { - get: function () { - result = this instanceof RegExp; - return {}; - }, - enumerable: true - }); +var obj = {}; +var props = new RegExp(); +var result = false; - Object.defineProperties(obj, props); +Object.defineProperty(props, "prop", { + get: function() { + result = this instanceof RegExp; + return {}; + }, + enumerable: true +}); + +Object.defineProperties(obj, props); assert(result, 'result !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-2-14.js b/test/built-ins/Object/defineProperties/15.2.3.7-2-14.js index 4cb5a056a8..0196e74061 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 9a69dc5c20..974c0a9732 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-2-15.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-2-15.js @@ -6,25 +6,25 @@ es5id: 15.2.3.7-2-15 description: Object.defineProperties - argument 'Properties' is an Error object ---*/ - var obj = {}; - var props = new Error("test"); - var obj1 = { - value: 11 - }; - props.description = obj1; - props.message = obj1; - props.name = obj1; +var obj = {}; +var props = new Error("test"); +var obj1 = { + value: 11 +}; +props.description = obj1; +props.message = obj1; +props.name = obj1; - var result = false; - - Object.defineProperty(props, "prop", { - get: function () { - result = this instanceof Error; - return {}; - }, - enumerable: true - }); +var result = false; - Object.defineProperties(obj, props); +Object.defineProperty(props, "prop", { + get: function() { + result = this instanceof Error; + return {}; + }, + enumerable: true +}); + +Object.defineProperties(obj, props); assert(result, 'result !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-2-16.js b/test/built-ins/Object/defineProperties/15.2.3.7-2-16.js index 702db6f173..2d2138c990 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 e36e3f6666..b95a3e2354 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 5366c8b9ac..0d3dea7b0c 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 828a76bdb4..ca7acb7faf 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 6b5e9f202f..3c3a45bdcd 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 ba0c4c8ce6..c5de320128 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-2-5.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-2-5.js @@ -8,7 +8,9 @@ description: > number ---*/ - var obj = { "123": 100 }; - var obj1 = Object.defineProperties(obj, -12); +var obj = { + "123": 100 +}; +var obj1 = Object.defineProperties(obj, -12); assert.sameValue(obj, obj1, 'obj'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-2-6.js b/test/built-ins/Object/defineProperties/15.2.3.7-2-6.js index c18fee56f9..a27b7f4b38 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-2-6.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-2-6.js @@ -8,18 +8,18 @@ description: > whose primitive value is any interesting number ---*/ - var obj = {}; - var props = new Number(-12); - var result = false; - - Object.defineProperty(props, "prop", { - get: function () { - result = this instanceof Number; - return {}; - }, - enumerable: true - }); +var obj = {}; +var props = new Number(-12); +var result = false; - Object.defineProperties(obj, props); +Object.defineProperty(props, "prop", { + get: function() { + result = this instanceof Number; + return {}; + }, + enumerable: true +}); + +Object.defineProperties(obj, props); assert(result, 'result !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-2-7.js b/test/built-ins/Object/defineProperties/15.2.3.7-2-7.js index 169fbe9069..fcd9bc7213 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-2-7.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-2-7.js @@ -8,7 +8,9 @@ description: > value is any interesting string ---*/ - var obj = { "123": 100 }; - var obj1 = Object.defineProperties(obj, ""); +var obj = { + "123": 100 +}; +var obj1 = Object.defineProperties(obj, ""); assert.sameValue(obj, obj1, 'obj'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-2-8.js b/test/built-ins/Object/defineProperties/15.2.3.7-2-8.js index f880ec47a1..62e50e5b92 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-2-8.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-2-8.js @@ -8,18 +8,18 @@ description: > whose primitive value is any interesting string ---*/ - var obj = {}; - var props = new String(); - var result = false; - - Object.defineProperty(props, "prop", { - get: function () { - result = this instanceof String; - return {}; - }, - enumerable: true - }); +var obj = {}; +var props = new String(); +var result = false; - Object.defineProperties(obj, props); +Object.defineProperty(props, "prop", { + get: function() { + result = this instanceof String; + return {}; + }, + enumerable: true +}); + +Object.defineProperties(obj, props); assert(result, 'result !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-2-9.js b/test/built-ins/Object/defineProperties/15.2.3.7-2-9.js index 16acd8a061..0d4cd7b7cf 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-2-9.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-2-9.js @@ -8,18 +8,18 @@ description: > object ---*/ - var obj = {}; - var props = function () { }; - var result = false; - - Object.defineProperty(props, "prop", { - get: function () { - result = this instanceof Function; - return {}; - }, - enumerable: true - }); +var obj = {}; +var props = function() {}; +var result = false; - Object.defineProperties(obj, props); +Object.defineProperty(props, "prop", { + get: function() { + result = this instanceof Function; + return {}; + }, + enumerable: true +}); + +Object.defineProperties(obj, props); assert(result, 'result !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-3-1.js b/test/built-ins/Object/defineProperties/15.2.3.7-3-1.js index c6d7775e2a..482305d743 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 3b32199bf5..56ec632a66 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 d4dc3cafc4..26cb92f2bd 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 bbafb06c9c..a7f5b3fcbe 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 40efb3be27..eba9a4daaf 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 7efb02f66c..d2ad59b0d2 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 828fd9d14b..65c83d741b 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 33d3a9f851..64808eae67 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 eb800c8e11..1df3104701 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 a1bfc9a681..7c64562aea 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 8a7abc5e99..1b73ab286c 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 f13acf2b5d..014b192960 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 22ea0f97fb..bf4aaa78f4 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 a5c31d9bb2..5d91d58404 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 07dc678c47..5349647901 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 2363f67856..1a3215844e 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 5d2cba0178..a6022defe2 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 9cbd298218..0e709cf85f 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 ce3cae1f6d..b1d39d8e8f 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 79180ee5f7..df6c63c759 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 f25ba775bb..eac8f218b0 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 9516041f8a..2ca106448c 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 a08c7d71bb..8cb526c351 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 76d2a34a6f..4172d63b78 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 679a4acafb..c394944d8d 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 7eaf6bd16a..0717a78ad0 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 2161abbeb0..92b92c34e4 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 931dbcfff7..1c7424996a 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 8fb9548c08..0696cef210 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 74577f6894..db82154226 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 dce33a54cf..4a1ab03d5b 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 7b2464f4e4..509aa4d1de 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 a45f020397..54061c8ad5 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 2d45404102..d02aa0cfbf 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 68bd1992d0..d9f5f2436f 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 4a99de9025..2100bf806c 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 c7fe924612..3204be9982 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 bd73817283..4f7e597690 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 60cd9d5f09..f80e6667db 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 900faf15c0..63076a9321 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 91a7cd1e9e..86c1b279d3 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 f053943dcc..a4350ff1a1 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 a1d384f968..05a4bbeb28 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 57270ab353..543d649bd0 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 56c96530fd..d3e3f1df43 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 9818417288..9128a4dac2 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 3bb8efb116..b3f4d6e7d3 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 d093f3e5e8..377de2f552 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 0bbec160b8..9e5d68fbd1 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 3862ad1c24..119815eb0e 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 2092ebed22..a03009b315 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 983674eced..9fb173c87e 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 0a4c48f91b..b861fbaac1 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 7912b15556..065846ce00 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 6089482067..bdfc29b450 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 a46b6f6e00..4ef78bad9c 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 0d7d1b807e..3ea1c53be2 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 fd46216dc3..d567ff22a4 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 e841730bee..455e6ecc53 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 75eb5a7de6..14edec2a9d 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 edfd9426f4..a10e3a907b 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 61e00df188..cb7be14280 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 75d124af0d..48f2701b83 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 1030ea5b60..bf16fc4de3 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 13b2ce71fc..5e16d72e4f 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 db7177f090..211d5b2001 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 3f8ddb587c..38655acf6e 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 c7f8321196..f7f1876216 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-139.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-139.js @@ -12,10 +12,9 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperties(obj, { - property: { - value: "abc" - } + property: { + value: "abc" + } }); verifyNotWritable(obj, "property"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-14.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-14.js index 01f7c17373..c5817704c0 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 da4ca839d3..73ef83af8d 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-140.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-140.js @@ -12,11 +12,10 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperties(obj, { - property: { - writable: false - } + property: { + writable: false + } }); assert(obj.hasOwnProperty("property")); verifyNotWritable(obj, "property"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-141.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-141.js index 05f254dfb5..203fa25512 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 3d319e4bb1..43065040e4 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 64da944b96..7c4bd1ade8 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-143.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-143.js @@ -12,27 +12,28 @@ includes: [propertyHelper.js] var obj = {}; -var proto = { value: 120 }; +var proto = { + value: 120 +}; Object.defineProperty(proto, "writable", { - get: function () { - return true; - } + get: function() { + return true; + } }); -var Con = function () { }; +var Con = function() {}; Con.prototype = proto; var descObj = new Con(); Object.defineProperty(descObj, "writable", { - value: false + value: false }); Object.defineProperties(obj, { - property: descObj + property: descObj }); assert(obj.hasOwnProperty("property")); verifyNotWritable(obj, "property"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-144.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-144.js index 80575a3dd6..7342ee90c3 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 0f311be2bf..39364f00de 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 86aba4c5fd..a3cf7d943b 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 302bf7a6f1..3e31421360 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 45e785054f..5dcb1f2641 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 9450104511..c872639525 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 7acb69ba80..3371b60a89 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 882c0e8522..63ca7a0365 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 0fd11782ee..1a3d1598e1 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 1f2af9b856..bf2af05394 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 f6d920c94c..950abea999 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 fdcedefc10..028fcbee14 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 31758d4e33..a51c6f1f45 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 c578ae4f7b..deceb19f88 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 d8c78aab4c..7e4ab1f8fa 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 76b0daa555..c586bddf26 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-158.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-158.js @@ -17,9 +17,8 @@ var descObj = new RegExp(); descObj.writable = false; Object.defineProperties(obj, { - property: descObj + property: descObj }); assert(obj.hasOwnProperty("property")); verifyNotWritable(obj, "property"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-159.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-159.js index 9bd06f4ef2..d13ecf6fbb 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 b7a6286d65..0bfdb3473d 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 800d53d650..517ad0fbe8 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 cb79604489..a3048ac305 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-161.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-161.js @@ -12,16 +12,15 @@ includes: [propertyHelper.js] var obj = {}; -var func = function (a, b) { - arguments.writable = false; +var func = function(a, b) { + arguments.writable = false; - Object.defineProperties(obj, { - property: arguments - }); + Object.defineProperties(obj, { + property: arguments + }); - assert(obj.hasOwnProperty("property")); - verifyNotWritable(obj, "property"); + assert(obj.hasOwnProperty("property")); + verifyNotWritable(obj, "property"); }; func(); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-163.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-163.js index 0cf594b05f..c029c8c73f 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 7d93f439ee..8d99816a04 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 bd1610aa76..84d38c8663 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 1dfa841512..e3a0e968a9 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 bf9e5ac37c..e3361c0804 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-167.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-167.js @@ -12,11 +12,10 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperties(obj, { - property: { - writable: false - } + property: { + writable: false + } }); assert(obj.hasOwnProperty("property")); verifyNotWritable(obj, "property"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-168.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-168.js index 90488b0124..f1fb979e82 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 3b33e4782c..9d1e031ab5 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-169.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-169.js @@ -12,11 +12,10 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperties(obj, { - property: { - writable: +0 - } + property: { + writable: +0 + } }); assert(obj.hasOwnProperty("property")); verifyNotWritable(obj, "property"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-17.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-17.js index 10aeb93763..67df372e76 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 b7a2cf5a50..0f0e05fe22 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-170.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-170.js @@ -12,11 +12,10 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperties(obj, { - property: { - writable: -0 - } + property: { + writable: -0 + } }); assert(obj.hasOwnProperty("property")); verifyNotWritable(obj, "property"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-171.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-171.js index c828a02ac0..a61ec4f20f 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-171.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-171.js @@ -12,11 +12,10 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperties(obj, { - property: { - writable: NaN - } + property: { + writable: NaN + } }); assert(obj.hasOwnProperty("property")); verifyNotWritable(obj, "property"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-172.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-172.js index adbe19cbc3..ad3898e77c 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 019ce3f206..0c6728b250 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 259a2948b3..a67609ccaa 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-174.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-174.js @@ -12,11 +12,10 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperties(obj, { - property: { - writable: "" - } + property: { + writable: "" + } }); assert(obj.hasOwnProperty("property")); verifyNotWritable(obj, "property"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-175.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-175.js index 6d3ee51c0d..cb4a16a294 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 23b0377fdc..d188cb9a1e 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 6434bd5e67..619619a446 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 952b57cd83..9d9adb5255 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 ddeb6b9202..4fc2e2eded 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 44323283ab..78fcee2886 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 8812433df6..525c8ae3c3 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 d3611a3357..94b32d4ae9 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 4d8cb3ec9b..8563d4f3b0 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 0127529dfa..223af3f110 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 c7d1069d0e..013fe4fdef 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 5f69925d0d..1dadf7f4b0 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 5b9d21e6a7..3ce2a2cd93 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 93da155d89..7c21d03115 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 3cce691564..14aeec5dd2 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 8d08b9bf3b..f35df834de 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 693beb4115..95170617ce 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 623b6e1119..d502222b03 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 0b5ac282cb..0f5a1c6ab8 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 e6910e88d7..140bed0637 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 d38ac2dcec..99531a4b0d 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 6931583a6c..586acb78db 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 25abe43bbb..bd562d76c5 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 e75e2a8103..6828cb641c 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 ad065ec41d..18ef102f57 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 3cced97030..2c3cf0a1dd 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 c7fa6e5ead..156e9cebd9 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 77fa9fd979..9b0f3d3aa2 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 683fe441a0..34d8e72e77 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 b3cff0d0a5..5777b8c2a0 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 1615f7be3a..2a80a4665f 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 2cd46064cc..ee493da54b 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 c92704618e..b8cbce77f5 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 5c24680646..eba777f189 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 2f1bceec8f..53fbe1f63c 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 d0914e4ce6..8e22fc44e4 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 687a062c89..c49f295f5b 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 a4dec6de09..88cb8ea1e3 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 bc0dcad7a8..f103f0d999 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 6a7ff611f0..f49214a034 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 2ae4481c8c..7630822e2e 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 75f7d4a491..34af6cc3e1 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 add8aeee1a..40fc4c6079 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 862bac6114..63d81384a9 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 26f4eeb5b6..25363284ba 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 06f9e3e493..8fa141a7ef 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 391538ddb4..5af8d02751 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 adb34766fd..b74681d94b 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 84dd886f14..2806a23d74 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 d684f624db..f508b14653 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 982cddb9bd..7ca189288f 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 57e21ef35a..6905d2d7d1 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 74e72ca9be..7fc6d9c5a0 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 da6e91356b..86b207273f 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 c7f08514bc..4100de6117 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-227.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-227.js @@ -13,11 +13,11 @@ var data = "data"; var obj = {}; Object.defineProperties(obj, { - descObj: { - get: function () { - return data; - } + descObj: { + get: function() { + return data; } + } }); @@ -25,5 +25,4 @@ assert(obj.hasOwnProperty("descObj")); verifyNotWritable(obj, "descObj"); var desc = Object.getOwnPropertyDescriptor(obj, "descObj"); -assert.sameValue(typeof (desc.set), "undefined") - +assert.sameValue(typeof(desc.set), "undefined") diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-228.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-228.js index 28010e240c..ac5080da92 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 5554bdbc38..46e1b3bd3a 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 57d4230ba8..1dac44959e 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 b15fbd6ec1..892b35b12c 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 082f642f7c..248fa97ad8 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 74230afae6..fd72ee008d 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 613cd5dec8..ba3faea405 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 323f7f972a..9d6d288b37 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 e98a8856ed..72caa72430 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 3c5f3888ae..e0632b5e7f 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 cd17ab0b96..5ef60526ce 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 0446941631..9d10628a1a 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 fbdd5fe229..118cc7af0e 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 bab103cc60..9495abc63a 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 62895cd66d..d1ac8ed464 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 d8df00083f..bc61c54f36 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 10187cbb82..3e4d4117f2 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 56bc919033..6ef7c239d5 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 5324d03348..bacb037e6b 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 b6c0da717e..a8d8f226e5 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 3e0f737a27..af68740f0b 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 c0815c7b04..ba64235fb7 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 20779fb24d..62eacf536e 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-248.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-248.js @@ -9,22 +9,28 @@ description: > step 8.a) ---*/ - var data = "data"; - var descObj = new Error("test"); - descObj.description = { value: 11 }; - descObj.message = { value: 11 }; - descObj.name = { value: 11 }; +var data = "data"; +var descObj = new Error("test"); +descObj.description = { + value: 11 +}; +descObj.message = { + value: 11 +}; +descObj.name = { + value: 11 +}; - var setFun = function (value) { - data = value; - }; - descObj.prop = { - set: setFun - }; +var setFun = function(value) { + data = value; +}; +descObj.prop = { + set: setFun +}; - var obj = {}; - Object.defineProperties(obj, descObj); - obj.prop = "errorData"; +var obj = {}; +Object.defineProperties(obj, descObj); +obj.prop = "errorData"; assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); assert.sameValue(data, "errorData", 'data'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-249.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-249.js index f09421051d..8f4872780c 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 01e17e58ba..2492ea6eb8 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 5003f3e485..bfbc5cba07 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 e35a948b5d..1859b0d61f 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 11d390a2bd..45c770645b 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 acbcc7ed27..f9854b10a2 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 85e6c6b88c..30610bf59e 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 848af07304..716a52957e 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 cdf054713f..adf18c55d7 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 3b9c9f2a67..48eef74291 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 f0fed05eb1..e1eb3ad6f0 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 5587e17654..5813bf1bf4 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 1587c5de2c..04908eec03 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 945e4a276d..6fdda0cbfd 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 900b3b0903..da7fd39159 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 ab347d29b0..855fdb9eed 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 473f0ef000..a0c0da3e51 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 cba662cf52..5a685d85e3 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 6fa274f40c..d6b5a3eda5 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 4d8a339282..b7056d743d 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 919b4258e9..a1e75b5309 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 8a8d9568a5..d66f3e09eb 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 5ca9aaee0b..e4b76b5950 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 b5804ca84c..e5714b54d3 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 4768009aa5..b8e53420ae 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 1429ef4121..ce9a349717 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 451a7794d3..762fd8ec3d 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 ee430f83ce..8c764e415b 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 9a9c3a557d..8e25fa5a7d 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 f5986377a1..798a60df06 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 b36a0fa727..9a74d14f4e 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 7b79f6d81c..176abbb6e3 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 d76bdf16d0..507b5c814b 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 952f524d0c..1195c7e9e0 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 df7e53b1ce..ac8eb96f1c 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 fdca287d0e..7075fa2fb5 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 a79b3cd31d..7c70e64b36 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 cbf2194ed8..48c40d9bd3 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 27a60e51de..43bbef1500 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 0a9d418882..7f99adc4af 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 6ad0a15cd2..228b1d019d 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 b2c580c1b4..49c8219685 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 9136dc45d0..2914a728b8 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 8ef7474cb1..5362f99a76 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-54.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-54.js @@ -8,23 +8,23 @@ description: > 'descObj' is the Arguments object (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; - var arg; - - (function fun() { - arg = arguments; - }(1, 2, 3)); +var obj = {}; +var accessed = false; +var arg; - Object.defineProperties(obj, { - prop: { - enumerable: arg - } - }); - for (var property in obj) { - if (property === "prop") { - accessed = true; - } - } +(function fun() { + arg = arguments; +}(1, 2, 3)); + +Object.defineProperties(obj, { + prop: { + enumerable: arg + } +}); +for (var property in obj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-56.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-56.js index aae77824ab..131d8b40cd 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 4c796095ab..5861410d17 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 7f3278392f..0f01710554 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 cc8495057e..864ca29daa 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 147b520d0c..0183f94129 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 80c2a5db1e..f8bba39187 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 3db823b9dd..f2fd420cf0 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 ba84be285d..f214055659 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 2978706b4b..a369fcef1d 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 b5257eddc1..f7c555bbac 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 ed481bf7c3..cc9a8c9df5 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 fe72722409..cca4ddea32 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 77278e6cda..2b6557a0aa 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 9001883d4c..45739752ca 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 00e4a9820e..3b5a9ec031 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 afbd90c14b..f5f2bdc5f6 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 148454b1f7..2d12bf1c49 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 47b64cb934..58905fa9ee 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 ad903b294b..35d7545caa 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 3687f44160..923d90277e 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 03d2e2f88a..b891e55f0e 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 8b20c3bbff..3052a4e474 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 05bd0876a1..d158fcb8ae 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 44f4984253..c498f4d9b4 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 9b966b7c2c..6fe2d9e0b7 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 47be8aae9b..f7566c1b02 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 3c4d2415fb..b5945f3269 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-8.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-8.js @@ -8,19 +8,21 @@ description: > own data property (8.10.5 step 3.a) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - var descObj = { enumerable: true }; +var descObj = { + enumerable: true +}; - Object.defineProperties(obj, { - prop: descObj - }); +Object.defineProperties(obj, { + prop: descObj +}); - for (var property in obj) { - if (property === "prop") { - accessed = true; - } - } +for (var property in obj) { + if (property === "prop") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-5-b-80.js b/test/built-ins/Object/defineProperties/15.2.3.7-5-b-80.js index 99ab9c5254..6f7747efc6 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 08b5b03fcb..848aa0a473 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 eea14bf018..21acc1eeca 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 a662240fea..818aa68c7e 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 5e1dada7bc..7a474b608e 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 c183338e0f..29ba52b31a 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 968960c5e5..b60113a8e2 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 a0a3e9f9fc..e6517a31e1 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 7a6bf9f158..e4641b79f0 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 7aa7a3aceb..c05d12bd65 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 29c4381b0d..0a79e78704 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 ee8de8ca54..d7eedac45b 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 740063a78f..bba7b70651 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 7eeee70d4d..5e611f0afa 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 384aaca350..5fe27e730e 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 484c74cef7..1afd1a5985 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 991dbb9d8e..8b3d12915c 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 1a96f98e67..ccda988690 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 63ccc0d774..87e2578e33 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 105d974780..836db8a7dd 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 e282f56075..6cb3dfbdb3 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 ed64214cf9..c514065435 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 2b9e962db4..5509662386 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 3dc962b7da..78710b6c15 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-101.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-101.js @@ -14,27 +14,28 @@ includes: [propertyHelper.js] var obj = {}; function get_func() { - return 10; + return 10; } + function set_func(value) { - obj.setVerifyHelpProp = value; + obj.setVerifyHelpProp = value; } Object.defineProperty(obj, "foo", { - get: get_func, - set: set_func, - enumerable: true, - configurable: true + get: get_func, + set: set_func, + enumerable: true, + configurable: true }); function get_func2() { - return 20; + return 20; } Object.defineProperties(obj, { - foo: { - get: get_func2 - } + foo: { + get: get_func2 + } }); verifyEqualTo(obj, "foo", get_func2()); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-102.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-102.js index 6380660b8d..b1a52361c5 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-102.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-102.js @@ -13,23 +13,24 @@ includes: [propertyHelper.js] var obj = {}; function get_func() { - return 10; + return 10; } + function set_func(value) { - obj.setVerifyHelpProp = value; + obj.setVerifyHelpProp = value; } Object.defineProperty(obj, "foo", { - get: get_func, - set: set_func, - enumerable: true, - configurable: true + get: get_func, + set: set_func, + enumerable: true, + configurable: true }); Object.defineProperties(obj, { - foo: { - get: undefined - } + foo: { + get: undefined + } }); verifyWritable(obj, "foo", "setVerifyHelpProp"); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-103.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-103.js index bc9eb4e89c..7636e1ed31 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 1492ad4ab9..ee6c4afaf8 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 54713ca36a..334206b66e 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-105.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-105.js @@ -8,45 +8,47 @@ description: > present and properties.[[Set]] is undefined (8.12.9 step 12) ---*/ - var obj = {}; - function get_func() { - return 10; - } - function set_func() { - return 10; - } - - Object.defineProperty(obj, "property", { - get: get_func, - set: set_func, - enumerable: true, - configurable: true - }); - - Object.defineProperties(obj, { - property: { - set: undefined - } - }); - - var hasProperty = obj.hasOwnProperty("property"); - var verifyGet = false; - verifyGet = (obj.property === 10); - - var verifySet = false; - var desc = Object.getOwnPropertyDescriptor(obj, "property"); - verifySet = (typeof desc.set === 'undefined'); - - var verifyEnumerable = false; - for (var p in obj) { - if (p === "property") { - verifyEnumerable = true; - } - } - - var verifyConfigurable = false; - delete obj.property; - verifyConfigurable = obj.hasOwnProperty("property"); +var obj = {}; + +function get_func() { + return 10; +} + +function set_func() { + return 10; +} + +Object.defineProperty(obj, "property", { + get: get_func, + set: set_func, + enumerable: true, + configurable: true +}); + +Object.defineProperties(obj, { + property: { + set: undefined + } +}); + +var hasProperty = obj.hasOwnProperty("property"); +var verifyGet = false; +verifyGet = (obj.property === 10); + +var verifySet = false; +var desc = Object.getOwnPropertyDescriptor(obj, "property"); +verifySet = (typeof desc.set === 'undefined'); + +var verifyEnumerable = false; +for (var p in obj) { + if (p === "property") { + verifyEnumerable = true; + } +} + +var verifyConfigurable = false; +delete obj.property; +verifyConfigurable = obj.hasOwnProperty("property"); assert(hasProperty, 'hasProperty !== true'); assert(verifyGet, 'verifyGet !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-106.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-106.js index 325c9d5ed8..7f7efb05af 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 e87e8bbe03..36387ff35d 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-107.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-107.js @@ -13,23 +13,24 @@ includes: [propertyHelper.js] var obj = {}; function get_func() { - return 10; + return 10; } + function set_func(value) { - obj.setVerifyHelpProp = value; + obj.setVerifyHelpProp = value; } Object.defineProperty(obj, "foo", { - get: get_func, - set: set_func, - enumerable: true, - configurable: true + get: get_func, + set: set_func, + enumerable: true, + configurable: true }); Object.defineProperties(obj, { - foo: { - enumerable: false - } + foo: { + enumerable: false + } }); verifyEqualTo(obj, "foo", get_func()); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-108.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-108.js index a848f6f98f..5f19489b07 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-108.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-108.js @@ -13,23 +13,24 @@ includes: [propertyHelper.js] var obj = {}; function get_func() { - return 10; + return 10; } + function set_func(value) { - obj.setVerifyHelpProp = value; + obj.setVerifyHelpProp = value; } Object.defineProperty(obj, "foo", { - get: get_func, - set: set_func, - enumerable: true, - configurable: true + get: get_func, + set: set_func, + enumerable: true, + configurable: true }); Object.defineProperties(obj, { - foo: { - configurable: false - } + foo: { + configurable: false + } }); verifyEqualTo(obj, "foo", get_func()); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-109.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-109.js index 73cafcb44f..1eb1ff3420 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-109.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-109.js @@ -14,29 +14,31 @@ includes: [propertyHelper.js] var obj = {}; function get_func1() { - return 10; + return 10; } -function set_func1() { } + +function set_func1() {} Object.defineProperty(obj, "foo", { - get: get_func1, - set: set_func1, - configurable: true + get: get_func1, + set: set_func1, + configurable: true }); function get_func2() { - return 20; + return 20; } + function set_func2(value) { - obj.setVerifyHelpProp = value; + obj.setVerifyHelpProp = value; } Object.defineProperties(obj, { - foo: { - get: get_func2, - set: set_func2, - configurable: false - } + foo: { + get: get_func2, + set: set_func2, + configurable: false + } }); verifyEqualTo(obj, "foo", get_func2()); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-11.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-11.js index 2909b6d86c..fc8f60d3a8 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 2d6dd716aa..70616a1a9c 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-110.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-110.js @@ -13,25 +13,26 @@ includes: [propertyHelper.js] var obj = {}; function get_func() { - return 10; + return 10; } + function set_func(value) { - obj.setVerifyHelpProp = value; + obj.setVerifyHelpProp = value; } var properties = { - foo1: { - value: 200, - enumerable: true, - writable: true, - configurable: true - }, - foo2: { - get: get_func, - set: set_func, - enumerable: true, - configurable: true - } + foo1: { + value: 200, + enumerable: true, + writable: true, + configurable: true + }, + foo2: { + get: get_func, + set: set_func, + enumerable: true, + configurable: true + } }; Object.defineProperties(obj, properties); @@ -49,4 +50,3 @@ verifyWritable(obj, "foo2", "setVerifyHelpProp"); verifyEnumerable(obj, "foo2"); verifyConfigurable(obj, "foo2"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-111.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-111.js index 41a28895a3..6f25f50410 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 e22b9a9ead..04e0961d84 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-112.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-112.js @@ -8,17 +8,19 @@ description: > property of 'O' is own data property (15.4.5.1 step 1) ---*/ - var arr = [0, 1]; - Object.defineProperty(arr, "1", { - value: 1, - configurable: false - }); +var arr = [0, 1]; +Object.defineProperty(arr, "1", { + value: 1, + configurable: false +}); assert.throws(TypeError, function() { - Object.defineProperties(arr, { - length: { value: 1 } - }); + Object.defineProperties(arr, { + length: { + value: 1 + } + }); }); - var desc = Object.getOwnPropertyDescriptor(arr, "length"); +var desc = Object.getOwnPropertyDescriptor(arr, "length"); assert.sameValue(desc.value, 2, 'desc.value'); assert(desc.writable, 'desc.writable !== true'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-113.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-113.js index e9286e3412..108151ec26 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-113.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-113.js @@ -9,20 +9,22 @@ description: > data property (15.4.5.1 step 1) ---*/ - var arrProtoLen; - var arr = [0, 1, 2]; +var arrProtoLen; +var arr = [0, 1, 2]; assert.throws(TypeError, function() { - arrProtoLen = Array.prototype.length; - Array.prototype.length = 0; + arrProtoLen = Array.prototype.length; + Array.prototype.length = 0; - Object.defineProperty(arr, "2", { - configurable: false - }); + Object.defineProperty(arr, "2", { + configurable: false + }); - Object.defineProperties(arr, { - length: { value: 1 } - }); + Object.defineProperties(arr, { + length: { + value: 1 + } + }); }); var desc = Object.getOwnPropertyDescriptor(arr, "length"); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-114-b.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-114-b.js index e89046cadd..3d5a76ff0a 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-114-b.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-114-b.js @@ -12,10 +12,12 @@ includes: [propertyHelper.js] var arr = []; -Object.defineProperties(arr, { length: {} }); +Object.defineProperties(arr, { + length: {} +}); if (arr.length !== 0) { - $ERROR("Expected arr.length to be 0, actually " + arr.length); + $ERROR("Expected arr.length to be 0, actually " + arr.length); } verifyEqualTo(arr, "length", 0); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-114.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-114.js index 33e474f2f3..f696eab099 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-114.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-114.js @@ -12,10 +12,12 @@ includes: [propertyHelper.js] var arr = []; -Object.defineProperties(arr, { length: {} }); +Object.defineProperties(arr, { + length: {} +}); if (arr.length !== 0) { - $ERROR("Expected arr.length to be 0, actually " + arr.length); + $ERROR("Expected arr.length to be 0, actually " + arr.length); } arr.length = 2; diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-115.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-115.js index 75bde091ce..e5b5367272 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 4c300f6d74..8a9aeec7bb 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-116.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-116.js @@ -10,9 +10,11 @@ description: > of the length property from false to true (15.4.5.1 step 3.a.i) ---*/ - var arr = []; +var arr = []; assert.throws(TypeError, function() { - Object.defineProperties(arr, { - length: { configurable: true } - }); + Object.defineProperties(arr, { + length: { + configurable: true + } + }); }); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-117.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-117.js index ab0fecce74..2af4570489 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-117.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-117.js @@ -10,9 +10,11 @@ description: > the length property from false to true (15.4.5.1 step 3.a.i) ---*/ - var arr = []; +var arr = []; assert.throws(TypeError, function() { - Object.defineProperties(arr, { - length: { enumerable: true } - }); + Object.defineProperties(arr, { + length: { + enumerable: true + } + }); }); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-118.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-118.js index 95ab99ed58..7276c22bc4 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 e249d698ac..8e50d51d03 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-119.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-119.js @@ -10,13 +10,15 @@ description: > the length property from false to true (15.4.5.1 step 3.a.i) ---*/ - var arr = []; +var arr = []; - Object.defineProperty(arr, "length", { - writable: false - }); +Object.defineProperty(arr, "length", { + writable: false +}); assert.throws(TypeError, function() { - Object.defineProperties(arr, { - length: { writable: true } - }); + Object.defineProperties(arr, { + length: { + writable: true + } + }); }); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-12.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-12.js index c6c089f338..62e92a46bc 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 f5d2790228..6c5edbb409 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-120.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-120.js @@ -14,7 +14,9 @@ includes: [propertyHelper.js] var arr = []; Object.defineProperties(arr, { - length: { writable: false } + length: { + writable: false + } }); verifyEqualTo(arr, "length", 0); @@ -24,4 +26,3 @@ verifyNotWritable(arr, "length"); verifyNotEnumerable(arr, "length"); verifyNotConfigurable(arr, "length"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-121.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-121.js index 2c62ae0e94..0ddd7d8ac9 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-121.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-121.js @@ -9,10 +9,12 @@ description: > [[Value]] field of 'desc' to undefined (15.4.5.1 step 3.c) ---*/ - var arr = []; +var arr = []; assert.throws(RangeError, function() { - Object.defineProperties(arr, { - length: { value: undefined } - }); + Object.defineProperties(arr, { + length: { + value: undefined + } + }); }); assert.sameValue(arr.length, 0, 'arr.length'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-122.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-122.js index ff7a58b01c..537afaa85f 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-122.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-122.js @@ -9,10 +9,12 @@ description: > null actuall is set to 0 (15.4.5.1 step 3.c) ---*/ - var arr = [0, 1]; +var arr = [0, 1]; - Object.defineProperties(arr, { - length: { value: null } - }); +Object.defineProperties(arr, { + length: { + value: null + } +}); assert.sameValue(arr.length, 0, 'arr.length'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-123.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-123.js index f91cf3bb38..1ac2b4e768 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-123.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-123.js @@ -9,10 +9,12 @@ description: > with value false (15.4.5.1 step 3.c) ---*/ - var arr = [0, 1]; +var arr = [0, 1]; - Object.defineProperties(arr, { - length: { value: false } - }); +Object.defineProperties(arr, { + length: { + value: false + } +}); assert.sameValue(arr.length, 0, 'arr.length'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-124.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-124.js index 50abc60411..dc155dba61 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-124.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-124.js @@ -9,10 +9,12 @@ description: > with value true (15.4.5.1 step 3.c) ---*/ - var arr = []; +var arr = []; - Object.defineProperties(arr, { - length: { value: true } - }); +Object.defineProperties(arr, { + length: { + value: true + } +}); assert.sameValue(arr.length, 1, 'arr.length'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-125.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-125.js index d3f8838af8..20c7a54b76 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-125.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-125.js @@ -9,10 +9,12 @@ description: > step 3.c) ---*/ - var arr = [0, 1]; +var arr = [0, 1]; - Object.defineProperties(arr, { - length: { value: 0 } - }); +Object.defineProperties(arr, { + length: { + value: 0 + } +}); assert.sameValue(arr.length, 0, 'arr.length'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-126.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-126.js index a6d959af08..cd96fbb77b 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-126.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-126.js @@ -9,10 +9,12 @@ description: > (15.4.5.1 step 3.c) ---*/ - var arr = [0, 1]; +var arr = [0, 1]; - Object.defineProperties(arr, { - length: { value: +0 } - }); +Object.defineProperties(arr, { + length: { + value: +0 + } +}); assert.sameValue(arr.length, 0, 'arr.length'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-127.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-127.js index 23a8af3c3a..153b3e836e 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-127.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-127.js @@ -9,10 +9,12 @@ description: > (15.4.5.1 step 3.c) ---*/ - var arr = [0, 1]; +var arr = [0, 1]; - Object.defineProperties(arr, { - length: { value: -0 } - }); +Object.defineProperties(arr, { + length: { + value: -0 + } +}); assert.sameValue(arr.length, 0, 'arr.length'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-128.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-128.js index 23a5a1f6eb..ccf5343c89 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-128.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-128.js @@ -9,10 +9,12 @@ description: > number (15.4.5.1 step 3.c) ---*/ - var arr = []; +var arr = []; - Object.defineProperties(arr, { - length: { value: 12 } - }); +Object.defineProperties(arr, { + length: { + value: 12 + } +}); assert.sameValue(arr.length, 12, 'arr.length'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-129.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-129.js index e432de73f5..b1b51dd59e 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 072e438a7c..ea15dcbf4e 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 ff246ba324..c1323e470e 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 ada55d4a51..4e8941b574 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 16015d3bb0..456ca93d30 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 c5c56bf55e..a6dc04cf20 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 c9b787f8d9..7ff543c69c 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 5f9b707fde..87d7bf6923 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 1613213e86..2654f5126d 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 ebc116b2df..ac8e062b8f 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 26485cc646..c3e14cc133 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 1239e6adf1..60f77a8d1c 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 fe0134274b..a07faad547 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 ba7093b93c..81bb4fec3c 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 ae2debbf94..d65aac4f4c 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 be1c55b0b8..2740033605 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 0e13bf117a..b159518aec 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 d724d2d0f5..92cf900344 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 d63b5611ab..bfaa2ff1ad 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 96214d41de..a4e2b52b88 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 0e9d72a6a9..ab4cf68644 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 d70d2214f5..5b092a84b0 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 c509c53052..e06e22eda3 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 8a899c6622..510ef8b41a 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 7f6dc11360..7fd3d267c0 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 090d2e6503..c9ca3eb241 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 bf9c3b8d1e..30326c0b76 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 fddc31217b..ff368c41cc 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 b765653ef1..b31bcc2af1 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 f2bd0349c1..fd2f959966 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 c3fece46af..4e26d7c43b 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 c98990822b..1ac667a0a5 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 51e462ce42..21fbeacb8a 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 450bba1f29..61769efc52 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 a3eb0b4b6c..2d54c78ac0 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 94801d3631..88a9d623bb 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 264929a730..5b53ce3f7f 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 40756f8da9..c84659c619 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 ea479bad04..af2cbd543b 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-164.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-164.js @@ -17,21 +17,20 @@ var arr = [0, 1, 2]; var result = 0; try { - Object.defineProperty(arr, "1", { - configurable: false - }); + Object.defineProperty(arr, "1", { + configurable: false + }); - Object.defineProperties(arr, { - length: { - value: 0, - writable: false - } - }); + Object.defineProperties(arr, { + length: { + value: 0, + writable: false + } + }); - $ERROR("expected to throw TypeError") + $ERROR("expected to throw TypeError") } catch (e) { - assert(e instanceof TypeError); - assert.sameValue(arr.length, 2); - verifyNotWritable(arr, "length"); + assert(e instanceof TypeError); + assert.sameValue(arr.length, 2); + verifyNotWritable(arr, "length"); } - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-165.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-165.js index 6d83613b9a..2234686cee 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 a6bd8e38c2..2c08f8a3f0 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 ac2bf44178..5a5d042352 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 c93f4a78e6..0692d34d74 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 0b72ac3d66..0fc11411b3 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 43bc0511bf..e3ece34fbf 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 bb54504641..108d5e28e4 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 ca3db2cb93..8907e2757b 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 9386995591..a2c8370746 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 0664450db6..de0b12fe0f 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 569dc35df6..80c672016b 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 c4a266ad4f..970f0e6b20 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 e5c0147077..228c529c10 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-176.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-176.js @@ -17,24 +17,23 @@ includes: [propertyHelper.js] var arr = [0, 1]; try { - Object.defineProperty(arr, "1", { - configurable: false - }); + Object.defineProperty(arr, "1", { + configurable: false + }); - Object.defineProperties(arr, { - length: { - value: 1, - writable: false - } - }); + Object.defineProperties(arr, { + length: { + value: 1, + writable: false + } + }); - $ERROR("Expected to throw TypeError"); + $ERROR("Expected to throw TypeError"); } catch (e) { - assert(e instanceof TypeError); - assert(arr.hasOwnProperty("1")); - verifyNotWritable(arr, "length"); - assert.sameValue(arr[0], 0); - assert.sameValue(arr[1], 1); - assert.sameValue(arr.length, 2) + assert(e instanceof TypeError); + assert(arr.hasOwnProperty("1")); + verifyNotWritable(arr, "length"); + assert.sameValue(arr[0], 0); + assert.sameValue(arr[1], 1); + assert.sameValue(arr.length, 2) } - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-177.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-177.js index 57fb6e284d..6af4744321 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 3beabc6fa1..3b4dae0d0f 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 7fa434696f..4da0d9d1f4 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 57026dbdf3..fdba2202b2 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 1e2c4de0dd..85f89a62a1 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 a04bc26f87..061fcc2416 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 53f1964221..8b785e3588 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 fc8c6fa113..618a11bb08 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 3fe016ff42..05c864486e 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 3698753c54..04268e1715 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 e5f5943f62..1421ccc133 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 239da3b32a..b19e15195b 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 a5895c270a..0d7c7939f9 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 43dcd49916..b9daf11b0d 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 255d3fdc68..262f370b77 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 7ecdc01b2d..7d18bc5914 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 c074029e57..e084173ff4 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 5c064cd643..e561d95d06 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 1f6f921612..cfa67482c1 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 7241a38ef7..e52aa66a3b 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 f787b9c7ed..13ef4b2a95 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 4d826caeda..bd8358cec0 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 20bdac3607..d2a90405ab 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 2d19fa185b..e6ee904170 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 3be40ccde8..2800e7da78 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 4565c67a71..037a2eba39 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-2.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-2.js @@ -11,19 +11,19 @@ includes: [propertyHelper.js] var proto = {}; Object.defineProperty(proto, "prop", { - value: 11, - configurable: false + value: 11, + configurable: false }); -var Con = function () { }; +var Con = function() {}; Con.prototype = proto; var obj = new Con(); Object.defineProperties(obj, { - prop: { - value: 12, - configurable: true - } + prop: { + value: 12, + configurable: true + } }); verifyEqualTo(obj, "prop", 12); @@ -33,4 +33,3 @@ verifyNotWritable(obj, "prop"); verifyNotEnumerable(obj, "prop"); verifyConfigurable(obj, "prop"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-20.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-20.js index c6256b2e26..2a6a08acd6 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 cc35be1c1a..5a26d73f9c 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-200.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-200.js @@ -13,12 +13,12 @@ includes: [propertyHelper.js] var arr = [1]; // default value of attributes: writable: true, configurable: true, enumerable: true Object.defineProperties(arr, { - "0": { - value: 1001, - writable: false, - enumerable: false, - configurable: false - } + "0": { + value: 1001, + writable: false, + enumerable: false, + configurable: false + } }); verifyEqualTo(arr, "0", 1001); @@ -28,4 +28,3 @@ verifyNotWritable(arr, "0"); verifyNotEnumerable(arr, "0"); verifyNotConfigurable(arr, "0"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-201.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-201.js index 999c5ba757..b4b0a7c721 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 b9c0494212..febd6c62a3 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 39d5ee0a63..e5bb72fba4 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 806e428be7..c120b0c916 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 08243fb842..e1ebc8eac2 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 850cffa949..510fbad6e9 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 a70e5e30ad..9aefa195cf 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-207.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-207.js @@ -13,21 +13,22 @@ includes: [propertyHelper.js] var arr = []; function get_func() { - return 11; + return 11; } + function set_func(value) { - arr.setVerifyHelpProp = value; + arr.setVerifyHelpProp = value; } Object.defineProperty(arr, "0", { - get: get_func, - set: set_func, - enumerable: true, - configurable: true + get: get_func, + set: set_func, + enumerable: true, + configurable: true }); Object.defineProperties(arr, { - "0": {} + "0": {} }); verifyEqualTo(arr, "0", get_func()); @@ -36,4 +37,3 @@ verifyWritable(arr, "0", "setVerifyHelpProp"); verifyEnumerable(arr, "0"); verifyConfigurable(arr, "0"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-208.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-208.js index e20e686976..79607b34a4 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 a7186caa04..2620f9b4f7 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 242d0abfa8..f516ad3d05 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 ae4eae8af7..8eb9e5d412 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 5264f7457f..f282f7cb3b 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 7d734171fe..6414e5e35a 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 29609ef25f..2050822962 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 3efb783550..0492fc9891 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 311a412c63..98155875e4 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 85185125e8..543f09d233 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-216.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-216.js @@ -14,13 +14,13 @@ includes: [propertyHelper.js] var arr = []; Object.defineProperty(arr, "0", { - value: "abcd" + value: "abcd" }); Object.defineProperties(arr, { - "0": { - value: "abcd" - } + "0": { + value: "abcd" + } }); verifyEqualTo(arr, "0", "abcd"); @@ -29,4 +29,3 @@ verifyNotWritable(arr, "0"); verifyNotEnumerable(arr, "0"); verifyNotConfigurable(arr, "0"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-217.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-217.js index 1e4cbc9c4f..a518691b62 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-217.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-217.js @@ -14,13 +14,13 @@ includes: [propertyHelper.js] var arr = []; Object.defineProperty(arr, "0", { - value: true + value: true }); Object.defineProperties(arr, { - "0": { - value: true - } + "0": { + value: true + } }); verifyEqualTo(arr, "0", true); @@ -29,4 +29,3 @@ verifyNotWritable(arr, "0"); verifyNotEnumerable(arr, "0"); verifyNotConfigurable(arr, "0"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-218.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-218.js index b0f97e9f3f..5d44c38341 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-218.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-218.js @@ -13,15 +13,17 @@ includes: [propertyHelper.js] var arr = []; -var obj1 = { length: 10 }; +var obj1 = { + length: 10 +}; Object.defineProperty(arr, "0", { - value: obj1 + value: obj1 }); var properties = { - "0": { - value: obj1 - } + "0": { + value: obj1 + } }; Object.defineProperties(arr, properties); @@ -32,4 +34,3 @@ verifyNotWritable(arr, "0"); verifyNotEnumerable(arr, "0"); verifyNotConfigurable(arr, "0"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-219.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-219.js index 8ad990d37b..35ac3a739f 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-219.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-219.js @@ -13,13 +13,13 @@ includes: [propertyHelper.js] var arr = []; Object.defineProperty(arr, "0", { - writable: true + writable: true }); Object.defineProperties(arr, { - "0": { - writable: true - } + "0": { + writable: true + } }); verifyEqualTo(arr, "0", undefined); @@ -28,4 +28,3 @@ verifyWritable(arr, "0"); verifyNotEnumerable(arr, "0"); verifyNotConfigurable(arr, "0"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-22.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-22.js index 03026ecbe3..eb5f174817 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 748ce948ff..4f86b5e137 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-220.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-220.js @@ -13,14 +13,14 @@ includes: [propertyHelper.js] var arr = []; Object.defineProperty(arr, "0", { - writable: true, - configurable: true + writable: true, + configurable: true }); Object.defineProperties(arr, { - "0": { - writable: false - } + "0": { + writable: false + } }); verifyEqualTo(arr, "0", undefined); @@ -29,4 +29,3 @@ verifyNotWritable(arr, "0"); verifyNotEnumerable(arr, "0"); verifyConfigurable(arr, "0"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-221.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-221.js index debb4e15ad..7644225b81 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 7d8f78cf78..6e26cc0041 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 da7a0bac90..6bcd5d2b8e 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-223.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-223.js @@ -13,13 +13,13 @@ includes: [propertyHelper.js] var arr = []; Object.defineProperty(arr, "0", { - enumerable: true + enumerable: true }); Object.defineProperties(arr, { - "0": { - enumerable: true - } + "0": { + enumerable: true + } }); verifyEqualTo(arr, "0", undefined); @@ -28,4 +28,3 @@ verifyNotWritable(arr, "0"); verifyEnumerable(arr, "0"); verifyNotConfigurable(arr, "0"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-224.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-224.js index 70563553eb..1392677bcb 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-224.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-224.js @@ -13,14 +13,14 @@ includes: [propertyHelper.js] var arr = []; Object.defineProperty(arr, "0", { - enumerable: true, - configurable: true + enumerable: true, + configurable: true }); Object.defineProperties(arr, { - "0": { - enumerable: false - } + "0": { + enumerable: false + } }); verifyEqualTo(arr, "0", undefined); @@ -29,4 +29,3 @@ verifyNotWritable(arr, "0"); verifyNotEnumerable(arr, "0"); verifyConfigurable(arr, "0"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-225.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-225.js index 7c33a65660..05a09c6c6c 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-225.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-225.js @@ -13,13 +13,13 @@ includes: [propertyHelper.js] var arr = []; Object.defineProperty(arr, "0", { - configurable: true + configurable: true }); Object.defineProperties(arr, { - "0": { - configurable: true - } + "0": { + configurable: true + } }); verifyEqualTo(arr, "0", undefined); @@ -28,4 +28,3 @@ verifyNotWritable(arr, "0"); verifyNotEnumerable(arr, "0"); verifyConfigurable(arr, "0"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-226.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-226.js index 70706f009a..dae3f933e6 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-226.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-226.js @@ -13,13 +13,13 @@ includes: [propertyHelper.js] var arr = []; Object.defineProperty(arr, "0", { - configurable: true + configurable: true }); Object.defineProperties(arr, { - "0": { - configurable: false - } + "0": { + configurable: false + } }); verifyEqualTo(arr, "0", undefined); @@ -28,4 +28,3 @@ verifyNotWritable(arr, "0"); verifyNotEnumerable(arr, "0"); verifyNotConfigurable(arr, "0"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-227.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-227.js index 58bdad7145..653550a213 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 7eaededb83..a250ae9d82 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 07f79fba30..af726bb472 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 77e9b57123..f736890864 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 5211ef4041..65eab1859c 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 8010987b00..03d8e1cfd4 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 3bceb0c4d4..3980d3d268 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 b7e595b56a..a9e97ed641 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 1d32ba931c..6b05968e0d 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 9cd2f3b62b..d8a49387c8 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 ee99137995..b0d4a4ca9b 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 12f1bdf6bb..2874c575ff 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 f80453b6b9..491f525f55 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 1bf7cfbe7d..47298404e7 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 602c6232eb..36c03a7689 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-240.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-240.js @@ -14,32 +14,36 @@ includes: [propertyHelper.js] ---*/ var arr = []; -var obj1 = { value: 12 }; -var obj2 = { value: 36 }; +var obj1 = { + value: 12 +}; +var obj2 = { + value: 36 +}; Object.defineProperty(arr, "1", { - value: obj1 + value: obj1 }); try { - Object.defineProperties(arr, { - "1": { - value: obj2 - } - }); + Object.defineProperties(arr, { + "1": { + value: obj2 + } + }); - $ERROR("Expected an exception."); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arr, "1", obj1); + verifyEqualTo(arr, "1", obj1); - verifyNotWritable(arr, "1"); + verifyNotWritable(arr, "1"); - verifyNotEnumerable(arr, "1"); + verifyNotEnumerable(arr, "1"); - verifyNotConfigurable(arr, "1"); + verifyNotConfigurable(arr, "1"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-241.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-241.js index 79a4db019a..74406da4a0 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 68874dde07..814abc3ece 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 7077984f7b..e9e5140eb4 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 bdc27f3ecd..7d465cd8a0 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 f18c954ae1..c4037f25de 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 254a77b654..a4f6b477de 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-246.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-246.js @@ -17,16 +17,15 @@ includes: [propertyHelper.js] var arr = []; Object.defineProperty(arr, "1", { - get: undefined + get: undefined }); Object.defineProperties(arr, { - "1": { - get: undefined - } + "1": { + get: undefined + } }); verifyNotEnumerable(arr, "1"); verifyNotConfigurable(arr, "1"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-247.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-247.js index dde8f16936..e80d3aae01 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-247.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-247.js @@ -15,9 +15,9 @@ includes: [propertyHelper.js] var arr = [12]; Object.defineProperties(arr, { - "0": { - value: 36 - } + "0": { + value: 36 + } }); verifyEqualTo(arr, "0", 36); @@ -26,4 +26,3 @@ verifyWritable(arr, "0"); verifyEnumerable(arr, "0"); verifyConfigurable(arr, "0"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-248.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-248.js index 8dc6f3b24e..5d0431684c 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 1af6dc8477..25b2ca47fc 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-249.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-249.js @@ -15,9 +15,9 @@ includes: [propertyHelper.js] var arr = [undefined]; Object.defineProperties(arr, { - "0": { - value: 12 - } + "0": { + value: 12 + } }); verifyEqualTo(arr, "0", 12); @@ -26,4 +26,3 @@ verifyWritable(arr, "0"); verifyEnumerable(arr, "0"); verifyConfigurable(arr, "0"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-25.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-25.js index 3597664afa..f6549a4331 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 b9e5ace9ad..0cfd563b55 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-250.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-250.js @@ -15,9 +15,9 @@ includes: [propertyHelper.js] var arr = [100]; Object.defineProperties(arr, { - "0": { - writable: false - } + "0": { + writable: false + } }); verifyEqualTo(arr, "0", 100); @@ -26,4 +26,3 @@ verifyNotWritable(arr, "0"); verifyEnumerable(arr, "0"); verifyConfigurable(arr, "0"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-251.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-251.js index a4f6abd723..bc07d4e525 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 e9d04518ac..5d462269c3 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-252.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-252.js @@ -15,9 +15,9 @@ includes: [propertyHelper.js] var arr = [12]; Object.defineProperties(arr, { - "0": { - configurable: false - } + "0": { + configurable: false + } }); verifyEqualTo(arr, "0", 12); @@ -26,4 +26,3 @@ verifyWritable(arr, "0"); verifyEnumerable(arr, "0"); verifyNotConfigurable(arr, "0"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-253.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-253.js index 3d8a8044cf..34fafda67f 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-253.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-253.js @@ -15,11 +15,11 @@ includes: [propertyHelper.js] var arr = [12]; Object.defineProperties(arr, { - "0": { - value: 36, - writable: false, - configurable: false - } + "0": { + value: 36, + writable: false, + configurable: false + } }); verifyEqualTo(arr, "0", 36); @@ -28,4 +28,3 @@ verifyNotWritable(arr, "0"); verifyEnumerable(arr, "0"); verifyNotConfigurable(arr, "0"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-254.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-254.js index d97250fe6b..930ca2baaf 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 8321e0c54f..10d5685852 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 202953c719..c71b8b28c3 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 21f3d4fa1c..7ef4022769 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-257.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-257.js @@ -15,22 +15,21 @@ includes: [propertyHelper.js] var arr = []; function set_fun(value) { - arr.setVerifyHelpProp = value; + arr.setVerifyHelpProp = value; } Object.defineProperty(arr, "0", { - set: function () { }, - configurable: true + set: function() {}, + configurable: true }); Object.defineProperties(arr, { - "0": { - set: set_fun - } + "0": { + set: set_fun + } }); verifyWritable(arr, "0", "setVerifyHelpProp"); verifyNotEnumerable(arr, "0"); verifyConfigurable(arr, "0"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-258.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-258.js index be6f9065e6..ebe68bdd9f 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 5c9552d4d8..bfc6e92ee1 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 507a1c2498..6aaeef9a90 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 2afcae34b6..cef2a2c89b 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 f00373abdc..95d0592bf2 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-261.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-261.js @@ -15,21 +15,20 @@ includes: [propertyHelper.js] var arr = []; function set_fun(value) { - arr.setVerifyHelpProp = value; + arr.setVerifyHelpProp = value; } Object.defineProperty(arr, "0", { - set: set_fun, - configurable: true + set: set_fun, + configurable: true }); Object.defineProperties(arr, { - "0": { - configurable: false - } + "0": { + configurable: false + } }); verifyWritable(arr, "0", "setVerifyHelpProp"); verifyNotEnumerable(arr, "0"); verifyNotConfigurable(arr, "0"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-262.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-262.js index c0b2e56007..89c37c33c2 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-262.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-262.js @@ -15,26 +15,27 @@ includes: [propertyHelper.js] var arr = []; function get_fun() { - return 36; + return 36; } + function set_fun(value) { - arr.setVerifyHelpProp = value; + arr.setVerifyHelpProp = value; } Object.defineProperty(arr, "0", { - get: function () { - return 12; - }, - set: set_fun, - enumerable: true, - configurable: true + get: function() { + return 12; + }, + set: set_fun, + enumerable: true, + configurable: true }); Object.defineProperties(arr, { - "0": { - get: get_fun, - enumerable: false, - configurable: false - } + "0": { + get: get_fun, + enumerable: false, + configurable: false + } }); verifyEqualTo(arr, "0", get_fun()); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-263.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-263.js index d0dbf41459..aab9995f92 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 5fa17de2b4..03833d7c42 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 66cc2afd9c..c20b84c7f3 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 8183fd3277..886cbecff9 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-266.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-266.js @@ -15,12 +15,12 @@ includes: [propertyHelper.js] var arr = []; Object.defineProperties(arr, { - "property": { - value: 12, - writable: true, - enumerable: true, - configurable: true - } + "property": { + value: 12, + writable: true, + enumerable: true, + configurable: true + } }); verifyEqualTo(arr, "property", 12); @@ -31,6 +31,5 @@ verifyEnumerable(arr, "property"); verifyConfigurable(arr, "property"); if (arr.length !== 0) { - $ERROR('Expected arr.length === 0, actually ' + arr.length); + $ERROR('Expected arr.length === 0, actually ' + arr.length); } - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-267.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-267.js index 504bb0dd08..3a2ac372d4 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-267.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-267.js @@ -14,19 +14,20 @@ includes: [propertyHelper.js] var arr = []; function get_fun() { - return 12; + return 12; } + function set_fun(value) { - arr.setVerifyHelpProp = value; + arr.setVerifyHelpProp = value; } Object.defineProperties(arr, { - "property": { - get: get_fun, - set: set_fun, - enumerable: true, - configurable: true - } + "property": { + get: get_fun, + set: set_fun, + enumerable: true, + configurable: true + } }); verifyEqualTo(arr, "property", get_fun()); @@ -37,6 +38,5 @@ verifyEnumerable(arr, "property"); verifyConfigurable(arr, "property"); if (arr.length !== 0) { - $ERROR('Expected arr.length === 0, actually ' + arr.length); + $ERROR('Expected arr.length === 0, actually ' + arr.length); } - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-268.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-268.js index 442ce615a3..7c9b38e2a8 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-268.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-268.js @@ -11,26 +11,28 @@ includes: [propertyHelper.js] ---*/ var arr = []; + function get_fun() { - return 12; + return 12; } + function set_fun(value) { - arr.verifySetFun = value; + arr.verifySetFun = value; } Object.defineProperty(arr, "property", { - get: function () { - return 36; - }, - enumerable: true, - configurable: true + get: function() { + return 36; + }, + enumerable: true, + configurable: true }); Object.defineProperties(arr, { - "property": { - get: get_fun, - set: set_fun, - enumerable: false - } + "property": { + get: get_fun, + set: set_fun, + enumerable: false + } }); verifyEqualTo(arr, "property", get_fun()); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-269.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-269.js index fbd5296bc8..5a5f33fbb9 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-269.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-269.js @@ -15,11 +15,11 @@ var arr = []; arr.property = 12; // default value of attributes: writable: true, configurable: true, enumerable: true Object.defineProperties(arr, { - "property": { - writable: false, - enumerable: false, - configurable: false - } + "property": { + writable: false, + enumerable: false, + configurable: false + } }); verifyEqualTo(arr, "property", 12); @@ -30,6 +30,5 @@ verifyNotEnumerable(arr, "property"); verifyNotConfigurable(arr, "property"); if (arr.length !== 0) { - $ERROR('Expected arr.length === 0, actually ' + arr.length); + $ERROR('Expected arr.length === 0, actually ' + arr.length); } - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-27.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-27.js index a2b9355952..6e5601ac33 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 3d82d94571..128bdf8be0 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 a305f8b0e4..00e6605b9e 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 b6a732615d..deacff5007 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 5a403be99a..c300e411d3 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 8154599e0e..8d1baaab96 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-274.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-274.js @@ -14,36 +14,37 @@ includes: [propertyHelper.js] var arr = []; function get_fun() { - return 37; + return 37; } + function set_fun(value) { - arr.verifySetFun = value; + arr.verifySetFun = value; } Object.defineProperty(arr, "property", { - get: get_fun, - set: set_fun + get: get_fun, + set: set_fun }); try { - Object.defineProperties(arr, { - "property": { - get: function () { - return 36; - } - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(arr, { + "property": { + get: function() { + return 36; + } + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arr, "property", get_fun()); + verifyEqualTo(arr, "property", get_fun()); - verifyWritable(arr, "property", "verifySetFun"); + verifyWritable(arr, "property", "verifySetFun"); - verifyNotEnumerable(arr, "property"); + verifyNotEnumerable(arr, "property"); - verifyNotConfigurable(arr, "property"); + verifyNotConfigurable(arr, "property"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-275.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-275.js index 8a1dfa710e..1dbc7bb0f4 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 a185104aae..5da3d5c05e 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 13c7086f33..c77ec6b477 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 b2acfa15aa..b8bcd8b2e9 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 d2df5266b8..17f8a4a9aa 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-279.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-279.js @@ -16,25 +16,26 @@ includes: [propertyHelper.js] var arg; (function fun(a, b, c) { - arg = arguments; + arg = arguments; }(0, 1, 2)); delete arg[0]; function get_func() { - return 10; + return 10; } + function set_func(value) { - arg.setVerifyHelpProp = value; + arg.setVerifyHelpProp = value; } Object.defineProperties(arg, { - "0": { - get: get_func, - set: set_func, - enumerable: true, - configurable: true - } + "0": { + get: get_func, + set: set_func, + enumerable: true, + configurable: true + } }); verifyEqualTo(arg, "0", get_func()); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-28.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-28.js index 9b31ad36e0..5e6dff816a 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 4f4d8ef572..4e90dcae8e 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 45585e97c5..9254d3da3e 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 ab2c284880..01c1bdf287 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 151852c146..a00a24558f 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 dbe08b59f9..b7401b4e2e 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 362cc2dfbe..80f05bf0fc 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 c65a852dc1..3b7581a9cf 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 798298cf88..df2778efb7 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 b2ed708b42..0bcc9bc3e2 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 223497d044..42169d9c87 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 3080c1615e..fb45a1a6fb 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-29.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-29.js @@ -9,14 +9,16 @@ description: > descriptor 'desc' (8.12.9 step 4.a.i) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperties(obj, { - prop: { value: 1001} - }); +Object.defineProperties(obj, { + prop: { + value: 1001 + } +}); - for (var prop in obj) { - if (obj.hasOwnProperty(prop)) { - assert.notSameValue(prop, "prop", 'prop'); - } - } +for (var prop in obj) { + if (obj.hasOwnProperty(prop)) { + assert.notSameValue(prop, "prop", 'prop'); + } +} diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-290.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-290.js index 3c8440c167..8fb59187a6 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 eb1a968f7c..c885c76cee 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-291.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-291.js @@ -16,25 +16,26 @@ includes: [propertyHelper.js] var arg; (function fun() { - arg = arguments; + arg = arguments; }(0, 1, 2)); delete arg[0]; function get_func() { - return 10; + return 10; } + function set_func(value) { - arg.setVerifyHelpProp = value; + arg.setVerifyHelpProp = value; } Object.defineProperties(arg, { - "0": { - get: get_func, - set: set_func, - enumerable: false, - configurable: false - } + "0": { + get: get_func, + set: set_func, + enumerable: false, + configurable: false + } }); verifyEqualTo(arg, "0", get_func()); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-292.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-292.js index be6a0ea58c..da3cc57d18 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 d0f9cc9f8a..6a9c048528 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 ef8834ed3b..13b0269da1 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 6b23dcafae..42dc477b56 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 569a0618aa..7be2e646ee 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 c481b0d274..e59a4f51bc 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 82d464a7fc..5247a1c023 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 409ca275b7..f8483571d3 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 aa93f1f028..44393b0041 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 2811ce85e0..56f43b86f6 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-30.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-30.js @@ -14,16 +14,17 @@ var obj = {}; Object.defineProperties(obj, { - prop: { value: 1001 } + prop: { + value: 1001 + } }); verifyNotConfigurable(obj, "prop"); if (!obj.hasOwnProperty("prop")) { - $ERROR('Expected obj.hasOwnProperty("prop") to be true, actually ' + obj.hasOwnProperty("prop")); + $ERROR('Expected obj.hasOwnProperty("prop") to be true, actually ' + obj.hasOwnProperty("prop")); } if (obj.prop !== 1001) { - $ERROR('Expected obj.prop === 1001, actually ' + obj.prop); + $ERROR('Expected obj.prop === 1001, actually ' + obj.prop); } - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-300.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-300.js index d49318a5c8..1042edc13b 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 0a4d2f1171..686311e13c 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 f327628acb..616737e3fb 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 162369ec91..f9fa042ffe 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-303.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-303.js @@ -11,23 +11,24 @@ description: > includes: [propertyHelper.js] ---*/ -var arg = (function () { - return arguments; +var arg = (function() { + return arguments; }(1, 2, 3)); function getFun() { - return "getFunctionString"; + return "getFunctionString"; } + function setFun(value) { - arg.testGetFunction = value; + arg.testGetFunction = value; } Object.defineProperties(arg, { - "genericProperty": { - get: getFun, - set: setFun, - enumerable: true, - configurable: true - } + "genericProperty": { + get: getFun, + set: setFun, + enumerable: true, + configurable: true + } }); verifyEqualTo(arg, "genericProperty", getFun()); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-304.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-304.js index 6de139ec5d..8c3d0a57f8 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-304.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-304.js @@ -11,34 +11,35 @@ description: > includes: [propertyHelper.js] ---*/ -var arg = (function () { - return arguments; +var arg = (function() { + return arguments; }(1, 2, 3)); Object.defineProperty(arg, "genericProperty", { - get: function () { - return 1001; - }, - set: function (value) { - arg.testGetFunction1 = value; - }, - enumerable: true, - configurable: true + get: function() { + return 1001; + }, + set: function(value) { + arg.testGetFunction1 = value; + }, + enumerable: true, + configurable: true }); function getFun() { - return "getFunctionString"; + return "getFunctionString"; } + function setFun(value) { - arg.testGetFunction = value; + arg.testGetFunction = value; } Object.defineProperties(arg, { - "genericProperty": { - get: getFun, - set: setFun, - enumerable: false, - configurable: false - } + "genericProperty": { + get: getFun, + set: setFun, + enumerable: false, + configurable: false + } }); verifyEqualTo(arg, "genericProperty", getFun()); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-305.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-305.js index a066ade12c..111feb5bc1 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 e1ae25ad56..14968edc0a 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 34fafef04e..f4309ee3ad 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 8e014dbf0d..6052175b1a 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 81d10db5a3..2ec2e38b73 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 9666304b4c..034c2820bc 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-31.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-31.js @@ -12,12 +12,12 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperties(obj, { - prop: { - value: 1002, - writable: false, - enumerable: false, - configurable: false - } + prop: { + value: 1002, + writable: false, + enumerable: false, + configurable: false + } }); verifyEqualTo(obj, "prop", 1002); @@ -26,4 +26,3 @@ verifyNotWritable(obj, "prop"); verifyNotEnumerable(obj, "prop"); verifyNotConfigurable(obj, "prop"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-310.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-310.js index 923709023a..6c252eac44 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-310.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-310.js @@ -11,43 +11,44 @@ description: > includes: [propertyHelper.js] ---*/ -var arg = (function () { - return arguments; -} (1, 2, 3)); +var arg = (function() { + return arguments; +}(1, 2, 3)); function getFun() { - return "genericPropertyString"; + return "genericPropertyString"; } + function setFun(value) { - arg.verifySetFun = value; + arg.verifySetFun = value; } Object.defineProperty(arg, "genericProperty", { - get: getFun, - set: setFun, - configurable: false + get: getFun, + set: setFun, + configurable: false }); try { - Object.defineProperties(arg, { - "genericProperty": { - get: function () { - return "overideGenericPropertyString"; - } - } - }); - - $ERROR("Expected an exception."); + Object.defineProperties(arg, { + "genericProperty": { + get: function() { + return "overideGenericPropertyString"; + } + } + }); + + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arg, "genericProperty", getFun()); + verifyEqualTo(arg, "genericProperty", getFun()); - verifyWritable(arg, "genericProperty", "verifySetFun"); + verifyWritable(arg, "genericProperty", "verifySetFun"); - verifyNotEnumerable(arg, "genericProperty"); + verifyNotEnumerable(arg, "genericProperty"); - verifyNotConfigurable(arg, "genericProperty"); + verifyNotConfigurable(arg, "genericProperty"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-311.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-311.js index e01e0c624f..eacfb495e1 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 5195da8d4d..331f6565f2 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 5e2bbfb0ea..17291265a7 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 97f3e79dd9..e1dd0c862f 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 db3c9ed054..c92629f047 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-32.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-32.js @@ -9,11 +9,13 @@ description: > values (8.12.9 step 4.a.i) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperties(obj, { prop: {} }); +Object.defineProperties(obj, { + prop: {} +}); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert(desc.hasOwnProperty("value"), 'desc.hasOwnProperty("value") !== true'); assert.sameValue(typeof desc.value, "undefined", 'typeof desc.value'); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-33.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-33.js index bc699d003f..8df808343e 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-33.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-33.js @@ -11,20 +11,19 @@ includes: [propertyHelper.js] ---*/ var obj = {}; -var setFun = function (value) { - obj.setVerifyHelpProp = value; +var setFun = function(value) { + obj.setVerifyHelpProp = value; }; Object.defineProperties(obj, { - prop: { - set: setFun, - enumerable: true, - configurable: true - } + prop: { + set: setFun, + enumerable: true, + configurable: true + } }); verifyWritable(obj, "prop", "setVerifyHelpProp"); verifyEnumerable(obj, "prop"); verifyConfigurable(obj, "prop"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-34.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-34.js index 3c3d69ebc9..4e928915bb 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 49e2d514b8..9f6e931c1f 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-35.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-35.js @@ -11,19 +11,19 @@ includes: [propertyHelper.js] ---*/ var obj = {}; -var getFun = function () { - return 10; +var getFun = function() { + return 10; }; -var setFun = function (value) { - obj.setVerifyHelpProp = value; +var setFun = function(value) { + obj.setVerifyHelpProp = value; }; Object.defineProperties(obj, { - prop: { - set: setFun, - get: getFun, - configurable: true - } + prop: { + set: setFun, + get: getFun, + configurable: true + } }); verifyEqualTo(obj, "prop", getFun()); @@ -32,4 +32,3 @@ verifyWritable(obj, "prop", "setVerifyHelpProp"); verifyNotEnumerable(obj, "prop"); verifyConfigurable(obj, "prop"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-36.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-36.js index 172e71d514..424240fd07 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 6670ea99c8..3ec607f810 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-37.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-37.js @@ -10,20 +10,20 @@ includes: [propertyHelper.js] ---*/ var obj = {}; -var getFun = function () { - return 10; +var getFun = function() { + return 10; }; -var setFun = function (value) { - obj.setVerifyHelpProp = value; +var setFun = function(value) { + obj.setVerifyHelpProp = value; }; Object.defineProperties(obj, { - prop: { - get: getFun, - set: setFun, - enumerable: false, - configurable: false - } + prop: { + get: getFun, + set: setFun, + enumerable: false, + configurable: false + } }); verifyEqualTo(obj, "prop", getFun()); @@ -32,4 +32,3 @@ verifyWritable(obj, "prop", "setVerifyHelpProp"); verifyNotEnumerable(obj, "prop"); verifyNotConfigurable(obj, "prop"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-38-1.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-38-1.js index 9cdf31fce5..1f8a551969 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-38-1.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-38-1.js @@ -12,18 +12,20 @@ includes: [propertyHelper.js] var obj = {}; -var getFunc = function () { - return 12; +var getFunc = function() { + return 12; }; Object.defineProperties(obj, { - foo: { - get: getFunc, - enumerable: true, - configurable: true - } + foo: { + get: getFunc, + enumerable: true, + configurable: true + } }); -Object.defineProperties(obj, { foo: {} }); +Object.defineProperties(obj, { + foo: {} +}); verifyEqualTo(obj, "foo", getFunc()); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-38.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-38.js index 2ab69a8e83..b984b2fb13 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-38.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-38.js @@ -14,7 +14,9 @@ includes: [propertyHelper.js] var obj = {}; obj.foo = 100; // default value of attributes: writable: true, configurable: true, enumerable: true -Object.defineProperties(obj, { foo: {} }); +Object.defineProperties(obj, { + foo: {} +}); verifyEqualTo(obj, "foo", 100); verifyWritable(obj, "foo"); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-39.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-39.js index e3659e52d1..a1532cb67f 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-39.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-39.js @@ -15,12 +15,12 @@ var obj = {}; obj.foo = 101; // default value of attributes: writable: true, configurable: true, enumerable: true Object.defineProperties(obj, { - foo: { - value: 101, - enumerable: true, - writable: true, - configurable: true - } + foo: { + value: 101, + enumerable: true, + writable: true, + configurable: true + } }); verifyEqualTo(obj, "foo", 101); @@ -29,4 +29,3 @@ verifyWritable(obj, "foo"); verifyEnumerable(obj, "foo"); verifyConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-4.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-4.js index e1c624b551..861d548cb8 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 688821a533..cde59dc5e2 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-40.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-40.js @@ -13,27 +13,28 @@ includes: [propertyHelper.js] var obj = {}; function get_func() { - return 0; + return 0; } + function set_func(value) { - obj.setVerifyHelpProp = value; + obj.setVerifyHelpProp = value; } var desc = { - get: get_func, - set: set_func, - enumerable: true, - configurable: true + get: get_func, + set: set_func, + enumerable: true, + configurable: true }; Object.defineProperty(obj, "foo", desc); Object.defineProperties(obj, { - foo: { - get: get_func, - set: set_func, - enumerable: true, - configurable: true - } + foo: { + get: get_func, + set: set_func, + enumerable: true, + configurable: true + } }); verifyEqualTo(obj, "foo", get_func()); @@ -42,4 +43,3 @@ verifyWritable(obj, "foo", "setVerifyHelpProp"); verifyEnumerable(obj, "foo"); verifyConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-41.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-41.js index de330744d9..4151bdaaff 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-41.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-41.js @@ -15,9 +15,9 @@ var obj = {}; obj.foo = 101; // default value of attributes: writable: true, configurable: true, enumerable: true Object.defineProperties(obj, { - foo: { - value: "102" - } + foo: { + value: "102" + } }); verifyEqualTo(obj, "foo", "102"); @@ -26,4 +26,3 @@ verifyWritable(obj, "foo"); verifyEnumerable(obj, "foo"); verifyConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-42.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-42.js index 0c8907b689..a61da8f00b 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-42.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-42.js @@ -12,13 +12,15 @@ includes: [propertyHelper.js] var obj = {}; -var desc = { value: undefined }; +var desc = { + value: undefined +}; Object.defineProperty(obj, "foo", desc); Object.defineProperties(obj, { - foo: { - value: undefined - } + foo: { + value: undefined + } }); verifyEqualTo(obj, "foo", undefined); @@ -27,4 +29,3 @@ verifyNotWritable(obj, "foo"); verifyNotEnumerable(obj, "foo"); verifyNotConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-43.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-43.js index 51c96244c7..39f1d83f8f 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-43.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-43.js @@ -12,13 +12,15 @@ includes: [propertyHelper.js] var obj = {}; -var desc = { value: null }; +var desc = { + value: null +}; Object.defineProperty(obj, "foo", desc); Object.defineProperties(obj, { - foo: { - value: null - } + foo: { + value: null + } }); verifyEqualTo(obj, "foo", null); @@ -27,4 +29,3 @@ verifyNotWritable(obj, "foo"); verifyNotEnumerable(obj, "foo"); verifyNotConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-44.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-44.js index 9ff1d5befd..3eff291337 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-44.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-44.js @@ -12,16 +12,17 @@ includes: [propertyHelper.js] var obj = {}; -var desc = { value: NaN }; +var desc = { + value: NaN +}; Object.defineProperty(obj, "foo", desc); Object.defineProperties(obj, { - foo: { - value: NaN - } + foo: { + value: NaN + } }); verifyNotEnumerable(obj, "foo"); verifyNotWritable(obj, "foo"); verifyNotConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-45.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-45.js index 33d369c4ac..bda21bfe23 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-45.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-45.js @@ -12,27 +12,29 @@ includes: [propertyHelper.js] var obj = {}; -var desc = { value: -0 }; +var desc = { + value: -0 +}; Object.defineProperty(obj, "foo", desc); try { - Object.defineProperties(obj, { - foo: { - value: +0 - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(obj, { + foo: { + value: +0 + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(obj, "foo", -0); + verifyEqualTo(obj, "foo", -0); - verifyNotWritable(obj, "foo"); + verifyNotWritable(obj, "foo"); - verifyNotEnumerable(obj, "foo"); + verifyNotEnumerable(obj, "foo"); - verifyNotConfigurable(obj, "foo"); + verifyNotConfigurable(obj, "foo"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-46.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-46.js index e8cc5df2ba..1a7348c643 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-46.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-46.js @@ -12,27 +12,29 @@ includes: [propertyHelper.js] var obj = {}; -var desc = { value: +0 }; +var desc = { + value: +0 +}; Object.defineProperty(obj, "foo", desc); try { - Object.defineProperties(obj, { - foo: { - value: -0 - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(obj, { + foo: { + value: -0 + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(obj, "foo", +0); + verifyEqualTo(obj, "foo", +0); - verifyNotWritable(obj, "foo"); + verifyNotWritable(obj, "foo"); - verifyNotEnumerable(obj, "foo"); + verifyNotEnumerable(obj, "foo"); - verifyNotConfigurable(obj, "foo"); + verifyNotConfigurable(obj, "foo"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-47.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-47.js index b14bf50303..6385932006 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-47.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-47.js @@ -12,13 +12,15 @@ includes: [propertyHelper.js] var obj = {}; -var desc = { value: 101 }; +var desc = { + value: 101 +}; Object.defineProperty(obj, "foo", desc); Object.defineProperties(obj, { - foo: { - value: 101 - } + foo: { + value: 101 + } }); verifyEqualTo(obj, "foo", 101); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-48.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-48.js index 34d4dc158f..910dbf79d5 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 08978d57c5..381073f313 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-49.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-49.js @@ -13,13 +13,15 @@ includes: [propertyHelper.js] var obj = {}; -var desc = { value: "abcd" }; +var desc = { + value: "abcd" +}; Object.defineProperty(obj, "foo", desc); Object.defineProperties(obj, { - foo: { - value: "abcd" - } + foo: { + value: "abcd" + } }); verifyEqualTo(obj, "foo", "abcd"); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-5.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-5.js index 3f13a5f7c7..6159e5341f 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-5.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-5.js @@ -10,32 +10,33 @@ includes: [propertyHelper.js] ---*/ var obj = {}; + function getFunc() { - return 11; + return 11; } Object.defineProperty(obj, "prop", { - get: getFunc, - configurable: false + get: getFunc, + configurable: false }); try { - Object.defineProperties(obj, { - prop: { - value: 12, - configurable: true - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(obj, { + prop: { + value: 12, + configurable: true + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(obj, "prop", getFunc()); + verifyEqualTo(obj, "prop", getFunc()); - verifyNotEnumerable(obj, "prop"); + verifyNotEnumerable(obj, "prop"); - verifyNotConfigurable(obj, "prop"); + verifyNotConfigurable(obj, "prop"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-50.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-50.js index 96d7b34638..ca3ebff2ea 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 d05bf78b47..2184bd1ef7 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-51.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-51.js @@ -12,13 +12,15 @@ includes: [propertyHelper.js] var obj = {}; -var desc = { value: true }; +var desc = { + value: true +}; Object.defineProperty(obj, "foo", desc); Object.defineProperties(obj, { - foo: { - value: true - } + foo: { + value: true + } }); verifyEqualTo(obj, "foo", true); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-52.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-52.js index c649cb77af..ec6ec8925b 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 df9ed9f8ea..7b1f7f6377 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-53.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-53.js @@ -12,14 +12,18 @@ includes: [propertyHelper.js] var obj = {}; -var obj1 = { length: 10 }; -var desc = { value: obj1 }; +var obj1 = { + length: 10 +}; +var desc = { + value: obj1 +}; Object.defineProperty(obj, "foo", desc); Object.defineProperties(obj, { - foo: { - value: obj1 - } + foo: { + value: obj1 + } }); verifyEqualTo(obj, "foo", obj1); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-54.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-54.js index cfbb1fe194..19e37a7046 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-54.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-54.js @@ -12,15 +12,19 @@ includes: [propertyHelper.js] var obj = {}; -var obj1 = { length: 10 }; +var obj1 = { + length: 10 +}; obj.foo = obj1; // default value of attributes: writable: true, configurable: true, enumerable: true -var obj2 = { length: 20 }; +var obj2 = { + length: 20 +}; Object.defineProperties(obj, { - foo: { - value: obj2 - } + foo: { + value: obj2 + } }); verifyEqualTo(obj, "foo", obj2); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-55.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-55.js index 2037ebf6ca..56ae78800d 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-55.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-55.js @@ -12,13 +12,15 @@ includes: [propertyHelper.js] var obj = {}; -var desc = { writable: false }; +var desc = { + writable: false +}; Object.defineProperty(obj, "foo", desc); Object.defineProperties(obj, { - foo: { - writable: false - } + foo: { + writable: false + } }); verifyEqualTo(obj, "foo", undefined); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-56.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-56.js index f4c47b700b..3d6000d30a 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-56.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-56.js @@ -12,14 +12,17 @@ includes: [propertyHelper.js] var obj = {}; -var desc = { writable: false, configurable: true }; +var desc = { + writable: false, + configurable: true +}; Object.defineProperty(obj, "foo", desc); Object.defineProperties(obj, { - foo: { - writable: true, - configurable: true - } + foo: { + writable: true, + configurable: true + } }); verifyEqualTo(obj, "foo", undefined); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-57.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-57.js index fb8470edcc..67c6bc2670 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-57.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-57.js @@ -13,21 +13,20 @@ includes: [propertyHelper.js] var obj = {}; function get_Func() { - return 10; + return 10; } Object.defineProperty(obj, "foo", { - get: get_Func + get: get_Func }); Object.defineProperties(obj, { - foo: { - get: get_Func - } + foo: { + get: get_Func + } }); verifyNotEnumerable(obj, "foo"); assert.sameValue(obj.foo, 10); verifyNotConfigurable(obj, "foo") - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-58.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-58.js index ecbde1f773..c7a9d7c872 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 4220a37879..f74d2a2fd7 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 cdd9764614..1f3930f598 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 39e0c2e8ec..4c619fd073 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 78d9e185d8..14b726244c 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 4c18015ff0..7f7511776d 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 860effe4e5..b7c53b94ed 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 fa18f21d78..1fcaaa8900 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 a784e4fabd..96f9243e64 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 3e068c2d2b..1295aa86f5 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 3b26b50180..7029437054 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 f90e5acd48..94d360b5e0 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-67.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-67.js @@ -13,33 +13,32 @@ includes: [propertyHelper.js] var obj = {}; function get_Func() { - return 10; + return 10; } Object.defineProperty(obj, "foo", { - get: get_Func, - configurable: false + get: get_Func, + configurable: false }); try { - Object.defineProperties(obj, { - foo: { - value: 11 - } - }); + Object.defineProperties(obj, { + foo: { + value: 11 + } + }); - $ERROR("Expected TypeError"); + $ERROR("Expected TypeError"); } catch (e) { - assert(e instanceof TypeError); - verifyNotEnumerable(obj, "foo"); + assert(e instanceof TypeError); + verifyNotEnumerable(obj, "foo"); - assert.sameValue(obj.foo, 10); + assert.sameValue(obj.foo, 10); - verifyNotConfigurable(obj, "foo"); + verifyNotConfigurable(obj, "foo"); - var desc = Object.getOwnPropertyDescriptor(obj, "foo"); + var desc = Object.getOwnPropertyDescriptor(obj, "foo"); - assert.sameValue(typeof (desc.set), "undefined"); - assert.sameValue(desc.get, get_Func); + assert.sameValue(typeof(desc.set), "undefined"); + assert.sameValue(desc.get, get_Func); } - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-68.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-68.js index d1615f9748..8a5b27f21b 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 e0fb47e8ea..8df1027706 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 f46b1a03ae..a9aa8688fe 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 63693367ff..da3efb8d34 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 1e4ebef1ef..4b1fa51835 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 a7e08fd5d0..45b00d5b29 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 b277a1b1a4..65dbed0c11 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 359fcbffbc..0554f87c12 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 7f3c41cb4b..7d66ee61aa 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-75.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-75.js @@ -15,18 +15,17 @@ var obj = {}; var accessed = false; Object.defineProperty(obj, "foo", { - value: NaN, - writable: false, - configurable: false + value: NaN, + writable: false, + configurable: false }); Object.defineProperties(obj, { - foo: { - value: NaN - } + foo: { + value: NaN + } }); verifyNotEnumerable(obj, "foo"); verifyNotWritable(obj, "foo"); verifyNotConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-76.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-76.js index 8e45b20b19..9bc65e0567 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 76e45b219f..bdda83d93f 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 2a65114e63..ac98a36dc1 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-78.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-78.js @@ -14,15 +14,15 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "foo", { - value: 100, - writable: false, - configurable: false + value: 100, + writable: false, + configurable: false }); Object.defineProperties(obj, { - foo: { - value: 100 - } + foo: { + value: 100 + } }); verifyEqualTo(obj, "foo", 100); @@ -31,4 +31,3 @@ verifyNotWritable(obj, "foo"); verifyNotEnumerable(obj, "foo"); verifyNotConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-79.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-79.js index 78f718e2f7..e364fa6038 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 923f4fdc9b..119c27d798 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 736f2945e2..ba37ac598e 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 f44d56dd5c..99a88342da 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 e40729c335..10eff312d8 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 958e08ed99..6288ea2b3c 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 9ccb8b5c0e..f78066f0c8 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-84-1.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-84-1.js @@ -14,21 +14,23 @@ includes: [propertyHelper.js] var obj = {}; -var obj1 = { length: 10 }; +var obj1 = { + length: 10 +}; Object.defineProperty(obj, "foo", { - value: obj1, - writable: false, - configurable: false + value: obj1, + writable: false, + configurable: false }); var obj2 = obj1; obj2.y = "hello"; Object.defineProperties(obj, { - foo: { - value: obj2 - } + foo: { + value: obj2 + } }); verifyEqualTo(obj, "foo", obj1); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-84.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-84.js index 78e078fa7a..35932acd67 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-84.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-84.js @@ -14,18 +14,20 @@ includes: [propertyHelper.js] var obj = {}; -var obj1 = { length: 10 }; - -Object.defineProperty(obj, "foo", { - value: obj1, - writable: false, - configurable: false +var obj1 = { + length: 10 +}; + +Object.defineProperty(obj, "foo", { + value: obj1, + writable: false, + configurable: false }); Object.defineProperties(obj, { - foo: { - value: obj1 - } + foo: { + value: obj1 + } }); verifyEqualTo(obj, "foo", obj1); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-85.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-85.js index 7f5d016edc..9ff21468b2 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-85.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-85.js @@ -13,34 +13,38 @@ includes: [propertyHelper.js] var obj = {}; -var obj1 = { length: 10 }; - -Object.defineProperty(obj, "foo", { - value: obj1, - writable: false, - configurable: false +var obj1 = { + length: 10 +}; + +Object.defineProperty(obj, "foo", { + value: obj1, + writable: false, + configurable: false }); -var obj2 = { length: 20 }; +var obj2 = { + length: 20 +}; try { - Object.defineProperties(obj, { - foo: { - value: obj2 - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(obj, { + foo: { + value: obj2 + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(obj, "foo", obj1); + verifyEqualTo(obj, "foo", obj1); - verifyNotWritable(obj, "foo"); + verifyNotWritable(obj, "foo"); - verifyNotEnumerable(obj, "foo"); + verifyNotEnumerable(obj, "foo"); - verifyNotConfigurable(obj, "foo"); + verifyNotConfigurable(obj, "foo"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-86-1.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-86-1.js index a6ede93bfc..120d7ecce6 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 4792d6dc78..762302ec82 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-86.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-86.js @@ -14,22 +14,21 @@ includes: [propertyHelper.js] var obj = {}; function set_func(value) { - obj.setVerifyHelpProp = value; + obj.setVerifyHelpProp = value; } Object.defineProperty(obj, "foo", { - set: set_func, - configurable: false + set: set_func, + configurable: false }); Object.defineProperties(obj, { - foo: { - set: set_func - } + foo: { + set: set_func + } }); verifyWritable(obj, "foo", "setVerifyHelpProp"); verifyNotEnumerable(obj, "foo"); verifyNotConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-87.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-87.js index c62ac4b97a..13dbde09c8 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-87.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-87.js @@ -14,33 +14,32 @@ includes: [propertyHelper.js] var obj = {}; function set_func1(value) { - obj.setVerifyHelpProp = value; + obj.setVerifyHelpProp = value; } Object.defineProperty(obj, "foo", { - set: set_func1, - configurable: false + set: set_func1, + configurable: false }); function set_func2() {} try { - Object.defineProperties(obj, { - foo: { - set: set_func2 - } - }); - $ERROR("Expected an exception."); + Object.defineProperties(obj, { + foo: { + set: set_func2 + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyWritable(obj, "foo", "setVerifyHelpProp"); + verifyWritable(obj, "foo", "setVerifyHelpProp"); - verifyNotEnumerable(obj, "foo"); + verifyNotEnumerable(obj, "foo"); - verifyNotConfigurable(obj, "foo"); + verifyNotConfigurable(obj, "foo"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } - diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-88.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-88.js index a8ef44e7ff..bc961e8ffa 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 778ba138b3..0c2d713de0 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 1b703ad31e..35f88c16d3 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 2002a2c7ab..c8407d1e8e 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-90.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-90.js @@ -14,23 +14,24 @@ includes: [propertyHelper.js] var obj = {}; function set_func(value) { - obj.setVerifyHelpProp = value; + obj.setVerifyHelpProp = value; } + function get_func() { - return 10; + return 10; } Object.defineProperty(obj, "foo", { - get: get_func, - set: set_func, - enumerable: false, - configurable: false + get: get_func, + set: set_func, + enumerable: false, + configurable: false }); Object.defineProperties(obj, { - foo: { - get: get_func - } + foo: { + get: get_func + } }); verifyEqualTo(obj, "foo", get_func()); diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-91.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-91.js index 3698daffbb..ec80c007b3 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 adfd982a3a..2af77cd282 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 50e80f2486..2b77c05dba 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 cfbe9f5163..ccab6d7e8e 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 ff5d405632..040fd17b3f 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 89feb4d5f0..3f871066b1 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 2562a0ad05..4e3c784f21 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 2955e6ff4c..1df8a41328 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 387c062a1e..08a0229e88 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 8fec3fa534..18e7cb5d0f 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 197be1c816..015b74be78 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 cfd9cd94cf..37e8dc0122 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 ce93bc299d..055a3c8498 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 e552666a33..e507ae0bcf 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 07851ab52a..d78f0fa011 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 ad1ef64aaa..29698ff4a3 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 7fac12e1be..22322c244a 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 2f0f774641..a2368fcc01 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 c3459ee28e..bc863a7be7 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 7858e89077..1b8589db28 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 6c8c201fe7..c3b52b74d1 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 bfc039d849..576f3f9689 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 63ef4f2542..fb1fed3da3 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 230e0f1c77..2a2bb96bc8 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 5283705b27..54800b7b33 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 e6dbae7728..f14f48452d 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 e3a21b9726..94ccfaa868 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 2a57a5d35f..d0aa983f8d 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 9e8bb2ddb8..ae62d9a036 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 0dbaf2e38c..205de24a2c 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 bda77ab5e3..3cdcfc0d42 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 31d6fb887e..68d62dd21c 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 06d8aa82a3..fc3d896c0c 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 287d8c1dd5..d21b1b707b 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 e803f48def..dc5764ddbc 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 3839f960dd..3422c13177 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 da1d927b52..be331a8acc 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 740c0e3dd6..79d010d5bd 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 e514f84ac8..5499e7f551 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 889ff4480c..535f6c4b3d 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 ac3077dbf1..dee948966c 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 c4cd44599e..b897ff6487 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 076c40166b..e9d58d50c7 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 774bb3305b..9dee13a292 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 59dd29568f..844d7b7f39 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 fee7a11090..c34e5ae811 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 4e62e4a167..5749d1c9b1 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 c8d127e5d8..35b64a5a9d 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 85150e3fcc..c5dfc603d1 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 1e63f2334d..91e27ced4d 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 92fae11cdc..84c75005ad 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 97470527ad..3a60248f41 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 37a927863c..8574694e1a 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 5089fa099b..b971991d70 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 af780b296e..cda36d2b5c 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 dcfcdc5d9f..a605fd7ebb 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 f2eab5c8b8..194379fa1d 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 699492a0b9..6d65a48c54 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 ce1c4987e8..796bf8a945 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 09a51c1988..992db6eeea 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 cca20e2ee5..49c5bbc738 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 1fa4963c1a..b242a1786a 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 4de8a76c9e..792148aa7b 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 c0310cf559..001da37521 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 2915e96e43..6034791bf3 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 907eb445b3..305ffc905f 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 5dd8871964..c0776bb6e4 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 409ef356e0..021ab11fa3 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 f3acf87e55..030b5d02bb 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-1.js @@ -12,12 +12,17 @@ description: > 'value' present(8.10.5 step 9.a) ---*/ - var o = {}; +var o = {}; - // dummy getter - var getter = function () { return 1; } - var desc = { get: getter, value: 101}; +// dummy getter +var getter = function() { + return 1; +} +var desc = { + get: getter, + value: 101 +}; assert.throws(TypeError, function() { - Object.defineProperty(o, "foo", desc); + Object.defineProperty(o, "foo", desc); }); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-10.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-10.js index d15bb70e5e..ebb7f5bd48 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-10.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-10.js @@ -12,12 +12,14 @@ description: > but not undefined (Number)(8.10.5 step 8.b) ---*/ - var o = {}; - - // dummy setter - var setter = 42; - var desc = { set: setter }; +var o = {}; + +// dummy setter +var setter = 42; +var desc = { + set: setter +}; assert.throws(TypeError, function() { - Object.defineProperty(o, "foo", desc); + Object.defineProperty(o, "foo", desc); }); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-100.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-100.js index a792d3866b..5c49f9552c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-100.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-100.js @@ -9,9 +9,11 @@ description: > includes: [propertyHelper.js] ---*/ -var obj = { }; +var obj = {}; -Object.defineProperty(obj, "property", { configurable: null }); +Object.defineProperty(obj, "property", { + configurable: null +}); assert(obj.hasOwnProperty("property")); verifyNotConfigurable(obj, "property"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-101.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-101.js index 6f424df924..58ceddc3bb 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-101.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-101.js @@ -8,15 +8,17 @@ description: > true (8.10.5 step 4.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { configurable: true }); +Object.defineProperty(obj, "property", { + configurable: true +}); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-102.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-102.js index 956bdee570..f28ee33667 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-102.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-102.js @@ -9,9 +9,11 @@ description: > includes: [propertyHelper.js] ---*/ -var obj = { }; +var obj = {}; -Object.defineProperty(obj, "property", { configurable: false }); +Object.defineProperty(obj, "property", { + configurable: false +}); assert(obj.hasOwnProperty("property")); verifyNotConfigurable(obj, "property"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-103.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-103.js index ca816d3b39..442ccffbe8 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-103.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-103.js @@ -9,9 +9,11 @@ description: > includes: [propertyHelper.js] ---*/ -var obj = { }; +var obj = {}; -Object.defineProperty(obj, "property", { configurable: 0 }); +Object.defineProperty(obj, "property", { + configurable: 0 +}); assert(obj.hasOwnProperty("property")); verifyNotConfigurable(obj, "property"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-104.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-104.js index eee093efb9..0de5f8d982 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-104.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-104.js @@ -11,7 +11,9 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "property", { configurable: +0 }); +Object.defineProperty(obj, "property", { + configurable: +0 +}); assert(obj.hasOwnProperty("property")); verifyNotConfigurable(obj, "property"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-105.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-105.js index a96eceabe3..c899a8e444 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-105.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-105.js @@ -9,9 +9,11 @@ description: > includes: [propertyHelper.js] ---*/ -var obj = { }; +var obj = {}; -Object.defineProperty(obj, "property", { configurable: -0 }); +Object.defineProperty(obj, "property", { + configurable: -0 +}); assert(obj.hasOwnProperty("property")); verifyNotConfigurable(obj, "property"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-106.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-106.js index 35b086b0df..4a6edd949a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-106.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-106.js @@ -9,9 +9,11 @@ description: > includes: [propertyHelper.js] ---*/ -var obj = { }; +var obj = {}; -Object.defineProperty(obj, "property", { configurable: NaN }); +Object.defineProperty(obj, "property", { + configurable: NaN +}); assert(obj.hasOwnProperty("property")); verifyNotConfigurable(obj, "property"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-107.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-107.js index bfe8d6199b..4268d5d75a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-107.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-107.js @@ -8,15 +8,17 @@ description: > a positive number (8.10.5 step 4.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { configurable: 12345 }); +Object.defineProperty(obj, "property", { + configurable: 12345 +}); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-108.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-108.js index 533e2176ef..b80fa46330 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-108.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-108.js @@ -8,15 +8,17 @@ description: > a negative number (8.10.5 step 4.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { configurable: -12345 }); +Object.defineProperty(obj, "property", { + configurable: -12345 +}); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-109.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-109.js index ffd7940fe5..26f6c40599 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-109.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-109.js @@ -9,9 +9,11 @@ description: > includes: [propertyHelper.js] ---*/ -var obj = { }; +var obj = {}; -Object.defineProperty(obj, "property", { configurable: "" }); +Object.defineProperty(obj, "property", { + configurable: "" +}); assert(obj.hasOwnProperty("property")); verifyNotConfigurable(obj, "property"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-11.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-11.js index 28e657393e..6de92ffa5b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-11.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-11.js @@ -12,12 +12,14 @@ description: > but not undefined (Boolean)(8.10.5 step 8.b) ---*/ - var o = {}; - - // dummy setter - var setter = true; - var desc = { set: setter }; +var o = {}; + +// dummy setter +var setter = true; +var desc = { + set: setter +}; assert.throws(TypeError, function() { - Object.defineProperty(o, "foo", desc); + Object.defineProperty(o, "foo", desc); }); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-110.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-110.js index fa8d9108e8..9205a2b590 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-110.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-110.js @@ -8,15 +8,17 @@ description: > a non-empty string (8.10.5 step 4.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { configurable: " " }); +Object.defineProperty(obj, "property", { + configurable: " " +}); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-111.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-111.js index 03e65d3c83..4608840f9d 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 8b0def7fde..a09d35399a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-112.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-112.js @@ -8,15 +8,17 @@ description: > an Array object (8.10.5 step 4.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { configurable: [1, 2, 3] }); +Object.defineProperty(obj, "property", { + configurable: [1, 2, 3] +}); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-113.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-113.js index 59b6781075..9f0d8f5e98 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-113.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-113.js @@ -8,15 +8,17 @@ description: > a String object (8.10.5 step 4.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { configurable: new String("bbq") }); +Object.defineProperty(obj, "property", { + configurable: new String("bbq") +}); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-114.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-114.js index c6a3e8cd24..46972c084f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-114.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-114.js @@ -8,15 +8,17 @@ description: > a Boolean object (8.10.5 step 4.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { configurable: new Boolean(true) }); +Object.defineProperty(obj, "property", { + configurable: new Boolean(true) +}); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-115.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-115.js index 5907d7b81d..09b23a6b9d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-115.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-115.js @@ -8,15 +8,17 @@ description: > a Number object (8.10.5 step 4.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { configurable: new Number(0) }); +Object.defineProperty(obj, "property", { + configurable: new Number(0) +}); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-116.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-116.js index 2803afbe05..9309ae735c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-116.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-116.js @@ -8,15 +8,17 @@ description: > the Math object (8.10.5 step 4.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { configurable: Math }); +Object.defineProperty(obj, "property", { + configurable: Math +}); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-117.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-117.js index 2daeab199c..04d74d887e 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-117.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-117.js @@ -8,15 +8,17 @@ description: > a Date object (8.10.5 step 4.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { configurable: new Date() }); +Object.defineProperty(obj, "property", { + configurable: new Date() +}); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-118.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-118.js index 76e6ed6d32..29356c1aa9 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 7b4ff65cfb..07013e09b5 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 fd0ff11973..023cb1f851 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-12.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-12.js @@ -12,12 +12,14 @@ description: > but not undefined (String)(8.10.5 step 8.b) ---*/ - var o = {}; - - // dummy setter - var setter = "abc"; - var desc = { set: setter }; +var o = {}; + +// dummy setter +var setter = "abc"; +var desc = { + set: setter +}; assert.throws(TypeError, function() { - Object.defineProperty(o, "foo", desc); + Object.defineProperty(o, "foo", desc); }); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-120.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-120.js index 74acbbe025..9e7009358d 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 d7c924ad58..ed80e3969a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-121.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-121.js @@ -8,21 +8,23 @@ description: > the Argument object (8.10.5 step 4.b) ---*/ - var obj = {}; +var obj = {}; - var argObj = (function () { return arguments; })(1, true, "a"); +var argObj = (function() { + return arguments; +})(1, true, "a"); - var attr = { - configurable: argObj - }; +var attr = { + configurable: argObj +}; - Object.defineProperty(obj, "property", attr); +Object.defineProperty(obj, "property", attr); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-123.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-123.js index b89b54fc3e..5af18a0328 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 b4f1995e7a..4cd00a0cad 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 9c948ddaa5..4b16e7dbb0 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 e6e27c455f..055c958679 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-126.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-126.js @@ -8,10 +8,12 @@ description: > present (8.10.5 step 5) ---*/ - var obj = {}; +var obj = {}; - var attr = { value: 100 }; +var attr = { + value: 100 +}; - Object.defineProperty(obj, "property", attr); +Object.defineProperty(obj, "property", attr); assert.sameValue(obj.property, 100, 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-127.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-127.js index 2356a57b6e..a732f78a97 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 6c0767ea06..1549cb62c3 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 47111101f4..384450224d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-13.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-13.js @@ -12,12 +12,14 @@ description: > not callable (Null)(8.10.5 step 8.b) ---*/ - var o = {}; - - // dummy setter - var setter = null; - var desc = { set: setter }; +var o = {}; + +// dummy setter +var setter = null; +var desc = { + set: setter +}; assert.throws(TypeError, function() { - Object.defineProperty(o, "foo", desc); + Object.defineProperty(o, "foo", desc); }); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-130.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-130.js index d57fa64250..ad30676721 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-130.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-130.js @@ -9,17 +9,19 @@ description: > step 5.a) ---*/ - var obj = {}; +var obj = {}; - var proto = { value: "inheritedDataProperty" }; +var proto = { + value: "inheritedDataProperty" +}; - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var child = new ConstructFun(); +var child = new ConstructFun(); - child.value = "ownDataProperty"; +child.value = "ownDataProperty"; - Object.defineProperty(obj, "property", child); +Object.defineProperty(obj, "property", child); assert.sameValue(obj.property, "ownDataProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-131.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-131.js index 6490829bff..bba5ca3f3e 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 dac5ac76fd..4b37f1d2a3 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 0fbac7b7c0..96ba2888b5 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 25e3a8e4f1..bde2857ddd 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 81361b3a5c..7283eba4fa 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 6a3a9207e7..da1a2d6990 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 aafeec5ffa..da9ec587cd 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 1c0616d17d..7d8496fe55 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-138.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-138.js @@ -9,19 +9,21 @@ description: > 5.a) ---*/ - var obj = { property : 120 }; +var obj = { + property: 120 +}; - var proto = {}; - Object.defineProperty(proto, "value", { - set: function () { } - }); +var proto = {}; +Object.defineProperty(proto, "value", { + set: function() {} +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var child = new ConstructFun(); +var child = new ConstructFun(); - Object.defineProperty(obj, "property", child); +Object.defineProperty(obj, "property", child); assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); -assert.sameValue(typeof (obj.property), "undefined", 'typeof (obj.property)'); +assert.sameValue(typeof(obj.property), "undefined", 'typeof (obj.property)'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-139-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-139-1.js index dc4bb72beb..630261a0f8 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 544b80e063..86afdeca54 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 68037deefc..ea5c09dbf9 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-14.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-14.js @@ -12,12 +12,16 @@ description: > but not undefined (Object)(8.10.5 step 8.b) ---*/ - var o = {}; - - // dummy getter - var setter = { a: 1 }; - var desc = { set: setter }; +var o = {}; + +// dummy getter +var setter = { + a: 1 +}; +var desc = { + set: setter +}; assert.throws(TypeError, function() { - Object.defineProperty(o, "foo", desc); + Object.defineProperty(o, "foo", desc); }); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-140-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-140-1.js index 2427bce09b..0a5328e012 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 5dcb9fc1e3..3864f44ed5 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 7168b9b07c..01ceb708f6 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 531b40470e..4dfde83fd5 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 b7c70877df..65e2d29821 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 9daa893ce8..236907cd76 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 855177b2c9..fcab64dffc 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 e321f19905..7e3e529519 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 2d38e639f9..6845104955 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 5a243de1ca..013d64c9f2 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 738ae2d0e7..9c5905d7f6 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 0b7d5c75c0..2fa41afc51 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 28fd27b9d3..6ba4c290ab 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 fc99527fb2..b8a1232236 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 2a28c6b511..075a30d029 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 5974a207bb..66dca2c144 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 516717351e..d08b1716da 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 0e7a998432..1e9363c73e 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 7ce7e83e22..644b344661 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-149-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-149-1.js @@ -9,12 +9,14 @@ description: > of prototype object (8.10.5 step 5.a) ---*/ - var obj = {}; +var obj = {}; - Object.prototype.value = "arguments"; - var argObj = (function () { return arguments; })(); +Object.prototype.value = "arguments"; +var argObj = (function() { + return arguments; +})(); - Object.defineProperty(obj, "property", argObj); +Object.defineProperty(obj, "property", argObj); assert.sameValue(obj.property, "arguments", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-149.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-149.js index 4385351de5..164e85521a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-149.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-149.js @@ -9,12 +9,14 @@ description: > (8.10.5 step 5.a) ---*/ - var obj = {}; +var obj = {}; - var argObj = (function () { return arguments; })(); +var argObj = (function() { + return arguments; +})(); - argObj.value = "arguments"; +argObj.value = "arguments"; - Object.defineProperty(obj, "property", argObj); +Object.defineProperty(obj, "property", argObj); assert.sameValue(obj.property, "arguments", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-15.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-15.js index 03bca14f13..f3f1d54832 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 afa1640a3e..e0d0737afa 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 1b9eb1efed..d355d3c45d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-152.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-152.js @@ -12,7 +12,7 @@ includes: [propertyHelper.js] var obj = {}; var attr = { - writable: false + writable: false }; Object.defineProperty(obj, "property", attr); @@ -20,4 +20,3 @@ Object.defineProperty(obj, "property", attr); assert(obj.hasOwnProperty("property")); verifyNotWritable(obj, "property"); verifyNotConfigurable(obj, "property"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-153.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-153.js index d2ae3647f1..15eeb6e1cf 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 68f33cd8e9..b946275209 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 da6d6e0759..87423da12a 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 18ef468a6e..4e5a49d4e0 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 eb343016dc..27c98e78b2 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 38c1653883..29d46ba9f6 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 32dbd53411..fa99dd2e76 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 e56a08412e..3ed6b9190b 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 b363def645..d30abd3124 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 e2e626d34a..7072dc507a 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 1c3b3c7e9a..e5081410b6 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-162.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-162.js @@ -13,11 +13,10 @@ var obj = {}; var attr = {}; Object.defineProperty(attr, "writable", { - set: function () { } + set: function() {} }); Object.defineProperty(obj, "property", attr); assert(obj.hasOwnProperty("property")); verifyNotWritable(obj, "property"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-163.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-163.js index bbdf9eed72..3615ce5c6f 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 4c5e7b06c2..baaa4a1a38 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 2daa9523df..d790fc6e4d 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 3895b6f61f..c0e137038b 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 66bc45603a..3ed3f5223b 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 2781bbe76b..2422bbd2e6 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 e5227ee79e..6fa37c460a 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 9514ee5227..955db2b909 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 347024234d..9ae7ebb967 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 a817213316..ce57f97458 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 431adb9f6a..c6c675e9c8 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 4fbbfc386f..dc0d5554ff 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 855ddf4b2e..72f31b2e09 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 bd586b4b11..6a88ed9c5d 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 d0d86774fe..6f5f3065b2 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 a10aa1b7d4..b5941c8bf5 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 4cbcfcf9f8..15f8cc9e88 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 abcd93fc04..c75e3af141 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 8c1f6a6058..424ac5008e 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 78f95f7d2d..ec74c5a4f0 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 cb368f7d03..2b9aa032b3 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 073df79872..552d3ed010 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 e29059c3bf..ee58430a9b 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 cc32ea6b42..6ea4818623 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-175-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-175-1.js @@ -9,19 +9,21 @@ description: > property of prototype object (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Object.prototype.writable = true; +Object.prototype.writable = true; - var argObj = (function () { return arguments; })(); +var argObj = (function() { + return arguments; +})(); - Object.defineProperty(obj, "property", argObj); +Object.defineProperty(obj, "property", argObj); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-175.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-175.js index f816f7acfc..37644833da 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-175.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-175.js @@ -9,19 +9,21 @@ description: > property (8.10.5 step 6.a) ---*/ - var obj = {}; +var obj = {}; - var argObj = (function () { return arguments; })(); +var argObj = (function() { + return arguments; +})(); - argObj.writable = true; +argObj.writable = true; - Object.defineProperty(obj, "property", argObj); +Object.defineProperty(obj, "property", argObj); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-177.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-177.js index c044f4dd93..76ea0c955f 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 77d1123e1e..354b342f1d 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 ec43702bc9..88c9e3f0db 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-179.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-179.js @@ -9,9 +9,11 @@ description: > includes: [propertyHelper.js] ---*/ -var obj = { }; +var obj = {}; -Object.defineProperty(obj, "property", { writable: null }); +Object.defineProperty(obj, "property", { + writable: null +}); assert(obj.hasOwnProperty("property")); verifyNotWritable(obj, "property"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-18.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-18.js index c2f3bcd673..ad18680682 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 41365f9ce5..5eeabe40ef 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-180.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-180.js @@ -8,15 +8,17 @@ description: > true (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { writable: true }); +Object.defineProperty(obj, "property", { + writable: true +}); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-181.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-181.js index dba1963102..7b40135c27 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-181.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-181.js @@ -9,9 +9,11 @@ description: > includes: [propertyHelper.js] ---*/ -var obj = { }; +var obj = {}; -Object.defineProperty(obj, "property", { writable: false }); +Object.defineProperty(obj, "property", { + writable: false +}); assert(obj.hasOwnProperty("property")); verifyNotWritable(obj, "property"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-182.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-182.js index 559b4e64da..2d818dba21 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-182.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-182.js @@ -9,9 +9,11 @@ description: > includes: [propertyHelper.js] ---*/ -var obj = { }; +var obj = {}; -Object.defineProperty(obj, "property", { writable: 0 }); +Object.defineProperty(obj, "property", { + writable: 0 +}); assert(obj.hasOwnProperty("property")); verifyNotWritable(obj, "property"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-183.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-183.js index 815482b166..9b20abc03f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-183.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-183.js @@ -11,7 +11,9 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "property", { writable: +0 }); +Object.defineProperty(obj, "property", { + writable: +0 +}); assert(obj.hasOwnProperty("property")); verifyNotWritable(obj, "property"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-184.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-184.js index a7829b7660..d788c3d238 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-184.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-184.js @@ -9,9 +9,11 @@ description: > includes: [propertyHelper.js] ---*/ -var obj = { }; +var obj = {}; -Object.defineProperty(obj, "property", { writable: -0 }); +Object.defineProperty(obj, "property", { + writable: -0 +}); assert(obj.hasOwnProperty("property")); verifyNotWritable(obj, "property"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-185.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-185.js index 3e057091e6..883316e494 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-185.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-185.js @@ -9,13 +9,14 @@ description: > includes: [propertyHelper.js] ---*/ -var obj = { }; +var obj = {}; -Object.defineProperty(obj, "property", { writable: NaN}); +Object.defineProperty(obj, "property", { + writable: NaN +}); assert(obj.hasOwnProperty("property")); verifyNotWritable(obj, "property"); -assert.sameValue(typeof (obj.property), "undefined"); - +assert.sameValue(typeof(obj.property), "undefined"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-186.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-186.js index 1239edb9d4..59c0376b2d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-186.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-186.js @@ -8,15 +8,17 @@ description: > positive number (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { writable: 12345 }); +Object.defineProperty(obj, "property", { + writable: 12345 +}); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-187.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-187.js index 91c91c7f57..3c393647af 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-187.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-187.js @@ -8,15 +8,17 @@ description: > negative number (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { writable: -12345 }); +Object.defineProperty(obj, "property", { + writable: -12345 +}); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-188.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-188.js index 51fca69ec6..e23005612c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-188.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-188.js @@ -11,7 +11,9 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "property", { writable: "" }); +Object.defineProperty(obj, "property", { + writable: "" +}); assert(obj.hasOwnProperty("property")); verifyNotWritable(obj, "property"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-189.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-189.js index c3da81e30d..02bd96fe6d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-189.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-189.js @@ -8,15 +8,17 @@ description: > non-empty string (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { writable: " " }); +Object.defineProperty(obj, "property", { + writable: " " +}); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-19.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-19.js index c108213483..f4053d85cc 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 a87d465a00..12ace4eb7c 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 0bed96abce..bae79913a2 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-191.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-191.js @@ -8,15 +8,17 @@ description: > Array object (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { writable: [1, 2, 3] }); +Object.defineProperty(obj, "property", { + writable: [1, 2, 3] +}); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-192.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-192.js index 86a87b4237..b7c3568f18 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-192.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-192.js @@ -8,15 +8,17 @@ description: > String object (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { writable: new String("bbq") }); +Object.defineProperty(obj, "property", { + writable: new String("bbq") +}); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-193.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-193.js index 66f9558d02..9cec27586a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-193.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-193.js @@ -8,15 +8,17 @@ description: > Boolean object (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { writable: new Boolean(true) }); +Object.defineProperty(obj, "property", { + writable: new Boolean(true) +}); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-194.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-194.js index df8ac1084c..b798263398 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-194.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-194.js @@ -8,15 +8,17 @@ description: > Number object (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { writable: new Number(123) }); +Object.defineProperty(obj, "property", { + writable: new Number(123) +}); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-195.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-195.js index 339bfc4c2e..992e8da924 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-195.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-195.js @@ -8,15 +8,17 @@ description: > Math object (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { writable: Math }); +Object.defineProperty(obj, "property", { + writable: Math +}); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-196.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-196.js index 2ce077a6ef..62c4cd7d7c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-196.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-196.js @@ -8,15 +8,17 @@ description: > Date object (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { writable: new Date() }); +Object.defineProperty(obj, "property", { + writable: new Date() +}); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-197.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-197.js index 550d69b6b5..702cffb785 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 f5ccb88830..f7e0e2cb1f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-198.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-198.js @@ -8,15 +8,17 @@ description: > JSON object (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { writable: JSON }); +Object.defineProperty(obj, "property", { + writable: JSON +}); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-199.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-199.js index ffd301e24a..7b9d8aa356 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-199.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-199.js @@ -8,15 +8,17 @@ description: > Error object (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { writable: new SyntaxError() }); +Object.defineProperty(obj, "property", { + writable: new SyntaxError() +}); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-2.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-2.js index 082d367fe3..50c5a0faf3 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-2.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-2.js @@ -12,12 +12,17 @@ description: > 'writable' present(8.10.5 step 9.a) ---*/ - var o = {}; - - // dummy getter - var getter = function () { return 1; } - var desc = { get: getter, writable: false }; +var o = {}; + +// dummy getter +var getter = function() { + return 1; +} +var desc = { + get: getter, + writable: false +}; assert.throws(TypeError, function() { - Object.defineProperty(o, "foo", desc); + Object.defineProperty(o, "foo", desc); }); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-20.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-20.js index 1873ba03ef..1fba3a8b8d 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 286cb4f5d5..8ce95c3dd9 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-200.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-200.js @@ -8,17 +8,21 @@ description: > Argument object (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - var argObj = (function () { return arguments; })(1, true, "a"); +var argObj = (function() { + return arguments; +})(1, true, "a"); - Object.defineProperty(obj, "property", { writable: argObj }); +Object.defineProperty(obj, "property", { + writable: argObj +}); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-202.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-202.js index 52ee4bbd6d..1a662e73f6 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 cb0c0e4972..9d4a5239e9 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-203.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-203.js @@ -9,15 +9,17 @@ description: > 6.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { writable: "false" }); +Object.defineProperty(obj, "property", { + writable: "false" +}); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-204.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-204.js index a8d61b311c..07341a6ce7 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-204.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-204.js @@ -8,15 +8,17 @@ description: > treated as true when it is new Boolean(false) (8.10.5 step 6.b) ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "property", { writable: new Boolean(false) }); +Object.defineProperty(obj, "property", { + writable: new Boolean(false) +}); - var beforeWrite = obj.hasOwnProperty("property"); +var beforeWrite = obj.hasOwnProperty("property"); - obj.property = "isWritable"; +obj.property = "isWritable"; - var afterWrite = (obj.property === "isWritable"); +var afterWrite = (obj.property === "isWritable"); assert.sameValue(beforeWrite, true, 'beforeWrite'); assert.sameValue(afterWrite, true, 'afterWrite'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-205.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-205.js index 4d1f8183b7..0aa07865df 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 004e92a78d..b7ee5eb851 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 720e1e1c0b..f0d1e15370 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 3be19510af..acfd6d48a3 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 06e83faf6f..65e76e89c0 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 24baf80a03..b8054e9b43 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 52122a6292..8f62b01bed 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 543ef14fbb..ba3085b962 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 9cf8718b8a..4eb0b303c6 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 2b51e1554b..a0839ccfea 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 b740fedec0..b4bbb84425 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 0e03885d01..cd74bb102d 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 f80e5aa703..d8a9c00984 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 4454a148ee..78ed6f0f07 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 af3ba07d28..ea8476132f 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 4b1b50bb77..3237a5db99 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 777e4b1e16..65f8a003e9 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 4586f5b9df..561257b218 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 e09e9b43bd..858e65ee71 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 12816889ee..e84ef2f7f7 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 90284ea2dd..0937215832 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 5984602a4e..70a954f197 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 d23d5d32a6..f62fd3eb76 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 2782d54438..b2b3af5692 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 5399691234..04f5d8af67 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 cb7c01393b..d8849c6a29 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 165f297a7f..e9de0f5185 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 4e2957df90..dd6e0d0505 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 aff1cffe09..3b6b143c43 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 cac5367617..fc96a2d1d4 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 df394a6422..f65c6e74ad 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 63ccc8a3a9..8531ea1b94 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 404626ea18..f7d9510138 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 3b694afa29..69c0c2b1f3 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 a61ca0f0c4..cd5a996ed5 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 89b7ba7df2..2f6acb4b12 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-228-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-228-1.js @@ -9,13 +9,15 @@ description: > prototype object (8.10.5 step 7.a) ---*/ - var obj = {}; +var obj = {}; - Object.prototype.get = function () { - return "argumentGetProperty"; - }; - var argObj = (function () { return arguments; })(); +Object.prototype.get = function() { + return "argumentGetProperty"; +}; +var argObj = (function() { + return arguments; +})(); - Object.defineProperty(obj, "property", argObj); +Object.defineProperty(obj, "property", argObj); assert.sameValue(obj.property, "argumentGetProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-228.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-228.js index abacba3aa9..3bed3952c3 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-228.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-228.js @@ -9,14 +9,16 @@ description: > (8.10.5 step 7.a) ---*/ - var obj = {}; +var obj = {}; - var argObj = (function () { return arguments; })(); +var argObj = (function() { + return arguments; +})(); - argObj.get = function () { - return "argumentGetProperty"; - }; +argObj.get = function() { + return "argumentGetProperty"; +}; - Object.defineProperty(obj, "property", argObj); +Object.defineProperty(obj, "property", argObj); assert.sameValue(obj.property, "argumentGetProperty", 'obj.property'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-23.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-23.js index bb1b20d09b..b45a048a3e 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 2a894faeb3..69a884b8fe 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 3352bff3c0..b9c1fab4b6 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 1556b1c7b6..78e0e141e1 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 e4b65b842c..97cec21352 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 8a09f51b05..a52ba6e963 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 6f940328bd..8060ed559a 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 ee2a0704c5..6b1fcfc71d 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 fc8ab6600d..90a83a52f8 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 bccb1de1e2..fe6ed9ef38 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 3a148ce82b..20efcfc135 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 17bf99c8a7..159da6087e 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 132baba02c..a1b53d312c 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 f343f73a47..a324607a00 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 1696066e48..0989ddcdb8 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 5953cc76fe..87f88a3dd1 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-245.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-245.js @@ -13,7 +13,7 @@ var obj = {}; var attributes = {}; Object.defineProperty(attributes, "set", { - set: function () { } + set: function() {} }); Object.defineProperty(obj, "property", attributes); @@ -25,4 +25,3 @@ var desc = Object.getOwnPropertyDescriptor(obj, "property"); assert(obj.hasOwnProperty("property")); assert.sameValue(typeof obj.property, "undefined"); assert.sameValue(typeof desc.set, "undefined"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-246.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-246.js index d3c9b3b051..aaada824fa 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 7de4f4b3fd..ad5c22adaf 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 4ff3487ad1..222c7aca7e 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 2f473b9860..7097d17702 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 12f19e8948..11845419aa 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 dce84e78be..b431308daa 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 2b278d63be..5bbdda1160 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 10055b5c8a..372576ab90 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 bfededf6b2..0549855c40 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 6ea5a518d4..f4799b7290 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 9bbccaff95..5e7f2ddd27 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 749f8bc335..72e1288dd1 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 549dcd00e5..199d853dba 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 96622fe508..56d185832e 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 322dfe1f02..5aa8e6a571 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 9b3a47fe4e..3d774064d7 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 215cd639d3..3c5799b94b 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 15c2b421e0..04d4f46f01 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 058730c2f8..fd1f42cf89 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 86747c4b87..5b3a9c5db4 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 67353422e9..885adc1760 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 a0fe033392..86693a8aca 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 944e77f984..e11ce787d5 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 0b250f10f2..48c857b9be 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-258-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-258-1.js @@ -9,16 +9,18 @@ description: > prototype object (8.10.5 step 8.a) ---*/ - var obj = {}; - var data = "data"; +var obj = {}; +var data = "data"; - Object.prototype.set = function (value) { - data = value; - }; - var argObj = (function () { return arguments; })(); +Object.prototype.set = function(value) { + data = value; +}; +var argObj = (function() { + return arguments; +})(); - Object.defineProperty(obj, "property", argObj); - obj.property = "overrideData"; +Object.defineProperty(obj, "property", argObj); +obj.property = "overrideData"; assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); assert.sameValue(data, "overrideData", 'data'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-258.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-258.js index 3ec7fdcf09..f75b5de0ed 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-258.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-258.js @@ -9,15 +9,17 @@ description: > (8.10.5 step 8.a) ---*/ - var obj = {}; - var data = "data"; - var argObj = (function () { return arguments; })(); - argObj.set = function (value) { - data = value; - }; +var obj = {}; +var data = "data"; +var argObj = (function() { + return arguments; +})(); +argObj.set = function(value) { + data = value; +}; - Object.defineProperty(obj, "property", argObj); - obj.property = "overrideData"; +Object.defineProperty(obj, "property", argObj); +obj.property = "overrideData"; assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); assert.sameValue(data, "overrideData", 'data'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-26.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-26.js index cddcf00fa4..cb6114b6cd 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 17a785f860..993707e945 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 517fd80674..bf605c2c84 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 0b8522c7ff..7e5c6c1c2a 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 83cb145730..05c981290e 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 0de7fce4a0..013382fe9a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-28.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-28.js @@ -9,28 +9,30 @@ description: > (8.10.5 step 3.a) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - var proto = { enumerable: false }; +var proto = { + enumerable: false +}; - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var child = new ConstructFun(); +var child = new ConstructFun(); - Object.defineProperty(child, "enumerable", { - get: function () { - return true; - } - }); +Object.defineProperty(child, "enumerable", { + get: function() { + return true; + } +}); - Object.defineProperty(obj, "property", child); +Object.defineProperty(obj, "property", child); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-29.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-29.js index 665c3218e4..c7a432892b 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 9e0d0f396b..d701420b41 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-3.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-3.js @@ -12,12 +12,15 @@ description: > 'value' present(8.10.5 step 9.a) ---*/ - var o = {}; +var o = {}; - // dummy setter - var setter = function () { } - var desc = { set: setter, value: 101}; +// dummy setter +var setter = function() {} +var desc = { + set: setter, + value: 101 +}; assert.throws(TypeError, function() { - Object.defineProperty(o, "foo", desc); + Object.defineProperty(o, "foo", desc); }); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-30.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-30.js index 54be326f7f..cfc961d17c 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 476cf5038c..f628d64227 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 b1981975f4..112d61a296 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 17f152928a..60d9644e4e 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 98980b1d5e..60abcc95de 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 6a54cf1728..d17143545f 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 83aba5145b..1d94646525 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 908e603b1c..3d47c1b360 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 00b780f0a1..a38b4988b1 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 a385748a7f..fe685c5114 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 2ca7f9ab98..da76274509 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 d9e83be1f6..4cd927281b 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 291f1b0e3f..b7cf88d535 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 c49dc19dc7..0fe274646e 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 ea7b3809fb..d3851c5f6a 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 54bc49d18f..2ea93ddfc5 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 476162159b..605f7a5f9f 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 e740fecf1a..209074cda1 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-4.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-4.js @@ -12,12 +12,15 @@ description: > 'writable' present(8.10.5 step 9.a) ---*/ - var o = {}; - - // dummy getter - var setter = function () { } - var desc = { set: setter, writable: false }; +var o = {}; + +// dummy getter +var setter = function() {} +var desc = { + set: setter, + writable: false +}; assert.throws(TypeError, function() { - Object.defineProperty(o, "foo", desc); + Object.defineProperty(o, "foo", desc); }); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-40-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-40-1.js index 6f2548ffd6..a9250c89c6 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 46975d82c7..1d87040b4c 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 c53c418401..562a96cd84 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 6475a5ceb6..5c25f80021 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 41e13499fb..cec338131f 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 909994b824..9e287b18d8 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 7a799db391..c1565948ed 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-43-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-43-1.js @@ -9,18 +9,20 @@ description: > property of prototype object (8.10.5 step 3.a) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.prototype.enumerable = true; - var argObj = (function () { return arguments; })(); +Object.prototype.enumerable = true; +var argObj = (function() { + return arguments; +})(); - Object.defineProperty(obj, "property", argObj); +Object.defineProperty(obj, "property", argObj); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-43.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-43.js index 8c2be1cae5..f4a0f9de76 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-43.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-43.js @@ -9,18 +9,20 @@ description: > property (8.10.5 step 3.a) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - var argObj = (function () { return arguments; })(); - argObj.enumerable = true; +var argObj = (function() { + return arguments; +})(); +argObj.enumerable = true; - Object.defineProperty(obj, "property", argObj); +Object.defineProperty(obj, "property", argObj); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-45.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-45.js index 98538314a0..eedac149c2 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 9e6003e7c1..ded4ff9672 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 2ed3c5efdd..3a927f0f20 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-47.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-47.js @@ -8,15 +8,17 @@ description: > 'Attributes' is null (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperty(obj, "property", { enumerable: null }); +Object.defineProperty(obj, "property", { + enumerable: null +}); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-48.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-48.js index d1e420ea8f..c42943fe72 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-48.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-48.js @@ -8,15 +8,17 @@ description: > 'Attributes' is true (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperty(obj, "property", { enumerable: true }); +Object.defineProperty(obj, "property", { + enumerable: true +}); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-49.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-49.js index bed11ffd6d..f24a82be30 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-49.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-49.js @@ -8,15 +8,17 @@ description: > 'Attributes' is false (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperty(obj, "property", { enumerable: false }); +Object.defineProperty(obj, "property", { + enumerable: false +}); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-5.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-5.js index 763fbca7a0..e2290434de 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-5.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-5.js @@ -12,12 +12,14 @@ description: > but not undefined (Number)(8.10.5 step 7.b) ---*/ - var o = {}; - - // dummy getter - var getter = 42; - var desc = { get: getter }; +var o = {}; + +// dummy getter +var getter = 42; +var desc = { + get: getter +}; assert.throws(TypeError, function() { - Object.defineProperty(o, "foo", desc); + Object.defineProperty(o, "foo", desc); }); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-50.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-50.js index 91a8d09062..aa6c0582e8 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-50.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-50.js @@ -8,15 +8,17 @@ description: > 'Attributes' is 0 (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperty(obj, "property", { enumerable: 0 }); +Object.defineProperty(obj, "property", { + enumerable: 0 +}); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-51.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-51.js index ddea2dfa77..4b5e1dffc9 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-51.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-51.js @@ -8,15 +8,17 @@ description: > 'Attributes' is +0 (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperty(obj, "property", { enumerable: +0 }); +Object.defineProperty(obj, "property", { + enumerable: +0 +}); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-52.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-52.js index 2fb433b80a..19ad09b8d5 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-52.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-52.js @@ -8,15 +8,17 @@ description: > 'Attributes' is -0 (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperty(obj, "property", { enumerable: -0 }); +Object.defineProperty(obj, "property", { + enumerable: -0 +}); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-53.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-53.js index aaa5fef8e1..9b22a839bf 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-53.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-53.js @@ -8,15 +8,17 @@ description: > 'Attributes' is NaN (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperty(obj, "property", { enumerable: NaN }); +Object.defineProperty(obj, "property", { + enumerable: NaN +}); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-54.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-54.js index 479ed01b77..0eb6de95d6 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-54.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-54.js @@ -8,15 +8,17 @@ description: > 'Attributes' is a positive number (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperty(obj, "property", { enumerable: 12 }); +Object.defineProperty(obj, "property", { + enumerable: 12 +}); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-55.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-55.js index bba81e43e1..7357b3c821 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-55.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-55.js @@ -8,15 +8,17 @@ description: > 'Attributes' is a negative number (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperty(obj, "property", { enumerable: -2 }); +Object.defineProperty(obj, "property", { + enumerable: -2 +}); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-56.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-56.js index ff875f28a2..8bf0c1e6a7 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-56.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-56.js @@ -8,15 +8,17 @@ description: > 'Attributes' is an empty string (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperty(obj, "property", { enumerable: "" }); +Object.defineProperty(obj, "property", { + enumerable: "" +}); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert.sameValue(accessed, false, 'accessed'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-57.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-57.js index ec0bb7376d..78c6e6928a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-57.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-57.js @@ -8,15 +8,17 @@ description: > 'Attributes' is a non-empty string (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperty(obj, "property", { enumerable: "AB\n\\cd" }); +Object.defineProperty(obj, "property", { + enumerable: "AB\n\\cd" +}); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-58.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-58.js index be5dd1d8da..2cb29dd7ab 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 404f491efb..6a4e73e7e5 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-59.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-59.js @@ -8,15 +8,17 @@ description: > 'Attributes' is an Array object (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperty(obj, "property", { enumerable: [] }); +Object.defineProperty(obj, "property", { + enumerable: [] +}); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-6.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-6.js index be4b9302eb..333d6a1d8c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-6.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-6.js @@ -12,12 +12,14 @@ description: > but not undefined (Boolean)(8.10.5 step 7.b) ---*/ - var o = {}; - - // dummy getter - var getter = true; - var desc = { get: getter }; +var o = {}; + +// dummy getter +var getter = true; +var desc = { + get: getter +}; assert.throws(TypeError, function() { - Object.defineProperty(o, "foo", desc); + Object.defineProperty(o, "foo", desc); }); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-60.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-60.js index b8a43aeb74..c1a4fc7b7b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-60.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-60.js @@ -8,15 +8,17 @@ description: > 'Attributes' is a String Object (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperty(obj, "property", { enumerable: new String() }); +Object.defineProperty(obj, "property", { + enumerable: new String() +}); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-61.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-61.js index 1e963978c9..7d46bdf7bf 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-61.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-61.js @@ -8,15 +8,17 @@ description: > 'Attributes' is a Boolean Object (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperty(obj, "property", { enumerable: new Boolean() }); +Object.defineProperty(obj, "property", { + enumerable: new Boolean() +}); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-62.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-62.js index 60be30065c..cb2aef8d05 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-62.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-62.js @@ -8,15 +8,17 @@ description: > 'Attributes' is a Number Object (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperty(obj, "property", { enumerable: new Number() }); +Object.defineProperty(obj, "property", { + enumerable: new Number() +}); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-63.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-63.js index a18690aac4..ef607344f1 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-63.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-63.js @@ -8,15 +8,17 @@ description: > 'Attributes' is the Math Object (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperty(obj, "property", { enumerable: Math }); +Object.defineProperty(obj, "property", { + enumerable: Math +}); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-64.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-64.js index 8ede8c20ed..4cd67c97d7 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-64.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-64.js @@ -8,15 +8,17 @@ description: > 'Attributes' is a Date Object (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperty(obj, "property", { enumerable: new Date() }); +Object.defineProperty(obj, "property", { + enumerable: new Date() +}); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-65.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-65.js index 57380cd635..0be3df181c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-65.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-65.js @@ -8,15 +8,17 @@ description: > 'Attributes' is a RegExp Object (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperty(obj, "property", { enumerable: new RegExp() }); +Object.defineProperty(obj, "property", { + enumerable: new RegExp() +}); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-66.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-66.js index ec25504356..0d07de5d2b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-66.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-66.js @@ -8,15 +8,17 @@ description: > 'Attributes' is the JSON Object (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperty(obj, "property", { enumerable: JSON }); +Object.defineProperty(obj, "property", { + enumerable: JSON +}); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-67.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-67.js index fe4c45f0ea..f2993f58d5 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-67.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-67.js @@ -8,15 +8,17 @@ description: > 'Attributes' is an Error Object (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperty(obj, "property", { enumerable: new Error() }); +Object.defineProperty(obj, "property", { + enumerable: new Error() +}); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-68.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-68.js index 842b98eb26..e5b19c83e6 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-68.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-68.js @@ -8,16 +8,20 @@ description: > 'Attributes' is an Arguments Object (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; - var argObj = (function () { return arguments; })(0, 1, 2); +var obj = {}; +var accessed = false; +var argObj = (function() { + return arguments; +})(0, 1, 2); - Object.defineProperty(obj, "property", { enumerable: argObj }); +Object.defineProperty(obj, "property", { + enumerable: argObj +}); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-7.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-7.js index 54556c3030..b9690c2bbf 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-7.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-7.js @@ -12,12 +12,14 @@ description: > but not undefined (String)(8.10.5 step 7.b) ---*/ - var o = {}; - - // dummy getter - var getter = "abc"; - var desc = { get: getter }; +var o = {}; + +// dummy getter +var getter = "abc"; +var desc = { + get: getter +}; assert.throws(TypeError, function() { - Object.defineProperty(o, "foo", desc); + Object.defineProperty(o, "foo", desc); }); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-70.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-70.js index ded68d14c1..f3b46f3d6f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-70.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-70.js @@ -8,15 +8,17 @@ description: > 'Attributes' is the global object (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperty(obj, "property", { enumerable: this }); +Object.defineProperty(obj, "property", { + enumerable: this +}); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-71.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-71.js index d732a95230..d32608e8a7 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-71.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-71.js @@ -9,15 +9,17 @@ description: > 'false') (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperty(obj, "property", { enumerable: "false" }); +Object.defineProperty(obj, "property", { + enumerable: "false" +}); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-72.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-72.js index 64bd3d7e2b..1da2600b62 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-72.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-72.js @@ -9,15 +9,17 @@ description: > (8.10.5 step 3.b) ---*/ - var obj = {}; - var accessed = false; +var obj = {}; +var accessed = false; - Object.defineProperty(obj, "property", { enumerable: new Boolean(false) }); +Object.defineProperty(obj, "property", { + enumerable: new Boolean(false) +}); - for (var prop in obj) { - if (prop === "property") { - accessed = true; - } - } +for (var prop in obj) { + if (prop === "property") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-73.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-73.js index baac16ea65..cc482c6c89 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 c6fc62d820..d5c2b4ba9e 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-74.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-74.js @@ -9,9 +9,11 @@ description: > includes: [propertyHelper.js] ---*/ -var obj = { }; +var obj = {}; -Object.defineProperty(obj, "property", { value: 100 }); +Object.defineProperty(obj, "property", { + value: 100 +}); assert(obj.hasOwnProperty("property")); verifyNotConfigurable(obj, "property"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-75.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-75.js index 57de46485f..29eabf5bdb 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 39e2e863af..649f877b30 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 9d80e8cb70..849e2ce6e1 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 7373f43740..b6c53ec3fc 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 175d52cd68..047d7763f4 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 31591f85fa..95eac7dafe 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-8.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-8.js @@ -12,12 +12,14 @@ description: > but not undefined (Null)(8.10.5 step 7.b) ---*/ - var o = {}; - - // dummy getter - var getter = null; - var desc = { get: getter }; +var o = {}; + +// dummy getter +var getter = null; +var desc = { + get: getter +}; assert.throws(TypeError, function() { - Object.defineProperty(o, "foo", desc); + Object.defineProperty(o, "foo", desc); }); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-80.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-80.js index c89606b690..d89c14ee79 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 a4f3021f60..136567ae3a 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 ac8473eff2..25c3a1db62 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 a11deb24a5..b39b5cf911 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 5b646c9ad3..73297b3727 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 0d4c6548c1..3d8051dc58 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-85.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-85.js @@ -14,10 +14,10 @@ var obj = {}; var proto = {}; Object.defineProperty(proto, "configurable", { - set: function () { } + set: function() {} }); -var ConstructFun = function () { }; +var ConstructFun = function() {}; ConstructFun.prototype = proto; var child = new ConstructFun(); @@ -29,6 +29,4 @@ assert(obj.hasOwnProperty("property")); verifyNotConfigurable(obj, "property"); assert(obj.hasOwnProperty("property")); -assert.sameValue(typeof (obj.property), "undefined"); - - +assert.sameValue(typeof(obj.property), "undefined"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-86-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-86-1.js index 016698c0e1..687d2cd7bb 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 bccb677153..d50eee13ce 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 b28cb68810..8d7386e464 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 ed16679ea0..7473126e8c 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 c0708bbe19..c5b2ee9fb0 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 4060b4f3a9..9accbf1125 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 2ee6e17924..f0fd7d2f05 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 f39c1ed8d0..b693ffbca4 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 e0fe885c6e..a3f036a73a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-9.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-9.js @@ -12,12 +12,16 @@ description: > but not undefined (Object)(8.10.5 step 7.b) ---*/ - var o = {}; - - // dummy getter - var getter = { a: 1 }; - var desc = { get: getter }; +var o = {}; + +// dummy getter +var getter = { + a: 1 +}; +var desc = { + get: getter +}; assert.throws(TypeError, function() { - Object.defineProperty(o, "foo", desc); + Object.defineProperty(o, "foo", desc); }); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-90-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-90-1.js index d867abbc69..542a8eebbc 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 e3d3251d93..a5904b0518 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 2191b771e4..d0a8e2927b 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 e87007a5ae..934094a5e5 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 8665effb5c..f02615e75b 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 b245dc17df..1afb867676 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 b34879406e..775057ba8d 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 3657fd461c..f79298d355 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 293602b42f..aa834b6bb3 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 f7cd3d9aad..a3a3f4d309 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 28d5de387c..e86e3bd9ae 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 f0063df457..f37dab1492 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 53a448dd06..3dad6f88be 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-96-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-96-1.js @@ -9,18 +9,20 @@ description: > property (8.10.5 step 4.a) ---*/ - var obj = {}; +var obj = {}; - Object.prototype.configurable = true; - var argObj = (function () { return arguments; })(); +Object.prototype.configurable = true; +var argObj = (function() { + return arguments; +})(); - Object.defineProperty(obj, "property", argObj); +Object.defineProperty(obj, "property", argObj); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-96.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-96.js index 97b7217a6c..1730ebf40c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-96.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-96.js @@ -9,18 +9,20 @@ description: > property (8.10.5 step 4.a) ---*/ - var obj = {}; +var obj = {}; - var argObj = (function () { return arguments; })(); - argObj.configurable = true; +var argObj = (function() { + return arguments; +})(); +argObj.configurable = true; - Object.defineProperty(obj, "property", argObj); +Object.defineProperty(obj, "property", argObj); - var beforeDeleted = obj.hasOwnProperty("property"); +var beforeDeleted = obj.hasOwnProperty("property"); - delete obj.property; +delete obj.property; - var afterDeleted = obj.hasOwnProperty("property"); +var afterDeleted = obj.hasOwnProperty("property"); assert.sameValue(beforeDeleted, true, 'beforeDeleted'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-98.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-98.js index 5480de3fab..26be7d83b3 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 f78b899c82..b809de3238 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-99.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-99.js @@ -9,9 +9,11 @@ description: > includes: [propertyHelper.js] ---*/ -var obj = { }; +var obj = {}; -Object.defineProperty(obj, "property", { configurable: undefined }); +Object.defineProperty(obj, "property", { + configurable: undefined +}); assert(obj.hasOwnProperty("property")); verifyNotConfigurable(obj, "property"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-1.js index 8dfc4e949c..00a540894e 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-1.js @@ -14,10 +14,12 @@ description: > non-extensible objects(8.12.9 step 3) ---*/ - var o = {}; - Object.preventExtensions(o); +var o = {}; +Object.preventExtensions(o); assert.throws(TypeError, function() { - var desc = { value: 1 }; - Object.defineProperty(o, "foo", desc); + var desc = { + value: 1 + }; + Object.defineProperty(o, "foo", desc); }); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-10.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-10.js index 9c6022243d..71145b2c8d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-10.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-10.js @@ -14,22 +14,31 @@ description: > properties ---*/ - var o = {}; +var o = {}; - // create an accessor property; all other attributes default to false. - // dummy getter - var getter = function () { return 1; } - var d1 = { get: getter, enumerable: false, configurable: false }; - Object.defineProperty(o, "foo", d1); +// create an accessor property; all other attributes default to false. +// dummy getter +var getter = function() { + return 1; +} +var d1 = { + get: getter, + enumerable: false, + configurable: false +}; +Object.defineProperty(o, "foo", d1); - // now, setting enumerable to true should fail, since [[Configurable]] - // on the original property will be false. - var desc = { get: getter, enumerable: true }; +// now, setting enumerable to true should fail, since [[Configurable]] +// on the original property will be false. +var desc = { + get: getter, + enumerable: true +}; assert.throws(TypeError, function() { - Object.defineProperty(o, "foo", desc); + Object.defineProperty(o, "foo", desc); }); - // the property should remain unchanged. - var d2 = Object.getOwnPropertyDescriptor(o, "foo"); +// the property should remain unchanged. +var d2 = Object.getOwnPropertyDescriptor(o, "foo"); assert.sameValue(d2.get, getter, 'd2.get'); assert.sameValue(d2.enumerable, false, 'd2.enumerable'); assert.sameValue(d2.configurable, false, 'd2.configurable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-100.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-100.js index b3d524226a..efda2cd61d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-100.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-100.js @@ -14,7 +14,7 @@ var obj = {}; obj.foo = 100; // default value of attributes: writable: true, configurable: true, enumerable: true Object.defineProperty(obj, "foo", { - value: 200 + value: 200 }); verifyEqualTo(obj, "foo", 200); @@ -23,4 +23,3 @@ verifyWritable(obj, "foo"); verifyEnumerable(obj, "foo"); verifyConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-101.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-101.js index 2d32ed31df..bd15bb5668 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-101.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-101.js @@ -13,7 +13,9 @@ var obj = {}; obj.foo = 100; // default value of attributes: writable: true, configurable: true, enumerable: true -Object.defineProperty(obj, "foo", { value: undefined }); +Object.defineProperty(obj, "foo", { + value: undefined +}); verifyEqualTo(obj, "foo", undefined); verifyWritable(obj, "foo"); @@ -21,4 +23,3 @@ verifyWritable(obj, "foo"); verifyEnumerable(obj, "foo"); verifyConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-102.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-102.js index 01fd9bdb50..5ad0a75c56 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-102.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-102.js @@ -13,7 +13,9 @@ var obj = {}; obj.foo = undefined; // default value of attributes: writable: true, configurable: true, enumerable: true -Object.defineProperty(obj, "foo", { value: 100 }); +Object.defineProperty(obj, "foo", { + value: 100 +}); verifyEqualTo(obj, "foo", 100); verifyWritable(obj, "foo"); @@ -21,4 +23,3 @@ verifyWritable(obj, "foo"); verifyEnumerable(obj, "foo"); verifyConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-103.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-103.js index 9a082b26af..44f7cb2fb8 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-103.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-103.js @@ -13,11 +13,12 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "foo", { - writable: false, configurable: true + writable: false, + configurable: true }); Object.defineProperty(obj, "foo", { - writable: true + writable: true }); verifyEqualTo(obj, "foo", undefined); @@ -26,4 +27,3 @@ verifyWritable(obj, "foo"); verifyNotEnumerable(obj, "foo"); verifyConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-104.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-104.js index 74fa125daf..1a2b93d2a2 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-104.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-104.js @@ -13,12 +13,12 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "foo", { - enumerable: false, - configurable: true + enumerable: false, + configurable: true }); Object.defineProperty(obj, "foo", { - enumerable: true + enumerable: true }); verifyEqualTo(obj, "foo", undefined); @@ -27,4 +27,3 @@ verifyNotWritable(obj, "foo"); verifyEnumerable(obj, "foo"); verifyConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-105.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-105.js index 67a9b88f01..8059ec3653 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-105.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-105.js @@ -13,14 +13,14 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "foo", { - value: 200, - enumerable: true, - writable: true, - configurable: true + value: 200, + enumerable: true, + writable: true, + configurable: true }); Object.defineProperty(obj, "foo", { - configurable: false + configurable: false }); verifyEqualTo(obj, "foo", 200); @@ -30,4 +30,3 @@ verifyWritable(obj, "foo"); verifyEnumerable(obj, "foo"); verifyNotConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-106.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-106.js index 598d0a06e8..c6a9e58fd5 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-106.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-106.js @@ -12,17 +12,17 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { - value: 100, - writable: true, - enumerable: true, - configurable: true +Object.defineProperty(obj, "foo", { + value: 100, + writable: true, + enumerable: true, + configurable: true }); -Object.defineProperty(obj, "foo", { - value: 200, - writable: false, - enumerable: false +Object.defineProperty(obj, "foo", { + value: 200, + writable: false, + enumerable: false }); verifyEqualTo(obj, "foo", 200); @@ -31,4 +31,3 @@ verifyNotWritable(obj, "foo"); verifyNotEnumerable(obj, "foo"); verifyConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-107.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-107.js index ee85f3e499..f888deb396 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 2e967e1cb7..14f5eb8225 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 80c2b1ce47..8b7123a390 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 a189d21095..aa07d64e55 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-11.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-11.js @@ -14,22 +14,31 @@ description: > properties ---*/ - var o = {}; +var o = {}; - // create an accessor property; all other attributes default to false. - // dummy getter - var getter = function () { return 1; } - var d1 = { get: getter, enumerable: true, configurable: false }; - Object.defineProperty(o, "foo", d1); +// create an accessor property; all other attributes default to false. +// dummy getter +var getter = function() { + return 1; +} +var d1 = { + get: getter, + enumerable: true, + configurable: false +}; +Object.defineProperty(o, "foo", d1); - // now, setting enumerable to true should fail, since [[Configurable]] - // on the original property will be false. - var desc = { get: getter, enumerable: false }; +// now, setting enumerable to true should fail, since [[Configurable]] +// on the original property will be false. +var desc = { + get: getter, + enumerable: false +}; assert.throws(TypeError, function() { - Object.defineProperty(o, "foo", desc); + Object.defineProperty(o, "foo", desc); }); - // the property should remain unchanged. - var d2 = Object.getOwnPropertyDescriptor(o, "foo"); +// the property should remain unchanged. +var d2 = Object.getOwnPropertyDescriptor(o, "foo"); assert.sameValue(d2.get, getter, 'd2.get'); assert.sameValue(d2.enumerable, true, 'd2.enumerable'); assert.sameValue(d2.configurable, false, 'd2.configurable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-110.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-110.js index 834b0959de..459f7b702f 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 c615651704..dfdd3d42e3 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 1b0201c108..85bde155ac 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 a40b2b6528..7ec7a57bf2 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 c1b9f17741..c8f90bfcc2 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 5cb28ab762..702324b47d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-115.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-115.js @@ -14,27 +14,29 @@ includes: [propertyHelper.js] var obj = {}; function getFunc1() { - return 10; + return 10; } + function setFunc1() {} Object.defineProperty(obj, "foo", { - get: getFunc1, - set: setFunc1, - enumerable: true, - configurable: true + get: getFunc1, + set: setFunc1, + enumerable: true, + configurable: true }); function getFunc2() { - return 20; + return 20; } + function setFunc2(value) { - obj.setVerifyHelpProp = value; + obj.setVerifyHelpProp = value; } Object.defineProperty(obj, "foo", { - get: getFunc2, - set: setFunc2, - enumerable: false + get: getFunc2, + set: setFunc2, + enumerable: false }); verifyEqualTo(obj, "foo", getFunc2()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-116.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-116.js index 65a3d68c67..2e0c7b7fa6 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-116.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-116.js @@ -8,14 +8,16 @@ description: > of 'O' is own data property (15.4.5.1 step 1) ---*/ - var arrObj = [0, 1]; - Object.defineProperty(arrObj, "1", { - value: 1, - configurable: false - }); +var arrObj = [0, 1]; +Object.defineProperty(arrObj, "1", { + value: 1, + configurable: false +}); assert.throws(TypeError, function() { - Object.defineProperty(arrObj, "length", { value: 1 }); + Object.defineProperty(arrObj, "length", { + value: 1 + }); }); var desc = Object.getOwnPropertyDescriptor(arrObj, "length"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-117.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-117.js index 2fd599c0b3..6e8f17960e 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-117.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-117.js @@ -9,21 +9,21 @@ description: > property (15.4.5.1 step 1) ---*/ - var arrObj = [0, 1, 2]; - var arrProtoLen; +var arrObj = [0, 1, 2]; +var arrProtoLen; assert.throws(TypeError, function() { - arrProtoLen = Array.prototype.length; - Array.prototype.length = 0; + arrProtoLen = Array.prototype.length; + Array.prototype.length = 0; - - Object.defineProperty(arrObj, "2", { - configurable: false - }); - Object.defineProperty(arrObj, "length", { - value: 1 - }); + Object.defineProperty(arrObj, "2", { + configurable: false + }); + + Object.defineProperty(arrObj, "length", { + value: 1 + }); }); assert.sameValue(arrObj.length, 3, 'arrObj.length'); assert.sameValue(Array.prototype.length, 0, 'Array.prototype.length'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-119.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-119.js index 6890b115a8..f1bef7cb15 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 b189fc5c64..ecc53f25a2 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-12.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-12.js @@ -12,24 +12,31 @@ description: > non-configurable data properties to accessor properties ---*/ - var o = {}; +var o = {}; - // create a data valued property; all other attributes default to false. - var d1 = { value: 101, configurable: false }; - Object.defineProperty(o, "foo", d1); +// create a data valued property; all other attributes default to false. +var d1 = { + value: 101, + configurable: false +}; +Object.defineProperty(o, "foo", d1); - // changing "foo" to be an accessor should fail, since [[Configurable]] - // on the original property will be false. +// changing "foo" to be an accessor should fail, since [[Configurable]] +// on the original property will be false. - // dummy getter - var getter = function () { return 1; } +// dummy getter +var getter = function() { + return 1; +} - var desc = { get: getter }; +var desc = { + get: getter +}; assert.throws(TypeError, function() { - Object.defineProperty(o, "foo", desc); + Object.defineProperty(o, "foo", desc); }); - // the property should remain a data valued property. - var d2 = Object.getOwnPropertyDescriptor(o, "foo"); +// the property should remain a data valued property. +var d2 = Object.getOwnPropertyDescriptor(o, "foo"); assert.sameValue(d2.value, 101, 'd2.value'); assert.sameValue(d2.writable, false, 'd2.writable'); assert.sameValue(d2.enumerable, false, 'd2.enumerable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-120.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-120.js index 62f3f419f9..61098e3ef6 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 3122743c37..0679c6b54c 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 d65953e879..5dd8d1d428 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 f807ba2524..ab1a64da7f 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 b178a24d39..e5940a0649 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-124.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-124.js @@ -14,7 +14,7 @@ includes: [propertyHelper.js] var arrObj = []; Object.defineProperty(arrObj, "length", { - writable: false + writable: false }); verifyEqualTo(arrObj, "length", 0); @@ -23,4 +23,3 @@ verifyNotWritable(arrObj, "length"); verifyNotEnumerable(arrObj, "length"); verifyNotConfigurable(arrObj, "length"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-125.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-125.js index 32c8228330..2cd5d4ee97 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 17c5c77b0c..4eca508ef3 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 ca691383c1..5c86807491 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 29a46e6e90..3784c89bc5 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 6bb132493e..96c7b8a9e9 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 6666176e98..badd02ccc9 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-13.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-13.js @@ -12,22 +12,29 @@ description: > non-configurable accessor properties to data properties ---*/ - var o = {}; +var o = {}; - // create an accessor property; all other attributes default to false. - - // dummy getter - var getter = function () { return 1; } - var d1 = { get: getter, configurable: false }; - Object.defineProperty(o, "foo", d1); +// create an accessor property; all other attributes default to false. - // changing "foo" to be a data property should fail, since [[Configurable]] - // on the original property will be false. - var desc = { value: 101 }; +// dummy getter +var getter = function() { + return 1; +} +var d1 = { + get: getter, + configurable: false +}; +Object.defineProperty(o, "foo", d1); + +// changing "foo" to be a data property should fail, since [[Configurable]] +// on the original property will be false. +var desc = { + value: 101 +}; assert.throws(TypeError, function() { - Object.defineProperty(o, "foo", desc); + Object.defineProperty(o, "foo", desc); }); - // the property should remain an accessor property. - var d2 = Object.getOwnPropertyDescriptor(o, "foo"); +// the property should remain an accessor property. +var d2 = Object.getOwnPropertyDescriptor(o, "foo"); assert.sameValue(d2.get, getter, 'd2.get'); assert.sameValue(d2.configurable, false, 'd2.configurable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-130.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-130.js index d4d9bf8b7d..ce0d5bba05 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 3a0b3de429..3458c6ca72 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 d431841b1b..2fc557ce77 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 990f4c1905..1f5373e66c 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 6141877b5a..5980610123 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 fa36e838f2..8e5876ef02 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 a4b4c1b79e..6804e776f4 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 1e58b7dadd..ddf5cde58b 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 b1f9b8fc6b..0ec1ead0d0 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 13a4b9380b..30fdd1657b 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 7a4cbf2728..e38bf445e6 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-14.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-14.js @@ -12,23 +12,27 @@ description: > property for configurable properties ---*/ - var o = {}; +var o = {}; - // create a data property. In this case, - // [[Enumerable]] and [[Configurable]] are true - o["foo"] = 101; +// create a data property. In this case, +// [[Enumerable]] and [[Configurable]] are true +o["foo"] = 101; - // changing "foo" to be an accessor should succeed, since [[Configurable]] - // on the original property will be true. Existing values of [[Configurable]] - // and [[Enumerable]] need to be preserved and the rest need to be set to - // their default values +// changing "foo" to be an accessor should succeed, since [[Configurable]] +// on the original property will be true. Existing values of [[Configurable]] +// and [[Enumerable]] need to be preserved and the rest need to be set to +// their default values - // dummy getter - var getter = function () { return 1; } - var d1 = { get: getter }; - Object.defineProperty(o, "foo", d1); +// dummy getter +var getter = function() { + return 1; +} +var d1 = { + get: getter +}; +Object.defineProperty(o, "foo", d1); - var d2 = Object.getOwnPropertyDescriptor(o, "foo"); +var d2 = Object.getOwnPropertyDescriptor(o, "foo"); assert.sameValue(d2.get, getter, 'd2.get'); assert.sameValue(d2.enumerable, true, 'd2.enumerable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-140.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-140.js index 65d068b74e..c3c3a831a2 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 a39d1564a6..fed04a9258 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 8880cf8cfe..8924cd6c7c 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 55b9b1ffd8..d304794f2b 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 be700ec764..9259a153ed 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 8909f1994b..5f14b513cd 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 565369fb71..2cc6ec6af0 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 4274ebbb3b..7549f17bde 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 19cb735ae7..aac1a6d500 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 dbcbc3fa38..d00974ad72 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 838309ba61..ce8de772aa 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-15.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-15.js @@ -12,21 +12,28 @@ description: > property for configurable properties ---*/ - var o = {}; +var o = {}; - // define an accessor property - // dummy getter - var getter = function () { return 1; } - var d1 = { get: getter, configurable: true }; - Object.defineProperty(o, "foo", d1); +// define an accessor property +// dummy getter +var getter = function() { + return 1; +} +var d1 = { + get: getter, + configurable: true +}; +Object.defineProperty(o, "foo", d1); - // changing "foo" to be a data valued property should succeed, since - // [[Configurable]] on the original property will be true. Existing - // values of [[Configurable]] and [[Enumerable]] need to be preserved - // and the rest need to be set to their default values. - var desc = { value: 101 }; - Object.defineProperty(o, "foo", desc); - var d2 = Object.getOwnPropertyDescriptor(o, "foo"); +// changing "foo" to be a data valued property should succeed, since +// [[Configurable]] on the original property will be true. Existing +// values of [[Configurable]] and [[Enumerable]] need to be preserved +// and the rest need to be set to their default values. +var desc = { + value: 101 +}; +Object.defineProperty(o, "foo", desc); +var d2 = Object.getOwnPropertyDescriptor(o, "foo"); assert.sameValue(d2.value, 101, 'd2.value'); assert.sameValue(d2.writable, false, 'd2.writable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-150.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-150.js index caafe22910..4aef28ab89 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 4cce142073..ddddccf162 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 e3975ad9ef..d9812947d2 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 dc60afadfc..dbaefd3385 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 c499969dd6..b940cb0010 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 b9bfd06898..1801b334f8 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 010a2237c7..09db6bd97e 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 24b4e08ee3..ecf1b7df37 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 06246ef3e2..7e143736b5 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 4b7db063ca..78b883a3fe 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-16.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-16.js @@ -12,20 +12,25 @@ description: > on non-configurable data properties ---*/ - var o = {}; +var o = {}; - // create a data valued property; all other attributes default to false. - var d1 = { value: 101 }; - Object.defineProperty(o, "foo", d1); +// create a data valued property; all other attributes default to false. +var d1 = { + value: 101 +}; +Object.defineProperty(o, "foo", d1); - // now, relaxing [[Writable]] on "foo" should fail, since both - // [[Configurable]] and [[Writable]] on the original property will be false. - var desc = { value: 101, writable: true }; +// now, relaxing [[Writable]] on "foo" should fail, since both +// [[Configurable]] and [[Writable]] on the original property will be false. +var desc = { + value: 101, + writable: true +}; assert.throws(TypeError, function() { - Object.defineProperty(o, "foo", desc); + Object.defineProperty(o, "foo", desc); }); - // the property should remain unchanged. - var d2 = Object.getOwnPropertyDescriptor(o, "foo"); +// the property should remain unchanged. +var d2 = Object.getOwnPropertyDescriptor(o, "foo"); assert.sameValue(d2.value, 101, 'd2.value'); assert.sameValue(d2.writable, false, 'd2.writable'); assert.sameValue(d2.enumerable, false, 'd2.enumerable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-160.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-160.js index 889d911dfe..db884901ea 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 881a01347c..5c0c453d61 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 dd21806a7a..d1103d1bbd 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 99ad98928c..77c9324724 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 c8a0513c78..73e614da22 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 4a72cda654..ffa15660d9 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 85c2e654df..c080747efa 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 0a481d5c74..a2de291b8a 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 1cb70eb370..d03d1325a3 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 15aff61900..ec14c95145 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 8f4ad3a858..9b93e9efbf 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-17.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-17.js @@ -12,20 +12,24 @@ description: > non-writable non-configurable data properties ---*/ - var o = {}; +var o = {}; - // create a data valued property; all other attributes default to false. - var d1 = { value: 101 }; - Object.defineProperty(o, "foo", d1); +// create a data valued property; all other attributes default to false. +var d1 = { + value: 101 +}; +Object.defineProperty(o, "foo", d1); - // now, trying to change the value of "foo" should fail, since both - // [[Configurable]] and [[Writable]] on the original property will be false. - var desc = { value: 102 }; +// now, trying to change the value of "foo" should fail, since both +// [[Configurable]] and [[Writable]] on the original property will be false. +var desc = { + value: 102 +}; assert.throws(TypeError, function() { - Object.defineProperty(o, "foo", desc); + Object.defineProperty(o, "foo", desc); }); - // the property should remain unchanged. - var d2 = Object.getOwnPropertyDescriptor(o, "foo"); +// the property should remain unchanged. +var d2 = Object.getOwnPropertyDescriptor(o, "foo"); assert.sameValue(d2.value, 101, 'd2.value'); assert.sameValue(d2.writable, false, 'd2.writable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-170.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-170.js index 4650c357eb..3f9622bbbe 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 29cef1594f..f3283840ca 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 11e3ff7ffd..b6f14808a6 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 27a85d434a..a0179d45a9 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 422632e805..ee5deb2f9a 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 4e7d05cebd..23357a32c8 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 4d1d9ac03e..475d082d91 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 f9c666b271..c856a3d7b5 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-177.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-177.js @@ -12,26 +12,26 @@ description: > properties (15.4.5.1 step 3.l.ii) ---*/ - var arrObj = [0, 1]; +var arrObj = [0, 1]; assert.throws(TypeError, function() { - Object.defineProperty(arrObj, "1", { - get: function () { - return 1; - }, - configurable: false - }); - - Object.defineProperty(Array.prototype, "1", { - get: function () { - return 2; - }, - configurable: true - }); + Object.defineProperty(arrObj, "1", { + get: function() { + return 1; + }, + configurable: false + }); - Object.defineProperty(arrObj, "length", { - value: 1 - }); + Object.defineProperty(Array.prototype, "1", { + get: function() { + return 2; + }, + configurable: true + }); + + Object.defineProperty(arrObj, "length", { + value: 1 + }); }); assert.sameValue(arrObj.length, 2, 'arrObj.length'); assert(arrObj.hasOwnProperty("1"), 'arrObj.hasOwnProperty("1") !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-178.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-178.js index 10a208b9b4..4df1e5802e 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 d59c20d30d..5026a63d9c 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 9701c6e9d5..36e9117d54 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-18.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-18.js @@ -12,23 +12,29 @@ description: > non-configurable accessor properties(8.12.9 step 11.a.i) ---*/ - var o = {}; +var o = {}; - // create an accessor property; all other attributes default to false. - // dummy getter - var getter = function () { return 1;} - var d1 = { get: getter }; - Object.defineProperty(o, "foo", d1); +// create an accessor property; all other attributes default to false. +// dummy getter +var getter = function() { + return 1; +} +var d1 = { + get: getter +}; +Object.defineProperty(o, "foo", d1); - // now, trying to change the setter should fail, since [[Configurable]] - // on the original property will be false. - var setter = function (x) {}; - var desc = { set: setter }; +// now, trying to change the setter should fail, since [[Configurable]] +// on the original property will be false. +var setter = function(x) {}; +var desc = { + set: setter +}; assert.throws(TypeError, function() { - Object.defineProperty(o, "foo", desc); + Object.defineProperty(o, "foo", desc); }); - // the property should remain unchanged. - var d2 = Object.getOwnPropertyDescriptor(o, "foo"); +// the property should remain unchanged. +var d2 = Object.getOwnPropertyDescriptor(o, "foo"); assert.sameValue(d2.get, getter, 'd2.get'); assert.sameValue(d2.configurable, false, 'd2.configurable'); assert.sameValue(d2.enumerable, false, 'd2.enumerable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-181.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-181.js index 68b0f0daaf..11dcd7d497 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 9f3e38ad08..340149c4e1 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 3fa0485ebd..7a668ddac4 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 b3678ae489..3e1ca6947b 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 c99ce71065..69843271a5 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 0af8105b08..560214a26e 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 e6050fceb0..dd975e31a1 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-187.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-187.js @@ -11,13 +11,12 @@ description: > 4.b) ---*/ - var arrObj = [1, 2, 3]; +var arrObj = [1, 2, 3]; - Object.defineProperty(arrObj, "length", { - writable: false - }); - - Object.defineProperty(arrObj, 1, { - value: "abc" - }); +Object.defineProperty(arrObj, "length", { + writable: false +}); +Object.defineProperty(arrObj, 1, { + value: "abc" +}); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-188.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-188.js index 53b68caf95..889e6d2371 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 f67443f475..1c61ecf6f7 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 2758d9847d..f148c96223 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-19.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-19.js @@ -12,20 +12,26 @@ description: > non-configurable accessor properties(8.12.9 step 10.a.ii.1) ---*/ - var o = {}; +var o = {}; - // create an accessor property; all other attributes default to false. - // dummy getter - var getter = function () { return 1;} - var d1 = { get: getter }; - Object.defineProperty(o, "foo", d1); +// create an accessor property; all other attributes default to false. +// dummy getter +var getter = function() { + return 1; +} +var d1 = { + get: getter +}; +Object.defineProperty(o, "foo", d1); - // now, trying to set the setter should succeed even though [[Configurable]] - // on the original property will be false. - var desc = { set: undefined }; - Object.defineProperty(o, "foo", desc); +// now, trying to set the setter should succeed even though [[Configurable]] +// on the original property will be false. +var desc = { + set: undefined +}; +Object.defineProperty(o, "foo", desc); - var d2 = Object.getOwnPropertyDescriptor(o, "foo"); +var d2 = Object.getOwnPropertyDescriptor(o, "foo"); assert.sameValue(d2.get, getter, 'd2.get'); assert.sameValue(d2.set, undefined, 'd2.set'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-190.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-190.js index 438fe21f4b..098e05861c 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 6f98b428d3..1b4fb59bdd 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 5e28dc2d39..65c0025e15 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 03c38b4dba..2507d3c33a 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 7cacb2d47c..990f8f92bc 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 4181928c0f..491372f016 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-195.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-195.js @@ -11,38 +11,39 @@ includes: [propertyHelper.js] ---*/ function getFunc() { - return arrObj.helpVerifySet; + return arrObj.helpVerifySet; } + function setFunc(value) { - arrObj.helpVerifySet = value; + arrObj.helpVerifySet = value; } try { - Object.defineProperty(Array.prototype, "0", { - get: function () { - return 11; - }, - configurable: true - }); + Object.defineProperty(Array.prototype, "0", { + get: function() { + return 11; + }, + configurable: true + }); - var arrObj = []; + var arrObj = []; - Object.defineProperty(arrObj, "0", { - get: getFunc, - set: setFunc, - configurable: false - }); + Object.defineProperty(arrObj, "0", { + get: getFunc, + set: setFunc, + configurable: false + }); - arrObj[0] = 13; + arrObj[0] = 13; - verifyEqualTo(arrObj, "0", getFunc()); + verifyEqualTo(arrObj, "0", getFunc()); - verifyWritable(arrObj, "0", "helpVerifySet"); + verifyWritable(arrObj, "0", "helpVerifySet"); - verifyNotEnumerable(arrObj, "0"); + verifyNotEnumerable(arrObj, "0"); - verifyNotConfigurable(arrObj, "0"); + verifyNotConfigurable(arrObj, "0"); } finally { - delete Array.prototype[0]; + delete Array.prototype[0]; } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-196.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-196.js index 7ddb2e1dd0..f40f1cfd40 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 4fc4f1e838..5887be340a 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 27354b58dd..0ecd59a2f4 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-198.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-198.js @@ -9,10 +9,12 @@ description: > TypeError is thrown when 'O' is not extensible (15.4.5.1 step 4.c) ---*/ - var arrObj = []; - Object.preventExtensions(arrObj); +var arrObj = []; +Object.preventExtensions(arrObj); assert.throws(TypeError, function() { - var desc = { value: 1 }; - Object.defineProperty(arrObj, "0", desc); + var desc = { + value: 1 + }; + Object.defineProperty(arrObj, "0", desc); }); assert.sameValue(arrObj.hasOwnProperty("0"), false, 'arrObj.hasOwnProperty("0")'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-199.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-199.js index 5052ac8861..58c486b4c4 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-199.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-199.js @@ -14,7 +14,7 @@ includes: [propertyHelper.js] var arrObj = []; Object.defineProperty(arrObj, "0", { - enumerable: true + enumerable: true }); verifyEqualTo(arrObj, "0", undefined); @@ -24,4 +24,3 @@ verifyNotWritable(arrObj, "0"); verifyEnumerable(arrObj, "0"); verifyNotConfigurable(arrObj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-2.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-2.js index ef6d4e2e58..a97cbedfc9 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-2.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-2.js @@ -12,14 +12,16 @@ description: > values (data properties)(8.12.9 step 4.a.i) ---*/ - var o = {}; +var o = {}; - var desc = { value: 1 }; - Object.defineProperty(o, "foo", desc); +var desc = { + value: 1 +}; +Object.defineProperty(o, "foo", desc); - var propDesc = Object.getOwnPropertyDescriptor(o, "foo"); +var propDesc = Object.getOwnPropertyDescriptor(o, "foo"); -assert.sameValue(propDesc.value, 1, 'propDesc.value'); // this is the value that was set -assert.sameValue(propDesc.writable, false, 'propDesc.writable'); // false by default -assert.sameValue(propDesc.enumerable, false, 'propDesc.enumerable'); // false by default -assert.sameValue(propDesc.configurable, false, 'propDesc.configurable'); // false by default +assert.sameValue(propDesc.value, 1, 'propDesc.value'); // this is the value that was set +assert.sameValue(propDesc.writable, false, 'propDesc.writable'); // false by default +assert.sameValue(propDesc.enumerable, false, 'propDesc.enumerable'); // false by default +assert.sameValue(propDesc.configurable, false, 'propDesc.configurable'); // false by default diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-20.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-20.js index d380889036..d16ab047c6 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-20.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-20.js @@ -13,21 +13,28 @@ description: > 11.a.ii) ---*/ - var o = {}; +var o = {}; - // create an accessor property; all other attributes default to false. - // dummy getter/setter - var getter = function () { return 1;} - var d1 = { get: getter, configurable: false }; - Object.defineProperty(o, "foo", d1); +// create an accessor property; all other attributes default to false. +// dummy getter/setter +var getter = function() { + return 1; +} +var d1 = { + get: getter, + configurable: false +}; +Object.defineProperty(o, "foo", d1); - // now, trying to change the setter should fail, since [[Configurable]] - // on the original property will be false. - var desc = { get: undefined }; +// now, trying to change the setter should fail, since [[Configurable]] +// on the original property will be false. +var desc = { + get: undefined +}; assert.throws(TypeError, function() { - Object.defineProperty(o, "foo", desc); + Object.defineProperty(o, "foo", desc); }); - var d2 = Object.getOwnPropertyDescriptor(o, "foo"); +var d2 = Object.getOwnPropertyDescriptor(o, "foo"); assert.sameValue(d2.get, getter, 'd2.get'); assert.sameValue(d2.configurable, false, 'd2.configurable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-200.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-200.js index 63077a0cbe..9f5256890b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-200.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-200.js @@ -15,9 +15,9 @@ includes: [propertyHelper.js] var arrObj = []; Object.defineProperty(arrObj, "0", { - writable: true, - enumerable: true, - configurable: false + writable: true, + enumerable: true, + configurable: false }); verifyEqualTo(arrObj, "0", undefined); @@ -27,4 +27,3 @@ verifyWritable(arrObj, "0"); verifyEnumerable(arrObj, "0"); verifyNotConfigurable(arrObj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-201.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-201.js index 7b3f9f33a7..f0482af89b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-201.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-201.js @@ -15,9 +15,9 @@ includes: [propertyHelper.js] var arrObj = []; Object.defineProperty(arrObj, "0", { - value: 1001, - enumerable: true, - configurable: false + value: 1001, + enumerable: true, + configurable: false }); verifyEqualTo(arrObj, "0", 1001); @@ -26,4 +26,3 @@ verifyNotWritable(arrObj, "0"); verifyEnumerable(arrObj, "0"); verifyNotConfigurable(arrObj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-202.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-202.js index 0c987dfff2..d6bdee22b1 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-202.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-202.js @@ -15,9 +15,9 @@ includes: [propertyHelper.js] var arrObj = []; Object.defineProperty(arrObj, "0", { - value: 1001, - writable: true, - configurable: true + value: 1001, + writable: true, + configurable: true }); verifyEqualTo(arrObj, "0", 1001); @@ -26,4 +26,3 @@ verifyWritable(arrObj, "0"); verifyNotEnumerable(arrObj, "0"); verifyConfigurable(arrObj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-203.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-203.js index 82a8aeb457..abee7a278e 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-203.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-203.js @@ -15,9 +15,9 @@ includes: [propertyHelper.js] var arrObj = []; Object.defineProperty(arrObj, "0", { - value: 1001, - writable: true, - enumerable: true + value: 1001, + writable: true, + enumerable: true }); verifyEqualTo(arrObj, "0", 1001); @@ -26,4 +26,3 @@ verifyWritable(arrObj, "0"); verifyEnumerable(arrObj, "0"); verifyNotConfigurable(arrObj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-204.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-204.js index 899fc6f99d..e19e46508f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-204.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-204.js @@ -13,10 +13,10 @@ includes: [propertyHelper.js] var arrObj = [1]; // default value of attributes: writable: true, configurable: true, enumerable: true Object.defineProperty(arrObj, "0", { - value: 1001, - writable: false, - enumerable: false, - configurable: false + value: 1001, + writable: false, + enumerable: false, + configurable: false }); verifyEqualTo(arrObj, "0", 1001); @@ -26,4 +26,3 @@ verifyNotWritable(arrObj, "0"); verifyNotEnumerable(arrObj, "0"); verifyNotConfigurable(arrObj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-205.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-205.js index 58020eb3b4..04c926f702 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 50a9bc2ad8..a21a365d1f 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 8f9c19117a..338b788eff 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 6c3814e9da..540472ce31 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 d9ce590c65..315efeb877 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 5fa94235bf..5f357e7b3e 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-21.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-21.js @@ -12,21 +12,25 @@ description: > non-configurable accessor properties(8.12.9 step 11.a.ii) ---*/ - var o = {}; +var o = {}; - // create an accessor property; all other attributes default to false. - // dummy setter - var setter = function (x) {} - var d1 = { set: setter }; - Object.defineProperty(o, "foo", d1); +// create an accessor property; all other attributes default to false. +// dummy setter +var setter = function(x) {} +var d1 = { + set: setter +}; +Object.defineProperty(o, "foo", d1); - // now, trying to set the getter should succeed even though [[Configurable]] - // on the original property will be false. Existing values of need to be preserved. - var getter = undefined; - var desc = { get: getter }; +// now, trying to set the getter should succeed even though [[Configurable]] +// on the original property will be false. Existing values of need to be preserved. +var getter = undefined; +var desc = { + get: getter +}; - Object.defineProperty(o, "foo", desc); - var d2 = Object.getOwnPropertyDescriptor(o, "foo"); +Object.defineProperty(o, "foo", desc); +var d2 = Object.getOwnPropertyDescriptor(o, "foo"); assert.sameValue(d2.get, getter, 'd2.get'); assert.sameValue(d2.set, setter, 'd2.set'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-210.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-210.js index 2c9c13ac61..0cd5779c47 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-210.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-210.js @@ -22,4 +22,3 @@ verifyWritable(arrObj, "0"); verifyEnumerable(arrObj, "0"); verifyConfigurable(arrObj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-211.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-211.js index e02b3584cf..030a92221c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-211.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-211.js @@ -13,17 +13,18 @@ includes: [propertyHelper.js] var arrObj = []; function getFunc() { - return 11; + return 11; } + function setFunc(value) { - arrObj.setVerifyHelpProp = value; + arrObj.setVerifyHelpProp = value; } Object.defineProperty(arrObj, "0", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: true + get: getFunc, + set: setFunc, + enumerable: true, + configurable: true }); Object.defineProperty(arrObj, "0", {}); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-212.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-212.js index 1ba6651559..a7abee3101 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-212.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-212.js @@ -16,10 +16,10 @@ var arrObj = []; arrObj[0] = 100; // default value of attributes: writable: true, configurable: true, enumerable: true Object.defineProperty(arrObj, "0", { - value: 100, - writable: true, - enumerable: true, - configurable: true + value: 100, + writable: true, + enumerable: true, + configurable: true }); verifyEqualTo(arrObj, "0", 100); @@ -29,4 +29,3 @@ verifyWritable(arrObj, "0"); verifyEnumerable(arrObj, "0"); verifyConfigurable(arrObj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-213.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-213.js index 96b57c408a..2b691bf416 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 ec961abded..eacdbcdc47 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-214.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-214.js @@ -15,25 +15,27 @@ includes: [propertyHelper.js] var arrObj = []; Object.defineProperty(arrObj, 0, { - value: 101, - writable: false, - configurable: false + value: 101, + writable: false, + configurable: false }); try { - Object.defineProperty(arrObj, "0", { value: "abc" }); - $ERROR("Expected an exception."); + Object.defineProperty(arrObj, "0", { + value: "abc" + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arrObj, "0", 101); + verifyEqualTo(arrObj, "0", 101); - verifyNotWritable(arrObj, "0"); + verifyNotWritable(arrObj, "0"); - verifyNotEnumerable(arrObj, "0"); + verifyNotEnumerable(arrObj, "0"); - verifyNotConfigurable(arrObj, "0"); + verifyNotConfigurable(arrObj, "0"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-215.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-215.js index 1ed17f2be0..49bff01a3a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-215.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-215.js @@ -12,9 +12,13 @@ includes: [propertyHelper.js] var arrObj = []; -Object.defineProperty(arrObj, "0", { value: undefined }); +Object.defineProperty(arrObj, "0", { + value: undefined +}); -Object.defineProperty(arrObj, "0", { value: undefined }); +Object.defineProperty(arrObj, "0", { + value: undefined +}); verifyEqualTo(arrObj, "0", undefined); verifyNotWritable(arrObj, "0"); @@ -22,4 +26,3 @@ verifyNotWritable(arrObj, "0"); verifyNotEnumerable(arrObj, "0"); verifyNotConfigurable(arrObj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-216.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-216.js index b5efb6f804..ec465e9c28 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-216.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-216.js @@ -12,9 +12,13 @@ includes: [propertyHelper.js] var arrObj = []; -Object.defineProperty(arrObj, "0", { value: null }); +Object.defineProperty(arrObj, "0", { + value: null +}); -Object.defineProperty(arrObj, "0", { value: null }); +Object.defineProperty(arrObj, "0", { + value: null +}); verifyEqualTo(arrObj, "0", null); verifyNotWritable(arrObj, "0"); @@ -22,4 +26,3 @@ verifyNotWritable(arrObj, "0"); verifyNotEnumerable(arrObj, "0"); verifyNotConfigurable(arrObj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-217.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-217.js index c57e94ea6c..a8851cf79d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-217.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-217.js @@ -12,9 +12,13 @@ includes: [propertyHelper.js] var arrObj = []; -Object.defineProperty(arrObj, "0", { value: NaN }); +Object.defineProperty(arrObj, "0", { + value: NaN +}); -Object.defineProperty(arrObj, "0", { value: NaN }); +Object.defineProperty(arrObj, "0", { + value: NaN +}); assert(arrObj.hasOwnProperty("0")); assert(arrObj[0] !== arrObj[0]); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-218.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-218.js index c393a72a73..c81c6c0555 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-218.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-218.js @@ -13,22 +13,26 @@ includes: [propertyHelper.js] var arrObj = []; -Object.defineProperty(arrObj, "0", { value: -0 }); +Object.defineProperty(arrObj, "0", { + value: -0 +}); try { - Object.defineProperty(arrObj, "0", { value: +0 }); - $ERROR("Expected an exception."); + Object.defineProperty(arrObj, "0", { + value: +0 + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arrObj, "0", -0); + verifyEqualTo(arrObj, "0", -0); - verifyNotWritable(arrObj, "0"); + verifyNotWritable(arrObj, "0"); - verifyNotEnumerable(arrObj, "0"); + verifyNotEnumerable(arrObj, "0"); - verifyNotConfigurable(arrObj, "0"); + verifyNotConfigurable(arrObj, "0"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-219.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-219.js index 3e9acbdd01..d2f045ce58 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-219.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-219.js @@ -13,22 +13,26 @@ includes: [propertyHelper.js] var arrObj = []; -Object.defineProperty(arrObj, "0", { value: +0 }); +Object.defineProperty(arrObj, "0", { + value: +0 +}); try { - Object.defineProperty(arrObj, "0", { value: -0 }); - $ERROR("Expected an exception."); + Object.defineProperty(arrObj, "0", { + value: -0 + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arrObj, "0", +0); + verifyEqualTo(arrObj, "0", +0); - verifyNotWritable(arrObj, "0"); + verifyNotWritable(arrObj, "0"); - verifyNotEnumerable(arrObj, "0"); + verifyNotEnumerable(arrObj, "0"); - verifyNotConfigurable(arrObj, "0"); + verifyNotConfigurable(arrObj, "0"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-22.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-22.js index 6643da65d9..02e527405e 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 e4a6b3aa38..10696ad39b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-220.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-220.js @@ -13,9 +13,13 @@ includes: [propertyHelper.js] var arrObj = []; -Object.defineProperty(arrObj, "0", { value: 101 }); +Object.defineProperty(arrObj, "0", { + value: 101 +}); -Object.defineProperty(arrObj, "0", { value: 101 }); +Object.defineProperty(arrObj, "0", { + value: 101 +}); verifyEqualTo(arrObj, "0", 101); verifyNotWritable(arrObj, "0"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-221.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-221.js index aff5f3150b..d2a4ae6adb 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-221.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-221.js @@ -14,25 +14,27 @@ includes: [propertyHelper.js] var arrObj = []; Object.defineProperty(arrObj, 0, { - value: 101, - writable: false, - configurable: false + value: 101, + writable: false, + configurable: false }); try { - Object.defineProperty(arrObj, "0", { value: 123 }); - $ERROR("Expected an exception."); + Object.defineProperty(arrObj, "0", { + value: 123 + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arrObj, "0", 101); + verifyEqualTo(arrObj, "0", 101); - verifyNotWritable(arrObj, "0"); + verifyNotWritable(arrObj, "0"); - verifyNotEnumerable(arrObj, "0"); + verifyNotEnumerable(arrObj, "0"); - verifyNotConfigurable(arrObj, "0"); + verifyNotConfigurable(arrObj, "0"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-222.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-222.js index f2e6a291b0..ed3c0936cc 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-222.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-222.js @@ -13,9 +13,13 @@ includes: [propertyHelper.js] var arrObj = []; -Object.defineProperty(arrObj, "0", { value: "abcd" }); +Object.defineProperty(arrObj, "0", { + value: "abcd" +}); -Object.defineProperty(arrObj, "0", { value: "abcd" }); +Object.defineProperty(arrObj, "0", { + value: "abcd" +}); verifyEqualTo(arrObj, "0", "abcd"); verifyNotWritable(arrObj, "0"); @@ -23,4 +27,3 @@ verifyNotWritable(arrObj, "0"); verifyNotEnumerable(arrObj, "0"); verifyNotConfigurable(arrObj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-223.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-223.js index 310795319b..03029236f2 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-223.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-223.js @@ -14,25 +14,27 @@ includes: [propertyHelper.js] var arrObj = []; Object.defineProperty(arrObj, 0, { - value: "abcd", - writable: false, - configurable: false + value: "abcd", + writable: false, + configurable: false }); try { - Object.defineProperty(arrObj, "0", { value: "fghj" }); - $ERROR("Expected an exception."); + Object.defineProperty(arrObj, "0", { + value: "fghj" + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arrObj, "0", "abcd"); + verifyEqualTo(arrObj, "0", "abcd"); - verifyNotWritable(arrObj, "0"); + verifyNotWritable(arrObj, "0"); - verifyNotEnumerable(arrObj, "0"); + verifyNotEnumerable(arrObj, "0"); - verifyNotConfigurable(arrObj, "0"); + verifyNotConfigurable(arrObj, "0"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-224.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-224.js index 1751ddc12e..de19df976c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-224.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-224.js @@ -13,9 +13,13 @@ includes: [propertyHelper.js] var arrObj = []; -Object.defineProperty(arrObj, "0", { value: true }); +Object.defineProperty(arrObj, "0", { + value: true +}); -Object.defineProperty(arrObj, "0", { value: true }); +Object.defineProperty(arrObj, "0", { + value: true +}); verifyEqualTo(arrObj, "0", true); verifyNotWritable(arrObj, "0"); @@ -23,4 +27,3 @@ verifyNotWritable(arrObj, "0"); verifyNotEnumerable(arrObj, "0"); verifyNotConfigurable(arrObj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-225.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-225.js index a9ccc96f42..c2da23fe64 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-225.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-225.js @@ -14,25 +14,27 @@ includes: [propertyHelper.js] var arrObj = []; Object.defineProperty(arrObj, 0, { - value: true, - writable: false, - configurable: false + value: true, + writable: false, + configurable: false }); try { - Object.defineProperty(arrObj, "0", { value: false }); - $ERROR("Expected an exception."); + Object.defineProperty(arrObj, "0", { + value: false + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arrObj, "0", true); + verifyEqualTo(arrObj, "0", true); - verifyNotWritable(arrObj, "0"); + verifyNotWritable(arrObj, "0"); - verifyNotEnumerable(arrObj, "0"); + verifyNotEnumerable(arrObj, "0"); - verifyNotConfigurable(arrObj, "0"); + verifyNotConfigurable(arrObj, "0"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-226.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-226.js index eec15afe1d..5b7e7edd28 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-226.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-226.js @@ -13,11 +13,17 @@ includes: [propertyHelper.js] var arrObj = []; -var obj1 = { length: 10 }; +var obj1 = { + length: 10 +}; -Object.defineProperty(arrObj, "0", { value: obj1 }); +Object.defineProperty(arrObj, "0", { + value: obj1 +}); -Object.defineProperty(arrObj, "0", { value: obj1 }); +Object.defineProperty(arrObj, "0", { + value: obj1 +}); verifyEqualTo(arrObj, "0", obj1); verifyNotWritable(arrObj, "0"); @@ -25,4 +31,3 @@ verifyNotWritable(arrObj, "0"); verifyNotEnumerable(arrObj, "0"); verifyNotConfigurable(arrObj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-227.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-227.js index 59184c3880..7eabcaaad3 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-227.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-227.js @@ -13,29 +13,35 @@ includes: [propertyHelper.js] var arrObj = []; -var obj1 = { length: 10 }; +var obj1 = { + length: 10 +}; Object.defineProperty(arrObj, 0, { - value: obj1, - writable: false, - configurable: false + value: obj1, + writable: false, + configurable: false }); -var obj2 = { length: 20 }; +var obj2 = { + length: 20 +}; try { - Object.defineProperty(arrObj, "0", { value: obj2 }); - $ERROR("Expected an exception."); + Object.defineProperty(arrObj, "0", { + value: obj2 + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arrObj, "0", obj1); + verifyEqualTo(arrObj, "0", obj1); - verifyNotWritable(arrObj, "0"); + verifyNotWritable(arrObj, "0"); - verifyNotEnumerable(arrObj, "0"); + verifyNotEnumerable(arrObj, "0"); - verifyNotConfigurable(arrObj, "0"); + verifyNotConfigurable(arrObj, "0"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-228.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-228.js index 4ad03d8e76..3e873291d5 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-228.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-228.js @@ -13,9 +13,13 @@ includes: [propertyHelper.js] var arrObj = []; -Object.defineProperty(arrObj, "0", { writable: false }); +Object.defineProperty(arrObj, "0", { + writable: false +}); -Object.defineProperty(arrObj, "0", { writable: false }); +Object.defineProperty(arrObj, "0", { + writable: false +}); verifyEqualTo(arrObj, "0", undefined); verifyNotWritable(arrObj, "0"); @@ -23,4 +27,3 @@ verifyNotWritable(arrObj, "0"); verifyNotEnumerable(arrObj, "0"); verifyNotConfigurable(arrObj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-229.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-229.js index 90ece61c74..859a41f627 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-229.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-229.js @@ -13,9 +13,14 @@ includes: [propertyHelper.js] var arrObj = []; -Object.defineProperty(arrObj, "0", { writable: false, configurable: true }); +Object.defineProperty(arrObj, "0", { + writable: false, + configurable: true +}); -Object.defineProperty(arrObj, "0", { writable: true }); +Object.defineProperty(arrObj, "0", { + writable: true +}); verifyEqualTo(arrObj, "0", undefined); verifyWritable(arrObj, "0"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-23.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-23.js index 6acf72daa3..6b59c0e798 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 4f70bbbdc2..d2d6797a6b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-230.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-230.js @@ -15,19 +15,20 @@ var arrObj = []; arrObj.helpVerifySet = 10; function getFunc() { - return arrObj.helpVerifySet; + return arrObj.helpVerifySet; } + function setFunc(value) { - arrObj.helpVerifySet = value; + arrObj.helpVerifySet = value; } Object.defineProperty(arrObj, "0", { - get: getFunc, - set: setFunc + get: getFunc, + set: setFunc }); Object.defineProperty(arrObj, "0", { - get: getFunc + get: getFunc }); verifyEqualTo(arrObj, "0", getFunc()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-231.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-231.js index ed12f8ca58..b8cac4a63c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-231.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-231.js @@ -15,23 +15,25 @@ var arrObj = []; arrObj.helpVerifySet = 10; function getFunc1() { - return 20; + return 20; } + function getFunc2() { - return arrObj.helpVerifySet; + return arrObj.helpVerifySet; } + function setFunc(value) { - arrObj.helpVerifySet = value; + arrObj.helpVerifySet = value; } Object.defineProperty(arrObj, "0", { - get: getFunc1, - set: setFunc, - configurable: true + get: getFunc1, + set: setFunc, + configurable: true }); Object.defineProperty(arrObj, "0", { - get: getFunc2 + get: getFunc2 }); verifyEqualTo(arrObj, "0", getFunc2()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-232.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-232.js index b814729f43..757da898b2 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-232.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-232.js @@ -14,12 +14,16 @@ includes: [propertyHelper.js] var arrObj = []; function setFunc(value) { - arrObj.setVerifyHelpProp = value; + arrObj.setVerifyHelpProp = value; } -Object.defineProperty(arrObj, "0", { set: setFunc }); +Object.defineProperty(arrObj, "0", { + set: setFunc +}); -Object.defineProperty(arrObj, "0", { set: setFunc }); +Object.defineProperty(arrObj, "0", { + set: setFunc +}); verifyWritable(arrObj, "0", "setVerifyHelpProp"); verifyNotEnumerable(arrObj, "0"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-233.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-233.js index e6ebeb8044..1fb647246b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-233.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-233.js @@ -13,18 +13,20 @@ includes: [propertyHelper.js] var arrObj = []; -function setFunc1() { } +function setFunc1() {} Object.defineProperty(arrObj, "0", { - set: setFunc1, - configurable: true + set: setFunc1, + configurable: true }); function setFunc2(value) { - arrObj.setVerifyHelpProp = value; + arrObj.setVerifyHelpProp = value; } -Object.defineProperty(arrObj, "0", { set: setFunc2 }); +Object.defineProperty(arrObj, "0", { + set: setFunc2 +}); verifyWritable(arrObj, "0", "setVerifyHelpProp"); verifyNotEnumerable(arrObj, "0"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-234.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-234.js index 4c622249d8..20d6f364b4 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-234.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-234.js @@ -13,9 +13,13 @@ includes: [propertyHelper.js] var arrObj = []; -Object.defineProperty(arrObj, "0", { enumerable: false }); +Object.defineProperty(arrObj, "0", { + enumerable: false +}); -Object.defineProperty(arrObj, "0", { enumerable: false }); +Object.defineProperty(arrObj, "0", { + enumerable: false +}); verifyEqualTo(arrObj, "0", undefined); verifyNotWritable(arrObj, "0"); @@ -23,4 +27,3 @@ verifyNotWritable(arrObj, "0"); verifyNotEnumerable(arrObj, "0"); verifyNotConfigurable(arrObj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-235.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-235.js index 06e3e2c7b5..bc5cf27899 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-235.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-235.js @@ -13,9 +13,14 @@ includes: [propertyHelper.js] var arrObj = []; -Object.defineProperty(arrObj, "0", { enumerable: false, configurable: true }); - -Object.defineProperty(arrObj, "0", { enumerable: true }); +Object.defineProperty(arrObj, "0", { + enumerable: false, + configurable: true +}); + +Object.defineProperty(arrObj, "0", { + enumerable: true +}); verifyEqualTo(arrObj, "0", undefined); verifyNotWritable(arrObj, "0"); @@ -23,4 +28,3 @@ verifyNotWritable(arrObj, "0"); verifyEnumerable(arrObj, "0"); verifyConfigurable(arrObj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-236.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-236.js index 29fc96410d..3ca2886007 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-236.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-236.js @@ -13,9 +13,13 @@ includes: [propertyHelper.js] var arrObj = []; -Object.defineProperty(arrObj, "0", { configurable: false }); +Object.defineProperty(arrObj, "0", { + configurable: false +}); -Object.defineProperty(arrObj, "0", { configurable: false }); +Object.defineProperty(arrObj, "0", { + configurable: false +}); verifyEqualTo(arrObj, "0", undefined); verifyNotWritable(arrObj, "0"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-237.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-237.js index 5b17acde0e..bbcd444370 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-237.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-237.js @@ -13,9 +13,13 @@ includes: [propertyHelper.js] var arrObj = []; -Object.defineProperty(arrObj, "0", { configurable: true }); +Object.defineProperty(arrObj, "0", { + configurable: true +}); -Object.defineProperty(arrObj, "0", { configurable: false }); +Object.defineProperty(arrObj, "0", { + configurable: false +}); verifyEqualTo(arrObj, "0", undefined); verifyNotWritable(arrObj, "0"); @@ -23,4 +27,3 @@ verifyNotWritable(arrObj, "0"); verifyNotEnumerable(arrObj, "0"); verifyNotConfigurable(arrObj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-238.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-238.js index abdca9f4fd..bbcac3d555 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 c680ee224c..0863f52f55 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 a1e7f654f9..0a0e6bd275 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 b5b0993cf6..4b6b824e86 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 3615552c35..1cad6cfc8c 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 796c4d0bff..d0cd2bd479 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-242-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-242-1.js @@ -15,9 +15,9 @@ includes: [propertyHelper.js] var arrObj = [3]; Object.defineProperty(arrObj, "0", { - value: 1001, - writable: false, - enumerable: false + value: 1001, + writable: false, + enumerable: false }); verifyEqualTo(arrObj, "0", 1001); @@ -27,4 +27,3 @@ verifyNotWritable(arrObj, "0"); verifyNotEnumerable(arrObj, "0"); verifyConfigurable(arrObj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-242.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-242.js index 249a4b0ec3..862326c37e 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 0f8a8ab4bd..bca8f06069 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 94d5e325fd..2e8572a938 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-243-2.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-243-2.js @@ -16,25 +16,24 @@ flags: [onlyStrict] var arrObj = []; function getFunc() { - return 3; + return 3; } Object.defineProperty(arrObj, "1", { - get: getFunc, - configurable: true + get: getFunc, + configurable: true }); try { - arrObj[1] = 4; + arrObj[1] = 4; } catch (e) { - verifyEqualTo(arrObj, "1", getFunc()); + verifyEqualTo(arrObj, "1", getFunc()); - verifyNotEnumerable(arrObj, "1"); + verifyNotEnumerable(arrObj, "1"); - verifyConfigurable(arrObj, "1"); + verifyConfigurable(arrObj, "1"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-243.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-243.js index 993eba0fca..1c9e01206b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-243.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-243.js @@ -16,15 +16,15 @@ includes: [propertyHelper.js] var arrObj = []; function getFunc() { - return 3; + return 3; } Object.defineProperty(arrObj, "1", { - get: getFunc, - configurable: true + get: getFunc, + configurable: true }); Object.defineProperty(arrObj, "1", { - value: 12 + value: 12 }); verifyEqualTo(arrObj, "1", 12); @@ -34,4 +34,3 @@ verifyNotWritable(arrObj, "1"); verifyNotEnumerable(arrObj, "1"); verifyConfigurable(arrObj, "1"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-244.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-244.js index 44106866a0..71a507f315 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 ad2a61ac94..9684f81e73 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 3d26d0479a..caefee79ce 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 91f7cec22c..0bec019134 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 e30b88ebfb..8467c4e603 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 6b3c2a8848..5987bb6575 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-249.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-249.js @@ -17,26 +17,25 @@ includes: [propertyHelper.js] var arrObj = []; Object.defineProperty(arrObj, "1", { - value: "abc" + value: "abc" }); try { - Object.defineProperty(arrObj, "1", { - value: "fgh" - }); - $ERROR("Expected an exception."); + Object.defineProperty(arrObj, "1", { + value: "fgh" + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arrObj, "1", "abc"); + verifyEqualTo(arrObj, "1", "abc"); - verifyNotWritable(arrObj, "1"); + verifyNotWritable(arrObj, "1"); - verifyNotEnumerable(arrObj, "1"); + verifyNotEnumerable(arrObj, "1"); - verifyNotConfigurable(arrObj, "1"); + verifyNotConfigurable(arrObj, "1"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-25.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-25.js index 0dafb044a0..1d9d42a444 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 9a50cf7415..607e0d752b 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 6d5de03437..23fdaab4c7 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-251.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-251.js @@ -15,27 +15,30 @@ includes: [propertyHelper.js] ---*/ var arrObj = []; -var obj = { length: 10 }; +var obj = { + length: 10 +}; Object.defineProperty(arrObj, "1", { - value: obj + value: obj }); try { - Object.defineProperty(arrObj, "1", { value: {} }); - $ERROR("Expected an exception."); + Object.defineProperty(arrObj, "1", { + value: {} + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arrObj, "1", obj); + verifyEqualTo(arrObj, "1", obj); - verifyNotWritable(arrObj, "1"); + verifyNotWritable(arrObj, "1"); - verifyNotEnumerable(arrObj, "1"); + verifyNotEnumerable(arrObj, "1"); - verifyNotConfigurable(arrObj, "1"); + verifyNotConfigurable(arrObj, "1"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-252.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-252.js index 3454a5e9c5..4d9f341fe6 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 be181bb018..3885a37c5e 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-253.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-253.js @@ -14,29 +14,30 @@ includes: [propertyHelper.js] ---*/ var arrObj = []; + function getFunc() { - return 12; + return 12; } Object.defineProperty(arrObj, "1", { - get: getFunc, - set: undefined + get: getFunc, + set: undefined }); try { - Object.defineProperty(arrObj, "1", { - set: function () { } - }); - $ERROR("Expected an exception."); + Object.defineProperty(arrObj, "1", { + set: function() {} + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arrObj, "1", getFunc()); + verifyEqualTo(arrObj, "1", getFunc()); - verifyNotEnumerable(arrObj, "1"); + verifyNotEnumerable(arrObj, "1"); - verifyNotConfigurable(arrObj, "1"); + verifyNotConfigurable(arrObj, "1"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-254.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-254.js index a12ad1cc8a..233b2deac5 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-254.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-254.js @@ -16,12 +16,12 @@ includes: [propertyHelper.js] var arrObj = []; Object.defineProperty(arrObj, "1", { - set: undefined + set: undefined }); assert(arrObj.hasOwnProperty("1")); Object.defineProperty(arrObj, "1", { - set: undefined + set: undefined }); var desc = Object.getOwnPropertyDescriptor(arrObj, "1"); @@ -31,4 +31,3 @@ assert(desc.hasOwnProperty("set") && typeof desc.set === "undefined"); verifyNotEnumerable(arrObj, "1"); verifyNotConfigurable(arrObj, "1"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-255.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-255.js index b82ea6fd24..054edeca85 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-255.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-255.js @@ -17,31 +17,30 @@ includes: [propertyHelper.js] var arrObj = []; function getFunc() { - return 12; + return 12; } Object.defineProperty(arrObj, "1", { - get: getFunc + get: getFunc }); try { - Object.defineProperty(arrObj, "1", { - get: function () { - return 14; - } - }); + Object.defineProperty(arrObj, "1", { + get: function() { + return 14; + } + }); - $ERROR("Expected TypeError"); + $ERROR("Expected TypeError"); } catch (e) { - assert(e instanceof TypeError); - assert(arrObj.hasOwnProperty("1")); + assert(e instanceof TypeError); + assert(arrObj.hasOwnProperty("1")); - var desc = Object.getOwnPropertyDescriptor(arrObj, "1"); + var desc = Object.getOwnPropertyDescriptor(arrObj, "1"); - assert(arrObj[1] === getFunc()); + assert(arrObj[1] === getFunc()); - assert(desc.hasOwnProperty("set") && typeof desc.set === "undefined"); + assert(desc.hasOwnProperty("set") && typeof desc.set === "undefined"); - verifyNotEnumerable(arrObj, "1"); - verifyNotConfigurable(arrObj, "1"); + verifyNotEnumerable(arrObj, "1"); + verifyNotConfigurable(arrObj, "1"); } - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-256.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-256.js index b362fd4c1f..5082b79ff3 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 37aafce381..d8563de260 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-257.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-257.js @@ -14,18 +14,19 @@ includes: [propertyHelper.js] ---*/ var arrObj = []; + function setFunc(value) { - arrObj.setVerifyHelpProp = value; + arrObj.setVerifyHelpProp = value; } Object.defineProperty(arrObj, "1", { - get: undefined, - set: setFunc, - configurable: false + get: undefined, + set: setFunc, + configurable: false }); Object.defineProperty(arrObj, "1", { - get: undefined + get: undefined }); verifyWritable(arrObj, "1", "setVerifyHelpProp"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-258.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-258.js index 53d53f56ea..fc823796a5 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-258.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-258.js @@ -15,7 +15,7 @@ includes: [propertyHelper.js] var arrObj = [100]; Object.defineProperty(arrObj, "0", { - value: 200 + value: 200 }); verifyEqualTo(arrObj, "0", 200); @@ -24,4 +24,3 @@ verifyWritable(arrObj, "0"); verifyEnumerable(arrObj, "0"); verifyConfigurable(arrObj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-259.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-259.js index d7d3f6160d..11d17e6726 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-259.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-259.js @@ -15,7 +15,7 @@ includes: [propertyHelper.js] var arrObj = [100]; Object.defineProperty(arrObj, "0", { - value: undefined + value: undefined }); verifyEqualTo(arrObj, "0", undefined); @@ -24,4 +24,3 @@ verifyWritable(arrObj, "0"); verifyEnumerable(arrObj, "0"); verifyConfigurable(arrObj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-26.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-26.js index 5a6c52ba57..42cd36095a 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 53b6be800d..81452c8a3c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-260.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-260.js @@ -14,7 +14,7 @@ includes: [propertyHelper.js] var arrObj = [undefined]; Object.defineProperty(arrObj, "0", { - value: 100 + value: 100 }); verifyEqualTo(arrObj, "0", 100); @@ -23,4 +23,3 @@ verifyWritable(arrObj, "0"); verifyEnumerable(arrObj, "0"); verifyConfigurable(arrObj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-261.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-261.js index 22b6bde12f..00983ec92c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-261.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-261.js @@ -14,7 +14,7 @@ includes: [propertyHelper.js] var arrObj = [100]; Object.defineProperty(arrObj, "0", { - writable: false + writable: false }); verifyEqualTo(arrObj, "0", 100); @@ -23,4 +23,3 @@ verifyNotWritable(arrObj, "0"); verifyEnumerable(arrObj, "0"); verifyConfigurable(arrObj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-262.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-262.js index 200656186f..3ab254e83f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-262.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-262.js @@ -15,7 +15,7 @@ includes: [propertyHelper.js] var arrObj = [100]; Object.defineProperty(arrObj, "0", { - enumerable: false + enumerable: false }); verifyEqualTo(arrObj, "0", 100); @@ -24,4 +24,3 @@ verifyWritable(arrObj, "0"); verifyNotEnumerable(arrObj, "0"); verifyConfigurable(arrObj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-263.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-263.js index 9572c45b87..383acb95b1 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-263.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-263.js @@ -15,7 +15,7 @@ includes: [propertyHelper.js] var arrObj = [100]; Object.defineProperty(arrObj, "0", { - configurable: false + configurable: false }); verifyEqualTo(arrObj, "0", 100); @@ -24,4 +24,3 @@ verifyWritable(arrObj, "0"); verifyEnumerable(arrObj, "0"); verifyNotConfigurable(arrObj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-264.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-264.js index 68c0c1b6b0..cff7a2c800 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-264.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-264.js @@ -14,9 +14,9 @@ includes: [propertyHelper.js] var arrObj = [100]; Object.defineProperty(arrObj, "0", { - writable: false, - enumerable: false, - configurable: false + writable: false, + enumerable: false, + configurable: false }); verifyEqualTo(arrObj, "0", 100); @@ -25,4 +25,3 @@ verifyNotWritable(arrObj, "0"); verifyNotEnumerable(arrObj, "0"); verifyNotConfigurable(arrObj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-265.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-265.js index ea1fe6a87b..e0c5c88cc6 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 58c677ac68..404c0b27bd 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-266.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-266.js @@ -13,17 +13,18 @@ includes: [propertyHelper.js] var arrObj = []; + function getFunc() { - return 12; + return 12; } Object.defineProperty(arrObj, "0", { - get: getFunc, - configurable: true + get: getFunc, + configurable: true }); Object.defineProperty(arrObj, "0", { - get: undefined + get: undefined }); verifyNotEnumerable(arrObj, "0"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-267.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-267.js index 22929edfa5..0b277d2b35 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 065e96b8a7..77eb277654 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 377757089d..d745c8ec7a 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 01f897d3b4..b6064724d2 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 dcbb818968..2139b32e7b 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 f61deec360..b6e062cfa9 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 9e3f26cc64..85c7d938e5 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-272.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-272.js @@ -13,17 +13,18 @@ includes: [propertyHelper.js] var arrObj = []; + function setFunc(value) { - arrObj.setVerifyHelpProp = value; + arrObj.setVerifyHelpProp = value; } Object.defineProperty(arrObj, "0", { - set: setFunc, - configurable: true + set: setFunc, + configurable: true }); Object.defineProperty(arrObj, "0", { - configurable: false + configurable: false }); verifyWritable(arrObj, "0", "setVerifyHelpProp"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-273.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-273.js index bf3d1c439e..96cd481ae2 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-273.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-273.js @@ -15,24 +15,25 @@ includes: [propertyHelper.js] var arrObj = []; function setFunc(value) { - arrObj.setVerifyHelpProp = value; + arrObj.setVerifyHelpProp = value; } + function getFunc() { - return 12; + return 12; } Object.defineProperty(arrObj, "1", { - get: function () { - return 6; - }, - set: setFunc, - enumerable: true, - configurable: true + get: function() { + return 6; + }, + set: setFunc, + enumerable: true, + configurable: true }); Object.defineProperty(arrObj, "1", { - get: getFunc, - enumerable: false, - configurable: false + get: getFunc, + enumerable: false, + configurable: false }); verifyEqualTo(arrObj, "1", getFunc()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-274.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-274.js index 3ffc0976ae..fa14d9a5df 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 314b3a9a67..54a9dc7c47 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 ec26b30979..fc39726c9d 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 63ad1e6637..bd2d31b641 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-277.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-277.js @@ -15,10 +15,10 @@ includes: [propertyHelper.js] var arrObj = []; Object.defineProperty(arrObj, "property", { - value: 12, - writable: true, - enumerable: true, - configurable: true + value: 12, + writable: true, + enumerable: true, + configurable: true }); verifyEqualTo(arrObj, "property", 12); @@ -28,4 +28,3 @@ verifyWritable(arrObj, "property"); verifyEnumerable(arrObj, "property"); verifyConfigurable(arrObj, "property"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-278.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-278.js index 663a41f2b3..1a2a67150c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-278.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-278.js @@ -14,17 +14,18 @@ includes: [propertyHelper.js] var arrObj = []; function getFunc() { - return 12; + return 12; } + function setFunc(value) { - arrObj.setVerifyHelpProp = value; + arrObj.setVerifyHelpProp = value; } Object.defineProperty(arrObj, "property", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: true + get: getFunc, + set: setFunc, + enumerable: true, + configurable: true }); verifyEqualTo(arrObj, "property", getFunc()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-279.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-279.js index 38d117e60c..cc89be6860 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-279.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-279.js @@ -14,23 +14,24 @@ includes: [propertyHelper.js] var arrObj = []; function getFunc() { - return 12; + return 12; } + function setFunc(value) { - arrObj.setVerifyHelpProp = value; + arrObj.setVerifyHelpProp = value; } Object.defineProperty(arrObj, "property", { - get: function () { - return 24; - }, - enumerable: true, - configurable: true + get: function() { + return 24; + }, + enumerable: true, + configurable: true }); Object.defineProperty(arrObj, "property", { - get: getFunc, - set: setFunc, - enumerable: false, - configurable: false + get: getFunc, + set: setFunc, + enumerable: false, + configurable: false }); verifyEqualTo(arrObj, "property", getFunc()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-28.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-28.js index e2918e4bb0..8e4ce0c272 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 49ff7a9284..b6001dca17 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-280.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-280.js @@ -16,9 +16,9 @@ var arrObj = []; arrObj.property = 12; // default value of attributes: writable: true, configurable: true, enumerable: true Object.defineProperty(arrObj, "property", { - writable: false, - enumerable: false, - configurable: false + writable: false, + enumerable: false, + configurable: false }); verifyEqualTo(arrObj, "property", 12); @@ -28,4 +28,3 @@ verifyNotWritable(arrObj, "property"); verifyNotEnumerable(arrObj, "property"); verifyNotConfigurable(arrObj, "property"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-281.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-281.js index 8d56e858b1..e222043de1 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 0d374be65f..4aaa7cc070 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 ecc7280f6b..f86d1ce0e6 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 abc5fc8c97..1ef365e86e 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 145ce3c7bd..1de36f3b1f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-285.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-285.js @@ -15,33 +15,34 @@ includes: [propertyHelper.js] var arrObj = []; function getFunc() { - return 12; + return 12; } + function setFunc(value) { - arrObj.setVerifyHelpProp = value; + arrObj.setVerifyHelpProp = value; } Object.defineProperty(arrObj, "property", { - get: getFunc, - set: setFunc + get: getFunc, + set: setFunc }); try { - Object.defineProperty(arrObj, "property", { - get: function () { - return 36; - } - }); - $ERROR("Expected an exception."); + Object.defineProperty(arrObj, "property", { + get: function() { + return 36; + } + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(arrObj, "property", getFunc()); + verifyEqualTo(arrObj, "property", getFunc()); - verifyWritable(arrObj, "property", "setVerifyHelpProp"); + verifyWritable(arrObj, "property", "setVerifyHelpProp"); - verifyNotEnumerable(arrObj, "property"); + verifyNotEnumerable(arrObj, "property"); - verifyNotConfigurable(arrObj, "property"); + verifyNotConfigurable(arrObj, "property"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-286.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-286.js index 89daab9eb9..5299882040 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 e1f3ffda4d..354519f6b9 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 0ab89201ae..a0290cf044 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 1549e47f42..e254dc76f7 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-289-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-289-1.js @@ -13,25 +13,26 @@ description: > includes: [propertyHelper.js] ---*/ -;(function (a, b, c) { - delete arguments[0]; +; +(function(a, b, c) { + delete arguments[0]; - Object.defineProperty(arguments, "0", { - value: 10, - writable: true, - enumerable: true, - configurable: true - }); + Object.defineProperty(arguments, "0", { + value: 10, + writable: true, + enumerable: true, + configurable: true + }); - if (a !== 0) { - $ERROR("Expected a === 0, actually " + a); - } - - verifyEqualTo(arguments, "0", 10); + if (a !== 0) { + $ERROR("Expected a === 0, actually " + a); + } - verifyWritable(arguments, "0"); + verifyEqualTo(arguments, "0", 10); - verifyEnumerable(arguments, "0"); + verifyWritable(arguments, "0"); - verifyConfigurable(arguments, "0"); + verifyEnumerable(arguments, "0"); + + verifyConfigurable(arguments, "0"); }(0, 1, 2)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-289.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-289.js index 084dc93ef0..feef9e44ea 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-289.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-289.js @@ -11,20 +11,19 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { - delete arguments[0]; - Object.defineProperty(arguments, "0", { - value: 10, - writable: true, - enumerable: true, - configurable: true - }); - verifyEqualTo(arguments, "0", 10); +(function() { + delete arguments[0]; + Object.defineProperty(arguments, "0", { + value: 10, + writable: true, + enumerable: true, + configurable: true + }); + verifyEqualTo(arguments, "0", 10); - verifyWritable(arguments, "0"); + verifyWritable(arguments, "0"); - verifyEnumerable(arguments, "0"); + verifyEnumerable(arguments, "0"); - verifyConfigurable(arguments, "0"); + verifyConfigurable(arguments, "0"); }(0, 1, 2)); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-29.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-29.js index 249380afc9..e2553691a5 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 303a2570dd..0cd20ff34a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-290-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-290-1.js @@ -13,29 +13,31 @@ description: > includes: [propertyHelper.js] ---*/ -(function (a, b, c) { - delete arguments[0]; - function getFunc() { - return 10; - } - function setFunc(value) { - this.setVerifyHelpProp = value; - } - Object.defineProperty(arguments, "0", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: true - }); - if (a !== 0) { - $ERROR('Expected a === 0, actually ' + a); - } - - verifyEqualTo(arguments, "0", getFunc()); - - verifyWritable(arguments, "0", "setVerifyHelpProp"); - - verifyEnumerable(arguments, "0"); - - verifyConfigurable(arguments, "0"); +(function(a, b, c) { + delete arguments[0]; + + function getFunc() { + return 10; + } + + function setFunc(value) { + this.setVerifyHelpProp = value; + } + Object.defineProperty(arguments, "0", { + get: getFunc, + set: setFunc, + enumerable: true, + configurable: true + }); + if (a !== 0) { + $ERROR('Expected a === 0, actually ' + a); + } + + verifyEqualTo(arguments, "0", getFunc()); + + verifyWritable(arguments, "0", "setVerifyHelpProp"); + + verifyEnumerable(arguments, "0"); + + verifyConfigurable(arguments, "0"); }(0, 1, 2)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-290.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-290.js index 6214d72d3d..bb6143ac58 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-290.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-290.js @@ -11,25 +11,27 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { - delete arguments[0]; - function getFunc() { - return 10; - } - function setFunc(value) { - this.setVerifyHelpProp = value; - } - Object.defineProperty(arguments, "0", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: true - }); - verifyEqualTo(arguments, "0", getFunc()); +(function() { + delete arguments[0]; - verifyWritable(arguments, "0", "setVerifyHelpProp"); + function getFunc() { + return 10; + } - verifyEnumerable(arguments, "0"); + function setFunc(value) { + this.setVerifyHelpProp = value; + } + Object.defineProperty(arguments, "0", { + get: getFunc, + set: setFunc, + enumerable: true, + configurable: true + }); + verifyEqualTo(arguments, "0", getFunc()); - verifyConfigurable(arguments, "0"); -}(0, 1, 2)); + verifyWritable(arguments, "0", "setVerifyHelpProp"); + + verifyEnumerable(arguments, "0"); + + verifyConfigurable(arguments, "0"); +}(0, 1, 2)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-291-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-291-1.js index bbb1c94d7d..4b75da8ade 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-291-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-291-1.js @@ -12,30 +12,31 @@ description: > includes: [propertyHelper.js] ---*/ -(function (a, b, c) { - function getFunc1() { - return 10; - } - Object.defineProperty(arguments, "0", { - get: getFunc1, - enumerable: true, - configurable: true - }); - function getFunc2() { - return 20; - } - Object.defineProperty(arguments, "0", { - get: getFunc2, - enumerable: false, - configurable: false - }); - if (a !== 0) { - $ERROR('Expected a === 0, actually ' + a); - } +(function(a, b, c) { + function getFunc1() { + return 10; + } + Object.defineProperty(arguments, "0", { + get: getFunc1, + enumerable: true, + configurable: true + }); - verifyEqualTo(arguments, "0", getFunc2()); + function getFunc2() { + return 20; + } + Object.defineProperty(arguments, "0", { + get: getFunc2, + enumerable: false, + configurable: false + }); + if (a !== 0) { + $ERROR('Expected a === 0, actually ' + a); + } - verifyNotEnumerable(arguments, "0"); + verifyEqualTo(arguments, "0", getFunc2()); - verifyNotConfigurable(arguments, "0"); + verifyNotEnumerable(arguments, "0"); + + verifyNotConfigurable(arguments, "0"); }(0, 1, 2)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-291.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-291.js index d63f267c7f..17755a5de4 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-291.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-291.js @@ -11,26 +11,27 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { - function getFunc1() { - return 10; - } - Object.defineProperty(arguments, "0", { - get: getFunc1, - enumerable: true, - configurable: true - }); - function getFunc2() { - return 20; - } - Object.defineProperty(arguments, "0", { - get: getFunc2, - enumerable: false, - configurable: false - }); - verifyEqualTo(arguments, "0", getFunc2()); +(function() { + function getFunc1() { + return 10; + } + Object.defineProperty(arguments, "0", { + get: getFunc1, + enumerable: true, + configurable: true + }); - verifyNotEnumerable(arguments, "0"); + function getFunc2() { + return 20; + } + Object.defineProperty(arguments, "0", { + get: getFunc2, + enumerable: false, + configurable: false + }); + verifyEqualTo(arguments, "0", getFunc2()); - verifyNotConfigurable(arguments, "0"); + verifyNotEnumerable(arguments, "0"); + + verifyNotConfigurable(arguments, "0"); }(0, 1, 2)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-292-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-292-1.js index a3d45777b9..9c20ee4590 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 d76c7156d0..1e9fec466f 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 7af204af1d..97aec8b7ca 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-292.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-292.js @@ -11,19 +11,18 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { - Object.defineProperty(arguments, "0", { - value: 20, - writable: false, - enumerable: false, - configurable: false - }); - verifyEqualTo(arguments, "0", 20); +(function() { + Object.defineProperty(arguments, "0", { + value: 20, + writable: false, + enumerable: false, + configurable: false + }); + verifyEqualTo(arguments, "0", 20); - verifyNotWritable(arguments, "0"); + verifyNotWritable(arguments, "0"); - verifyNotEnumerable(arguments, "0"); + verifyNotEnumerable(arguments, "0"); - verifyNotConfigurable(arguments, "0"); + verifyNotConfigurable(arguments, "0"); }(0, 1, 2)); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-293-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-293-1.js index 34617245be..b9e13227ae 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-293-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-293-1.js @@ -12,20 +12,19 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { - Object.defineProperty(arguments, "0", { - value: 10, - writable: false - }); - Object.defineProperty(arguments, "0", { - value: 20 - }); - verifyEqualTo(arguments, "0", 20); +(function() { + Object.defineProperty(arguments, "0", { + value: 10, + writable: false + }); + Object.defineProperty(arguments, "0", { + value: 20 + }); + verifyEqualTo(arguments, "0", 20); - verifyNotWritable(arguments, "0"); + verifyNotWritable(arguments, "0"); - verifyEnumerable(arguments, "0"); + verifyEnumerable(arguments, "0"); - verifyConfigurable(arguments, "0"); + verifyConfigurable(arguments, "0"); }(0, 1, 2)); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-293-2.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-293-2.js index d994ce03ee..10e87a7fbb 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-293-2.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-293-2.js @@ -14,36 +14,36 @@ includes: [propertyHelper.js] flags: [noStrict] ---*/ -(function (a, b, c) { +(function(a, b, c) { + Object.defineProperty(arguments, "0", { + value: 10, + writable: false, + enumerable: false, + configurable: false + }); + try { Object.defineProperty(arguments, "0", { - value: 10, - writable: false, - enumerable: false, - configurable: false + value: 20 }); - try { - Object.defineProperty(arguments, "0", { - value: 20 - }); - $ERROR("Expected an exception."); - - } catch (e) { + $ERROR("Expected an exception."); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + } catch (e) { - verifyEqualTo(arguments, "0", 10); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } - verifyNotWritable(arguments, "0"); + verifyEqualTo(arguments, "0", 10); - verifyNotEnumerable(arguments, "0"); + verifyNotWritable(arguments, "0"); - verifyNotConfigurable(arguments, "0"); + verifyNotEnumerable(arguments, "0"); - if (a !== 10) { - $ERROR('Expected "a === 10", actually ' + a); - } + verifyNotConfigurable(arguments, "0"); + if (a !== 10) { + $ERROR('Expected "a === 10", actually ' + a); } + + } }(0, 1, 2)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-293-3.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-293-3.js index 20aa562ffd..9ba1c6d058 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 2396c2d7be..384e59654f 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 14c60ff602..4f42459319 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-293.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-293.js @@ -12,30 +12,30 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { +(function() { + Object.defineProperty(arguments, "0", { + value: 10, + writable: false, + enumerable: false, + configurable: false + }); + try { Object.defineProperty(arguments, "0", { - value: 10, - writable: false, - enumerable: false, - configurable: false + value: 20 }); - try { - Object.defineProperty(arguments, "0", { - value: 20 - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyEqualTo(arguments, "0", 10); + $ERROR("Expected an exception."); + } catch (e) { + verifyEqualTo(arguments, "0", 10); - verifyNotWritable(arguments, "0"); + verifyNotWritable(arguments, "0"); - verifyNotEnumerable(arguments, "0"); + verifyNotEnumerable(arguments, "0"); - verifyNotConfigurable(arguments, "0"); - - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "0"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }(0, 1, 2)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-294-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-294-1.js index ad6a9bd020..7ece96050d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-294-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-294-1.js @@ -14,37 +14,36 @@ includes: [propertyHelper.js] flags: [noStrict] ---*/ -(function (a, b, c) { +(function(a, b, c) { + Object.defineProperty(arguments, "0", { + value: 10, + writable: false, + enumerable: false, + configurable: false + }); + try { Object.defineProperty(arguments, "0", { - value: 10, - writable: false, - enumerable: false, - configurable: false + writable: true }); - try { - Object.defineProperty(arguments, "0", { - writable: true - }); - $ERROR("Expected an exception."); - } catch (e) { + $ERROR("Expected an exception."); + } catch (e) { - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } - - verifyEqualTo(arguments, "0", 10); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } - verifyNotWritable(arguments, "0"); + verifyEqualTo(arguments, "0", 10); - verifyNotEnumerable(arguments, "0"); + verifyNotWritable(arguments, "0"); - verifyNotConfigurable(arguments, "0"); + verifyNotEnumerable(arguments, "0"); - if (a !== 10) { - $ERROR('Expected "a === 10", actually ' + a); - } + verifyNotConfigurable(arguments, "0"); + if (a !== 10) { + $ERROR('Expected "a === 10", actually ' + a); } -}(0, 1, 2)); + } +}(0, 1, 2)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-294.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-294.js index e2447d157b..33567f4004 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-294.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-294.js @@ -11,30 +11,30 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { +(function() { + Object.defineProperty(arguments, "0", { + value: 10, + writable: false, + enumerable: false, + configurable: false + }); + try { Object.defineProperty(arguments, "0", { - value: 10, - writable: false, - enumerable: false, - configurable: false + writable: true }); - try { - Object.defineProperty(arguments, "0", { - writable: true - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyEqualTo(arguments, "0", 10); + $ERROR("Expected an exception."); + } catch (e) { + verifyEqualTo(arguments, "0", 10); - verifyNotWritable(arguments, "0"); + verifyNotWritable(arguments, "0"); - verifyNotEnumerable(arguments, "0"); + verifyNotEnumerable(arguments, "0"); - verifyNotConfigurable(arguments, "0"); - - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "0"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }(0, 1, 2)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-295-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-295-1.js index 55fca4ff64..c430603b43 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-295-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-295-1.js @@ -15,33 +15,33 @@ flags: [noStrict] ---*/ -(function (a, b, c) { +(function(a, b, c) { + Object.defineProperty(arguments, "0", { + value: 10, + writable: false, + enumerable: true, + configurable: false + }); + try { Object.defineProperty(arguments, "0", { - value: 10, - writable: false, - enumerable: true, - configurable: false + enumerable: false }); - try { - Object.defineProperty(arguments, "0", { - enumerable: false - }); - $ERROR("Expected an exception."); - } catch (e) { - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + $ERROR("Expected an exception."); + } catch (e) { + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } - verifyEqualTo(arguments, "0", 10); + verifyEqualTo(arguments, "0", 10); - verifyNotWritable(arguments, "0"); + verifyNotWritable(arguments, "0"); - verifyEnumerable(arguments, "0"); + verifyEnumerable(arguments, "0"); - verifyNotConfigurable(arguments, "0"); + verifyNotConfigurable(arguments, "0"); - if (a !== 10) { - $ERROR('Expected "a === 10", actually ' + a); - } + if (a !== 10) { + $ERROR('Expected "a === 10", actually ' + a); } + } }(0, 1, 2)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-295.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-295.js index 0b224a8cf2..1aec126bbe 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-295.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-295.js @@ -11,30 +11,30 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { +(function() { + Object.defineProperty(arguments, "0", { + value: 10, + writable: false, + enumerable: true, + configurable: false + }); + try { Object.defineProperty(arguments, "0", { - value: 10, - writable: false, - enumerable: true, - configurable: false + enumerable: false }); - try { - Object.defineProperty(arguments, "0", { - enumerable: false - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyEqualTo(arguments, "0", 10); + $ERROR("Expected an exception."); + } catch (e) { + verifyEqualTo(arguments, "0", 10); - verifyNotWritable(arguments, "0"); + verifyNotWritable(arguments, "0"); - verifyEnumerable(arguments, "0"); + verifyEnumerable(arguments, "0"); - verifyNotConfigurable(arguments, "0"); - - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "0"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }(0, 1, 2)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-296-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-296-1.js index 32abc599d4..6c092c6ee4 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-296-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-296-1.js @@ -14,33 +14,33 @@ includes: [propertyHelper.js] flags: [noStrict] ---*/ -(function (a, b, c) { +(function(a, b, c) { + Object.defineProperty(arguments, "0", { + value: 10, + writable: false, + enumerable: false, + configurable: false + }); + try { Object.defineProperty(arguments, "0", { - value: 10, - writable: false, - enumerable: false, - configurable: false + configurable: true }); - try { - Object.defineProperty(arguments, "0", { - configurable: true - }); - $ERROR("Expected an exception."); - } catch (e) { - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + $ERROR("Expected an exception."); + } catch (e) { + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } - verifyEqualTo(arguments, "0", 10); + verifyEqualTo(arguments, "0", 10); - verifyNotWritable(arguments, "0"); + verifyNotWritable(arguments, "0"); - verifyNotEnumerable(arguments, "0"); + verifyNotEnumerable(arguments, "0"); - verifyNotConfigurable(arguments, "0"); + verifyNotConfigurable(arguments, "0"); - if (a !== 10) { - $ERROR('Expected "a === 10", actually ' + a); - } + if (a !== 10) { + $ERROR('Expected "a === 10", actually ' + a); } + } }(0, 1, 2)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-296.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-296.js index 0903bade78..6791a73d72 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-296.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-296.js @@ -11,30 +11,30 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { +(function() { + Object.defineProperty(arguments, "0", { + value: 10, + writable: false, + enumerable: false, + configurable: false + }); + try { Object.defineProperty(arguments, "0", { - value: 10, - writable: false, - enumerable: false, - configurable: false + configurable: true }); - try { - Object.defineProperty(arguments, "0", { - configurable: true - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyEqualTo(arguments, "0", 10); + $ERROR("Expected an exception."); + } catch (e) { + verifyEqualTo(arguments, "0", 10); - verifyNotWritable(arguments, "0"); + verifyNotWritable(arguments, "0"); - verifyNotEnumerable(arguments, "0"); + verifyNotEnumerable(arguments, "0"); - verifyNotConfigurable(arguments, "0"); - - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "0"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }(0, 1, 2)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-297-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-297-1.js index f5236683fb..184c9a58ce 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-297-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-297-1.js @@ -13,37 +13,38 @@ description: > includes: [propertyHelper.js] ---*/ -(function (a, b, c) { - function getFunc1() { - return 10; - } +(function(a, b, c) { + function getFunc1() { + return 10; + } + Object.defineProperty(arguments, "0", { + get: getFunc1, + enumerable: false, + configurable: false + }); + + function getFunc2() { + return 20; + } + try { Object.defineProperty(arguments, "0", { - get: getFunc1, - enumerable: false, - configurable: false + get: getFunc2 }); - function getFunc2() { - return 20; + $ERROR("Expected an exception."); + } catch (e) { + if (a !== 0) { + $ERROR('Expected a === 0, actually ' + a); } - try { - Object.defineProperty(arguments, "0", { - get: getFunc2 - }); - $ERROR("Expected an exception."); - } catch (e) { - if (a !== 0) { - $ERROR('Expected a === 0, actually ' + a); - } - verifyEqualTo(arguments, "0", getFunc1()); + verifyEqualTo(arguments, "0", getFunc1()); - verifyNotEnumerable(arguments, "0"); + verifyNotEnumerable(arguments, "0"); - verifyNotConfigurable(arguments, "0"); - - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "0"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }(0, 1, 2)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-297.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-297.js index 55c7428fbe..974e8ecdbb 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-297.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-297.js @@ -11,33 +11,34 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { - function getFunc1() { - return 10; - } +(function() { + function getFunc1() { + return 10; + } + Object.defineProperty(arguments, "0", { + get: getFunc1, + enumerable: false, + configurable: false + }); + + function getFunc2() { + return 20; + } + try { Object.defineProperty(arguments, "0", { - get: getFunc1, - enumerable: false, - configurable: false + get: getFunc2 }); - function getFunc2() { - return 20; - } - try { - Object.defineProperty(arguments, "0", { - get: getFunc2 - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyEqualTo(arguments, "0", getFunc1()); + $ERROR("Expected an exception."); + } catch (e) { + verifyEqualTo(arguments, "0", getFunc1()); - verifyNotEnumerable(arguments, "0"); + verifyNotEnumerable(arguments, "0"); - verifyNotConfigurable(arguments, "0"); - - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "0"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }(0, 1, 2)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-298-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-298-1.js index bddc9dde73..0b2827750e 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-298-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-298-1.js @@ -13,38 +13,39 @@ description: > includes: [propertyHelper.js] ---*/ -(function (a, b, c) { - function getFunc() { - return 10; - } +(function(a, b, c) { + function getFunc() { + return 10; + } + Object.defineProperty(arguments, "0", { + get: getFunc, + set: undefined, + enumerable: false, + configurable: false + }); + + function setFunc(value) { + this.setVerifyHelpProp = value; + } + try { Object.defineProperty(arguments, "0", { - get: getFunc, - set: undefined, - enumerable: false, - configurable: false + set: setFunc }); - function setFunc(value) { - this.setVerifyHelpProp = value; + $ERROR("Expected an exception."); + } catch (e) { + if (a !== 0) { + $ERROR('Expected a === 0, actually ' + a); } - try { - Object.defineProperty(arguments, "0", { - set: setFunc - }); - $ERROR("Expected an exception."); - } catch (e) { - if (a !== 0) { - $ERROR('Expected a === 0, actually ' + a); - } - verifyEqualTo(arguments, "0", getFunc()); + verifyEqualTo(arguments, "0", getFunc()); - verifyNotEnumerable(arguments, "0"); + verifyNotEnumerable(arguments, "0"); - verifyNotConfigurable(arguments, "0"); - - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "0"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }(0, 1, 2)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-298.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-298.js index 1036ffbd67..14ac5ab6af 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-298.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-298.js @@ -11,34 +11,35 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { - function getFunc() { - return 10; - } +(function() { + function getFunc() { + return 10; + } + Object.defineProperty(arguments, "0", { + get: getFunc, + set: undefined, + enumerable: false, + configurable: false + }); + + function setFunc(value) { + this.setVerifyHelpProp = value; + } + try { Object.defineProperty(arguments, "0", { - get: getFunc, - set: undefined, - enumerable: false, - configurable: false + set: setFunc }); - function setFunc(value) { - this.setVerifyHelpProp = value; - } - try { - Object.defineProperty(arguments, "0", { - set: setFunc - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyEqualTo(arguments, "0", getFunc()); + $ERROR("Expected an exception."); + } catch (e) { + verifyEqualTo(arguments, "0", getFunc()); - verifyNotEnumerable(arguments, "0"); + verifyNotEnumerable(arguments, "0"); - verifyNotConfigurable(arguments, "0"); - - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "0"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }(0, 1, 2)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-299-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-299-1.js index 544a702663..671be86441 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-299-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-299-1.js @@ -13,33 +13,33 @@ description: > includes: [propertyHelper.js] ---*/ -(function (a, b, c) { - function getFunc() { - return 10; - } +(function(a, b, c) { + function getFunc() { + return 10; + } + Object.defineProperty(arguments, "0", { + get: getFunc, + enumerable: true, + configurable: false + }); + try { Object.defineProperty(arguments, "0", { - get: getFunc, - enumerable: true, - configurable: false + enumerable: false }); - try { - Object.defineProperty(arguments, "0", { - enumerable: false - }); - $ERROR("Expected an exception."); - } catch (e) { - if (a !== 0) { - $ERROR('Expected a === 0, actually ' + a); - } - verifyEqualTo(arguments, "0", getFunc()); - - verifyEnumerable(arguments, "0"); + $ERROR("Expected an exception."); + } catch (e) { + if (a !== 0) { + $ERROR('Expected a === 0, actually ' + a); + } + verifyEqualTo(arguments, "0", getFunc()); - verifyNotConfigurable(arguments, "0"); + verifyEnumerable(arguments, "0"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "0"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }(0, 1, 2)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-299.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-299.js index 0075afdc5e..38c23592e7 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-299.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-299.js @@ -11,30 +11,30 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { - function getFunc() { - return 10; - } +(function() { + function getFunc() { + return 10; + } + Object.defineProperty(arguments, "0", { + get: getFunc, + enumerable: true, + configurable: false + }); + try { Object.defineProperty(arguments, "0", { - get: getFunc, - enumerable: true, - configurable: false + enumerable: false }); - try { - Object.defineProperty(arguments, "0", { - enumerable: false - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyEqualTo(arguments, "0", getFunc()); - - verifyEnumerable(arguments, "0"); + $ERROR("Expected an exception."); + } catch (e) { + verifyEqualTo(arguments, "0", getFunc()); - verifyNotConfigurable(arguments, "0"); + verifyEnumerable(arguments, "0"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "0"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }(0, 1, 2)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-3.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-3.js index 0eb4b57567..845cc01730 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-3.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-3.js @@ -12,17 +12,21 @@ description: > values (accessor)(8.12.9 step 4.b.i) ---*/ - var o = {}; +var o = {}; - var getter = function () { return 1; }; - var desc = { get: getter }; +var getter = function() { + return 1; +}; +var desc = { + get: getter +}; - Object.defineProperty(o, "foo", desc); +Object.defineProperty(o, "foo", desc); - var propDesc = Object.getOwnPropertyDescriptor(o, "foo"); +var propDesc = Object.getOwnPropertyDescriptor(o, "foo"); assert.sameValue(typeof(propDesc.get), "function", 'typeof(propDesc.get)'); -assert.sameValue(propDesc.get, getter, 'propDesc.get'); // the getter must be the function that was provided -assert.sameValue(propDesc.set, undefined, 'propDesc.set'); // undefined by default -assert.sameValue(propDesc.enumerable, false, 'propDesc.enumerable'); // false by default -assert.sameValue(propDesc.configurable, false, 'propDesc.configurable'); // false by default \ No newline at end of file +assert.sameValue(propDesc.get, getter, 'propDesc.get'); // the getter must be the function that was provided +assert.sameValue(propDesc.set, undefined, 'propDesc.set'); // undefined by default +assert.sameValue(propDesc.enumerable, false, 'propDesc.enumerable'); // false by default +assert.sameValue(propDesc.configurable, false, 'propDesc.configurable'); // false by default diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-30.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-30.js index 3c42e298dd..de6eda2294 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 4f28e9379c..04174e0bce 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-300-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-300-1.js @@ -13,33 +13,33 @@ description: > includes: [propertyHelper.js] ---*/ -(function (a, b, c) { - function getFunc() { - return 0; - } +(function(a, b, c) { + function getFunc() { + return 0; + } + Object.defineProperty(arguments, "0", { + get: getFunc, + enumerable: true, + configurable: false + }); + try { Object.defineProperty(arguments, "0", { - get: getFunc, - enumerable: true, - configurable: false + configurable: true }); - try { - Object.defineProperty(arguments, "0", { - configurable: true - }); - $ERROR("Expected an exception."); - } catch (e) { - if (a !== 0) { - $ERROR('Expected a === 0, actually ' + a); - } - verifyEqualTo(arguments, "0", getFunc()); - - verifyEnumerable(arguments, "0"); + $ERROR("Expected an exception."); + } catch (e) { + if (a !== 0) { + $ERROR('Expected a === 0, actually ' + a); + } + verifyEqualTo(arguments, "0", getFunc()); - verifyNotConfigurable(arguments, "0"); + verifyEnumerable(arguments, "0"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "0"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }(0, 1, 2)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-300.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-300.js index 2b7c8baaf8..89f3607be8 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-300.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-300.js @@ -11,30 +11,30 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { - function getFunc() { - return 10; - } +(function() { + function getFunc() { + return 10; + } + Object.defineProperty(arguments, "0", { + get: getFunc, + enumerable: true, + configurable: false + }); + try { Object.defineProperty(arguments, "0", { - get: getFunc, - enumerable: true, - configurable: false + configurable: true }); - try { - Object.defineProperty(arguments, "0", { - configurable: true - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyEqualTo(arguments, "0", getFunc()); - - verifyEnumerable(arguments, "0"); + $ERROR("Expected an exception."); + } catch (e) { + verifyEqualTo(arguments, "0", getFunc()); - verifyNotConfigurable(arguments, "0"); + verifyEnumerable(arguments, "0"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "0"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }(0, 1, 2)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-301-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-301-1.js index 205a5dc25e..68f714814f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-301-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-301-1.js @@ -12,23 +12,22 @@ description: > includes: [propertyHelper.js] ---*/ -(function (a, b, c) { - delete arguments[0]; - Object.defineProperty(arguments, "0", { - value: 10, - writable: false, - enumerable: false, - configurable: false - }); - if (a !== 0) { - $ERROR("Expected a === 0, actually " + a); - } - verifyEqualTo(arguments, "0", 10); +(function(a, b, c) { + delete arguments[0]; + Object.defineProperty(arguments, "0", { + value: 10, + writable: false, + enumerable: false, + configurable: false + }); + if (a !== 0) { + $ERROR("Expected a === 0, actually " + a); + } + verifyEqualTo(arguments, "0", 10); - verifyNotWritable(arguments, "0"); + verifyNotWritable(arguments, "0"); - verifyNotEnumerable(arguments, "0"); + verifyNotEnumerable(arguments, "0"); - verifyNotConfigurable(arguments, "0"); + verifyNotConfigurable(arguments, "0"); }(0, 1, 2)); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-301.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-301.js index 8bfc2369c7..6dc4637f91 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-301.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-301.js @@ -12,20 +12,19 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { - delete arguments[0]; - Object.defineProperty(arguments, "0", { - value: 10, - writable: false, - enumerable: false, - configurable: false - }); - verifyEqualTo(arguments, "0", 10); +(function() { + delete arguments[0]; + Object.defineProperty(arguments, "0", { + value: 10, + writable: false, + enumerable: false, + configurable: false + }); + verifyEqualTo(arguments, "0", 10); - verifyNotWritable(arguments, "0"); + verifyNotWritable(arguments, "0"); - verifyNotEnumerable(arguments, "0"); + verifyNotEnumerable(arguments, "0"); - verifyNotConfigurable(arguments, "0"); + verifyNotConfigurable(arguments, "0"); }(0, 1, 2)); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-302-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-302-1.js index 6d81eb5f81..2abc9a5ca2 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-302-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-302-1.js @@ -13,28 +13,30 @@ description: > includes: [propertyHelper.js] ---*/ -(function (a, b, c) { - delete arguments[0]; - function getFunc() { - return 10; - } - function setFunc(value) { - this.setVerifyHelpProp = value; - } - Object.defineProperty(arguments, "0", { - get: getFunc, - set: setFunc, - enumerable: false, - configurable: false - }); - if (a !== 0) { - $ERROR('Expected a === 0, actually ' + a); - } - verifyEqualTo(arguments, "0", getFunc()); +(function(a, b, c) { + delete arguments[0]; - verifyWritable(arguments, "0", "setVerifyHelpProp"); + function getFunc() { + return 10; + } - verifyNotEnumerable(arguments, "0"); + function setFunc(value) { + this.setVerifyHelpProp = value; + } + Object.defineProperty(arguments, "0", { + get: getFunc, + set: setFunc, + enumerable: false, + configurable: false + }); + if (a !== 0) { + $ERROR('Expected a === 0, actually ' + a); + } + verifyEqualTo(arguments, "0", getFunc()); - verifyNotConfigurable(arguments, "0"); + verifyWritable(arguments, "0", "setVerifyHelpProp"); + + verifyNotEnumerable(arguments, "0"); + + verifyNotConfigurable(arguments, "0"); }(0, 1, 2)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-302.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-302.js index 516c7d377d..fd92a564fb 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-302.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-302.js @@ -12,25 +12,27 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { - delete arguments[0]; - function getFunc() { - return 10; - } - function setFunc(value) { - this.setVerifyHelpProp = value; - } - Object.defineProperty(arguments, "0", { - get: getFunc, - set: setFunc, - enumerable: false, - configurable: false - }); - verifyEqualTo(arguments, "0", getFunc()); +(function() { + delete arguments[0]; - verifyWritable(arguments, "0", "setVerifyHelpProp"); + function getFunc() { + return 10; + } - verifyNotEnumerable(arguments, "0"); + function setFunc(value) { + this.setVerifyHelpProp = value; + } + Object.defineProperty(arguments, "0", { + get: getFunc, + set: setFunc, + enumerable: false, + configurable: false + }); + verifyEqualTo(arguments, "0", getFunc()); - verifyNotConfigurable(arguments, "0"); + verifyWritable(arguments, "0", "setVerifyHelpProp"); + + verifyNotEnumerable(arguments, "0"); + + verifyNotConfigurable(arguments, "0"); }(0, 1, 2)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-303.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-303.js index 2b8de6f016..33605ec77a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-303.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-303.js @@ -12,26 +12,27 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { - function getFunc1() { - return 10; - } - Object.defineProperty(arguments, "0", { - get: getFunc1, - enumerable: true, - configurable: true - }); - function getFunc2() { - return 20; - } - Object.defineProperty(arguments, "0", { - get: getFunc2, - enumerable: false, - configurable: false - }); - verifyEqualTo(arguments, "0", getFunc2()); +(function() { + function getFunc1() { + return 10; + } + Object.defineProperty(arguments, "0", { + get: getFunc1, + enumerable: true, + configurable: true + }); - verifyNotEnumerable(arguments, "0"); + function getFunc2() { + return 20; + } + Object.defineProperty(arguments, "0", { + get: getFunc2, + enumerable: false, + configurable: false + }); + verifyEqualTo(arguments, "0", getFunc2()); - verifyNotConfigurable(arguments, "0"); + verifyNotEnumerable(arguments, "0"); + + verifyNotConfigurable(arguments, "0"); }()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-304.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-304.js index 0700b56e08..c775554aeb 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-304.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-304.js @@ -12,19 +12,18 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { - Object.defineProperty(arguments, "0", { - value: 20, - writable: false, - enumerable: false, - configurable: false - }); - verifyEqualTo(arguments, "0", 20); +(function() { + Object.defineProperty(arguments, "0", { + value: 20, + writable: false, + enumerable: false, + configurable: false + }); + verifyEqualTo(arguments, "0", 20); - verifyNotWritable(arguments, "0"); + verifyNotWritable(arguments, "0"); - verifyNotEnumerable(arguments, "0"); + verifyNotEnumerable(arguments, "0"); - verifyNotConfigurable(arguments, "0"); + verifyNotConfigurable(arguments, "0"); }()); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-305.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-305.js index 4c71932014..e02038bfa1 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-305.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-305.js @@ -12,30 +12,30 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { +(function() { + Object.defineProperty(arguments, "0", { + value: 0, + writable: false, + configurable: false + }); + + try { Object.defineProperty(arguments, "0", { - value: 0, - writable: false, - configurable: false + value: 10 }); + $ERROR("Expected an exception."); + } catch (e) { + verifyEqualTo(arguments, "0", 0); - try { - Object.defineProperty(arguments, "0", { - value: 10 - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyEqualTo(arguments, "0", 0); + verifyNotWritable(arguments, "0"); - verifyNotWritable(arguments, "0"); + verifyNotEnumerable(arguments, "0"); - verifyNotEnumerable(arguments, "0"); - - verifyNotConfigurable(arguments, "0"); - - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "0"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-306.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-306.js index 93ba566f10..5cd489d478 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-306.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-306.js @@ -12,30 +12,30 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { +(function() { + Object.defineProperty(arguments, "0", { + value: 0, + writable: false, + enumerable: false, + configurable: false + }); + try { Object.defineProperty(arguments, "0", { - value: 0, - writable: false, - enumerable: false, - configurable: false + writable: true }); - try { - Object.defineProperty(arguments, "0", { - writable: true - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyEqualTo(arguments, "0", 0); + $ERROR("Expected an exception."); + } catch (e) { + verifyEqualTo(arguments, "0", 0); - verifyNotWritable(arguments, "0"); + verifyNotWritable(arguments, "0"); - verifyNotEnumerable(arguments, "0"); + verifyNotEnumerable(arguments, "0"); - verifyNotConfigurable(arguments, "0"); - - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "0"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-307.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-307.js index 82bdebdbff..043ae972ff 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-307.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-307.js @@ -12,30 +12,30 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { +(function() { + Object.defineProperty(arguments, "0", { + value: 0, + writable: false, + enumerable: true, + configurable: false + }); + try { Object.defineProperty(arguments, "0", { - value: 0, - writable: false, - enumerable: true, - configurable: false + enumerable: false }); - try { - Object.defineProperty(arguments, "0", { - enumerable: false - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyEqualTo(arguments, "0", 0); + $ERROR("Expected an exception."); + } catch (e) { + verifyEqualTo(arguments, "0", 0); - verifyNotWritable(arguments, "0"); + verifyNotWritable(arguments, "0"); - verifyEnumerable(arguments, "0"); + verifyEnumerable(arguments, "0"); - verifyNotConfigurable(arguments, "0"); - - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "0"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-308.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-308.js index d38bd2a2a2..33aff6bdbb 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-308.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-308.js @@ -12,30 +12,30 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { +(function() { + Object.defineProperty(arguments, "0", { + value: 0, + writable: false, + enumerable: false, + configurable: false + }); + try { Object.defineProperty(arguments, "0", { - value: 0, - writable: false, - enumerable: false, - configurable: false + configurable: true }); - try { - Object.defineProperty(arguments, "0", { - configurable: true - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyEqualTo(arguments, "0", 0); + $ERROR("Expected an exception."); + } catch (e) { + verifyEqualTo(arguments, "0", 0); - verifyNotWritable(arguments, "0"); + verifyNotWritable(arguments, "0"); - verifyNotEnumerable(arguments, "0"); + verifyNotEnumerable(arguments, "0"); - verifyNotConfigurable(arguments, "0"); - - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "0"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-309.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-309.js index cc26f96be1..f35c9908c1 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-309.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-309.js @@ -12,33 +12,34 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { - function getFunc1() { - return 0; - } +(function() { + function getFunc1() { + return 0; + } + Object.defineProperty(arguments, "0", { + get: getFunc1, + enumerable: false, + configurable: false + }); + + function getFunc2() { + return 10; + } + try { Object.defineProperty(arguments, "0", { - get: getFunc1, - enumerable: false, - configurable: false + get: getFunc2 }); - function getFunc2() { - return 10; - } - try { - Object.defineProperty(arguments, "0", { - get: getFunc2 - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyEqualTo(arguments, "0", getFunc1()); + $ERROR("Expected an exception."); + } catch (e) { + verifyEqualTo(arguments, "0", getFunc1()); - verifyNotEnumerable(arguments, "0"); + verifyNotEnumerable(arguments, "0"); - verifyNotConfigurable(arguments, "0"); - - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "0"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-31.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-31.js index 3a2098e1e0..5ba147afa8 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 bc48c6d5ca..69301af5fa 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-310.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-310.js @@ -12,34 +12,35 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { - function getFunc() { - return 0; - } +(function() { + function getFunc() { + return 0; + } + Object.defineProperty(arguments, "0", { + get: getFunc, + set: undefined, + enumerable: false, + configurable: false + }); + + function setFunc(value) { + this.setVerifyHelpProp = value; + } + try { Object.defineProperty(arguments, "0", { - get: getFunc, - set: undefined, - enumerable: false, - configurable: false + set: setFunc }); - function setFunc(value) { - this.setVerifyHelpProp = value; - } - try { - Object.defineProperty(arguments, "0", { - set: setFunc - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyEqualTo(arguments, "0", getFunc()); + $ERROR("Expected an exception."); + } catch (e) { + verifyEqualTo(arguments, "0", getFunc()); - verifyNotEnumerable(arguments, "0"); + verifyNotEnumerable(arguments, "0"); - verifyNotConfigurable(arguments, "0"); - - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "0"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-311.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-311.js index ab56a5addb..4d574987cc 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-311.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-311.js @@ -12,30 +12,30 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { - function getFunc() { - return 0; - } +(function() { + function getFunc() { + return 0; + } + Object.defineProperty(arguments, "0", { + get: getFunc, + enumerable: true, + configurable: false + }); + try { Object.defineProperty(arguments, "0", { - get: getFunc, - enumerable: true, - configurable: false + enumerable: false }); - try { - Object.defineProperty(arguments, "0", { - enumerable: false - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyEqualTo(arguments, "0", getFunc()); - - verifyEnumerable(arguments, "0"); + $ERROR("Expected an exception."); + } catch (e) { + verifyEqualTo(arguments, "0", getFunc()); - verifyNotConfigurable(arguments, "0"); + verifyEnumerable(arguments, "0"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "0"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-312.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-312.js index 68a0e44797..a78e3f2c57 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-312.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-312.js @@ -12,29 +12,28 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { - function getFunc() { - } +(function() { + function getFunc() {} + Object.defineProperty(arguments, "0", { + get: getFunc, + enumerable: true, + configurable: false + }); + try { Object.defineProperty(arguments, "0", { - get: getFunc, - enumerable: true, - configurable: false + configurable: true }); - try { - Object.defineProperty(arguments, "0", { - configurable: true - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyEqualTo(arguments, "0", getFunc()); - - verifyEnumerable(arguments, "0"); + $ERROR("Expected an exception."); + } catch (e) { + verifyEqualTo(arguments, "0", getFunc()); - verifyNotConfigurable(arguments, "0"); + verifyEnumerable(arguments, "0"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "0"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-313-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-313-1.js index 7385b374df..7e90583b83 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-313-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-313-1.js @@ -11,19 +11,18 @@ description: > includes: [propertyHelper.js] ---*/ -(function (a, b, c) { - Object.defineProperty(arguments, "genericProperty", { - value: 1001, - writable: true, - enumerable: true, - configurable: true - }); - verifyEqualTo(arguments, "genericProperty", 1001); +(function(a, b, c) { + Object.defineProperty(arguments, "genericProperty", { + value: 1001, + writable: true, + enumerable: true, + configurable: true + }); + verifyEqualTo(arguments, "genericProperty", 1001); - verifyWritable(arguments, "genericProperty"); + verifyWritable(arguments, "genericProperty"); - verifyEnumerable(arguments, "genericProperty"); + verifyEnumerable(arguments, "genericProperty"); - verifyConfigurable(arguments, "genericProperty"); + verifyConfigurable(arguments, "genericProperty"); }(1, 2, 3)); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-313.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-313.js index cbe180e170..05d378ee26 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-313.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-313.js @@ -11,19 +11,18 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { - Object.defineProperty(arguments, "genericProperty", { - value: 1001, - writable: true, - enumerable: true, - configurable: true - }); - verifyEqualTo(arguments, "genericProperty", 1001); +(function() { + Object.defineProperty(arguments, "genericProperty", { + value: 1001, + writable: true, + enumerable: true, + configurable: true + }); + verifyEqualTo(arguments, "genericProperty", 1001); - verifyWritable(arguments, "genericProperty"); + verifyWritable(arguments, "genericProperty"); - verifyEnumerable(arguments, "genericProperty"); + verifyEnumerable(arguments, "genericProperty"); - verifyConfigurable(arguments, "genericProperty"); + verifyConfigurable(arguments, "genericProperty"); }(1, 2, 3)); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-314-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-314-1.js index 97b466ce62..8ed0c58c06 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-314-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-314-1.js @@ -11,24 +11,25 @@ description: > includes: [propertyHelper.js] ---*/ -(function (a, b, c) { - function getFunc() { - return "getFunctionString"; - } - function setFunc(value) { - this.testgetFunction = value; - } - Object.defineProperty(arguments, "genericProperty", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: true - }); - verifyEqualTo(arguments, "genericProperty", getFunc()); +(function(a, b, c) { + function getFunc() { + return "getFunctionString"; + } - verifyWritable(arguments, "genericProperty", "testgetFunction"); + function setFunc(value) { + this.testgetFunction = value; + } + Object.defineProperty(arguments, "genericProperty", { + get: getFunc, + set: setFunc, + enumerable: true, + configurable: true + }); + verifyEqualTo(arguments, "genericProperty", getFunc()); - verifyEnumerable(arguments, "genericProperty"); + verifyWritable(arguments, "genericProperty", "testgetFunction"); - verifyConfigurable(arguments, "genericProperty"); + verifyEnumerable(arguments, "genericProperty"); + + verifyConfigurable(arguments, "genericProperty"); }(1, 2, 3)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-314.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-314.js index a7ea9e9575..9167077974 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-314.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-314.js @@ -11,24 +11,25 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { - function getFunc() { - return "getFunctionString"; - } - function setFunc(value) { - this.testgetFunction = value; - } - Object.defineProperty(arguments, "genericProperty", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: true - }); - verifyEqualTo(arguments, "genericProperty", getFunc()); +(function() { + function getFunc() { + return "getFunctionString"; + } - verifyWritable(arguments, "genericProperty", "testgetFunction"); + function setFunc(value) { + this.testgetFunction = value; + } + Object.defineProperty(arguments, "genericProperty", { + get: getFunc, + set: setFunc, + enumerable: true, + configurable: true + }); + verifyEqualTo(arguments, "genericProperty", getFunc()); - verifyEnumerable(arguments, "genericProperty"); + verifyWritable(arguments, "genericProperty", "testgetFunction"); - verifyConfigurable(arguments, "genericProperty"); + verifyEnumerable(arguments, "genericProperty"); + + verifyConfigurable(arguments, "genericProperty"); }(1, 2, 3)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-315-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-315-1.js index d809fe96ba..a223dc3d46 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-315-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-315-1.js @@ -11,38 +11,40 @@ description: > includes: [propertyHelper.js] ---*/ -(function (a, b, c) { - Object.defineProperty(arguments, "genericProperty", { - get: function () { - return 1001; - }, - set: function (value) { - this.testgetFunction1 = value; - }, - enumerable: true, - configurable: true - }); - function getFunc() { - return "getFunctionString"; - } - function setFunc(value) { - this.testgetFunction = value; - } - Object.defineProperty(arguments, "genericProperty", { - get: getFunc, - set: setFunc, - enumerable: false, - configurable: false - }); - if (c !== 3) { - $ERROR('Expected c === 3, actually ' + c); - } - - verifyEqualTo(arguments, "genericProperty", getFunc()); - - verifyWritable(arguments, "genericProperty", "testgetFunction"); - - verifyNotEnumerable(arguments, "genericProperty"); - - verifyNotConfigurable(arguments, "genericProperty"); +(function(a, b, c) { + Object.defineProperty(arguments, "genericProperty", { + get: function() { + return 1001; + }, + set: function(value) { + this.testgetFunction1 = value; + }, + enumerable: true, + configurable: true + }); + + function getFunc() { + return "getFunctionString"; + } + + function setFunc(value) { + this.testgetFunction = value; + } + Object.defineProperty(arguments, "genericProperty", { + get: getFunc, + set: setFunc, + enumerable: false, + configurable: false + }); + if (c !== 3) { + $ERROR('Expected c === 3, actually ' + c); + } + + verifyEqualTo(arguments, "genericProperty", getFunc()); + + verifyWritable(arguments, "genericProperty", "testgetFunction"); + + verifyNotEnumerable(arguments, "genericProperty"); + + verifyNotConfigurable(arguments, "genericProperty"); }(1, 2, 3)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-315.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-315.js index a6986d75b5..023026644b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-315.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-315.js @@ -11,34 +11,36 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { - Object.defineProperty(arguments, "genericProperty", { - get: function () { - return 1001; - }, - set: function (value) { - this.testgetFunction1 = value; - }, - enumerable: true, - configurable: true - }); - function getFunc() { - return "getFunctionString"; - } - function setFunc(value) { - this.testgetFunction = value; - } - Object.defineProperty(arguments, "genericProperty", { - get: getFunc, - set: setFunc, - enumerable: false, - configurable: false - }); - verifyEqualTo(arguments, "genericProperty", getFunc()); +(function() { + Object.defineProperty(arguments, "genericProperty", { + get: function() { + return 1001; + }, + set: function(value) { + this.testgetFunction1 = value; + }, + enumerable: true, + configurable: true + }); - verifyWritable(arguments, "genericProperty", "testgetFunction"); + function getFunc() { + return "getFunctionString"; + } - verifyNotEnumerable(arguments, "genericProperty"); + function setFunc(value) { + this.testgetFunction = value; + } + Object.defineProperty(arguments, "genericProperty", { + get: getFunc, + set: setFunc, + enumerable: false, + configurable: false + }); + verifyEqualTo(arguments, "genericProperty", getFunc()); - verifyNotConfigurable(arguments, "genericProperty"); + verifyWritable(arguments, "genericProperty", "testgetFunction"); + + verifyNotEnumerable(arguments, "genericProperty"); + + verifyNotConfigurable(arguments, "genericProperty"); }(1, 2, 3)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-316-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-316-1.js index e412d2e312..3b84cf6e32 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-316-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-316-1.js @@ -11,24 +11,23 @@ description: > includes: [propertyHelper.js] ---*/ -(function (a, b, c) { - Object.defineProperty(arguments, "genericProperty", { - value: 1001, - writable: true, - enumerable: true, - configurable: true - }); - Object.defineProperty(arguments, "genericProperty", { - value: 1002, - enumerable: false, - configurable: false - }); - verifyEqualTo(arguments, "genericProperty", 1002); +(function(a, b, c) { + Object.defineProperty(arguments, "genericProperty", { + value: 1001, + writable: true, + enumerable: true, + configurable: true + }); + Object.defineProperty(arguments, "genericProperty", { + value: 1002, + enumerable: false, + configurable: false + }); + verifyEqualTo(arguments, "genericProperty", 1002); - verifyWritable(arguments, "genericProperty"); + verifyWritable(arguments, "genericProperty"); - verifyNotEnumerable(arguments, "genericProperty"); + verifyNotEnumerable(arguments, "genericProperty"); - verifyNotConfigurable(arguments, "genericProperty"); + verifyNotConfigurable(arguments, "genericProperty"); }(1, 2, 3)); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-316.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-316.js index 0b80a5b244..5383d137e2 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-316.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-316.js @@ -11,24 +11,23 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { - Object.defineProperty(arguments, "genericProperty", { - value: 1001, - writable: true, - enumerable: true, - configurable: true - }); - Object.defineProperty(arguments, "genericProperty", { - value: 1002, - enumerable: false, - configurable: false - }); - verifyEqualTo(arguments, "genericProperty", 1002); +(function() { + Object.defineProperty(arguments, "genericProperty", { + value: 1001, + writable: true, + enumerable: true, + configurable: true + }); + Object.defineProperty(arguments, "genericProperty", { + value: 1002, + enumerable: false, + configurable: false + }); + verifyEqualTo(arguments, "genericProperty", 1002); - verifyWritable(arguments, "genericProperty"); + verifyWritable(arguments, "genericProperty"); - verifyNotEnumerable(arguments, "genericProperty"); + verifyNotEnumerable(arguments, "genericProperty"); - verifyNotConfigurable(arguments, "genericProperty"); + verifyNotConfigurable(arguments, "genericProperty"); }(1, 2, 3)); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-317-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-317-1.js index 542b7ca837..b8263cf93f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-317-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-317-1.js @@ -12,33 +12,33 @@ description: > includes: [propertyHelper.js] ---*/ -(function (a, b, c) { +(function(a, b, c) { + Object.defineProperty(arguments, "genericProperty", { + value: 1001, + writable: false, + configurable: false + }); + try { Object.defineProperty(arguments, "genericProperty", { - value: 1001, - writable: false, - configurable: false + value: 1002 }); - try { - Object.defineProperty(arguments, "genericProperty", { - value: 1002 - }); - $ERROR("Expected an exception."); - } catch (e) { - if (b !== 2) { - $ERROR('Expected "b === 2;", actually ' + b); - } - - verifyEqualTo(arguments, "genericProperty", 1001); + $ERROR("Expected an exception."); + } catch (e) { + if (b !== 2) { + $ERROR('Expected "b === 2;", actually ' + b); + } - verifyNotWritable(arguments, "genericProperty"); + verifyEqualTo(arguments, "genericProperty", 1001); - verifyNotEnumerable(arguments, "genericProperty"); + verifyNotWritable(arguments, "genericProperty"); - verifyNotConfigurable(arguments, "genericProperty"); + verifyNotEnumerable(arguments, "genericProperty"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "genericProperty"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }(1, 2, 3)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-317.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-317.js index 829f23872d..737aa02bde 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-317.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-317.js @@ -11,29 +11,29 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { +(function() { + Object.defineProperty(arguments, "genericProperty", { + value: 1001, + writable: false, + configurable: false + }); + try { Object.defineProperty(arguments, "genericProperty", { - value: 1001, - writable: false, - configurable: false + value: 1002 }); - try { - Object.defineProperty(arguments, "genericProperty", { - value: 1002 - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyEqualTo(arguments, "genericProperty", 1001); + $ERROR("Expected an exception."); + } catch (e) { + verifyEqualTo(arguments, "genericProperty", 1001); - verifyNotWritable(arguments, "genericProperty"); + verifyNotWritable(arguments, "genericProperty"); - verifyNotEnumerable(arguments, "genericProperty"); + verifyNotEnumerable(arguments, "genericProperty"); - verifyNotConfigurable(arguments, "genericProperty"); - - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "genericProperty"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }(1, 2, 3)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-318-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-318-1.js index 15a8a573a0..563f912119 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-318-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-318-1.js @@ -12,28 +12,28 @@ description: > includes: [propertyHelper.js] ---*/ -(function (a, b, c) { +(function(a, b, c) { + Object.defineProperty(arguments, "genericProperty", { + writable: false, + configurable: false + }); + try { Object.defineProperty(arguments, "genericProperty", { - writable: false, - configurable: false + writable: true }); - try { - Object.defineProperty(arguments, "genericProperty", { - writable: true - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyEqualTo(arguments, "genericProperty", undefined); + $ERROR("Expected an exception."); + } catch (e) { + verifyEqualTo(arguments, "genericProperty", undefined); - verifyNotWritable(arguments, "genericProperty"); + verifyNotWritable(arguments, "genericProperty"); - verifyNotEnumerable(arguments, "genericProperty"); + verifyNotEnumerable(arguments, "genericProperty"); - verifyNotConfigurable(arguments, "genericProperty"); - - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "genericProperty"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }(1, 2, 3)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-318.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-318.js index 68dd7dd69b..8ffe4fac99 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-318.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-318.js @@ -11,30 +11,30 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { +(function() { + Object.defineProperty(arguments, "genericProperty", { + writable: false, + configurable: false + }); + try { Object.defineProperty(arguments, "genericProperty", { - writable: false, - configurable: false + writable: true }); - try { - Object.defineProperty(arguments, "genericProperty", { - writable: true - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyEqualTo(arguments, "genericProperty", undefined); + $ERROR("Expected an exception."); + } catch (e) { + verifyEqualTo(arguments, "genericProperty", undefined); - verifyNotWritable(arguments, "genericProperty"); + verifyNotWritable(arguments, "genericProperty"); - verifyNotEnumerable(arguments, "genericProperty"); + verifyNotEnumerable(arguments, "genericProperty"); - verifyNotConfigurable(arguments, "genericProperty"); + verifyNotConfigurable(arguments, "genericProperty"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } - + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + } + }(1, 2, 3)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-319-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-319-1.js index 070ea10a95..43ba1dee9f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-319-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-319-1.js @@ -12,29 +12,29 @@ description: > includes: [propertyHelper.js] ---*/ -(function (a, b, c) { +(function(a, b, c) { + Object.defineProperty(arguments, "genericProperty", { + enumerable: true, + configurable: false + }); + try { Object.defineProperty(arguments, "genericProperty", { - enumerable: true, - configurable: false + enumerable: false }); - try { - Object.defineProperty(arguments, "genericProperty", { - enumerable: false - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyEqualTo(arguments, "genericProperty", undefined); + $ERROR("Expected an exception."); + } catch (e) { + verifyEqualTo(arguments, "genericProperty", undefined); - verifyNotWritable(arguments, "genericProperty"); + verifyNotWritable(arguments, "genericProperty"); - verifyEnumerable(arguments, "genericProperty"); + verifyEnumerable(arguments, "genericProperty"); - verifyNotConfigurable(arguments, "genericProperty"); + verifyNotConfigurable(arguments, "genericProperty"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } - + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }(1, 2, 3)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-319.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-319.js index 50697d9d29..4df5a0c9bc 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-319.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-319.js @@ -11,28 +11,28 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { +(function() { + Object.defineProperty(arguments, "genericProperty", { + enumerable: true, + configurable: false + }); + try { Object.defineProperty(arguments, "genericProperty", { - enumerable: true, - configurable: false + enumerable: false }); - try { - Object.defineProperty(arguments, "genericProperty", { - enumerable: false - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyEqualTo(arguments, "genericProperty", undefined); + $ERROR("Expected an exception."); + } catch (e) { + verifyEqualTo(arguments, "genericProperty", undefined); - verifyNotWritable(arguments, "genericProperty"); + verifyNotWritable(arguments, "genericProperty"); - verifyEnumerable(arguments, "genericProperty"); + verifyEnumerable(arguments, "genericProperty"); - verifyNotConfigurable(arguments, "genericProperty"); - - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "genericProperty"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }(1, 2, 3)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-32.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-32.js index 858591bc5d..127cf711d3 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 aa9cb3e7f9..abf523f65e 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-320-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-320-1.js @@ -12,27 +12,27 @@ description: > includes: [propertyHelper.js] ---*/ -(function (a, b, c) { +(function(a, b, c) { + Object.defineProperty(arguments, "genericProperty", { + configurable: false + }); + try { Object.defineProperty(arguments, "genericProperty", { - configurable: false + configurable: true }); - try { - Object.defineProperty(arguments, "genericProperty", { - configurable: true - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyEqualTo(arguments, "genericProperty", undefined); + $ERROR("Expected an exception."); + } catch (e) { + verifyEqualTo(arguments, "genericProperty", undefined); - verifyNotWritable(arguments, "genericProperty"); + verifyNotWritable(arguments, "genericProperty"); - verifyNotEnumerable(arguments, "genericProperty"); + verifyNotEnumerable(arguments, "genericProperty"); - verifyNotConfigurable(arguments, "genericProperty"); - - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "genericProperty"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }(1, 2, 3)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-320.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-320.js index a1d0b73180..67d041b9fe 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-320.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-320.js @@ -11,29 +11,29 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { +(function() { + Object.defineProperty(arguments, "genericProperty", { + configurable: false + }); + try { Object.defineProperty(arguments, "genericProperty", { - configurable: false + configurable: true }); - try { - Object.defineProperty(arguments, "genericProperty", { - configurable: true - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyEqualTo(arguments, "genericProperty", undefined); + $ERROR("Expected an exception."); + } catch (e) { + verifyEqualTo(arguments, "genericProperty", undefined); - verifyNotWritable(arguments, "genericProperty"); + verifyNotWritable(arguments, "genericProperty"); - verifyNotEnumerable(arguments, "genericProperty"); + verifyNotEnumerable(arguments, "genericProperty"); - verifyNotConfigurable(arguments, "genericProperty"); + verifyNotConfigurable(arguments, "genericProperty"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } - + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + } + }(1, 2, 3)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-321-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-321-1.js index 5b8195c0f0..c1cd750ee2 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-321-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-321-1.js @@ -12,41 +12,42 @@ description: > includes: [propertyHelper.js] ---*/ -(function (a, b, c) { - function getFunc() { - return "genericPropertyString"; - } - function setFunc(value) { - this.helpVerifyGet = value; - } +(function(a, b, c) { + function getFunc() { + return "genericPropertyString"; + } + + function setFunc(value) { + this.helpVerifyGet = value; + } + Object.defineProperty(arguments, "genericProperty", { + get: getFunc, + set: setFunc, + configurable: false + }); + try { Object.defineProperty(arguments, "genericProperty", { - get: getFunc, - set: setFunc, - configurable: false + get: function() { + return "overideGenericPropertyString"; + } }); - try { - Object.defineProperty(arguments, "genericProperty", { - get: function () { - return "overideGenericPropertyString"; - } - }); - $ERROR("Expected an exception."); - } catch (e) { - if (a !== 1) { - $ERROR('Expected a === 1, actually ' + a); - } - - verifyEqualTo(arguments, "genericProperty", getFunc()); + $ERROR("Expected an exception."); + } catch (e) { + if (a !== 1) { + $ERROR('Expected a === 1, actually ' + a); + } - verifyWritable(arguments, "genericProperty", "helpVerifyGet"); + verifyEqualTo(arguments, "genericProperty", getFunc()); - verifyNotEnumerable(arguments, "genericProperty"); + verifyWritable(arguments, "genericProperty", "helpVerifyGet"); - verifyNotConfigurable(arguments, "genericProperty"); + verifyNotEnumerable(arguments, "genericProperty"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "genericProperty"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }(1, 2, 3)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-321.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-321.js index 66a537da79..18efcbf7e1 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-321.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-321.js @@ -11,37 +11,38 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { - function getFunc() { - return "genericPropertyString"; - } - function setFunc(value) { - this.helpVerifyGet = value; - } +(function() { + function getFunc() { + return "genericPropertyString"; + } + + function setFunc(value) { + this.helpVerifyGet = value; + } + Object.defineProperty(arguments, "genericProperty", { + get: getFunc, + set: setFunc, + configurable: false + }); + try { Object.defineProperty(arguments, "genericProperty", { - get: getFunc, - set: setFunc, - configurable: false + get: function() { + return "overideGenericPropertyString"; + } }); - try { - Object.defineProperty(arguments, "genericProperty", { - get: function () { - return "overideGenericPropertyString"; - } - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyEqualTo(arguments, "genericProperty", getFunc()); + $ERROR("Expected an exception."); + } catch (e) { + verifyEqualTo(arguments, "genericProperty", getFunc()); - verifyWritable(arguments, "genericProperty", "helpVerifyGet"); + verifyWritable(arguments, "genericProperty", "helpVerifyGet"); - verifyNotEnumerable(arguments, "genericProperty"); + verifyNotEnumerable(arguments, "genericProperty"); - verifyNotConfigurable(arguments, "genericProperty"); - - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "genericProperty"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }(1, 2, 3)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-322-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-322-1.js index 16a87c9548..b4da0dc39f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-322-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-322-1.js @@ -12,31 +12,31 @@ description: > includes: [propertyHelper.js] ---*/ -(function (a, b, c) { - function setFunc(value) { - this.genericPropertyString = value; - } +(function(a, b, c) { + function setFunc(value) { + this.genericPropertyString = value; + } + Object.defineProperty(arguments, "genericProperty", { + set: setFunc, + configurable: false + }); + try { Object.defineProperty(arguments, "genericProperty", { - set: setFunc, - configurable: false + set: function(value) { + this.genericPropertyString1 = value; + } }); - try { - Object.defineProperty(arguments, "genericProperty", { - set: function (value) { - this.genericPropertyString1 = value; - } - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyWritable(arguments, "genericProperty", "genericPropertyString"); - - verifyNotEnumerable(arguments, "genericProperty"); + $ERROR("Expected an exception."); + } catch (e) { + verifyWritable(arguments, "genericProperty", "genericPropertyString"); - verifyNotConfigurable(arguments, "genericProperty"); + verifyNotEnumerable(arguments, "genericProperty"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "genericProperty"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }(1, 2, 3)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-322.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-322.js index f8597ced1d..b14567fe79 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-322.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-322.js @@ -11,31 +11,31 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { - function setFunc(value) { - this.genericPropertyString = value; - } +(function() { + function setFunc(value) { + this.genericPropertyString = value; + } + Object.defineProperty(arguments, "genericProperty", { + set: setFunc, + configurable: false + }); + try { Object.defineProperty(arguments, "genericProperty", { - set: setFunc, - configurable: false + set: function(value) { + this.genericPropertyString1 = value; + } }); - try { - Object.defineProperty(arguments, "genericProperty", { - set: function (value) { - this.genericPropertyString1 = value; - } - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyWritable(arguments, "genericProperty", "genericPropertyString"); - - verifyNotEnumerable(arguments, "genericProperty"); + $ERROR("Expected an exception."); + } catch (e) { + verifyWritable(arguments, "genericProperty", "genericPropertyString"); - verifyNotConfigurable(arguments, "genericProperty"); + verifyNotEnumerable(arguments, "genericProperty"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "genericProperty"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }(1, 2, 3)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-323-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-323-1.js index 14ce76e95b..9f6c3f0e91 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-323-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-323-1.js @@ -12,34 +12,34 @@ description: > includes: [propertyHelper.js] ---*/ -(function (a, b, c) { - function setFunc(value) { - this.genericPropertyString = value; - } +(function(a, b, c) { + function setFunc(value) { + this.genericPropertyString = value; + } + Object.defineProperty(arguments, "genericProperty", { + set: setFunc, + enumerable: true, + configurable: false + }); + try { Object.defineProperty(arguments, "genericProperty", { - set: setFunc, - enumerable: true, - configurable: false + enumerable: false }); - try { - Object.defineProperty(arguments, "genericProperty", { - enumerable: false - }); - $ERROR("Expected an exception."); - } catch (e) { - if (c !== 3) { - $ERROR('Expected c === 3, actually ' + c); - } - verifyWritable(arguments, "genericProperty", "genericPropertyString"); - - verifyEnumerable(arguments, "genericProperty"); + $ERROR("Expected an exception."); + } catch (e) { + if (c !== 3) { + $ERROR('Expected c === 3, actually ' + c); + } + verifyWritable(arguments, "genericProperty", "genericPropertyString"); - verifyNotConfigurable(arguments, "genericProperty"); + verifyEnumerable(arguments, "genericProperty"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "genericProperty"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + } + }(1, 2, 3)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-323.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-323.js index 905770f053..b7104257de 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-323.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-323.js @@ -11,30 +11,30 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { - function setFunc(value) { - this.genericPropertyString = value; - } +(function() { + function setFunc(value) { + this.genericPropertyString = value; + } + Object.defineProperty(arguments, "genericProperty", { + set: setFunc, + enumerable: true, + configurable: false + }); + try { Object.defineProperty(arguments, "genericProperty", { - set: setFunc, - enumerable: true, - configurable: false + enumerable: false }); - try { - Object.defineProperty(arguments, "genericProperty", { - enumerable: false - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyWritable(arguments, "genericProperty", "genericPropertyString"); - - verifyEnumerable(arguments, "genericProperty"); + $ERROR("Expected an exception."); + } catch (e) { + verifyWritable(arguments, "genericProperty", "genericPropertyString"); - verifyNotConfigurable(arguments, "genericProperty"); + verifyEnumerable(arguments, "genericProperty"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "genericProperty"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }(1, 2, 3)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-324-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-324-1.js index 846f093a5f..ef6ec1c0da 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-324-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-324-1.js @@ -12,29 +12,29 @@ description: > includes: [propertyHelper.js] ---*/ -(function (a, b, c) { - function setFunc(value) { - this.genericPropertyString = value; - } +(function(a, b, c) { + function setFunc(value) { + this.genericPropertyString = value; + } + Object.defineProperty(arguments, "genericProperty", { + set: setFunc, + configurable: false + }); + try { Object.defineProperty(arguments, "genericProperty", { - set: setFunc, - configurable: false + configurable: true }); - try { - Object.defineProperty(arguments, "genericProperty", { - configurable: true - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyWritable(arguments, "genericProperty", "genericPropertyString"); - - verifyNotEnumerable(arguments, "genericProperty"); + $ERROR("Expected an exception."); + } catch (e) { + verifyWritable(arguments, "genericProperty", "genericPropertyString"); - verifyNotConfigurable(arguments, "genericProperty"); + verifyNotEnumerable(arguments, "genericProperty"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "genericProperty"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } + + } }(1, 2, 3)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-324.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-324.js index 7d5eacf712..0986e4a5bb 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-324.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-324.js @@ -11,30 +11,30 @@ description: > includes: [propertyHelper.js] ---*/ -(function () { - function setFunc(value) { - this.genericPropertyString = value; - } +(function() { + function setFunc(value) { + this.genericPropertyString = value; + } + Object.defineProperty(arguments, "genericProperty", { + set: setFunc, + configurable: false + }); + try { Object.defineProperty(arguments, "genericProperty", { - set: setFunc, - configurable: false + configurable: true }); - try { - Object.defineProperty(arguments, "genericProperty", { - configurable: true - }); - $ERROR("Expected an exception."); - } catch (e) { - verifyWritable(arguments, "genericProperty", "genericPropertyString"); - - verifyNotEnumerable(arguments, "genericProperty"); + $ERROR("Expected an exception."); + } catch (e) { + verifyWritable(arguments, "genericProperty", "genericPropertyString"); - verifyNotConfigurable(arguments, "genericProperty"); + verifyNotEnumerable(arguments, "genericProperty"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(arguments, "genericProperty"); + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); } - false; + + } + false; }(1, 2, 3)); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-325-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-325-1.js index e91a4651ce..2c3f0c6534 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-325-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-325-1.js @@ -11,15 +11,17 @@ description: > [[DefineOwnProperty]] step 5.a.i) ---*/ - var argObj = (function (a, b, c) { return arguments; })(1, 2, 3); - var accessed = false; +var argObj = (function(a, b, c) { + return arguments; +})(1, 2, 3); +var accessed = false; - Object.defineProperty(argObj, 0, { - get: function () { - accessed = true; - return 12; - } - }); +Object.defineProperty(argObj, 0, { + get: function() { + accessed = true; + return 12; + } +}); assert.sameValue(argObj[0], 12, 'argObj[0]'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-325.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-325.js index b0204f081f..f710f39c04 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-325.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-325.js @@ -10,15 +10,17 @@ description: > [[DefineOwnProperty]] step 5.a.i) ---*/ - var argObj = (function () { return arguments; })(1, 2, 3); - var accessed = false; +var argObj = (function() { + return arguments; +})(1, 2, 3); +var accessed = false; - Object.defineProperty(argObj, 0, { - get: function () { - accessed = true; - return 12; - } - }); +Object.defineProperty(argObj, 0, { + get: function() { + accessed = true; + return 12; + } +}); assert.sameValue(argObj[0], 12, 'argObj[0]'); assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-326.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-326.js index 4ec0121f36..64001fbf34 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 97d2ddcc78..b23770c5b2 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 70c4b26693..88c5d36414 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 b184812e7e..adbb6100a9 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 0f95d6cf57..e5f3df8a81 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 98ef3f69fa..aeebc3870f 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 86300a83e5..7f7a95b71b 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 80b01079f0..9bea7a8978 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 b67a2a2e22..40a30010e5 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-1.js @@ -15,13 +15,13 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "property", { - value: 1001, - writable: true, - configurable: false + value: 1001, + writable: true, + configurable: false }); Object.defineProperty(obj, "property", { - value: 1002 + value: 1002 }); verifyEqualTo(obj, "property", 1002); @@ -31,4 +31,3 @@ verifyWritable(obj, "property"); verifyNotEnumerable(obj, "property"); verifyNotConfigurable(obj, "property"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-10.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-10.js index 226f17c35f..672ddb6d7f 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 e8a45d3f68..a52e554579 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 d912927886..b6353b226b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-2.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-2.js @@ -15,13 +15,13 @@ includes: [propertyHelper.js] var obj = []; Object.defineProperty(obj, "0", { - value: 1001, - writable: true, - configurable: false + value: 1001, + writable: true, + configurable: false }); Object.defineProperty(obj, "0", { - value: 1002 + value: 1002 }); verifyEqualTo(obj, "0", 1002); @@ -31,4 +31,3 @@ verifyWritable(obj, "0"); verifyNotEnumerable(obj, "0"); verifyNotConfigurable(obj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-3.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-3.js index a74dc8fdaa..5b416a7602 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-3.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-3.js @@ -12,18 +12,18 @@ includes: [propertyHelper.js] ---*/ -var obj = (function () { - return arguments; +var obj = (function() { + return arguments; }()); Object.defineProperty(obj, "property", { - value: 1001, - writable: true, - configurable: false + value: 1001, + writable: true, + configurable: false }); Object.defineProperty(obj, "property", { - value: 1002 + value: 1002 }); verifyEqualTo(obj, "property", 1002); @@ -33,4 +33,3 @@ verifyWritable(obj, "property"); verifyNotEnumerable(obj, "property"); verifyNotConfigurable(obj, "property"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-4.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-4.js index 1779e740bb..e5f4c63c37 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 cb4f8fa5ef..cff0a8b7e3 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 955b03487e..0d2f0a3a2e 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-6.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-6.js @@ -15,13 +15,13 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "0", { - value: 1001, - writable: true, - configurable: false + value: 1001, + writable: true, + configurable: false }); Object.defineProperty(obj, "0", { - value: 1002 + value: 1002 }); verifyEqualTo(obj, "0", 1002); @@ -31,4 +31,3 @@ verifyWritable(obj, "0"); verifyNotEnumerable(obj, "0"); verifyNotConfigurable(obj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-7.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-7.js index 128da1b7dc..b32f5fc533 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-7.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-7.js @@ -15,13 +15,13 @@ includes: [propertyHelper.js] var obj = []; Object.defineProperty(obj, "prop", { - value: 1001, - writable: true, - configurable: false + value: 1001, + writable: true, + configurable: false }); Object.defineProperty(obj, "prop", { - value: 1002 + value: 1002 }); verifyEqualTo(obj, "prop", 1002); @@ -31,4 +31,3 @@ verifyWritable(obj, "prop"); verifyNotEnumerable(obj, "prop"); verifyNotConfigurable(obj, "prop"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-8.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-8.js index da792059fb..4cebcc068e 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-8.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-8.js @@ -12,18 +12,18 @@ includes: [propertyHelper.js] ---*/ -var obj = (function () { - return arguments; +var obj = (function() { + return arguments; }()); Object.defineProperty(obj, "0", { - value: 1001, - writable: true, - configurable: false + value: 1001, + writable: true, + configurable: false }); Object.defineProperty(obj, "0", { - value: 1002 + value: 1002 }); verifyEqualTo(obj, "0", 1002); @@ -33,4 +33,3 @@ verifyWritable(obj, "0"); verifyNotEnumerable(obj, "0"); verifyNotConfigurable(obj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-333-9.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-333-9.js index de964513d2..7d87b54c01 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 fc22ccde71..cfe91358e1 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 f4322915ec..b6e4a6cf45 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 d7a4f1ec51..eebfebf57a 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 61256748e5..e672280412 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 a09c71134b..c62c50d2f7 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 45425687a7..356445fd64 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 f4523b9af9..5cbb3950ec 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 d2efb019b8..2694ee1944 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 dedf8ce8f5..4188ac5df9 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 35d2aa6149..ce959873bc 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 1cce212b23..8a1123417f 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 323bd5e01b..b275043fb1 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 d54903654e..f87c237ebb 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 1a2324b5f1..c2515c4539 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 3ccac98719..6544fcaf9f 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 7d9169e978..c3bfa8cb8a 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 6e61cad2d5..c78933d70d 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 8909632d9b..367859f22c 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 ecd43d652c..edbeeae3bd 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 dcefdd0117..5356d0e82c 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 90804ded55..fb067ad3ae 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 5572ca864c..bbcfa17b51 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 b6f3fb3b35..1980749947 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 ad0446494d..bdc583e44e 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 4007343fa0..a4a48f90bc 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 e06bcef7a8..c3a7ec650d 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 7f90efce20..f6ce4a2563 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 ec5df9f4e6..250dde1b08 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-1.js @@ -15,13 +15,13 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "property", { - value: 1001, - writable: false, - configurable: true + value: 1001, + writable: false, + configurable: true }); Object.defineProperty(obj, "property", { - value: 1002 + value: 1002 }); verifyEqualTo(obj, "property", 1002); @@ -31,4 +31,3 @@ verifyNotWritable(obj, "property"); verifyNotEnumerable(obj, "property"); verifyConfigurable(obj, "property"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-10.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-10.js index 6d6912d72e..61ff2684d7 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-10.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-10.js @@ -15,13 +15,13 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "0", { - value: 1001, - writable: false, - configurable: true + value: 1001, + writable: false, + configurable: true }); Object.defineProperty(obj, "0", { - value: 1002 + value: 1002 }); verifyEqualTo(obj, "0", 1002); @@ -31,4 +31,3 @@ verifyNotWritable(obj, "0"); verifyNotEnumerable(obj, "0"); verifyConfigurable(obj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-11.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-11.js index 1e2c2184e0..0ee0d5a4ea 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-11.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-11.js @@ -15,13 +15,13 @@ includes: [propertyHelper.js] var obj = []; Object.defineProperty(obj, "prop", { - value: 1001, - writable: false, - configurable: true + value: 1001, + writable: false, + configurable: true }); Object.defineProperty(obj, "prop", { - value: 1002 + value: 1002 }); verifyEqualTo(obj, "prop", 1002); @@ -31,4 +31,3 @@ verifyNotWritable(obj, "prop"); verifyNotEnumerable(obj, "prop"); verifyConfigurable(obj, "prop"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-12.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-12.js index ac85dafe09..780fee5e5e 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-12.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-12.js @@ -12,18 +12,18 @@ includes: [propertyHelper.js] ---*/ -var obj = (function () { - return arguments; +var obj = (function() { + return arguments; }()); Object.defineProperty(obj, "0", { - value: 1001, - writable: false, - configurable: true + value: 1001, + writable: false, + configurable: true }); Object.defineProperty(obj, "0", { - value: 1002 + value: 1002 }); verifyEqualTo(obj, "0", 1002); @@ -33,4 +33,3 @@ verifyNotWritable(obj, "0"); verifyNotEnumerable(obj, "0"); verifyConfigurable(obj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-15.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-15.js index 597b7454a9..ad1e8d85eb 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-15.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-15.js @@ -13,12 +13,11 @@ includes: [propertyHelper.js] var obj = []; Object.defineProperty(obj, "prop", { - value: 2010, - writable: false, - enumerable: true, - configurable: true + value: 2010, + writable: false, + enumerable: true, + configurable: true }); assert.sameValue(obj.prop, 2010); verifyNotWritable(obj, "prop"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-16.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-16.js index 351aab70e0..7432ccdd39 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 5ee6d41a83..46bf18f417 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-2.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-2.js @@ -15,13 +15,13 @@ includes: [propertyHelper.js] var obj = []; Object.defineProperty(obj, "0", { - value: 1001, - writable: false, - configurable: true + value: 1001, + writable: false, + configurable: true }); Object.defineProperty(obj, "0", { - value: 1002 + value: 1002 }); verifyEqualTo(obj, "0", 1002); @@ -31,4 +31,3 @@ verifyNotWritable(obj, "0"); verifyNotEnumerable(obj, "0"); verifyConfigurable(obj, "0"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-3.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-3.js index 6a32d0ca0e..f1f5cb86c6 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-3.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-3.js @@ -11,18 +11,18 @@ includes: [propertyHelper.js] ---*/ -var obj = (function () { - return arguments; +var obj = (function() { + return arguments; }()); Object.defineProperty(obj, "property", { - value: 1001, - writable: false, - configurable: true + value: 1001, + writable: false, + configurable: true }); Object.defineProperty(obj, "property", { - value: 1002 + value: 1002 }); verifyEqualTo(obj, "property", 1002); @@ -32,4 +32,3 @@ verifyNotWritable(obj, "property"); verifyNotEnumerable(obj, "property"); verifyConfigurable(obj, "property"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-6.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-6.js index 641f44ad27..0b48c16cce 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 5755ad6d15..81fb76e893 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 ffe8e1a3ba..712fde363c 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 7b08f6ee69..e764e8b28c 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 c31bf7e1b6..abcbdcef60 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 7af95b48c2..88a79a479f 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 e475c264e1..8674148028 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 cae4f4c7fd..6536821e17 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 207e87585c..ab6dedcd9f 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 68d77e7cc4..1d4d3db750 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 c7cf7e7f28..ca58ca4fb3 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 29ab089dce..b47a620775 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 87d14d4fb1..ea0f6506d0 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 3e68d2ec7e..bee8167d39 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 72b34e7d02..069e007cf6 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 1e5d40c2e2..d13e35646b 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 0a34bd053d..17f928bda2 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 2bca77ac77..75f086e410 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 e64f411e99..81006c4b8e 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 1b83099163..95b7014a51 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 2626b69fa3..9b9e0cb181 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 a9caeef642..96db2fbedd 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 1950c4a80a..d0a0fb9bb4 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 c27cbbc780..96bbf30e28 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 96e8bc9e2e..84042d5028 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 ce74180fde..9cff158207 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 23d887263e..706fe01815 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 7e32a7a11b..f430e1e2bc 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 90e0d9d9f0..8e7e19a677 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-374.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-374.js @@ -9,22 +9,23 @@ description: > accessor property ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "prop", { - value: 2010, - writable: false, - enumerable: false, - configurable: true - }); - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - function getFunc() { - return 20; - } - Object.defineProperty(obj, "prop", { - get: getFunc - }); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +Object.defineProperty(obj, "prop", { + value: 2010, + writable: false, + enumerable: false, + configurable: true +}); +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); + +function getFunc() { + return 20; +} +Object.defineProperty(obj, "prop", { + get: getFunc +}); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(desc1.hasOwnProperty("value"), 'desc1.hasOwnProperty("value") !== true'); assert.sameValue(desc2.get, getFunc, 'desc2.get'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-375.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-375.js index 1af3679320..93537a5aeb 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 310fee16eb..96651adc6c 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 068452b19a..7e748275db 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 ca9b1ab784..52430b44d4 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 8d52b1bb0e..d7b5f4561d 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 0489a3548d..8a2d9ccfd2 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-38.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-38.js @@ -11,19 +11,18 @@ includes: [propertyHelper.js] ---*/ try { - Object.defineProperty(Math, "foo", { - value: 12, - configurable: true - }); - - verifyEqualTo(Math, "foo", 12); + Object.defineProperty(Math, "foo", { + value: 12, + configurable: true + }); - verifyNotWritable(Math, "foo"); + verifyEqualTo(Math, "foo", 12); - verifyNotEnumerable(Math, "foo"); + verifyNotWritable(Math, "foo"); - verifyConfigurable(Math, "foo"); + verifyNotEnumerable(Math, "foo"); + + verifyConfigurable(Math, "foo"); } finally { - delete Math.foo; + delete Math.foo; } - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-380.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-380.js index 8797d6d554..5cb1518695 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 93a371d415..51ed16c609 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 6a13ff5037..705e91afdd 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 16e5e19d05..38d55b2789 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 cf51444dd5..e7a3c51c81 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 397487f5c2..d4dc8814d8 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-385.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-385.js @@ -8,14 +8,16 @@ description: > object ---*/ - var obj = {}; - var tempObj = { testproperty: 100 }; +var obj = {}; +var tempObj = { + testproperty: 100 +}; - Object.defineProperty(obj, "prop", { - value: tempObj - }); +Object.defineProperty(obj, "prop", { + value: tempObj +}); - var desc = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc = Object.getOwnPropertyDescriptor(obj, "prop"); assert.sameValue(obj.prop, tempObj, 'obj.prop'); assert.sameValue(desc.value, tempObj, 'desc.value'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-386.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-386.js index 44f100f091..112cd69ddd 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 0e8c8b77d2..8da74faf37 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 cef375818b..9287bc6752 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 4777b45669..464ff9ea7d 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 8e26fa4422..62173de61a 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 c60d8330b9..6025d9fae9 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 4d8b67005d..d43ce76555 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 dd614a6235..79cf9e5164 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 2d00d4687e..8d32bbf877 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 f5e858877b..51fdeaec1d 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 de734ce6df..a37d12bb3a 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 2fb0eff846..165689aee2 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 e368a8e9b7..92f7a3531a 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 c3aadc1089..62911ed651 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 0967e3d188..00ce046778 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 83d8922f68..8cbf79c110 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-4.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-4.js @@ -12,14 +12,14 @@ description: > desc(8.12.9 step 4.a.i) ---*/ - var o = {}; - - var desc = {}; - Object.defineProperty(o, "foo", desc); +var o = {}; - var propDesc = Object.getOwnPropertyDescriptor(o, "foo"); +var desc = {}; +Object.defineProperty(o, "foo", desc); -assert.sameValue(propDesc.value, undefined, 'propDesc.value'); // undefined by default -assert.sameValue(propDesc.writable, false, 'propDesc.writable'); // false by default -assert.sameValue(propDesc.enumerable, false, 'propDesc.enumerable'); // false by default -assert.sameValue(propDesc.configurable, false, 'propDesc.configurable'); // false by default +var propDesc = Object.getOwnPropertyDescriptor(o, "foo"); + +assert.sameValue(propDesc.value, undefined, 'propDesc.value'); // undefined by default +assert.sameValue(propDesc.writable, false, 'propDesc.writable'); // false by default +assert.sameValue(propDesc.enumerable, false, 'propDesc.enumerable'); // false by default +assert.sameValue(propDesc.configurable, false, 'propDesc.configurable'); // false by default diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-40.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-40.js index bfff5ac93d..1ce2534317 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 1ef35f2bc9..13ebd7a1f4 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 989f5d5e99..9039016e7e 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 5cd5798922..bae93ad81a 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 3f7a504386..a6baa72529 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-405.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-405.js @@ -10,14 +10,14 @@ description: > includes: [propertyHelper.js] ---*/ - Object.defineProperty(Number.prototype, "prop", { - value: 1001, - writable: false, - enumerable: false, - configurable: true - }); - - var numObj = new Number(); +Object.defineProperty(Number.prototype, "prop", { + value: 1001, + writable: false, + enumerable: false, + configurable: true +}); - assert(!numObj.hasOwnProperty("prop")); - verifyNotWritable(numObj, "prop", "noCheckOwnProp"); +var numObj = new Number(); + +assert(!numObj.hasOwnProperty("prop")); +verifyNotWritable(numObj, "prop", "noCheckOwnProp"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-406.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-406.js index 25ede11d5c..b68b6c4cc5 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 eeabd495e8..4b5f67bb6c 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 c1223a55c3..d7d291df0d 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 8dd96da0bc..3966b302f0 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 83b86dbd76..b9c4cb1be7 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-41.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-41.js @@ -12,8 +12,8 @@ includes: [propertyHelper.js] Object.defineProperty(JSON, "foo", { -value: 12, -configurable: true + value: 12, + configurable: true }); verifyEqualTo(JSON, "foo", 12); @@ -25,4 +25,3 @@ verifyNotEnumerable(JSON, "foo"); verifyConfigurable(JSON, "foo"); delete JSON.foo; - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-410.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-410.js index 7c7a842561..d8efd15d94 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 b8d82ce406..c19bd7905a 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 03459242fc..e9fc638428 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 9c832eed18..c168e5eb81 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 d0d7f1ea4e..801915c957 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 fa7a07c407..74596c8c6b 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 5106627668..2d8308868c 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 6df596d40f..d43581a35b 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 d2c0ab532f..cf49b910a8 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 e175d090fa..b1ff3a222e 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 2ca95325b3..94147d9ee8 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 f403f9b34d..61e0d7a4a1 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 120ffe0fd4..8bfc1a4594 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 af1d667149..d616795c43 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 8f3e9ae5b0..22145fef60 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 1cfca488eb..ef50f24f1c 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 f088516cc0..86e8a7d0d0 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 645d4286b1..f8d02fa449 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 0aad297c2c..e891baa301 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 1e52d201bd..df07ef3195 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 3501ac6691..a81c5f63d3 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 4146385ecb..bf28f6e87e 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-43.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-43.js @@ -9,16 +9,18 @@ description: > property (8.12.9 step 1) ---*/ - var argObj = (function () { return arguments; })(); +var argObj = (function() { + return arguments; +})(); - Object.defineProperty(argObj, "foo", { - value: 12, - configurable: false - }); +Object.defineProperty(argObj, "foo", { + value: 12, + configurable: false +}); assert.throws(TypeError, function() { - Object.defineProperty(argObj, "foo", { - value: 11, - configurable: true - }); + Object.defineProperty(argObj, "foo", { + value: 11, + configurable: true + }); }); assert.sameValue(argObj.foo, 12, 'argObj.foo'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-430.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-430.js index 315581b82b..bd0f2560df 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 ad0e57ba92..f80f411839 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 dc57d00b14..6e03e42e4c 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 e374de5ab6..8cf33d7cd7 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 b767db8010..30d4a32574 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 c953791686..3ed0e6ee88 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 56a8768029..2bdca2dc7c 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 1ad84c659b..b12de9e8b1 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 54ea036a57..68fc319294 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 ce40ec27b3..885ea7fad1 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 cbdec5470c..3f07f5fad4 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 2a44e2278a..0399934772 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 72f9bf32ff..2faca9506e 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 b20c7d664c..c1ebaabbef 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 06fe5d84f2..8868623ca3 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 2e29668de7..80cf088404 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 83a537a9ca..5d4b94e6a7 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 9e464a5eba..29400f464f 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 c86437c689..890d97d882 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 8454c88fe0..3a3fb7f0d8 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 8f846042ff..20fabf0abd 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 8b3da549b1..879174ee57 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 ef9fb05c29..01ccab6985 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 c673a53940..e180f9c4c3 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 c0780c55bb..1dc9a7a403 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 52e445972a..80fc87b8b8 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 baad824667..8626d01430 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 d909bfd1dc..e6c6836548 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-456.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-456.js @@ -14,28 +14,28 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "prop", { - get: undefined, - set: undefined, - enumerable: false, - configurable: false + get: undefined, + set: undefined, + enumerable: false, + configurable: false }); var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); try { - Object.defineProperty(obj, "prop", { - configurable: true - }); + Object.defineProperty(obj, "prop", { + configurable: true + }); - $ERROR("Expected TypeError"); + $ERROR("Expected TypeError"); } catch (e) { - assert(e instanceof TypeError); - - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); + assert(e instanceof TypeError); - assert.sameValue(desc1.configurable, false); - assert.sameValue(desc2.configurable, false); + var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); - verifyNotConfigurable(obj, "prop"); + assert.sameValue(desc1.configurable, false); + assert.sameValue(desc2.configurable, false); - assert(obj.hasOwnProperty("prop")); + verifyNotConfigurable(obj, "prop"); + + assert(obj.hasOwnProperty("prop")); } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-457.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-457.js index 7f90aa3797..9cdb490ad5 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 97868514ad..c069ec8e46 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 7f5fbeb97c..e0c30c91f2 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 6bb80f6089..4fbc77bcfb 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 0ff4a8016e..fdae5fabf0 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 0def8453a7..95a8fa78c7 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 3e1a0de3b5..63380aa1b9 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 2df1dddc75..c238984241 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 bd4d6d7095..28eecc8f05 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 a3f5ed2ea1..52e31f678e 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 9bbd3affe6..b89d8d49de 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 9bd1e448e4..66de51eda5 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 0ad4ce4367..f79b26f7e1 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 391bbf7aed..b492d13ca8 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 2dc07f0c54..079b505170 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-47.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-47.js @@ -13,9 +13,9 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "property", { - writable: true, - enumerable: true, - configurable: false + writable: true, + enumerable: true, + configurable: false }); verifyEqualTo(obj, "property", undefined); @@ -25,4 +25,3 @@ verifyWritable(obj, "property"); verifyEnumerable(obj, "property"); verifyNotConfigurable(obj, "property"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-470.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-470.js index 9686379c52..d725daa996 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 1d00996287..1edb26951d 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 1502c79c16..c22ce621ad 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 a9c65d14d7..ab525133f8 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 c3b2af60e7..27355b6c5c 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 1ea58556c1..77b5946d7e 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 c9203cdd73..5ca6b3223f 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 0285a1f9b7..965e6c0f99 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 519d80e7bf..8d604495fd 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 8faf0c6c13..2625d302c0 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 6b57a7c2c8..14b658aad7 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-48.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-48.js @@ -13,9 +13,9 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "property", { - value: 1001, - enumerable: true, - configurable: false + value: 1001, + enumerable: true, + configurable: false }); verifyEqualTo(obj, "property", 1001); @@ -25,4 +25,3 @@ verifyNotWritable(obj, "property"); verifyEnumerable(obj, "property"); verifyNotConfigurable(obj, "property"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-480.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-480.js index d3c67c8024..0fdba161c4 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 a876dad7eb..f9219bfc3d 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 a0ed01131e..502550fcfe 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 5ff0c4423e..f957a1dd03 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 92329f3d79..000f16cd3e 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 2a1a18a85e..de21112f77 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 2f5f0e3b06..40f2608fa7 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 8aaf8e2ba2..d3f9ccc5de 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 1f310fae32..feb1564289 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 18e561052b..8b09d6cc8b 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 8bbe80ad43..98db24fdda 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-49.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-49.js @@ -13,9 +13,9 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "property", { - value: 1001, - writable: true, - configurable: true + value: 1001, + writable: true, + configurable: true }); verifyEqualTo(obj, "property", 1001); @@ -24,4 +24,3 @@ verifyWritable(obj, "property"); verifyNotEnumerable(obj, "property"); verifyConfigurable(obj, "property"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-490.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-490.js index a397f74ee9..2ce9c72765 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 04c26899b3..db3c1fba4b 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 8365a46aac..1cdf9be44b 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 8e51a7fd80..6d9039cb3f 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 307059771d..aa2ca2bc55 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 924720e5e7..88e0b13c09 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 2e63e773ba..01e69ac78f 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 f2079be323..56cd7c4d04 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 2289b4393d..dc83bf088e 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 d07f528104..23e5d1856b 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 1bafed8ada..8ce00687bf 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-5.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-5.js @@ -13,28 +13,33 @@ description: > data desc ---*/ - function sameDataDescriptorValues(d1, d2) { - return (d1.value === d2.value && - d1.enumerable === d2.enumerable && - d1.writable === d2.writable && - d1.configurable === d2.configurable); - } - - var o = {}; - - // create a data valued property with the following attributes: - // value: 101, enumerable: true, writable: true, configurable: true - o["foo"] = 101; - - // query for, and save, the desc. A subsequent call to defineProperty - // with the same desc should not disturb the property definition. - var d1 = Object.getOwnPropertyDescriptor(o, "foo"); - - // now, redefine the property with the same descriptor - // the property defintion should not get disturbed. - var desc = { value: 101, enumerable: true, writable: true, configurable: true }; - Object.defineProperty(o, "foo", desc); - - var d2 = Object.getOwnPropertyDescriptor(o, "foo"); +function sameDataDescriptorValues(d1, d2) { + return (d1.value === d2.value && + d1.enumerable === d2.enumerable && + d1.writable === d2.writable && + d1.configurable === d2.configurable); +} + +var o = {}; + +// create a data valued property with the following attributes: +// value: 101, enumerable: true, writable: true, configurable: true +o["foo"] = 101; + +// query for, and save, the desc. A subsequent call to defineProperty +// with the same desc should not disturb the property definition. +var d1 = Object.getOwnPropertyDescriptor(o, "foo"); + +// now, redefine the property with the same descriptor +// the property defintion should not get disturbed. +var desc = { + value: 101, + enumerable: true, + writable: true, + configurable: true +}; +Object.defineProperty(o, "foo", desc); + +var d2 = Object.getOwnPropertyDescriptor(o, "foo"); assert.sameValue(sameDataDescriptorValues(d1, d2), true, 'sameDataDescriptorValues(d1, d2)'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-50.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-50.js index efe6ef67f2..71b2c8d1ab 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-50.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-50.js @@ -13,9 +13,9 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "property", { - value: 1001, - writable: true, - enumerable: true + value: 1001, + writable: true, + enumerable: true }); verifyEqualTo(obj, "property", 1001); @@ -24,4 +24,3 @@ verifyWritable(obj, "property"); verifyEnumerable(obj, "property"); verifyNotConfigurable(obj, "property"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-500.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-500.js index ed20f1ac78..aee530e205 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 6e0b509f6d..8e08bb9076 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 7a2ef98399..e34e339b3f 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 76320b7049..88f45cc232 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 f1534efb07..9de8384ee2 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 f15171ddcd..0d49315888 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 402a338618..0156fa1bae 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 f5ffda634d..96f2c3ff33 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 5aba3d35e1..c355e64e14 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 697a1b3c4b..4a5aaa0805 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 c5866cbeed..58b2ff240a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-51.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-51.js @@ -9,13 +9,15 @@ description: > includes: [propertyHelper.js] ---*/ -var obj = { "property": 1 }; // default value of attributes: writable: true, configurable: true, enumerable: true +var obj = { + "property": 1 +}; // default value of attributes: writable: true, configurable: true, enumerable: true Object.defineProperty(obj, "property", { - value: 1001, - writable: false, - enumerable: false, - configurable: false + value: 1001, + writable: false, + enumerable: false, + configurable: false }); verifyEqualTo(obj, "property", 1001); @@ -25,4 +27,3 @@ verifyNotWritable(obj, "property"); verifyNotEnumerable(obj, "property"); verifyNotConfigurable(obj, "property"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-510.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-510.js index 41e43cbeb1..1ca3ab85a0 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 d3c44cf0bf..04577039c8 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 c7627d864c..3aae360992 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 f44cb451a9..8e7a5afc64 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 6b80aa1374..09ea483b5e 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 b87f8abd50..68f8ec750d 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 5232041098..29e30b240e 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 d47836e41f..fd7bd5d478 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 bbf3dbf0c5..2c04a1f970 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 ee0a43eab3..98382e84f3 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 171df640cd..1908bdf015 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-52.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-52.js @@ -21,4 +21,3 @@ verifyNotWritable(obj, "property"); verifyNotEnumerable(obj, "property"); verifyNotConfigurable(obj, "property"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-520.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-520.js index 166779005a..241b8ba74e 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 26ed78b257..56745554ab 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 7b4a2b78a1..95715c56e8 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 8c1377dc0e..2423be8bfb 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 2bdc20ca6e..0020bc962e 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 1ac4af8f8c..c1320bc657 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 620c61a24f..f861fa1c01 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 a1cc85f9ab..d7174363bc 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 31510895a2..12189aeb17 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-528.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-528.js @@ -13,33 +13,33 @@ includes: [propertyHelper.js] var obj = {}; -var getFunc = function () { - return 1001; +var getFunc = function() { + return 1001; }; Object.defineProperty(obj, "prop", { - get: getFunc, - set: undefined, - enumerable: false, - configurable: false + get: getFunc, + set: undefined, + enumerable: false, + configurable: false }); var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); try { - Object.defineProperty(obj, "prop", { - configurable: true - }); + Object.defineProperty(obj, "prop", { + configurable: true + }); - $ERROR("Expected TypeError"); + $ERROR("Expected TypeError"); } catch (e) { - assert(e instanceof TypeError); + assert(e instanceof TypeError); - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); + var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); - assert.sameValue(desc1.configurable, false); - assert.sameValue(desc2.configurable, false); - - verifyNotConfigurable(obj, "prop"); + assert.sameValue(desc1.configurable, false); + assert.sameValue(desc2.configurable, false); - assert(obj.hasOwnProperty("prop")); + verifyNotConfigurable(obj, "prop"); + + assert(obj.hasOwnProperty("prop")); } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-529.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-529.js index 891797eb9c..6c13790416 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 784f6499ca..454f0f8f5f 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 794b0bdc74..2a56207403 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 aec2d504de..e24cd71d19 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 39aec7cfab..9d6ac91a6c 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 006eba6b0c..ed85b1d960 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 ab79cd60eb..2cb8b6a77c 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 eec71d6948..7d290be2de 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 18edd69aec..5016c0b406 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 e0e3eded81..16bd7a1994 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 8f6b3eaa06..cc97b6371a 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 8bb261f1fd..64e8ede81b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-531-6.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-531-6.js @@ -13,14 +13,14 @@ includes: [propertyHelper.js] var obj = []; var verifySetFunc = "data"; -var getFunc = function () { - return verifySetFunc; +var getFunc = function() { + return verifySetFunc; }; Object.defineProperty(obj, "0", { - get: getFunc, - enumerable: true, - configurable: true + get: getFunc, + enumerable: true, + configurable: true }); verifyNotWritable(obj, "0"); @@ -29,4 +29,3 @@ assert(obj.hasOwnProperty("0")); var desc = Object.getOwnPropertyDescriptor(obj, "0"); assert.sameValue(typeof desc.set, "undefined"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-531-7.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-531-7.js index ebd0d7c6cc..f120c9fe5c 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 dcb124023f..bf61045fe1 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 ee3370eaf5..69e4018567 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 7c26ccedba..e750f0f51f 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 c6acdc49d9..0bed7486f5 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 7235c3f789..9dc369ef8e 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 f3ff2e36a3..93ad10992b 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 06c2d5faf1..15de96a3d0 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 21426bfe9a..3b65218cca 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 e33824934e..78d2ca97b4 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-538-2.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-538-2.js @@ -10,46 +10,46 @@ description: > includes: [propertyHelper.js] ---*/ -var obj = (function () { - return arguments; +var obj = (function() { + return arguments; }()); obj.verifySetFunc = "data"; -var getFunc = function () { - return obj.verifySetFunc; +var getFunc = function() { + return obj.verifySetFunc; }; -var setFunc = function (value) { - obj.verifySetFunc = value; +var setFunc = function(value) { + obj.verifySetFunc = value; }; Object.defineProperty(obj, "prop", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: true + get: getFunc, + set: setFunc, + enumerable: true, + configurable: true }); var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); Object.defineProperty(obj, "prop", { - value: 1001 + value: 1001 }); var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); -if (!desc1.hasOwnProperty("get") ) { - $ERROR('Expected desc1.hasOwnProperty("get") to be true, actually ' + desc1.hasOwnProperty("get")); +if (!desc1.hasOwnProperty("get")) { + $ERROR('Expected desc1.hasOwnProperty("get") to be true, actually ' + desc1.hasOwnProperty("get")); } -if (!desc2.hasOwnProperty("value") ) { - $ERROR('Expected desc2.hasOwnProperty("value") to be true, actually ' + desc2.hasOwnProperty("value")); +if (!desc2.hasOwnProperty("value")) { + $ERROR('Expected desc2.hasOwnProperty("value") to be true, actually ' + desc2.hasOwnProperty("value")); } -if (typeof desc2.get !== "undefined" ) { - $ERROR('Expected typeof desc2.get === "undefined" , actually ' + typeof desc2.get ); +if (typeof desc2.get !== "undefined") { + $ERROR('Expected typeof desc2.get === "undefined" , actually ' + typeof desc2.get); } -if (typeof desc2.set !== "undefined" ) { - $ERROR('Expected typeof desc2.set === "undefined" , actually ' + typeof desc2.set ); +if (typeof desc2.set !== "undefined") { + $ERROR('Expected typeof desc2.set === "undefined" , actually ' + typeof desc2.set); } verifyEqualTo(obj, "prop", 1001); @@ -59,5 +59,3 @@ verifyNotWritable(obj, "prop"); verifyEnumerable(obj, "prop"); verifyConfigurable(obj, "prop"); - - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-538-5.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-538-5.js index 010ad008e7..fdc987cfdc 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-538-5.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-538-5.js @@ -13,41 +13,41 @@ includes: [propertyHelper.js] var obj = []; obj.verifySetFunc = "data"; -var getFunc = function () { - return obj.verifySetFunc; +var getFunc = function() { + return obj.verifySetFunc; }; -var setFunc = function (value) { - obj.verifySetFunc = value; +var setFunc = function(value) { + obj.verifySetFunc = value; }; Object.defineProperty(obj, "prop", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: true + get: getFunc, + set: setFunc, + enumerable: true, + configurable: true }); var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); Object.defineProperty(obj, "prop", { - value: 1001 + value: 1001 }); -var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); -if (!desc1.hasOwnProperty("get") ) { - $ERROR('Expected desc1.hasOwnProperty("get") to be true, actually ' + desc1.hasOwnProperty("get")); +if (!desc1.hasOwnProperty("get")) { + $ERROR('Expected desc1.hasOwnProperty("get") to be true, actually ' + desc1.hasOwnProperty("get")); } -if (!desc2.hasOwnProperty("value") ) { - $ERROR('Expected desc2.hasOwnProperty("value") to be true, actually ' + desc2.hasOwnProperty("value")); +if (!desc2.hasOwnProperty("value")) { + $ERROR('Expected desc2.hasOwnProperty("value") to be true, actually ' + desc2.hasOwnProperty("value")); } -if (typeof desc2.get !== "undefined" ) { - $ERROR('Expected typeof desc2.get === "undefined" , actually ' + typeof desc2.get); +if (typeof desc2.get !== "undefined") { + $ERROR('Expected typeof desc2.get === "undefined" , actually ' + typeof desc2.get); } -if (typeof desc2.set !== "undefined" ) { - $ERROR('Expected typeof desc2.set === "undefined" , actually ' + typeof desc2.set); +if (typeof desc2.set !== "undefined") { + $ERROR('Expected typeof desc2.set === "undefined" , actually ' + typeof desc2.set); } @@ -58,5 +58,3 @@ verifyNotWritable(obj, "prop"); verifyEnumerable(obj, "prop"); verifyConfigurable(obj, "prop"); - - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-538-6.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-538-6.js index c991bea627..5c90ba8f9e 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 ee5808341c..3b97da4a8c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-538.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-538.js @@ -12,38 +12,38 @@ includes: [propertyHelper.js] var obj = {}; -var getFunc = function () { - return 1001; +var getFunc = function() { + return 1001; }; var verifySetFunc = "data"; -var setFunc = function (value) { - verifySetFunc = value; +var setFunc = function(value) { + verifySetFunc = value; }; Object.defineProperty(obj, "prop", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: true + get: getFunc, + set: setFunc, + enumerable: true, + configurable: true }); var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); Object.defineProperty(obj, "prop", { - value: 1001 + value: 1001 }); var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); -if (!desc1.hasOwnProperty("get") ) { - $ERROR('Expected desc1.hasOwnProperty("get") to be true, actually ' + desc1.hasOwnProperty("get")); +if (!desc1.hasOwnProperty("get")) { + $ERROR('Expected desc1.hasOwnProperty("get") to be true, actually ' + desc1.hasOwnProperty("get")); } -if (!desc2.hasOwnProperty("value") ) { - $ERROR('Expected desc2.hasOwnProperty("value") to be true, actually ' + desc2.hasOwnProperty("value")); +if (!desc2.hasOwnProperty("value")) { + $ERROR('Expected desc2.hasOwnProperty("value") to be true, actually ' + desc2.hasOwnProperty("value")); } -if (typeof desc2.get !== "undefined" ) { - $ERROR('Expected typeof desc2.get === "undefined" , actually ' + typeof desc2.get ); +if (typeof desc2.get !== "undefined") { + $ERROR('Expected typeof desc2.get === "undefined" , actually ' + typeof desc2.get); } @@ -54,6 +54,3 @@ verifyNotWritable(obj, "prop"); verifyEnumerable(obj, "prop"); verifyConfigurable(obj, "prop"); - - - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-539.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-539.js index 6d06b7a1f6..d1ee1d3a31 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 3d6c34dba3..6fa06bee3b 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 65219f6d34..396bcfba3e 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-540-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-1.js @@ -14,57 +14,57 @@ includes: [propertyHelper.js] var obj = {}; obj.verifySetFunction = "data"; -var getFunc = function () { - return obj.verifySetFunction; +var getFunc = function() { + return obj.verifySetFunction; }; -var setFunc = function (value) { - obj.verifySetFunction = value; +var setFunc = function(value) { + obj.verifySetFunction = value; }; Object.defineProperty(obj, "property", { - get: getFunc, - set: setFunc, - configurable: false + get: getFunc, + set: setFunc, + configurable: false }); var result = false; try { - Object.defineProperty(obj, "property", { - get: function () { - return 100; - } - }); + Object.defineProperty(obj, "property", { + get: function() { + return 100; + } + }); } catch (e) { - result = e instanceof TypeError; - verifyEqualTo(obj, "property", getFunc()); + result = e instanceof TypeError; + verifyEqualTo(obj, "property", getFunc()); - verifyWritable(obj, "property", "verifySetFunction"); + verifyWritable(obj, "property", "verifySetFunction"); - verifyNotEnumerable(obj, "property"); + verifyNotEnumerable(obj, "property"); - verifyNotConfigurable(obj, "property"); + verifyNotConfigurable(obj, "property"); } try { - Object.defineProperty(obj, "property", { - set: function (value) { - obj.verifySetFunction1 = value; - } - }); -} catch (e) { - if (!result) { - $ERROR('Expected result to be true, actually ' + result); + Object.defineProperty(obj, "property", { + set: function(value) { + obj.verifySetFunction1 = value; } - - verifyEqualTo(obj, "property", getFunc()); + }); +} catch (e) { + if (!result) { + $ERROR('Expected result to be true, actually ' + result); + } - verifyWritable(obj, "property", "verifySetFunction"); + verifyEqualTo(obj, "property", getFunc()); - verifyNotEnumerable(obj, "property"); + verifyWritable(obj, "property", "verifySetFunction"); - verifyNotConfigurable(obj, "property"); + verifyNotEnumerable(obj, "property"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(obj, "property"); + + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-540-10.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-10.js index 42279065bc..9b05fab44c 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 52c2bfe09d..6d5e5a4fd0 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-540-2.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-2.js @@ -14,57 +14,57 @@ includes: [propertyHelper.js] var obj = []; obj.verifySetFunction = "data"; -var getFunc = function () { - return obj.verifySetFunction; +var getFunc = function() { + return obj.verifySetFunction; }; -var setFunc = function (value) { - obj.verifySetFunction = value; +var setFunc = function(value) { + obj.verifySetFunction = value; }; Object.defineProperty(obj, "0", { - get: getFunc, - set: setFunc, - configurable: false + get: getFunc, + set: setFunc, + configurable: false }); var result = false; try { - Object.defineProperty(obj, "0", { - get: function () { - return 100; - } - }); + Object.defineProperty(obj, "0", { + get: function() { + return 100; + } + }); } catch (e) { - result = e instanceof TypeError; - verifyEqualTo(obj, "0", getFunc()); + result = e instanceof TypeError; + verifyEqualTo(obj, "0", getFunc()); - verifyWritable(obj, "0", "verifySetFunction"); + verifyWritable(obj, "0", "verifySetFunction"); - verifyNotEnumerable(obj, "0"); + verifyNotEnumerable(obj, "0"); - verifyNotConfigurable(obj, "0"); + verifyNotConfigurable(obj, "0"); } try { - Object.defineProperty(obj, "0", { - set: function (value) { - obj.verifySetFunction1 = value; - } - }); -} catch (e) { - if (!result ) { - $ERROR('Expected result to be true, actually ' + result ); + Object.defineProperty(obj, "0", { + set: function(value) { + obj.verifySetFunction1 = value; } - - verifyEqualTo(obj, "0", getFunc()); + }); +} catch (e) { + if (!result) { + $ERROR('Expected result to be true, actually ' + result); + } - verifyWritable(obj, "0", "verifySetFunction"); + verifyEqualTo(obj, "0", getFunc()); - verifyNotEnumerable(obj, "0"); + verifyWritable(obj, "0", "verifySetFunction"); - verifyNotConfigurable(obj, "0"); + verifyNotEnumerable(obj, "0"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(obj, "0"); + + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-540-3.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-3.js index 011fb4fbb5..0b7b5bcdc1 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 7db3da8769..4ab77fa5f4 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 04d9216140..945dc58d89 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 26a9524cc8..778a22ac5c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-540-6.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-6.js @@ -14,59 +14,59 @@ includes: [propertyHelper.js] var obj = {}; obj.verifySetFunction = "data"; -var getFunc = function () { - return obj.verifySetFunction; +var getFunc = function() { + return obj.verifySetFunction; }; -var setFunc = function (value) { - obj.verifySetFunction = value; +var setFunc = function(value) { + obj.verifySetFunction = value; }; Object.defineProperty(obj, "0", { - get: getFunc, - set: setFunc, - configurable: false + get: getFunc, + set: setFunc, + configurable: false }); var result = false; try { - Object.defineProperty(obj, "0", { - get: function () { - return 100; - } - }); + Object.defineProperty(obj, "0", { + get: function() { + return 100; + } + }); } catch (e) { - result = e instanceof TypeError; + result = e instanceof TypeError; - verifyEqualTo(obj, "0", getFunc()); + verifyEqualTo(obj, "0", getFunc()); - verifyWritable(obj, "0", "verifySetFunction"); + verifyWritable(obj, "0", "verifySetFunction"); - verifyNotEnumerable(obj, "0"); + verifyNotEnumerable(obj, "0"); - verifyNotConfigurable(obj, "0"); + verifyNotConfigurable(obj, "0"); } try { - Object.defineProperty(obj, "0", { - set: function (value) { - obj.verifySetFunction1 = value; - } - }); -} catch (e) { - if (!result) { - $ERROR('Expected result to be true, actually ' + result); + Object.defineProperty(obj, "0", { + set: function(value) { + obj.verifySetFunction1 = value; } - - verifyEqualTo(obj, "0", getFunc()); + }); +} catch (e) { + if (!result) { + $ERROR('Expected result to be true, actually ' + result); + } - verifyWritable(obj, "0", "verifySetFunction"); + verifyEqualTo(obj, "0", getFunc()); - verifyNotEnumerable(obj, "0"); + verifyWritable(obj, "0", "verifySetFunction"); - verifyNotConfigurable(obj, "0"); + verifyNotEnumerable(obj, "0"); + verifyNotConfigurable(obj, "0"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-540-7.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-7.js index c67b0e5816..b953deb29d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-540-7.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-7.js @@ -14,59 +14,59 @@ includes: [propertyHelper.js] var obj = []; obj.verifySetFunction = "data"; -var getFunc = function () { - return obj.verifySetFunction; +var getFunc = function() { + return obj.verifySetFunction; }; -var setFunc = function (value) { - obj.verifySetFunction = value; +var setFunc = function(value) { + obj.verifySetFunction = value; }; Object.defineProperty(obj, "prop", { - get: getFunc, - set: setFunc, - configurable: false + get: getFunc, + set: setFunc, + configurable: false }); var result = false; try { - Object.defineProperty(obj, "prop", { - get: function () { - return 100; - } - }); + Object.defineProperty(obj, "prop", { + get: function() { + return 100; + } + }); } catch (e) { - result = e instanceof TypeError; - verifyEqualTo(obj, "prop", getFunc()); + result = e instanceof TypeError; + verifyEqualTo(obj, "prop", getFunc()); - verifyWritable(obj, "prop", "verifySetFunction"); + verifyWritable(obj, "prop", "verifySetFunction"); - verifyNotEnumerable(obj, "prop"); + verifyNotEnumerable(obj, "prop"); - verifyNotConfigurable(obj, "prop"); + verifyNotConfigurable(obj, "prop"); } try { - Object.defineProperty(obj, "prop", { - set: function (value) { - obj.verifySetFunction1 = value; - } - }); -} catch (e1) { - if (!result) { - $ERROR('Expected result to be true, actually ' + result); + Object.defineProperty(obj, "prop", { + set: function(value) { + obj.verifySetFunction1 = value; } - + }); +} catch (e1) { + if (!result) { + $ERROR('Expected result to be true, actually ' + result); + } - verifyEqualTo(obj, "prop", getFunc()); - verifyWritable(obj, "prop", "verifySetFunction"); + verifyEqualTo(obj, "prop", getFunc()); - verifyNotEnumerable(obj, "prop"); + verifyWritable(obj, "prop", "verifySetFunction"); - verifyNotConfigurable(obj, "prop"); + verifyNotEnumerable(obj, "prop"); + verifyNotConfigurable(obj, "prop"); - if (!(e1 instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e1); - } + + if (!(e1 instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e1); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-540-8.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-8.js index f59421aa93..d9df97b880 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-540-8.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-8.js @@ -11,62 +11,62 @@ description: > includes: [propertyHelper.js] ---*/ -var obj = (function () { - return arguments; +var obj = (function() { + return arguments; }()); obj.verifySetFunction = "data"; -var getFunc = function () { - return obj.verifySetFunction; +var getFunc = function() { + return obj.verifySetFunction; }; -var setFunc = function (value) { - obj.verifySetFunction = value; +var setFunc = function(value) { + obj.verifySetFunction = value; }; Object.defineProperty(obj, "0", { - get: getFunc, - set: setFunc, - configurable: false + get: getFunc, + set: setFunc, + configurable: false }); var result = false; try { - Object.defineProperty(obj, "0", { - get: function () { - return 100; - } - }); + Object.defineProperty(obj, "0", { + get: function() { + return 100; + } + }); } catch (e) { - result = e instanceof TypeError; - verifyEqualTo(obj, "0", getFunc()); + result = e instanceof TypeError; + verifyEqualTo(obj, "0", getFunc()); - verifyWritable(obj, "0", "verifySetFunction"); + verifyWritable(obj, "0", "verifySetFunction"); - verifyNotEnumerable(obj, "0"); + verifyNotEnumerable(obj, "0"); - verifyNotConfigurable(obj, "0"); + verifyNotConfigurable(obj, "0"); } try { - Object.defineProperty(obj, "0", { - set: function (value) { - obj.verifySetFunction1 = value; - } - }); -} catch (e) { - if (!result ) { - $ERROR('Expected result to be true, actually ' + result ); + Object.defineProperty(obj, "0", { + set: function(value) { + obj.verifySetFunction1 = value; } - - verifyEqualTo(obj, "0", getFunc()); + }); +} catch (e) { + if (!result) { + $ERROR('Expected result to be true, actually ' + result); + } - verifyWritable(obj, "0", "verifySetFunction"); + verifyEqualTo(obj, "0", getFunc()); - verifyNotEnumerable(obj, "0"); + verifyWritable(obj, "0", "verifySetFunction"); - verifyNotConfigurable(obj, "0"); + verifyNotEnumerable(obj, "0"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(obj, "0"); + + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-540-9.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-9.js index b2354b2e19..b0259ddce4 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 141ecc9f56..6ca07a414e 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 4651f86e43..46d603d74d 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 8382e3cec1..900872e59d 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 7afe42f31a..4f57461d95 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 c8b18272fe..7e74c4f8d0 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 f6150509a0..d166513f3d 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 ce460d2c0c..74dca6bda0 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 9c0d1cc4c0..359362b861 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-547-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-547-1.js @@ -13,51 +13,51 @@ includes: [propertyHelper.js] var obj = []; obj.verifySetFunc = "data"; -var getFunc = function () { - return obj.verifySetFunc; +var getFunc = function() { + return obj.verifySetFunc; }; -var setFunc = function (value) { - obj.verifySetFunc = value; +var setFunc = function(value) { + obj.verifySetFunc = value; }; Object.defineProperty(obj, "0", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: false + get: getFunc, + set: setFunc, + enumerable: true, + configurable: false }); var desc1 = Object.getOwnPropertyDescriptor(obj, "0"); try { - Object.defineProperty(obj, "0", { - value: 1001 - }); + Object.defineProperty(obj, "0", { + value: 1001 + }); - $ERROR("Expected an exception."); + $ERROR("Expected an exception."); } catch (e) { - var desc2 = Object.getOwnPropertyDescriptor(obj, "0"); + var desc2 = Object.getOwnPropertyDescriptor(obj, "0"); - if (!desc1.hasOwnProperty("get")) { - $ERROR('Expected desc1.hasOwnProperty("get") to be true, actually ' + desc1.hasOwnProperty("get")); - } - - if (desc2.hasOwnProperty("value")) { - $ERROR('Expected !desc2.hasOwnProperty("value") to be true, actually ' + !desc2.hasOwnProperty("value")); - } - + if (!desc1.hasOwnProperty("get")) { + $ERROR('Expected desc1.hasOwnProperty("get") to be true, actually ' + desc1.hasOwnProperty("get")); + } - verifyEqualTo(obj, "0", getFunc()); + if (desc2.hasOwnProperty("value")) { + $ERROR('Expected !desc2.hasOwnProperty("value") to be true, actually ' + !desc2.hasOwnProperty("value")); + } - verifyWritable(obj, "0", "verifySetFunc"); - verifyEnumerable(obj, "0"); + verifyEqualTo(obj, "0", getFunc()); - verifyNotConfigurable(obj, "0"); + verifyWritable(obj, "0", "verifySetFunc"); + verifyEnumerable(obj, "0"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(obj, "0"); + + + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-547-2.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-547-2.js index dbb08ef9c6..6a08c62d6f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-547-2.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-547-2.js @@ -10,56 +10,56 @@ description: > includes: [propertyHelper.js] ---*/ -var obj = (function () { - return arguments; +var obj = (function() { + return arguments; }()); obj.verifySetFunc = "data"; -var getFunc = function () { - return obj.verifySetFunc; +var getFunc = function() { + return obj.verifySetFunc; }; -var setFunc = function (value) { - obj.verifySetFunc = value; +var setFunc = function(value) { + obj.verifySetFunc = value; }; Object.defineProperty(obj, "prop", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: false + get: getFunc, + set: setFunc, + enumerable: true, + configurable: false }); var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); try { - Object.defineProperty(obj, "prop", { - value: 1001 - }); + Object.defineProperty(obj, "prop", { + value: 1001 + }); - $ERROR("Expected an exception."); + $ERROR("Expected an exception."); } catch (e) { - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); + var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); - if (!desc1.hasOwnProperty("get")) { - $ERROR('Expected desc1.hasOwnProperty("get") to be true, actually ' + desc1.hasOwnProperty("get")); - } - - if (desc2.hasOwnProperty("value")) { - $ERROR('Expected !desc2.hasOwnProperty("value") to be true, actually ' + !desc2.hasOwnProperty("value")); - } - + if (!desc1.hasOwnProperty("get")) { + $ERROR('Expected desc1.hasOwnProperty("get") to be true, actually ' + desc1.hasOwnProperty("get")); + } - verifyEqualTo(obj, "prop", getFunc()); + if (desc2.hasOwnProperty("value")) { + $ERROR('Expected !desc2.hasOwnProperty("value") to be true, actually ' + !desc2.hasOwnProperty("value")); + } - verifyWritable(obj, "prop", "verifySetFunc"); - verifyEnumerable(obj, "prop"); + verifyEqualTo(obj, "prop", getFunc()); - verifyNotConfigurable(obj, "prop"); - + verifyWritable(obj, "prop", "verifySetFunc"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyEnumerable(obj, "prop"); + + verifyNotConfigurable(obj, "prop"); + + + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-547-3.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-547-3.js index 3caf081e49..db807f2b64 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-547-3.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-547-3.js @@ -13,50 +13,50 @@ includes: [propertyHelper.js] var obj = []; obj.verifySetFunc = "data"; -var getFunc = function () { - return obj.verifySetFunc; +var getFunc = function() { + return obj.verifySetFunc; }; -var setFunc = function (value) { - obj.verifySetFunc = value; +var setFunc = function(value) { + obj.verifySetFunc = value; }; Object.defineProperty(obj, "prop", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: false + get: getFunc, + set: setFunc, + enumerable: true, + configurable: false }); var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); try { - Object.defineProperty(obj, "prop", { - value: 1001 - }); + Object.defineProperty(obj, "prop", { + value: 1001 + }); - $ERROR("Expected an exception."); + $ERROR("Expected an exception."); } catch (e) { - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); + var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); - if (!desc1.hasOwnProperty("get")) { - $ERROR('Expected desc1.hasOwnProperty("get") to be true, actually ' + desc1.hasOwnProperty("get")); - } - - if (desc2.hasOwnProperty("value")) { - $ERROR('Expected !desc2.hasOwnProperty("value") to be true, actually ' + !desc2.hasOwnProperty("value")); - } - + if (!desc1.hasOwnProperty("get")) { + $ERROR('Expected desc1.hasOwnProperty("get") to be true, actually ' + desc1.hasOwnProperty("get")); + } - verifyEqualTo(obj, "prop", getFunc()); + if (desc2.hasOwnProperty("value")) { + $ERROR('Expected !desc2.hasOwnProperty("value") to be true, actually ' + !desc2.hasOwnProperty("value")); + } - verifyWritable(obj, "prop", "verifySetFunc"); - verifyEnumerable(obj, "prop"); + verifyEqualTo(obj, "prop", getFunc()); - verifyNotConfigurable(obj, "prop"); + verifyWritable(obj, "prop", "verifySetFunc"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyEnumerable(obj, "prop"); + + verifyNotConfigurable(obj, "prop"); + + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-547-4.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-547-4.js index c7ab2851c3..fd8fe6f5b5 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-547-4.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-547-4.js @@ -10,54 +10,54 @@ description: > includes: [propertyHelper.js] ---*/ -var obj = (function () { - return arguments; +var obj = (function() { + return arguments; }()); obj.verifySetFunc = "data"; -var getFunc = function () { - return obj.verifySetFunc; +var getFunc = function() { + return obj.verifySetFunc; }; -var setFunc = function (value) { - obj.verifySetFunc = value; +var setFunc = function(value) { + obj.verifySetFunc = value; }; Object.defineProperty(obj, "0", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: false + get: getFunc, + set: setFunc, + enumerable: true, + configurable: false }); var desc1 = Object.getOwnPropertyDescriptor(obj, "0"); try { - Object.defineProperty(obj, "0", { - value: 1001 - }); - $ERROR("Expected an exception."); + Object.defineProperty(obj, "0", { + value: 1001 + }); + $ERROR("Expected an exception."); } catch (e) { - var desc2 = Object.getOwnPropertyDescriptor(obj, "0"); + var desc2 = Object.getOwnPropertyDescriptor(obj, "0"); - if (!desc1.hasOwnProperty("get")) { - $ERROR('Expected desc1.hasOwnProperty("get") to be true, actually ' + desc1.hasOwnProperty("get")); - } - - if (desc2.hasOwnProperty("value")) { - $ERROR('Expected !desc2.hasOwnProperty("value") to be true, actually ' + !desc2.hasOwnProperty("value")); - } - - verifyEqualTo(obj, "0", getFunc()); + if (!desc1.hasOwnProperty("get")) { + $ERROR('Expected desc1.hasOwnProperty("get") to be true, actually ' + desc1.hasOwnProperty("get")); + } - verifyWritable(obj, "0", "verifySetFunc"); + if (desc2.hasOwnProperty("value")) { + $ERROR('Expected !desc2.hasOwnProperty("value") to be true, actually ' + !desc2.hasOwnProperty("value")); + } - verifyEnumerable(obj, "0"); + verifyEqualTo(obj, "0", getFunc()); - verifyNotConfigurable(obj, "0"); + verifyWritable(obj, "0", "verifySetFunc"); + verifyEnumerable(obj, "0"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + verifyNotConfigurable(obj, "0"); + + + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-547.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-547.js index a75fb8782e..ee342321cf 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 fc6d76d472..06148ad7fc 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 a8cd117d9c..4448f293a6 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 4c3747d7b3..3453d91984 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 bb17ddc1b5..e61cb23e64 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 1cd7d71c71..6002a2509f 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 34fe59a869..edb2b6cb86 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 62695097dd..ef243fdd9d 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 2486116154..608f5f42fd 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 aa5eda936d..89dbef084e 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 0e91ba3b53..2ff92d6d11 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 be2d5d46c7..1c3312d016 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 1bcd85f7c1..9eae2cd02d 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 f2f308b34d..f0a3b8c51f 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 dd42a9569c..6e0ccaa92e 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 40a31583ec..75751e6f39 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 376507ea16..077cfdfb45 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 874f22ea29..7591887dc5 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 56423191a5..a4bc20ffa6 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 6b205e6363..81f0cc5a53 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 6876df4153..ad1c54da44 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 f3deecae48..b878b5e1f5 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 b61e13a1f4..65022ccabc 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 9a37b39d54..6277ce348e 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 9c1564a683..555136872a 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 dc56011a0f..e94a09d884 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 5aa6cada35..c06f383b74 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 308b6693b1..7037e7c8d3 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 74d43c55a9..84e9e1ffdd 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 f6d79774d5..6dff586f78 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 0d63001c64..ea9a74c7b1 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 7a0601c564..d2eb6b26c6 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 36c1814582..2723d70539 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 a7bba5a0e2..5d3156e76d 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 eee9a7cfef..7b5c723c8c 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 e910f33358..c8ecdb820e 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 2870587d23..4fa1be7baa 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-58.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-58.js @@ -22,4 +22,3 @@ verifyWritable(obj, "foo"); verifyEnumerable(obj, "foo"); verifyConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-580.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-580.js index d4c99db070..b88e32e565 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 2931f9c8f4..9df0254a22 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 7895b74552..af52925641 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 97b7352fde..88590d4b9d 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 716431a7bb..c12f8d0136 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 b58e594169..7a292295a0 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 37c718de92..44fdf51918 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 441dfe023f..2994155b00 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 09d635b640..38cb3ff2c8 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 d3c303a973..6bfcba3173 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 f8928ac1f1..e8eeb3ca6d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-59.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-59.js @@ -13,15 +13,16 @@ includes: [propertyHelper.js] var obj = {}; function getFunc() { - return 0; + return 0; } + function setFunc(value) { - obj.helpVerifySet = value; + obj.helpVerifySet = value; } Object.defineProperty(obj, "foo", { - get: getFunc, - set: setFunc + get: getFunc, + set: setFunc }); Object.defineProperty(obj, "foo", {}); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-590.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-590.js index 3e326be2e6..58b2a46f9e 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 fd0e921993..8b1eb73128 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 40784147f2..26d450b26a 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 877f17efb0..7d53609faf 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 8d57266798..f3194743e6 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 2f800ac1cd..f533cbdc61 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 5489deaa0a..98ba76b3db 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 9a46c54cd9..8320085600 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 55420c69fc..b1a5e8a5c7 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-598.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-598.js @@ -8,27 +8,27 @@ description: > correct ---*/ - var desc = Object.getOwnPropertyDescriptor(Object, "getPrototypeOf"); +var desc = Object.getOwnPropertyDescriptor(Object, "getPrototypeOf"); - var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); +var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); - var temp = Object.getPrototypeOf; +var temp = Object.getPrototypeOf; - Object.getPrototypeOf = "2010"; +Object.getPrototypeOf = "2010"; - var isWritable = (Object.getPrototypeOf === "2010"); +var isWritable = (Object.getPrototypeOf === "2010"); - var isEnumerable = false; +var isEnumerable = false; - for (var prop in Object) { - if (prop === "getPrototypeOf") { - isEnumerable = true; - } - } - - delete Object.getPrototypeOf; +for (var prop in Object) { + if (prop === "getPrototypeOf") { + isEnumerable = true; + } +} - var isConfigurable = !Object.hasOwnProperty("getPrototypeOf"); +delete Object.getPrototypeOf; + +var isConfigurable = !Object.hasOwnProperty("getPrototypeOf"); assert(propertyAreCorrect, 'propertyAreCorrect !== true'); assert(isWritable, 'isWritable !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-599.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-599.js index 00e61a739d..129ad54029 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 f96e56cab0..0d4c3e19f7 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 906ae54607..12e6d66daa 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-60.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-60.js @@ -14,7 +14,9 @@ var obj = {}; obj.foo = 101; // default value of attributes: writable: true, configurable: true, enumerable: true -Object.defineProperty(obj, "foo", { value: "abc" }); +Object.defineProperty(obj, "foo", { + value: "abc" +}); verifyEqualTo(obj, "foo", "abc"); verifyWritable(obj, "foo"); @@ -22,4 +24,3 @@ verifyWritable(obj, "foo"); verifyEnumerable(obj, "foo"); verifyConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-600.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-600.js index 7f1ab0b27b..c9775c52fa 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-600.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-600.js @@ -8,27 +8,27 @@ description: > correct ---*/ - var desc = Object.getOwnPropertyDescriptor(Object, "getOwnPropertyNames"); +var desc = Object.getOwnPropertyDescriptor(Object, "getOwnPropertyNames"); - var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); +var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); - var temp = Object.getOwnPropertyNames; +var temp = Object.getOwnPropertyNames; - Object.getOwnPropertyNames = "2010"; +Object.getOwnPropertyNames = "2010"; - var isWritable = (Object.getOwnPropertyNames === "2010"); +var isWritable = (Object.getOwnPropertyNames === "2010"); - var isEnumerable = false; +var isEnumerable = false; - for (var prop in Object) { - if (prop === "getOwnPropertyNames") { - isEnumerable = true; - } - } - - delete Object.getOwnPropertyNames; +for (var prop in Object) { + if (prop === "getOwnPropertyNames") { + isEnumerable = true; + } +} - var isConfigurable = !Object.hasOwnProperty("getOwnPropertyNames"); +delete Object.getOwnPropertyNames; + +var isConfigurable = !Object.hasOwnProperty("getOwnPropertyNames"); assert(propertyAreCorrect, 'propertyAreCorrect !== true'); assert(isWritable, 'isWritable !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-601.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-601.js index b9bcd8dc39..930b2b8419 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-601.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-601.js @@ -6,27 +6,27 @@ es5id: 15.2.3.6-4-601 description: ES5 Attributes - all attributes in Object.create are correct ---*/ - var desc = Object.getOwnPropertyDescriptor(Object, "create"); +var desc = Object.getOwnPropertyDescriptor(Object, "create"); - var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); +var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); - var temp = Object.create; +var temp = Object.create; - Object.create = "2010"; +Object.create = "2010"; - var isWritable = (Object.create === "2010"); +var isWritable = (Object.create === "2010"); - var isEnumerable = false; +var isEnumerable = false; - for (var prop in Object) { - if (prop === "create") { - isEnumerable = true; - } - } - - delete Object.create; +for (var prop in Object) { + if (prop === "create") { + isEnumerable = true; + } +} - var isConfigurable = !Object.hasOwnProperty("create"); +delete Object.create; + +var isConfigurable = !Object.hasOwnProperty("create"); assert(propertyAreCorrect, 'propertyAreCorrect !== true'); assert(isWritable, 'isWritable !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-602.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-602.js index d2f6f0de24..61eb16bb60 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 7959a39ee2..0fb05283a4 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-603.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-603.js @@ -8,27 +8,27 @@ description: > correct ---*/ - var desc = Object.getOwnPropertyDescriptor(Object, "defineProperties"); +var desc = Object.getOwnPropertyDescriptor(Object, "defineProperties"); - var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); +var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); - var temp = Object.defineProperties; +var temp = Object.defineProperties; - Object.defineProperties = "2010"; +Object.defineProperties = "2010"; - var isWritable = (Object.defineProperties === "2010"); +var isWritable = (Object.defineProperties === "2010"); - var isEnumerable = false; +var isEnumerable = false; - for (var prop in Object) { - if (prop === "defineProperties") { - isEnumerable = true; - } - } - - delete Object.defineProperties; +for (var prop in Object) { + if (prop === "defineProperties") { + isEnumerable = true; + } +} - var isConfigurable = !Object.hasOwnProperty("defineProperties"); +delete Object.defineProperties; + +var isConfigurable = !Object.hasOwnProperty("defineProperties"); assert(propertyAreCorrect, 'propertyAreCorrect !== true'); assert(isWritable, 'isWritable !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-604.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-604.js index 497ebad757..ec234ccef8 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-604.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-604.js @@ -6,27 +6,27 @@ es5id: 15.2.3.6-4-604 description: ES5 Attributes - all attributes in Object.seal are correct ---*/ - var desc = Object.getOwnPropertyDescriptor(Object, "seal"); +var desc = Object.getOwnPropertyDescriptor(Object, "seal"); - var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); +var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); - var temp = Object.seal; +var temp = Object.seal; - Object.seal = "2010"; +Object.seal = "2010"; - var isWritable = (Object.seal === "2010"); +var isWritable = (Object.seal === "2010"); - var isEnumerable = false; +var isEnumerable = false; - for (var prop in Object) { - if (prop === "seal") { - isEnumerable = true; - } - } - - delete Object.seal; +for (var prop in Object) { + if (prop === "seal") { + isEnumerable = true; + } +} - var isConfigurable = !Object.hasOwnProperty("seal"); +delete Object.seal; + +var isConfigurable = !Object.hasOwnProperty("seal"); assert(propertyAreCorrect, 'propertyAreCorrect !== true'); assert(isWritable, 'isWritable !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-605.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-605.js index 45952f26c7..bf120a7f0a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-605.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-605.js @@ -6,27 +6,27 @@ es5id: 15.2.3.6-4-605 description: ES5 Attributes - all attributes in Object.freeze are correct ---*/ - var desc = Object.getOwnPropertyDescriptor(Object, "freeze"); +var desc = Object.getOwnPropertyDescriptor(Object, "freeze"); - var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); +var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); - var temp = Object.freeze; +var temp = Object.freeze; - Object.freeze = "2010"; +Object.freeze = "2010"; - var isWritable = (Object.freeze === "2010"); +var isWritable = (Object.freeze === "2010"); - var isEnumerable = false; +var isEnumerable = false; - for (var prop in Object) { - if (prop === "freeze") { - isEnumerable = true; - } - } - - delete Object.freeze; +for (var prop in Object) { + if (prop === "freeze") { + isEnumerable = true; + } +} - var isConfigurable = !Object.hasOwnProperty("freeze"); +delete Object.freeze; + +var isConfigurable = !Object.hasOwnProperty("freeze"); assert(propertyAreCorrect, 'propertyAreCorrect !== true'); assert(isWritable, 'isWritable !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-606.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-606.js index a3621fdd10..7a6a177e2e 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-606.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-606.js @@ -8,27 +8,27 @@ description: > correct ---*/ - var desc = Object.getOwnPropertyDescriptor(Object, "preventExtensions"); +var desc = Object.getOwnPropertyDescriptor(Object, "preventExtensions"); - var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); +var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); - var temp = Object.preventExtensions; +var temp = Object.preventExtensions; - Object.preventExtensions = "2010"; +Object.preventExtensions = "2010"; - var isWritable = (Object.preventExtensions === "2010"); +var isWritable = (Object.preventExtensions === "2010"); - var isEnumerable = false; +var isEnumerable = false; - for (var prop in Object) { - if (prop === "preventExtensions") { - isEnumerable = true; - } - } - - delete Object.preventExtensions; +for (var prop in Object) { + if (prop === "preventExtensions") { + isEnumerable = true; + } +} - var isConfigurable = !Object.hasOwnProperty("preventExtensions"); +delete Object.preventExtensions; + +var isConfigurable = !Object.hasOwnProperty("preventExtensions"); assert(propertyAreCorrect, 'propertyAreCorrect !== true'); assert(isWritable, 'isWritable !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-607.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-607.js index 88beb3e676..0713aace05 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-607.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-607.js @@ -6,27 +6,27 @@ es5id: 15.2.3.6-4-607 description: ES5 Attributes - all attributes in Object.isSealed are correct ---*/ - var desc = Object.getOwnPropertyDescriptor(Object, "isSealed"); +var desc = Object.getOwnPropertyDescriptor(Object, "isSealed"); - var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); +var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); - var temp = Object.isSealed; +var temp = Object.isSealed; - Object.isSealed = "2010"; +Object.isSealed = "2010"; - var isWritable = (Object.isSealed === "2010"); +var isWritable = (Object.isSealed === "2010"); - var isEnumerable = false; +var isEnumerable = false; - for (var prop in Object) { - if (prop === "isSealed") { - isEnumerable = true; - } - } - - delete Object.isSealed; +for (var prop in Object) { + if (prop === "isSealed") { + isEnumerable = true; + } +} - var isConfigurable = !Object.hasOwnProperty("isSealed"); +delete Object.isSealed; + +var isConfigurable = !Object.hasOwnProperty("isSealed"); assert(propertyAreCorrect, 'propertyAreCorrect !== true'); assert(isWritable, 'isWritable !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-608.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-608.js index f752bc6780..c16a7ad9c0 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-608.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-608.js @@ -6,27 +6,27 @@ es5id: 15.2.3.6-4-608 description: ES5 Attributes - all attributes in Object.isFrozen are correct ---*/ - var desc = Object.getOwnPropertyDescriptor(Object, "isFrozen"); +var desc = Object.getOwnPropertyDescriptor(Object, "isFrozen"); - var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); +var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); - var temp = Object.isFrozen; +var temp = Object.isFrozen; - Object.isFrozen = "2010"; +Object.isFrozen = "2010"; - var isWritable = (Object.isFrozen === "2010"); +var isWritable = (Object.isFrozen === "2010"); - var isEnumerable = false; +var isEnumerable = false; - for (var prop in Object) { - if (prop === "isFrozen") { - isEnumerable = true; - } - } - - delete Object.isFrozen; +for (var prop in Object) { + if (prop === "isFrozen") { + isEnumerable = true; + } +} - var isConfigurable = !Object.hasOwnProperty("isFrozen"); +delete Object.isFrozen; + +var isConfigurable = !Object.hasOwnProperty("isFrozen"); assert(propertyAreCorrect, 'propertyAreCorrect !== true'); assert(isWritable, 'isWritable !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-609.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-609.js index aa12befa7e..7671114615 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-609.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-609.js @@ -6,27 +6,27 @@ es5id: 15.2.3.6-4-609 description: ES5 Attributes - all attributes in Object.isExtensible are correct ---*/ - var desc = Object.getOwnPropertyDescriptor(Object, "isExtensible"); +var desc = Object.getOwnPropertyDescriptor(Object, "isExtensible"); - var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); +var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); - var temp = Object.isExtensible; +var temp = Object.isExtensible; - Object.isExtensible = "2010"; +Object.isExtensible = "2010"; - var isWritable = (Object.isExtensible === "2010"); +var isWritable = (Object.isExtensible === "2010"); - var isEnumerable = false; +var isEnumerable = false; - for (var prop in Object) { - if (prop === "isExtensible") { - isEnumerable = true; - } - } - - delete Object.isExtensible; +for (var prop in Object) { + if (prop === "isExtensible") { + isEnumerable = true; + } +} - var isConfigurable = !Object.hasOwnProperty("isExtensible"); +delete Object.isExtensible; + +var isConfigurable = !Object.hasOwnProperty("isExtensible"); assert(propertyAreCorrect, 'propertyAreCorrect !== true'); assert(isWritable, 'isWritable !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-61.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-61.js index a07c7e4dd8..59ece60977 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-61.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-61.js @@ -12,9 +12,13 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { value: undefined }); +Object.defineProperty(obj, "foo", { + value: undefined +}); -Object.defineProperty(obj, "foo", { value: undefined }); +Object.defineProperty(obj, "foo", { + value: undefined +}); verifyEqualTo(obj, "foo", undefined); verifyNotWritable(obj, "foo"); @@ -22,4 +26,3 @@ verifyNotWritable(obj, "foo"); verifyNotEnumerable(obj, "foo"); verifyNotConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-610.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-610.js index 07cc6c4d87..36a508a238 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-610.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-610.js @@ -6,27 +6,27 @@ es5id: 15.2.3.6-4-610 description: ES5 Attributes - all attributes in Object.keys are correct ---*/ - var desc = Object.getOwnPropertyDescriptor(Object, "keys"); +var desc = Object.getOwnPropertyDescriptor(Object, "keys"); - var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); +var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); - var temp = Object.keys; +var temp = Object.keys; - Object.keys = "2010"; +Object.keys = "2010"; - var isWritable = (Object.keys === "2010"); +var isWritable = (Object.keys === "2010"); - var isEnumerable = false; +var isEnumerable = false; - for (var prop in Object) { - if (prop === "keys") { - isEnumerable = true; - } - } - - delete Object.keys; +for (var prop in Object) { + if (prop === "keys") { + isEnumerable = true; + } +} - var isConfigurable = !Object.hasOwnProperty("keys"); +delete Object.keys; + +var isConfigurable = !Object.hasOwnProperty("keys"); assert(propertyAreCorrect, 'propertyAreCorrect !== true'); assert(isWritable, 'isWritable !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-611.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-611.js index aa0a5b9ce8..65d279313c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-611.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-611.js @@ -8,27 +8,27 @@ description: > correct ---*/ - var desc = Object.getOwnPropertyDescriptor(Function.prototype, "bind"); +var desc = Object.getOwnPropertyDescriptor(Function.prototype, "bind"); - var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); +var propertyAreCorrect = (desc.writable === true && desc.enumerable === false && desc.configurable === true); - var temp = Function.prototype.bind; +var temp = Function.prototype.bind; - Function.prototype.bind = "2010"; +Function.prototype.bind = "2010"; - var isWritable = (Function.prototype.bind === "2010"); +var isWritable = (Function.prototype.bind === "2010"); - var isEnumerable = false; +var isEnumerable = false; - for (var prop in Function.prototype) { - if (prop === "bind") { - isEnumerable = true; - } - } - - delete Function.prototype.bind; +for (var prop in Function.prototype) { + if (prop === "bind") { + isEnumerable = true; + } +} - var isConfigurable = !Function.prototype.hasOwnProperty("bind"); +delete Function.prototype.bind; + +var isConfigurable = !Function.prototype.hasOwnProperty("bind"); assert(propertyAreCorrect, 'propertyAreCorrect !== true'); assert(isWritable, 'isWritable !== true'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-612.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-612.js index 74ff9cba3a..d643c1b208 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 58bf1afa62..b775e09e94 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 cd393df4cf..1a4b20786f 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 172758c2c6..837e8922f6 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 4a53ab993a..73a58e8dd6 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 7e41f46c4e..64509a0a09 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 27492e2e35..1bac706cdc 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 408f1417da..7a16d04bd1 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 6e1344b5ba..34ae7d592b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-62.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-62.js @@ -12,9 +12,13 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { value: null }); +Object.defineProperty(obj, "foo", { + value: null +}); -Object.defineProperty(obj, "foo", { value: null }); +Object.defineProperty(obj, "foo", { + value: null +}); verifyEqualTo(obj, "foo", null); verifyNotWritable(obj, "foo"); @@ -22,4 +26,3 @@ verifyNotWritable(obj, "foo"); verifyNotEnumerable(obj, "foo"); verifyNotConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-620.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-620.js index e2a9f56f50..dc134044bc 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 b7e2ebf5cb..547d0f7f29 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 c587d33d4e..6a537f6b99 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 f96eb0c02e..d36c2cb57e 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 5b6abba13f..e95f78499b 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 e5285a4b9b..bef1e27b4d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-625gs.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-625gs.js @@ -8,12 +8,17 @@ description: > Object.prototype property of the same name ---*/ -Object.defineProperty(Object.prototype, - "prop", - { value: 1001, writable: false, enumerable: false, configurable: false} - ); +Object.defineProperty(Object.prototype, + "prop", + { + value: 1001, + writable: false, + enumerable: false, + configurable: false + } +); var prop = 1002; -if (! (this.hasOwnProperty("prop") && prop === 1002)) { - throw "this.prop should take precedence over Object.prototype.prop"; +if (!(this.hasOwnProperty("prop") && prop === 1002)) { + throw "this.prop should take precedence over Object.prototype.prop"; } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-63.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-63.js index 0c89597d36..a336364bb1 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-63.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-63.js @@ -11,9 +11,13 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { value: NaN }); +Object.defineProperty(obj, "foo", { + value: NaN +}); -Object.defineProperty(obj, "foo", { value: NaN }); +Object.defineProperty(obj, "foo", { + value: NaN +}); assert.sameValue(obj.foo, NaN); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-64.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-64.js index 05cf0f67d6..b079432a35 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-64.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-64.js @@ -12,23 +12,27 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { value: -0 }); +Object.defineProperty(obj, "foo", { + value: -0 +}); try { - Object.defineProperty(obj, "foo", { value: +0 }); - $ERROR("Expected an exception."); + Object.defineProperty(obj, "foo", { + value: +0 + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(obj, "foo", -0); + verifyEqualTo(obj, "foo", -0); - verifyNotWritable(obj, "foo"); + verifyNotWritable(obj, "foo"); - verifyNotEnumerable(obj, "foo"); + verifyNotEnumerable(obj, "foo"); - verifyNotConfigurable(obj, "foo"); + verifyNotConfigurable(obj, "foo"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-65.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-65.js index 329a9293a8..d420ffa4e8 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-65.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-65.js @@ -12,22 +12,26 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { value: +0 }); +Object.defineProperty(obj, "foo", { + value: +0 +}); try { - Object.defineProperty(obj, "foo", { value: -0 }); - $ERROR("Expected an exception."); + Object.defineProperty(obj, "foo", { + value: -0 + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(obj, "foo", +0); + verifyEqualTo(obj, "foo", +0); - verifyNotWritable(obj, "foo"); + verifyNotWritable(obj, "foo"); - verifyNotEnumerable(obj, "foo"); + verifyNotEnumerable(obj, "foo"); - verifyNotConfigurable(obj, "foo"); + verifyNotConfigurable(obj, "foo"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-66.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-66.js index 128e8a6071..457c20314a 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-66.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-66.js @@ -14,7 +14,9 @@ var obj = {}; obj.foo = 101; // default value of attributes: writable: true, configurable: true, enumerable: true -Object.defineProperty(obj, "foo", { value: 102 }); +Object.defineProperty(obj, "foo", { + value: 102 +}); verifyEqualTo(obj, "foo", 102); verifyWritable(obj, "foo"); @@ -22,4 +24,3 @@ verifyWritable(obj, "foo"); verifyEnumerable(obj, "foo"); verifyConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-67.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-67.js index b681149f40..5331d82f41 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-67.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-67.js @@ -13,9 +13,13 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { value: "abcd" }); +Object.defineProperty(obj, "foo", { + value: "abcd" +}); -Object.defineProperty(obj, "foo", { value: "abcd" }); +Object.defineProperty(obj, "foo", { + value: "abcd" +}); verifyEqualTo(obj, "foo", "abcd"); verifyNotWritable(obj, "foo"); @@ -23,4 +27,3 @@ verifyNotWritable(obj, "foo"); verifyNotEnumerable(obj, "foo"); verifyNotConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-68.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-68.js index b2892e41b7..8f3f2a3acc 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-68.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-68.js @@ -14,7 +14,9 @@ var obj = {}; obj.foo = "abcd"; // default value of attributes: writable: true, configurable: true, enumerable: true -Object.defineProperty(obj, "foo", { value: "fghj" }); +Object.defineProperty(obj, "foo", { + value: "fghj" +}); verifyEqualTo(obj, "foo", "fghj"); verifyWritable(obj, "foo"); @@ -22,4 +24,3 @@ verifyWritable(obj, "foo"); verifyEnumerable(obj, "foo"); verifyConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-69.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-69.js index ca1faa8681..a7b26daf98 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-69.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-69.js @@ -12,9 +12,13 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { value: true }); +Object.defineProperty(obj, "foo", { + value: true +}); -Object.defineProperty(obj, "foo", { value: true }); +Object.defineProperty(obj, "foo", { + value: true +}); verifyEqualTo(obj, "foo", true); verifyNotWritable(obj, "foo"); @@ -22,4 +26,3 @@ verifyNotWritable(obj, "foo"); verifyNotEnumerable(obj, "foo"); verifyNotConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-7.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-7.js index 036161d3a1..1c0cf64e9b 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-7.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-7.js @@ -12,17 +12,23 @@ description: > [[Configurable]] from false to true ---*/ - var o = {}; +var o = {}; - // create a data valued property; all other attributes default to false. - var d1 = { value: 101, configurable: false }; - Object.defineProperty(o, "foo", d1); +// create a data valued property; all other attributes default to false. +var d1 = { + value: 101, + configurable: false +}; +Object.defineProperty(o, "foo", d1); - var desc = { value: 101, configurable: true }; +var desc = { + value: 101, + configurable: true +}; assert.throws(TypeError, function() { - Object.defineProperty(o, "foo", desc); + Object.defineProperty(o, "foo", desc); }); - // the property should remain unchanged. - var d2 = Object.getOwnPropertyDescriptor(o, "foo"); +// the property should remain unchanged. +var d2 = Object.getOwnPropertyDescriptor(o, "foo"); assert.sameValue(d2.value, 101, 'd2.value'); assert.sameValue(d2.configurable, false, 'd2.configurable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-70.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-70.js index cc5354fdb2..716f34d96f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-70.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-70.js @@ -14,7 +14,9 @@ var obj = {}; obj.foo = true; // default value of attributes: writable: true, configurable: true, enumerable: true -Object.defineProperty(obj, "foo", { value: false }); +Object.defineProperty(obj, "foo", { + value: false +}); verifyEqualTo(obj, "foo", false); verifyWritable(obj, "foo"); @@ -22,4 +24,3 @@ verifyWritable(obj, "foo"); verifyEnumerable(obj, "foo"); verifyConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-71.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-71.js index e2d5ae2e37..ec1d4d9b92 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-71.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-71.js @@ -12,11 +12,17 @@ includes: [propertyHelper.js] var obj = {}; -var obj1 = { length: 10 }; +var obj1 = { + length: 10 +}; -Object.defineProperty(obj, "foo", { value: obj1 }); +Object.defineProperty(obj, "foo", { + value: obj1 +}); -Object.defineProperty(obj, "foo", { value: obj1 }); +Object.defineProperty(obj, "foo", { + value: obj1 +}); verifyEqualTo(obj, "foo", obj1); verifyNotWritable(obj, "foo"); @@ -24,4 +30,3 @@ verifyNotWritable(obj, "foo"); verifyNotEnumerable(obj, "foo"); verifyNotConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-72.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-72.js index 1ee4fd7e51..c0acc806fd 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-72.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-72.js @@ -12,12 +12,18 @@ includes: [propertyHelper.js] var obj = {}; -var obj1 = { length: 10 }; +var obj1 = { + length: 10 +}; obj.foo = obj1; // default value of attributes: writable: true, configurable: true, enumerable: true -var obj2 = { length: 20 }; +var obj2 = { + length: 20 +}; -Object.defineProperty(obj, "foo", { value: obj2 }); +Object.defineProperty(obj, "foo", { + value: obj2 +}); verifyEqualTo(obj, "foo", obj2); verifyWritable(obj, "foo"); @@ -25,4 +31,3 @@ verifyWritable(obj, "foo"); verifyEnumerable(obj, "foo"); verifyConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-73.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-73.js index 0a478b234a..eb436b8ff4 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-73.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-73.js @@ -12,9 +12,13 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { writable: false}); +Object.defineProperty(obj, "foo", { + writable: false +}); -Object.defineProperty(obj, "foo", { writable: false }); +Object.defineProperty(obj, "foo", { + writable: false +}); verifyEqualTo(obj, "foo", undefined); verifyNotWritable(obj, "foo"); @@ -22,4 +26,3 @@ verifyNotWritable(obj, "foo"); verifyNotEnumerable(obj, "foo"); verifyNotConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-74.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-74.js index 4f20edeeec..6a413f5ab6 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-74.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-74.js @@ -12,9 +12,14 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { writable: false, configurable: true }); - -Object.defineProperty(obj, "foo", { writable: true }); +Object.defineProperty(obj, "foo", { + writable: false, + configurable: true +}); + +Object.defineProperty(obj, "foo", { + writable: true +}); verifyEqualTo(obj, "foo", undefined); verifyWritable(obj, "foo"); @@ -22,4 +27,3 @@ verifyWritable(obj, "foo"); verifyNotEnumerable(obj, "foo"); verifyConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-75.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-75.js index ab6aa88b3a..833298e2a9 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-75.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-75.js @@ -13,18 +13,21 @@ includes: [propertyHelper.js] var obj = {}; function getFunc() { - return 10; + return 10; } + function setFunc(value) { - obj.helpVerifySet = value; + obj.helpVerifySet = value; } Object.defineProperty(obj, "foo", { - get: getFunc, - set: setFunc + get: getFunc, + set: setFunc }); -Object.defineProperty(obj, "foo", { get: getFunc }); +Object.defineProperty(obj, "foo", { + get: getFunc +}); verifyEqualTo(obj, "foo", getFunc()); verifyWritable(obj, "foo", "helpVerifySet"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-76.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-76.js index 7be62f266c..7473dbac8e 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-76.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-76.js @@ -13,23 +13,26 @@ includes: [propertyHelper.js] var obj = {}; function getFunc1() { - return 10; + return 10; } + function setFunc1(value) { - obj.helpVerifySet = value; + obj.helpVerifySet = value; } Object.defineProperty(obj, "foo", { - get: getFunc1, - set: setFunc1, - configurable: true + get: getFunc1, + set: setFunc1, + configurable: true }); function getFunc2() { - return 20; + return 20; } -Object.defineProperty(obj, "foo", { get: getFunc2 }); +Object.defineProperty(obj, "foo", { + get: getFunc2 +}); verifyEqualTo(obj, "foo", getFunc2()); verifyWritable(obj, "foo", "helpVerifySet"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-77.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-77.js index 2573a5b588..4dbddfefab 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-77.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-77.js @@ -13,12 +13,16 @@ includes: [propertyHelper.js] var obj = {}; function setFunc(value) { - obj.setVerifyHelpProp = value; + obj.setVerifyHelpProp = value; } -Object.defineProperty(obj, "foo", { set: setFunc }); +Object.defineProperty(obj, "foo", { + set: setFunc +}); -Object.defineProperty(obj, "foo", { set: setFunc }); +Object.defineProperty(obj, "foo", { + set: setFunc +}); verifyWritable(obj, "foo", "setVerifyHelpProp"); verifyNotEnumerable(obj, "foo"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-78.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-78.js index 773592d735..e49b9787db 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-78.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-78.js @@ -12,18 +12,20 @@ includes: [propertyHelper.js] var obj = {}; -function setFunc1() { } +function setFunc1() {} Object.defineProperty(obj, "foo", { - set: setFunc1, - configurable: true + set: setFunc1, + configurable: true }); function setFunc2(value) { - obj.setVerifyHelpProp = value; + obj.setVerifyHelpProp = value; } -Object.defineProperty(obj, "foo", { set: setFunc2 }); +Object.defineProperty(obj, "foo", { + set: setFunc2 +}); verifyWritable(obj, "foo", "setVerifyHelpProp"); verifyNotEnumerable(obj, "foo"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-79.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-79.js index b88d4b8394..62476d0bc9 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-79.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-79.js @@ -12,9 +12,13 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { enumerable: false }); +Object.defineProperty(obj, "foo", { + enumerable: false +}); -Object.defineProperty(obj, "foo", { enumerable: false }); +Object.defineProperty(obj, "foo", { + enumerable: false +}); verifyEqualTo(obj, "foo", undefined); verifyNotWritable(obj, "foo"); @@ -22,4 +26,3 @@ verifyNotWritable(obj, "foo"); verifyNotEnumerable(obj, "foo"); verifyNotConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-8.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-8.js index f9467c0965..90115f997f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-8.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-8.js @@ -14,20 +14,27 @@ description: > properties ---*/ - var o = {}; +var o = {}; - // create a data valued property; all other attributes default to false. - var d1 = { value: 101, enumerable: false, configurable: false }; - Object.defineProperty(o, "foo", d1); +// create a data valued property; all other attributes default to false. +var d1 = { + value: 101, + enumerable: false, + configurable: false +}; +Object.defineProperty(o, "foo", d1); - // now, setting enumerable to true should fail, since [[Configurable]] - // on the original property will be false. - var desc = { value: 101, enumerable: true }; +// now, setting enumerable to true should fail, since [[Configurable]] +// on the original property will be false. +var desc = { + value: 101, + enumerable: true +}; assert.throws(TypeError, function() { - Object.defineProperty(o, "foo", desc); + Object.defineProperty(o, "foo", desc); }); - // the property should remain unchanged. - var d2 = Object.getOwnPropertyDescriptor(o, "foo"); +// the property should remain unchanged. +var d2 = Object.getOwnPropertyDescriptor(o, "foo"); assert.sameValue(d2.value, 101, 'd2.value'); assert.sameValue(d2.enumerable, false, 'd2.enumerable'); assert.sameValue(d2.configurable, false, 'd2.configurable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-80.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-80.js index 71050073a5..c71b320e5f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-80.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-80.js @@ -12,9 +12,14 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { enumerable: false, configurable: true }); - -Object.defineProperty(obj, "foo", { enumerable: true }); +Object.defineProperty(obj, "foo", { + enumerable: false, + configurable: true +}); + +Object.defineProperty(obj, "foo", { + enumerable: true +}); verifyEqualTo(obj, "foo", undefined); verifyNotWritable(obj, "foo"); @@ -22,4 +27,3 @@ verifyNotWritable(obj, "foo"); verifyEnumerable(obj, "foo"); verifyConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-81.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-81.js index 5a7c25ec97..26939a862f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-81.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-81.js @@ -12,9 +12,13 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { configurable: false }); +Object.defineProperty(obj, "foo", { + configurable: false +}); -Object.defineProperty(obj, "foo", { configurable: false }); +Object.defineProperty(obj, "foo", { + configurable: false +}); verifyEqualTo(obj, "foo", undefined); verifyNotWritable(obj, "foo"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-82-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-82-1.js index 7cafbaa6f0..f7e965c621 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 ff1075e574..ee190b0242 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 e4f8e8ce93..293711b618 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 34294da076..7c20a6c1ae 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 120a65e49f..d7905a3f12 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 c53a47d844..d3c9a5a46c 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 fb191540cd..d03591c065 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 c3362692ea..5f2f3bf393 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 608f07aee1..c999cf1bbd 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 80c1c7ce0d..7aead07eef 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 6e704bbbda..54fcb81c56 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 9eead22a11..be51111350 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 89e42a486d..7ab7217985 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 0aa8831138..629a5e9dfe 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 d0f960060e..cd26dfba0d 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 1fa1daa88d..137b1ba4ce 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 676cd48a58..8bb8149144 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 bf0880cb3a..af0980148a 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 5a3da0fb0d..0d11ba790c 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 86cb8b09bb..cc9bb95f22 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 818f0afebe..15ee855b7c 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 a18058bdf4..9d6c0c23bf 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 56794eab39..230531fd86 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 fd9beee2c0..2d660c23c4 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 ceb54f6c44..71081cb23f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-82.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-82.js @@ -12,9 +12,13 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { configurable: true }); +Object.defineProperty(obj, "foo", { + configurable: true +}); -Object.defineProperty(obj, "foo", { configurable: false }); +Object.defineProperty(obj, "foo", { + configurable: false +}); verifyEqualTo(obj, "foo", undefined); verifyNotWritable(obj, "foo"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-83.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-83.js index dd76c7c361..6bcec607fb 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 1fc19e5634..701d3ef464 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 1c8a838100..7499fb8b5a 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 5d58e5e4a2..e302bff64e 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-86.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-86.js @@ -13,26 +13,28 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { - value: -0, - writable: false, - configurable: false +Object.defineProperty(obj, "foo", { + value: -0, + writable: false, + configurable: false }); try { - Object.defineProperty(obj, "foo", { value: +0 }); - $ERROR("Expected an exception."); + Object.defineProperty(obj, "foo", { + value: +0 + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(obj, "foo", -0); + verifyEqualTo(obj, "foo", -0); - verifyNotWritable(obj, "foo"); + verifyNotWritable(obj, "foo"); - verifyNotEnumerable(obj, "foo"); + verifyNotEnumerable(obj, "foo"); - verifyNotConfigurable(obj, "foo"); + verifyNotConfigurable(obj, "foo"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-87.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-87.js index 658c027381..a7edd420c5 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-87.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-87.js @@ -13,26 +13,28 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { - value: +0, - writable: false, - configurable: false +Object.defineProperty(obj, "foo", { + value: +0, + writable: false, + configurable: false }); try { - Object.defineProperty(obj, "foo", { value: -0 }); - $ERROR("Expected an exception."); + Object.defineProperty(obj, "foo", { + value: -0 + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(obj, "foo", +0); + verifyEqualTo(obj, "foo", +0); - verifyNotWritable(obj, "foo"); + verifyNotWritable(obj, "foo"); - verifyNotEnumerable(obj, "foo"); + verifyNotEnumerable(obj, "foo"); - verifyNotConfigurable(obj, "foo"); + verifyNotConfigurable(obj, "foo"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-88.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-88.js index df0b9cce9f..fb949aa349 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-88.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-88.js @@ -14,13 +14,15 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { - value: 100, - writable: false, - configurable: false +Object.defineProperty(obj, "foo", { + value: 100, + writable: false, + configurable: false }); -Object.defineProperty(obj, "foo", { value: 100 }); +Object.defineProperty(obj, "foo", { + value: 100 +}); verifyEqualTo(obj, "foo", 100); verifyNotWritable(obj, "foo"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-89.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-89.js index 84efee09b7..dbbf9c6199 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-89.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-89.js @@ -13,26 +13,28 @@ includes: [propertyHelper.js] var obj = {}; -Object.defineProperty(obj, "foo", { - value: 10, - writable: false, - configurable: false +Object.defineProperty(obj, "foo", { + value: 10, + writable: false, + configurable: false }); try { - Object.defineProperty(obj, "foo", { value: 20 }); - $ERROR("Expected an exception."); + Object.defineProperty(obj, "foo", { + value: 20 + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(obj, "foo", 10); + verifyEqualTo(obj, "foo", 10); - verifyNotWritable(obj, "foo"); + verifyNotWritable(obj, "foo"); - verifyNotEnumerable(obj, "foo"); + verifyNotEnumerable(obj, "foo"); - verifyNotConfigurable(obj, "foo"); + verifyNotConfigurable(obj, "foo"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-9.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-9.js index 4b1db5430e..2c3b16687d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-9.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-9.js @@ -14,21 +14,28 @@ description: > properties ---*/ - var o = {}; +var o = {}; - // create a data valued property with [[Enumerable]] explicitly set to true; - // all other attributes default to false. - var d1 = { value: 101, enumerable: true, configurable: false }; - Object.defineProperty(o, "foo", d1); +// create a data valued property with [[Enumerable]] explicitly set to true; +// all other attributes default to false. +var d1 = { + value: 101, + enumerable: true, + configurable: false +}; +Object.defineProperty(o, "foo", d1); - // now, setting enumerable to false should fail, since [[Configurable]] - // on the original property will be false. - var desc = { value: 101, enumerable: false }; +// now, setting enumerable to false should fail, since [[Configurable]] +// on the original property will be false. +var desc = { + value: 101, + enumerable: false +}; assert.throws(TypeError, function() { - Object.defineProperty(o, "foo", desc); + Object.defineProperty(o, "foo", desc); }); - // the property should remain unchanged. - var d2 = Object.getOwnPropertyDescriptor(o, "foo"); +// the property should remain unchanged. +var d2 = Object.getOwnPropertyDescriptor(o, "foo"); assert.sameValue(d2.value, 101, 'd2.value'); assert.sameValue(d2.enumerable, true, 'd2.enumerable'); assert.sameValue(d2.configurable, false, 'd2.configurable'); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-90.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-90.js index 76fd36ba7e..9466f4b070 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-90.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-90.js @@ -15,12 +15,14 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "foo", { - value: "abcd", - writable: false, - configurable: false + value: "abcd", + writable: false, + configurable: false }); -Object.defineProperty(obj, "foo", { value: "abcd" }); +Object.defineProperty(obj, "foo", { + value: "abcd" +}); verifyEqualTo(obj, "foo", "abcd"); verifyNotWritable(obj, "foo"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-91.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-91.js index 22b598ddb6..0f9ae100eb 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-91.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-91.js @@ -14,25 +14,27 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "foo", { - value: "abcd", - writable: false, - configurable: false + value: "abcd", + writable: false, + configurable: false }); try { - Object.defineProperty(obj, "foo", { value: "fghj" }); - $ERROR("Expected an exception."); + Object.defineProperty(obj, "foo", { + value: "fghj" + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(obj, "foo", "abcd"); + verifyEqualTo(obj, "foo", "abcd"); - verifyNotWritable(obj, "foo"); + verifyNotWritable(obj, "foo"); - verifyNotEnumerable(obj, "foo"); + verifyNotEnumerable(obj, "foo"); - verifyNotConfigurable(obj, "foo"); + verifyNotConfigurable(obj, "foo"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-92.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-92.js index 407a863658..925c95364c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-92.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-92.js @@ -15,12 +15,14 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "foo", { - value: false, - writable: false, - configurable: false + value: false, + writable: false, + configurable: false }); -Object.defineProperty(obj, "foo", { value: false }); +Object.defineProperty(obj, "foo", { + value: false +}); verifyEqualTo(obj, "foo", false); verifyNotWritable(obj, "foo"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-93.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-93.js index d9cbc75632..867b24e24d 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-93.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-93.js @@ -14,25 +14,27 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "foo", { - value: false, - writable: false, - configurable: false + value: false, + writable: false, + configurable: false }); try { - Object.defineProperty(obj, "foo", { value: true }); - $ERROR("Expected an exception."); + Object.defineProperty(obj, "foo", { + value: true + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(obj, "foo", false); + verifyEqualTo(obj, "foo", false); - verifyNotWritable(obj, "foo"); + verifyNotWritable(obj, "foo"); - verifyNotEnumerable(obj, "foo"); + verifyNotEnumerable(obj, "foo"); - verifyNotConfigurable(obj, "foo"); + verifyNotConfigurable(obj, "foo"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-94.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-94.js index d348eb05a9..ab9e265987 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-94.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-94.js @@ -14,15 +14,19 @@ includes: [propertyHelper.js] var obj = {}; -var obj1 = { length: 10 }; +var obj1 = { + length: 10 +}; Object.defineProperty(obj, "foo", { - value: obj1, - writable: false, - configurable: false + value: obj1, + writable: false, + configurable: false }); -Object.defineProperty(obj, "foo", { value: obj1 }); +Object.defineProperty(obj, "foo", { + value: obj1 +}); verifyEqualTo(obj, "foo", obj1); verifyNotWritable(obj, "foo"); @@ -30,4 +34,3 @@ verifyNotWritable(obj, "foo"); verifyNotEnumerable(obj, "foo"); verifyNotConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-95.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-95.js index 593676afcf..4157be5779 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-95.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-95.js @@ -14,30 +14,36 @@ includes: [propertyHelper.js] var obj = {}; -var obj1 = { length: 10 }; +var obj1 = { + length: 10 +}; Object.defineProperty(obj, "foo", { - value: obj1, - writable: false, - configurable: false + value: obj1, + writable: false, + configurable: false }); -var obj2 = { length: 20 }; +var obj2 = { + length: 20 +}; try { - Object.defineProperty(obj, "foo", { value: obj2 }); - $ERROR("Expected an exception."); + Object.defineProperty(obj, "foo", { + value: obj2 + }); + $ERROR("Expected an exception."); } catch (e) { - verifyEqualTo(obj, "foo", obj1); + verifyEqualTo(obj, "foo", obj1); - verifyNotWritable(obj, "foo"); + verifyNotWritable(obj, "foo"); - verifyNotEnumerable(obj, "foo"); + verifyNotEnumerable(obj, "foo"); - verifyNotConfigurable(obj, "foo"); + verifyNotConfigurable(obj, "foo"); - if (!(e instanceof TypeError)) { - $ERROR("Expected TypeError, got " + e); - } + if (!(e instanceof TypeError)) { + $ERROR("Expected TypeError, got " + e); + } } diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-96.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-96.js index db6e38287f..0f8ebadfad 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-96.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-96.js @@ -14,15 +14,17 @@ includes: [propertyHelper.js] var obj = {}; function setFunc(value) { - obj.setVerifyHelpProp = value; + obj.setVerifyHelpProp = value; } Object.defineProperty(obj, "foo", { - set: setFunc, - configurable: false + set: setFunc, + configurable: false }); -Object.defineProperty(obj, "foo", { set: setFunc }); +Object.defineProperty(obj, "foo", { + set: setFunc +}); verifyWritable(obj, "foo", "setVerifyHelpProp"); verifyNotEnumerable(obj, "foo"); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-97.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-97.js index 4203a94f07..501e58cb34 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 b849e29703..eb0f2a07cf 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-98.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-98.js @@ -14,19 +14,22 @@ includes: [propertyHelper.js] var obj = {}; function getFunc() { - return 10; + return 10; } + function setFunc(value) { - obj.verifyGetHelpMethod = value; + obj.verifyGetHelpMethod = value; } Object.defineProperty(obj, "foo", { - get: getFunc, - set: setFunc, - configurable: false + get: getFunc, + set: setFunc, + configurable: false }); -Object.defineProperty(obj, "foo", { get: getFunc }); +Object.defineProperty(obj, "foo", { + get: getFunc +}); verifyEqualTo(obj, "foo", getFunc()); diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-99.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-99.js index 5991d786c8..ee0111080e 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 17e8b1667f..7523521469 100644 --- a/test/built-ins/Object/defineProperty/8.12.9-9-b-i_1.js +++ b/test/built-ins/Object/defineProperty/8.12.9-9-b-i_1.js @@ -8,17 +8,23 @@ description: > on a newly non-extensible object ---*/ - var o = {}; - Object.defineProperty(o, "foo", - { value: "hello", - configurable: true}); - Object.preventExtensions(o); - Object.defineProperty(o, "foo", { get: function() { return 5;} }); +var o = {}; +Object.defineProperty(o, "foo", +{ + value: "hello", + configurable: true +}); +Object.preventExtensions(o); +Object.defineProperty(o, "foo", { + get: function() { + return 5; + } +}); - var fooDescrip = Object.getOwnPropertyDescriptor(o, "foo"); +var fooDescrip = Object.getOwnPropertyDescriptor(o, "foo"); assert.sameValue(o.foo, 5, 'o.foo'); -assert(fooDescrip.get!==undefined, 'fooDescrip.get!==undefined !== true'); +assert(fooDescrip.get !== undefined, 'fooDescrip.get!==undefined !== true'); assert.sameValue(fooDescrip.set, undefined, 'fooDescrip.set'); assert.sameValue(fooDescrip.value, undefined, 'fooDescrip.value'); assert.sameValue(fooDescrip.configurable, true, 'fooDescrip.configurable'); diff --git a/test/built-ins/Object/defineProperty/8.12.9-9-b-i_2.js b/test/built-ins/Object/defineProperty/8.12.9-9-b-i_2.js index 00ab01527b..57e5292478 100644 --- a/test/built-ins/Object/defineProperty/8.12.9-9-b-i_2.js +++ b/test/built-ins/Object/defineProperty/8.12.9-9-b-i_2.js @@ -8,19 +8,25 @@ description: > on a newly non-extensible object ---*/ - var o = {}; - Object.defineProperty(o, "foo", - { value: "hello", - configurable: true, - enumerable: true, - writable: true}); - Object.preventExtensions(o); - Object.defineProperty(o, "foo", { get: function() { return 5;} }); +var o = {}; +Object.defineProperty(o, "foo", +{ + value: "hello", + configurable: true, + enumerable: true, + writable: true +}); +Object.preventExtensions(o); +Object.defineProperty(o, "foo", { + get: function() { + return 5; + } +}); - var fooDescrip = Object.getOwnPropertyDescriptor(o, "foo"); +var fooDescrip = Object.getOwnPropertyDescriptor(o, "foo"); assert.sameValue(o.foo, 5, 'o.foo'); -assert(fooDescrip.get!==undefined, 'fooDescrip.get!==undefined !== true'); +assert(fooDescrip.get !== undefined, 'fooDescrip.get!==undefined !== true'); assert.sameValue(fooDescrip.set, undefined, 'fooDescrip.set'); assert.sameValue(fooDescrip.value, undefined, 'fooDescrip.value'); assert.sameValue(fooDescrip.configurable, true, 'fooDescrip.configurable'); diff --git a/test/built-ins/Object/defineProperty/8.12.9-9-c-i_1.js b/test/built-ins/Object/defineProperty/8.12.9-9-c-i_1.js index f64da3594d..b74d2533dd 100644 --- a/test/built-ins/Object/defineProperty/8.12.9-9-c-i_1.js +++ b/test/built-ins/Object/defineProperty/8.12.9-9-c-i_1.js @@ -8,14 +8,20 @@ description: > a non-extensible object ---*/ - var o = {}; - Object.defineProperty(o, "foo", - { get: function() { return 5;}, - configurable: true}); - Object.preventExtensions(o); - Object.defineProperty(o, "foo", { value: "hello"}); +var o = {}; +Object.defineProperty(o, "foo", +{ + get: function() { + return 5; + }, + configurable: true +}); +Object.preventExtensions(o); +Object.defineProperty(o, "foo", { + value: "hello" +}); - var fooDescrip = Object.getOwnPropertyDescriptor(o, "foo"); +var fooDescrip = Object.getOwnPropertyDescriptor(o, "foo"); assert.sameValue(o.foo, "hello", 'o.foo'); assert.sameValue(fooDescrip.get, undefined, 'fooDescrip.get'); diff --git a/test/built-ins/Object/defineProperty/8.12.9-9-c-i_2.js b/test/built-ins/Object/defineProperty/8.12.9-9-c-i_2.js index 118ff856fe..e99ebffe54 100644 --- a/test/built-ins/Object/defineProperty/8.12.9-9-c-i_2.js +++ b/test/built-ins/Object/defineProperty/8.12.9-9-c-i_2.js @@ -8,16 +8,22 @@ description: > a non-extensible object ---*/ - var o = {}; - Object.defineProperty(o, "foo", - { get: function() { return 5;}, - configurable: true}); - Object.preventExtensions(o); - Object.defineProperty(o, "foo", - { value: "hello", - writable: true}); +var o = {}; +Object.defineProperty(o, "foo", +{ + get: function() { + return 5; + }, + configurable: true +}); +Object.preventExtensions(o); +Object.defineProperty(o, "foo", +{ + value: "hello", + writable: true +}); - var fooDescrip = Object.getOwnPropertyDescriptor(o, "foo"); +var fooDescrip = Object.getOwnPropertyDescriptor(o, "foo"); assert.sameValue(o.foo, "hello", 'o.foo'); assert.sameValue(fooDescrip.get, undefined, 'fooDescrip.get'); diff --git a/test/built-ins/Object/defineProperty/S15.2.3.6_A1.js b/test/built-ins/Object/defineProperty/S15.2.3.6_A1.js index 4042dd3da6..151157c484 100644 --- a/test/built-ins/Object/defineProperty/S15.2.3.6_A1.js +++ b/test/built-ins/Object/defineProperty/S15.2.3.6_A1.js @@ -12,10 +12,12 @@ es5id: 15.2.3.6_A1 description: Do getters on HTMLFormElements disappear? ---*/ -function getter() { return 'gotten'; } +function getter() { + return 'gotten'; +} if (typeof document !== 'undefined' && - typeof document.createElement === 'function') { + typeof document.createElement === 'function') { var f = document.createElement("form"); var refused = false; try { diff --git a/test/built-ins/Object/defineProperty/S15.2.3.6_A2.js b/test/built-ins/Object/defineProperty/S15.2.3.6_A2.js index b672f9b85d..05e6aa3c19 100644 --- a/test/built-ins/Object/defineProperty/S15.2.3.6_A2.js +++ b/test/built-ins/Object/defineProperty/S15.2.3.6_A2.js @@ -10,8 +10,13 @@ description: > var base = {}; var derived = Object.create(base); -function getter() { return 'gotten'; } -Object.defineProperty(base, 'foo', {get: getter}); + +function getter() { + return 'gotten'; +} +Object.defineProperty(base, 'foo', { + get: getter +}); if (derived.hasOwnProperty('foo')) { $ERROR('Accessor properties inherit as own properties'); } diff --git a/test/built-ins/Object/entries/exception-during-enumeration.js b/test/built-ins/Object/entries/exception-during-enumeration.js index 0720a47f0f..c4dba3f558 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 de90d9d6c5..75e73145e7 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 ec6db2ffce..7f336d2530 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 09eca7b163..f8843919aa 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 c3e3cc721c..3007fe0518 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 05ef0d512f..7953236d17 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 d80b506513..d43cc5530e 100644 --- a/test/built-ins/Object/entries/observable-operations.js +++ b/test/built-ins/Object/entries/observable-operations.js @@ -10,27 +10,31 @@ includes: [proxyTrapsHelper.js] ---*/ var log = ""; -var object = { a: 0, b: 0, c: 0 }; +var object = { + a: 0, + b: 0, + c: 0 +}; var handler = allowProxyTraps({ - get: function (target, propertyKey, receiver) { + get: function(target, propertyKey, receiver) { assert.sameValue(target, object, "get target"); assert.sameValue(receiver, proxy, "get receiver"); log += "|get:" + propertyKey; return target[propertyKey]; }, - getOwnPropertyDescriptor: function (target, propertyKey) { + getOwnPropertyDescriptor: function(target, propertyKey) { assert.sameValue(target, object, "getOwnPropertyDescriptor"); log += "|getOwnPropertyDescriptor:" + propertyKey; return Object.getOwnPropertyDescriptor(target, propertyKey); }, - ownKeys: function (target) { + ownKeys: function(target) { assert.sameValue(target, object, "ownKeys"); log += "|ownKeys"; return Object.getOwnPropertyNames(target); } }); var check = allowProxyTraps({ - get: function (target, propertyKey, receiver) { + get: function(target, propertyKey, receiver) { assert(propertyKey in target, "handler check: " + propertyKey); return target[propertyKey]; } diff --git a/test/built-ins/Object/entries/symbols-omitted.js b/test/built-ins/Object/entries/symbols-omitted.js index 076c167771..d753ee64e4 100644 --- a/test/built-ins/Object/entries/symbols-omitted.js +++ b/test/built-ins/Object/entries/symbols-omitted.js @@ -13,9 +13,14 @@ var enumSym = Symbol('enum'); var nonEnumSym = Symbol('nonenum'); var symValue = Symbol('value'); -var obj = { key: symValue }; +var obj = { + key: symValue +}; obj[enumSym] = value; -Object.defineProperty(obj, nonEnumSym, { enumerable: false, value: value }); +Object.defineProperty(obj, nonEnumSym, { + enumerable: false, + value: value +}); var result = Object.entries(obj); diff --git a/test/built-ins/Object/entries/tamper-with-global-object.js b/test/built-ins/Object/entries/tamper-with-global-object.js index 1ad4e18a2f..cea8a87bb4 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 10e8a6d5f0..7217292f0f 100644 --- a/test/built-ins/Object/entries/tamper-with-object-keys.js +++ b/test/built-ins/Object/entries/tamper-with-object-keys.js @@ -9,10 +9,12 @@ author: Jordan Harband ---*/ function fakeObjectKeys() { - $ERROR('The overriden version of Object.keys was called!'); + $ERROR('The overriden version of Object.keys was called!'); } Object.keys = fakeObjectKeys; assert.sameValue(Object.keys, fakeObjectKeys, 'Sanity check failed: could not modify the global Object.keys'); -assert.sameValue(Object.entries({ a: 1 }).length, 1, 'Expected object with 1 key to have 1 entry'); +assert.sameValue(Object.entries({ + a: 1 +}).length, 1, 'Expected object with 1 key to have 1 entry'); diff --git a/test/built-ins/Object/freeze/15.2.3.9-0-1.js b/test/built-ins/Object/freeze/15.2.3.9-0-1.js index 45b5cd8245..261f61d80f 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 76978ce785..0d8e14854b 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 9249c022ab..91a2e93a14 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 81c279ee80..6a97759d83 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 067469bccb..cd3b224034 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 a60b13e989..d606706a2a 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 18d4ea2213..8dc4b46580 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 61ebe20c15..ba48691d6d 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 19114667e2..5c171f1ac5 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 2de41643aa..ba3d34bae3 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 91f1c1a01e..9148948646 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-a-11.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-a-11.js @@ -11,7 +11,9 @@ includes: [propertyHelper.js] // default [[Configurable]] attribute value of "0": true -var argObj = (function () { return arguments; }(1, 2, 3)); +var argObj = (function() { + return arguments; +}(1, 2, 3)); Object.freeze(argObj); @@ -20,4 +22,3 @@ var desc = Object.getOwnPropertyDescriptor(argObj, "0"); verifyNotWritable(argObj, "0"); verifyNotConfigurable(argObj, "0"); assert.sameValue(argObj[0], 1); - diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-a-13.js b/test/built-ins/Object/freeze/15.2.3.9-2-a-13.js index 1abca86d87..ed8efa0fd6 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-a-13.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-a-13.js @@ -9,7 +9,11 @@ includes: [propertyHelper.js] // default [[Configurable]] attribute value of "0": true -var obj = { 0: 0, 1: 1, length: 2}; +var obj = { + 0: 0, + 1: 1, + length: 2 +}; Object.freeze(obj); diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-a-2.js b/test/built-ins/Object/freeze/15.2.3.9-2-a-2.js index b5a0f75369..23e20c4256 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-a-2.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-a-2.js @@ -10,9 +10,11 @@ includes: [propertyHelper.js] ---*/ -var proto = { foo: 0 }; // default [[Configurable]] attribute value of foo: true +var proto = { + foo: 0 +}; // default [[Configurable]] attribute value of foo: true -var Con = function () { }; +var Con = function() {}; Con.prototype = proto; var child = new Con(); diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-a-3.js b/test/built-ins/Object/freeze/15.2.3.9-2-a-3.js index f623c5e935..f84894b00e 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 6a5212d023..e8d22fca04 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 1ffa486a13..598187ff97 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 3f5bb5c037..6295b1f087 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 4f24b0f632..75024a84bc 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-a-7.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-a-7.js @@ -9,7 +9,9 @@ description: > includes: [propertyHelper.js] ---*/ -var argObj = (function () { return arguments; }()); +var argObj = (function() { + return arguments; +}()); argObj.foo = 10; // default [[Configurable]] attribute value of foo: true diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-a-9.js b/test/built-ins/Object/freeze/15.2.3.9-2-a-9.js index c7dcdf73c3..e4b21256b0 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 46362bcd35..96de0e1f7d 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-b-i-1.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-b-i-1.js @@ -12,10 +12,10 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "foo", { - value: 10, - writable: true, - enumerable: true, - configurable: false + value: 10, + writable: true, + enumerable: true, + configurable: false }); Object.freeze(obj); @@ -30,10 +30,9 @@ verifyEnumerable(obj, "foo"); verifyNotConfigurable(obj, "foo"); if (desc.writable !== false) { - $ERROR('Expected desc.writable === false, actually ' + desc.writable); + $ERROR('Expected desc.writable === false, actually ' + desc.writable); } if (desc.configurable !== false) { - $ERROR('Expected desc.configurable === false, actually ' + desc.configurable); + $ERROR('Expected desc.configurable === false, actually ' + desc.configurable); } - diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-b-i-2.js b/test/built-ins/Object/freeze/15.2.3.9-2-b-i-2.js index 5c6f4c28a5..150f18635c 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-b-i-2.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-b-i-2.js @@ -13,17 +13,17 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "foo1", { - value: 10, - writable: false, - enumerable: true, - configurable: false + value: 10, + writable: false, + enumerable: true, + configurable: false }); Object.defineProperty(obj, "foo2", { - value: 20, - writable: true, - enumerable: false, - configurable: false + value: 20, + writable: true, + enumerable: false, + configurable: false }); Object.freeze(obj); @@ -48,18 +48,17 @@ verifyNotEnumerable(obj, "foo2"); verifyNotConfigurable(obj, "foo2"); if (desc1.configurable !== false) { - $ERROR('Expected desc1.configurable === false, actually ' + desc1.configurable); + $ERROR('Expected desc1.configurable === false, actually ' + desc1.configurable); } if (desc1.writable !== false) { - $ERROR('Expected desc1.writable === false, actually ' + desc1.writable); + $ERROR('Expected desc1.writable === false, actually ' + desc1.writable); } if (desc2.configurable !== false) { - $ERROR('Expected desc2.configurable === false, actually ' + desc2.configurable); + $ERROR('Expected desc2.configurable === false, actually ' + desc2.configurable); } if (desc2.writable !== false) { - $ERROR('Expected desc2.writable === false, actually ' + desc2.writable); + $ERROR('Expected desc2.writable === false, actually ' + desc2.writable); } - diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-c-1.js b/test/built-ins/Object/freeze/15.2.3.9-2-c-1.js index 12bd46769e..ea4ad70eac 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-c-1.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-c-1.js @@ -13,10 +13,10 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "foo", { - value: 10, - writable: false, - enumerable: true, - configurable: true + value: 10, + writable: false, + enumerable: true, + configurable: true }); Object.freeze(obj); @@ -24,10 +24,10 @@ Object.freeze(obj); var desc = Object.getOwnPropertyDescriptor(obj, "foo"); if (desc.configurable !== false) { - $ERROR("Expected desc.configurable to be false, actually " + desc.configurable); + $ERROR("Expected desc.configurable to be false, actually " + desc.configurable); } if (desc.writable !== false) { - $ERROR("Expected desc.writable to be false, actually " + desc.writable); + $ERROR("Expected desc.writable to be false, actually " + desc.writable); } verifyEqualTo(obj, "foo", 10); @@ -37,4 +37,3 @@ verifyNotWritable(obj, "foo"); verifyEnumerable(obj, "foo"); verifyNotConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-c-2.js b/test/built-ins/Object/freeze/15.2.3.9-2-c-2.js index e40f69a8d2..59bdbad51b 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-c-2.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-c-2.js @@ -13,19 +13,20 @@ includes: [propertyHelper.js] var obj = {}; function get_func() { - return 10; + return 10; } var set_funcCalled = false; + function set_func() { - set_funcCalled = true; + set_funcCalled = true; } Object.defineProperty(obj, "foo", { - get: get_func, - set: set_func, - enumerable: true, - configurable: true + get: get_func, + set: set_func, + enumerable: true, + configurable: true }); Object.freeze(obj); diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-c-3.js b/test/built-ins/Object/freeze/15.2.3.9-2-c-3.js index 06f74d5b64..5f0d7c1d23 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-c-3.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-c-3.js @@ -14,25 +14,25 @@ var obj = {}; var resultSetFun = false; Object.defineProperty(obj, "foo1", { - value: 10, - writable: false, - enumerable: true, - configurable: true + value: 10, + writable: false, + enumerable: true, + configurable: true }); function get_func() { - return 10; + return 10; } function set_func() { - resultSetFun = true; + resultSetFun = true; } Object.defineProperty(obj, "foo2", { - get: get_func, - set: set_func, - enumerable: true, - configurable: true + get: get_func, + set: set_func, + enumerable: true, + configurable: true }); Object.freeze(obj); @@ -42,21 +42,21 @@ verifyEqualTo(obj, "foo2", 10); obj.foo2 = 12; if (!resultSetFun) { - $ERROR('Expected obj["foo2"] set() to be called, but was not.'); + $ERROR('Expected obj["foo2"] set() to be called, but was not.'); } if (!isEnumerable(obj, "foo2")) { - $ERROR('Expected obj["foo2"] to be enumerable.'); + $ERROR('Expected obj["foo2"] to be enumerable.'); } var desc1 = Object.getOwnPropertyDescriptor(obj, "foo1"); if (desc1.configurable || desc1.writable) { - $ERROR('Expected obj["foo1"] to be non-writable, non-configurable; actually ' + JSON.stringify(desc1)); + $ERROR('Expected obj["foo1"] to be non-writable, non-configurable; actually ' + JSON.stringify(desc1)); } var desc2 = Object.getOwnPropertyDescriptor(obj, "foo2"); if (desc2.configurable || desc2.writable) { - $ERROR('Expected obj["foo2"] to be non-writable, non-configurable; actually ' + JSON.stringify(desc2)); + $ERROR('Expected obj["foo2"] to be non-writable, non-configurable; actually ' + JSON.stringify(desc2)); } verifyEqualTo(obj, "foo1", 10); @@ -66,4 +66,3 @@ verifyNotWritable(obj, "foo1"); verifyEnumerable(obj, "foo1"); verifyNotConfigurable(obj, "foo1"); - diff --git a/test/built-ins/Object/freeze/15.2.3.9-2-c-4.js b/test/built-ins/Object/freeze/15.2.3.9-2-c-4.js index 53cfacb650..6723c16f05 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 5a7b953d7d..08e133137d 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 00b492ac87..4476444b00 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 0abb0a7eec..e361b904fc 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 02994757cd..160f139698 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 3b22cfa109..bd55c8c7e6 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 f07460a8cd..1b82d65614 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 b855a071c8..d8245d9030 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 34e2648c4d..7afbbd574c 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 877a8ba88d..2779fd7e85 100644 --- a/test/built-ins/Object/freeze/15.2.3.9-2-d-9.js +++ b/test/built-ins/Object/freeze/15.2.3.9-2-d-9.js @@ -6,8 +6,10 @@ es5id: 15.2.3.9-2-d-9 description: Object.freeze - 'O' is the Arguments object ---*/ - var argObj = (function () { return arguments; } ()); +var argObj = (function() { + return arguments; +}()); - Object.freeze(argObj); +Object.freeze(argObj); assert(Object.isFrozen(argObj), 'Object.isFrozen(argObj) !== true'); diff --git a/test/built-ins/Object/freeze/15.2.3.9-3-1.js b/test/built-ins/Object/freeze/15.2.3.9-3-1.js index be171a5d4e..64a970518b 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 68169779a6..dabf74a65e 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 1dd1d33503..3bf475a593 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 4e3623cace..8c4098a1f9 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 bc63911fa3..06bd2366ad 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 09b8587145..b342f25730 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 580a6811b7..c964e63f83 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 f11a5206e0..fd890bfbbf 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 b2713da646..ce7d31d500 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 579f005bf3..dc5742fb74 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 51c962ec84..93cd1929df 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-10.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-10.js @@ -8,8 +8,10 @@ description: > converts to a string (value is -0) ---*/ - var obj = { "0": 1 }; +var obj = { + "0": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, -0); +var desc = Object.getOwnPropertyDescriptor(obj, -0); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-11.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-11.js index 6096a9edd7..f21d393e1f 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-11.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-11.js @@ -8,8 +8,10 @@ description: > converts to a string (value is positive number) ---*/ - var obj = { "30": 1 }; +var obj = { + "30": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, 30); +var desc = Object.getOwnPropertyDescriptor(obj, 30); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-12.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-12.js index dd07bbf9d4..75f4f8c8b2 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-12.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-12.js @@ -8,8 +8,10 @@ description: > converts to a string (value is negative number) ---*/ - var obj = { "-20": 1 }; +var obj = { + "-20": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, -20); +var desc = Object.getOwnPropertyDescriptor(obj, -20); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-13.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-13.js index aaf67dc7ea..aa55b35d8e 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-13.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-13.js @@ -8,8 +8,10 @@ description: > converts to a string (value is Infinity) ---*/ - var obj = { "Infinity": 1 }; +var obj = { + "Infinity": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, Infinity); +var desc = Object.getOwnPropertyDescriptor(obj, Infinity); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-14.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-14.js index 4ec76de3f5..a41bb95af6 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-14.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-14.js @@ -8,8 +8,10 @@ description: > converts to a string (value is +Infinity) ---*/ - var obj = { "Infinity": 1 }; +var obj = { + "Infinity": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, +Infinity); +var desc = Object.getOwnPropertyDescriptor(obj, +Infinity); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-15.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-15.js index 5550e02a12..dd9c09a85a 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-15.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-15.js @@ -8,8 +8,10 @@ description: > converts to a string (value is -Infinity) ---*/ - var obj = { "-Infinity": 1 }; +var obj = { + "-Infinity": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, -Infinity); +var desc = Object.getOwnPropertyDescriptor(obj, -Infinity); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-16.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-16.js index 9806a60dc2..785f6861a7 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-16.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-16.js @@ -8,8 +8,10 @@ description: > converts to a string (value is 1(following 20 zeros)) ---*/ - var obj = { "100000000000000000000": 1 }; +var obj = { + "100000000000000000000": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, 100000000000000000000); +var desc = Object.getOwnPropertyDescriptor(obj, 100000000000000000000); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-17.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-17.js index e665e5f7be..a3c9d6f18a 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-17.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-17.js @@ -8,8 +8,10 @@ description: > converts to a string (value is 1(following 21 zeros)) ---*/ - var obj = { "1e+21": 1 }; +var obj = { + "1e+21": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, 1000000000000000000000); +var desc = Object.getOwnPropertyDescriptor(obj, 1000000000000000000000); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-18.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-18.js index 52629a60e0..2ef0990de3 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-18.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-18.js @@ -8,8 +8,10 @@ description: > converts to a string (value is 1(following 22 zeros)) ---*/ - var obj = { "1e+22": 1 }; +var obj = { + "1e+22": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, 10000000000000000000000); +var desc = Object.getOwnPropertyDescriptor(obj, 10000000000000000000000); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-19.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-19.js index 2efc16d3a2..fb0f4d6dbf 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-19.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-19.js @@ -8,8 +8,10 @@ description: > converts to a string (value is 1e+20) ---*/ - var obj = { "100000000000000000000": 1 }; +var obj = { + "100000000000000000000": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, 1e+20); +var desc = Object.getOwnPropertyDescriptor(obj, 1e+20); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-2.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-2.js index ec8e546878..df6c5fdcbc 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 b2cc6480bf..649393d820 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-20.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-20.js @@ -8,8 +8,10 @@ description: > converts to string (value is 1e+21) ---*/ - var obj = { "1e+21": 1 }; +var obj = { + "1e+21": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, 1e+21); +var desc = Object.getOwnPropertyDescriptor(obj, 1e+21); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-21.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-21.js index a11547398b..d56079fe28 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-21.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-21.js @@ -8,8 +8,10 @@ description: > converts to a string (value is 1e+22) ---*/ - var obj = { "1e+22": 1 }; +var obj = { + "1e+22": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, 1e+22); +var desc = Object.getOwnPropertyDescriptor(obj, 1e+22); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-22.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-22.js index 80cbf6f4ee..b9dd094171 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-22.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-22.js @@ -8,8 +8,10 @@ description: > converts to a string (value is 0.000001) ---*/ - var obj = { "0.000001": 1 }; +var obj = { + "0.000001": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, 0.000001); +var desc = Object.getOwnPropertyDescriptor(obj, 0.000001); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-23.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-23.js index 2398ebc574..27f12e8187 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-23.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-23.js @@ -8,8 +8,10 @@ description: > converts to a string (value is 0.0000001) ---*/ - var obj = { "1e-7": 1 }; +var obj = { + "1e-7": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, 0.0000001); +var desc = Object.getOwnPropertyDescriptor(obj, 0.0000001); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-24.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-24.js index b3cf0bb3c5..4cef9d9ea3 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-24.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-24.js @@ -8,8 +8,10 @@ description: > converts to a string (value is 0.00000001) ---*/ - var obj = { "1e-8": 1 }; +var obj = { + "1e-8": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, 0.00000001); +var desc = Object.getOwnPropertyDescriptor(obj, 0.00000001); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-25.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-25.js index cab2b57b43..e4aac303bf 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-25.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-25.js @@ -8,8 +8,10 @@ description: > converts to a string (value is 1e-7) ---*/ - var obj = { "1e-7": 1 }; +var obj = { + "1e-7": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, 1e-7); +var desc = Object.getOwnPropertyDescriptor(obj, 1e-7); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-26.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-26.js index 2b096d817a..b7fdd5710e 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-26.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-26.js @@ -8,8 +8,10 @@ description: > converts to a string (value is 1e-6) ---*/ - var obj = { "0.000001": 1 }; +var obj = { + "0.000001": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, 1e-6); +var desc = Object.getOwnPropertyDescriptor(obj, 1e-6); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-27.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-27.js index 9cda3a078d..4036580a7a 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-27.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-27.js @@ -8,8 +8,10 @@ description: > converts to a string (value is 1e-5) ---*/ - var obj = { "0.00001": 1 }; +var obj = { + "0.00001": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, 1e-5); +var desc = Object.getOwnPropertyDescriptor(obj, 1e-5); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-28.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-28.js index 907ef59417..de8d35cbc6 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-28.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-28.js @@ -8,8 +8,10 @@ description: > converts to a string (value is 123) ---*/ - var obj = { "123": 1 }; +var obj = { + "123": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, 123); +var desc = Object.getOwnPropertyDescriptor(obj, 123); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-29.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-29.js index 3450595896..1ab3f7e787 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-29.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-29.js @@ -8,8 +8,10 @@ description: > converts to a string (value is 123.456) ---*/ - var obj = { "123.456": 1 }; +var obj = { + "123.456": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, 123.456); +var desc = Object.getOwnPropertyDescriptor(obj, 123.456); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-3.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-3.js index 0d6b390443..890f7e1619 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-3.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-3.js @@ -6,10 +6,12 @@ es5id: 15.2.3.3-2-3 description: Object.getOwnPropertyDescriptor - argument 'P' is undefined ---*/ - var obj = { "undefined": 1 }; +var obj = { + "undefined": 1 +}; - var desc1 = Object.getOwnPropertyDescriptor(obj, undefined); - var desc2 = Object.getOwnPropertyDescriptor(obj, "undefined"); +var desc1 = Object.getOwnPropertyDescriptor(obj, undefined); +var desc2 = Object.getOwnPropertyDescriptor(obj, "undefined"); assert.sameValue(desc1.value, 1, 'desc1.value'); assert.sameValue(desc2.value, 1, 'desc2.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-30.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-30.js index 765ffb5844..399b98b973 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-30.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-30.js @@ -8,9 +8,11 @@ description: > converts to a string (value is 100000000000000000000.123) ---*/ - var obj = { "100000000000000000000": 1 }; +var obj = { + "100000000000000000000": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, 100000000000000000000.123); +var desc = Object.getOwnPropertyDescriptor(obj, 100000000000000000000.123); assert(typeof desc !== "undefined", 'typeof desc !== "undefined" !== true'); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-31.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-31.js index 6012c8bc19..038d7c37a8 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-31.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-31.js @@ -8,8 +8,10 @@ description: > converts to a string (value is 123.1234567) ---*/ - var obj = { "123.1234567": 1 }; +var obj = { + "123.1234567": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, 123.1234567); +var desc = Object.getOwnPropertyDescriptor(obj, 123.1234567); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-32.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-32.js index e3769e7bdb..dbda5e5917 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-32.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-32.js @@ -8,8 +8,10 @@ description: > empty string ---*/ - var obj = { "": 1 }; +var obj = { + "": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, ""); +var desc = Object.getOwnPropertyDescriptor(obj, ""); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-33.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-33.js index 15f3eb2ae9..70e270e0f4 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-33.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-33.js @@ -8,8 +8,10 @@ description: > string 'AB \cd' ---*/ - var obj = { "AB\n\\cd": 1 }; +var obj = { + "AB\n\\cd": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, "AB\n\\cd"); +var desc = Object.getOwnPropertyDescriptor(obj, "AB\n\\cd"); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-34.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-34.js index e6eb6681e5..ee9bab0bae 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-34.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-34.js @@ -8,8 +8,10 @@ description: > string 'undefined' ---*/ - var obj = { "undefined": 1 }; +var obj = { + "undefined": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, "undefined"); +var desc = Object.getOwnPropertyDescriptor(obj, "undefined"); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-35.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-35.js index d0de7e71ee..dd19c246cc 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-35.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-35.js @@ -8,8 +8,10 @@ description: > string 'null' ---*/ - var obj = { "null": 1 }; +var obj = { + "null": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, "null"); +var desc = Object.getOwnPropertyDescriptor(obj, "null"); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-36.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-36.js index e8fa1a1640..73a1dec326 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-36.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-36.js @@ -8,8 +8,10 @@ description: > string '123���¦�cd' ---*/ - var obj = { "123���¦�cd": 1 }; +var obj = { + "123���¦�cd": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, "123���¦�cd"); +var desc = Object.getOwnPropertyDescriptor(obj, "123���¦�cd"); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-37.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-37.js index 8fe16690bd..13294c6af9 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-37.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-37.js @@ -8,8 +8,10 @@ description: > string '1' ---*/ - var obj = { "1": 1 }; +var obj = { + "1": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, 1); +var desc = Object.getOwnPropertyDescriptor(obj, 1); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-38.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-38.js index 6d3ae01351..2c6dabd184 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-38.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-38.js @@ -8,8 +8,10 @@ description: > converts to a string ---*/ - var obj = { "1": 1 }; +var obj = { + "1": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, [1]); +var desc = Object.getOwnPropertyDescriptor(obj, [1]); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-39.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-39.js index 92c9d4f620..f1ee178ea7 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-39.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-39.js @@ -8,8 +8,10 @@ description: > that converts to a string ---*/ - var obj = { "Hello": 1 }; +var obj = { + "Hello": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, new String("Hello")); +var desc = Object.getOwnPropertyDescriptor(obj, new String("Hello")); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-4.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-4.js index 9cdca680fb..37174cc8b7 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-4.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-4.js @@ -8,8 +8,10 @@ description: > converts to string 'null' ---*/ - var obj = { "null": 1 }; +var obj = { + "null": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, null); +var desc = Object.getOwnPropertyDescriptor(obj, null); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-40.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-40.js index d810506921..d83d4dd441 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-40.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-40.js @@ -8,8 +8,10 @@ description: > that converts to a string ---*/ - var obj = { "true": 1 }; +var obj = { + "true": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, new Boolean(true)); +var desc = Object.getOwnPropertyDescriptor(obj, new Boolean(true)); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-41.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-41.js index 88ab0b4c4e..fdf304e46c 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-41.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-41.js @@ -8,8 +8,10 @@ description: > that converts to a string ---*/ - var obj = { "123": 1 }; +var obj = { + "123": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, new Number(123)); +var desc = Object.getOwnPropertyDescriptor(obj, new Number(123)); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-42.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-42.js index ecc16066c4..645b796683 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-42.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-42.js @@ -8,14 +8,16 @@ description: > has an own toString method ---*/ - var obj = { "abc": 1 }; +var obj = { + "abc": 1 +}; - var ownProp = { - toString: function () { - return "abc"; - } - }; +var ownProp = { + toString: function() { + return "abc"; + } +}; - var desc = Object.getOwnPropertyDescriptor(obj, ownProp); +var desc = Object.getOwnPropertyDescriptor(obj, ownProp); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-43.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-43.js index fbfb42f510..782eff3ec5 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-43.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-43.js @@ -8,14 +8,17 @@ description: > has an own valueOf method ---*/ - var obj = { "[object Object]": 1, "abc" : 2 }; +var obj = { + "[object Object]": 1, + "abc": 2 +}; - var ownProp = { - valueOf: function () { - return "abc"; - } - }; +var ownProp = { + valueOf: function() { + return "abc"; + } +}; - var desc = Object.getOwnPropertyDescriptor(obj, ownProp); +var desc = Object.getOwnPropertyDescriptor(obj, ownProp); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-44.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-44.js index 115f34333b..5ba605c21b 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-44.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-44.js @@ -9,22 +9,24 @@ description: > method that returns a primitive value ---*/ - var obj = { "abc": 1 }; - var valueOfAccessed = false; - var toStringAccessed = false; +var obj = { + "abc": 1 +}; +var valueOfAccessed = false; +var toStringAccessed = false; - var ownProp = { - toString: function () { - toStringAccessed = true; - return {}; - }, - valueOf: function () { - valueOfAccessed = true; - return "abc"; - } - }; +var ownProp = { + toString: function() { + toStringAccessed = true; + return {}; + }, + valueOf: function() { + valueOfAccessed = true; + return "abc"; + } +}; - var desc = Object.getOwnPropertyDescriptor(obj, ownProp); +var desc = Object.getOwnPropertyDescriptor(obj, ownProp); assert.sameValue(desc.value, 1, 'desc.value'); assert(valueOfAccessed, 'valueOfAccessed !== true'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-45.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-45.js index aa318dc2f6..1df1af980e 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-45.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-45.js @@ -8,20 +8,23 @@ description: > has an own toString and valueOf method ---*/ - var obj = { "bbq": 1, "abc": 2 }; - var valueOfAccessed = false; +var obj = { + "bbq": 1, + "abc": 2 +}; +var valueOfAccessed = false; - var ownProp = { - toString: function () { - return "bbq"; - }, - valueOf: function () { - valueOfAccessed = true; - return "abc"; - } - }; +var ownProp = { + toString: function() { + return "bbq"; + }, + valueOf: function() { + valueOfAccessed = true; + return "abc"; + } +}; - var desc = Object.getOwnPropertyDescriptor(obj, ownProp); +var desc = Object.getOwnPropertyDescriptor(obj, ownProp); assert.sameValue(desc.value, 1, 'desc.value'); assert.sameValue(valueOfAccessed, false, 'valueOfAccessed'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-46.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-46.js index 4527a76d35..9c1e96bb6b 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-46.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-46.js @@ -9,22 +9,24 @@ description: > return primitive value ---*/ - var obj = { "1": 1 }; - var toStringAccessed = false; - var valueOfAccessed = false; +var obj = { + "1": 1 +}; +var toStringAccessed = false; +var valueOfAccessed = false; - var ownProp = { - toString: function () { - toStringAccessed = true; - return [1]; - }, - valueOf: function () { - valueOfAccessed = true; - return [1]; - } - }; +var ownProp = { + toString: function() { + toStringAccessed = true; + return [1]; + }, + valueOf: function() { + valueOfAccessed = true; + return [1]; + } +}; assert.throws(TypeError, function() { - Object.getOwnPropertyDescriptor(obj, ownProp); + Object.getOwnPropertyDescriptor(obj, ownProp); }); assert(toStringAccessed, 'toStringAccessed !== true'); assert(valueOfAccessed, 'valueOfAccessed !== true'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-47.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-47.js index f07c6f385d..cd99194fdc 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-47.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-47.js @@ -9,25 +9,28 @@ description: > methods ---*/ - var proto = {}; - var valueOfAccessed = false; - var toStringAccessed = false; +var proto = {}; +var valueOfAccessed = false; +var toStringAccessed = false; - proto.toString = function () { - toStringAccessed = true; - return "test"; - }; +proto.toString = function() { + toStringAccessed = true; + return "test"; +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child.valueOf = function () { - valueOfAccessed = true; - return "10"; - }; - var obj = { "10": "length1", "test": "length2" }; - var desc = Object.getOwnPropertyDescriptor(obj, child); +var child = new Con(); +child.valueOf = function() { + valueOfAccessed = true; + return "10"; +}; +var obj = { + "10": "length1", + "test": "length2" +}; +var desc = Object.getOwnPropertyDescriptor(obj, child); assert.sameValue(desc.value, "length2", 'desc.value'); assert(toStringAccessed, 'toStringAccessed !== true'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-5.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-5.js index 5a332dfaae..5ab62d5a65 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-5.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-5.js @@ -8,8 +8,10 @@ description: > value is false ---*/ - var obj = { "false": 1 }; +var obj = { + "false": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, false); +var desc = Object.getOwnPropertyDescriptor(obj, false); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-6.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-6.js index 66f9b1dd6d..f1f764c8ee 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-6.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-6.js @@ -8,8 +8,10 @@ description: > value is true ---*/ - var obj = { "true": 1 }; +var obj = { + "true": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, true); +var desc = Object.getOwnPropertyDescriptor(obj, true); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-7.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-7.js index 5077f4049e..0eb07a4aee 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-7.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-7.js @@ -8,8 +8,10 @@ description: > converts to a string (value is NaN) ---*/ - var obj = { "NaN": 1 }; +var obj = { + "NaN": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, NaN); +var desc = Object.getOwnPropertyDescriptor(obj, NaN); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-8.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-8.js index 0b38934c20..675c6e1974 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-8.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-8.js @@ -8,8 +8,10 @@ description: > converts to a string (value is 0) ---*/ - var obj = { "0": 1 }; +var obj = { + "0": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, 0); +var desc = Object.getOwnPropertyDescriptor(obj, 0); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-9.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-9.js index 88bd6bda1a..ed5f3da402 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-9.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-9.js @@ -8,8 +8,10 @@ description: > converts to a string (value is +0) ---*/ - var obj = { "0": 1 }; +var obj = { + "0": 1 +}; - var desc = Object.getOwnPropertyDescriptor(obj, +0); +var desc = Object.getOwnPropertyDescriptor(obj, +0); assert.sameValue(desc.value, 1, 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-1.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-3-1.js index cb66bc4f4f..5c1f6f09eb 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 7246259096..06586605d4 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 2640e9092a..da3072f649 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 d6fce8e890..30e82b197e 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 3f12ff690e..c502df6bd4 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 09f56f6dea..19d53b2574 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 930eccc68f..2c9e90de3e 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 a01c60d49d..851c54d28a 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 0baa73874a..01ec7c316d 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 c2e77346d0..ad3d38a428 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 b8caeb90d4..564bc93121 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 05e0bcd206..82728fcea8 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 c2f364066b..e91378c74f 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 5a6ffb8f2e..99b4f77adb 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 d82974ad95..658afee5d7 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 78551fec91..44ae3836f6 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 dfdb37d1b7..ebbfc04313 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 302bc798e6..863357238b 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 57806ffe6f..5c5bcb827b 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 66f69b55ec..c9871c201a 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 5643e8feba..8332ba5c9f 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 9db5008435..3a66c0f5e7 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 9df5a48126..467105fc75 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 fe1004579a..913855a31e 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 8001e1dd65..a0313c2d4a 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 18a41a1275..347b69fa6d 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 8410bc9687..3a54493119 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 8d7a89f556..0b31471e43 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 445f7adb06..3fc765308d 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 c4d1aecc83..4e2bb6f10c 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 e111b361a0..282a755b51 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 7cc8f4b450..2f4e0059e2 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 023c9a9ef1..b366d8e21e 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 bc009fc36d..a68cf618a1 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 1570586260..699ddb6a44 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 2915ede2a3..b6edce9c35 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 4bd159bf5b..072a3824c0 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 6516d89177..ebeca9afc3 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 421ca744e1..281de8f6c3 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 789e7ba064..5e1a8e7251 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 b6dcb8c6bc..69292234f7 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 4d315aca02..119bba91f0 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 ec29ff4607..32e9a2c36b 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 4df71b5a70..c33ec2bb53 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 00c26597d2..d90f9e4ee4 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 b5ff8f4492..487801924d 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 ce2f09bf87..d2303ab38d 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 5f6d6e8055..dec0756387 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 458a9962a7..f2d24056d6 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 0b21982757..96254062b4 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 2859d423c3..3f941517e0 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 3e8f047047..d2073d8aa3 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 e0346638aa..f16b291a84 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 feac0f29d8..138ca19db4 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 5b24001616..35426608dd 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 9b10d08003..97bf10aba9 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 0044448d2a..0c4dd78adc 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 fd380809e0..6e864a4126 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 81c76f8bdb..6f76ec36c0 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 211b12fd7b..2470827dff 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 72a228dc0f..340b107b49 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 6c0fd95aa0..7169eb0f93 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 91dd4ffa9f..d81d4d8542 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 7ae2526102..c05885e1b7 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 122df12b7a..c5a00e4808 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 75f7919ce2..216e06a4db 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 68f15d923c..9896d210db 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 3bf72cdb34..fd70e967ae 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 ac79016a3f..daaa37d007 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 3676e7f497..78e5c6bce1 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 b64b5f2149..346a0756ed 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 273256a21c..eb997ea64e 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 fc30bbdd0d..ce9e912a12 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 b769536862..4a88b81024 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 06c70b3b4d..ed30503219 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 78e8b7f8af..ca31446018 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 18a6dc0589..944934287d 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 1d3cf47cdc..ff105c4e36 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 1bd2da199e..c3afb3bd26 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 717ba8b69f..6d369d11ab 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 387f8b6b00..4771e8aca6 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 adaffc79e2..f27755cc6a 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 03a4174656..a43ddbd1a5 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 90c3efd9a1..63d99d5f56 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 1e4890e17c..63feefb435 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 1b2e42315d..342d1fdefc 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 2deebcd6f7..57fdc472b3 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 f5de8176f4..f7e3c19f8e 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 e60eb6edc0..0c46e234c0 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 38702336b4..167229a645 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 210e33fdf5..d523d25c0c 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 e7a59840e0..63988f6cd3 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 3cac6f215d..81a80b963d 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 52dfbd152c..69d4fe2d83 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 7f5b4903d3..84a7f63a93 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 6a38e5f060..77e69b8cee 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 d7ced8dabc..c97cc2a77f 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 65412185c3..757965b982 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 33da0a40b6..d82ef21fe3 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 3501500ff9..eb4ace4bc0 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 465abc4708..db8b5907b4 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 ce028abd73..a3edb4d6d3 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 157dc97c7d..f03206192b 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 21c83658fe..cb44f5afb4 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 31a6e9cfbf..6e0c6c5861 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 b7111c0fa5..87190a1312 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 950f690bee..09dc4911dc 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 f190508dc7..c1ea614538 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 4f351bf892..5a38e0bd6b 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 e20fb56dc9..6ab1950b2b 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 b0e4b8e0bf..e11dfa8365 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 41d92a8bf2..6e606a500b 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 96cca8650c..bb4b35d8c4 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 c1b5a1fbb0..15a70904d6 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 e09636d451..04dd89bddf 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 660e7d41bc..f813e407ff 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 1f02fbb74c..f93608eb64 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 57fbdce5b9..351b968d02 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 1c444266c9..c071266964 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 7cd42f388e..38618857a3 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 68bafbcb86..178947ac20 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 5eb7df674f..33fef6d03b 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 2b203feb98..04f964d8e1 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 e91ce89ba2..d9a515d092 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 703820573a..17fe2a4faa 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 1025fa7ac8..a2bdee6612 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 a311883b6d..c0576988ef 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 6134a81826..8edc43d25f 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 df90c64898..80b7234bbf 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 0c062b3a38..d5aa1bfb5e 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 57b44134e3..557e7ac86b 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 be1a29328f..eb28300aa1 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 38c6a0721a..4f2745343a 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 f76fd78011..7e0755d366 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 53ee976e35..2155ea564c 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 524d5a9409..99ccb2e3c0 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 d78a100e2f..826b53abdb 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 96f15d285e..09cacdbf2d 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 9ee73cee50..ea9d5b7c7c 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 3c480f1fe4..b8ab7e2a38 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 78ad6671d4..00f08b5139 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 9472c9a6c1..ba924ab64f 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 77a19e11ec..da32c84bb3 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 26be6babdc..d4655ca9ed 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 14882f661e..9124cd3adc 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-223.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-223.js @@ -8,8 +8,10 @@ description: > returned object is data property with correct 'value' attribute ---*/ - var obj = { "property": "ownDataProperty" }; +var obj = { + "property": "ownDataProperty" +}; - var desc = Object.getOwnPropertyDescriptor(obj, "property"); +var desc = Object.getOwnPropertyDescriptor(obj, "property"); assert.sameValue(desc.value, "ownDataProperty", 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-224.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-224.js index 1c84fe8264..f02e8e9e82 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-224.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-224.js @@ -8,10 +8,12 @@ description: > returned object is data property with correct 'writable' attribute ---*/ - var obj = { "property": "ownDataProperty" }; +var obj = { + "property": "ownDataProperty" +}; - var desc = Object.getOwnPropertyDescriptor(obj, "property"); +var desc = Object.getOwnPropertyDescriptor(obj, "property"); - desc.value = "overwriteDataProperty"; +desc.value = "overwriteDataProperty"; assert.sameValue(desc.value, "overwriteDataProperty", 'desc.value'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-225.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-225.js index a0efcad801..660f3fd567 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-225.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-225.js @@ -9,15 +9,17 @@ description: > attribute ---*/ - var obj = { "property": "ownDataProperty" }; +var obj = { + "property": "ownDataProperty" +}; - var desc = Object.getOwnPropertyDescriptor(obj, "property"); - var accessed = false; +var desc = Object.getOwnPropertyDescriptor(obj, "property"); +var accessed = false; - for (var prop in desc) { - if (prop === "value") { - accessed = true; - } - } +for (var prop in desc) { + if (prop === "value") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-226.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-226.js index 326e8d4192..569f772b82 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-226.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-226.js @@ -9,14 +9,16 @@ description: > attribute ---*/ - var obj = { "property": "ownDataProperty" }; +var obj = { + "property": "ownDataProperty" +}; - var desc = Object.getOwnPropertyDescriptor(obj, "property"); +var desc = Object.getOwnPropertyDescriptor(obj, "property"); - var propDefined = "value" in desc; +var propDefined = "value" in desc; - delete desc.value; - var propDeleted = "value" in desc; +delete desc.value; +var propDeleted = "value" in desc; assert(propDefined, 'propDefined !== true'); assert.sameValue(propDeleted, false, 'propDeleted'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-227.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-227.js index bb608b3062..2f57a84ce0 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-227.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-227.js @@ -8,8 +8,10 @@ description: > of returned object is data property with correct 'value' attribute ---*/ - var obj = { "property": "ownDataProperty" }; +var obj = { + "property": "ownDataProperty" +}; - var desc = Object.getOwnPropertyDescriptor(obj, "property"); +var desc = Object.getOwnPropertyDescriptor(obj, "property"); assert.sameValue(desc.writable, true, 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-228.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-228.js index 7bd355aae3..385ae6dd3a 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-228.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-228.js @@ -9,10 +9,12 @@ description: > attribute ---*/ - var obj = { "property": "ownDataProperty" }; +var obj = { + "property": "ownDataProperty" +}; - var desc = Object.getOwnPropertyDescriptor(obj, "property"); +var desc = Object.getOwnPropertyDescriptor(obj, "property"); - desc.writable = "overwriteDataProperty"; +desc.writable = "overwriteDataProperty"; assert.sameValue(desc.writable, "overwriteDataProperty", 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-229.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-229.js index 667429b877..1744420686 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-229.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-229.js @@ -9,15 +9,17 @@ description: > attribute ---*/ - var obj = { "property": "ownDataProperty" }; +var obj = { + "property": "ownDataProperty" +}; - var desc = Object.getOwnPropertyDescriptor(obj, "property"); - var accessed = false; +var desc = Object.getOwnPropertyDescriptor(obj, "property"); +var accessed = false; - for (var props in desc) { - if (props === "writable") { - accessed = true; - } - } +for (var props in desc) { + if (props === "writable") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-23.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-23.js index ffb6f0a008..74b35992fb 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 0e8d7c9208..afaa391460 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-230.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-230.js @@ -9,14 +9,16 @@ description: > attribute ---*/ - var obj = { "property": "ownDataProperty" }; +var obj = { + "property": "ownDataProperty" +}; - var desc = Object.getOwnPropertyDescriptor(obj, "property"); +var desc = Object.getOwnPropertyDescriptor(obj, "property"); - var propDefined = ("writable" in desc); +var propDefined = ("writable" in desc); - delete desc.writable; - var propDeleted = "writable" in desc; +delete desc.writable; +var propDeleted = "writable" in desc; assert(propDefined, 'propDefined !== true'); assert.sameValue(propDeleted, false, 'propDeleted'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-231.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-231.js index a93538a55a..4d336b1298 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-231.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-231.js @@ -9,8 +9,10 @@ description: > attribute ---*/ - var obj = { "property": "ownDataProperty" }; +var obj = { + "property": "ownDataProperty" +}; - var desc = Object.getOwnPropertyDescriptor(obj, "property"); +var desc = Object.getOwnPropertyDescriptor(obj, "property"); assert.sameValue(desc.enumerable, true, 'desc.enumerable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-232.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-232.js index 43203e281d..02ccc8b18b 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-232.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-232.js @@ -9,10 +9,12 @@ description: > 'writable' attribute ---*/ - var obj = { "property": "ownDataProperty" }; +var obj = { + "property": "ownDataProperty" +}; - var desc = Object.getOwnPropertyDescriptor(obj, "property"); +var desc = Object.getOwnPropertyDescriptor(obj, "property"); - desc.enumerable = "overwriteDataProperty"; +desc.enumerable = "overwriteDataProperty"; assert.sameValue(desc.enumerable, "overwriteDataProperty", 'desc.enumerable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-233.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-233.js index 8bffb2b625..693cf215be 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-233.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-233.js @@ -9,15 +9,17 @@ description: > 'enumerable' attribute ---*/ - var obj = { "property": "ownDataProperty" }; +var obj = { + "property": "ownDataProperty" +}; - var desc = Object.getOwnPropertyDescriptor(obj, "property"); - var accessed = false; +var desc = Object.getOwnPropertyDescriptor(obj, "property"); +var accessed = false; - for (var props in desc) { - if (props === "enumerable") { - accessed = true; - } - } +for (var props in desc) { + if (props === "enumerable") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-234.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-234.js index d4c6ea9d83..b28a8f78ca 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-234.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-234.js @@ -9,14 +9,16 @@ description: > 'configurable' attribute ---*/ - var obj = { "property": "ownDataProperty" }; +var obj = { + "property": "ownDataProperty" +}; - var desc = Object.getOwnPropertyDescriptor(obj, "property"); +var desc = Object.getOwnPropertyDescriptor(obj, "property"); - var propDefined = "enumerable" in desc; +var propDefined = "enumerable" in desc; - delete desc.enumerable; - var propDeleted = "enumerable" in desc; +delete desc.enumerable; +var propDeleted = "enumerable" in desc; assert(propDefined, 'propDefined !== true'); assert.sameValue(propDeleted, false, 'propDeleted'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-235.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-235.js index 37c5c80d2c..5586e0d2d7 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-235.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-235.js @@ -9,8 +9,10 @@ description: > attribute ---*/ - var obj = { "property": "ownDataProperty" }; +var obj = { + "property": "ownDataProperty" +}; - var desc = Object.getOwnPropertyDescriptor(obj, "property"); +var desc = Object.getOwnPropertyDescriptor(obj, "property"); assert.sameValue(desc.configurable, true, 'desc.configurable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-236.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-236.js index 960fc5cf34..e0b8746f0c 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-236.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-236.js @@ -9,10 +9,12 @@ description: > 'writable' attribute ---*/ - var obj = { "property": "ownDataProperty" }; +var obj = { + "property": "ownDataProperty" +}; - var desc = Object.getOwnPropertyDescriptor(obj, "property"); +var desc = Object.getOwnPropertyDescriptor(obj, "property"); - desc.writable = "overwriteDataProperty"; +desc.writable = "overwriteDataProperty"; assert.sameValue(desc.writable, "overwriteDataProperty", 'desc.writable'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-237.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-237.js index 1117ab125f..3965570460 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-237.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-237.js @@ -9,15 +9,17 @@ description: > 'enumerable' attribute ---*/ - var obj = { "property": "ownDataProperty" }; +var obj = { + "property": "ownDataProperty" +}; - var desc = Object.getOwnPropertyDescriptor(obj, "property"); - var accessed = false; +var desc = Object.getOwnPropertyDescriptor(obj, "property"); +var accessed = false; - for (var prop in desc) { - if (prop === "configurable") { - accessed = true; - } - } +for (var prop in desc) { + if (prop === "configurable") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-238.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-238.js index 5e877a51dc..d86824cd2e 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-238.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-238.js @@ -9,14 +9,16 @@ description: > 'configurable' attribute ---*/ - var obj = { "property": "ownDataProperty" }; +var obj = { + "property": "ownDataProperty" +}; - var desc = Object.getOwnPropertyDescriptor(obj, "property"); +var desc = Object.getOwnPropertyDescriptor(obj, "property"); - var propDefined = "configurable" in desc; +var propDefined = "configurable" in desc; - delete desc.configurable; - var propDeleted = "configurable" in desc; +delete desc.configurable; +var propDeleted = "configurable" in desc; assert(propDefined, 'propDefined !== true'); assert.sameValue(propDeleted, false, 'propDeleted'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-239.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-239.js index 1216401670..b5fb69c81f 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 6fec737dc1..0660d0871c 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 35f469594b..d5f9a19d55 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 0f0ce28130..d70e6b5561 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 d7800ba620..36efa073e0 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 6fbe775307..81e50951b5 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 1435215972..4083a3b2d6 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 35d73454d2..c89e5efdde 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 210ace76fb..e0ac8701f6 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 06bd87e7ad..55639d9501 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-247.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-247.js @@ -8,8 +8,10 @@ description: > object ---*/ - var obj = { "property": 100 }; +var obj = { + "property": 100 +}; - var desc = Object.getOwnPropertyDescriptor(obj, "property"); +var desc = Object.getOwnPropertyDescriptor(obj, "property"); assert(desc instanceof Object, 'desc instanceof Object !== true'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-248.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-248.js index 210d9286c8..1045ad7ad7 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 e19f7efcea..7d3530a5e7 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 6eadcabf30..2fe24a597b 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 f2863cbe82..48ea22abd6 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 5428c62a32..c5de0e95bc 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 7b223ebdaa..9d8bbda427 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 0c01763f65..2680da34c7 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 05b1775bfa..8c838d5dd5 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 51507f70b5..a21bed132b 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-3.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-3.js @@ -8,15 +8,19 @@ description: > accessor desc for valid accessor properties ---*/ - var o = {}; +var o = {}; - // dummy getter - var getter = function () { return 1; } - var d = { get: getter }; +// dummy getter +var getter = function() { + return 1; +} +var d = { + get: getter +}; - Object.defineProperty(o, "foo", d); +Object.defineProperty(o, "foo", d); - var desc = Object.getOwnPropertyDescriptor(o, "foo"); +var desc = Object.getOwnPropertyDescriptor(o, "foo"); assert.sameValue(desc.get, getter, 'desc.get'); assert.sameValue(desc.set, undefined, 'desc.set'); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-30.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-30.js index 4b21dcaee5..0d40c18b11 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 7d0c1791d6..5b74a6048b 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 df0942fea7..49f9d712a2 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 ce6709d7c3..a2c1a65fea 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 ee5c0a2f79..d03c4335c7 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 f3032e9006..d86d83684c 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 eb0099b59e..fb38e03fc0 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 bd67212c33..b8ff48109c 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 4221bd930e..6045ad5c5a 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 88845ce6ca..af26127eb2 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 a81aad2681..4036f9c96c 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 41ff7c2ed9..9c478e84bc 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 8371829404..2b875fbb35 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 cc6ebd3373..f1ab2659c1 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 aeee8d512f..ab7385cc07 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 9203bfce74..7c704c1deb 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 50148ed31e..e7907fd9df 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 ff1b0d9ed8..35444efa11 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 932f02c609..fba28178cb 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 eded49311d..f489b27152 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 969af5e534..26eb89557c 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 d99651e90e..042a2654da 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 c8edbe16dc..8863e635c6 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 ea44b8ff6f..79f11c572e 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 5081cc3735..c6cf7ae47b 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 82c22d3166..e7ccc2f296 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 04a7d7a2b4..f04a0a7156 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 993393559b..449e316c66 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 02d6dc70f6..0bd51a9a14 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 22bce1956f..650421808b 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 ccc1c60d1f..084062b387 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 0f26101297..7e32febd9f 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 1e4a06e230..d6fc407fad 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 c1322e64c8..a4a7c106cf 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 d01a7fad80..e0d8154a62 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 0bdc7d40e4..faef9f6a3f 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 f1cc351388..999d0feb9f 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 51b1254def..fe18d26393 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 dae2b940f8..18069fc8e0 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 ebc3efd6d2..22e86425a7 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 9d6819d2d7..2fcfbb8938 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 cdd9626620..5201eb059b 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 d1f0b5a916..067ea8590b 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 1c410ce451..9a1a642adf 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 5a3348774b..490a683edf 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 20b8f3cd46..0933b3769c 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 f3a6a9a484..37e0191e24 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 a1b0a50734..01c265da13 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 6bfd04221f..c722ac3d86 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 4044ddd372..90b7a5ff25 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 63118de085..56f378d61a 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 26793f3003..dfcac3a7ea 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 e81d1eb99d..a25d88620e 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 094fcbd888..78adbeba7b 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 577756342c..62c619c154 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 d399238b12..e8c1984782 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 3412ec421a..0ffd73dd7f 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 25ab07de3d..ecf34debd8 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 463d1e39d5..fdc0b7dcd3 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 4b5880d4e1..6b1dae720f 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 130d2d45a6..28821a8420 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 b392e59799..0f53f7bc62 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 ff648971c3..a45bc65924 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 2f8c725270..332e44ec04 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 674acf087f..fcebf3673f 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 553bf70bcc..edda1be2d4 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 76fcf8ae10..cf4a5027d0 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 13159813f7..72aa5a4951 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 603e590b48..61d6192583 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 2c3e9ca5b6..822780fdde 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 3833480fd6..c27ae870c1 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 0fa81e5453..29c3ed9418 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 c11aee65f5..c7d1520607 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 1c1f3a6b78..c2e98cf19b 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 1522f59363..574dbb8ed2 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 90582f0e4e..c7f70689cd 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptors/observable-operations.js +++ b/test/built-ins/Object/getOwnPropertyDescriptors/observable-operations.js @@ -10,21 +10,25 @@ includes: [proxyTrapsHelper.js] ---*/ var log = ""; -var object = { a: 0, b: 0, c: 0 }; +var object = { + a: 0, + b: 0, + c: 0 +}; var handler = allowProxyTraps({ - getOwnPropertyDescriptor: function (target, propertyKey) { + getOwnPropertyDescriptor: function(target, propertyKey) { assert.sameValue(target, object, "getOwnPropertyDescriptor"); log += "|getOwnPropertyDescriptor:" + propertyKey; return Object.getOwnPropertyDescriptor(target, propertyKey); }, - ownKeys: function (target) { + ownKeys: function(target) { assert.sameValue(target, object, "ownKeys"); log += "|ownKeys"; return Object.getOwnPropertyNames(target); } }); var check = allowProxyTraps({ - get: function (target, propertyKey, receiver) { + get: function(target, propertyKey, receiver) { assert(propertyKey in target, "handler check: " + propertyKey); return target[propertyKey]; } diff --git a/test/built-ins/Object/getOwnPropertyDescriptors/primitive-strings.js b/test/built-ins/Object/getOwnPropertyDescriptors/primitive-strings.js index 4c71414111..3ce4b71a96 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptors/primitive-strings.js +++ b/test/built-ins/Object/getOwnPropertyDescriptors/primitive-strings.js @@ -30,4 +30,3 @@ assert.sameValue(result[2].configurable, false, 'index 2 is not configurable'); assert.sameValue(result[2].enumerable, true, 'index 2 is enumerable'); assert.sameValue(result[2].writable, false, 'index 2 is not writable'); assert.sameValue(result[2].value, 'c', 'index 2 is "c"'); - diff --git a/test/built-ins/Object/getOwnPropertyDescriptors/proxy-undefined-descriptor.js b/test/built-ins/Object/getOwnPropertyDescriptors/proxy-undefined-descriptor.js index b03df1304c..f6bf1e078c 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 2cf49a0870..cbfa831d67 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptors/symbols-included.js +++ b/test/built-ins/Object/getOwnPropertyDescriptors/symbols-included.js @@ -13,9 +13,16 @@ var enumSym = Symbol('enum'); var nonEnumSym = Symbol('nonenum'); var symValue = Symbol('value'); -var obj = { key: symValue }; +var obj = { + key: symValue +}; obj[enumSym] = value; -Object.defineProperty(obj, nonEnumSym, { writable: true, enumerable: false, configurable: true, value: value }); +Object.defineProperty(obj, nonEnumSym, { + writable: true, + enumerable: false, + configurable: true, + value: value +}); var result = Object.getOwnPropertyDescriptors(obj); diff --git a/test/built-ins/Object/getOwnPropertyDescriptors/tamper-with-global-object.js b/test/built-ins/Object/getOwnPropertyDescriptors/tamper-with-global-object.js index 7239b18d86..4fc046ae65 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 6427b3d877..bfe13dd0d0 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptors/tamper-with-object-keys.js +++ b/test/built-ins/Object/getOwnPropertyDescriptors/tamper-with-object-keys.js @@ -9,7 +9,7 @@ author: Jordan Harband ---*/ function fakeObjectGetOwnPropertyDescriptor() { - $ERROR('The overriden version of Object.getOwnPropertyDescriptor was called!'); + $ERROR('The overriden version of Object.getOwnPropertyDescriptor was called!'); } Object.getOwnPropertyDescriptor = fakeObjectGetOwnPropertyDescriptor; @@ -19,4 +19,6 @@ assert.sameValue( 'Sanity check failed: could not modify the global Object.getOwnPropertyDescriptor' ); -assert.sameValue(Object.keys(Object.getOwnPropertyDescriptors({ a: 1 })).length, 1, 'Expected object with 1 key to have 1 descriptor'); +assert.sameValue(Object.keys(Object.getOwnPropertyDescriptors({ + a: 1 +})).length, 1, 'Expected object with 1 key to have 1 descriptor'); diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-1-2.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-1-2.js index 51ce6f35f0..586f94fbcc 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 4a9ac3a33f..441dc14ad8 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 09ead97824..d57800a198 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 e2de141ea1..a03c0e002f 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 b34eac4146..8b2f12312e 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 8d9c373e2c..da93b1a029 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 12a1f74181..28e403c0dc 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 d34305209d..b1419378ea 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 fd42435c7c..4eb034becc 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 c4a893ccd6..d6c02ef653 100644 --- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-3-1.js +++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-3-1.js @@ -8,9 +8,11 @@ description: > from index 0 ---*/ - var obj = { prop1: 1001 }; +var obj = { + prop1: 1001 +}; - var arr = Object.getOwnPropertyNames(obj); +var arr = Object.getOwnPropertyNames(obj); assert(arr.hasOwnProperty(0), 'arr.hasOwnProperty(0) !== true'); assert.sameValue(arr[0], "prop1", 'arr[0]'); diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-1.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-1.js index 5583778010..865477923d 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 97b14fd890..45cdcecdec 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 8348c8209c..4530e7016c 100644 --- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-36.js +++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-36.js @@ -8,15 +8,17 @@ description: > pushed into the returned array ---*/ - var proto = { "parent": "parent" }; +var proto = { + "parent": "parent" +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); +var child = new Con(); - var result = Object.getOwnPropertyNames(child); +var result = Object.getOwnPropertyNames(child); - for (var p in result) { - assert.notSameValue(result[p], "parent", 'result[p]'); - } +for (var p in result) { + assert.notSameValue(result[p], "parent", 'result[p]'); +} diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-37.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-37.js index 7ee68cada5..54da883cc3 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 525a253207..ed30ce1e06 100644 --- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-38.js +++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-38.js @@ -8,8 +8,10 @@ description: > the returned array ---*/ - var obj = { "a": "a" }; +var obj = { + "a": "a" +}; - var result = Object.getOwnPropertyNames(obj); +var result = Object.getOwnPropertyNames(obj); assert.sameValue(result[0], "a", 'result[0]'); diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-39.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-39.js index 1992e3168f..2c4970de1f 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 1597725f12..5ecb545f8a 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 376e30846a..61f889e959 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 4f81f8454d..dfa85c7f0e 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 b3ae879d9e..8f8bf48ab6 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 c6f5c4432e..ad7799a2a3 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 5772ef4d0a..cc155a5ee1 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 85773d0cdf..0e3d3586f6 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 ac4193f202..32c031b169 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 61299ad640..bdb85cf3bb 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 442681b965..bb7f61ce94 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 d831271516..d6cc46ff24 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 9887742045..e7cdae41dc 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 30a9106967..ac9096e50c 100644 --- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-2.js +++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-2.js @@ -9,31 +9,33 @@ description: > includes: [compareArray.js] ---*/ - var obj = { "a": "a" }; +var obj = { + "a": "a" +}; - Object.defineProperty(obj, "b", { - get: function () { - return "b"; - }, - enumerable: false, - configurable: true - }); +Object.defineProperty(obj, "b", { + get: function() { + return "b"; + }, + enumerable: false, + configurable: true +}); - Object.defineProperty(obj, "c", { - get: function () { - return "c"; - }, - enumerable: true, - configurable: true - }); +Object.defineProperty(obj, "c", { + get: function() { + return "c"; + }, + enumerable: true, + configurable: true +}); - Object.defineProperty(obj, "d", { - value: "d", - enumerable: false, - configurable: true - }); +Object.defineProperty(obj, "d", { + value: "d", + enumerable: false, + configurable: true +}); - var actual = Object.getOwnPropertyNames(obj); - var expected = ["a", "b", "c", "d"]; +var actual = Object.getOwnPropertyNames(obj); +var expected = ["a", "b", "c", "d"]; assert(compareArray(actual, expected), 'compareArray(actual, expected) !== true'); diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-3.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-3.js index 27e4eaaf9c..701f6c5948 100644 --- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-3.js +++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-3.js @@ -10,15 +10,17 @@ description: > var propertyFound = false; - var obj = { "": "empty" }; +var obj = { + "": "empty" +}; - var result = Object.getOwnPropertyNames(obj); +var result = Object.getOwnPropertyNames(obj); - for (var p in result) { - if (result[p] === "") { - propertyFound = true; - break; - } - } +for (var p in result) { + if (result[p] === "") { + propertyFound = true; + break; + } +} assert(propertyFound, 'Property not found'); diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-4.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-4.js index fdcec33553..41b36b3254 100644 --- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-4.js +++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-4.js @@ -8,13 +8,15 @@ description: > writable ---*/ - var obj = { "a": "a" }; +var obj = { + "a": "a" +}; - var result = Object.getOwnPropertyNames(obj); +var result = Object.getOwnPropertyNames(obj); - var beforeOverride = (result[0] === "a"); - result[0] = "b"; - var afterOverride = (result[0] === "b"); +var beforeOverride = (result[0] === "a"); +result[0] = "b"; +var afterOverride = (result[0] === "b"); assert(beforeOverride, 'beforeOverride !== true'); assert(afterOverride, 'afterOverride !== true'); diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-5.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-5.js index d6c3a2528d..f4dff9c43b 100644 --- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-5.js +++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-5.js @@ -10,15 +10,17 @@ description: > var propertyFound = false; - var obj = { "a": "a" }; +var obj = { + "a": "a" +}; - var result = Object.getOwnPropertyNames(obj); +var result = Object.getOwnPropertyNames(obj); - for (var p in result) { - if (result[p] === "a") { - propertyFound = true; - break; - } - } +for (var p in result) { + if (result[p] === "a") { + propertyFound = true; + break; + } +} assert(propertyFound, 'Property not found'); diff --git a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-6.js b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-6.js index c46672f7ad..c25be8efc9 100644 --- a/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-6.js +++ b/test/built-ins/Object/getOwnPropertyNames/15.2.3.4-4-b-6.js @@ -8,13 +8,15 @@ description: > configurable ---*/ - var obj = { "a": "a" }; +var obj = { + "a": "a" +}; - var result = Object.getOwnPropertyNames(obj); +var result = Object.getOwnPropertyNames(obj); - var beforeDeleted = (result.hasOwnProperty("0")); - delete result[0]; - var afterDeleted = (result.hasOwnProperty("0")); +var beforeDeleted = (result.hasOwnProperty("0")); +delete result[0]; +var afterDeleted = (result.hasOwnProperty("0")); assert(beforeDeleted, 'beforeDeleted !== true'); assert.sameValue(afterDeleted, false, 'afterDeleted'); diff --git a/test/built-ins/Object/getOwnPropertySymbols/object-contains-symbol-property-with-description.js b/test/built-ins/Object/getOwnPropertySymbols/object-contains-symbol-property-with-description.js index 96102bf168..28bb663bc3 100644 --- a/test/built-ins/Object/getOwnPropertySymbols/object-contains-symbol-property-with-description.js +++ b/test/built-ins/Object/getOwnPropertySymbols/object-contains-symbol-property-with-description.js @@ -16,5 +16,3 @@ var syms = Object.getOwnPropertySymbols(obj); assert.sameValue(syms[0], sym, "Array of symbols returned by `Object.getOwnPropertySymbols(obj)` includes `sym`"); assert.sameValue(syms.length, 1, "The value of `syms.length` is `1`"); - - diff --git a/test/built-ins/Object/getOwnPropertySymbols/object-contains-symbol-property-without-description.js b/test/built-ins/Object/getOwnPropertySymbols/object-contains-symbol-property-without-description.js index 26a288b034..e1ffb94203 100644 --- a/test/built-ins/Object/getOwnPropertySymbols/object-contains-symbol-property-without-description.js +++ b/test/built-ins/Object/getOwnPropertySymbols/object-contains-symbol-property-without-description.js @@ -16,5 +16,3 @@ var syms = Object.getOwnPropertySymbols(obj); assert.sameValue(syms[0], sym, "Array of symbols returned by `Object.getOwnPropertySymbols(obj)` includes `sym`"); assert.sameValue(syms.length, 1, "The value of `syms.length` is `1`"); - - diff --git a/test/built-ins/Object/getPrototypeOf/15.2.3.2-0-3.js b/test/built-ins/Object/getPrototypeOf/15.2.3.2-0-3.js index 9f8eb76e02..92fc6a78a1 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 3f73a4c073..453fb2e6b8 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 c0e3b2b899..158a99b77b 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 6802de900e..bd53bc4fb5 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 062f7af148..a57fb80994 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 8652973e53..eaf9741a20 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 13d845f543..c6a7cbdf5c 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 7b825d9702..0ccd5b9ff0 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 8a0759e13b..50cf883e61 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 0c47078819..9cac453932 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 7b033a2ca0..52d9062f75 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 9851559ac6..bf88c87ff0 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 a10b2bbaad..7d2fb99117 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 9fcd1fac86..3ef0838816 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 4970e78262..22eb267e31 100644 --- a/test/built-ins/Object/internals/DefineOwnProperty/consistent-value-function-arguments.js +++ b/test/built-ins/Object/internals/DefineOwnProperty/consistent-value-function-arguments.js @@ -19,13 +19,16 @@ info: | ---*/ function f() { - return Reflect.getOwnPropertyDescriptor(f, 'arguments'); + return Reflect.getOwnPropertyDescriptor(f, 'arguments'); } -Reflect.defineProperty(f, 'arguments', { writable: false, configurable: false }); +Reflect.defineProperty(f, 'arguments', { + writable: false, + configurable: false +}); var desc = Reflect.getOwnPropertyDescriptor(f, 'arguments'); if (desc && desc.configurable === false && desc.writable === false) { - var desc2 = f(); - assert.sameValue(desc.value, desc2.value); + var desc2 = f(); + assert.sameValue(desc.value, desc2.value); } diff --git a/test/built-ins/Object/internals/DefineOwnProperty/consistent-value-function-caller.js b/test/built-ins/Object/internals/DefineOwnProperty/consistent-value-function-caller.js index 736ccf3ee0..93e2fc7c87 100644 --- a/test/built-ins/Object/internals/DefineOwnProperty/consistent-value-function-caller.js +++ b/test/built-ins/Object/internals/DefineOwnProperty/consistent-value-function-caller.js @@ -19,17 +19,20 @@ info: | ---*/ function f() { - return Reflect.getOwnPropertyDescriptor(f, 'caller'); + return Reflect.getOwnPropertyDescriptor(f, 'caller'); } function g() { - return f(); + return f(); } -Reflect.defineProperty(f, 'caller', { writable: false, configurable: false }); +Reflect.defineProperty(f, 'caller', { + writable: false, + configurable: false +}); var desc = Reflect.getOwnPropertyDescriptor(f, 'caller'); if (desc && desc.configurable === false && desc.writable === false) { - var desc2 = g(); - assert.sameValue(desc.value, desc2.value); + var desc2 = g(); + assert.sameValue(desc.value, desc2.value); } diff --git a/test/built-ins/Object/internals/DefineOwnProperty/consistent-value-regexp-$1.js b/test/built-ins/Object/internals/DefineOwnProperty/consistent-value-regexp-$1.js index 4d80030e9d..596c60c2cb 100644 --- a/test/built-ins/Object/internals/DefineOwnProperty/consistent-value-regexp-$1.js +++ b/test/built-ins/Object/internals/DefineOwnProperty/consistent-value-regexp-$1.js @@ -18,11 +18,14 @@ info: | one implementation as of January 2017.) ---*/ -Reflect.defineProperty(RegExp, '$1', { writable: false, configurable: false }); +Reflect.defineProperty(RegExp, '$1', { + writable: false, + configurable: false +}); var desc = Reflect.getOwnPropertyDescriptor(RegExp, '$1'); if (desc && desc.configurable === false && desc.writable === false) { - /(x)/.exec('x'); - var desc2 = Reflect.getOwnPropertyDescriptor(RegExp, '$1'); - assert.sameValue(desc.value, desc2.value); + /(x)/.exec('x'); + var desc2 = Reflect.getOwnPropertyDescriptor(RegExp, '$1'); + assert.sameValue(desc.value, desc2.value); } diff --git a/test/built-ins/Object/internals/DefineOwnProperty/consistent-writable-regexp-$1.js b/test/built-ins/Object/internals/DefineOwnProperty/consistent-writable-regexp-$1.js index 38ab43d2df..38ccdcc641 100644 --- a/test/built-ins/Object/internals/DefineOwnProperty/consistent-writable-regexp-$1.js +++ b/test/built-ins/Object/internals/DefineOwnProperty/consistent-writable-regexp-$1.js @@ -16,7 +16,10 @@ info: | one implementation as of January 2017.) ---*/ -if (Reflect.defineProperty(RegExp, '$1', { writable: false, configurable: false })) { - var desc = Reflect.getOwnPropertyDescriptor(RegExp, '$1'); - assert.sameValue(desc.writable, false); +if (Reflect.defineProperty(RegExp, '$1', { + writable: false, + configurable: false + })) { + var desc = Reflect.getOwnPropertyDescriptor(RegExp, '$1'); + assert.sameValue(desc.writable, false); } diff --git a/test/built-ins/Object/is/name.js b/test/built-ins/Object/is/name.js index da73e1a4b2..1f20bd1061 100644 --- a/test/built-ins/Object/is/name.js +++ b/test/built-ins/Object/is/name.js @@ -15,4 +15,3 @@ assert.sameValue(Object.is.name, 'is', "The value of `Object.is.name` is `'is'`" verifyNotEnumerable(Object.is, "name"); verifyNotWritable(Object.is, "name"); verifyConfigurable(Object.is, "name"); - diff --git a/test/built-ins/Object/is/not-same-value-x-y-null.js b/test/built-ins/Object/is/not-same-value-x-y-null.js index c364bc11be..afeb1bf3d5 100644 --- a/test/built-ins/Object/is/not-same-value-x-y-null.js +++ b/test/built-ins/Object/is/not-same-value-x-y-null.js @@ -17,4 +17,3 @@ description: > assert.sameValue(Object.is(null), false, "`Object.is(null)` returns `false`"); assert.sameValue(Object.is(null, undefined), false, "`Object.is(null, undefined)` returns `false`"); - diff --git a/test/built-ins/Object/is/not-same-value-x-y-object.js b/test/built-ins/Object/is/not-same-value-x-y-object.js index 7ec854c375..b10ec42c20 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 6def9622d4..f7c9f4b8ab 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 28ccc0a78e..b564172ac3 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 203f6d061c..0f6ff22b4a 100644 --- a/test/built-ins/Object/is/not-same-value-x-y-type.js +++ b/test/built-ins/Object/is/not-same-value-x-y-type.js @@ -19,27 +19,27 @@ assert.sameValue(Object.is(a, true), false, "`Object.is(a, true)` returns `false assert.sameValue(Object.is(a, ''), false, "`Object.is(a, '')` returns `false`"); assert.sameValue(Object.is(a, 0), false, "`Object.is(a, 0)` returns `false`"); assert.sameValue( - Object.is(a, undefined), - false, - "`Object.is(a, undefined)` returns `false`" + Object.is(a, undefined), + false, + "`Object.is(a, undefined)` returns `false`" ); assert.sameValue(Object.is(NaN, true), false, "`Object.is(NaN, true)` returns `false`"); assert.sameValue(Object.is(NaN, ''), false, "`Object.is(NaN, '')` returns `false`"); assert.sameValue(Object.is(NaN, a), false, "`Object.is(NaN, a)` returns `false`"); assert.sameValue( - Object.is(NaN, undefined), - false, - "`Object.is(NaN, undefined)` returns `false`" + Object.is(NaN, undefined), + false, + "`Object.is(NaN, undefined)` returns `false`" ); assert.sameValue(Object.is(NaN, null), false, "`Object.is(NaN, null)` returns `false`"); assert.sameValue(Object.is(true, 0), false, "`Object.is(true, 0)` returns `false`"); assert.sameValue(Object.is(true, a), false, "`Object.is(true, a)` returns `false`"); assert.sameValue( - Object.is(true, undefined), - false, - "`Object.is(true, undefined)` returns `false`" + Object.is(true, undefined), + false, + "`Object.is(true, undefined)` returns `false`" ); assert.sameValue(Object.is(true, null), false, "`Object.is(true, null)` returns `false`"); assert.sameValue(Object.is(true, NaN), false, "`Object.is(true, NaN)` returns `false`"); @@ -48,9 +48,9 @@ assert.sameValue(Object.is(true, ''), false, "`Object.is(true, '')` returns `fal assert.sameValue(Object.is(false, 0), false, "`Object.is(false, 0)` returns `false`"); assert.sameValue(Object.is(false, a), false, "`Object.is(false, a)` returns `false`"); assert.sameValue( - Object.is(false, undefined), - false, - "`Object.is(false, undefined)` returns `false`" + Object.is(false, undefined), + false, + "`Object.is(false, undefined)` returns `false`" ); assert.sameValue(Object.is(false, null), false, "`Object.is(false, null)` returns `false`"); assert.sameValue(Object.is(false, NaN), false, "`Object.is(false, NaN)` returns `false`"); @@ -59,11 +59,10 @@ assert.sameValue(Object.is(false, ''), false, "`Object.is(false, '')` returns `f assert.sameValue(Object.is(0, true), false, "`Object.is(0, true)` returns `false`"); assert.sameValue(Object.is(0, a), false, "`Object.is(0, a)` returns `false`"); assert.sameValue( - Object.is(0, undefined), - false, - "`Object.is(0, undefined)` returns `false`" + Object.is(0, undefined), + false, + "`Object.is(0, undefined)` returns `false`" ); assert.sameValue(Object.is(0, null), false, "`Object.is(0, null)` returns `false`"); assert.sameValue(Object.is(0, NaN), false, "`Object.is(0, NaN)` returns `false`"); assert.sameValue(Object.is(0, ''), false, "`Object.is(0, '')` returns `false`"); - diff --git a/test/built-ins/Object/is/same-value-x-y-null.js b/test/built-ins/Object/is/same-value-x-y-null.js index cd770d0984..f991642395 100644 --- a/test/built-ins/Object/is/same-value-x-y-null.js +++ b/test/built-ins/Object/is/same-value-x-y-null.js @@ -16,4 +16,3 @@ description: > ---*/ assert.sameValue(Object.is(null, null), true, "`Object.is(null, null)` returns `true`"); - diff --git a/test/built-ins/Object/is/same-value-x-y-string.js b/test/built-ins/Object/is/same-value-x-y-string.js index e7a7ec3f98..cc2ddf11e6 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 4a58a0927c..4e70febdb6 100644 --- a/test/built-ins/Object/is/symbol-object-is-same-value.js +++ b/test/built-ins/Object/is/symbol-object-is-same-value.js @@ -13,5 +13,3 @@ var symB = Symbol('66'); assert.sameValue(Object.is(symA, symA), true, "`Object.is(symA, symA)` returns `true`"); assert.sameValue(Object.is(symB, symB), true, "`Object.is(symB, symB)` returns `true`"); assert.sameValue(Object.is(symA, symB), false, "`Object.is(symA, symB)` returns `false`"); - - diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-0-1.js b/test/built-ins/Object/isExtensible/15.2.3.13-0-1.js index 61dbcf81cc..d3c3e04d18 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 0a2533af15..7e0549a7cf 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 eda4c0622f..a1dac5f7f4 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 e57ddd1773..bbc81c9cfe 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 731bc9ada3..1703a565f7 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 1eda1dae2b..9bada76d86 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 1552eca769..3368997793 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 663ccbbae1..5acb42f30c 100644 --- a/test/built-ins/Object/isExtensible/15.2.3.13-2-1.js +++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-1.js @@ -9,4 +9,3 @@ description: Object.isExtensible returns true for all built-in objects (Global) var global = this; assert(Object.isExtensible(global)); - diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-10.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-10.js index f55619ab6d..297fcdb1d9 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 9478698b96..5da2f584a5 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 3e369b386f..a009768215 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 e153074780..b9d8a8afe7 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 7a630e2825..f6ac3e9df1 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 cbb2a4e12f..0f0b678815 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 040ecbd67e..1e85cdba91 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 d47a560daf..fa7fa7ef53 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 d8a6a3af79..9ff4791f13 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 d61214cb36..f7de753561 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 91f0c3293f..2fbf188854 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 cadbe6cf3d..0da24ff0fc 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 53a4d77411..c82066c73f 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 6c6e1a4c12..8f497f3415 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 617caf025e..c0294879f1 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 ba0449c59a..9910ac50d9 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 63b05a7c54..fdb218499b 100644 --- a/test/built-ins/Object/isExtensible/15.2.3.13-2-25.js +++ b/test/built-ins/Object/isExtensible/15.2.3.13-2-25.js @@ -8,12 +8,12 @@ description: > prototype that is not extensible ---*/ - var proto = {}; - Object.preventExtensions(proto); - - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var proto = {}; +Object.preventExtensions(proto); - var obj = new ConstructFun(); +var ConstructFun = function() {}; +ConstructFun.prototype = proto; + +var obj = new ConstructFun(); assert(Object.isExtensible(obj), 'Object.isExtensible(obj) !== true'); diff --git a/test/built-ins/Object/isExtensible/15.2.3.13-2-26.js b/test/built-ins/Object/isExtensible/15.2.3.13-2-26.js index 58c8115998..2bf9bb31e1 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 b123e2518f..cb9c229e35 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 27fa4c54fd..bee167cf6a 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 ffa63fd8bd..487138b542 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 aff9de6341..69b1fae1f0 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 73e132cf65..6141fc6894 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 b7f4dbc18c..16293acf6f 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 8fa92d614f..3cafa5da56 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 4da573d202..5a3d0b540f 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 04c9d7704a..961068ca9f 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 c1b5038943..4bcccdf038 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 a956a69f48..06329b88a3 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 74d543db38..6f11d35686 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 45c4f61a7a..109ed310ea 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 04a495bc1f..91e68ede62 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 1c8e88cd0d..d3168dddc6 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 5d9df96793..4aedb181c2 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-1-7.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-1-7.js @@ -8,6 +8,10 @@ description: > named properties ---*/ - var obj = Object.freeze({ 0: 0, 1: 1, 1000: 1000 }); +var obj = Object.freeze({ + 0: 0, + 1: 1, + 1000: 1000 +}); assert(Object.isFrozen(obj), 'Object.isFrozen(obj) !== true'); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-1.js b/test/built-ins/Object/isFrozen/15.2.3.12-1.js index eeafda5713..86e9f06081 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 29dbb7d466..3c7de20a1e 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 e7fa25860a..b4c7959921 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-2-2.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-2-2.js @@ -8,24 +8,25 @@ description: > into the for each loop ---*/ - var proto = {}; - - function get_func() { - return 10; - } - function set_func() { } +var proto = {}; - Object.defineProperty(proto, "Father", { - get: get_func, - set: set_func, - configurable: true - }); +function get_func() { + return 10; +} - var Con = function () { }; - Con.prototype = proto; +function set_func() {} - var child = new Con(); +Object.defineProperty(proto, "Father", { + get: get_func, + set: set_func, + configurable: true +}); - Object.preventExtensions(child); +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); + +Object.preventExtensions(child); assert(Object.isFrozen(child), 'Object.isFrozen(child) !== true'); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-2-a-1.js b/test/built-ins/Object/isFrozen/15.2.3.12-2-a-1.js index b254239ced..e736ff86e5 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 b937a4f698..9f8ffba277 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 9c1031b951..6d3886377b 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 bdcdb212d8..01ba00c368 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-2-a-13.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-2-a-13.js @@ -6,14 +6,14 @@ es5id: 15.2.3.12-2-a-13 description: Object.isFrozen - 'O' is a Function object ---*/ - var obj = function () { }; - - Object.defineProperty(obj, "property", { - value: 12, - writable: true, - configurable: false - }); +var obj = function() {}; - Object.preventExtensions(obj); +Object.defineProperty(obj, "property", { + value: 12, + writable: true, + configurable: false +}); + +Object.preventExtensions(obj); assert.sameValue(Object.isFrozen(obj), false, 'Object.isFrozen(obj)'); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-2-a-14.js b/test/built-ins/Object/isFrozen/15.2.3.12-2-a-14.js index 66eb7cf7ea..dc0b65f3fd 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 b1714fd6a3..d769a465a6 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 80b28f1ac2..7fc07b2b60 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 318d43be5f..d9e2ce407a 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 0164b8a7a4..db4bf0df1b 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 f010ceee03..47cbc50626 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 054f21626b..34310b0a91 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 7ebdca6bcc..251b7760c9 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 4a1edc14b3..ca7903b336 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 d56ce37ac5..3d4603ee7c 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 b1e4d1f19d..ad7d4e076e 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-2-c-2.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-2-c-2.js @@ -8,19 +8,20 @@ description: > accessor property ---*/ - var obj = {}; +var obj = {}; - function get_func() { - return 10; - } - function set_func() { } +function get_func() { + return 10; +} - Object.defineProperty(obj, "foo", { - get: get_func, - set: set_func, - configurable: true - }); +function set_func() {} - Object.preventExtensions(obj); +Object.defineProperty(obj, "foo", { + get: get_func, + set: set_func, + configurable: true +}); + +Object.preventExtensions(obj); assert.sameValue(Object.isFrozen(obj), false, 'Object.isFrozen(obj)'); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-10.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-10.js index 10574131c5..29e85f0b28 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 56d3cc613b..76bec9198d 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 1990a47536..d8c46943ec 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 a23a214953..7cd89226e0 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 84878798d4..63abccb275 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 8792cdae95..ca66a01a58 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 98ad1f1d78..1e873c82af 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 17fbf439d1..cfecb1f867 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 a2afec3b86..120f9f023c 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 3ed4a1a02d..27540052dd 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 608346f73d..d430fa0613 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 598f3d746b..2390d1b451 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 3c04257c38..23ce9738d4 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 b9ca47ad74..0872dd4ca5 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 e04d9582e3..0f97a743cc 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 dd468ba64c..11f725e2cb 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 2d222a0a64..be3e3f3bde 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 657d667909..c93ac5547c 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 05c395fce1..5a03f01ed4 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 8bebd4ecee..9462b94cb0 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-3-28.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-3-28.js @@ -8,27 +8,28 @@ description: > not writable and not configurable, and 'O' is not extensible ---*/ - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "foo1", { - value: 20, - writable: false, - enumerable: false, - configurable: false - }); +Object.defineProperty(obj, "foo1", { + value: 20, + writable: false, + enumerable: false, + configurable: false +}); - function get_func() { - return 10; - } - function set_func() { } +function get_func() { + return 10; +} - Object.defineProperty(obj, "foo2", { - get: get_func, - set: set_func, - configurable: false - }); +function set_func() {} - Object.preventExtensions(obj); +Object.defineProperty(obj, "foo2", { + get: get_func, + set: set_func, + configurable: false +}); + +Object.preventExtensions(obj); assert(Object.isFrozen(obj), 'Object.isFrozen(obj) !== true'); diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-3-3.js b/test/built-ins/Object/isFrozen/15.2.3.12-3-3.js index 8911f64dd7..50901f10eb 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 0c3cacdfe1..2c677139ee 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 a4c70fff95..4a0ea73039 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 d3e9faa560..5f2e0531a0 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 fce4370654..de24a2cafb 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 caa6c4c38d..2c79c441ac 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 ad482d8251..9d37dd788e 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 53d2c5190a..9e0a143b1b 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 ec43eb5c7d..f0a14907da 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 726b813449..676ae785ab 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 d9f9616635..b3a9f75d20 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 c14303965e..dc6d090258 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 0e6484ede1..03464976a7 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 663d6fae8a..3d5ce63635 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 20f8f82b5c..8ae66ffa69 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 d5a720f9a9..5655bbd124 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 7e019b1807..14168a425f 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 5d009ad4e5..c515e713e4 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 76147bf79b..9d536645a3 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 f870603afc..39a783ddaf 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 6fcc308ea3..7402f2ae48 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 3deb97a262..db352fe93c 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 5519b667e1..c45c2e31d0 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 47c86f229d..772fff43d3 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 e8e181fa04..63c9f3bad2 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 7012805889..7fd0e3d606 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 16676f93f0..dfad7091ae 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 cbcf001532..8804364c0d 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 2d72b50928..8eb014422d 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 e3acd56f99..bfdbb73a39 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 66f00fd51c..e2cd6604ac 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 1a5fd782fa..bb68651440 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 7d76da8acd..e10e502d9f 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 2c0fd3e582..086d81815f 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 dbea6040b7..38dfa98832 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 404294cfb7..1697ade0fd 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 b876f99e3d..280af951ed 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 e7ba5f33d5..2bce7c0fd4 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 426324b888..57c5845768 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 fdc5d31eec..3bbfc5872a 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 fa00eb9e0d..90e9d3a6de 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 5f2d8f7cb5..fbc22455a6 100644 --- a/test/built-ins/Object/keys/15.2.3.14-2-1.js +++ b/test/built-ins/Object/keys/15.2.3.14-2-1.js @@ -6,8 +6,11 @@ es5id: 15.2.3.14-2-1 description: Object.keys returns the standard built-in Array ---*/ - var o = { x: 1, y: 2}; +var o = { + x: 1, + y: 2 +}; - var a = Object.keys(o); +var a = Object.keys(o); assert.sameValue(Array.isArray(a), true, 'Array.isArray(a)'); diff --git a/test/built-ins/Object/keys/15.2.3.14-2-2.js b/test/built-ins/Object/keys/15.2.3.14-2-2.js index 2ebe4b0d67..9383f5baf2 100644 --- a/test/built-ins/Object/keys/15.2.3.14-2-2.js +++ b/test/built-ins/Object/keys/15.2.3.14-2-2.js @@ -6,9 +6,12 @@ es5id: 15.2.3.14-2-2 description: Object.keys returns the standard built-in Array (check [[Class]] ---*/ - var o = { x: 1, y: 2}; +var o = { + x: 1, + y: 2 +}; - var a = Object.keys(o); - var s = Object.prototype.toString.call(a); +var a = Object.keys(o); +var s = Object.prototype.toString.call(a); assert.sameValue(s, '[object Array]', 's'); diff --git a/test/built-ins/Object/keys/15.2.3.14-2-3.js b/test/built-ins/Object/keys/15.2.3.14-2-3.js index 0692d2ad9f..f712fe05f0 100644 --- a/test/built-ins/Object/keys/15.2.3.14-2-3.js +++ b/test/built-ins/Object/keys/15.2.3.14-2-3.js @@ -6,12 +6,15 @@ es5id: 15.2.3.14-2-3 description: Object.keys returns the standard built-in Array (Array overridden) ---*/ - function Array() { } +function Array() {} - var o = { x: 1, y: 2}; +var o = { + x: 1, + y: 2 +}; - var a = Object.keys(o); +var a = Object.keys(o); - var s = Object.prototype.toString.call(a); +var s = Object.prototype.toString.call(a); assert.sameValue(s, '[object Array]', 's'); diff --git a/test/built-ins/Object/keys/15.2.3.14-2-4.js b/test/built-ins/Object/keys/15.2.3.14-2-4.js index 231c1e7616..c4b3c134d0 100644 --- a/test/built-ins/Object/keys/15.2.3.14-2-4.js +++ b/test/built-ins/Object/keys/15.2.3.14-2-4.js @@ -6,8 +6,11 @@ es5id: 15.2.3.14-2-4 description: Object.keys returns the standard built-in Array that is extensible ---*/ - var o = { x: 1, y: 2}; +var o = { + x: 1, + y: 2 +}; - var a = Object.keys(o); +var a = Object.keys(o); assert.sameValue(Object.isExtensible(a), true, 'Object.isExtensible(a)'); diff --git a/test/built-ins/Object/keys/15.2.3.14-2-5.js b/test/built-ins/Object/keys/15.2.3.14-2-5.js index 53c37a8390..ac6bd951f4 100644 --- a/test/built-ins/Object/keys/15.2.3.14-2-5.js +++ b/test/built-ins/Object/keys/15.2.3.14-2-5.js @@ -6,8 +6,11 @@ es5id: 15.2.3.14-2-5 description: Object.keys returns the standard built-in Array that is not sealed ---*/ - var o = { x: 1, y: 2}; +var o = { + x: 1, + y: 2 +}; - var a = Object.keys(o); +var a = Object.keys(o); assert.sameValue(Object.isSealed(a), false, 'Object.isSealed(a)'); diff --git a/test/built-ins/Object/keys/15.2.3.14-2-6.js b/test/built-ins/Object/keys/15.2.3.14-2-6.js index 9026527d68..77fb6260e6 100644 --- a/test/built-ins/Object/keys/15.2.3.14-2-6.js +++ b/test/built-ins/Object/keys/15.2.3.14-2-6.js @@ -6,8 +6,11 @@ es5id: 15.2.3.14-2-6 description: Object.keys returns the standard built-in Array that is not frozen ---*/ - var o = { x: 1, y: 2}; +var o = { + x: 1, + y: 2 +}; - var a = Object.keys(o); +var a = Object.keys(o); assert.sameValue(Object.isFrozen(a), false, 'Object.isFrozen(a)'); diff --git a/test/built-ins/Object/keys/15.2.3.14-2-7.js b/test/built-ins/Object/keys/15.2.3.14-2-7.js index 81506d56dd..d2134fdd94 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 079e50ecaf..3b2141a30a 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 c54f50d55c..a958a69ed5 100644 --- a/test/built-ins/Object/keys/15.2.3.14-3-1.js +++ b/test/built-ins/Object/keys/15.2.3.14-3-1.js @@ -8,9 +8,12 @@ description: > enumerable properties ---*/ - var o = { x: 1, y: 2}; +var o = { + x: 1, + y: 2 +}; - var a = Object.keys(o); +var a = Object.keys(o); assert.sameValue(a.length, 2, 'a.length'); assert.sameValue(a[0], 'x', 'a[0]'); diff --git a/test/built-ins/Object/keys/15.2.3.14-3-2.js b/test/built-ins/Object/keys/15.2.3.14-3-2.js index 2f40b3bfa8..4e869eef7f 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 9d6d1276be..923809d3c6 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 2d11275d4c..8df65c15a7 100644 --- a/test/built-ins/Object/keys/15.2.3.14-3-4.js +++ b/test/built-ins/Object/keys/15.2.3.14-3-4.js @@ -8,24 +8,26 @@ description: > given arguments ---*/ - function testArgs2(x, y, z) { - // Properties of the arguments object are enumerable. - var a = Object.keys(arguments); - if (a.length === 2 && a[0] in arguments && a[1] in arguments) - return true; - } - function testArgs3(x, y, z) { - // Properties of the arguments object are enumerable. - var a = Object.keys(arguments); - if (a.length === 3 && a[0] in arguments && a[1] in arguments && a[2] in arguments) - return true; - } - function testArgs4(x, y, z) { - // Properties of the arguments object are enumerable. - var a = Object.keys(arguments); - if (a.length === 4 && a[0] in arguments && a[1] in arguments && a[2] in arguments && a[3] in arguments) - return true; - } +function testArgs2(x, y, z) { + // Properties of the arguments object are enumerable. + var a = Object.keys(arguments); + if (a.length === 2 && a[0] in arguments && a[1] in arguments) + return true; +} + +function testArgs3(x, y, z) { + // Properties of the arguments object are enumerable. + var a = Object.keys(arguments); + if (a.length === 3 && a[0] in arguments && a[1] in arguments && a[2] in arguments) + return true; +} + +function testArgs4(x, y, z) { + // Properties of the arguments object are enumerable. + var a = Object.keys(arguments); + if (a.length === 4 && a[0] in arguments && a[1] in arguments && a[2] in arguments && a[3] in arguments) + return true; +} assert(testArgs2(1, 2), 'testArgs2(1, 2) !== true'); assert(testArgs3(1, 2, 3), 'testArgs3(1, 2, 3) !== true'); diff --git a/test/built-ins/Object/keys/15.2.3.14-3-5.js b/test/built-ins/Object/keys/15.2.3.14-3-5.js index ed4c7b7cb3..b7e549eadf 100644 --- a/test/built-ins/Object/keys/15.2.3.14-3-5.js +++ b/test/built-ins/Object/keys/15.2.3.14-3-5.js @@ -6,11 +6,13 @@ es5id: 15.2.3.14-3-5 description: Object.keys must return a fresh array on each invocation ---*/ - var literal = {a: 1}; - var keysBefore = Object.keys(literal); - assert.sameValue(keysBefore[0], 'a', 'keysBefore[0]'); - keysBefore[0] = 'x'; - var keysAfter = Object.keys(literal); +var literal = { + a: 1 +}; +var keysBefore = Object.keys(literal); +assert.sameValue(keysBefore[0], 'a', 'keysBefore[0]'); +keysBefore[0] = 'x'; +var keysAfter = Object.keys(literal); assert.sameValue(keysBefore[0], 'x', 'keysBefore[0]'); assert.sameValue(keysAfter[0], 'a', 'keysAfter[0]'); diff --git a/test/built-ins/Object/keys/15.2.3.14-3-6.js b/test/built-ins/Object/keys/15.2.3.14-3-6.js index 582c493bb0..783da2d8b5 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 cea8ccdca6..040cdca51a 100644 --- a/test/built-ins/Object/keys/15.2.3.14-3-7.js +++ b/test/built-ins/Object/keys/15.2.3.14-3-7.js @@ -8,22 +8,25 @@ description: > own enumerable properties of 'O' ---*/ - var obj = { prop1: 1001, prop2: 1002 }; +var obj = { + prop1: 1001, + prop2: 1002 +}; - Object.defineProperty(obj, "prop3", { - value: 1003, - enumerable: true, - configurable: true - }); +Object.defineProperty(obj, "prop3", { + value: 1003, + enumerable: true, + configurable: true +}); - Object.defineProperty(obj, "prop4", { - get: function () { - return 1003; - }, - enumerable: false, - configurable: true - }); +Object.defineProperty(obj, "prop4", { + get: function() { + return 1003; + }, + enumerable: false, + configurable: true +}); - var arr = Object.keys(obj); +var arr = Object.keys(obj); assert.sameValue(arr.length, 3, 'arr.length'); diff --git a/test/built-ins/Object/keys/15.2.3.14-4-1.js b/test/built-ins/Object/keys/15.2.3.14-4-1.js index 57f7ab5a05..3ad642ebd1 100644 --- a/test/built-ins/Object/keys/15.2.3.14-4-1.js +++ b/test/built-ins/Object/keys/15.2.3.14-4-1.js @@ -6,23 +6,26 @@ es5id: 15.2.3.14-4-1 description: Object.keys - elements of the returned array start from index 0 ---*/ - var obj = { prop1: 1001, prop2: 1002 }; +var obj = { + prop1: 1001, + prop2: 1002 +}; - Object.defineProperty(obj, "prop3", { - value: 1003, - enumerable: true, - configurable: true - }); +Object.defineProperty(obj, "prop3", { + value: 1003, + enumerable: true, + configurable: true +}); - Object.defineProperty(obj, "prop4", { - get: function () { - return 1003; - }, - enumerable: true, - configurable: true - }); +Object.defineProperty(obj, "prop4", { + get: function() { + return 1003; + }, + enumerable: true, + configurable: true +}); - var arr = Object.keys(obj); +var arr = Object.keys(obj); assert(arr.hasOwnProperty(0), 'arr.hasOwnProperty(0) !== true'); assert.sameValue(arr[0], "prop1", 'arr[0]'); diff --git a/test/built-ins/Object/keys/15.2.3.14-5-1.js b/test/built-ins/Object/keys/15.2.3.14-5-1.js index 8f576efd9e..38b86bb5c1 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 7c78da96c7..9c6a93b144 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 3a6c31e0c4..cacc8fdf2c 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 0e565cc0da..8418f0262c 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 1dd461cabd..4c87e4d47a 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 6b9c3ae252..2f9bd96173 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 c7805c0304..78c95371b3 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 1031fd08c7..327c196f48 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 917ad1cf6d..d88f54188f 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 45d321cfe7..9bfa83434e 100644 --- a/test/built-ins/Object/keys/15.2.3.14-5-3.js +++ b/test/built-ins/Object/keys/15.2.3.14-5-3.js @@ -8,24 +8,27 @@ description: > defined in returned array ---*/ - var obj = { prop1: 1001, prop2: 1002 }; +var obj = { + prop1: 1001, + prop2: 1002 +}; - Object.defineProperty(obj, "prop3", { - value: 1003, - enumerable: true, - configurable: true - }); +Object.defineProperty(obj, "prop3", { + value: 1003, + enumerable: true, + configurable: true +}); - Object.defineProperty(obj, "prop4", { - value: 1004, - enumerable: false, - configurable: true - }); +Object.defineProperty(obj, "prop4", { + value: 1004, + enumerable: false, + configurable: true +}); - var arr = Object.keys(obj); +var arr = Object.keys(obj); - for (var p in arr) { - if (arr.hasOwnProperty(p)) { - assert.notSameValue(arr[p], "prop4", 'arr[p]'); - } - } +for (var p in arr) { + if (arr.hasOwnProperty(p)) { + assert.notSameValue(arr[p], "prop4", 'arr[p]'); + } +} diff --git a/test/built-ins/Object/keys/15.2.3.14-5-4.js b/test/built-ins/Object/keys/15.2.3.14-5-4.js index ed6346c085..92d237cddb 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 996f595a1f..3be1366f9d 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 1040551379..e5ff23f984 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 8fb146cd20..c40e03400e 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 37acf9b4f9..87fa6a75b0 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 f88c546c00..b3001fa903 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 15cabe73b1..b186f7c27e 100644 --- a/test/built-ins/Object/keys/15.2.3.14-5-a-1.js +++ b/test/built-ins/Object/keys/15.2.3.14-5-a-1.js @@ -8,11 +8,13 @@ description: > correct. ---*/ - var obj = { prop1: 1 }; +var obj = { + prop1: 1 +}; - var array = Object.keys(obj); +var array = Object.keys(obj); - var desc = Object.getOwnPropertyDescriptor(array, "0"); +var desc = Object.getOwnPropertyDescriptor(array, "0"); assert(desc.hasOwnProperty("value"), 'desc.hasOwnProperty("value") !== true'); assert.sameValue(desc.value, "prop1", 'desc.value'); diff --git a/test/built-ins/Object/keys/15.2.3.14-5-a-2.js b/test/built-ins/Object/keys/15.2.3.14-5-a-2.js index 10f811ac6d..5d57f077a5 100644 --- a/test/built-ins/Object/keys/15.2.3.14-5-a-2.js +++ b/test/built-ins/Object/keys/15.2.3.14-5-a-2.js @@ -8,13 +8,15 @@ description: > correct ---*/ - var obj = { prop1: 100 }; +var obj = { + prop1: 100 +}; - var array = Object.keys(obj); +var array = Object.keys(obj); - array[0] = "isWritable"; +array[0] = "isWritable"; - var desc = Object.getOwnPropertyDescriptor(array, "0"); +var desc = Object.getOwnPropertyDescriptor(array, "0"); assert.sameValue(array[0], "isWritable", 'array[0]'); assert(desc.hasOwnProperty("writable"), 'desc.hasOwnProperty("writable") !== true'); diff --git a/test/built-ins/Object/keys/15.2.3.14-5-a-3.js b/test/built-ins/Object/keys/15.2.3.14-5-a-3.js index 25c069329f..6c6a27f677 100644 --- a/test/built-ins/Object/keys/15.2.3.14-5-a-3.js +++ b/test/built-ins/Object/keys/15.2.3.14-5-a-3.js @@ -8,16 +8,18 @@ description: > is correct ---*/ - var obj = { prop1: 100 }; +var obj = { + prop1: 100 +}; - var array = Object.keys(obj); - var desc = Object.getOwnPropertyDescriptor(array, "0"); - var result = false; - for (var index in array) { - if (obj.hasOwnProperty(array[index]) && array[index] === "prop1") { - result = true; - } - } +var array = Object.keys(obj); +var desc = Object.getOwnPropertyDescriptor(array, "0"); +var result = false; +for (var index in array) { + if (obj.hasOwnProperty(array[index]) && array[index] === "prop1") { + result = true; + } +} assert(result, 'result !== true'); assert(desc.hasOwnProperty("enumerable"), 'desc.hasOwnProperty("enumerable") !== true'); diff --git a/test/built-ins/Object/keys/15.2.3.14-5-a-4.js b/test/built-ins/Object/keys/15.2.3.14-5-a-4.js index 78b67c3380..5a52878215 100644 --- a/test/built-ins/Object/keys/15.2.3.14-5-a-4.js +++ b/test/built-ins/Object/keys/15.2.3.14-5-a-4.js @@ -8,12 +8,14 @@ description: > returned array is correct ---*/ - var obj = { prop1: 100 }; +var obj = { + prop1: 100 +}; - var array = Object.keys(obj); - var desc = Object.getOwnPropertyDescriptor(array, "0"); +var array = Object.keys(obj); +var desc = Object.getOwnPropertyDescriptor(array, "0"); - delete array[0]; +delete array[0]; assert.sameValue(typeof array[0], "undefined", 'typeof array[0]'); assert(desc.hasOwnProperty("configurable"), 'desc.hasOwnProperty("configurable") !== true'); diff --git a/test/built-ins/Object/keys/15.2.3.14-5-b-1.js b/test/built-ins/Object/keys/15.2.3.14-5-b-1.js index 6c5766333c..c6b18372b6 100644 --- a/test/built-ins/Object/keys/15.2.3.14-5-b-1.js +++ b/test/built-ins/Object/keys/15.2.3.14-5-b-1.js @@ -6,14 +6,18 @@ es5id: 15.2.3.14-5-b-1 description: Object.keys - Verify that 'index' of returned array is ascend by 1 ---*/ - var obj = { prop1: 100, prop2: 200, prop3: 300 }; +var obj = { + prop1: 100, + prop2: 200, + prop3: 300 +}; - var array = Object.keys(obj); +var array = Object.keys(obj); - var idx = 0; - for (var index in array) { - if (array.hasOwnProperty(index)) { - assert.sameValue(index, idx.toString(), 'index'); - idx++; - } - } +var idx = 0; +for (var index in array) { + if (array.hasOwnProperty(index)) { + assert.sameValue(index, idx.toString(), 'index'); + idx++; + } +} diff --git a/test/built-ins/Object/keys/15.2.3.14-6-1.js b/test/built-ins/Object/keys/15.2.3.14-6-1.js index 884abd796d..e6c869cfe8 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 c3a1537e07..bed89a28dc 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 108056b333..8607da50b4 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 b10ea76150..cacc8f39c4 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 9e5984a78a..4bd098a3ef 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 ac349430fa..f9b2a155aa 100644 --- a/test/built-ins/Object/keys/proxy-keys.js +++ b/test/built-ins/Object/keys/proxy-keys.js @@ -32,22 +32,34 @@ let target = { let ownKeys = { get length() { - log.push({ name: "get ownKeys['length']", receiver: this }); + log.push({ + name: "get ownKeys['length']", + receiver: this + }); return 3; }, get 0() { - log.push({ name: "get ownKeys[0]", receiver: this }); + log.push({ + name: "get ownKeys[0]", + receiver: this + }); return "a"; }, get 1() { - log.push({ name: "get ownKeys[1]", receiver: this }); + log.push({ + name: "get ownKeys[1]", + receiver: this + }); return s; }, get 2() { - log.push({ name: "get ownKeys[2]", receiver: this }); + log.push({ + name: "get ownKeys[2]", + receiver: this + }); return "b"; } }; @@ -74,15 +86,25 @@ let ownKeysDescriptors = { let handler = { get ownKeys() { - log.push({ name: "get handler.ownKeys", receiver: this }); + log.push({ + name: "get handler.ownKeys", + receiver: this + }); return (...args) => { - log.push({ name: "call handler.ownKeys", receiver: this, args }); + log.push({ + name: "call handler.ownKeys", + receiver: this, + args + }); return ownKeys; }; }, get getOwnPropertyDescriptor() { - log.push({ name: "get handler.getOwnPropertyDescriptor", receiver: this }); + log.push({ + name: "get handler.getOwnPropertyDescriptor", + receiver: this + }); return (...args) => { log.push({ name: "call handler.getOwnPropertyDescriptor", diff --git a/test/built-ins/Object/preventExtensions/15.2.3.10-0-1.js b/test/built-ins/Object/preventExtensions/15.2.3.10-0-1.js index 8f3e64dc3a..74af3456dc 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 12e4a96cb0..e52f9af715 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 908256f0d6..0032e685e5 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 19d939b759..f656493630 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 a2b491530b..058bfb29dc 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 08a98ccaea..2781b8facc 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 a8e4b2e410..7655800721 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 f6507af2d9..c3a60819f2 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 c9ee327e0d..b42f94651a 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 49ec6fbd14..f58147ef45 100644 --- a/test/built-ins/Object/preventExtensions/15.2.3.10-3-10.js +++ b/test/built-ins/Object/preventExtensions/15.2.3.10-3-10.js @@ -18,4 +18,3 @@ assert(!Object.isExtensible(errObj)); verifyNotWritable(errObj, "0", "nocheck"); assert(!errObj.hasOwnProperty("0")); - diff --git a/test/built-ins/Object/preventExtensions/15.2.3.10-3-11.js b/test/built-ins/Object/preventExtensions/15.2.3.10-3-11.js index cdaafc240e..ba2145a1ca 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 071c012606..09778460e8 100644 --- a/test/built-ins/Object/preventExtensions/15.2.3.10-3-12.js +++ b/test/built-ins/Object/preventExtensions/15.2.3.10-3-12.js @@ -18,4 +18,3 @@ assert(!Object.isExtensible(obj)); verifyNotWritable(obj, "exName", "nocheck"); assert(!obj.hasOwnProperty("exName")); - diff --git a/test/built-ins/Object/preventExtensions/15.2.3.10-3-13.js b/test/built-ins/Object/preventExtensions/15.2.3.10-3-13.js index 6bc3159eef..67c952a066 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 560bec4962..26d198d1ec 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 f9c4d8b480..02de9e3bad 100644 --- a/test/built-ins/Object/preventExtensions/15.2.3.10-3-22.js +++ b/test/built-ins/Object/preventExtensions/15.2.3.10-3-22.js @@ -8,11 +8,13 @@ description: > extensions have been prevented ---*/ - var obj = { prop: 12 }; - var preCheck = Object.isExtensible(obj); - Object.preventExtensions(obj); +var obj = { + prop: 12 +}; +var preCheck = Object.isExtensible(obj); +Object.preventExtensions(obj); - delete obj.prop; +delete obj.prop; assert(preCheck, 'preCheck !== true'); assert.sameValue(obj.hasOwnProperty("prop"), false, 'obj.hasOwnProperty("prop")'); diff --git a/test/built-ins/Object/preventExtensions/15.2.3.10-3-23.js b/test/built-ins/Object/preventExtensions/15.2.3.10-3-23.js index f857d410b6..b7c93c4972 100644 --- a/test/built-ins/Object/preventExtensions/15.2.3.10-3-23.js +++ b/test/built-ins/Object/preventExtensions/15.2.3.10-3-23.js @@ -8,11 +8,13 @@ description: > after extensions have been prevented ---*/ - var obj = { prop: 12 }; - var preCheck = Object.isExtensible(obj); - Object.preventExtensions(obj); +var obj = { + prop: 12 +}; +var preCheck = Object.isExtensible(obj); +Object.preventExtensions(obj); - obj.prop = -1; +obj.prop = -1; assert(preCheck, 'preCheck !== true'); assert.sameValue(obj.prop, -1, 'obj.prop'); diff --git a/test/built-ins/Object/preventExtensions/15.2.3.10-3-24.js b/test/built-ins/Object/preventExtensions/15.2.3.10-3-24.js index 7e80063268..b0f8796a54 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 f644100e67..443c2a61eb 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 def72f4f6d..f70509ecaf 100644 --- a/test/built-ins/Object/preventExtensions/15.2.3.10-3-5.js +++ b/test/built-ins/Object/preventExtensions/15.2.3.10-3-5.js @@ -8,11 +8,13 @@ description: > a String object ---*/ - var strObj = new String(); - var preCheck = Object.isExtensible(strObj); - Object.preventExtensions(strObj); +var strObj = new String(); +var preCheck = Object.isExtensible(strObj); +Object.preventExtensions(strObj); assert.throws(TypeError, function() { - Object.defineProperty(strObj, "0", { value: "c" }); + Object.defineProperty(strObj, "0", { + value: "c" + }); }); assert(preCheck, 'preCheck !== true'); assert.sameValue(strObj.hasOwnProperty("0"), false, 'strObj.hasOwnProperty("0")'); diff --git a/test/built-ins/Object/preventExtensions/symbol-object-contains-symbol-properties-strict.js b/test/built-ins/Object/preventExtensions/symbol-object-contains-symbol-properties-strict.js index 6bb4bdf187..9fb953b990 100644 --- a/test/built-ins/Object/preventExtensions/symbol-object-contains-symbol-properties-strict.js +++ b/test/built-ins/Object/preventExtensions/symbol-object-contains-symbol-properties-strict.js @@ -20,13 +20,12 @@ assert.throws(TypeError, function() { }); assert.throws(TypeError, function() { - Object.defineProperty(obj, symC, { value: 1 }); + Object.defineProperty(obj, symC, { + value: 1 + }); }); assert.sameValue(obj[symA], 2, "The value of `obj[symA]` is `2`"); assert.sameValue(delete obj[symA], true, "`delete obj[symA]` is `true`"); assert.sameValue(obj[symB], undefined, "The value of `obj[symB]` is `undefined`"); assert.sameValue(obj[symC], undefined, "The value of `obj[symC]` is `undefined`"); - - - diff --git a/test/built-ins/Object/prototype/15.2.3.1.js b/test/built-ins/Object/prototype/15.2.3.1.js index fb0ddee7f0..636b72df5f 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 44b0ea6e6b..a182b4f737 100644 --- a/test/built-ins/Object/prototype/S15.2.3.1_A1.js +++ b/test/built-ins/Object/prototype/S15.2.3.1_A1.js @@ -9,7 +9,9 @@ includes: [propertyHelper.js] ---*/ var obj = Object.prototype; -verifyNotWritable(Object, "prototype", null, function(){return "shifted";}); +verifyNotWritable(Object, "prototype", null, function() { + return "shifted"; +}); //CHECK#1 if (Object.prototype !== obj) { diff --git a/test/built-ins/Object/prototype/S15.2.3.1_A2.js b/test/built-ins/Object/prototype/S15.2.3.1_A2.js index 996c86525b..96ee379f65 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 5b7c6e5eab..d2ffa50ca6 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 9fd0c15bb5..f92c6b479a 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 07679b2740..a9fe417615 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 29e8245876..a4330a78e6 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 0e5e905e3a..ae6b1928ab 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_10.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_10.js @@ -8,7 +8,11 @@ description: > non-enumerable own value property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {value: 42, writable:true, configurable:true}); +var o = {}; +Object.defineProperty(o, "foo", { + value: 42, + writable: true, + configurable: true +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_11.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_11.js index d4f3d39034..2b78847eb4 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_11.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_11.js @@ -8,7 +8,12 @@ description: > enumerable own value property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {value: 42, writable:true, enumerable:true, configurable:true}); +var o = {}; +Object.defineProperty(o, "foo", { + value: 42, + writable: true, + enumerable: true, + configurable: true +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_12.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_12.js index 99004855e5..a462ab1992 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_12.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_12.js @@ -8,8 +8,10 @@ description: > non-enumerable inherited value property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {value: 42}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + value: 42 +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_13.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_13.js index c12d0c3440..33cfbaac26 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_13.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_13.js @@ -8,8 +8,11 @@ description: > enumerable inherited value property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {value: 42, enumerable:true}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + value: 42, + enumerable: true +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_14.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_14.js index 0dcb8a61a1..f021397a30 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_14.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_14.js @@ -8,8 +8,11 @@ description: > non-enumerable inherited value property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {value: 42, configurable:true}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + value: 42, + configurable: true +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_15.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_15.js index 54baa8f1a4..5086fe3bd7 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_15.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_15.js @@ -8,8 +8,11 @@ description: > non-enumerable inherited value property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {value: 42, writable:true}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + value: 42, + writable: true +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_16.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_16.js index 6474f7f809..397f69ab03 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_16.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_16.js @@ -8,8 +8,12 @@ description: > enumerable inherited value property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {value: 42, configurable:true, enumerable:true}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + value: 42, + configurable: true, + enumerable: true +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_17.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_17.js index ac6c14ab38..36c5ce1b67 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_17.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_17.js @@ -8,8 +8,12 @@ description: > enumerable inherited value property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {value: 42, writable:true, enumerable:true}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + value: 42, + writable: true, + enumerable: true +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_18.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_18.js index 8b8120c5ce..521513632d 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_18.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_18.js @@ -8,8 +8,12 @@ description: > non-enumerable inherited value property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {value: 42, writable:true, configurable:true}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + value: 42, + writable: true, + configurable: true +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_19.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_19.js index 6eec46644e..bda83b039c 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_19.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_19.js @@ -8,8 +8,13 @@ description: > enumerable inherited value property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {value: 42, writable:true, enumerable:true, configurable:true}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + value: 42, + writable: true, + enumerable: true, + configurable: true +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_2.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_2.js index 9e51b6eb9c..a10bb3821b 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_2.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_2.js @@ -6,6 +6,8 @@ es5id: 8.12.1-1_2 description: Properties - [[HasOwnProperty]] (old style own property) ---*/ - var o = {foo: 42}; +var o = { + foo: 42 +}; assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_20.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_20.js index 4c6c466f3a..60febfc144 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_20.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_20.js @@ -6,6 +6,10 @@ es5id: 8.12.1-1_20 description: Properties - [[HasOwnProperty]] (literal own getter property) ---*/ - var o = { get foo() { return 42;} }; +var o = { + get foo() { + return 42; + } +}; assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_21.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_21.js index aa8236e3bc..f8795d0f58 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_21.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_21.js @@ -6,6 +6,9 @@ es5id: 8.12.1-1_21 description: Properties - [[HasOwnProperty]] (literal own setter property) ---*/ - var o = { set foo(x) {;} }; +var o = { + set foo(x) {; + } +}; assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_22.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_22.js index b23a22bfc3..e18229b912 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_22.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_22.js @@ -8,6 +8,12 @@ description: > property) ---*/ - var o = { get foo() { return 42;}, set foo(x) {;} }; +var o = { + get foo() { + return 42; + }, + set foo(x) {; + } +}; assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_23.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_23.js index 4e2587b1c1..7f025a822e 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_23.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_23.js @@ -6,7 +6,11 @@ es5id: 8.12.1-1_23 description: Properties - [[HasOwnProperty]] (literal inherited getter property) ---*/ - var base = { get foo() { return 42;} }; - var o = Object.create(base); +var base = { + get foo() { + return 42; + } +}; +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_24.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_24.js index cf1cac60b2..641f96b321 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_24.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_24.js @@ -6,7 +6,10 @@ es5id: 8.12.1-1_24 description: Properties - [[HasOwnProperty]] (literal inherited setter property) ---*/ - var base = { set foo(x) {;} }; - var o = Object.create(base); +var base = { + set foo(x) {; + } +}; +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_25.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_25.js index fdb1e6d3a4..e2620ce47e 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_25.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_25.js @@ -8,7 +8,13 @@ description: > property) ---*/ - var base = { get foo() { return 42;}, set foo(x) {;} }; - var o = Object.create(base); +var base = { + get foo() { + return 42; + }, + set foo(x) {; + } +}; +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_26.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_26.js index fd15435b5c..a80a346234 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_26.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_26.js @@ -8,7 +8,11 @@ description: > own getter property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {get: function() {return 42;}}); +var o = {}; +Object.defineProperty(o, "foo", { + get: function() { + return 42; + } +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_27.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_27.js index 6d8b4634de..5940f377ea 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_27.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_27.js @@ -8,7 +8,12 @@ description: > getter property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {get: function() {return 42;}, enumerable:true}); +var o = {}; +Object.defineProperty(o, "foo", { + get: function() { + return 42; + }, + enumerable: true +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_28.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_28.js index 19bcb8142d..122313417e 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_28.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_28.js @@ -8,7 +8,12 @@ description: > getter property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {get: function() {return 42;}, configurable:true}); +var o = {}; +Object.defineProperty(o, "foo", { + get: function() { + return 42; + }, + configurable: true +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_29.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_29.js index 01587705d1..d048b990fd 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_29.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_29.js @@ -8,7 +8,13 @@ description: > getter property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {get: function() {return 42;}, enumerable:true, configurable:true}); +var o = {}; +Object.defineProperty(o, "foo", { + get: function() { + return 42; + }, + enumerable: true, + configurable: true +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_3.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_3.js index 8c851da5a0..5e30010643 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_3.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_3.js @@ -6,7 +6,9 @@ es5id: 8.12.1-1_3 description: Properties - [[HasOwnProperty]] (old style inherited property) ---*/ - var base = {foo:42}; - var o = Object.create(base); +var base = { + foo: 42 +}; +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_30.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_30.js index 5d12f52ff7..7cc54bf8c1 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_30.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_30.js @@ -8,7 +8,10 @@ description: > own setter property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {set: function() {;}}); +var o = {}; +Object.defineProperty(o, "foo", { + set: function() {; + } +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_31.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_31.js index 0e9e305753..915cf98a0c 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_31.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_31.js @@ -8,7 +8,11 @@ description: > setter property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {set: function() {;}, enumerable:true}); +var o = {}; +Object.defineProperty(o, "foo", { + set: function() {; + }, + enumerable: true +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_32.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_32.js index f0a345b0be..0723ab84b5 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_32.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_32.js @@ -8,7 +8,11 @@ description: > setter property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {set: function() {;}, configurable:true}); +var o = {}; +Object.defineProperty(o, "foo", { + set: function() {; + }, + configurable: true +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_33.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_33.js index 1b7e60c21a..1cdaa72f68 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_33.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_33.js @@ -8,7 +8,12 @@ description: > setter property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {set: function() {;}, enumerable:true, configurable:true}); +var o = {}; +Object.defineProperty(o, "foo", { + set: function() {; + }, + enumerable: true, + configurable: true +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_34.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_34.js index 2b34bf9b62..4fb47b26e5 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_34.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_34.js @@ -8,7 +8,13 @@ description: > own getter/setter property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {get: function() {return 42;}, set: function() {;}}); +var o = {}; +Object.defineProperty(o, "foo", { + get: function() { + return 42; + }, + set: function() {; + } +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_35.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_35.js index 01ef0ead2d..5479c80e46 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_35.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_35.js @@ -8,7 +8,14 @@ description: > getter/setter property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {get: function() {return 42;}, set: function() {;}, enumerable:true}); +var o = {}; +Object.defineProperty(o, "foo", { + get: function() { + return 42; + }, + set: function() {; + }, + enumerable: true +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_36.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_36.js index a077628697..43f18c8eb4 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_36.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_36.js @@ -8,7 +8,14 @@ description: > getter/setter property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {get: function() {return 42;}, set: function() {;}, configurable:true}); +var o = {}; +Object.defineProperty(o, "foo", { + get: function() { + return 42; + }, + set: function() {; + }, + configurable: true +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_37.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_37.js index 1938b5a2c5..518209e486 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_37.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_37.js @@ -8,7 +8,15 @@ description: > getter/setter property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {get: function() {return 42;}, set: function() {;}, enumerable:true, configurable:true}); +var o = {}; +Object.defineProperty(o, "foo", { + get: function() { + return 42; + }, + set: function() {; + }, + enumerable: true, + configurable: true +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_38.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_38.js index 801ecdaeed..2c9bbbfbb0 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_38.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_38.js @@ -8,8 +8,12 @@ description: > inherited getter property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {get: function() {return 42;}}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + get: function() { + return 42; + } +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_39.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_39.js index 5a0e15903c..1fbdea7639 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_39.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_39.js @@ -8,8 +8,13 @@ description: > inherited getter property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {get: function() {return 42;}, enumerable:true}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + get: function() { + return 42; + }, + enumerable: true +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_4.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_4.js index dac63b0297..ecb418e5b6 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_4.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_4.js @@ -8,7 +8,9 @@ description: > non-enumerable own value property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {value: 42}); +var o = {}; +Object.defineProperty(o, "foo", { + value: 42 +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_40.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_40.js index a04fd43696..b2f7e70bcf 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_40.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_40.js @@ -8,8 +8,13 @@ description: > inherited getter property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {get: function() {return 42;}, configurable:true}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + get: function() { + return 42; + }, + configurable: true +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_41.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_41.js index bf0dbd47da..9e94e66645 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_41.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_41.js @@ -8,8 +8,14 @@ description: > inherited getter property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {get: function() {return 42;}, enumerable:true, configurable:true}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + get: function() { + return 42; + }, + enumerable: true, + configurable: true +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_42.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_42.js index 97bab311fc..705516ffb0 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_42.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_42.js @@ -8,8 +8,11 @@ description: > inherited setter property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {set: function() {;}}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + set: function() {; + } +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_43.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_43.js index baa392b1fd..a66ec81a8f 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_43.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_43.js @@ -8,8 +8,12 @@ description: > inherited setter property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {set: function() {;}, enumerable:true}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + set: function() {; + }, + enumerable: true +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_44.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_44.js index 07b368234a..111459fe25 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_44.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_44.js @@ -8,8 +8,12 @@ description: > inherited setter property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {set: function() {;}, configurable:true}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + set: function() {; + }, + configurable: true +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_45.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_45.js index 68c0517ccb..1e160d7bbf 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_45.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_45.js @@ -8,8 +8,13 @@ description: > inherited setter property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {set: function() {;}, enumerable:true, configurable:true}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + set: function() {; + }, + enumerable: true, + configurable: true +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_46.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_46.js index 1ff589a9b7..aaecbc8cc0 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_46.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_46.js @@ -8,8 +8,14 @@ description: > inherited getter/setter property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {get: function() {return 42;}, set: function() {;}}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + get: function() { + return 42; + }, + set: function() {; + } +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_47.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_47.js index 16bc5d71b5..abbb759e01 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_47.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_47.js @@ -8,8 +8,15 @@ description: > inherited getter/setter property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {get: function() {return 42;}, set: function() {;}, enumerable:true}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + get: function() { + return 42; + }, + set: function() {; + }, + enumerable: true +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_48.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_48.js index 0a9c741ff3..7f69fbd290 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_48.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_48.js @@ -8,8 +8,15 @@ description: > inherited getter/setter property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {get: function() {return 42;}, set: function() {;}, configurable:true}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + get: function() { + return 42; + }, + set: function() {; + }, + configurable: true +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_49.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_49.js index d492e9ee87..b8a66b8d5b 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_49.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_49.js @@ -8,8 +8,16 @@ description: > inherited getter/setter property) ---*/ - var base = {}; - Object.defineProperty(base, "foo", {get: function() {return 42;}, set: function() {;}, enumerable:true, configurable:true}); - var o = Object.create(base); +var base = {}; +Object.defineProperty(base, "foo", { + get: function() { + return 42; + }, + set: function() {; + }, + enumerable: true, + configurable: true +}); +var o = Object.create(base); assert.sameValue(o.hasOwnProperty("foo"), false, 'o.hasOwnProperty("foo")'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_5.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_5.js index 19d6229e93..4a11bd83f8 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_5.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_5.js @@ -8,7 +8,10 @@ description: > enumerable own value property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {value: 42, enumerable:true}); +var o = {}; +Object.defineProperty(o, "foo", { + value: 42, + enumerable: true +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_6.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_6.js index 76bd5649c0..09a91470de 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_6.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_6.js @@ -8,7 +8,10 @@ description: > non-enumerable own value property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {value: 42, configurable:true}); +var o = {}; +Object.defineProperty(o, "foo", { + value: 42, + configurable: true +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_7.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_7.js index 8c6ea68847..34350c2f16 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_7.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_7.js @@ -8,7 +8,10 @@ description: > non-enumerable own value property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {value: 42, writable:true}); +var o = {}; +Object.defineProperty(o, "foo", { + value: 42, + writable: true +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_8.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_8.js index 384f1c801e..633ea11815 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_8.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_8.js @@ -8,7 +8,11 @@ description: > enumerable own value property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {value: 42, configurable:true, enumerable:true}); +var o = {}; +Object.defineProperty(o, "foo", { + value: 42, + configurable: true, + enumerable: true +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_9.js b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_9.js index e17903b7c0..12dcc45008 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_9.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_9.js @@ -8,7 +8,11 @@ description: > enumerable own value property) ---*/ - var o = {}; - Object.defineProperty(o, "foo", {value: 42, writable:true, enumerable:true}); +var o = {}; +Object.defineProperty(o, "foo", { + value: 42, + writable: true, + enumerable: true +}); assert(o.hasOwnProperty("foo"), 'o.hasOwnProperty("foo") !== true'); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A10.js b/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A10.js index fee99fa5b9..67b8c7ae86 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A10.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A10.js @@ -19,7 +19,9 @@ if (!(Object.prototype.hasOwnProperty.hasOwnProperty('length'))) { var obj = Object.prototype.hasOwnProperty.length; -verifyNotWritable(Object.prototype.hasOwnProperty, "length", null, function(){return "shifted";}); +verifyNotWritable(Object.prototype.hasOwnProperty, "length", null, function() { + return "shifted"; +}); //CHECK#2 if (Object.prototype.hasOwnProperty.length !== obj) { diff --git a/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A1_T2.js b/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A1_T2.js index 27b0f780b7..7fa88ceae1 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A1_T2.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A1_T2.js @@ -17,7 +17,9 @@ if (typeof Object.prototype.hasOwnProperty !== "function") { $ERROR('#1: hasOwnProperty method is defined'); } -var obj = {the_property:true}; +var obj = { + the_property: true +}; //CHECK#2 if (typeof obj.hasOwnProperty !== "function") { diff --git a/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A1_T3.js b/test/built-ins/Object/prototype/hasOwnProperty/S15.2.4.5_A1_T3.js index dbe38a78de..9108ec9627 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 e494320031..9318f23219 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 a4df74d40d..78e7282692 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 1b87a6c6eb..5f27c33bf9 100644 --- a/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A1.js +++ b/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A1.js @@ -9,16 +9,20 @@ es5id: 15.2.4.6_A1 description: Creating two objects with the same prototype ---*/ -function USER_FACTORY( name ) { +function USER_FACTORY(name) { this.name = name; - this.getName=function(){return name;}; + this.getName = function() { + return name; + }; } -function FORCEDUSER_FACTORY( name, grade ) { - this.name = name; +function FORCEDUSER_FACTORY(name, grade) { + this.name = name; this.grade = grade; - this.getGrade=function(){return grade;}; + this.getGrade = function() { + return grade; + }; } var proto = new USER_FACTORY("noname"); @@ -48,7 +52,7 @@ assert.sameValue( ///////// ////// // CHECK#3 -if(Number.isPrototypeOf(luke)){ +if (Number.isPrototypeOf(luke)) { $ERROR('#2: Native ECMAScript objects have an internal property called [[Prototype]].'); } // diff --git a/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A10.js b/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A10.js index 264eead2ec..a1d7281691 100644 --- a/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A10.js +++ b/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A10.js @@ -19,7 +19,9 @@ if (!(Object.prototype.isPrototypeOf.hasOwnProperty('length'))) { var obj = Object.prototype.isPrototypeOf.length; -verifyNotWritable(Object.prototype.isPrototypeOf, "length", null, function(){return "shifted";}); +verifyNotWritable(Object.prototype.isPrototypeOf, "length", null, function() { + return "shifted"; +}); //CHECK#2 if (Object.prototype.isPrototypeOf.length !== obj) { diff --git a/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A6.js b/test/built-ins/Object/prototype/isPrototypeOf/S15.2.4.6_A6.js index dd63755a1f..3ab10f971f 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 c50e0a0979..8c959469bd 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 6450d5b30c..8bef9171c9 100644 --- a/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A10.js +++ b/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A10.js @@ -19,7 +19,9 @@ if (!(Object.prototype.propertyIsEnumerable.hasOwnProperty('length'))) { var obj = Object.prototype.propertyIsEnumerable.length; -verifyNotWritable(Object.prototype.propertyIsEnumerable, "length", null, function(){return "shifted";}); +verifyNotWritable(Object.prototype.propertyIsEnumerable, "length", null, function() { + return "shifted"; +}); //CHECK#2 if (Object.prototype.propertyIsEnumerable.length !== obj) { diff --git a/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A1_T1.js b/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A1_T1.js index a28b7c6214..a571b5a297 100644 --- a/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A1_T1.js +++ b/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A1_T1.js @@ -16,13 +16,17 @@ if (typeof Object.prototype.propertyIsEnumerable !== "function") { $ERROR('#1: propertyIsEnumerable method is defined'); } -var proto={rootprop:"avis"}; +var proto = { + rootprop: "avis" +}; -function AVISFACTORY(name){this.name=name}; +function AVISFACTORY(name) { + this.name = name +}; AVISFACTORY.prototype = proto; -var seagull= new AVISFACTORY("seagull"); +var seagull = new AVISFACTORY("seagull"); //CHECK#2 if (typeof seagull.propertyIsEnumerable !== "function") { diff --git a/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A2_T2.js b/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A2_T2.js index 5df54cfcc9..16aa7b4e27 100644 --- a/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A2_T2.js +++ b/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A2_T2.js @@ -20,7 +20,9 @@ if (typeof Object.prototype.propertyIsEnumerable !== "function") { $ERROR('#1: propertyIsEnumerable method is defined'); } -var obj = {the_property:true}; +var obj = { + the_property: true +}; //CHECK#2 if (typeof obj.propertyIsEnumerable !== "function") { @@ -33,11 +35,11 @@ if (!(obj.propertyIsEnumerable("the_property"))) { } //CHECK#4 -var accum=""; -for(var prop in obj) { - accum+=prop; +var accum = ""; +for (var prop in obj) { + accum += prop; } -if (accum.indexOf("the_property")!==0) { +if (accum.indexOf("the_property") !== 0) { $ERROR('#4: enumerating works properly'); } // diff --git a/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A6.js b/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A6.js index 4e093cda92..001f70b48e 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 a9a87c5da7..70465fab8e 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 9f81cd5987..c1fad81ff3 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 e07bb39a19..874c1a86a1 100644 --- a/test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A10.js +++ b/test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A10.js @@ -19,7 +19,9 @@ if (!(Object.prototype.toLocaleString.hasOwnProperty('length'))) { var obj = Object.prototype.toLocaleString.length; -verifyNotWritable(Object.prototype.toLocaleString, "length", null, function(){return "shifted";}); +verifyNotWritable(Object.prototype.toLocaleString, "length", null, function() { + return "shifted"; +}); //CHECK#2 if (Object.prototype.toLocaleString.length !== obj) { diff --git a/test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A6.js b/test/built-ins/Object/prototype/toLocaleString/S15.2.4.3_A6.js index 2ba0637806..21474c3d61 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 adddc36be9..4e6402e8ce 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 d9aea6b89e..6aee4b3306 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 9478a50d76..39321f6206 100644 --- a/test/built-ins/Object/prototype/toString/S15.2.4.2_A10.js +++ b/test/built-ins/Object/prototype/toString/S15.2.4.2_A10.js @@ -17,7 +17,9 @@ if (!(Object.prototype.toString.hasOwnProperty('length'))) { var obj = Object.prototype.toString.length; -verifyNotWritable(Object.prototype.toString, "length", null, function(){return "shifted";}); +verifyNotWritable(Object.prototype.toString, "length", null, function() { + return "shifted"; +}); //CHECK#2 if (Object.prototype.toString.length !== obj) { diff --git a/test/built-ins/Object/prototype/toString/S15.2.4.2_A14.js b/test/built-ins/Object/prototype/toString/S15.2.4.2_A14.js index 86e338520d..496eec11b9 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 37eedc92a8..078962da36 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 c1081121ca..616a35f091 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 08a81d649f..6c8e0d7ad1 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 5432ecd3b7..8a38eaa0eb 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 6297a4aeb9..ae3d4adc90 100644 --- a/test/built-ins/Object/prototype/toString/symbol-tag-non-str.js +++ b/test/built-ins/Object/prototype/toString/symbol-tag-non-str.js @@ -34,5 +34,9 @@ assert.sameValue(Object.prototype.toString.call(custom), '[object Object]'); custom[Symbol.toStringTag] = {}; assert.sameValue(Object.prototype.toString.call(custom), '[object Object]'); -custom[Symbol.toStringTag] = { toString: function() { return 'str'; } }; +custom[Symbol.toStringTag] = { + toString: function() { + return 'str'; + } +}; assert.sameValue(Object.prototype.toString.call(custom), '[object Object]'); diff --git a/test/built-ins/Object/prototype/toString/symbol-tag-override-instances.js b/test/built-ins/Object/prototype/toString/symbol-tag-override-instances.js index 48d20a4198..26f9f4bbf5 100644 --- a/test/built-ins/Object/prototype/toString/symbol-tag-override-instances.js +++ b/test/built-ins/Object/prototype/toString/symbol-tag-override-instances.js @@ -24,7 +24,9 @@ custom = new String(); custom[Symbol.toStringTag] = 'test262'; assert.sameValue(Object.prototype.toString.call(custom), '[object test262]'); -custom = (function() { return arguments; }()); +custom = (function() { + return arguments; +}()); custom[Symbol.toStringTag] = 'test262'; assert.sameValue(Object.prototype.toString.call(custom), '[object test262]'); diff --git a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A10.js b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A10.js index 83df8a3bdd..c8d3c25a5b 100644 --- a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A10.js +++ b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A10.js @@ -17,7 +17,9 @@ if (!(Object.prototype.valueOf.hasOwnProperty('length'))) { var obj = Object.prototype.valueOf.length; -verifyNotWritable(Object.prototype.valueOf, "length", null, function(){return "shifted";}); +verifyNotWritable(Object.prototype.valueOf, "length", null, function() { + return "shifted"; +}); //CHECK#2 if (Object.prototype.valueOf.length !== obj) { diff --git a/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A12.js b/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A12.js index a041be8bf4..b09d95dea9 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 f576d726f5..bff652786d 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 4b296a9c20..147a31aee4 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 b138c58dc4..31e763a474 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 7cddd7100a..116cfeec6b 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 0374674c8c..7a62551a31 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 0c1e630620..b5e10ce3f8 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 4ab7b5b4f5..ad158cea26 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 bbf95febdd..b371d63d08 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 e8a2460646..61befa57cd 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 b9cc6e21f9..931f2d41f5 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 384ef83197..424e643306 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 4bfadadeca..cac02cc1f3 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 f07811dfd9..58a6938a6a 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 25391eeffd..d28014c5ed 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 66e063ba5b..326915af3c 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 feaddddbc7..072c6d88cc 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 039762df67..3a31ff959f 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 3d5a840ecb..200d09e934 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 24397984a6..0fe3efb0ab 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 3341b0c9a4..5dff8563f6 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 06898cc03e..27975e688f 100644 --- a/test/built-ins/Object/seal/15.2.3.8-2-4.js +++ b/test/built-ins/Object/seal/15.2.3.8-2-4.js @@ -10,9 +10,9 @@ includes: [propertyHelper.js] var obj = {}; Object.defineProperty(obj, "foo", { - value: 10, - enumerable: false, - configurable: true + value: 10, + enumerable: false, + configurable: true }); assert(Object.isExtensible(obj)); @@ -20,4 +20,3 @@ Object.seal(obj); assert(obj.hasOwnProperty("foo")); verifyNotConfigurable(obj, "foo"); - diff --git a/test/built-ins/Object/seal/15.2.3.8-2-a-15.js b/test/built-ins/Object/seal/15.2.3.8-2-a-15.js index 338af82d85..242a1c85c5 100644 --- a/test/built-ins/Object/seal/15.2.3.8-2-a-15.js +++ b/test/built-ins/Object/seal/15.2.3.8-2-a-15.js @@ -9,7 +9,9 @@ description: > includes: [propertyHelper.js] ---*/ -var obj = (function () { return arguments; })(); +var obj = (function() { + return arguments; +})(); obj.foo = 10; diff --git a/test/built-ins/Object/seal/15.2.3.8-2-a-2.js b/test/built-ins/Object/seal/15.2.3.8-2-a-2.js index fe49e04547..61e30804f9 100644 --- a/test/built-ins/Object/seal/15.2.3.8-2-a-2.js +++ b/test/built-ins/Object/seal/15.2.3.8-2-a-2.js @@ -9,15 +9,17 @@ description: > includes: [propertyHelper.js] ---*/ -var proto = { foo: 0 }; +var proto = { + foo: 0 +}; -var ConstructFun = function () { }; +var ConstructFun = function() {}; ConstructFun.prototype = proto; var obj = new ConstructFun(); Object.defineProperty(obj, "foo", { - value: 10, - configurable: true + value: 10, + configurable: true }); assert(Object.isExtensible(obj)); diff --git a/test/built-ins/Object/seal/15.2.3.8-2-a-3.js b/test/built-ins/Object/seal/15.2.3.8-2-a-3.js index d019f9403d..ee199e32ac 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 9710013470..8de827bd75 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 06c75c0876..c1057e1361 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 f3966899ed..7318061ce0 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 24b01f1edc..808ffc80f7 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 58e43d747d..ab00a63d0f 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 1ca3c0fc34..b86a51857d 100644 --- a/test/built-ins/Object/seal/15.2.3.8-2-b-2.js +++ b/test/built-ins/Object/seal/15.2.3.8-2-b-2.js @@ -14,22 +14,23 @@ var obj = {}; obj.variableForHelpVerify = "data"; function setFunc(value) { - obj.variableForHelpVerify = value; + obj.variableForHelpVerify = value; } + function getFunc() { - return 10; + return 10; } Object.defineProperty(obj, "foo", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: true + get: getFunc, + set: setFunc, + enumerable: true, + configurable: true }); var preCheck = Object.isExtensible(obj); Object.seal(obj); if (!preCheck) { - $ERROR('Expected preCheck to be true, actually ' + preCheck); + $ERROR('Expected preCheck to be true, actually ' + preCheck); } verifyEqualTo(obj, "foo", getFunc()); diff --git a/test/built-ins/Object/seal/15.2.3.8-2-b-3.js b/test/built-ins/Object/seal/15.2.3.8-2-b-3.js index 963931fa45..2576f3ebac 100644 --- a/test/built-ins/Object/seal/15.2.3.8-2-b-3.js +++ b/test/built-ins/Object/seal/15.2.3.8-2-b-3.js @@ -14,29 +14,30 @@ var obj = {}; obj.variableForHelpVerify = "data"; Object.defineProperty(obj, "foo1", { - value: 10, - writable: true, - enumerable: true, - configurable: true + value: 10, + writable: true, + enumerable: true, + configurable: true }); function set_func(value) { - obj.variableForHelpVerify = value; + obj.variableForHelpVerify = value; } + function get_func() { - return 10; + return 10; } Object.defineProperty(obj, "foo2", { - get: get_func, - set: set_func, - enumerable: true, - configurable: true + get: get_func, + set: set_func, + enumerable: true, + configurable: true }); var preCheck = Object.isExtensible(obj); Object.seal(obj); if (!preCheck) { - $ERROR('Expected preCheck to be true, actually ' + preCheck); + $ERROR('Expected preCheck to be true, actually ' + preCheck); } diff --git a/test/built-ins/Object/seal/15.2.3.8-2-b-4.js b/test/built-ins/Object/seal/15.2.3.8-2-b-4.js index 5d455e9eb3..4de248b106 100644 --- a/test/built-ins/Object/seal/15.2.3.8-2-b-4.js +++ b/test/built-ins/Object/seal/15.2.3.8-2-b-4.js @@ -13,33 +13,34 @@ var obj = {}; obj.variableForHelpVerify = "data"; Object.defineProperty(obj, "foo1", { - value: 10, - writable: true, - enumerable: true, - configurable: false + value: 10, + writable: true, + enumerable: true, + configurable: false }); function set_func(value) { - obj.variableForHelpVerify = value; + obj.variableForHelpVerify = value; } + function get_func() { - return 10; + return 10; } Object.defineProperty(obj, "foo2", { - get: get_func, - set: set_func, - enumerable: true, - configurable: false + get: get_func, + set: set_func, + enumerable: true, + configurable: false }); if (!Object.isExtensible(obj)) { - $ERROR('Expected obj to be extensible, actually ' + Object.isExtensible(obj)); + $ERROR('Expected obj to be extensible, actually ' + Object.isExtensible(obj)); } Object.seal(obj); if (Object.isExtensible(obj)) { - $ERROR('Expected obj NOT to be extensible, actually ' + Object.isExtensible(obj)); + $ERROR('Expected obj NOT to be extensible, actually ' + Object.isExtensible(obj)); } verifyEqualTo(obj, "foo1", 10); diff --git a/test/built-ins/Object/seal/15.2.3.8-2-c-1.js b/test/built-ins/Object/seal/15.2.3.8-2-c-1.js index fe0eb6cfa7..514456a666 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 963717c00b..49a8aef6df 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 f967549d50..447a2d5fd0 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 5918c5c1f5..a02152abd8 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 ece59ee7ea..b602648cdf 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 05a03fb4b4..3976ae55f5 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 40de20e29d..1e50a1602b 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 0535ffd7fd..e72ff62593 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 fb65b1fe29..0a93350b30 100644 --- a/test/built-ins/Object/seal/15.2.3.8-2-c-9.js +++ b/test/built-ins/Object/seal/15.2.3.8-2-c-9.js @@ -6,10 +6,12 @@ es5id: 15.2.3.8-2-c-9 description: Object.seal - 'O' is an Arguments object ---*/ - var argObj = (function () { return arguments; })(); +var argObj = (function() { + return arguments; +})(); - var preCheck = Object.isExtensible(argObj); - Object.seal(argObj); +var preCheck = Object.isExtensible(argObj); +Object.seal(argObj); assert(preCheck, 'preCheck !== true'); assert(Object.isSealed(argObj), 'Object.isSealed(argObj) !== true'); diff --git a/test/built-ins/Object/seal/15.2.3.8-3-1.js b/test/built-ins/Object/seal/15.2.3.8-3-1.js index c0e9bcc753..4beb1bd674 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 65ad90f6ed..56ea87c30f 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 26f0600eba..bd6edb2fc5 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 bf09289f8b..0b3329c804 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 831deb3d57..f4e15aa86b 100644 --- a/test/built-ins/Object/seal/symbol-object-contains-symbol-properties-non-strict.js +++ b/test/built-ins/Object/seal/symbol-object-contains-symbol-properties-non-strict.js @@ -18,4 +18,3 @@ obj[symB] = 1; assert.sameValue(obj[symA], 2, "The value of `obj[symA]` is `2`"); assert.sameValue(delete obj[symA], false, "`delete obj[symA]` is `false`"); assert.sameValue(obj[symB], undefined, "The value of `obj[symB]` is `undefined`"); - diff --git a/test/built-ins/Object/seal/symbol-object-contains-symbol-properties-strict.js b/test/built-ins/Object/seal/symbol-object-contains-symbol-properties-strict.js index 0c04b43169..e8fd7d34fd 100644 --- a/test/built-ins/Object/seal/symbol-object-contains-symbol-properties-strict.js +++ b/test/built-ins/Object/seal/symbol-object-contains-symbol-properties-strict.js @@ -23,4 +23,3 @@ assert.throws(TypeError, function() { assert.throws(TypeError, function() { obj[symB] = 1; }); - diff --git a/test/built-ins/Object/setPrototypeOf/bigint.js b/test/built-ins/Object/setPrototypeOf/bigint.js index 63545034f8..f10b06f16e 100644 --- a/test/built-ins/Object/setPrototypeOf/bigint.js +++ b/test/built-ins/Object/setPrototypeOf/bigint.js @@ -8,9 +8,9 @@ features: [BigInt] ---*/ try { - let {} = 0n; + let {} = 0n; } catch (e) { - $ERROR('Expected RequireObjectCoercible to succeed for BigInt values'); + $ERROR('Expected RequireObjectCoercible to succeed for BigInt values'); } -assert.sameValue(Object.setPrototypeOf(0n, null), 0n); +assert.sameValue(Object.setPrototypeOf(0n, null), 0 n); diff --git a/test/built-ins/Object/setPrototypeOf/name.js b/test/built-ins/Object/setPrototypeOf/name.js index 73a1c691e6..d9cffe8f4b 100644 --- a/test/built-ins/Object/setPrototypeOf/name.js +++ b/test/built-ins/Object/setPrototypeOf/name.js @@ -28,4 +28,3 @@ assert.sameValue( verifyNotEnumerable(Object.setPrototypeOf, 'name'); verifyNotWritable(Object.setPrototypeOf, 'name'); verifyConfigurable(Object.setPrototypeOf, 'name'); - diff --git a/test/built-ins/Object/values/exception-during-enumeration.js b/test/built-ins/Object/values/exception-during-enumeration.js index a11b20e69d..0446a33c52 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 35dce7a18a..3248b6d6fd 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 7f730f1415..7a9c882a13 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 a2fc70242b..86b61eb9a0 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 d54ae30278..05bfdefc6d 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 6893bf8589..a9276075cb 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 d6068d714a..096604baa6 100644 --- a/test/built-ins/Object/values/observable-operations.js +++ b/test/built-ins/Object/values/observable-operations.js @@ -10,27 +10,31 @@ includes: [proxyTrapsHelper.js] ---*/ var log = ""; -var object = { a: 0, b: 0, c: 0 }; +var object = { + a: 0, + b: 0, + c: 0 +}; var handler = allowProxyTraps({ - get: function (target, propertyKey, receiver) { + get: function(target, propertyKey, receiver) { assert.sameValue(target, object, "get target"); assert.sameValue(receiver, proxy, "get receiver"); log += "|get:" + propertyKey; return target[propertyKey]; }, - getOwnPropertyDescriptor: function (target, propertyKey) { + getOwnPropertyDescriptor: function(target, propertyKey) { assert.sameValue(target, object, "getOwnPropertyDescriptor"); log += "|getOwnPropertyDescriptor:" + propertyKey; return Object.getOwnPropertyDescriptor(target, propertyKey); }, - ownKeys: function (target) { + ownKeys: function(target) { assert.sameValue(target, object, "ownKeys"); log += "|ownKeys"; return Object.getOwnPropertyNames(target); } }); var check = allowProxyTraps({ - get: function (target, propertyKey, receiver) { + get: function(target, propertyKey, receiver) { assert(propertyKey in target, "handler check: " + propertyKey); return target[propertyKey]; } diff --git a/test/built-ins/Object/values/symbols-omitted.js b/test/built-ins/Object/values/symbols-omitted.js index 080b183e9f..29273f39ba 100644 --- a/test/built-ins/Object/values/symbols-omitted.js +++ b/test/built-ins/Object/values/symbols-omitted.js @@ -13,9 +13,14 @@ var enumSym = Symbol('enum'); var nonEnumSym = Symbol('nonenum'); var symValue = Symbol('value'); -var obj = { key: symValue }; +var obj = { + key: symValue +}; obj[enumSym] = value; -Object.defineProperty(obj, nonEnumSym, { enumerable: false, value: value }); +Object.defineProperty(obj, nonEnumSym, { + enumerable: false, + value: value +}); var result = Object.values(obj); diff --git a/test/built-ins/Object/values/tamper-with-global-object.js b/test/built-ins/Object/values/tamper-with-global-object.js index e0a038ff9f..86d5340465 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 bdc9550111..51dfbf5c46 100644 --- a/test/built-ins/Object/values/tamper-with-object-keys.js +++ b/test/built-ins/Object/values/tamper-with-object-keys.js @@ -9,10 +9,12 @@ author: Jordan Harband ---*/ function fakeObjectKeys() { - $ERROR('The overriden version of Object.keys was called!'); + $ERROR('The overriden version of Object.keys was called!'); } Object.keys = fakeObjectKeys; assert.sameValue(Object.keys, fakeObjectKeys, 'Sanity check failed: could not modify the global Object.keys'); -assert.sameValue(Object.values({ a: 1 }).length, 1, 'Expected object with 1 key to have 1 value'); +assert.sameValue(Object.values({ + a: 1 +}).length, 1, 'Expected object with 1 key to have 1 value'); diff --git a/test/built-ins/Promise/S25.4.3.1_A1.1_T1.js b/test/built-ins/Promise/S25.4.3.1_A1.1_T1.js index 6292c438e1..06f9f6fb60 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 8da80d8463..afbef52eee 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 0e969f6527..855595e76b 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 341dd6417a..424b1a7f18 100644 --- a/test/built-ins/Promise/S25.4.3.1_A2.3_T1.js +++ b/test/built-ins/Promise/S25.4.3.1_A2.3_T1.js @@ -10,14 +10,16 @@ description: Promise.call(resolved Promise) throws TypeError flags: [async] ---*/ -var p = new Promise(function(resolve) { resolve(1); }); +var p = new Promise(function(resolve) { + resolve(1); +}); -p.then(function () { - Promise.call(p, function () {}); -}).then(function () { - $ERROR("Unexpected resolution - expected TypeError"); -}, function (err) { - if (!(err instanceof TypeError)) { - $ERROR("Expected TypeError, got " + err); - } +p.then(function() { + Promise.call(p, function() {}); +}).then(function() { + $ERROR("Unexpected resolution - expected TypeError"); +}, function(err) { + if (!(err instanceof TypeError)) { + $ERROR("Expected TypeError, got " + err); + } }).then($DONE, $DONE); diff --git a/test/built-ins/Promise/S25.4.3.1_A2.4_T1.js b/test/built-ins/Promise/S25.4.3.1_A2.4_T1.js index 4b3e452e20..e852b02745 100644 --- a/test/built-ins/Promise/S25.4.3.1_A2.4_T1.js +++ b/test/built-ins/Promise/S25.4.3.1_A2.4_T1.js @@ -10,14 +10,16 @@ description: Promise.call(rejected Promise) throws TypeError flags: [async] ---*/ -var p = new Promise(function(resolve, reject) { reject(1) }); +var p = new Promise(function(resolve, reject) { + reject(1) +}); -p.catch(function () { - Promise.call(p, function () {}); -}).then(function () { - $ERROR("Unexpected resolution - expected TypeError"); -}, function (err) { - if (!(err instanceof TypeError)) { - $ERROR("Expected TypeError, got " + err); - } +p.catch(function() { + Promise.call(p, function() {}); +}).then(function() { + $ERROR("Unexpected resolution - expected TypeError"); +}, function(err) { + if (!(err instanceof TypeError)) { + $ERROR("Expected TypeError, got " + err); + } }).then($DONE, $DONE); diff --git a/test/built-ins/Promise/S25.4.3.1_A4.1_T1.js b/test/built-ins/Promise/S25.4.3.1_A4.1_T1.js index d990b54480..26d1cb0ce2 100644 --- a/test/built-ins/Promise/S25.4.3.1_A4.1_T1.js +++ b/test/built-ins/Promise/S25.4.3.1_A4.1_T1.js @@ -12,15 +12,14 @@ flags: [async] ---*/ var errorObject = {}, - p = new Promise(function () { - throw errorObject; - }); + p = new Promise(function() { + throw errorObject; + }); p.then(function() { - $ERROR("Unexpected fulfill -- promise should reject."); -}, function (err) { - if (err !== errorObject) { - $ERROR("Expected promise rejection reason to be thrown errorObject, actually " + err); - } + $ERROR("Unexpected fulfill -- promise should reject."); +}, function(err) { + if (err !== errorObject) { + $ERROR("Expected promise rejection reason to be thrown errorObject, actually " + err); + } }).then($DONE, $DONE); - diff --git a/test/built-ins/Promise/S25.4.3.1_A5.1_T1.js b/test/built-ins/Promise/S25.4.3.1_A5.1_T1.js index 418f94069c..da4221c47f 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 3c0548704a..58cdb04d16 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 597b68aa9f..02c7922d34 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 92149f2aae..e542fadf4e 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 ddeea876d2..8ab5996325 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 1b61ede66d..6c893b3316 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 77cd2628e0..568aae4756 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 5dc1568eb6..1573e1cf27 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 805a055255..9c5887f281 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 88e7acb72a..e838c9898b 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 9dcabfadd7..0f92a96c0c 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 e2ad6eee7d..a594a579bf 100644 --- a/test/built-ins/Promise/all/S25.4.4.1_A4.1_T1.js +++ b/test/built-ins/Promise/all/S25.4.4.1_A4.1_T1.js @@ -9,8 +9,7 @@ description: this must conform to Promise constructor in Promise.all author: Sam Mikes ---*/ -function ZeroArgConstructor() { -} +function ZeroArgConstructor() {} assert.throws(TypeError, function() { Promise.all.call(ZeroArgConstructor, []); diff --git a/test/built-ins/Promise/all/S25.4.4.1_A5.1_T1.js b/test/built-ins/Promise/all/S25.4.4.1_A5.1_T1.js index 2428711a62..18ef595bf4 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 a3ba1d7a89..5621dc9279 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 73a47330b4..baf2bba257 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 7eb81e9cee..e8cc200f7f 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 480147423c..546c472546 100644 --- a/test/built-ins/Promise/all/S25.4.4.1_A7.2_T1.js +++ b/test/built-ins/Promise/all/S25.4.4.1_A7.2_T1.js @@ -14,21 +14,23 @@ flags: [async] var sequence = []; -var p1 = new Promise(function (resolve) { resolve({}); } ); +var p1 = new Promise(function(resolve) { + resolve({}); +}); sequence.push(1); -Promise.all([p1]).then(function (resolved) { - sequence.push(4); - checkSequence(sequence, "Expected Promise.all().then to queue second"); +Promise.all([p1]).then(function(resolved) { + sequence.push(4); + checkSequence(sequence, "Expected Promise.all().then to queue second"); }).catch($DONE); -p1.then(function () { - sequence.push(3); - checkSequence(sequence, "Expected p1.then to queue first"); -}).then(function () { - sequence.push(5); - checkSequence(sequence, "Expected final then to queue last"); +p1.then(function() { + sequence.push(3); + checkSequence(sequence, "Expected p1.then to queue first"); +}).then(function() { + sequence.push(5); + checkSequence(sequence, "Expected final then to queue last"); }).then($DONE, $DONE); sequence.push(2); diff --git a/test/built-ins/Promise/all/S25.4.4.1_A8.1_T1.js b/test/built-ins/Promise/all/S25.4.4.1_A8.1_T1.js index 7a6d917d0e..4115767c54 100644 --- a/test/built-ins/Promise/all/S25.4.4.1_A8.1_T1.js +++ b/test/built-ins/Promise/all/S25.4.4.1_A8.1_T1.js @@ -11,24 +11,28 @@ flags: [async] var sequence = []; -var p1 = new Promise(function (resolve) { resolve(1); } ); -var p2 = new Promise(function (resolve) { resolve(2); } ); +var p1 = new Promise(function(resolve) { + resolve(1); +}); +var p2 = new Promise(function(resolve) { + resolve(2); +}); sequence.push(1); -p1.then(function () { - sequence.push(3); - checkSequence(sequence, "Expected to be called first."); +p1.then(function() { + sequence.push(3); + checkSequence(sequence, "Expected to be called first."); }).catch($DONE); -Promise.all([p1, p2]).then(function () { - sequence.push(5); - checkSequence(sequence, "Expected to be called third."); +Promise.all([p1, p2]).then(function() { + sequence.push(5); + checkSequence(sequence, "Expected to be called third."); }).then($DONE, $DONE); -p2.then(function () { - sequence.push(4); - checkSequence(sequence, "Expected to be called second."); +p2.then(function() { + sequence.push(4); + checkSequence(sequence, "Expected to be called second."); }).catch($DONE); sequence.push(2); diff --git a/test/built-ins/Promise/all/S25.4.4.1_A8.2_T1.js b/test/built-ins/Promise/all/S25.4.4.1_A8.2_T1.js index 77d087034c..b726f5879f 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 bb700ae464..128375aaec 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 6b85ec15e3..c644abeb88 100644 --- a/test/built-ins/Promise/all/call-resolve-element-after-return.js +++ b/test/built-ins/Promise/all/call-resolve-element-after-return.js @@ -27,7 +27,9 @@ function Constructor(executor) { } executor(resolve, $ERROR); } -Constructor.resolve = function(v) { return v; }; +Constructor.resolve = function(v) { + return v; +}; var p1OnFulfilled; diff --git a/test/built-ins/Promise/all/call-resolve-element-items.js b/test/built-ins/Promise/all/call-resolve-element-items.js index 97e7541c37..3cf7629a46 100644 --- a/test/built-ins/Promise/all/call-resolve-element-items.js +++ b/test/built-ins/Promise/all/call-resolve-element-items.js @@ -26,7 +26,9 @@ function Constructor(executor) { } executor(resolve, $ERROR); } -Constructor.resolve = function(v) { return v; }; +Constructor.resolve = function(v) { + return v; +}; var p1 = { then: function(onFulfilled, onRejected) { diff --git a/test/built-ins/Promise/all/call-resolve-element.js b/test/built-ins/Promise/all/call-resolve-element.js index fc600d4592..37be4b02d5 100644 --- a/test/built-ins/Promise/all/call-resolve-element.js +++ b/test/built-ins/Promise/all/call-resolve-element.js @@ -25,7 +25,9 @@ function Constructor(executor) { } executor(resolve, $ERROR); } -Constructor.resolve = function(v) { return v; }; +Constructor.resolve = function(v) { + return v; +}; var p1 = { then: function(onFulfilled, onRejected) { diff --git a/test/built-ins/Promise/all/capability-executor-called-twice.js b/test/built-ins/Promise/all/capability-executor-called-twice.js index 580483b339..7f9427dbca 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 91ed108640..db4092e664 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 9124a3a560..390bf8d253 100644 --- a/test/built-ins/Promise/all/capability-resolve-throws-no-close.js +++ b/test/built-ins/Promise/all/capability-resolve-throws-no-close.js @@ -50,7 +50,9 @@ var iter = {}; iter[Symbol.iterator] = function() { return { next: function() { - return { done: true }; + return { + done: true + }; }, return: function() { returnCount += 1; @@ -60,7 +62,9 @@ iter[Symbol.iterator] = function() { }; var P = function(executor) { return new Promise(function(_, reject) { - executor(function() { throw new Test262Error(); }, reject); + executor(function() { + throw new Test262Error(); + }, reject); }); }; diff --git a/test/built-ins/Promise/all/capability-resolve-throws-reject.js b/test/built-ins/Promise/all/capability-resolve-throws-reject.js index 3ad3affdee..57f3e27558 100644 --- a/test/built-ins/Promise/all/capability-resolve-throws-reject.js +++ b/test/built-ins/Promise/all/capability-resolve-throws-reject.js @@ -48,7 +48,9 @@ flags: [async] var thrown = new Test262Error(); var P = function(executor) { return new Promise(function(_, reject) { - executor(function() { throw thrown; }, reject); + executor(function() { + throw thrown; + }, reject); }); }; diff --git a/test/built-ins/Promise/all/does-not-invoke-array-setters.js b/test/built-ins/Promise/all/does-not-invoke-array-setters.js index 19db5a8be7..54c332a022 100644 --- a/test/built-ins/Promise/all/does-not-invoke-array-setters.js +++ b/test/built-ins/Promise/all/does-not-invoke-array-setters.js @@ -33,4 +33,6 @@ Object.defineProperty(Array.prototype, 0, { } }); -Promise.all([42]).then(function(){ $DONE(); }, $DONE); +Promise.all([42]).then(function() { + $DONE(); +}, $DONE); diff --git a/test/built-ins/Promise/all/invoke-resolve-error-close.js b/test/built-ins/Promise/all/invoke-resolve-error-close.js index ac2ca28249..aead2b6477 100644 --- a/test/built-ins/Promise/all/invoke-resolve-error-close.js +++ b/test/built-ins/Promise/all/invoke-resolve-error-close.js @@ -30,7 +30,10 @@ var callCount = 0; iterDoneSpy[Symbol.iterator] = function() { return { next: function() { - return { value: null, done: false }; + return { + value: null, + done: false + }; }, return: function() { callCount += 1; diff --git a/test/built-ins/Promise/all/invoke-resolve-get-error-close.js b/test/built-ins/Promise/all/invoke-resolve-get-error-close.js index ce43d8ab15..22e75e0df4 100644 --- a/test/built-ins/Promise/all/invoke-resolve-get-error-close.js +++ b/test/built-ins/Promise/all/invoke-resolve-get-error-close.js @@ -30,7 +30,9 @@ var returnCount = 0; iter[Symbol.iterator] = function() { return { next: function() { - return { done: false }; + return { + done: false + }; }, return: function() { returnCount += 1; diff --git a/test/built-ins/Promise/all/invoke-then-error-close.js b/test/built-ins/Promise/all/invoke-then-error-close.js index 6786b31883..fe683d91ea 100644 --- a/test/built-ins/Promise/all/invoke-then-error-close.js +++ b/test/built-ins/Promise/all/invoke-then-error-close.js @@ -31,7 +31,10 @@ var iter = {}; iter[Symbol.iterator] = function() { return { next: function() { - return { done: false, value: promise }; + return { + done: false, + value: promise + }; }, return: function() { returnCount += 1; diff --git a/test/built-ins/Promise/all/invoke-then-get-error-close.js b/test/built-ins/Promise/all/invoke-then-get-error-close.js index a200b752a5..5023c3d4f3 100644 --- a/test/built-ins/Promise/all/invoke-then-get-error-close.js +++ b/test/built-ins/Promise/all/invoke-then-get-error-close.js @@ -31,7 +31,10 @@ var iter = {}; iter[Symbol.iterator] = function() { return { next: function() { - return { done: false, value: promise }; + return { + done: false, + value: promise + }; }, return: function() { returnCount += 1; diff --git a/test/built-ins/Promise/all/new-resolve-function.js b/test/built-ins/Promise/all/new-resolve-function.js index 383148f449..b4778a9140 100644 --- a/test/built-ins/Promise/all/new-resolve-function.js +++ b/test/built-ins/Promise/all/new-resolve-function.js @@ -15,14 +15,17 @@ info: | ... ---*/ -function resolveFunction() { } +function resolveFunction() {} function Constructor(executor) { executor(resolveFunction, $ERROR); } -Constructor.resolve = function(v) { return v; }; +Constructor.resolve = function(v) { + return v; +}; -var callCount1 = 0, callCount2 = 0; +var callCount1 = 0, + callCount2 = 0; var p1OnFulfilled; var p1 = { diff --git a/test/built-ins/Promise/all/reject-deferred.js b/test/built-ins/Promise/all/reject-deferred.js index 40d2821352..bd4280ec15 100644 --- a/test/built-ins/Promise/all/reject-deferred.js +++ b/test/built-ins/Promise/all/reject-deferred.js @@ -25,7 +25,9 @@ flags: [async] var thenable = { then: function(_, reject) { - new Promise(function(resolve) { resolve(); }) + new Promise(function(resolve) { + resolve(); + }) .then(function() { reject(); }); diff --git a/test/built-ins/Promise/all/reject-ignored-deferred.js b/test/built-ins/Promise/all/reject-ignored-deferred.js index 2913ba7606..6303836d53 100644 --- a/test/built-ins/Promise/all/reject-ignored-deferred.js +++ b/test/built-ins/Promise/all/reject-ignored-deferred.js @@ -30,7 +30,9 @@ flags: [async] var fulfiller = { then: function(resolve) { - new Promise(function(resolve) { resolve(); }) + new Promise(function(resolve) { + resolve(); + }) .then(function() { resolve(); }); @@ -38,7 +40,9 @@ var fulfiller = { }; var rejector = { then: function(resolve, reject) { - new Promise(function(resolve) { resolve(); }) + new Promise(function(resolve) { + resolve(); + }) .then(function() { resolve(); reject(); diff --git a/test/built-ins/Promise/all/resolve-before-loop-exit-from-same.js b/test/built-ins/Promise/all/resolve-before-loop-exit-from-same.js index 3294503dac..0c8d848f29 100644 --- a/test/built-ins/Promise/all/resolve-before-loop-exit-from-same.js +++ b/test/built-ins/Promise/all/resolve-before-loop-exit-from-same.js @@ -39,7 +39,9 @@ function Constructor(executor) { } executor(resolve, $ERROR); } -Constructor.resolve = function(v) { return v; }; +Constructor.resolve = function(v) { + return v; +}; var p1OnFulfilled; diff --git a/test/built-ins/Promise/all/resolve-before-loop-exit.js b/test/built-ins/Promise/all/resolve-before-loop-exit.js index 0ecb2a179b..3f09d3cebf 100644 --- a/test/built-ins/Promise/all/resolve-before-loop-exit.js +++ b/test/built-ins/Promise/all/resolve-before-loop-exit.js @@ -39,7 +39,9 @@ function Constructor(executor) { } executor(resolve, $ERROR); } -Constructor.resolve = function(v) { return v; }; +Constructor.resolve = function(v) { + return v; +}; var p1OnFulfilled; diff --git a/test/built-ins/Promise/all/resolve-element-function-extensible.js b/test/built-ins/Promise/all/resolve-element-function-extensible.js index fff03cde84..570222b0fe 100644 --- a/test/built-ins/Promise/all/resolve-element-function-extensible.js +++ b/test/built-ins/Promise/all/resolve-element-function-extensible.js @@ -16,10 +16,13 @@ var thenable = { resolveElementFunction = fulfill; } }; + function NotPromise(executor) { - executor(function(){}, function(){}); + executor(function() {}, function() {}); } -NotPromise.resolve = function(v) { return v; }; +NotPromise.resolve = function(v) { + return v; +}; Promise.all.call(NotPromise, [thenable]); assert(Object.isExtensible(resolveElementFunction)); diff --git a/test/built-ins/Promise/all/resolve-element-function-length.js b/test/built-ins/Promise/all/resolve-element-function-length.js index 6b15705820..87938eb4de 100644 --- a/test/built-ins/Promise/all/resolve-element-function-length.js +++ b/test/built-ins/Promise/all/resolve-element-function-length.js @@ -20,10 +20,13 @@ var thenable = { resolveElementFunction = fulfill; } }; + function NotPromise(executor) { - executor(function(){}, function(){}); + executor(function() {}, function() {}); } -NotPromise.resolve = function(v) { return v; }; +NotPromise.resolve = function(v) { + return v; +}; Promise.all.call(NotPromise, [thenable]); assert.sameValue(resolveElementFunction.length, 1); diff --git a/test/built-ins/Promise/all/resolve-element-function-name.js b/test/built-ins/Promise/all/resolve-element-function-name.js index f975ef3acf..2af12b808f 100644 --- a/test/built-ins/Promise/all/resolve-element-function-name.js +++ b/test/built-ins/Promise/all/resolve-element-function-name.js @@ -19,10 +19,13 @@ var thenable = { resolveElementFunction = fulfill; } }; + function NotPromise(executor) { - executor(function(){}, function(){}); + executor(function() {}, function() {}); } -NotPromise.resolve = function(v) { return v; }; +NotPromise.resolve = function(v) { + return v; +}; Promise.all.call(NotPromise, [thenable]); assert.sameValue(Object.prototype.hasOwnProperty.call(resolveElementFunction, "name"), false); diff --git a/test/built-ins/Promise/all/resolve-element-function-nonconstructor.js b/test/built-ins/Promise/all/resolve-element-function-nonconstructor.js index 4c329a4b0a..7da0373471 100644 --- a/test/built-ins/Promise/all/resolve-element-function-nonconstructor.js +++ b/test/built-ins/Promise/all/resolve-element-function-nonconstructor.js @@ -17,11 +17,16 @@ var thenable = { resolveElementFunction = fulfill; } }; + function NotPromise(executor) { - executor(function(){}, function(){}); + executor(function() {}, function() {}); } -NotPromise.resolve = function(v) { return v; }; +NotPromise.resolve = function(v) { + return v; +}; Promise.all.call(NotPromise, [thenable]); assert.sameValue(Object.prototype.hasOwnProperty.call(resolveElementFunction, "prototype"), false); -assert.throws(TypeError, function() { new resolveElementFunction(); }); +assert.throws(TypeError, function() { + new resolveElementFunction(); +}); diff --git a/test/built-ins/Promise/all/resolve-element-function-prototype.js b/test/built-ins/Promise/all/resolve-element-function-prototype.js index c809e78c6d..f7c66f97c6 100644 --- a/test/built-ins/Promise/all/resolve-element-function-prototype.js +++ b/test/built-ins/Promise/all/resolve-element-function-prototype.js @@ -18,10 +18,13 @@ var thenable = { resolveElementFunction = fulfill; } }; + function NotPromise(executor) { - executor(function(){}, function(){}); + executor(function() {}, function() {}); } -NotPromise.resolve = function(v) { return v; }; +NotPromise.resolve = function(v) { + return v; +}; Promise.all.call(NotPromise, [thenable]); assert.sameValue(Object.getPrototypeOf(resolveElementFunction), Function.prototype); diff --git a/test/built-ins/Promise/all/resolve-from-same-thenable.js b/test/built-ins/Promise/all/resolve-from-same-thenable.js index 02cc9b982b..430026ff86 100644 --- a/test/built-ins/Promise/all/resolve-from-same-thenable.js +++ b/test/built-ins/Promise/all/resolve-from-same-thenable.js @@ -39,7 +39,9 @@ function Constructor(executor) { } executor(resolve, $ERROR); } -Constructor.resolve = function(v) { return v; }; +Constructor.resolve = function(v) { + return v; +}; var p1OnFulfilled, p2OnFulfilled, p3OnFulfilled; diff --git a/test/built-ins/Promise/all/resolve-poisoned-then.js b/test/built-ins/Promise/all/resolve-poisoned-then.js index 53de258c72..191175a698 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 c39de44bb9..905eff3876 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 0e0db97c4d..9c8107532d 100644 --- a/test/built-ins/Promise/all/same-reject-function.js +++ b/test/built-ins/Promise/all/same-reject-function.js @@ -13,14 +13,17 @@ info: | ... ---*/ -function rejectFunction() { } +function rejectFunction() {} function Constructor(executor) { executor($ERROR, rejectFunction); } -Constructor.resolve = function(v) { return v; }; +Constructor.resolve = function(v) { + return v; +}; -var callCount1 = 0, callCount2 = 0; +var callCount1 = 0, + callCount2 = 0; var p1 = { then: function(onFulfilled, onRejected) { diff --git a/test/built-ins/Promise/all/species-get-error.js b/test/built-ins/Promise/all/species-get-error.js index 0311392b00..43ed463d6c 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 d15764391f..67b539538c 100644 --- a/test/built-ins/Promise/executor-function-extensible.js +++ b/test/built-ins/Promise/executor-function-extensible.js @@ -11,9 +11,10 @@ info: | ---*/ var executorFunction; + function NotPromise(executor) { executorFunction = executor; - executor(function(){}, function(){}); + executor(function() {}, function() {}); } Promise.resolve.call(NotPromise); diff --git a/test/built-ins/Promise/executor-function-length.js b/test/built-ins/Promise/executor-function-length.js index 01fdedcaa2..0558e97b55 100644 --- a/test/built-ins/Promise/executor-function-length.js +++ b/test/built-ins/Promise/executor-function-length.js @@ -15,9 +15,10 @@ includes: [propertyHelper.js] ---*/ var executorFunction; + function NotPromise(executor) { executorFunction = executor; - executor(function(){}, function(){}); + executor(function() {}, function() {}); } Promise.resolve.call(NotPromise); diff --git a/test/built-ins/Promise/executor-function-name.js b/test/built-ins/Promise/executor-function-name.js index ceb4aa98d0..f571504fc9 100644 --- a/test/built-ins/Promise/executor-function-name.js +++ b/test/built-ins/Promise/executor-function-name.js @@ -14,9 +14,10 @@ info: | ---*/ var executorFunction; + function NotPromise(executor) { executorFunction = executor; - executor(function(){}, function(){}); + executor(function() {}, function() {}); } Promise.resolve.call(NotPromise); diff --git a/test/built-ins/Promise/executor-function-nonconstructor.js b/test/built-ins/Promise/executor-function-nonconstructor.js index 53c1c4595e..e8686c60ed 100644 --- a/test/built-ins/Promise/executor-function-nonconstructor.js +++ b/test/built-ins/Promise/executor-function-nonconstructor.js @@ -12,11 +12,14 @@ info: | ---*/ var executorFunction; + function NotPromise(executor) { executorFunction = executor; - executor(function(){}, function(){}); + executor(function() {}, function() {}); } Promise.resolve.call(NotPromise); assert.sameValue(Object.prototype.hasOwnProperty.call(executorFunction, "prototype"), false); -assert.throws(TypeError, function() { new executorFunction(); }); +assert.throws(TypeError, function() { + new executorFunction(); +}); diff --git a/test/built-ins/Promise/executor-function-prototype.js b/test/built-ins/Promise/executor-function-prototype.js index 83d84e46ef..c334f4f5b5 100644 --- a/test/built-ins/Promise/executor-function-prototype.js +++ b/test/built-ins/Promise/executor-function-prototype.js @@ -13,9 +13,10 @@ info: | ---*/ var executorFunction; + function NotPromise(executor) { executorFunction = executor; - executor(function(){}, function(){}); + executor(function() {}, function() {}); } Promise.resolve.call(NotPromise); diff --git a/test/built-ins/Promise/prototype/S25.4.4.2_A1.1_T1.js b/test/built-ins/Promise/prototype/S25.4.4.2_A1.1_T1.js index 2ac312176d..139ed3a1b5 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 c8719d738b..23e3452d80 100644 --- a/test/built-ins/Promise/prototype/S25.4.5_A3.1_T1.js +++ b/test/built-ins/Promise/prototype/S25.4.5_A3.1_T1.js @@ -10,6 +10,5 @@ description: Promise.prototype.constructor is the Promise constructor ---*/ if (Promise.prototype.constructor !== Promise) { - $ERROR("Expected Promise.prototype.constructor to be Promise"); + $ERROR("Expected Promise.prototype.constructor to be Promise"); } - diff --git a/test/built-ins/Promise/prototype/catch/S25.4.5.1_A1.1_T1.js b/test/built-ins/Promise/prototype/catch/S25.4.5.1_A1.1_T1.js index abd62d6151..958bb552e3 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 1dfed96c34..20e81c5acd 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 a13171c314..6606fdcdc1 100644 --- a/test/built-ins/Promise/prototype/catch/S25.4.5.1_A3.1_T1.js +++ b/test/built-ins/Promise/prototype/catch/S25.4.5.1_A3.1_T1.js @@ -14,11 +14,10 @@ var obj = {}; var p = Promise.resolve(obj); -p.catch(function () { - $ERROR("Should not be called - promise is fulfilled"); -}).then(function (arg) { - if (arg !== obj) { - $ERROR("Expected promise to be fulfilled with obj, got " + arg); - } +p.catch(function() { + $ERROR("Should not be called - promise is fulfilled"); +}).then(function(arg) { + if (arg !== obj) { + $ERROR("Expected promise to be fulfilled with obj, got " + arg); + } }).then($DONE, $DONE); - diff --git a/test/built-ins/Promise/prototype/catch/S25.4.5.1_A3.1_T2.js b/test/built-ins/Promise/prototype/catch/S25.4.5.1_A3.1_T2.js index b04fbf6300..e0194fc4a1 100644 --- a/test/built-ins/Promise/prototype/catch/S25.4.5.1_A3.1_T2.js +++ b/test/built-ins/Promise/prototype/catch/S25.4.5.1_A3.1_T2.js @@ -14,11 +14,10 @@ var obj = {}; var p = Promise.reject(obj); -p.then(function () { - $ERROR("Should not be called: did not expect promise to be fulfilled"); -}).catch(function (arg) { - if (arg !== obj) { - $ERROR("Should have been rejected with reason obj, got " + arg); - } +p.then(function() { + $ERROR("Should not be called: did not expect promise to be fulfilled"); +}).catch(function(arg) { + if (arg !== obj) { + $ERROR("Should have been rejected with reason obj, got " + arg); + } }).then($DONE, $DONE); - diff --git a/test/built-ins/Promise/prototype/catch/this-value-obj-coercible.js b/test/built-ins/Promise/prototype/catch/this-value-obj-coercible.js index 905dd966a0..70f9f418a9 100644 --- a/test/built-ins/Promise/prototype/catch/this-value-obj-coercible.js +++ b/test/built-ins/Promise/prototype/catch/this-value-obj-coercible.js @@ -24,21 +24,29 @@ features: [Symbol] ---*/ var booleanCount = 0; -Boolean.prototype.then = function() { booleanCount += 1; }; +Boolean.prototype.then = function() { + booleanCount += 1; +}; Promise.prototype.catch.call(true); assert.sameValue(booleanCount, 1, 'boolean'); var numberCount = 0; -Number.prototype.then = function() { numberCount += 1; }; +Number.prototype.then = function() { + numberCount += 1; +}; Promise.prototype.catch.call(34); assert.sameValue(numberCount, 1, 'number'); var stringCount = 0; -String.prototype.then = function() { stringCount += 1; }; +String.prototype.then = function() { + stringCount += 1; +}; Promise.prototype.catch.call(''); assert.sameValue(stringCount, 1, 'string'); var symbolCount = 0; -Symbol.prototype.then = function() { symbolCount += 1; }; +Symbol.prototype.then = function() { + symbolCount += 1; +}; Promise.prototype.catch.call(Symbol()); assert.sameValue(symbolCount, 1, 'symbol'); diff --git a/test/built-ins/Promise/prototype/catch/this-value-then-not-callable.js b/test/built-ins/Promise/prototype/catch/this-value-then-not-callable.js index 1feffa35bb..20c29cfe62 100644 --- a/test/built-ins/Promise/prototype/catch/this-value-then-not-callable.js +++ b/test/built-ins/Promise/prototype/catch/this-value-then-not-callable.js @@ -38,25 +38,37 @@ assert.throws(TypeError, function() { }, 'undefined'); assert.throws(TypeError, function() { - Promise.prototype.catch.call({ then: null }); + Promise.prototype.catch.call({ + then: null + }); }, 'null'); assert.throws(TypeError, function() { - Promise.prototype.catch.call({ then: 1 }); + Promise.prototype.catch.call({ + then: 1 + }); }, 'number'); assert.throws(TypeError, function() { - Promise.prototype.catch.call({ then: '' }); + Promise.prototype.catch.call({ + then: '' + }); }, 'string'); assert.throws(TypeError, function() { - Promise.prototype.catch.call({ then: true }); + Promise.prototype.catch.call({ + then: true + }); }, 'boolean'); assert.throws(TypeError, function() { - Promise.prototype.catch.call({ then: symbol }); + Promise.prototype.catch.call({ + then: symbol + }); }, 'symbol'); assert.throws(TypeError, function() { - Promise.prototype.catch.call({ then: {} }); + Promise.prototype.catch.call({ + then: {} + }); }, 'ordinary object'); diff --git a/test/built-ins/Promise/prototype/finally/invokes-then-with-function.js b/test/built-ins/Promise/prototype/finally/invokes-then-with-function.js index 648b7dd6f9..697bea0b3e 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 1193119fbe..b8e57281ca 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 794677b57f..ed75b1687e 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 eb82103daf..1390a523ff 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 262f1be844..02e539b6fc 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 6e583527c6..1fb248ac98 100644 --- a/test/built-ins/Promise/prototype/finally/resolved-observable-then-calls.js +++ b/test/built-ins/Promise/prototype/finally/resolved-observable-then-calls.js @@ -11,30 +11,29 @@ includes: [promiseHelper.js] var sequence = []; var yesValue = {}; var yes = Promise.resolve(yesValue); -yes.then = function () { +yes.then = function() { sequence.push(1); return Promise.prototype.then.apply(this, arguments); }; var noReason = {}; var no = Promise.reject(noReason); -no.then = function () { +no.then = function() { sequence.push(4); return Promise.prototype.then.apply(this, arguments); }; -yes.then(function (x) { +yes.then(function(x) { sequence.push(2); assert.sameValue(x, yesValue); return x; -}).finally(function () { +}).finally(function() { sequence.push(3); return no; -}).catch(function (e) { +}).catch(function(e) { sequence.push(5); assert.sameValue(e, noReason); -}).then(function () { +}).then(function() { checkSequence(sequence, "All expected callbacks called in correct order"); $DONE(); }).catch($ERROR); - diff --git a/test/built-ins/Promise/prototype/finally/species-symbol.js b/test/built-ins/Promise/prototype/finally/species-symbol.js index 15a8eac646..0a8de63650 100644 --- a/test/built-ins/Promise/prototype/finally/species-symbol.js +++ b/test/built-ins/Promise/prototype/finally/species-symbol.js @@ -9,12 +9,14 @@ features: [Promise.prototype.finally] class MyPromise extends Promise { - static get [Symbol.species]() { return Promise; } + static get[Symbol.species]() { + return Promise; + } } var p = Promise - .resolve() - .finally(() => MyPromise.resolve()); + .resolve() + .finally(() => MyPromise.resolve()); assert.sameValue(p instanceof Promise, true); assert.sameValue(p instanceof MyPromise, false); diff --git a/test/built-ins/Promise/prototype/finally/subclass-species-constructor-reject-count.js b/test/built-ins/Promise/prototype/finally/subclass-species-constructor-reject-count.js index 5db1a5f494..ca812c499c 100644 --- a/test/built-ins/Promise/prototype/finally/subclass-species-constructor-reject-count.js +++ b/test/built-ins/Promise/prototype/finally/subclass-species-constructor-reject-count.js @@ -8,7 +8,9 @@ features: [Promise.prototype.finally] ---*/ class FooPromise extends Promise { - static get [Symbol.species]() { return Promise; } + static get[Symbol.species]() { + return Promise; + } } var p = Promise.reject().finally(() => FooPromise.reject()); diff --git a/test/built-ins/Promise/prototype/finally/subclass-species-constructor-resolve-count.js b/test/built-ins/Promise/prototype/finally/subclass-species-constructor-resolve-count.js index db1b151cdd..8e80ab43d8 100644 --- a/test/built-ins/Promise/prototype/finally/subclass-species-constructor-resolve-count.js +++ b/test/built-ins/Promise/prototype/finally/subclass-species-constructor-resolve-count.js @@ -8,7 +8,9 @@ features: [Promise.prototype.finally] ---*/ class FooPromise extends Promise { - static get [Symbol.species]() { return Promise; } + static get[Symbol.species]() { + return Promise; + } } var p = Promise.resolve().finally(() => FooPromise.resolve()); diff --git a/test/built-ins/Promise/prototype/finally/this-value-non-promise.js b/test/built-ins/Promise/prototype/finally/this-value-non-promise.js index 16d9f8d766..6bed146e02 100644 --- a/test/built-ins/Promise/prototype/finally/this-value-non-promise.js +++ b/test/built-ins/Promise/prototype/finally/this-value-non-promise.js @@ -11,7 +11,9 @@ features: [Promise.prototype.finally] var called = false; var p = new Proxy(Promise.resolve(), {}); var oldThen = Promise.prototype.then; -Promise.prototype.then = () => { called = true; }; +Promise.prototype.then = () => { + called = true; +}; Promise.prototype.finally.call(p); assert.sameValue(called, true); Promise.prototype.then = oldThen; diff --git a/test/built-ins/Promise/prototype/finally/this-value-then-not-callable.js b/test/built-ins/Promise/prototype/finally/this-value-then-not-callable.js index cdeccdadd3..253e22fe38 100644 --- a/test/built-ins/Promise/prototype/finally/this-value-then-not-callable.js +++ b/test/built-ins/Promise/prototype/finally/this-value-then-not-callable.js @@ -11,9 +11,11 @@ features: [Symbol, Promise.prototype.finally] var symbol = Symbol(); -var thrower = function () { throw new Test262Error('this should never happen'); }; +var thrower = function() { + throw new Test262Error('this should never happen'); +}; -var p = new Promise(function () {}); +var p = new Promise(function() {}); p.then = undefined; assert.throws(TypeError, function() { diff --git a/test/built-ins/Promise/prototype/finally/this-value-then-poisoned.js b/test/built-ins/Promise/prototype/finally/this-value-then-poisoned.js index d8afd2612c..99e124db03 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 7fff8d51aa..e8603f88e5 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 fd1519766c..78aa38e010 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 cb02aa58a5..971c411f95 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 5c099d7752..4f02681ab1 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 1b430f2817..1208cdb894 100644 --- a/test/built-ins/Promise/prototype/then/S25.4.4_A2.1_T3.js +++ b/test/built-ins/Promise/prototype/then/S25.4.4_A2.1_T3.js @@ -14,30 +14,28 @@ flags: [async] ---*/ var resolveP1, rejectP2, p1, p2, - sequence = []; + sequence = []; -p1 = new Promise(function (resolve, reject) { - resolveP1 = resolve; +p1 = new Promise(function(resolve, reject) { + resolveP1 = resolve; }); -p2 = new Promise(function (resolve, reject) { - rejectP2 = reject; +p2 = new Promise(function(resolve, reject) { + rejectP2 = reject; }); rejectP2(3); resolveP1(2); -Promise.resolve().then(function () { - p1.then(function (msg) { - sequence.push(msg); - }); +Promise.resolve().then(function() { + p1.then(function(msg) { + sequence.push(msg); + }); - p2.catch(function (msg) { - sequence.push(msg); - }).then(function () { - checkSequence(sequence, "Expected 1,2,3"); - }).then($DONE, $DONE); + p2.catch(function(msg) { + sequence.push(msg); + }).then(function() { + checkSequence(sequence, "Expected 1,2,3"); + }).then($DONE, $DONE); }); sequence.push(1); - - diff --git a/test/built-ins/Promise/prototype/then/S25.4.5.3_A1.1_T1.js b/test/built-ins/Promise/prototype/then/S25.4.5.3_A1.1_T1.js index 79d7906b58..f7ce622d9e 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 b22c332d45..0d07a720b3 100644 --- a/test/built-ins/Promise/prototype/then/S25.4.5.3_A1.1_T2.js +++ b/test/built-ins/Promise/prototype/then/S25.4.5.3_A1.1_T2.js @@ -9,14 +9,12 @@ author: Sam Mikes description: Promise.prototype.then is a function of two arguments ---*/ -var p = new Promise(function () {}); +var p = new Promise(function() {}); if (!(p.then instanceof Function)) { - $ERROR("Expected p.then to be a function"); + $ERROR("Expected p.then to be a function"); } if (p.then.length !== 2) { - $ERROR("Expected p.then to be a function of two arguments"); + $ERROR("Expected p.then to be a function of two arguments"); } - - diff --git a/test/built-ins/Promise/prototype/then/S25.4.5.3_A2.1_T1.js b/test/built-ins/Promise/prototype/then/S25.4.5.3_A2.1_T1.js index b05925ef5b..723ff6aac6 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 bcaa7e48d0..13b4bf0508 100644 --- a/test/built-ins/Promise/prototype/then/S25.4.5.3_A2.1_T2.js +++ b/test/built-ins/Promise/prototype/then/S25.4.5.3_A2.1_T2.js @@ -9,11 +9,10 @@ author: Sam Mikes description: Promise.prototype.then throw if 'this' is non-Promise Object ---*/ -function ZeroArgConstructor() { -} +function ZeroArgConstructor() {} var z = new ZeroArgConstructor(); assert.throws(TypeError, function() { - Promise.then.call(z, function () {}, function () {}); + Promise.then.call(z, function() {}, function() {}); }); diff --git a/test/built-ins/Promise/prototype/then/S25.4.5.3_A4.1_T1.js b/test/built-ins/Promise/prototype/then/S25.4.5.3_A4.1_T1.js index ee43a0a4a4..244c9105b8 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 2032211c2b..5a8bf136ed 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 eecbe9af83..a4198cde01 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 e4b503df07..b802575c50 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 7a9f02a5e3..51fd71dadf 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 fdf1105bc5..4b4d801e0f 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 7af732e0b4..1455350ad5 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 5006c282dc..f72869ba3f 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 d230947d6b..28f4b15b63 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 51e00ad784..585850ed9b 100644 --- a/test/built-ins/Promise/prototype/then/ctor-access-count.js +++ b/test/built-ins/Promise/prototype/then/ctor-access-count.js @@ -29,7 +29,9 @@ flags: [async] ---*/ var callCount = 0; -var prms = new Promise(function(resolve) { resolve(); }); +var prms = new Promise(function(resolve) { + resolve(); +}); Object.defineProperty(prms, 'constructor', { get: function() { callCount += 1; @@ -38,12 +40,12 @@ Object.defineProperty(prms, 'constructor', { }); prms.then(function() { - if (callCount !== 1) { - $DONE('Expected constructor access count: 1. Actual: ' + callCount); - return; - } + if (callCount !== 1) { + $DONE('Expected constructor access count: 1. Actual: ' + callCount); + return; + } - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); diff --git a/test/built-ins/Promise/prototype/then/ctor-poisoned.js b/test/built-ins/Promise/prototype/then/ctor-poisoned.js index 080d26a1c3..d41a71a155 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 c6b52cb407..1532089f7a 100644 --- a/test/built-ins/Promise/prototype/then/ctor-throws.js +++ b/test/built-ins/Promise/prototype/then/ctor-throws.js @@ -26,10 +26,14 @@ var BadCtor = function() { }; var originalSpecies = Object.getOwnPropertyDescriptor(Promise, Symbol.species); -Object.defineProperty(Promise, Symbol.species, { value: BadCtor }); +Object.defineProperty(Promise, Symbol.species, { + value: BadCtor +}); try { - var p = new Promise(function(resolve) { resolve(); }); + var p = new Promise(function(resolve) { + resolve(); + }); assert.throws(Test262Error, function() { p.then(); diff --git a/test/built-ins/Promise/prototype/then/prfm-fulfilled.js b/test/built-ins/Promise/prototype/then/prfm-fulfilled.js index 3db69300af..285e12f9cb 100644 --- a/test/built-ins/Promise/prototype/then/prfm-fulfilled.js +++ b/test/built-ins/Promise/prototype/then/prfm-fulfilled.js @@ -20,14 +20,16 @@ flags: [async] ---*/ var value = {}; -var p = new Promise(function(resolve) { resolve(value); }); +var p = new Promise(function(resolve) { + resolve(value); +}); p.then(function(x) { - if (x !== value) { - $DONE('The `onFulfilled` handler should be invoked with the promise result.'); - return; - } - $DONE(); - }, function() { - $DONE('The `onRejected` handler should not be invoked.'); - }); + if (x !== value) { + $DONE('The `onFulfilled` handler should be invoked with the promise result.'); + return; + } + $DONE(); +}, function() { + $DONE('The `onRejected` handler should not be invoked.'); +}); diff --git a/test/built-ins/Promise/prototype/then/prfm-pending-fulfulled.js b/test/built-ins/Promise/prototype/then/prfm-pending-fulfulled.js index 64c3542a45..b0251ddfe8 100644 --- a/test/built-ins/Promise/prototype/then/prfm-pending-fulfulled.js +++ b/test/built-ins/Promise/prototype/then/prfm-pending-fulfulled.js @@ -21,16 +21,18 @@ flags: [async] var value = {}; var resolve; -var p = new Promise(function(_resolve) { resolve = _resolve; }); +var p = new Promise(function(_resolve) { + resolve = _resolve; +}); p.then(function(x) { - if (x !== value) { - $DONE('The `onFulfilled` handler should be invoked with the promise result.'); - return; - } - $DONE(); - }, function() { - $DONE('The `onRejected` handler should not be invoked.'); - }); + if (x !== value) { + $DONE('The `onFulfilled` handler should be invoked with the promise result.'); + return; + } + $DONE(); +}, function() { + $DONE('The `onRejected` handler should not be invoked.'); +}); resolve(value); diff --git a/test/built-ins/Promise/prototype/then/prfm-pending-rejected.js b/test/built-ins/Promise/prototype/then/prfm-pending-rejected.js index 062acafc29..998ecae2e3 100644 --- a/test/built-ins/Promise/prototype/then/prfm-pending-rejected.js +++ b/test/built-ins/Promise/prototype/then/prfm-pending-rejected.js @@ -21,16 +21,18 @@ flags: [async] var value = {}; var reject; -var p = new Promise(function(_, _reject) { reject = _reject; }); +var p = new Promise(function(_, _reject) { + reject = _reject; +}); p.then(function() { - $DONE('The `onFulfilled` handler should not be invoked.'); - }, function(x) { - if (x !== value) { - $DONE('The `onRejected` handler should be invoked with the promise result.'); - return; - } - $DONE(); - }); + $DONE('The `onFulfilled` handler should not be invoked.'); +}, function(x) { + if (x !== value) { + $DONE('The `onRejected` handler should be invoked with the promise result.'); + return; + } + $DONE(); +}); reject(value); diff --git a/test/built-ins/Promise/prototype/then/prfm-rejected.js b/test/built-ins/Promise/prototype/then/prfm-rejected.js index 22e3b81b55..de59061bc9 100644 --- a/test/built-ins/Promise/prototype/then/prfm-rejected.js +++ b/test/built-ins/Promise/prototype/then/prfm-rejected.js @@ -20,14 +20,16 @@ flags: [async] ---*/ var value = {}; -var p = new Promise(function(_, reject) { reject(value); }); +var p = new Promise(function(_, reject) { + reject(value); +}); p.then(function() { - $DONE('The `onFulfilled` handler should not be invoked.'); - }, function(x) { - if (x !== value) { - $DONE('The `onRejected` handler should be invoked with the promise result.'); - return; - } - $DONE(); - }); + $DONE('The `onFulfilled` handler should not be invoked.'); +}, function(x) { + if (x !== value) { + $DONE('The `onRejected` handler should be invoked with the promise result.'); + return; + } + $DONE(); +}); diff --git a/test/built-ins/Promise/prototype/then/reject-pending-fulfilled.js b/test/built-ins/Promise/prototype/then/reject-pending-fulfilled.js index 9855919772..5fce956c19 100644 --- a/test/built-ins/Promise/prototype/then/reject-pending-fulfilled.js +++ b/test/built-ins/Promise/prototype/then/reject-pending-fulfilled.js @@ -22,23 +22,27 @@ flags: [async] ---*/ var resolve; -var thenable = new Promise(function(_resolve) { resolve = _resolve; }); -var p1 = new Promise(function(resolve) { resolve(); }); +var thenable = new Promise(function(_resolve) { + resolve = _resolve; +}); +var p1 = new Promise(function(resolve) { + resolve(); +}); var p2; p2 = p1.then(function() { - throw thenable; - }); + throw thenable; +}); p2.then(function() { - $DONE('The promise should not be fulfilled.'); - }, function(x) { - if (x !== thenable) { - $DONE('The promise should be rejected with the resolution value of the provided promise.'); - return; - } + $DONE('The promise should not be fulfilled.'); +}, function(x) { + if (x !== thenable) { + $DONE('The promise should be rejected with the resolution value of the provided promise.'); + return; + } - $DONE(); - }); + $DONE(); +}); resolve(); diff --git a/test/built-ins/Promise/prototype/then/reject-pending-rejected.js b/test/built-ins/Promise/prototype/then/reject-pending-rejected.js index 7d881d19e0..03ff2902b8 100644 --- a/test/built-ins/Promise/prototype/then/reject-pending-rejected.js +++ b/test/built-ins/Promise/prototype/then/reject-pending-rejected.js @@ -23,23 +23,27 @@ flags: [async] ---*/ var reject; -var thenable = new Promise(function(resolve) { resolve(); }); -var p1 = new Promise(function(_, _reject) { reject = _reject; }); +var thenable = new Promise(function(resolve) { + resolve(); +}); +var p1 = new Promise(function(_, _reject) { + reject = _reject; +}); var p2; p2 = p1.then(function() {}, function() { - throw thenable; - }); + throw thenable; +}); p2.then(function() { - $DONE('The promise should not be fulfilled.'); - }, function(x) { - if (x !== thenable) { - $DONE('The promise should be rejected with the resolution value of the provided promise.'); - return; - } + $DONE('The promise should not be fulfilled.'); +}, function(x) { + if (x !== thenable) { + $DONE('The promise should be rejected with the resolution value of the provided promise.'); + return; + } - $DONE(); - }); + $DONE(); +}); reject(); diff --git a/test/built-ins/Promise/prototype/then/reject-settled-fulfilled.js b/test/built-ins/Promise/prototype/then/reject-settled-fulfilled.js index 8845061ad2..97876bec04 100644 --- a/test/built-ins/Promise/prototype/then/reject-settled-fulfilled.js +++ b/test/built-ins/Promise/prototype/then/reject-settled-fulfilled.js @@ -29,21 +29,25 @@ info: | flags: [async] ---*/ -var thenable = new Promise(function(resolve) { resolve(); }); -var p1 = new Promise(function(resolve) { resolve(); }); +var thenable = new Promise(function(resolve) { + resolve(); +}); +var p1 = new Promise(function(resolve) { + resolve(); +}); var p2; p2 = p1.then(function() { - throw thenable; - }); + throw thenable; +}); p2.then(function() { - $DONE('The promise should not be fulfilled.'); - }, function(x) { - if (x !== thenable) { - $DONE('The promise should be rejected with the resolution value of the provided promise.'); - return; - } + $DONE('The promise should not be fulfilled.'); +}, function(x) { + if (x !== thenable) { + $DONE('The promise should be rejected with the resolution value of the provided promise.'); + return; + } - $DONE(); - }); + $DONE(); +}); diff --git a/test/built-ins/Promise/prototype/then/reject-settled-rejected.js b/test/built-ins/Promise/prototype/then/reject-settled-rejected.js index 8cfa17fb30..3b0ae8f1c6 100644 --- a/test/built-ins/Promise/prototype/then/reject-settled-rejected.js +++ b/test/built-ins/Promise/prototype/then/reject-settled-rejected.js @@ -29,21 +29,25 @@ info: | flags: [async] ---*/ -var thenable = new Promise(function(resolve) { resolve(); }); -var p1 = new Promise(function(_, reject) { reject(); }); +var thenable = new Promise(function(resolve) { + resolve(); +}); +var p1 = new Promise(function(_, reject) { + reject(); +}); var p2; p2 = p1.then(function() {}, function() { - throw thenable; - }); + throw thenable; +}); p2.then(function() { - $DONE('The promise should not be fulfilled.'); - }, function(x) { - if (x !== thenable) { - $DONE('The promise should be rejected with the resolution value of the provided promise.'); - return; - } + $DONE('The promise should not be fulfilled.'); +}, function(x) { + if (x !== thenable) { + $DONE('The promise should be rejected with the resolution value of the provided promise.'); + return; + } - $DONE(); - }); + $DONE(); +}); diff --git a/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-non-obj.js b/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-non-obj.js index afd23f08af..1866a7c0ed 100644 --- a/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-non-obj.js +++ b/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-non-obj.js @@ -22,22 +22,24 @@ flags: [async] ---*/ var resolve; -var p1 = new Promise(function(_resolve) { resolve = _resolve; }); +var p1 = new Promise(function(_resolve) { + resolve = _resolve; +}); var p2; p2 = p1.then(function() { - return 23; - }); + return 23; +}); p2.then(function(value) { - if (value !== 23) { - $DONE('The promise should be fulfilled with the provided value.'); - return; - } + if (value !== 23) { + $DONE('The promise should be fulfilled with the provided value.'); + return; + } - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); resolve(); diff --git a/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-non-thenable.js b/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-non-thenable.js index 72daa6189a..f67aae302d 100644 --- a/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-non-thenable.js +++ b/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-non-thenable.js @@ -26,24 +26,28 @@ info: | flags: [async] ---*/ -var nonThenable = { then: null }; +var nonThenable = { + then: null +}; var resolve; -var p1 = new Promise(function(_resolve) { resolve = _resolve; }); +var p1 = new Promise(function(_resolve) { + resolve = _resolve; +}); var p2; p2 = p1.then(function() { - return nonThenable; - }); + return nonThenable; +}); p2.then(function(value) { - if (value !== nonThenable) { - $DONE('The promise should be fulfilled with the provided value.'); - return; - } + if (value !== nonThenable) { + $DONE('The promise should be fulfilled with the provided value.'); + return; + } - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); resolve(); diff --git a/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-poisoned-then.js b/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-poisoned-then.js index 7b2147f4dd..bf5912812c 100644 --- a/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-poisoned-then.js +++ b/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-poisoned-then.js @@ -30,22 +30,24 @@ var poisonedThen = Object.defineProperty({}, 'then', { throw value; } }); -var p1 = new Promise(function(_resolve) { resolve = _resolve; }); +var p1 = new Promise(function(_resolve) { + resolve = _resolve; +}); var p2; p2 = p1.then(function() { - return poisonedThen; - }); + return poisonedThen; +}); p2.then(function(x) { - $DONE('The promise should not be fulfilled.'); - }, function(x) { - if (x !== value) { - $DONE('The promise should be rejected with the thrown exception.'); - return; - } + $DONE('The promise should not be fulfilled.'); +}, function(x) { + if (x !== value) { + $DONE('The promise should be rejected with the thrown exception.'); + return; + } - $DONE(); - }); + $DONE(); +}); resolve(); diff --git a/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-prms-cstm-then.js b/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-prms-cstm-then.js index 299bd54675..0a1f979c48 100644 --- a/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-prms-cstm-then.js +++ b/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-prms-cstm-then.js @@ -30,8 +30,12 @@ flags: [async] var value = {}; var resolve; -var thenable = new Promise(function(resolve) { resolve(); }); -var p1 = new Promise(function(_resolve) { resolve = _resolve; }); +var thenable = new Promise(function(resolve) { + resolve(); +}); +var p1 = new Promise(function(_resolve) { + resolve = _resolve; +}); var p2; thenable.then = function(resolve) { @@ -39,18 +43,18 @@ thenable.then = function(resolve) { }; p2 = p1.then(function() { - return thenable; - }); + return thenable; +}); p2.then(function(x) { - if (x !== value) { - $DONE('The promise should be fulfilled with the resolution value of the provided promise.'); - return; - } - - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + if (x !== value) { + $DONE('The promise should be fulfilled with the resolution value of the provided promise.'); + return; + } + + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); resolve(); diff --git a/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-self.js b/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-self.js index f27f9034d5..16afaee982 100644 --- a/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-self.js +++ b/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-self.js @@ -24,27 +24,29 @@ flags: [async] ---*/ var resolve; -var p1 = new Promise(function(_resolve) { resolve = _resolve; }); +var p1 = new Promise(function(_resolve) { + resolve = _resolve; +}); var p2; p2 = p1.then(function() { - return p2; - }); + return p2; +}); p2.then(function() { - $DONE('The promise should not be fulfilled.'); - }, function(reason) { - if (!reason) { - $DONE('The promise should be rejected with a value.'); - return; - } - - if (reason.constructor !== TypeError) { - $DONE('The promise should be rejected with a TypeError instance.'); - return; - } - - $DONE(); - }); + $DONE('The promise should not be fulfilled.'); +}, function(reason) { + if (!reason) { + $DONE('The promise should be rejected with a value.'); + return; + } + + if (reason.constructor !== TypeError) { + $DONE('The promise should be rejected with a TypeError instance.'); + return; + } + + $DONE(); +}); resolve(); diff --git a/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-thenable.js b/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-thenable.js index 9df8932aaf..1d32eca249 100644 --- a/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-thenable.js +++ b/test/built-ins/Promise/prototype/then/resolve-pending-fulfilled-thenable.js @@ -30,23 +30,27 @@ flags: [async] var value = {}; var resolve; -var thenable = new Promise(function(resolve) { resolve(value); }); -var p1 = new Promise(function(_resolve) { resolve = _resolve; }); +var thenable = new Promise(function(resolve) { + resolve(value); +}); +var p1 = new Promise(function(_resolve) { + resolve = _resolve; +}); var p2; p2 = p1.then(function() { - return thenable; - }); + return thenable; +}); p2.then(function(x) { - if (x !== value) { - $DONE('The promise should be fulfilled with the resolution value of the provided promise.'); - return; - } + if (x !== value) { + $DONE('The promise should be fulfilled with the resolution value of the provided promise.'); + return; + } - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); resolve(); diff --git a/test/built-ins/Promise/prototype/then/resolve-pending-rejected-non-obj.js b/test/built-ins/Promise/prototype/then/resolve-pending-rejected-non-obj.js index 27ba9746f7..01f09f2419 100644 --- a/test/built-ins/Promise/prototype/then/resolve-pending-rejected-non-obj.js +++ b/test/built-ins/Promise/prototype/then/resolve-pending-rejected-non-obj.js @@ -23,22 +23,24 @@ flags: [async] ---*/ var reject; -var p1 = new Promise(function(_, _reject) { reject = _reject; }); +var p1 = new Promise(function(_, _reject) { + reject = _reject; +}); var p2; p2 = p1.then(function() {}, function() { - return 23; - }); + return 23; +}); p2.then(function(value) { - if (value !== 23) { - $DONE('The promise should be fulfilled with the provided value.'); - return; - } + if (value !== 23) { + $DONE('The promise should be fulfilled with the provided value.'); + return; + } - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); reject(); diff --git a/test/built-ins/Promise/prototype/then/resolve-pending-rejected-non-thenable.js b/test/built-ins/Promise/prototype/then/resolve-pending-rejected-non-thenable.js index 85178a822a..61bc8613c3 100644 --- a/test/built-ins/Promise/prototype/then/resolve-pending-rejected-non-thenable.js +++ b/test/built-ins/Promise/prototype/then/resolve-pending-rejected-non-thenable.js @@ -27,24 +27,28 @@ info: | flags: [async] ---*/ -var nonThenable = { then: null }; +var nonThenable = { + then: null +}; var reject; -var p1 = new Promise(function(_, _reject) { reject = _reject; }); +var p1 = new Promise(function(_, _reject) { + reject = _reject; +}); var p2; p2 = p1.then(function() {}, function() { - return nonThenable; - }); + return nonThenable; +}); p2.then(function(value) { - if (value !== nonThenable) { - $DONE('The promise should be fulfilled with the provided value.'); - return; - } + if (value !== nonThenable) { + $DONE('The promise should be fulfilled with the provided value.'); + return; + } - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); reject(); diff --git a/test/built-ins/Promise/prototype/then/resolve-pending-rejected-poisoned-then.js b/test/built-ins/Promise/prototype/then/resolve-pending-rejected-poisoned-then.js index 83e53f8041..800d110046 100644 --- a/test/built-ins/Promise/prototype/then/resolve-pending-rejected-poisoned-then.js +++ b/test/built-ins/Promise/prototype/then/resolve-pending-rejected-poisoned-then.js @@ -31,22 +31,24 @@ var poisonedThen = Object.defineProperty({}, 'then', { throw value; } }); -var p1 = new Promise(function(_, _reject) { reject = _reject; }); +var p1 = new Promise(function(_, _reject) { + reject = _reject; +}); var p2; p2 = p1.then(function() {}, function() { - return poisonedThen; - }); + return poisonedThen; +}); p2.then(function(x) { - $DONE('The promise should not be fulfilled.'); - }, function(x) { - if (x !== value) { - $DONE('The promise should be rejected with the thrown exception.'); - return; - } + $DONE('The promise should not be fulfilled.'); +}, function(x) { + if (x !== value) { + $DONE('The promise should be rejected with the thrown exception.'); + return; + } - $DONE(); - }); + $DONE(); +}); reject(); diff --git a/test/built-ins/Promise/prototype/then/resolve-pending-rejected-prms-cstm-then.js b/test/built-ins/Promise/prototype/then/resolve-pending-rejected-prms-cstm-then.js index 2d4e1c0115..d1bbd67377 100644 --- a/test/built-ins/Promise/prototype/then/resolve-pending-rejected-prms-cstm-then.js +++ b/test/built-ins/Promise/prototype/then/resolve-pending-rejected-prms-cstm-then.js @@ -31,8 +31,12 @@ flags: [async] var value = {}; var reject; -var thenable = new Promise(function(resolve) { resolve(); }); -var p1 = new Promise(function(_, _reject) { reject = _reject; }); +var thenable = new Promise(function(resolve) { + resolve(); +}); +var p1 = new Promise(function(_, _reject) { + reject = _reject; +}); var p2; thenable.then = function(resolve) { @@ -40,18 +44,18 @@ thenable.then = function(resolve) { }; p2 = p1.then(function() {}, function() { - return thenable; - }); + return thenable; +}); p2.then(function(x) { - if (x !== value) { - $DONE('The promise should be fulfilled with the resolution value of the provided promise.'); - return; - } - - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + if (x !== value) { + $DONE('The promise should be fulfilled with the resolution value of the provided promise.'); + return; + } + + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); reject(); diff --git a/test/built-ins/Promise/prototype/then/resolve-pending-rejected-self.js b/test/built-ins/Promise/prototype/then/resolve-pending-rejected-self.js index 7ae0c23e33..2a3b379788 100644 --- a/test/built-ins/Promise/prototype/then/resolve-pending-rejected-self.js +++ b/test/built-ins/Promise/prototype/then/resolve-pending-rejected-self.js @@ -25,27 +25,29 @@ flags: [async] ---*/ var reject; -var p1 = new Promise(function(_, _reject) { reject = _reject; }); +var p1 = new Promise(function(_, _reject) { + reject = _reject; +}); var p2; p2 = p1.then(function() {}, function() { - return p2; - }); + return p2; +}); p2.then(function() { - $DONE('The promise should not be fulfilled.'); - }, function(reason) { - if (!reason) { - $DONE('The promise should be rejected with a value.'); - return; - } - - if (reason.constructor !== TypeError) { - $DONE('The promise should be rejected with a TypeError instance.'); - return; - } - - $DONE(); - }); + $DONE('The promise should not be fulfilled.'); +}, function(reason) { + if (!reason) { + $DONE('The promise should be rejected with a value.'); + return; + } + + if (reason.constructor !== TypeError) { + $DONE('The promise should be rejected with a TypeError instance.'); + return; + } + + $DONE(); +}); reject(); diff --git a/test/built-ins/Promise/prototype/then/resolve-pending-rejected-thenable.js b/test/built-ins/Promise/prototype/then/resolve-pending-rejected-thenable.js index 933ce34ece..94cc16e863 100644 --- a/test/built-ins/Promise/prototype/then/resolve-pending-rejected-thenable.js +++ b/test/built-ins/Promise/prototype/then/resolve-pending-rejected-thenable.js @@ -31,23 +31,27 @@ flags: [async] var value = {}; var reject; -var thenable = new Promise(function(resolve) { resolve(value); }); -var p1 = new Promise(function(_, _reject) { reject = _reject; }); +var thenable = new Promise(function(resolve) { + resolve(value); +}); +var p1 = new Promise(function(_, _reject) { + reject = _reject; +}); var p2; p2 = p1.then(function() {}, function() { - return thenable; - }); + return thenable; +}); p2.then(function(x) { - if (x !== value) { - $DONE('The promise should be fulfilled with the resolution value of the provided promise.'); - return; - } + if (x !== value) { + $DONE('The promise should be fulfilled with the resolution value of the provided promise.'); + return; + } - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); reject(); diff --git a/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-non-obj.js b/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-non-obj.js index 003d0ee610..f57576ee8b 100644 --- a/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-non-obj.js +++ b/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-non-obj.js @@ -28,20 +28,22 @@ info: | flags: [async] ---*/ -var p1 = new Promise(function(resolve) { resolve(); }); +var p1 = new Promise(function(resolve) { + resolve(); +}); var p2; p2 = p1.then(function() { - return 23; - }); + return 23; +}); p2.then(function(value) { - if (value !== 23) { - $DONE('The promise should be fulfilled with the provided value.'); - return; - } + if (value !== 23) { + $DONE('The promise should be fulfilled with the provided value.'); + return; + } - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); diff --git a/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-non-thenable.js b/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-non-thenable.js index 484c6f6aa8..5065cd131b 100644 --- a/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-non-thenable.js +++ b/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-non-thenable.js @@ -33,21 +33,25 @@ info: | flags: [async] ---*/ -var nonThenable = { then: null }; -var p1 = new Promise(function(resolve) { resolve(); }); +var nonThenable = { + then: null +}; +var p1 = new Promise(function(resolve) { + resolve(); +}); var p2; p2 = p1.then(function() { - return nonThenable; - }); + return nonThenable; +}); p2.then(function(value) { - if (value !== nonThenable) { - $DONE('The promise should be fulfilled with the provided value.'); - return; - } + if (value !== nonThenable) { + $DONE('The promise should be fulfilled with the provided value.'); + return; + } - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); diff --git a/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-poisoned-then.js b/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-poisoned-then.js index 303044a535..8ac375540f 100644 --- a/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-poisoned-then.js +++ b/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-poisoned-then.js @@ -36,20 +36,22 @@ var poisonedThen = Object.defineProperty({}, 'then', { throw value; } }); -var p1 = new Promise(function(resolve) { resolve(); }); +var p1 = new Promise(function(resolve) { + resolve(); +}); var p2; p2 = p1.then(function() { - return poisonedThen; - }); + return poisonedThen; +}); p2.then(function(x) { - $DONE('The promise should not be fulfilled.'); - }, function(x) { - if (x !== value) { - $DONE('The promise should be rejected with the thrown exception.'); - return; - } + $DONE('The promise should not be fulfilled.'); +}, function(x) { + if (x !== value) { + $DONE('The promise should be rejected with the thrown exception.'); + return; + } - $DONE(); - }); + $DONE(); +}); diff --git a/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-prms-cstm-then.js b/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-prms-cstm-then.js index f3d108dfac..abcea8a243 100644 --- a/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-prms-cstm-then.js +++ b/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-prms-cstm-then.js @@ -36,8 +36,12 @@ flags: [async] ---*/ var value = {}; -var thenable = new Promise(function(resolve) { resolve(); }); -var p1 = new Promise(function(resolve) { resolve(); }); +var thenable = new Promise(function(resolve) { + resolve(); +}); +var p1 = new Promise(function(resolve) { + resolve(); +}); var p2; thenable.then = function(resolve) { @@ -45,16 +49,16 @@ thenable.then = function(resolve) { }; p2 = p1.then(function() { - return thenable; - }); + return thenable; +}); p2.then(function(x) { - if (x !== value) { - $DONE('The promise should be fulfilled with the resolution value of the provided promise.'); - return; - } - - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + if (x !== value) { + $DONE('The promise should be fulfilled with the resolution value of the provided promise.'); + return; + } + + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); diff --git a/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-self.js b/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-self.js index 99f1d05a4b..1091fe75d9 100644 --- a/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-self.js +++ b/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-self.js @@ -30,25 +30,27 @@ info: | flags: [async] ---*/ -var p1 = new Promise(function(resolve) { resolve(); }); +var p1 = new Promise(function(resolve) { + resolve(); +}); var p2; p2 = p1.then(function() { - return p2; - }); + return p2; +}); p2.then(function() { - $DONE('The promise should not be fulfilled.'); - }, function(reason) { - if (!reason) { - $DONE('The promise should be rejected with a value.'); - return; - } - - if (reason.constructor !== TypeError) { - $DONE('The promise should be rejected with a TypeError instance.'); - return; - } - - $DONE(); - }); + $DONE('The promise should not be fulfilled.'); +}, function(reason) { + if (!reason) { + $DONE('The promise should be rejected with a value.'); + return; + } + + if (reason.constructor !== TypeError) { + $DONE('The promise should be rejected with a TypeError instance.'); + return; + } + + $DONE(); +}); diff --git a/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-thenable.js b/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-thenable.js index 0baaa5c0db..98a718bf27 100644 --- a/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-thenable.js +++ b/test/built-ins/Promise/prototype/then/resolve-settled-fulfilled-thenable.js @@ -36,21 +36,25 @@ flags: [async] ---*/ var value = {}; -var thenable = new Promise(function(resolve) { resolve(value); }); -var p1 = new Promise(function(resolve) { resolve(); }); +var thenable = new Promise(function(resolve) { + resolve(value); +}); +var p1 = new Promise(function(resolve) { + resolve(); +}); var p2; p2 = p1.then(function() { - return thenable; - }); + return thenable; +}); p2.then(function(x) { - if (x !== value) { - $DONE('The promise should be fulfilled with the resolution value of the provided promise.'); - return; - } + if (x !== value) { + $DONE('The promise should be fulfilled with the resolution value of the provided promise.'); + return; + } - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); diff --git a/test/built-ins/Promise/prototype/then/resolve-settled-rejected-non-obj.js b/test/built-ins/Promise/prototype/then/resolve-settled-rejected-non-obj.js index 3a8992d391..a4828310af 100644 --- a/test/built-ins/Promise/prototype/then/resolve-settled-rejected-non-obj.js +++ b/test/built-ins/Promise/prototype/then/resolve-settled-rejected-non-obj.js @@ -28,20 +28,22 @@ info: | flags: [async] ---*/ -var p1 = new Promise(function(_, reject) { reject(); }); +var p1 = new Promise(function(_, reject) { + reject(); +}); var p2; p2 = p1.then(function() {}, function() { - return 23; - }); + return 23; +}); p2.then(function(value) { - if (value !== 23) { - $DONE('The promise should be fulfilled with the provided value.'); - return; - } + if (value !== 23) { + $DONE('The promise should be fulfilled with the provided value.'); + return; + } - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); diff --git a/test/built-ins/Promise/prototype/then/resolve-settled-rejected-non-thenable.js b/test/built-ins/Promise/prototype/then/resolve-settled-rejected-non-thenable.js index 8e4b424fd9..13e72aba0d 100644 --- a/test/built-ins/Promise/prototype/then/resolve-settled-rejected-non-thenable.js +++ b/test/built-ins/Promise/prototype/then/resolve-settled-rejected-non-thenable.js @@ -33,21 +33,25 @@ info: | flags: [async] ---*/ -var nonThenable = { then: null }; -var p1 = new Promise(function(_, reject) { reject(); }); +var nonThenable = { + then: null +}; +var p1 = new Promise(function(_, reject) { + reject(); +}); var p2; p2 = p1.then(function() {}, function() { - return nonThenable; - }); + return nonThenable; +}); p2.then(function(value) { - if (value !== nonThenable) { - $DONE('The promise should be fulfilled with the provided value.'); - return; - } + if (value !== nonThenable) { + $DONE('The promise should be fulfilled with the provided value.'); + return; + } - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); diff --git a/test/built-ins/Promise/prototype/then/resolve-settled-rejected-poisoned-then.js b/test/built-ins/Promise/prototype/then/resolve-settled-rejected-poisoned-then.js index 6087049a9a..a60f1b10c3 100644 --- a/test/built-ins/Promise/prototype/then/resolve-settled-rejected-poisoned-then.js +++ b/test/built-ins/Promise/prototype/then/resolve-settled-rejected-poisoned-then.js @@ -36,20 +36,22 @@ var poisonedThen = Object.defineProperty({}, 'then', { throw value; } }); -var p1 = new Promise(function(_, reject) { reject(); }); +var p1 = new Promise(function(_, reject) { + reject(); +}); var p2; p2 = p1.then(function() {}, function() { - return poisonedThen; - }); + return poisonedThen; +}); p2.then(function(x) { - $DONE('The promise should not be fulfilled.'); - }, function(x) { - if (x !== value) { - $DONE('The promise should be rejected with the thrown exception.'); - return; - } + $DONE('The promise should not be fulfilled.'); +}, function(x) { + if (x !== value) { + $DONE('The promise should be rejected with the thrown exception.'); + return; + } - $DONE(); - }); + $DONE(); +}); diff --git a/test/built-ins/Promise/prototype/then/resolve-settled-rejected-prms-cstm-then.js b/test/built-ins/Promise/prototype/then/resolve-settled-rejected-prms-cstm-then.js index 68f661a11d..babecd9e1a 100644 --- a/test/built-ins/Promise/prototype/then/resolve-settled-rejected-prms-cstm-then.js +++ b/test/built-ins/Promise/prototype/then/resolve-settled-rejected-prms-cstm-then.js @@ -36,8 +36,12 @@ flags: [async] ---*/ var value = {}; -var thenable = new Promise(function(resolve) { resolve(); }); -var p1 = new Promise(function(_, reject) { reject(); }); +var thenable = new Promise(function(resolve) { + resolve(); +}); +var p1 = new Promise(function(_, reject) { + reject(); +}); var p2; thenable.then = function(resolve) { @@ -45,16 +49,16 @@ thenable.then = function(resolve) { }; p2 = p1.then(function() {}, function() { - return thenable; - }); + return thenable; +}); p2.then(function(x) { - if (x !== value) { - $DONE('The promise should be fulfilled with the resolution value of the provided promise.'); - return; - } - - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + if (x !== value) { + $DONE('The promise should be fulfilled with the resolution value of the provided promise.'); + return; + } + + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); diff --git a/test/built-ins/Promise/prototype/then/resolve-settled-rejected-self.js b/test/built-ins/Promise/prototype/then/resolve-settled-rejected-self.js index 877edfc7d6..9d7f136931 100644 --- a/test/built-ins/Promise/prototype/then/resolve-settled-rejected-self.js +++ b/test/built-ins/Promise/prototype/then/resolve-settled-rejected-self.js @@ -30,25 +30,27 @@ info: | flags: [async] ---*/ -var p1 = new Promise(function(_, reject) { reject(); }); +var p1 = new Promise(function(_, reject) { + reject(); +}); var p2; p2 = p1.then(function() {}, function() { - return p2; - }); + return p2; +}); p2.then(function() { - $DONE('The promise should not be fulfilled.'); - }, function(reason) { - if (!reason) { - $DONE('The promise should be rejected with a value.'); - return; - } - - if (reason.constructor !== TypeError) { - $DONE('The promise should be rejected with a TypeError instance.'); - return; - } - - $DONE(); - }); + $DONE('The promise should not be fulfilled.'); +}, function(reason) { + if (!reason) { + $DONE('The promise should be rejected with a value.'); + return; + } + + if (reason.constructor !== TypeError) { + $DONE('The promise should be rejected with a TypeError instance.'); + return; + } + + $DONE(); +}); diff --git a/test/built-ins/Promise/prototype/then/resolve-settled-rejected-thenable.js b/test/built-ins/Promise/prototype/then/resolve-settled-rejected-thenable.js index 1a3855254e..333bbeb14c 100644 --- a/test/built-ins/Promise/prototype/then/resolve-settled-rejected-thenable.js +++ b/test/built-ins/Promise/prototype/then/resolve-settled-rejected-thenable.js @@ -36,21 +36,25 @@ flags: [async] ---*/ var value = {}; -var thenable = new Promise(function(resolve) { resolve(value); }); -var p1 = new Promise(function(_, reject) { reject(); }); +var thenable = new Promise(function(resolve) { + resolve(value); +}); +var p1 = new Promise(function(_, reject) { + reject(); +}); var p2; p2 = p1.then(function() {}, function() { - return thenable; - }); + return thenable; +}); p2.then(function(x) { - if (x !== value) { - $DONE('The promise should be fulfilled with the resolution value of the provided promise.'); - return; - } + if (x !== value) { + $DONE('The promise should be fulfilled with the resolution value of the provided promise.'); + return; + } - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); diff --git a/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-invoke-nonstrict.js b/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-invoke-nonstrict.js index a956ab8a30..4a9918517e 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 e431a27932..c8b9966edd 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 9024a896df..9920517752 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 a2f763a517..460ee909c9 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 e0cb6215dd..4accef172d 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 f75ee39ed9..2241de9c77 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 de2005b03e..24b30c0885 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 f848a8a2ee..e95e55d494 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 19cbbc9ec3..9842201f56 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 2363577e85..848a885386 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 40ef4bfd6c..b1497b0a0a 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 3588f64dd7..fe8054f9a6 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 3fe4b09c62..eb70b6e6ce 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 217e10e4d9..58b185a919 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 b924406696..69102cfbd2 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 a3b3fd963a..2e14c7ead3 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 87a7c610a3..d53b5da14b 100644 --- a/test/built-ins/Promise/race/S25.4.4.3_A2.2_T1.js +++ b/test/built-ins/Promise/race/S25.4.4.3_A2.2_T1.js @@ -11,11 +11,10 @@ flags: [async] var nonIterable = 3; -Promise.race(nonIterable).then(function () { - $ERROR('Promise unexpectedly fulfilled: Promise.race(nonIterable) should throw TypeError'); -}, function (err) { - if (!(err instanceof TypeError)) { - $ERROR('Expected TypeError, got ' + err); - } +Promise.race(nonIterable).then(function() { + $ERROR('Promise unexpectedly fulfilled: Promise.race(nonIterable) should throw TypeError'); +}, function(err) { + if (!(err instanceof TypeError)) { + $ERROR('Expected TypeError, got ' + err); + } }).then($DONE, $DONE); - diff --git a/test/built-ins/Promise/race/S25.4.4.3_A2.2_T2.js b/test/built-ins/Promise/race/S25.4.4.3_A2.2_T2.js index cca9307220..18da6d0710 100644 --- a/test/built-ins/Promise/race/S25.4.4.3_A2.2_T2.js +++ b/test/built-ins/Promise/race/S25.4.4.3_A2.2_T2.js @@ -9,11 +9,10 @@ description: Promise.race rejects if argument is not object or is non-iterable flags: [async] ---*/ -Promise.race(new Error("abrupt")).then(function () { - $ERROR('Promise unexpectedly resolved: Promise.race(abruptCompletion) should throw TypeError'); -}, function (err) { - if (!(err instanceof TypeError)) { - $ERROR('Expected TypeError, got ' + err); - } +Promise.race(new Error("abrupt")).then(function() { + $ERROR('Promise unexpectedly resolved: Promise.race(abruptCompletion) should throw TypeError'); +}, function(err) { + if (!(err instanceof TypeError)) { + $ERROR('Expected TypeError, got ' + err); + } }).then($DONE, $DONE); - diff --git a/test/built-ins/Promise/race/S25.4.4.3_A2.2_T3.js b/test/built-ins/Promise/race/S25.4.4.3_A2.2_T3.js index d8aa443f9c..790c51a757 100644 --- a/test/built-ins/Promise/race/S25.4.4.3_A2.2_T3.js +++ b/test/built-ins/Promise/race/S25.4.4.3_A2.2_T3.js @@ -15,16 +15,15 @@ flags: [async] var iterThrows = {}; Object.defineProperty(iterThrows, Symbol.iterator, { - get: function () { - throw new Error("abrupt completion"); - } + get: function() { + throw new Error("abrupt completion"); + } }); -Promise.race(iterThrows).then(function () { - $ERROR('Promise unexpectedly fulfilled: Promise.race(iterThrows) should throw'); -}, function (err) { - if (!(err instanceof Error)) { - $ERROR('Expected Promise to be rejected with an error, got ' + err); - } +Promise.race(iterThrows).then(function() { + $ERROR('Promise unexpectedly fulfilled: Promise.race(iterThrows) should throw'); +}, function(err) { + if (!(err instanceof Error)) { + $ERROR('Expected Promise to be rejected with an error, got ' + err); + } }).then($DONE, $DONE); - diff --git a/test/built-ins/Promise/race/S25.4.4.3_A3.1_T1.js b/test/built-ins/Promise/race/S25.4.4.3_A3.1_T1.js index 21b3a098df..b3d90e6fc3 100644 --- a/test/built-ins/Promise/race/S25.4.4.3_A3.1_T1.js +++ b/test/built-ins/Promise/race/S25.4.4.3_A3.1_T1.js @@ -11,8 +11,7 @@ author: Sam Mikes description: Promise.race throws if 'this' does not conform to Promise constructor ---*/ -function ZeroArgConstructor() { -} +function ZeroArgConstructor() {} assert.throws(TypeError, function() { Promise.race.call(ZeroArgConstructor, [3]); diff --git a/test/built-ins/Promise/race/S25.4.4.3_A3.1_T2.js b/test/built-ins/Promise/race/S25.4.4.3_A3.1_T2.js index e16e02a039..07c20f5708 100644 --- a/test/built-ins/Promise/race/S25.4.4.3_A3.1_T2.js +++ b/test/built-ins/Promise/race/S25.4.4.3_A3.1_T2.js @@ -11,7 +11,9 @@ author: Sam Mikes description: Promise.race throws TypeError, even on empty array, when 'this' does not conform to Promise constructor ---*/ -function BadPromiseConstructor(f) { f(undefined, undefined); } +function BadPromiseConstructor(f) { + f(undefined, undefined); +} assert.throws(TypeError, function() { Promise.race.call(BadPromiseConstructor, []); diff --git a/test/built-ins/Promise/race/S25.4.4.3_A4.1_T1.js b/test/built-ins/Promise/race/S25.4.4.3_A4.1_T1.js index a325a995be..95dde51bd2 100644 --- a/test/built-ins/Promise/race/S25.4.4.3_A4.1_T1.js +++ b/test/built-ins/Promise/race/S25.4.4.3_A4.1_T1.js @@ -11,17 +11,16 @@ flags: [async] var iterThrows = {}; var error = new Test262Error(); -iterThrows[Symbol.iterator] = function () { - return { - next: function () { - throw error; - } - }; +iterThrows[Symbol.iterator] = function() { + return { + next: function() { + throw error; + } + }; }; -Promise.race(iterThrows).then(function () { - $ERROR('Promise unexpectedly fulfilled: Promise.race(iterThrows) should throw TypeError'); -}, function (reason) { - assert.sameValue(reason, error); -}).then($DONE,$DONE); - +Promise.race(iterThrows).then(function() { + $ERROR('Promise unexpectedly fulfilled: Promise.race(iterThrows) should throw TypeError'); +}, function(reason) { + assert.sameValue(reason, error); +}).then($DONE, $DONE); diff --git a/test/built-ins/Promise/race/S25.4.4.3_A4.1_T2.js b/test/built-ins/Promise/race/S25.4.4.3_A4.1_T2.js index 00ac77d1b3..cb8912b97a 100644 --- a/test/built-ins/Promise/race/S25.4.4.3_A4.1_T2.js +++ b/test/built-ins/Promise/race/S25.4.4.3_A4.1_T2.js @@ -11,26 +11,25 @@ flags: [async] var iterThrows = {}; Object.defineProperty(iterThrows, Symbol.iterator, { - get: function () { - return { - next: function () { - var v = {}; - Object.defineProperty(v, 'value', { - get: function () { - throw new Error("abrupt completion"); - } - }); - return v; - } - }; - } + get: function() { + return { + next: function() { + var v = {}; + Object.defineProperty(v, 'value', { + get: function() { + throw new Error("abrupt completion"); + } + }); + return v; + } + }; + } }); -Promise.race(iterThrows).then(function () { - $ERROR('Promise unexpectedly fulfilled: Promise.race(iterThrows) should throw TypeError'); -},function (err) { - if (!(err instanceof TypeError)) { - $ERROR('Expected TypeError, got ' + err); - } -}).then($DONE,$DONE); - +Promise.race(iterThrows).then(function() { + $ERROR('Promise unexpectedly fulfilled: Promise.race(iterThrows) should throw TypeError'); +}, function(err) { + if (!(err instanceof TypeError)) { + $ERROR('Expected TypeError, got ' + err); + } +}).then($DONE, $DONE); diff --git a/test/built-ins/Promise/race/S25.4.4.3_A5.1_T1.js b/test/built-ins/Promise/race/S25.4.4.3_A5.1_T1.js index e5b7526fde..2093f8bee4 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 90c46e37e8..81d6152a45 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 b28ccdb516..c3e0364b37 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 517df57b36..ada1fba26e 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 f0f12a4e5b..2b2dbc9621 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 7e0f286c84..4e03609a1b 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 3f24b602db..2f9d3cb67f 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 02dad7f9df..7628a46643 100644 --- a/test/built-ins/Promise/race/S25.4.4.3_A7.3_T1.js +++ b/test/built-ins/Promise/race/S25.4.4.3_A7.3_T1.js @@ -9,14 +9,18 @@ flags: [async] ---*/ var resolveP1, rejectP2, - p1 = new Promise(function (resolve) { resolveP1 = resolve; }), - p2 = new Promise(function (resolve, reject) { rejectP2 = reject; }); + p1 = new Promise(function(resolve) { + resolveP1 = resolve; + }), + p2 = new Promise(function(resolve, reject) { + rejectP2 = reject; + }); rejectP2(new Error("Promise.race should not see this if P1 already resolved")); resolveP1(1); -Promise.race([p1, p2]).then(function (arg) { - if (arg !== 1) { - $ERROR("Expected fulfillment with 1, got " + arg); - } +Promise.race([p1, p2]).then(function(arg) { + if (arg !== 1) { + $ERROR("Expected fulfillment with 1, got " + arg); + } }).then($DONE, $DONE); diff --git a/test/built-ins/Promise/race/S25.4.4.3_A7.3_T2.js b/test/built-ins/Promise/race/S25.4.4.3_A7.3_T2.js index 535116ea19..91803cce5e 100644 --- a/test/built-ins/Promise/race/S25.4.4.3_A7.3_T2.js +++ b/test/built-ins/Promise/race/S25.4.4.3_A7.3_T2.js @@ -9,17 +9,20 @@ flags: [async] ---*/ var resolveP1, rejectP2, - p1 = new Promise(function (resolve) { resolveP1 = resolve; }), - p2 = new Promise(function (resolve, reject) { rejectP2 = reject; }); + p1 = new Promise(function(resolve) { + resolveP1 = resolve; + }), + p2 = new Promise(function(resolve, reject) { + rejectP2 = reject; + }); -Promise.race([p1, p2]).then(function () { - $ERROR("Should not be fulfilled: expected rejection."); -}, function (arg) { - if (arg !== 2) { - $ERROR("Expected rejection reason to be 2, got " + arg); - } +Promise.race([p1, p2]).then(function() { + $ERROR("Should not be fulfilled: expected rejection."); +}, function(arg) { + if (arg !== 2) { + $ERROR("Expected rejection reason to be 2, got " + arg); + } }).then($DONE, $DONE); rejectP2(2); resolveP1(1); - diff --git a/test/built-ins/Promise/race/capability-executor-called-twice.js b/test/built-ins/Promise/race/capability-executor-called-twice.js index 7e21ce01e6..652f3201cc 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 be31cf2973..ae52d9c10f 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 36651be4e6..df90989cb4 100644 --- a/test/built-ins/Promise/race/invoke-resolve-error-close.js +++ b/test/built-ins/Promise/race/invoke-resolve-error-close.js @@ -29,7 +29,10 @@ var returnCount = 0; iterDoneSpy[Symbol.iterator] = function() { return { next: function() { - return { value: null, done: false }; + return { + value: null, + done: false + }; }, return: function() { returnCount += 1; diff --git a/test/built-ins/Promise/race/invoke-resolve-get-error-close.js b/test/built-ins/Promise/race/invoke-resolve-get-error-close.js index d2958b5b37..cc874421c2 100644 --- a/test/built-ins/Promise/race/invoke-resolve-get-error-close.js +++ b/test/built-ins/Promise/race/invoke-resolve-get-error-close.js @@ -29,7 +29,9 @@ var returnCount = 0; iter[Symbol.iterator] = function() { return { next: function() { - return { done: false }; + return { + done: false + }; }, return: function() { returnCount += 1; diff --git a/test/built-ins/Promise/race/invoke-then-error-close.js b/test/built-ins/Promise/race/invoke-then-error-close.js index a9df84f499..07d80abab6 100644 --- a/test/built-ins/Promise/race/invoke-then-error-close.js +++ b/test/built-ins/Promise/race/invoke-then-error-close.js @@ -31,7 +31,10 @@ var returnCount = 0; iter[Symbol.iterator] = function() { return { next: function() { - return { done: false, value: promise }; + return { + done: false, + value: promise + }; }, return: function() { returnCount += 1; diff --git a/test/built-ins/Promise/race/invoke-then-get-error-close.js b/test/built-ins/Promise/race/invoke-then-get-error-close.js index 93f095ee20..9dbb520172 100644 --- a/test/built-ins/Promise/race/invoke-then-get-error-close.js +++ b/test/built-ins/Promise/race/invoke-then-get-error-close.js @@ -30,7 +30,10 @@ var returnCount = 0; iter[Symbol.iterator] = function() { return { next: function() { - return { done: false, value: promise }; + return { + done: false, + value: promise + }; }, return: function() { returnCount += 1; diff --git a/test/built-ins/Promise/race/reject-deferred.js b/test/built-ins/Promise/race/reject-deferred.js index 59f8915106..c7e321a367 100644 --- a/test/built-ins/Promise/race/reject-deferred.js +++ b/test/built-ins/Promise/race/reject-deferred.js @@ -24,7 +24,9 @@ flags: [async] var thenable = { then: function(_, reject) { - new Promise(function(resolve) { resolve(); }) + new Promise(function(resolve) { + resolve(); + }) .then(function() { reject(); }); diff --git a/test/built-ins/Promise/race/reject-ignored-deferred.js b/test/built-ins/Promise/race/reject-ignored-deferred.js index c64b70da4b..43df80e3fb 100644 --- a/test/built-ins/Promise/race/reject-ignored-deferred.js +++ b/test/built-ins/Promise/race/reject-ignored-deferred.js @@ -29,7 +29,9 @@ flags: [async] var fulfiller = { then: function(resolve) { - new Promise(function(resolve) { resolve(); }) + new Promise(function(resolve) { + resolve(); + }) .then(function() { resolve(); }); @@ -37,7 +39,9 @@ var fulfiller = { }; var rejector = { then: function(_, reject) { - new Promise(function(resolve) { resolve(); }) + new Promise(function(resolve) { + resolve(); + }) .then(function() { reject(); }); diff --git a/test/built-ins/Promise/race/resolve-prms-cstm-then.js b/test/built-ins/Promise/race/resolve-prms-cstm-then.js index 238785a505..07c6317a29 100644 --- a/test/built-ins/Promise/race/resolve-prms-cstm-then.js +++ b/test/built-ins/Promise/race/resolve-prms-cstm-then.js @@ -35,7 +35,9 @@ var thenableValue = { resolve(value); } }; -var thenable = new Promise(function(resolve) { resolve(); }); +var thenable = new Promise(function(resolve) { + resolve(); +}); thenable.then = function(resolve) { resolve(thenableValue); diff --git a/test/built-ins/Promise/race/resolve-self.js b/test/built-ins/Promise/race/resolve-self.js index 6fc2a3820a..565bc94e50 100644 --- a/test/built-ins/Promise/race/resolve-self.js +++ b/test/built-ins/Promise/race/resolve-self.js @@ -33,7 +33,9 @@ var thenable = { }; try { - Promise.resolve = function(v) { return v; }; + Promise.resolve = function(v) { + return v; + }; self = Promise.race([thenable]); } finally { Promise.resolve = builtinResolve; @@ -42,15 +44,15 @@ try { resolve(self); self.then(function() { - $DONE('The promise should not be fulfilled.'); - }, function(value) { - if (!value) { - $DONE('The promise should be rejected with a value.'); - return; - } - if (value.constructor !== TypeError) { - $DONE('The promise should be rejected with a TypeError instance.'); - return; - } - $DONE(); - }); + $DONE('The promise should not be fulfilled.'); +}, function(value) { + if (!value) { + $DONE('The promise should be rejected with a value.'); + return; + } + if (value.constructor !== TypeError) { + $DONE('The promise should be rejected with a TypeError instance.'); + return; + } + $DONE(); +}); diff --git a/test/built-ins/Promise/race/same-reject-function.js b/test/built-ins/Promise/race/same-reject-function.js index dbcdf7c5b1..b67e4ff416 100644 --- a/test/built-ins/Promise/race/same-reject-function.js +++ b/test/built-ins/Promise/race/same-reject-function.js @@ -13,14 +13,17 @@ info: | ... ---*/ -function rejectFunction() { } +function rejectFunction() {} function Constructor(executor) { executor($ERROR, rejectFunction); } -Constructor.resolve = function(v) { return v; }; +Constructor.resolve = function(v) { + return v; +}; -var callCount1 = 0, callCount2 = 0; +var callCount1 = 0, + callCount2 = 0; var p1 = { then: function(onFulfilled, onRejected) { diff --git a/test/built-ins/Promise/race/same-resolve-function.js b/test/built-ins/Promise/race/same-resolve-function.js index b20ee72426..10b6bfec6c 100644 --- a/test/built-ins/Promise/race/same-resolve-function.js +++ b/test/built-ins/Promise/race/same-resolve-function.js @@ -13,14 +13,17 @@ info: | ... ---*/ -function resolveFunction() { } +function resolveFunction() {} function Constructor(executor) { executor(resolveFunction, $ERROR); } -Constructor.resolve = function(v) { return v; }; +Constructor.resolve = function(v) { + return v; +}; -var callCount1 = 0, callCount2 = 0; +var callCount1 = 0, + callCount2 = 0; var p1 = { then: function(onFulfilled, onRejected) { diff --git a/test/built-ins/Promise/race/species-get-error.js b/test/built-ins/Promise/race/species-get-error.js index 26e2fd0398..b32fd7ef4d 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 752a7c9e18..cf77ab8280 100644 --- a/test/built-ins/Promise/reject-function-nonconstructor.js +++ b/test/built-ins/Promise/reject-function-nonconstructor.js @@ -17,4 +17,6 @@ new Promise(function(resolve, reject) { }); assert.sameValue(Object.prototype.hasOwnProperty.call(rejectFunction, "prototype"), false); -assert.throws(TypeError, function() { new rejectFunction(); }); +assert.throws(TypeError, function() { + new rejectFunction(); +}); diff --git a/test/built-ins/Promise/reject-ignored-via-abrupt.js b/test/built-ins/Promise/reject-ignored-via-abrupt.js index 3e0855acf4..9e5a978b4f 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 90cdaaa5c1..b272e50f09 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 118c0b448a..d9a5018af1 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 b4a6e556a5..c4194c4a8d 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 71be43108d..c51a6f1775 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 9bd28ff338..12bdde7833 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 24333fb0fe..1d1576a1c9 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 3c83ea5ca7..e48cbe0026 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 eec1b98dfa..90573149a7 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 95decca576..469656417e 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 6bd6b5f9f4..cf83e8bcf9 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 47fb6d93a3..0f9fdc3948 100644 --- a/test/built-ins/Promise/reject/S25.4.4.4_A3.1_T1.js +++ b/test/built-ins/Promise/reject/S25.4.4.4_A3.1_T1.js @@ -9,8 +9,7 @@ author: Sam Mikes description: Promise.reject throws TypeError for bad 'this' ---*/ -function ZeroArgConstructor() { -} +function ZeroArgConstructor() {} assert.throws(TypeError, function() { Promise.reject.call(ZeroArgConstructor, 4); diff --git a/test/built-ins/Promise/reject/capability-executor-called-twice.js b/test/built-ins/Promise/reject/capability-executor-called-twice.js index 0fc52baa25..f1632f40f8 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 8aa286ba84..42e0978e7c 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 3a9c6891ab..9fc397676c 100644 --- a/test/built-ins/Promise/reject/capability-invocation.js +++ b/test/built-ins/Promise/reject/capability-invocation.js @@ -17,7 +17,9 @@ info: | 7. ReturnIfAbrupt(promise). ---*/ -var expectedThis = (function() { return this; })(); +var expectedThis = (function() { + return this; +})(); var resolveCount = 0; var thisValue, args; var P = function(executor) { diff --git a/test/built-ins/Promise/resolve-function-nonconstructor.js b/test/built-ins/Promise/resolve-function-nonconstructor.js index 32e89382a7..5603b8010d 100644 --- a/test/built-ins/Promise/resolve-function-nonconstructor.js +++ b/test/built-ins/Promise/resolve-function-nonconstructor.js @@ -17,4 +17,6 @@ new Promise(function(resolve, reject) { }); assert.sameValue(Object.prototype.hasOwnProperty.call(resolveFunction, "prototype"), false); -assert.throws(TypeError, function() { new resolveFunction(); }); +assert.throws(TypeError, function() { + new resolveFunction(); +}); diff --git a/test/built-ins/Promise/resolve-ignored-via-fn-deferred.js b/test/built-ins/Promise/resolve-ignored-via-fn-deferred.js index 8bdd314e47..a78396dafb 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 2b5cafbf84..7c5eefb26b 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 4cd93b663b..36a380b0ec 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 b9400d2669..3bb74c10b1 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 d39c04bbed..e760edb112 100644 --- a/test/built-ins/Promise/resolve-non-thenable-deferred.js +++ b/test/built-ins/Promise/resolve-non-thenable-deferred.js @@ -22,22 +22,24 @@ flags: [async] ---*/ var returnValue = null; -var nonThenable = { then: null }; +var nonThenable = { + then: null +}; var resolve; var promise = new Promise(function(_resolve) { resolve = _resolve; }); promise.then(function(value) { - if (value !== nonThenable) { - $DONE('The promise should be fulfilled with the provided value.'); - return; - } + if (value !== nonThenable) { + $DONE('The promise should be fulfilled with the provided value.'); + return; + } - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); returnValue = resolve(nonThenable); diff --git a/test/built-ins/Promise/resolve-non-thenable-immed.js b/test/built-ins/Promise/resolve-non-thenable-immed.js index 5f7b13b678..1c2463a8b0 100644 --- a/test/built-ins/Promise/resolve-non-thenable-immed.js +++ b/test/built-ins/Promise/resolve-non-thenable-immed.js @@ -22,7 +22,9 @@ flags: [async] ---*/ var returnValue = null; -var nonThenable = { then: null }; +var nonThenable = { + then: null +}; var promise = new Promise(function(resolve) { returnValue = resolve(nonThenable); }); @@ -30,12 +32,12 @@ var promise = new Promise(function(resolve) { assert.sameValue(returnValue, undefined, '"resolve" return value'); promise.then(function(value) { - if (value !== nonThenable) { - $DONE('The promise should be fulfilled with the provided value.'); - return; - } + if (value !== nonThenable) { + $DONE('The promise should be fulfilled with the provided value.'); + return; + } - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); diff --git a/test/built-ins/Promise/resolve-poisoned-then-deferred.js b/test/built-ins/Promise/resolve-poisoned-then-deferred.js index ad32393559..2b2a3419be 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 22658f20a2..cb7d4c29cf 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 d167f2a8e0..542df5b658 100644 --- a/test/built-ins/Promise/resolve-prms-cstm-then-deferred.js +++ b/test/built-ins/Promise/resolve-prms-cstm-then-deferred.js @@ -27,7 +27,9 @@ flags: [async] var returnValue = null; var value = {}; var resolve; -var thenable = new Promise(function(resolve) { resolve(); }); +var thenable = new Promise(function(resolve) { + resolve(); +}); var promise = new Promise(function(_resolve) { resolve = _resolve; }); @@ -37,15 +39,15 @@ thenable.then = function(resolve) { }; promise.then(function(val) { - if (val !== value) { - $DONE('The promise should be fulfilled with the provided value.'); - return; - } + if (val !== value) { + $DONE('The promise should be fulfilled with the provided value.'); + return; + } - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); returnValue = resolve(thenable); diff --git a/test/built-ins/Promise/resolve-prms-cstm-then-immed.js b/test/built-ins/Promise/resolve-prms-cstm-then-immed.js index bc292a8c4b..3936c9700c 100644 --- a/test/built-ins/Promise/resolve-prms-cstm-then-immed.js +++ b/test/built-ins/Promise/resolve-prms-cstm-then-immed.js @@ -27,7 +27,9 @@ flags: [async] var returnValue = null; var value = {}; var lateCallCount = 0; -var thenable = new Promise(function(resolve) { resolve(); }); +var thenable = new Promise(function(resolve) { + resolve(); +}); thenable.then = function(resolve) { resolve(value); @@ -44,16 +46,16 @@ thenable.then = function() { }; promise.then(function(val) { - if (val !== value) { - $DONE('The promise should be fulfilled with the provided value.'); - return; - } - - if (lateCallCount > 0) { - $DONE('The `then` method should be executed synchronously.'); - } - - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + if (val !== value) { + $DONE('The promise should be fulfilled with the provided value.'); + return; + } + + if (lateCallCount > 0) { + $DONE('The `then` method should be executed synchronously.'); + } + + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); diff --git a/test/built-ins/Promise/resolve-self.js b/test/built-ins/Promise/resolve-self.js index 02a75bd27b..ed519fa821 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 2c0602aea3..ea7ce79b01 100644 --- a/test/built-ins/Promise/resolve-thenable-deferred.js +++ b/test/built-ins/Promise/resolve-thenable-deferred.js @@ -27,21 +27,23 @@ flags: [async] var returnValue = null; var value = {}; var resolve; -var thenable = new Promise(function(resolve) { resolve(value); }); +var thenable = new Promise(function(resolve) { + resolve(value); +}); var promise = new Promise(function(_resolve) { resolve = _resolve; }); promise.then(function(val) { - if (val !== value) { - $DONE('The promise should be fulfilled with the provided value.'); - return; - } + if (val !== value) { + $DONE('The promise should be fulfilled with the provided value.'); + return; + } - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); returnValue = resolve(thenable); diff --git a/test/built-ins/Promise/resolve-thenable-immed.js b/test/built-ins/Promise/resolve-thenable-immed.js index 7d90a5e1c6..4be0fc547c 100644 --- a/test/built-ins/Promise/resolve-thenable-immed.js +++ b/test/built-ins/Promise/resolve-thenable-immed.js @@ -25,7 +25,9 @@ flags: [async] var returnValue = null; var value = {}; -var thenable = new Promise(function(resolve) { resolve(value); }); +var thenable = new Promise(function(resolve) { + resolve(value); +}); var promise = new Promise(function(resolve) { returnValue = resolve(thenable); }); @@ -33,12 +35,12 @@ var promise = new Promise(function(resolve) { assert.sameValue(returnValue, undefined, '"resolve" return value'); promise.then(function(val) { - if (val !== value) { - $DONE('The promise should be fulfilled with the provided value.'); - return; - } + if (val !== value) { + $DONE('The promise should be fulfilled with the provided value.'); + return; + } - $DONE(); - }, function() { - $DONE('The promise should not be rejected.'); - }); + $DONE(); +}, function() { + $DONE('The promise should not be rejected.'); +}); diff --git a/test/built-ins/Promise/resolve/S25.4.4.5_A1.1_T1.js b/test/built-ins/Promise/resolve/S25.4.4.5_A1.1_T1.js index 07c4e02f08..b4d5943c7b 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 15718a0a61..6b79535d6f 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 2b471179fc..294bf71fcd 100644 --- a/test/built-ins/Promise/resolve/S25.4.4.5_A2.2_T1.js +++ b/test/built-ins/Promise/resolve/S25.4.4.5_A2.2_T1.js @@ -9,18 +9,20 @@ flags: [async] ---*/ var resolveP1, - p1 = new Promise(function (resolve) { resolveP1 = resolve; }), - p2 = Promise.resolve(p1), - obj = {}; + p1 = new Promise(function(resolve) { + resolveP1 = resolve; + }), + p2 = Promise.resolve(p1), + obj = {}; if (p1 !== p2) { - $ERROR("Expected p1 === Promise.resolve(p1) because they have same constructor"); + $ERROR("Expected p1 === Promise.resolve(p1) because they have same constructor"); } -p2.then(function (arg) { - if (arg !== obj) { - $ERROR("Expected promise to be resolved with obj, actually " + arg); - } +p2.then(function(arg) { + if (arg !== obj) { + $ERROR("Expected promise to be resolved with obj, actually " + arg); + } }).then($DONE, $DONE); resolveP1(obj); diff --git a/test/built-ins/Promise/resolve/S25.4.4.5_A2.3_T1.js b/test/built-ins/Promise/resolve/S25.4.4.5_A2.3_T1.js index 3ea901fc83..a171372313 100644 --- a/test/built-ins/Promise/resolve/S25.4.4.5_A2.3_T1.js +++ b/test/built-ins/Promise/resolve/S25.4.4.5_A2.3_T1.js @@ -9,20 +9,22 @@ flags: [async] ---*/ var rejectP1, - p1 = new Promise(function (resolve, reject) { rejectP1 = reject; }), - p2 = Promise.resolve(p1), - obj = {}; + p1 = new Promise(function(resolve, reject) { + rejectP1 = reject; + }), + p2 = Promise.resolve(p1), + obj = {}; if (p1 !== p2) { - $ERROR("Expected p1 === Promise.resolve(p1) because they have same constructor"); + $ERROR("Expected p1 === Promise.resolve(p1) because they have same constructor"); } -p2.then(function () { - $ERROR("Expected p2 to be rejected, not fulfilled."); -}, function (arg) { - if (arg !== obj) { - $ERROR("Expected promise to be rejected with reason obj, actually " + arg); - } +p2.then(function() { + $ERROR("Expected p2 to be rejected, not fulfilled."); +}, function(arg) { + if (arg !== obj) { + $ERROR("Expected promise to be rejected with reason obj, actually " + arg); + } }).then($DONE, $DONE); rejectP1(obj); diff --git a/test/built-ins/Promise/resolve/S25.4.4.5_A3.1_T1.js b/test/built-ins/Promise/resolve/S25.4.4.5_A3.1_T1.js index 1da71f6c70..568d089b4b 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 3eb8f83f9f..2ae973406a 100644 --- a/test/built-ins/Promise/resolve/S25.4.4.5_A4.1_T1.js +++ b/test/built-ins/Promise/resolve/S25.4.4.5_A4.1_T1.js @@ -11,14 +11,16 @@ flags: [async] ---*/ var resolveP, - p = new Promise(function (resolve) { resolveP = resolve; }); + p = new Promise(function(resolve) { + resolveP = resolve; + }); resolveP(p); -p.then(function () { - $ERROR("Should not fulfill: should reject with TypeError."); -}, function (err) { - if (!(err instanceof TypeError)) { - $ERROR("Expected TypeError, got " + err); - } +p.then(function() { + $ERROR("Should not fulfill: should reject with TypeError."); +}, function(err) { + if (!(err instanceof TypeError)) { + $ERROR("Expected TypeError, got " + err); + } }).then($DONE, $DONE); diff --git a/test/built-ins/Promise/resolve/S25.Promise_resolve_foreign_thenable_1.js b/test/built-ins/Promise/resolve/S25.Promise_resolve_foreign_thenable_1.js index 61f5e7eae8..f67bff2428 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 1cb07bbe9e..c243d9c3a7 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 1db7b94836..37074d240d 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 cbc6b97aec..58dfe71d63 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 7e20d493b8..c59cabeb22 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 40d1e1ece7..76d6483a58 100644 --- a/test/built-ins/Promise/resolve/resolve-from-promise-capability.js +++ b/test/built-ins/Promise/resolve/resolve-from-promise-capability.js @@ -16,7 +16,9 @@ info: | ... ---*/ -var expectedThisValue = (function() { return this; }()); +var expectedThisValue = (function() { + return this; +}()); var callCount = 0; var object = {}; var thisValue, args; diff --git a/test/built-ins/Promise/resolve/resolve-non-obj.js b/test/built-ins/Promise/resolve/resolve-non-obj.js index c010cbf3eb..ba8adcd9a1 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 4b764c7992..032ad20f73 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 0da129a2dc..98d7f3d997 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 fd345394c6..2b7bccc95d 100644 --- a/test/built-ins/Promise/resolve/resolve-prms-cstm-then.js +++ b/test/built-ins/Promise/resolve/resolve-prms-cstm-then.js @@ -23,7 +23,9 @@ info: | var value = {}; var rejectCallCount = 0; -var thenable = new Promise(function(resolve) { resolve(); }); +var thenable = new Promise(function(resolve) { + resolve(); +}); var resolvedValue; thenable.then = function(resolve) { @@ -31,10 +33,10 @@ thenable.then = function(resolve) { }; Promise.resolve(thenable).then(function(val) { - resolvedValue = val; - }, function() { - rejectCallCount += 1; - }); + resolvedValue = val; +}, function() { + rejectCallCount += 1; +}); assert.sameValue(resolvedValue, value); assert.sameValue(rejectCallCount, 0); diff --git a/test/built-ins/Promise/resolve/resolve-thenable.js b/test/built-ins/Promise/resolve/resolve-thenable.js index 3781e7fedc..2ea723f3b6 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 db07eb6e38..347e4bb4ea 100644 --- a/test/built-ins/Proxy/apply/call-parameters.js +++ b/test/built-ins/Proxy/apply/call-parameters.js @@ -12,14 +12,16 @@ info: | ---*/ var _target, _args, _handler, _context; -var target = function(a, b) { return a + b; }; +var target = function(a, b) { + return a + b; +}; var handler = { - apply: function(t, c, args) { - _handler = this; - _target = t; - _context = c; - _args = args; - } + apply: function(t, c, args) { + _handler = this; + _target = t; + _context = c; + _args = args; + } }; var p = new Proxy(target, handler); diff --git a/test/built-ins/Proxy/apply/call-result.js b/test/built-ins/Proxy/apply/call-result.js index 0348f4f011..1f3bf53d2f 100644 --- a/test/built-ins/Proxy/apply/call-result.js +++ b/test/built-ins/Proxy/apply/call-result.js @@ -10,12 +10,14 @@ info: | 9. Return Call(trap, handler, «target, thisArgument, argArray»). ---*/ -var target = function(a, b) { return a + b; }; +var target = function(a, b) { + return a + b; +}; var result = {}; var handler = { - apply: function(t, c, args) { - return result; - } + apply: function(t, c, args) { + return result; + } }; var p = new Proxy(target, handler); diff --git a/test/built-ins/Proxy/apply/null-handler.js b/test/built-ins/Proxy/apply/null-handler.js index 5906aef045..cdc7461d11 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 8542e64f6f..db3f6bfa56 100644 --- a/test/built-ins/Proxy/apply/return-abrupt.js +++ b/test/built-ins/Proxy/apply/return-abrupt.js @@ -6,13 +6,15 @@ description: > Return is an abrupt completion ---*/ -var target = function(a, b) { return a + b; }; +var target = function(a, b) { + return a + b; +}; var p = new Proxy(target, { - apply: function(t, c, args) { - throw new Test262Error(); - } + apply: function(t, c, args) { + throw new Test262Error(); + } }); assert.throws(Test262Error, function() { - p.call(); + p.call(); }); diff --git a/test/built-ins/Proxy/apply/trap-is-not-callable.js b/test/built-ins/Proxy/apply/trap-is-not-callable.js index b033e8dd41..b6e74f1ef3 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 e19cf84451..8bb87786c1 100644 --- a/test/built-ins/Proxy/apply/trap-is-null.js +++ b/test/built-ins/Proxy/apply/trap-is-null.js @@ -31,7 +31,9 @@ function target(a, b) { } var ctx = {}; -var p = new Proxy(target, {apply: null}); +var p = new Proxy(target, { + apply: null +}); var res = p.call(ctx, 1, 2); assert.sameValue(res, 3, "`apply` trap is `null`"); assert.sameValue(calls, 1, "target is called once"); diff --git a/test/built-ins/Proxy/apply/trap-is-undefined-no-property.js b/test/built-ins/Proxy/apply/trap-is-undefined-no-property.js index 9cb26e3652..898fad3621 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 cc9c1ff41e..a8df9f34ba 100644 --- a/test/built-ins/Proxy/apply/trap-is-undefined.js +++ b/test/built-ins/Proxy/apply/trap-is-undefined.js @@ -31,7 +31,9 @@ function target(a, b) { } var ctx = {}; -var p = new Proxy(target, {apply: undefined}); +var p = new Proxy(target, { + apply: undefined +}); var res = p.call(ctx, 1, 2); assert.sameValue(res, 3, "`apply` trap is `null`"); assert.sameValue(calls, 1, "target is called once"); diff --git a/test/built-ins/Proxy/construct/call-parameters-new-target.js b/test/built-ins/Proxy/construct/call-parameters-new-target.js index 714b1db4be..dab0f8512f 100644 --- a/test/built-ins/Proxy/construct/call-parameters-new-target.js +++ b/test/built-ins/Proxy/construct/call-parameters-new-target.js @@ -15,22 +15,25 @@ features: [Reflect.construct] ---*/ function Target() {} + function NewTarget() {} var handler = { - construct: function(target, args, newTarget) { - assert.sameValue(this, handler, "trap context is the handler object"); - assert.sameValue(target, Target, "first parameter is the target object"); - assert.sameValue(args.length, 2, "arguments list contains all construct arguments"); - - var a = args[0]; - var b = args[1]; - assert.sameValue(a, 1, "arguments list has first construct argument"); - assert.sameValue(b, 2, "arguments list has second construct argument"); - assert.sameValue(newTarget, NewTarget, "newTarget is passed as the third parameter"); - - return {sum: a + b}; - }, + construct: function(target, args, newTarget) { + assert.sameValue(this, handler, "trap context is the handler object"); + assert.sameValue(target, Target, "first parameter is the target object"); + assert.sameValue(args.length, 2, "arguments list contains all construct arguments"); + + var a = args[0]; + var b = args[1]; + assert.sameValue(a, 1, "arguments list has first construct argument"); + assert.sameValue(b, 2, "arguments list has second construct argument"); + assert.sameValue(newTarget, NewTarget, "newTarget is passed as the third parameter"); + + return { + sum: a + b + }; + }, }; var P = new Proxy(Target, handler); diff --git a/test/built-ins/Proxy/construct/call-parameters.js b/test/built-ins/Proxy/construct/call-parameters.js index f52f7b8425..7d0e9cc1e4 100644 --- a/test/built-ins/Proxy/construct/call-parameters.js +++ b/test/built-ins/Proxy/construct/call-parameters.js @@ -13,17 +13,18 @@ info: | ---*/ var _target, _handler, _args, _P; + function Target() {} var handler = { - construct: function(t, args, newTarget) { - _handler = this; - _target = t; - _args = args; - _P = newTarget; + construct: function(t, args, newTarget) { + _handler = this; + _target = t; + _args = args; + _P = newTarget; - return new t(args[0], args[1]); - } + return new t(args[0], args[1]); + } }; var P = new Proxy(Target, handler); diff --git a/test/built-ins/Proxy/construct/call-result.js b/test/built-ins/Proxy/construct/call-result.js index f47ddb9016..7740f1fe85 100644 --- a/test/built-ins/Proxy/construct/call-result.js +++ b/test/built-ins/Proxy/construct/call-result.js @@ -11,12 +11,14 @@ info: | ---*/ function Target(a, b) { - this.sum = a + b; + this.sum = a + b; }; var handler = { - construct: function(t, c, args) { - return { sum: 42 }; - } + construct: function(t, c, args) { + return { + sum: 42 + }; + } }; var P = new Proxy(Target, handler); diff --git a/test/built-ins/Proxy/construct/null-handler.js b/test/built-ins/Proxy/construct/null-handler.js index 3c60321618..816d04d4f7 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 de42204fd4..c0d41aa4ee 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 0edd139a8c..5c40d5c8c8 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 a7e27c6a8f..7e97a803b8 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 4de604814b..ca2f5af05c 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 ade72bfae5..963812950a 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 9547263b92..347dd3dd92 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 f0c66394a5..41bc0c700c 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 0a895bc572..9bc1ab29f3 100644 --- a/test/built-ins/Proxy/construct/trap-is-null.js +++ b/test/built-ins/Proxy/construct/trap-is-null.js @@ -27,13 +27,18 @@ features: [Reflect.construct] var calls = 0; function NewTarget() {} + function Target(a, b) { - assert.sameValue(new.target, NewTarget); - calls += 1; - return {sum: a + b}; + assert.sameValue(new.target, NewTarget); + calls += 1; + return { + sum: a + b + }; } -var P = new Proxy(Target, {construct: null}); +var P = new Proxy(Target, { + construct: null +}); var obj = Reflect.construct(P, [3, 4], NewTarget); assert.sameValue(obj.sum, 7, "`construct` trap is `null`"); assert.sameValue(calls, 1, "target is called once"); diff --git a/test/built-ins/Proxy/construct/trap-is-undefined-no-property.js b/test/built-ins/Proxy/construct/trap-is-undefined-no-property.js index a50384f595..4157f7b234 100644 --- a/test/built-ins/Proxy/construct/trap-is-undefined-no-property.js +++ b/test/built-ins/Proxy/construct/trap-is-undefined-no-property.js @@ -16,10 +16,13 @@ features: [Reflect.construct] var calls = 0; function NewTarget() {} + function Target(a, b) { - assert.sameValue(new.target, NewTarget); - calls += 1; - return {sum: a + b}; + assert.sameValue(new.target, NewTarget); + calls += 1; + return { + sum: a + b + }; } var P = new Proxy(Target, {}); diff --git a/test/built-ins/Proxy/construct/trap-is-undefined.js b/test/built-ins/Proxy/construct/trap-is-undefined.js index d1a6c71066..97580c6d64 100644 --- a/test/built-ins/Proxy/construct/trap-is-undefined.js +++ b/test/built-ins/Proxy/construct/trap-is-undefined.js @@ -27,13 +27,18 @@ features: [Reflect.construct] var calls = 0; function NewTarget() {} + function Target(a, b) { - assert.sameValue(new.target, NewTarget); - calls += 1; - return {sum: a + b}; + assert.sameValue(new.target, NewTarget); + calls += 1; + return { + sum: a + b + }; } -var P = new Proxy(Target, {construct: undefined}); +var P = new Proxy(Target, { + construct: undefined +}); var obj = Reflect.construct(P, [3, 4], NewTarget); assert.sameValue(obj.sum, 7, "`construct` trap is `undefined`"); assert.sameValue(calls, 1, "target is called once"); diff --git a/test/built-ins/Proxy/create-handler-is-revoked-proxy.js b/test/built-ins/Proxy/create-handler-is-revoked-proxy.js index 5126e4cb0f..151ad36f41 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 891c1826b1..e1846af107 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 7abcc0b2db..c22244d25f 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 7cb41f20b5..262a990672 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 25f1982ec3..3882b313e6 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 3801334231..78234d8e22 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 8dd8f172b4..78a78ba640 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 7bb2dae6c2..b29ed9cd0d 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 7bce1979cd..f369b5ef21 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 f68607b36d..fb8b118de3 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 d43e653e98..d8b9f1856f 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 845cb6592f..af64c1e46b 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 2dae22e798..ba78893441 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 d442b2e150..aa1fcd96ff 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 a3569f23db..825e7145af 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 9cda79c829..42895cf623 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 ade8bb9716..6afb6f5baf 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 ffbf147337..aa83c1ff03 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 2e4699cbf6..0f7594a143 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 574c72816b..5914eacf60 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 620ffbd89e..25bf881713 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 229b373e24..14ce2cc244 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 595766db99..1a671b3a0b 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 730e25e6f7..ca6f80c866 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 8596b704d2..9f5a53c7d3 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 a0e9500ed1..d75b215674 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 58b63dbbb4..3fe044b29e 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 969c52aae5..a401653c51 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 148a7b81af..4419f0a19c 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 fe506f109e..93345e580b 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 e84586345a..bfd8e3b081 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 1b280f79ed..ddc6c8d8a7 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 c0785c90bf..6c485ec64e 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 94d33a91e3..befa2c60ab 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 c22fd398fb..7e9f76bf47 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 d0299d5d93..7923974dc8 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 fc70773fa7..d3d2d77397 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 60c76025dc..29ee6d64ca 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 3adf23123b..0f174367f1 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 070fba7f5a..d1c1df2bf2 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 e501f9160e..b37f51b56e 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 08968ff920..922a6ffd0d 100644 --- a/test/built-ins/Proxy/get-fn-realm.js +++ b/test/built-ins/Proxy/get-fn-realm.js @@ -22,6 +22,8 @@ features: [cross-realm] var other = $262.createRealm().global; var C = new other.Function(); // Ensure that the proxy does not report a `prototype` property -var P = new Proxy(C, { get: function() {} }); +var P = new Proxy(C, { + get: function() {} +}); assert.sameValue(Object.getPrototypeOf(new P()), other.Object.prototype); diff --git a/test/built-ins/Proxy/get/accessor-get-is-undefined-throws.js b/test/built-ins/Proxy/get/accessor-get-is-undefined-throws.js index e8735486ed..4427d5b807 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 648ddc9ad7..b4f0e11d31 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 af8cb67393..ce6f0a1fc9 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 82dc3a187c..0be40457c7 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 f0a8e7e423..c632d8e5f0 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 560bd56506..e50ae367ee 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 46ddaeff0b..feadb297d0 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 930265b6e6..5afb94229a 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 1ad1eca0a6..31d494104a 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 a95e792014..f26b486388 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 d045e14927..7e1b945f78 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 addd535294..50b1294018 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 c9d107f592..c25ea6ca2e 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 f900e251fd..3cf99140b5 100644 --- a/test/built-ins/Proxy/get/trap-is-undefined-receiver.js +++ b/test/built-ins/Proxy/get/trap-is-undefined-receiver.js @@ -13,12 +13,14 @@ info: | ---*/ var target = { - get attr() { - return this; - } + get attr() { + return this; + } }; -var p = new Proxy(target, { get: null }); +var p = new Proxy(target, { + get: null +}); assert.sameValue(p.attr, p); var pParent = Object.create(new Proxy(target, {})); diff --git a/test/built-ins/Proxy/get/trap-is-undefined.js b/test/built-ins/Proxy/get/trap-is-undefined.js index 4c2257aa61..b06d573306 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 d0d6222d7a..dada9a171a 100644 --- a/test/built-ins/Proxy/getOwnPropertyDescriptor/call-parameters.js +++ b/test/built-ins/Proxy/getOwnPropertyDescriptor/call-parameters.js @@ -13,15 +13,17 @@ info: | ---*/ var _target, _handler, _prop; -var target = {attr: 1}; +var target = { + attr: 1 +}; var handler = { - getOwnPropertyDescriptor: function(t, prop) { - _target = t; - _handler = this; - _prop = prop; + getOwnPropertyDescriptor: function(t, prop) { + _target = t; + _handler = this; + _prop = prop; - return Object.getOwnPropertyDescriptor(t); - } + return Object.getOwnPropertyDescriptor(t); + } }; var p = new Proxy(target, handler); diff --git a/test/built-ins/Proxy/getOwnPropertyDescriptor/null-handler.js b/test/built-ins/Proxy/getOwnPropertyDescriptor/null-handler.js index a908e072b8..61a59ce023 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 0e35b7780f..a19bfedbc8 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 1bc7320063..6d62c28bf7 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 1d092e2c7d..651005509c 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 fb8d21829f..fb881aeba1 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 d27054cf46..4b54cba83e 100644 --- a/test/built-ins/Proxy/getOwnPropertyDescriptor/result-type-is-not-object-nor-undefined-realm.js +++ b/test/built-ins/Proxy/getOwnPropertyDescriptor/result-type-is-not-object-nor-undefined-realm.js @@ -16,7 +16,9 @@ features: [cross-realm] var OProxy = $262.createRealm().global.Proxy; var p = new OProxy({}, { - getOwnPropertyDescriptor: function() { return null; } + getOwnPropertyDescriptor: function() { + return null; + } }); assert.throws(TypeError, function() { diff --git a/test/built-ins/Proxy/getOwnPropertyDescriptor/result-type-is-not-object-nor-undefined.js b/test/built-ins/Proxy/getOwnPropertyDescriptor/result-type-is-not-object-nor-undefined.js index 23fcd2badd..1e706893c9 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 28fd426c63..b256f6907a 100644 --- a/test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-is-invalid-descriptor.js +++ b/test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-is-invalid-descriptor.js @@ -17,15 +17,17 @@ info: | var target = {}; var p = new Proxy(target, { - getOwnPropertyDescriptor: function(t, prop) { - var foo = { bar: 1 }; + getOwnPropertyDescriptor: function(t, prop) { + var foo = { + bar: 1 + }; - return Object.getOwnPropertyDescriptor(foo, "bar"); - } + return Object.getOwnPropertyDescriptor(foo, "bar"); + } }); Object.preventExtensions(target); assert.throws(TypeError, function() { - Object.getOwnPropertyDescriptor(p, "bar"); + Object.getOwnPropertyDescriptor(p, "bar"); }); diff --git a/test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-is-not-configurable-targetdesc-is-configurable.js b/test/built-ins/Proxy/getOwnPropertyDescriptor/resultdesc-is-not-configurable-targetdesc-is-configurable.js index 4184e28ea1..bc99d971ba 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 338883edb5..4dba72b98d 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 13f46ca31b..ed8dd3bcfe 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 cc25cc694b..928039e340 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 26d7c69b6d..805f068e64 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 a6bfeef4cb..ce9fd5886e 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 75d7099be4..4471bc1ecb 100644 --- a/test/built-ins/Proxy/getOwnPropertyDescriptor/trap-is-undefined.js +++ b/test/built-ins/Proxy/getOwnPropertyDescriptor/trap-is-undefined.js @@ -14,7 +14,9 @@ info: | includes: [propertyHelper.js] ---*/ -var target = {attr: 1}; +var target = { + attr: 1 +}; var p = new Proxy(target, {}); var proxyDesc = Object.getOwnPropertyDescriptor(p, "attr"); diff --git a/test/built-ins/Proxy/getPrototypeOf/extensible-target-return-handlerproto.js b/test/built-ins/Proxy/getPrototypeOf/extensible-target-return-handlerproto.js index e9e16eb2a6..a611999421 100644 --- a/test/built-ins/Proxy/getPrototypeOf/extensible-target-return-handlerproto.js +++ b/test/built-ins/Proxy/getPrototypeOf/extensible-target-return-handlerproto.js @@ -22,7 +22,9 @@ info: | ---*/ -var prot = { foo: 1 }; +var prot = { + foo: 1 +}; var p = new Proxy({}, { getPrototypeOf: function() { return prot; diff --git a/test/built-ins/Proxy/getPrototypeOf/not-extensible-not-same-proto-throws.js b/test/built-ins/Proxy/getPrototypeOf/not-extensible-not-same-proto-throws.js index a834aca9e0..0569ed4edf 100644 --- a/test/built-ins/Proxy/getPrototypeOf/not-extensible-not-same-proto-throws.js +++ b/test/built-ins/Proxy/getPrototypeOf/not-extensible-not-same-proto-throws.js @@ -25,7 +25,9 @@ info: | ... ---*/ -var target = Object.create({ foo: 1 }); +var target = Object.create({ + foo: 1 +}); var p = new Proxy(target, { getPrototypeOf: function() { @@ -36,5 +38,5 @@ var p = new Proxy(target, { Object.preventExtensions(target); assert.throws(TypeError, function() { - Object.getPrototypeOf(p); + Object.getPrototypeOf(p); }); diff --git a/test/built-ins/Proxy/getPrototypeOf/null-handler.js b/test/built-ins/Proxy/getPrototypeOf/null-handler.js index 38c8e7e493..3768419809 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 bf04b9e544..f81d3ffe32 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 e6335e46a5..3920ee73df 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 c8c0543ba8..7a534ddc99 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 d0533f518c..628e0868cd 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 34bea0d5fc..29033521ee 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 9b47cf9a9f..0c88056ee7 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 8e5143d3d8..ea4aeff853 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 1bdc927725..f51d824dbf 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 9b80cad11d..4bcbe2ca5e 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 59e567ffc7..1efe91f2cb 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 06bd4eaf0e..68320160ba 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 90deca388b..8cc5d8ea32 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 5847413a2d..fb3e6f463e 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 b1f9c51900..dc5e3a3b90 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 d008f1ad2b..cb7ebd738e 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 7a74041c4a..52bc88f4ff 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 43c59aa016..a6a5517092 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 581a4113f3..71f882c229 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 d7a7c5a4b5..9e42c2d058 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 46824ac2d3..e4ff88601b 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 145073b720..1e58f30f78 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 9c5a409da6..187ef00304 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 9186074a7d..5ee560de89 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 1153bd364f..951ebcf43a 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 7124198244..63f4943574 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 26a98bebb0..4c3ec37c27 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 b43ea5619d..3327adc8c4 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 d8d14bf7c8..0ff2c1b37f 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 aacd87bd0d..ae7591d536 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 29d54369ed..5c8bf4e3f0 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 d40f45293c..50a76377d8 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 4858765c37..0c8406f46a 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 845cd0b577..7db8f4cf6e 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 9ddf4c8652..112a31da8c 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 ea802c424d..f788aa2916 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 9ea0cdf6c4..6723d9104b 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 3fc49524d1..6c3cc745e5 100644 --- a/test/built-ins/Proxy/ownKeys/extensible-return-trap-result-absent-not-configurable-keys.js +++ b/test/built-ins/Proxy/ownKeys/extensible-return-trap-result-absent-not-configurable-keys.js @@ -13,10 +13,12 @@ info: | a. Return trapResult. ---*/ -var p = new Proxy({attr: 42}, { - ownKeys: function() { - return ["foo", "bar"]; - } +var p = new Proxy({ + attr: 42 +}, { + ownKeys: function() { + return ["foo", "bar"]; + } }); var keys = Object.getOwnPropertyNames(p); diff --git a/test/built-ins/Proxy/ownKeys/extensible-return-trap-result.js b/test/built-ins/Proxy/ownKeys/extensible-return-trap-result.js index ad4073ac0e..63b06910a2 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 88b7b88a10..cb256bacac 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 22cc027915..fb6eddf5f3 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 f7d6832df8..a491ffb6d0 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 e703ece13a..653e1fc868 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 70a898d5d9..9cd1c90b4f 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 fd48e0f9c2..405fbbfbaa 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 58d211c2f1..45e22b3a0a 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 2f08964914..c3bd072425 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 e6f3a3aa24..78cc7335f9 100644 --- a/test/built-ins/Proxy/ownKeys/return-type-throws-array.js +++ b/test/built-ins/Proxy/ownKeys/return-type-throws-array.js @@ -25,7 +25,9 @@ info: | var p = new Proxy({}, { ownKeys() { - return [[]]; + return [ + [] + ]; } }); diff --git a/test/built-ins/Proxy/ownKeys/trap-is-not-callable-realm.js b/test/built-ins/Proxy/ownKeys/trap-is-not-callable-realm.js index 030d6b5e80..0eb431e7dd 100644 --- a/test/built-ins/Proxy/ownKeys/trap-is-not-callable-realm.js +++ b/test/built-ins/Proxy/ownKeys/trap-is-not-callable-realm.js @@ -19,7 +19,9 @@ features: [cross-realm] ---*/ var OProxy = $262.createRealm().global.Proxy; -var p = new OProxy({attr:1}, { +var p = new OProxy({ + attr: 1 +}, { ownKeys: {} }); diff --git a/test/built-ins/Proxy/ownKeys/trap-is-not-callable.js b/test/built-ins/Proxy/ownKeys/trap-is-not-callable.js index 6b95478ae4..20ed2a8fdd 100644 --- a/test/built-ins/Proxy/ownKeys/trap-is-not-callable.js +++ b/test/built-ins/Proxy/ownKeys/trap-is-not-callable.js @@ -16,10 +16,12 @@ info: | 4. If IsCallable(func) is false, throw a TypeError exception. ---*/ -var p = new Proxy({attr:1}, { - ownKeys: {} +var p = new Proxy({ + attr: 1 +}, { + ownKeys: {} }); assert.throws(TypeError, function() { - Object.keys(p); + Object.keys(p); }); diff --git a/test/built-ins/Proxy/ownKeys/trap-is-undefined.js b/test/built-ins/Proxy/ownKeys/trap-is-undefined.js index 2b98302621..3b42a49e11 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 2eb15a3645..7774224b8c 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 12b7ee8657..e8067f063e 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 c448d70e80..dbe0c59947 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 cfe31cb7e3..cb3384df6c 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 8f17073127..9f922da8ea 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 14143824f4..db2287b492 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 b3826aa21d..2a42bfdd97 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 9613eb4b9d..3884cd44d6 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 b06a7a8861..9b8566e92e 100644 --- a/test/built-ins/Proxy/proxy-undefined-newtarget.js +++ b/test/built-ins/Proxy/proxy-undefined-newtarget.js @@ -16,4 +16,3 @@ description: > assert.throws(TypeError, function() { Proxy({}, {}); }); - diff --git a/test/built-ins/Proxy/revocable/proxy.js b/test/built-ins/Proxy/revocable/proxy.js index b08d73c2e3..32d4c27cd0 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 02fc9aa5c4..1dd225538a 100644 --- a/test/built-ins/Proxy/revocable/revocation-function-nonconstructor.js +++ b/test/built-ins/Proxy/revocable/revocation-function-nonconstructor.js @@ -14,4 +14,6 @@ info: | var revocationFunction = Proxy.revocable({}, {}).revoke; assert.sameValue(Object.prototype.hasOwnProperty.call(revocationFunction, "prototype"), false); -assert.throws(TypeError, function() { new revocationFunction(); }); +assert.throws(TypeError, function() { + new revocationFunction(); +}); diff --git a/test/built-ins/Proxy/set/boolean-trap-result-is-false-boolean-return-false.js b/test/built-ins/Proxy/set/boolean-trap-result-is-false-boolean-return-false.js index 0e7100cfc8..7f30f31c94 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 c6ca59a135..20ae2d4901 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 58380a602d..a1c4f2259b 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 9d3783668e..78f8d8ec5b 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 3d05404a97..a17dd5a3fe 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 812333e924..3b2fa42344 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 3b20350858..637c43a46e 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 1da66bbdaf..6f6ee2b254 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 11f3563873..20e5f2a95d 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 0277b54c18..89547216d3 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 0bd1f6328d..730ecafe15 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 314d164ef0..3fd7a5a957 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 5cdb2926ac..582336903d 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 3e46bc33dc..9bfd14990c 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 1aef3ff16e..cd3622d7c6 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 f0b29b0ff8..512cb83e1f 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 f0074b9f11..4c915c4942 100644 --- a/test/built-ins/Proxy/set/trap-is-undefined-receiver.js +++ b/test/built-ins/Proxy/set/trap-is-undefined-receiver.js @@ -14,12 +14,14 @@ info: | var context; var target = { - set attr(val) { - context = this; - } + set attr(val) { + context = this; + } }; -var p = new Proxy(target, { set: null }); +var p = new Proxy(target, { + set: null +}); p.attr = 1; assert.sameValue(context, p); diff --git a/test/built-ins/Proxy/set/trap-is-undefined.js b/test/built-ins/Proxy/set/trap-is-undefined.js index 82399fa343..06cadd7a09 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 d85199ec09..ff44703df8 100644 --- a/test/built-ins/Proxy/setPrototypeOf/call-parameters.js +++ b/test/built-ins/Proxy/setPrototypeOf/call-parameters.js @@ -15,17 +15,19 @@ info: | var _handler, _target, _value; var target = {}; -var val = {foo: 1}; +var val = { + foo: 1 +}; var handler = { - setPrototypeOf: function(t, v) { - _handler = this; - _target = t; - _value = v; + setPrototypeOf: function(t, v) { + _handler = this; + _target = t; + _value = v; - Object.setPrototypeOf(t, v); + Object.setPrototypeOf(t, v); - return true; - } + return true; + } }; var p = new Proxy(target, handler); diff --git a/test/built-ins/Proxy/setPrototypeOf/null-handler.js b/test/built-ins/Proxy/setPrototypeOf/null-handler.js index 4d4a7a6b68..8a78bc9653 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 cb2ffaff1d..292515d93d 100644 --- a/test/built-ins/Proxy/setPrototypeOf/return-abrupt-from-trap.js +++ b/test/built-ins/Proxy/setPrototypeOf/return-abrupt-from-trap.js @@ -12,11 +12,13 @@ info: | ---*/ var p = new Proxy({}, { - setPrototypeOf: function() { - throw new Test262Error(); - } + setPrototypeOf: function() { + throw new Test262Error(); + } }); assert.throws(Test262Error, function() { - Object.setPrototypeOf(p, {value: 1}); + Object.setPrototypeOf(p, { + value: 1 + }); }); diff --git a/test/built-ins/Proxy/setPrototypeOf/toboolean-trap-result-false.js b/test/built-ins/Proxy/setPrototypeOf/toboolean-trap-result-false.js index f20f03326c..e87fdf93d8 100644 --- a/test/built-ins/Proxy/setPrototypeOf/toboolean-trap-result-false.js +++ b/test/built-ins/Proxy/setPrototypeOf/toboolean-trap-result-false.js @@ -32,30 +32,44 @@ var p = new Proxy(target, { var result; -result = Reflect.setPrototypeOf(p, { attr: false }); +result = Reflect.setPrototypeOf(p, { + attr: false +}); assert.sameValue(result, false, "false"); assert.sameValue(called, 0, "false - isExtensible is not called"); -result = Reflect.setPrototypeOf(p, { attr: "" }); +result = Reflect.setPrototypeOf(p, { + attr: "" +}); assert.sameValue(result, false, "the empty string"); assert.sameValue(called, 0, "the empty string - isExtensible is not called"); -result = Reflect.setPrototypeOf(p, { attr: 0 }); +result = Reflect.setPrototypeOf(p, { + attr: 0 +}); assert.sameValue(result, false, "0"); assert.sameValue(called, 0, "0 - isExtensible is not called"); -result = Reflect.setPrototypeOf(p, { attr: -0 }); +result = Reflect.setPrototypeOf(p, { + attr: -0 +}); assert.sameValue(result, false, "-0"); assert.sameValue(called, 0, "-0 - isExtensible is not called"); -result = Reflect.setPrototypeOf(p, { attr: null }); +result = Reflect.setPrototypeOf(p, { + attr: null +}); assert.sameValue(result, false, "null"); assert.sameValue(called, 0, "null - isExtensible is not called"); -result = Reflect.setPrototypeOf(p, { attr: undefined }); +result = Reflect.setPrototypeOf(p, { + attr: undefined +}); assert.sameValue(result, false, "undefined"); assert.sameValue(called, 0, "undefined - isExtensible is not called"); -result = Reflect.setPrototypeOf(p, { attr: NaN }); +result = Reflect.setPrototypeOf(p, { + attr: NaN +}); assert.sameValue(result, false, "NaN"); assert.sameValue(called, 0, "NaN - isExtensible is not called"); diff --git a/test/built-ins/Proxy/setPrototypeOf/toboolean-trap-result-true-target-is-extensible.js b/test/built-ins/Proxy/setPrototypeOf/toboolean-trap-result-true-target-is-extensible.js index 189bc701ac..5353aaf006 100644 --- a/test/built-ins/Proxy/setPrototypeOf/toboolean-trap-result-true-target-is-extensible.js +++ b/test/built-ins/Proxy/setPrototypeOf/toboolean-trap-result-true-target-is-extensible.js @@ -36,31 +36,43 @@ var p = new Proxy(target, { var result; called = 0; -result = Reflect.setPrototypeOf(p, { attr: true }); +result = Reflect.setPrototypeOf(p, { + attr: true +}); assert.sameValue(result, true, "true"); assert.sameValue(called, 1, "true - isExtensible is called"); called = 0; -result = Reflect.setPrototypeOf(p, { attr: "false" }); +result = Reflect.setPrototypeOf(p, { + attr: "false" +}); assert.sameValue(result, true, "string"); assert.sameValue(called, 1, "string - isExtensible is called"); called = 0; -result = Reflect.setPrototypeOf(p, { attr: 42 }); +result = Reflect.setPrototypeOf(p, { + attr: 42 +}); assert.sameValue(result, true, "42"); assert.sameValue(called, 1, "number - isExtensible is called"); called = 0; -result = Reflect.setPrototypeOf(p, { attr: p }); +result = Reflect.setPrototypeOf(p, { + attr: p +}); assert.sameValue(result, true, "p"); assert.sameValue(called, 1, "object - isExtensible is called"); called = 0; -result = Reflect.setPrototypeOf(p, { attr: [] }); +result = Reflect.setPrototypeOf(p, { + attr: [] +}); assert.sameValue(result, true, "[]"); assert.sameValue(called, 1, "[] - isExtensible is called"); called = 0; -result = Reflect.setPrototypeOf(p, { attr: Symbol(1) }); +result = Reflect.setPrototypeOf(p, { + attr: Symbol(1) +}); assert.sameValue(result, true, "symbol"); assert.sameValue(called, 1, "symbol - isExtensible is called"); diff --git a/test/built-ins/Proxy/setPrototypeOf/trap-is-not-callable-realm.js b/test/built-ins/Proxy/setPrototypeOf/trap-is-not-callable-realm.js index bb0e9cf4b2..7e7b7212d1 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 6a4d3395e3..c6977adb34 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 b5b3d97a28..bf07a0bfb4 100644 --- a/test/built-ins/Reflect/apply/call-target.js +++ b/test/built-ins/Reflect/apply/call-target.js @@ -15,6 +15,7 @@ info: | var o = {}; var count = 0; var results, args; + function fn() { count++; results = { diff --git a/test/built-ins/Reflect/apply/return-target-call-result.js b/test/built-ins/Reflect/apply/return-target-call-result.js index 9780efdf8f..b506a8091e 100644 --- a/test/built-ins/Reflect/apply/return-target-call-result.js +++ b/test/built-ins/Reflect/apply/return-target-call-result.js @@ -13,6 +13,7 @@ info: | ---*/ var o = {}; + function fn() { return o; } diff --git a/test/built-ins/Reflect/construct/return-with-newtarget-argument.js b/test/built-ins/Reflect/construct/return-with-newtarget-argument.js index 0f92948507..90f816297e 100644 --- a/test/built-ins/Reflect/construct/return-with-newtarget-argument.js +++ b/test/built-ins/Reflect/construct/return-with-newtarget-argument.js @@ -15,6 +15,7 @@ info: | var o = {}; var internPrototype; + function fn() { this.o = o; internPrototype = Object.getPrototypeOf(this); diff --git a/test/built-ins/Reflect/construct/return-without-newtarget-argument.js b/test/built-ins/Reflect/construct/return-without-newtarget-argument.js index ef5ef9a2bb..db88a02a27 100644 --- a/test/built-ins/Reflect/construct/return-without-newtarget-argument.js +++ b/test/built-ins/Reflect/construct/return-without-newtarget-argument.js @@ -14,6 +14,7 @@ info: | ---*/ var o = {}; + function fn() { this.o = o; } diff --git a/test/built-ins/Reflect/defineProperty/return-boolean.js b/test/built-ins/Reflect/defineProperty/return-boolean.js index da84e3fb7c..78a069ae5d 100644 --- a/test/built-ins/Reflect/defineProperty/return-boolean.js +++ b/test/built-ins/Reflect/defineProperty/return-boolean.js @@ -17,16 +17,22 @@ o.p1 = 'foo'; assert.sameValue(Reflect.defineProperty(o, 'p1', {}), true); assert.sameValue(o.hasOwnProperty('p1'), true); -assert.sameValue(Reflect.defineProperty(o, 'p2', {value: 42}), true); +assert.sameValue(Reflect.defineProperty(o, 'p2', { + value: 42 +}), true); assert.sameValue(o.hasOwnProperty('p2'), true); Object.freeze(o); -assert.sameValue(Reflect.defineProperty(o, 'p2', {value: 43}), false); +assert.sameValue(Reflect.defineProperty(o, 'p2', { + value: 43 +}), false); assert.sameValue(o.p2, 42); assert.sameValue(Reflect.defineProperty(o, 'p3', {}), false); assert.sameValue(o.hasOwnProperty('p4'), false); -assert.sameValue(Reflect.defineProperty(o, 'p4', {value: 1}), false); +assert.sameValue(Reflect.defineProperty(o, 'p4', { + value: 1 +}), false); assert.sameValue(o.hasOwnProperty('p4'), false); diff --git a/test/built-ins/Reflect/get/return-value.js b/test/built-ins/Reflect/get/return-value.js index 605a0784f3..c000d52c53 100644 --- a/test/built-ins/Reflect/get/return-value.js +++ b/test/built-ins/Reflect/get/return-value.js @@ -55,7 +55,9 @@ assert.sameValue( 'Return Call(getter, Receiver)' ); -var o2 = Object.create({p: 42}); +var o2 = Object.create({ + p: 42 +}); assert.sameValue( Reflect.get(o2, 'p'), 42, 'Return value from prototype without own property.' diff --git a/test/built-ins/Reflect/getOwnPropertyDescriptor/return-from-accessor-descriptor.js b/test/built-ins/Reflect/getOwnPropertyDescriptor/return-from-accessor-descriptor.js index da87197bdc..4168de3ec1 100644 --- a/test/built-ins/Reflect/getOwnPropertyDescriptor/return-from-accessor-descriptor.js +++ b/test/built-ins/Reflect/getOwnPropertyDescriptor/return-from-accessor-descriptor.js @@ -46,8 +46,7 @@ var result = Reflect.getOwnPropertyDescriptor(o1, 'p'); assert( compareArray( - Object.keys(result), - ['get', 'set', 'enumerable', 'configurable'] + Object.keys(result), ['get', 'set', 'enumerable', 'configurable'] ) ); assert.sameValue(result.enumerable, false); diff --git a/test/built-ins/Reflect/getOwnPropertyDescriptor/return-from-data-descriptor.js b/test/built-ins/Reflect/getOwnPropertyDescriptor/return-from-data-descriptor.js index 41ea3103f7..79694d89ab 100644 --- a/test/built-ins/Reflect/getOwnPropertyDescriptor/return-from-data-descriptor.js +++ b/test/built-ins/Reflect/getOwnPropertyDescriptor/return-from-data-descriptor.js @@ -22,8 +22,7 @@ var result = Reflect.getOwnPropertyDescriptor(o1, 'p'); assert( compareArray( - Object.keys(result), - ['value', 'writable', 'enumerable', 'configurable'] + Object.keys(result), ['value', 'writable', 'enumerable', 'configurable'] ) ); assert.sameValue(result.value, 'foo'); diff --git a/test/built-ins/Reflect/getOwnPropertyDescriptor/symbol-property.js b/test/built-ins/Reflect/getOwnPropertyDescriptor/symbol-property.js index 7332d0ba5b..4967736134 100644 --- a/test/built-ins/Reflect/getOwnPropertyDescriptor/symbol-property.js +++ b/test/built-ins/Reflect/getOwnPropertyDescriptor/symbol-property.js @@ -29,8 +29,7 @@ var result = Reflect.getOwnPropertyDescriptor(o, s); assert( compareArray( - Object.keys(result), - ['value', 'writable', 'enumerable', 'configurable'] + Object.keys(result), ['value', 'writable', 'enumerable', 'configurable'] ) ); assert.sameValue(result.value, 42); diff --git a/test/built-ins/Reflect/getOwnPropertyDescriptor/undefined-own-property.js b/test/built-ins/Reflect/getOwnPropertyDescriptor/undefined-own-property.js index 6de0bd7e59..0f97d52c54 100644 --- a/test/built-ins/Reflect/getOwnPropertyDescriptor/undefined-own-property.js +++ b/test/built-ins/Reflect/getOwnPropertyDescriptor/undefined-own-property.js @@ -17,7 +17,9 @@ info: | 1. If Desc is undefined, return undefined. ---*/ -var o = Object.create({p: 1}); +var o = Object.create({ + p: 1 +}); var result = Reflect.getOwnPropertyDescriptor(o, 'p'); assert.sameValue(result, undefined); diff --git a/test/built-ins/Reflect/getPrototypeOf/skip-own-properties.js b/test/built-ins/Reflect/getPrototypeOf/skip-own-properties.js index 7532b4ade9..f035cb328d 100644 --- a/test/built-ins/Reflect/getPrototypeOf/skip-own-properties.js +++ b/test/built-ins/Reflect/getPrototypeOf/skip-own-properties.js @@ -13,7 +13,10 @@ info: | var valid = {}; var o = Object.create(valid, { - prototype: {value: 'invalid', enumerable: true} + prototype: { + value: 'invalid', + enumerable: true + } }); assert.sameValue( diff --git a/test/built-ins/Reflect/has/return-boolean.js b/test/built-ins/Reflect/has/return-boolean.js index 7d971705b1..6b74da5f57 100644 --- a/test/built-ins/Reflect/has/return-boolean.js +++ b/test/built-ins/Reflect/has/return-boolean.js @@ -33,5 +33,7 @@ assert.sameValue( 'false when property is not present' ); -var o2 = Object.create({p: 42}); +var o2 = Object.create({ + p: 42 +}); assert.sameValue(Reflect.has(o2, 'p'), true, 'true from a prototype property'); diff --git a/test/built-ins/Reflect/ownKeys/return-empty-array.js b/test/built-ins/Reflect/ownKeys/return-empty-array.js index e2ca635127..103875e680 100644 --- a/test/built-ins/Reflect/ownKeys/return-empty-array.js +++ b/test/built-ins/Reflect/ownKeys/return-empty-array.js @@ -16,6 +16,8 @@ includes: [compareArray.js] assert(compareArray(Reflect.ownKeys({}), [])); -var o = {d: 42}; +var o = { + d: 42 +}; delete o.d; assert(compareArray(Reflect.ownKeys(o), [])); diff --git a/test/built-ins/Reflect/ownKeys/return-non-enumerable-keys.js b/test/built-ins/Reflect/ownKeys/return-non-enumerable-keys.js index f3eab256ee..282b90baae 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 bed865533a..8b99a236b1 100644 --- a/test/built-ins/Reflect/set/creates-a-data-descriptor.js +++ b/test/built-ins/Reflect/set/creates-a-data-descriptor.js @@ -75,4 +75,3 @@ assert.sameValue( verifyWritable(receiver, 'p'); verifyEnumerable(receiver, 'p'); verifyConfigurable(receiver, 'p'); - diff --git a/test/built-ins/Reflect/set/different-property-descriptors.js b/test/built-ins/Reflect/set/different-property-descriptors.js index 191c1c21e9..fab96a084e 100644 --- a/test/built-ins/Reflect/set/different-property-descriptors.js +++ b/test/built-ins/Reflect/set/different-property-descriptors.js @@ -52,7 +52,9 @@ assert.sameValue( ); assert.sameValue(o1.hasOwnProperty('p'), false, 'target.p is not set'); -var o2 = {p: 43}; +var o2 = { + p: 43 +}; result = Reflect.set(o2, 'p', 42, receiver); assert.sameValue( result, false, diff --git a/test/built-ins/Reflect/set/receiver-is-not-object.js b/test/built-ins/Reflect/set/receiver-is-not-object.js index b3f32bac60..bbabeddb3c 100644 --- a/test/built-ins/Reflect/set/receiver-is-not-object.js +++ b/test/built-ins/Reflect/set/receiver-is-not-object.js @@ -29,7 +29,9 @@ info: | ... ---*/ -var o1 = {p: 42}; +var o1 = { + p: 42 +}; var receiver = 'receiver is a string'; var result = Reflect.set(o1, 'p', 43, receiver); diff --git a/test/built-ins/Reflect/set/set-value-on-accessor-descriptor.js b/test/built-ins/Reflect/set/set-value-on-accessor-descriptor.js index 4f820eb4a3..9f484da631 100644 --- a/test/built-ins/Reflect/set/set-value-on-accessor-descriptor.js +++ b/test/built-ins/Reflect/set/set-value-on-accessor-descriptor.js @@ -42,4 +42,3 @@ assert.sameValue( assert.sameValue(args.length, 1, 'target.p set is called with 1 argument'); assert.sameValue(args[0], 42, 'target.p set is called with V'); assert.sameValue(count, 1, 'target.p set is called once'); - diff --git a/test/built-ins/Reflect/set/set-value-on-data-descriptor.js b/test/built-ins/Reflect/set/set-value-on-data-descriptor.js index 3d8291cb25..6aeaaa2f44 100644 --- a/test/built-ins/Reflect/set/set-value-on-data-descriptor.js +++ b/test/built-ins/Reflect/set/set-value-on-data-descriptor.js @@ -30,7 +30,9 @@ info: | ... ---*/ -var o1 = {p: 43}; +var o1 = { + p: 43 +}; var result = Reflect.set(o1, 'p', 42); assert.sameValue(result, true, 'returns true on a successful setting'); assert.sameValue( @@ -38,8 +40,12 @@ assert.sameValue( 'sets the new value' ); -var o2 = {p: 43}; -var receiver = {p: 44}; +var o2 = { + p: 43 +}; +var receiver = { + p: 44 +}; var result = Reflect.set(o2, 'p', 42, receiver); assert.sameValue(result, true, 'returns true on a successful setting'); assert.sameValue(o2.p, 43, 'with a receiver, does not set a value on target'); diff --git a/test/built-ins/RegExp/S15.10.1_A1_T1.js b/test/built-ins/RegExp/S15.10.1_A1_T1.js index f9c79821da..6e905fc606 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 624547011a..8245cb8dd6 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 fc9c257903..1aabb2cc0b 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 cfaa01bbfb..ca7a56f73f 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 44d78f511e..676dda30e0 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 bd04b49807..034688f204 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 246027320f..f114cbe20b 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 0b27a88450..3860805519 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 d461df5c20..da514d132b 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 5d3eb8afa1..3a10610e23 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 3be64a51cb..d8050b7632 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 58130c947c..fde444c9a5 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 68be6d283a..f926b910a9 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 adfd0967a5..b3641bfbec 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 1d3e53b57e..69ef89717c 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 91cbdc7f9b..d39c4b6b91 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 a12c544b13..405e199a7e 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 c2fb1bd6ec..746fdf093d 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 3a7049b724..0dae484f95 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 3f99f9eefa..fdd2fa800e 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 3d84b92163..6d1b5d6274 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 0e0ed3092c..d7dfb0fd01 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 0b2c0e38ad..f6f418d72b 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 d60ab2f73b..935042ce22 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 e08eafa6ac..90f8b136d9 100644 --- a/test/built-ins/RegExp/S15.10.2.12_A1_T1.js +++ b/test/built-ins/RegExp/S15.10.2.12_A1_T1.js @@ -523,7 +523,9 @@ if (i62.replace(/\s+/g, "") !== o62) { var i63 = ""; for (var j = 64512; j < 65536; j++) { - if (j === 0xFEFF) { continue; } //Ignore BOM + if (j === 0xFEFF) { + continue; + } //Ignore BOM i63 += String.fromCharCode(j); } var o63 = i63; diff --git a/test/built-ins/RegExp/S15.10.2.12_A1_T2.js b/test/built-ins/RegExp/S15.10.2.12_A1_T2.js index 51f6443ad0..144e903d42 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 3ca8bb9b21..7bb1112f9d 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 a0f1f8a3f2..bbf68f870f 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 b3c1399930..dd3b18ba5c 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 d89d603100..0d2a442db9 100644 --- a/test/built-ins/RegExp/S15.10.2.12_A2_T1.js +++ b/test/built-ins/RegExp/S15.10.2.12_A2_T1.js @@ -516,7 +516,9 @@ if (i62.replace(/\S+/g, "") !== o62) { var i63 = ""; for (var j = 0xFC00; j < 0x10000; j++) { - if (j === 0xFEFF) { continue; } //Ignore BOM + if (j === 0xFEFF) { + continue; + } //Ignore BOM i63 += String.fromCharCode(j); } var o63 = ""; diff --git a/test/built-ins/RegExp/S15.10.2.12_A2_T2.js b/test/built-ins/RegExp/S15.10.2.12_A2_T2.js index 4779d6aa30..7c30b022bb 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 d86881a265..23b859f610 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 be9a87442b..f235109770 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 ef1284ea08..864e99d485 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 2a868ee159..d5450cdb40 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 b11e5b46f4..e46e495ea7 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 3e7157c58a..aedc5aa2f7 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 e0b1289c2a..6f8eed6ed3 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 fea5d3b20c..003de301d7 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 7980c5a22d..e8a2b2abfd 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 305ba64c7c..12305f94d3 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 e1113ee2a5..c99a80f5fb 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 f8497c56c5..4ccf17afd3 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 bd91138b40..4a4f3f3975 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 fa41866076..7322d0c004 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 3cc2a104d4..4175862ddc 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 c0bfe30ee5..ba3b8babc6 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 d40bae9a95..f1a0f50f8c 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 ad99d46040..3696b11975 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 808957c864..3b88334a50 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 bbc3eea3c5..0b1119f3be 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 717f4e3a8e..309b66274f 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 118e97754f..ae2a047460 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 b072447884..ed751e1136 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 b425136a75..c4c792707c 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 8c56381a44..6bef4680bc 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 7f1b7a8f3f..b71a8e2d02 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 1b65af0b9c..a746ec0fe5 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 5db2c8a2fa..45b63c0ba3 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 1e146ed67f..cfe8a187ca 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 41fa114e9b..6f72faa34a 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 72b8f362ba..edb1e72172 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 2e9192931a..19adb92ae5 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 7ea19db232..7900c96675 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 b17d762c47..decc349eeb 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 b5fa6aa780..2e43ffef17 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 abe4f9e85c..b14bf9a833 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 a300eaf42f..1ffeede382 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 5a52eefb46..cd90cf5719 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 ba59484a03..88d00a8b85 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 b1f4c7f73a..4d362fd14a 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 ae78004355..9cc3d5788f 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 866a2190e1..be8039a237 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 4eb9e7140e..f2c87ad112 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 6880d52e00..6984efbb69 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 9ddad9ee7e..50803306b7 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 8bd881ecd4..35db425f65 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 7d0fb22e31..74334e4a02 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 0072be9411..b5bb8bb093 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 5a4e4c3916..404cbff869 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 db3165b873..40d2ce4558 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 2b47b233cf..0fe47bfb0c 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 8a25edacd1..62334ca9bf 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 a9ba20a5fe..e75d7e8d1a 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 212c5454b0..55f1e86f74 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 1990ea775d..dd1c9cb09a 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 1d24078421..6dc726ae3d 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 63ba144039..98a17d6a08 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 e6b87b4885..8969d132f6 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 1045301ea1..e772129dd9 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 9b91aeeadd..5899bb4d75 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 71e84fc346..d1e402dcdb 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 77f53e08c4..41e90cd889 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 6bce823857..f65e924e2d 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 760666986b..32516d36f3 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 d976e51943..96a3535006 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 6d0b452344..cc70764fad 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 62d81b0803..6cce5af79b 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 beebc23490..bb30b72711 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 bdd269b9b0..76fe522197 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 e7a2232f18..b9327953cc 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 196b513db0..708e7e4290 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 31406ee334..f85caaae86 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 02e5ec81ac..6e2db75b3c 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 3ea1242f7e..35bb9f9f07 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 43c91673a3..778be632b9 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 d074680e43..a83a227686 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 71bfab0906..49d44a8386 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 8ec1fa72f5..5d6c74ca5e 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 78ed635527..515e802990 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 5cb7e7a32b..3b366a5e26 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 a0d365bb89..1e597f91af 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 d2bf9c0d2a..bc99d14374 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 488bb63a08..2131259859 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 0ced85fe05..4d407f8e2c 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 2fb0c67eb3..9869d3456a 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 03ca482e5f..2eca251408 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 5a63327d9c..458c1d576c 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 86d8dc7784..2330fa26c1 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 d6a7f09147..38caf9afaf 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 6b65ab266e..f226a21acf 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 ce657c9b58..36e4be4cae 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 bbb173b11e..1f5c46884a 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 29393f0ad1..00df529876 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 9ea5be2b96..389006122f 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 7e660850b2..62d6321649 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 ece297f651..9e3241c2a8 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 bcbb8b0c9f..b4c9ef27e0 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 729ecc6180..79326b76c3 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 0a29065998..6c2505d6aa 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 86709f1fa0..ae0956e6f0 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 7243bfabb1..b464a8f071 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 b5e67b726a..e85f7744aa 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 f50659e42d..42b1f02417 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 c13919e911..b220f38822 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 51523e43c0..a2c34158da 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 0604074245..0432503ce1 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 a5ca2b115a..c62dd1441e 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 e67c8d9d16..397aa6383b 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 b1fc175fe5..e844416e71 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 a019c6d1bd..68f0b16e9b 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 77bdd6b53f..0d59db23ff 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 7150d522c0..eb88e50dcb 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 77880ddb2a..220eaee836 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 c071d80090..f9699320c3 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 c69aac7da3..b974c27c6f 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 b244925250..576902a410 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 e0e0bb42f7..6c17255d92 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 f2aab4aa20..32e2254813 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 4ae39e2c01..c0f80cfa19 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 f041a8e8f0..0b6223385a 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 5550511beb..82bae81eea 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 bd7fefa60b..f4e7e3a555 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 3157752788..49ed3934e7 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 e0e29ca201..c279e3739c 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 e4d91c3ea4..c19873c2a3 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 93fb400bcb..545beb17dc 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 fb1255f5da..19c0afa37f 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 672a36920b..35a6dac2c1 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 7eee46bf7e..507ef10a5e 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 3f9a62100b..5f7986a08f 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 22d8ee9f9e..e7c91a3755 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 8522ca9ce2..6e8f3f3b37 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 a04d59e2f1..1eca044933 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 3372ab1137..e8fc33383e 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 376ac498af..daea40fcdf 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 f7df232573..58e6c17e20 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 d3311f334d..922a44d041 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 f6f4801133..593fbf016a 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 4f042b9004..ee6373848c 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 0bf29b8cd9..66944df9a5 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 09a5ec3a9a..2b11180077 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 51029b7895..aa7a5745d2 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 1c6705d59c..0dc01ed29a 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 26125791d5..add5f297e3 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 d56cf6e2a1..b8f86f3c57 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 32e8dfcb3b..d88e9dc880 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 a01a6cfe44..11339ed561 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 81ea28c7a9..a8c29e8c48 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 95c95bb792..59291226cb 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 fa7c83537f..b3e5c57f8a 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 1c0db1e9cc..f973e84f6e 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 bab82b143e..0384fd2751 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 2a9de52adc..7364f69a3d 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 f046fb1fc5..1aa0743b6a 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 3dfcfb2d97..17f64fade2 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 5242db8633..e3185632b1 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 317fd309e3..07a1e3386c 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 d5cb2be7ba..7b873ac714 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 9ef9234533..00f46a858b 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 b430c88593..1bfb6cf45b 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 9201d4c6b1..f19b67befb 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 e9af6cb757..d98ebd9fc5 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 af586602f0..e8907a4e00 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 090adf085a..a421d09e94 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 f251c5899a..0139648dfb 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 e29e4c24ca..01fe1f97a4 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 586726b2ea..115df9dfa1 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 f078746d2a..3e4c7feeb9 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 6456117994..6a333777c1 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 2bf469f6ef..cf5c85bc3b 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 b70b42af0c..17108a29b5 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 6dca42d241..9bcbb9d241 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 c471fc2d2f..2c9096b78d 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 d076e2ef59..5a486c0f9c 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 9db765459a..c9be7d87c1 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 af32a18d46..9c7f4dc889 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 70971cea66..1b4ae926ca 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 639bd44181..abf3b3b76c 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 148747555c..6f8ec08b55 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 65a1882128..e3355626f9 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 0ff489005a..2bd5c0c7e7 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 26e67e6ed7..70a90aaeeb 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 c23c145b84..58d7dd0a6f 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 acd87fdf8d..6f16f0ec6e 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 a3e19636c0..946f80632e 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 521ccb5744..fa3df83055 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 0cdbb3ed5c..17817c2a60 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 405d3a236c..9fc2f139fe 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 22e0ddcd3d..ebf44966e7 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 a076f126c5..46ebecde20 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 0dc0ffed85..202a6dd9d4 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 884dcd9b6c..3719303891 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 17379e2906..b6027f2b72 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 4c813338d0..d46e2f427f 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 9b9f8cd00e..3688356ca1 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 7f49b3fe75..b8ca452153 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 a74d0d2e43..d828cdf8e5 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 bd78fde080..6c838e5282 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 41a46fa766..41e6f88537 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 1c6d375596..09f8369580 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 0c13f607e9..613f1fd6b2 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 73cdaa3d65..1312a5dd4a 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 0ae792c8be..55ba72e101 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 1914219cc4..00f3ea1d80 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 21ff449c56..cbcf26dd62 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 4a60943822..aaf6db6739 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 8c57773935..a4d6d73b82 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 4cb889534a..bb34799b4f 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 419d7e4e12..0e6e139dc4 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 ae949468d0..b247a8fc49 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 3cf99843be..0c2143492b 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 84bdd79bd0..821027ec26 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 3cf22e3efe..503ba1c1c8 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 efebcaac4f..d00bc69206 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 008fe13a96..67cf77547a 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 c4209a18f3..bc20cc946f 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 774bd23cf8..7a8378827d 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 2d77da10f4..9acb162761 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 e5268e2962..0d35630363 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 a8d8313a8a..206bb8a256 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 2040ef9c68..f1a8401ed8 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 ccbc98197b..f5c432035d 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 197d3de34f..6745b60349 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 4ee93307e0..5c4e855b59 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 4d598bc683..2aacc7deb9 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 3088fd08cf..053dc73783 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 f4647025b3..4a29869d4c 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 99385202e7..ff6eb10990 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 4d58e957ad..f1b5d5983d 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 2e4389980f..316ec4965f 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 46511a6a55..e572f8370c 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 d165c04ff9..95ed08438b 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 7f6a2c61d9..0a6f898b48 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 222e740fd0..b3bcc8a7fb 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 b51f7948af..d7212ee1d9 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 c636d32d61..b2dbc0fefd 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 79067208ee..02e4e39c7d 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 2a2b46edcd..b296c2a524 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 5288ce7e4d..3acb5a4d4e 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 1caea9d733..be49cb2195 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 a23895599d..a6612cfd33 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 d84b98fe35..9569ff4918 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 345cc11121..1c44aaf4df 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 972ed33fa2..4131d002fe 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 60e86bbc26..e0f528a9ba 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 67079d3cdc..ff69d930c3 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 16e866376f..9228e64b3f 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 4da3e6fe53..93c9090f20 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 d65ecc0e7d..ebd0e89511 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 cd750fb9d1..6f148d50f6 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 a47a45c977..8e6b2e7b4c 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 27752d9bb9..f64a69edab 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 7e974f5f0a..9789375339 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 f3c400e2b6..6b01cade8b 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 82f567dddb..a8108f0ca9 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 4a122d15c7..a27e53b1a2 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 777aa82f82..1eb78a1516 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 28d9b53841..e1cfc1f211 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 8e028ec862..e2bbc60f49 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 f041a02b6a..2d7ef90666 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 3cce8f11f2..bf4d94b663 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 b4614efea3..b0821bf509 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 304d4e3d8b..0e2704b778 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 b59a54d646..cefeb9f33c 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 24599175b8..0f19d72edd 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 979691b2a9..596dbff14d 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 42fb18903b..8197542d72 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 6c30ce8c04..4b59585f30 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 2edd5268b7..4d1f6b64f5 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 706298b3ce..0b2c48bc19 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 77f1a0b4cc..fedcd77506 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 2d43f56b8e..f4b2359afe 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 9f934ce591..90b4b631f0 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 105daa3b60..0ab6b7aecf 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 6d69d1db3f..67953918fc 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 c311af54a2..cb1401cc82 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 45b1bcd812..61f0fe9113 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 b76942c432..5589b330b0 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 a26ce200ab..fe82987ad8 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 5afd7b265c..1306d39a81 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 2671822ad6..f6f5711bfd 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 b718e3f32d..02c0cc609a 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 0ef2125624..c0b0fa0209 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 6c3bfb0ac1..0358e6ff4a 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 b97e62d573..1dd2a19adc 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 9ebce76ca2..a3f9d4a5e0 100644 --- a/test/built-ins/RegExp/S15.10.2_A1_T1.js +++ b/test/built-ins/RegExp/S15.10.2_A1_T1.js @@ -46,41 +46,42 @@ var XML_SPE = TextSE + "|" + MarkupSPE; //// ///// -var __patterns = [TextSE,UntilHyphen,Until2Hyphens,CommentCE,UntilRSBs,CDATA_CE,S,NameStrt, NameChar, -Name, QuoteSE, DT_IdentSE, MarkupDeclCE, S1,UntilQMs, PI_Tail, DT_ItemSE, DocTypeCE, DeclCE, -PI_CE, EndTagCE, AttValSE, ElemTagCE, MarkupSPE, XML_SPE]; +var __patterns = [TextSE, UntilHyphen, Until2Hyphens, CommentCE, UntilRSBs, CDATA_CE, S, NameStrt, NameChar, + Name, QuoteSE, DT_IdentSE, MarkupDeclCE, S1, UntilQMs, PI_Tail, DT_ItemSE, DocTypeCE, DeclCE, + PI_CE, EndTagCE, AttValSE, ElemTagCE, MarkupSPE, XML_SPE +]; -var __html=""+ -'<html xmlns="http://www.w3.org/1999/xhtml"\n' + -' xmlns:xlink="http://www.w3.org/XML/XLink/0.9">\n' + -' <head><title>Three Namespaces</title></head>\n' + -' <body>\n' + -' <h1 align="center">An Ellipse and a Rectangle</h1>\n' + -' <svg xmlns="http://www.w3.org/Graphics/SVG/SVG-19991203.dtd"\n' + -' width="12cm" height="10cm">\n' + -' <ellipse rx="110" ry="130" />\n' + -' <rect x="4cm" y="1cm" width="3cm" height="6cm" />\n' + -' </svg>\n' + -' <p xlink:type="simple" xlink:href="ellipses.html">\n' + -' More about ellipses\n' + -' </p>\n' + -' <p xlink:type="simple" xlink:href="rectangles.html">\n' + -' More about rectangles\n' + -' </p>\n' + -' <hr/>\n' + -' <p>Last Modified February 13, 2000</p>\n' + -' </body>\n' + -'</html>'; +var __html = "" + + '<html xmlns="http://www.w3.org/1999/xhtml"\n' + + ' xmlns:xlink="http://www.w3.org/XML/XLink/0.9">\n' + + ' <head><title>Three Namespaces</title></head>\n' + + ' <body>\n' + + ' <h1 align="center">An Ellipse and a Rectangle</h1>\n' + + ' <svg xmlns="http://www.w3.org/Graphics/SVG/SVG-19991203.dtd"\n' + + ' width="12cm" height="10cm">\n' + + ' <ellipse rx="110" ry="130" />\n' + + ' <rect x="4cm" y="1cm" width="3cm" height="6cm" />\n' + + ' </svg>\n' + + ' <p xlink:type="simple" xlink:href="ellipses.html">\n' + + ' More about ellipses\n' + + ' </p>\n' + + ' <p xlink:type="simple" xlink:href="rectangles.html">\n' + + ' More about rectangles\n' + + ' </p>\n' + + ' <hr/>\n' + + ' <p>Last Modified February 13, 2000</p>\n' + + ' </body>\n' + + '</html>'; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 try { - for(var index=0; index<__patterns.length; index++) { - var __re = new RegExp(__patterns[index]); - __re.test(__html); - } + for (var index = 0; index < __patterns.length; index++) { + var __re = new RegExp(__patterns[index]); + __re.test(__html); + } } catch (e) { - $ERROR('#'+index+": XML Shallow Parsing with Regular Expression: "+__patterns[index]); + $ERROR('#' + index + ": XML Shallow Parsing with Regular Expression: " + __patterns[index]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/RegExp/S15.10.3.1_A1_T1.js b/test/built-ins/RegExp/S15.10.3.1_A1_T1.js index 80e2483177..653bb0a610 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 a40609dcb7..2be1111639 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 42fe6507e5..a73fdc6e5d 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 9416e9ee79..72453d3e5d 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 9e826ff86d..59658029c4 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 61e7e6874e..b4af65a7d5 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 51f01d47a7..df67961a76 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 086b41c710..2eb733cd30 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 a65663218b..2737fa7ad4 100644 --- a/test/built-ins/RegExp/S15.10.3.1_A3_T2.js +++ b/test/built-ins/RegExp/S15.10.3.1_A3_T2.js @@ -11,14 +11,18 @@ description: > RegExp(R,"gm") ---*/ -var __instance = RegExp({toString:function(){return "[a-c]*";}}, "gm"); +var __instance = RegExp({ + toString: function() { + return "[a-c]*"; + } +}, "gm"); //CHECK#1 if (__instance.constructor !== RegExp) { - $ERROR('#1: __instance = RegExp({toString:function(){return "[a-c]*";}}, "gm"); __instance.constructor === RegExp. Actual: ' + (__instance.constructor)); + $ERROR('#1: __instance = RegExp({toString:function(){return "[a-c]*";}}, "gm"); __instance.constructor === RegExp. Actual: ' + (__instance.constructor)); } //CHECK#2 if (__instance.source !== "[a-c]*") { - $ERROR('#2: __instance = RegExp({toString:function(){return "[a-c]*";}}, "gm"); __instance.source === "[a-c]*". Actual: '+ (__instance.source)); + $ERROR('#2: __instance = RegExp({toString:function(){return "[a-c]*";}}, "gm"); __instance.source === "[a-c]*". Actual: ' + (__instance.source)); } diff --git a/test/built-ins/RegExp/S15.10.4.1_A1_T1.js b/test/built-ins/RegExp/S15.10.4.1_A1_T1.js index d038262d15..5e6e04c040 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 bbcfff4d93..ef0fce22e4 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 21f5235241..40eacdfa5b 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 9585f8479e..f03b428709 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 e318c03fb7..79f7c6cd6b 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 1fb6251a8b..c632d95374 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 f9db74f336..c3fee8b28b 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 ab2f6ebf4f..be9b3e42b2 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 7fbffaa1ad..ca987b8ad7 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 8aebbec678..70882c2cbe 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 6113d779e0..2d005f34cd 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 4949563edb..5cb04e03ac 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 6cf250705b..756e3b78d2 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 6830240524..159e008413 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 a88675aae9..f15d5131ed 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 432b4eddd8..69e5cbb15a 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A5_T9.js +++ b/test/built-ins/RegExp/S15.10.4.1_A5_T9.js @@ -13,9 +13,11 @@ description: > //CHECK#1 try { - $ERROR('#1.1: new RegExp("$sup",{toString:function(){}}) throw SyntaxError. Actual: ' + (new RegExp("$sup",{toString:function(){}}))); + $ERROR('#1.1: new RegExp("$sup",{toString:function(){}}) throw SyntaxError. Actual: ' + (new RegExp("$sup", { + toString: function() {} + }))); } catch (e) { - if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: new RegExp("$sup",{toString:function(){}}) throw SyntaxError. Actual: ' + (e)); - } + if ((e instanceof SyntaxError) !== true) { + $ERROR('#1.2: new RegExp("$sup",{toString:function(){}}) throw SyntaxError. Actual: ' + (e)); + } } diff --git a/test/built-ins/RegExp/S15.10.4.1_A6_T1.js b/test/built-ins/RegExp/S15.10.4.1_A6_T1.js index 0ab30d722a..add5ef6b9a 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 e4d0d102e4..f9f2b87cf2 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 f3edd64f67..18fb090724 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 c1a063c854..e5c086b6bc 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 23dbb0d1aa..189c20bbd2 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 1e38cc3184..3aa637f809 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 988bd7c402..a8d1c9f415 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A8_T12.js +++ b/test/built-ins/RegExp/S15.10.4.1_A8_T12.js @@ -11,9 +11,14 @@ description: > //CHECK#1 try { - $ERROR('#1.1: new RegExp("\\u0042", {toString:void 0, valueOf:function(){throw "invalof";}}) throw "invalof". Actual: ' + (new RegExp("\u0042", {toString:void 0, valueOf:function(){throw "invalof";}}))); + $ERROR('#1.1: new RegExp("\\u0042", {toString:void 0, valueOf:function(){throw "invalof";}}) throw "invalof". Actual: ' + (new RegExp("\u0042", { + toString: void 0, + valueOf: function() { + throw "invalof"; + } + }))); } catch (e) { - if (e !== "invalof" ) { - $ERROR('#1.2: new RegExp("\\u0042", {toString:void 0, valueOf:function(){throw "invalof";}}) throw "invalof". Actual: ' + (e)); - } + if (e !== "invalof") { + $ERROR('#1.2: new RegExp("\\u0042", {toString:void 0, valueOf:function(){throw "invalof";}}) throw "invalof". Actual: ' + (e)); + } } diff --git a/test/built-ins/RegExp/S15.10.4.1_A8_T13.js b/test/built-ins/RegExp/S15.10.4.1_A8_T13.js index e69d236f2a..11ba74a1c2 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A8_T13.js +++ b/test/built-ins/RegExp/S15.10.4.1_A8_T13.js @@ -11,9 +11,13 @@ description: > //CHECK#1 try { - $ERROR('#1.1: new RegExp("1", {toString:function(){throw "intostr";}}) throw "intostr". Actual: ' + (new RegExp("1", {toString:function(){throw "intostr";}}))); + $ERROR('#1.1: new RegExp("1", {toString:function(){throw "intostr";}}) throw "intostr". Actual: ' + (new RegExp("1", { + toString: function() { + throw "intostr"; + } + }))); } catch (e) { - if (e !== "intostr" ) { - $ERROR('#1.2: new RegExp("1", {toString:function(){throw "intostr";}}) throw "intostr". Actual: ' + (e)); - } + if (e !== "intostr") { + $ERROR('#1.2: new RegExp("1", {toString:function(){throw "intostr";}}) throw "intostr". Actual: ' + (e)); + } } diff --git a/test/built-ins/RegExp/S15.10.4.1_A8_T2.js b/test/built-ins/RegExp/S15.10.4.1_A8_T2.js index ed7b3b7ce4..f17f8819b3 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A8_T2.js +++ b/test/built-ins/RegExp/S15.10.4.1_A8_T2.js @@ -7,29 +7,31 @@ es5id: 15.10.4.1_A8_T2 description: Pattern is function(){return "a|b|[]";}() and flags is "ig" ---*/ -var __re = new RegExp(function(){return "a|b|[]";}(),"ig"); +var __re = new RegExp(function() { + return "a|b|[]"; +}(), "ig"); //CHECK#1 if (__re.ignoreCase !== true) { - $ERROR('#1: __re = new RegExp(function(){return "a|b|[]"; __re.ignoreCase === true. Actual: ' + (__re.ignoreCase)); + $ERROR('#1: __re = new RegExp(function(){return "a|b|[]"; __re.ignoreCase === true. Actual: ' + (__re.ignoreCase)); } //CHECK#2 if (__re.multiline !== false) { - $ERROR('#2: __re = new RegExp(function(){return "a|b|[]"; __re.multiline === false. Actual: ' + (__re.multiline)); + $ERROR('#2: __re = new RegExp(function(){return "a|b|[]"; __re.multiline === false. Actual: ' + (__re.multiline)); } //CHECK#3 if (__re.global !== true) { - $ERROR('#3: __re = new RegExp(function(){return "a|b|[]"; __re.global === true. Actual: ' + (__re.global)); + $ERROR('#3: __re = new RegExp(function(){return "a|b|[]"; __re.global === true. Actual: ' + (__re.global)); } //CHECK#4 if (__re.lastIndex !== 0) { - $ERROR('#4: __re = new RegExp(function(){return "a|b|[]"; __re.lastIndex === 0. Actual: ' + (__re.lastIndex)); + $ERROR('#4: __re = new RegExp(function(){return "a|b|[]"; __re.lastIndex === 0. Actual: ' + (__re.lastIndex)); } //CHECK#5 if (typeof __re.source === "undefined") { - $ERROR('#5: __re = new RegExp(function(){return "a|b|[]"; typeof __re.source !== "undefined"'); + $ERROR('#5: __re = new RegExp(function(){return "a|b|[]"; typeof __re.source !== "undefined"'); } diff --git a/test/built-ins/RegExp/S15.10.4.1_A8_T3.js b/test/built-ins/RegExp/S15.10.4.1_A8_T3.js index 17855d660d..8fd699f48c 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A8_T3.js +++ b/test/built-ins/RegExp/S15.10.4.1_A8_T3.js @@ -9,29 +9,35 @@ description: > (function(){return "m";})() ---*/ -var __re = new RegExp({toString:function(){return "[0-9]";}}, (function(){return "m";})()); +var __re = new RegExp({ + toString: function() { + return "[0-9]"; + } +}, (function() { + return "m"; +})()); //CHECK#1 if (__re.ignoreCase !== false) { - $ERROR('#1: __re = new RegExp({toString:function(){return "[0-9]"; __re.ignoreCase === false. Actual: ' + (__re.ignoreCase)); + $ERROR('#1: __re = new RegExp({toString:function(){return "[0-9]"; __re.ignoreCase === false. Actual: ' + (__re.ignoreCase)); } //CHECK#2 if (__re.multiline !== true) { - $ERROR('#2: __re = new RegExp({toString:function(){return "[0-9]"; __re.multiline === true. Actual: ' + (__re.multiline)); + $ERROR('#2: __re = new RegExp({toString:function(){return "[0-9]"; __re.multiline === true. Actual: ' + (__re.multiline)); } //CHECK#3 if (__re.global !== false) { - $ERROR('#3: __re = new RegExp({toString:function(){return "[0-9]"; __re.global === false. Actual: ' + (__re.global)); + $ERROR('#3: __re = new RegExp({toString:function(){return "[0-9]"; __re.global === false. Actual: ' + (__re.global)); } //CHECK#4 if (__re.lastIndex !== 0) { - $ERROR('#4: __re = new RegExp({toString:function(){return "[0-9]"; __re.lastIndex === 0. Actual: ' + (__re.lastIndex)); + $ERROR('#4: __re = new RegExp({toString:function(){return "[0-9]"; __re.lastIndex === 0. Actual: ' + (__re.lastIndex)); } //CHECK#5 if (typeof __re.source === "undefined") { - $ERROR('#5: __re = new RegExp({toString:function(){return "[0-9]"; typeof __re.source !== "undefined"'); + $ERROR('#5: __re = new RegExp({toString:function(){return "[0-9]"; typeof __re.source !== "undefined"'); } diff --git a/test/built-ins/RegExp/S15.10.4.1_A8_T4.js b/test/built-ins/RegExp/S15.10.4.1_A8_T4.js index e2aeb31680..463482d2bb 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A8_T4.js +++ b/test/built-ins/RegExp/S15.10.4.1_A8_T4.js @@ -9,29 +9,39 @@ description: > and flags is {toString:void 0,valueOf:function(){return "mig";}} ---*/ -var __re = new RegExp({toString:void 0,valueOf:function(){return "[z-z]";}}, {toString:void 0,valueOf:function(){return "mig";}}); +var __re = new RegExp({ + toString: void 0, + valueOf: function() { + return "[z-z]"; + } +}, { + toString: void 0, + valueOf: function() { + return "mig"; + } +}); //CHECK#1 if (__re.ignoreCase !== true) { - $ERROR('#1: __re = new RegExp({toString:void 0,valueOf:function(){return "[z-z]"; __re.ignoreCase === true. Actual: ' + (__re.ignoreCase)); + $ERROR('#1: __re = new RegExp({toString:void 0,valueOf:function(){return "[z-z]"; __re.ignoreCase === true. Actual: ' + (__re.ignoreCase)); } //CHECK#2 if (__re.multiline !== true) { - $ERROR('#2: __re = new RegExp({toString:void 0,valueOf:function(){return "[z-z]"; __re.multiline === true. Actual: ' + (__re.multiline)); + $ERROR('#2: __re = new RegExp({toString:void 0,valueOf:function(){return "[z-z]"; __re.multiline === true. Actual: ' + (__re.multiline)); } //CHECK#3 if (__re.global !== true) { - $ERROR('#3: __re = new RegExp({toString:void 0,valueOf:function(){return "[z-z]"; __re.global === true. Actual: ' + (__re.global)); + $ERROR('#3: __re = new RegExp({toString:void 0,valueOf:function(){return "[z-z]"; __re.global === true. Actual: ' + (__re.global)); } //CHECK#4 if (__re.lastIndex !== 0) { - $ERROR('#4: __re = new RegExp({toString:void 0,valueOf:function(){return "[z-z]"; __re.lastIndex === 0. Actual: ' + (__re.lastIndex)); + $ERROR('#4: __re = new RegExp({toString:void 0,valueOf:function(){return "[z-z]"; __re.lastIndex === 0. Actual: ' + (__re.lastIndex)); } //CHECK#5 if (typeof __re.source === "undefined") { - $ERROR('#5: __re = new RegExp({toString:void 0,valueOf:function(){return "[z-z]"; typeof __re.source !== "undefined"'); + $ERROR('#5: __re = new RegExp({toString:void 0,valueOf:function(){return "[z-z]"; typeof __re.source !== "undefined"'); } diff --git a/test/built-ins/RegExp/S15.10.4.1_A8_T5.js b/test/built-ins/RegExp/S15.10.4.1_A8_T5.js index c451a0df78..7c2b13d60a 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A8_T5.js +++ b/test/built-ins/RegExp/S15.10.4.1_A8_T5.js @@ -9,29 +9,33 @@ description: > {toString:function(){return "";}} ---*/ -var __re = new RegExp(new Object("abc{1}"), {toString:function(){return "";}}); +var __re = new RegExp(new Object("abc{1}"), { + toString: function() { + return ""; + } +}); //CHECK#1 if (__re.ignoreCase !== false) { - $ERROR('#1: __re = new RegExp(new Object("abc{1}"), {toString:function(){return ""; __re.ignoreCase === false. Actual: ' + (__re.ignoreCase)); + $ERROR('#1: __re = new RegExp(new Object("abc{1}"), {toString:function(){return ""; __re.ignoreCase === false. Actual: ' + (__re.ignoreCase)); } //CHECK#2 if (__re.multiline !== false) { - $ERROR('#2: __re = new RegExp(new Object("abc{1}"), {toString:function(){return ""; __re.multiline === false. Actual: ' + (__re.multiline)); + $ERROR('#2: __re = new RegExp(new Object("abc{1}"), {toString:function(){return ""; __re.multiline === false. Actual: ' + (__re.multiline)); } //CHECK#3 if (__re.global !== false) { - $ERROR('#3: __re = new RegExp(new Object("abc{1}"), {toString:function(){return ""; __re.global === false. Actual: ' + (__re.global)); + $ERROR('#3: __re = new RegExp(new Object("abc{1}"), {toString:function(){return ""; __re.global === false. Actual: ' + (__re.global)); } //CHECK#4 if (__re.lastIndex !== 0) { - $ERROR('#4: __re = new RegExp(new Object("abc{1}"), {toString:function(){return ""; __re.lastIndex === 0. Actual: ' + (__re.lastIndex)); + $ERROR('#4: __re = new RegExp(new Object("abc{1}"), {toString:function(){return ""; __re.lastIndex === 0. Actual: ' + (__re.lastIndex)); } //CHECK#5 if (typeof __re.source === "undefined") { - $ERROR('#5: __re = new RegExp(new Object("abc{1}"), {toString:function(){return ""; typeof __re.source !== "undefined"'); + $ERROR('#5: __re = new RegExp(new Object("abc{1}"), {toString:function(){return ""; typeof __re.source !== "undefined"'); } diff --git a/test/built-ins/RegExp/S15.10.4.1_A8_T6.js b/test/built-ins/RegExp/S15.10.4.1_A8_T6.js index 63d049009c..8ef204406b 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A8_T6.js +++ b/test/built-ins/RegExp/S15.10.4.1_A8_T6.js @@ -11,9 +11,13 @@ description: > //CHECK#1 try { - $ERROR('#1.1: new RegExp({toString:function(){throw "intostr";}}, "i") throw "intostr". Actual: ' + (new RegExp({toString:function(){throw "intostr";}}, "i"))); + $ERROR('#1.1: new RegExp({toString:function(){throw "intostr";}}, "i") throw "intostr". Actual: ' + (new RegExp({ + toString: function() { + throw "intostr"; + } + }, "i"))); } catch (e) { - if (e !== "intostr" ) { - $ERROR('#1.2: new RegExp({toString:function(){throw "intostr";}}, "i") throw "intostr". Actual: ' + (e)); - } + if (e !== "intostr") { + $ERROR('#1.2: new RegExp({toString:function(){throw "intostr";}}, "i") throw "intostr". Actual: ' + (e)); + } } diff --git a/test/built-ins/RegExp/S15.10.4.1_A8_T7.js b/test/built-ins/RegExp/S15.10.4.1_A8_T7.js index a28ed37aeb..ff5d388662 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A8_T7.js +++ b/test/built-ins/RegExp/S15.10.4.1_A8_T7.js @@ -11,9 +11,14 @@ description: > //CHECK#1 try { - $ERROR('#1.1: new RegExp({toString:void 0, valueOf:function(){throw "invalof";}}) throw "invalof". Actual: ' + (new RegExp({toString:void 0, valueOf:function(){throw "invalof";}}))); + $ERROR('#1.1: new RegExp({toString:void 0, valueOf:function(){throw "invalof";}}) throw "invalof". Actual: ' + (new RegExp({ + toString: void 0, + valueOf: function() { + throw "invalof"; + } + }))); } catch (e) { - if (e !== "invalof" ) { - $ERROR('#1.2: new RegExp({toString:void 0, valueOf:function(){throw "invalof";}}) throw "invalof". Actual: ' + (e)); - } + if (e !== "invalof") { + $ERROR('#1.2: new RegExp({toString:void 0, valueOf:function(){throw "invalof";}}) throw "invalof". Actual: ' + (e)); + } } diff --git a/test/built-ins/RegExp/S15.10.4.1_A8_T8.js b/test/built-ins/RegExp/S15.10.4.1_A8_T8.js index 7e9cea428e..32987b2954 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A8_T8.js +++ b/test/built-ins/RegExp/S15.10.4.1_A8_T8.js @@ -11,9 +11,13 @@ description: > //CHECK#1 try { - $ERROR('#1.1: new RegExp({toString:function(){throw "intostr";}}, "error") throw "intostr". Actual: ' + (new RegExp({toString:function(){throw "intostr";}}, "error"))); + $ERROR('#1.1: new RegExp({toString:function(){throw "intostr";}}, "error") throw "intostr". Actual: ' + (new RegExp({ + toString: function() { + throw "intostr"; + } + }, "error"))); } catch (e) { - if (e !== "intostr" ) { - $ERROR('#1.2: new RegExp({toString:function(){throw "intostr";}}, "error") throw "intostr". Actual: ' + (e)); - } + if (e !== "intostr") { + $ERROR('#1.2: new RegExp({toString:function(){throw "intostr";}}, "error") throw "intostr". Actual: ' + (e)); + } } diff --git a/test/built-ins/RegExp/S15.10.4.1_A8_T9.js b/test/built-ins/RegExp/S15.10.4.1_A8_T9.js index 48746e19a3..c0061c11f4 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 84f56e4cef..063b5d3f70 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 49ea6f3315..6ae0d4b3f5 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 0e245efe91..689422dab5 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 d048f8985a..c2e3cd0a06 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 d32dfeb601..a0f41bf647 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 6dc911159b..4978ec3a99 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 32a29be58e..19fa62eec0 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 96dfbeb1d6..411f9e7210 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 8d403ad855..67dc970faf 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 b93fa54cde..bc65ba08a9 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 956d9e6fdf..27a105a532 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 1c2a4e3e90..6972182a8f 100644 --- a/test/built-ins/RegExp/from-regexp-like-get-source-err.js +++ b/test/built-ins/RegExp/from-regexp-like-get-source-err.js @@ -15,6 +15,7 @@ features: [Symbol, Symbol.match] ---*/ var obj = {}; + function CustomError() {} Object.defineProperty(obj, 'source', { get: function() { diff --git a/test/built-ins/RegExp/lookBehind/back-references.js b/test/built-ins/RegExp/lookBehind/back-references.js index 062bff0339..ae21864645 100644 --- a/test/built-ins/RegExp/lookBehind/back-references.js +++ b/test/built-ins/RegExp/lookBehind/back-references.js @@ -40,4 +40,3 @@ assert.sameValue("aabb".match(/(..)(?<=\1\1\1)/), null, "#15"); assert.sameValue("abab".match(/(..)(?<=\1\1\1)/), null, "#16"); assert.sameValue("fabxbab".match(/(..)(?<=\1\1\1)/), null, "#17"); assert.sameValue("faxabab".match(/(..)(?<=\1\1\1)/), null, "#18"); - diff --git a/test/built-ins/RegExp/named-groups/functional-replace-global.js b/test/built-ins/RegExp/named-groups/functional-replace-global.js index 819045ec13..83d32592c2 100644 --- a/test/built-ins/RegExp/named-groups/functional-replace-global.js +++ b/test/built-ins/RegExp/named-groups/functional-replace-global.js @@ -22,35 +22,34 @@ for (let flags of ["g", "gu"]) { let i = 0; let re = new RegExp(source, flags); let result = "abcd".replace(re, - (match, fst, snd, offset, str, groups) => { - if (i == 0) { - assert.sameValue("ab", match); - assert.sameValue("a", groups.fst); - assert.sameValue("b", groups.snd); - assert.sameValue("a", fst); - assert.sameValue("b", snd); - assert.sameValue(0, offset); - assert.sameValue("abcd", str); - } else if (i == 1) { - assert.sameValue("cd", match); - assert.sameValue("c", groups.fst); - assert.sameValue("d", groups.snd); - assert.sameValue("c", fst); - assert.sameValue("d", snd); - assert.sameValue(2, offset); - assert.sameValue("abcd", str); - } else { - assertUnreachable(); - } - i++; - return `${groups.snd}${groups.fst}`; - }); + (match, fst, snd, offset, str, groups) => { + if (i == 0) { + assert.sameValue("ab", match); + assert.sameValue("a", groups.fst); + assert.sameValue("b", groups.snd); + assert.sameValue("a", fst); + assert.sameValue("b", snd); + assert.sameValue(0, offset); + assert.sameValue("abcd", str); + } else if (i == 1) { + assert.sameValue("cd", match); + assert.sameValue("c", groups.fst); + assert.sameValue("d", groups.snd); + assert.sameValue("c", fst); + assert.sameValue("d", snd); + assert.sameValue(2, offset); + assert.sameValue("abcd", str); + } else { + assertUnreachable(); + } + i++; + return `${groups.snd}${groups.fst}`; + }); assert.sameValue("badc", result); assert.sameValue(i, 2); let re2 = new RegExp(alternateSource, flags); assert.sameValue("undefinedundefinedundefinedundefined", - "abcd".replace(re2, - (match, fst, snd, offset, str, groups) => groups.snd)); + "abcd".replace(re2, + (match, fst, snd, offset, str, groups) => groups.snd)); } - diff --git a/test/built-ins/RegExp/named-groups/functional-replace-non-global.js b/test/built-ins/RegExp/named-groups/functional-replace-non-global.js index 0572a0545f..54d2a0b7e3 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 4542868a8c..1bbc2a9e5b 100644 --- a/test/built-ins/RegExp/named-groups/groups-object-subclass-sans.js +++ b/test/built-ins/RegExp/named-groups/groups-object-subclass-sans.js @@ -29,7 +29,9 @@ const result = re.exec("ab"); assert.sameValue(Object.getPrototypeOf(result), Array.prototype); assert.sameValue(false, result.hasOwnProperty("groups")); -Array.prototype.groups = { a: "b" }; +Array.prototype.groups = { + a: "b" +}; Object.getPrototypeOf(Array.prototype.groups).b = "c"; assert.sameValue("b", "ab".replace(re, "$<a>")); assert.sameValue("c", "ab".replace(re, "$<b>")); diff --git a/test/built-ins/RegExp/named-groups/groups-object-subclass.js b/test/built-ins/RegExp/named-groups/groups-object-subclass.js index ab3da38e9f..88cb12cb28 100644 --- a/test/built-ins/RegExp/named-groups/groups-object-subclass.js +++ b/test/built-ins/RegExp/named-groups/groups-object-subclass.js @@ -19,7 +19,9 @@ class FakeRegExp extends RegExp { exec(subject) { const fakeResult = ["ab", "a"]; fakeResult.index = 0; - fakeResult.groups = { a: "b" }; + fakeResult.groups = { + a: "b" + }; Object.getPrototypeOf(fakeResult.groups).b = "c"; return fakeResult; } diff --git a/test/built-ins/RegExp/named-groups/groups-object-undefined.js b/test/built-ins/RegExp/named-groups/groups-object-undefined.js index fea8fd0bfa..bf832a2175 100644 --- a/test/built-ins/RegExp/named-groups/groups-object-undefined.js +++ b/test/built-ins/RegExp/named-groups/groups-object-undefined.js @@ -28,6 +28,8 @@ verifyProperty(result, "groups", { configurable: true, }); -Array.prototype.groups = { a: "b" }; +Array.prototype.groups = { + a: "b" +}; assert.sameValue("$<a>", "a".replace(re, "$<a>")); Array.prototype.groups = undefined; diff --git a/test/built-ins/RegExp/named-groups/groups-object-unmatched.js b/test/built-ins/RegExp/named-groups/groups-object-unmatched.js index fb0bdca8ff..8b9df648c3 100644 --- a/test/built-ins/RegExp/named-groups/groups-object-unmatched.js +++ b/test/built-ins/RegExp/named-groups/groups-object-unmatched.js @@ -28,7 +28,11 @@ assert.sameValue(undefined, result.groups.x); // `a` is a matched named capture, `b` is an unmatched named capture, and `z` // is not a named capture. -Array.prototype.groups = { a: "b", x: "y", z: "z" }; +Array.prototype.groups = { + a: "b", + x: "y", + z: "z" +}; assert.sameValue("a", "ab".replace(re, "$<a>")); assert.sameValue("", "ab".replace(re, "$<x>")); assert.sameValue("", "ab".replace(re, "$<z>")); diff --git a/test/built-ins/RegExp/named-groups/groups-object.js b/test/built-ins/RegExp/named-groups/groups-object.js index 32a85bf759..8b3f7da384 100644 --- a/test/built-ins/RegExp/named-groups/groups-object.js +++ b/test/built-ins/RegExp/named-groups/groups-object.js @@ -18,7 +18,9 @@ info: | // `groups` is created with Define, not Set. let counter = 0; Object.defineProperty(Array.prototype, "groups", { - set() { counter++; } + set() { + counter++; + } }); let match = /(?<x>.)/.exec("a"); @@ -34,6 +36,8 @@ verifyProperty(match, "groups", { // The `__proto__` property on the groups object is not special, // and does not affect the [[Prototype]] of the resulting groups object. -let {groups} = /(?<__proto__>.)/.exec("a"); +let { + groups +} = /(?<__proto__>.)/.exec("a"); assert.sameValue("a", groups.__proto__); assert.sameValue(null, Object.getPrototypeOf(groups)); diff --git a/test/built-ins/RegExp/named-groups/groups-properties.js b/test/built-ins/RegExp/named-groups/groups-properties.js index 9d7aa66f2e..a0c6ea377b 100644 --- a/test/built-ins/RegExp/named-groups/groups-properties.js +++ b/test/built-ins/RegExp/named-groups/groups-properties.js @@ -16,12 +16,16 @@ info: | // Properties created on result.groups in textual order. assert(compareArray(["fst", "snd"], - Object.getOwnPropertyNames( - /(?<fst>.)|(?<snd>.)/u.exec("abcd").groups))); + Object.getOwnPropertyNames( + /(?<fst>.)|(?<snd>.)/u.exec("abcd").groups))); // Properties are created with Define, not Set let counter = 0; -Object.defineProperty(Object.prototype, 'x', {set() { counter++; }}); +Object.defineProperty(Object.prototype, 'x', { + set() { + counter++; + } +}); let match = /(?<x>.)/.exec('a'); let groups = match.groups; assert.sameValue(counter, 0); diff --git a/test/built-ins/RegExp/named-groups/lookbehind.js b/test/built-ins/RegExp/named-groups/lookbehind.js index e3926bc97e..1748732efb 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 7904c75e43..7255c4704b 100644 --- a/test/built-ins/RegExp/named-groups/non-unicode-match.js +++ b/test/built-ins/RegExp/named-groups/non-unicode-match.js @@ -19,7 +19,11 @@ assert(compareArray(["bab", "ab"], "bab".match(/.(?<a>\w\w)/))); assert(compareArray(["bab", "bab"], "bab".match(/(?<a>\w\w\w)/))); assert(compareArray(["bab", "ba", "b"], "bab".match(/(?<a>\w\w)(?<b>\w)/))); -let {a, b, c} = /(?<a>.)(?<b>.)(?<c>.)\k<c>\k<b>\k<a>/.exec("abccba").groups; +let { + a, + b, + c +} = /(?<a>.)(?<b>.)(?<c>.)\k<c>\k<b>\k<a>/.exec("abccba").groups; assert.sameValue(a, "a"); assert.sameValue(b, "b"); assert.sameValue(c, "c"); @@ -38,6 +42,6 @@ assert(compareArray("bab".match(/(\w\w)(\w)/), "bab".match(/(?<a>\w\w)(?<b>\w)/) assert(compareArray(["bab", "b"], "bab".match(/(?<b>b).\1/))); assert(compareArray(["baba", "b", "a"], "baba".match(/(.)(?<a>a)\1\2/))); assert(compareArray(["baba", "b", "a", "b", "a"], - "baba".match(/(.)(?<a>a)(?<b>\1)(\2)/))); + "baba".match(/(.)(?<a>a)(?<b>\1)(\2)/))); assert(compareArray(["<a", "<"], "<a".match(/(?<lt><)a/))); assert(compareArray([">a", ">"], ">a".match(/(?<gt>>)a/))); diff --git a/test/built-ins/RegExp/named-groups/non-unicode-property-names.js b/test/built-ins/RegExp/named-groups/non-unicode-property-names.js index 9c02d0b517..390f628ca4 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 33d62a3f0a..4a283aa7f6 100644 --- a/test/built-ins/RegExp/named-groups/non-unicode-references.js +++ b/test/built-ins/RegExp/named-groups/non-unicode-references.js @@ -20,7 +20,10 @@ assert.sameValue("b", "bab".match(/(?<a>\k<a>\w)../).groups.a); assert(compareArray(["bab", "b"], "bab".match(/\k<a>(?<a>b)\w\k<a>/))); assert.sameValue("b", "bab".match(/\k<a>(?<a>b)\w\k<a>/).groups.a); assert(compareArray(["bab", "b", "a"], "bab".match(/(?<b>b)\k<a>(?<a>a)\k<b>/))); -let {a, b} = "bab".match(/(?<b>b)\k<a>(?<a>a)\k<b>/).groups; +let { + a, + b +} = "bab".match(/(?<b>b)\k<a>(?<a>a)\k<b>/).groups; assert.sameValue(a, "a"); assert.sameValue(b, "b"); diff --git a/test/built-ins/RegExp/named-groups/string-replace-nocaptures.js b/test/built-ins/RegExp/named-groups/string-replace-nocaptures.js index 76f134cc86..4ae21e7f83 100644 --- a/test/built-ins/RegExp/named-groups/string-replace-nocaptures.js +++ b/test/built-ins/RegExp/named-groups/string-replace-nocaptures.js @@ -29,4 +29,3 @@ for (let flags of ["", "u"]) { assert.sameValue("$<fth>cd", "abcd".replace(re, "$<fth>")); assert.sameValue("$<a>cd", "abcd".replace(re, "$<$1>")); } - diff --git a/test/built-ins/RegExp/named-groups/string-replace-numbered.js b/test/built-ins/RegExp/named-groups/string-replace-numbered.js index c825df3980..516624b305 100644 --- a/test/built-ins/RegExp/named-groups/string-replace-numbered.js +++ b/test/built-ins/RegExp/named-groups/string-replace-numbered.js @@ -26,4 +26,3 @@ for (let flags of ["", "u"]) { let re = new RegExp(source, flags); assert.sameValue("bacd", "abcd".replace(re, "$2$1")); } - diff --git a/test/built-ins/RegExp/named-groups/unicode-malformed.js b/test/built-ins/RegExp/named-groups/unicode-malformed.js index 5c9c131a48..87ae6134c5 100644 --- a/test/built-ins/RegExp/named-groups/unicode-malformed.js +++ b/test/built-ins/RegExp/named-groups/unicode-malformed.js @@ -26,4 +26,3 @@ assert.throws(SyntaxError, () => eval("/(?<a>a)\\k<ab>/u"), "Invalid reference") assert.throws(SyntaxError, () => eval("/(?<ab>a)\\k<a>/u"), "Invalid reference"); assert.throws(SyntaxError, () => eval("/\\k<a>(?<ab>a)/u"), "Invalid reference"); assert.throws(SyntaxError, () => eval("/(?<a>\\a)/u"), "Identity escape in capture"); - diff --git a/test/built-ins/RegExp/named-groups/unicode-match.js b/test/built-ins/RegExp/named-groups/unicode-match.js index a8e1059bdb..c72a292c81 100644 --- a/test/built-ins/RegExp/named-groups/unicode-match.js +++ b/test/built-ins/RegExp/named-groups/unicode-match.js @@ -19,7 +19,11 @@ assert(compareArray(["bab", "ab"], "bab".match(/.(?<a>\w\w)/u))); assert(compareArray(["bab", "bab"], "bab".match(/(?<a>\w\w\w)/u))); assert(compareArray(["bab", "ba", "b"], "bab".match(/(?<a>\w\w)(?<b>\w)/u))); -let {a, b, c} = /(?<a>.)(?<b>.)(?<c>.)\k<c>\k<b>\k<a>/u.exec("abccba").groups; +let { + a, + b, + c +} = /(?<a>.)(?<b>.)(?<c>.)\k<c>\k<b>\k<a>/u.exec("abccba").groups; assert.sameValue(a, "a"); assert.sameValue(b, "b"); assert.sameValue(c, "c"); @@ -38,11 +42,15 @@ assert(compareArray("bab".match(/(\w\w)(\w)/u), "bab".match(/(?<a>\w\w)(?<b>\w)/ assert(compareArray(["bab", "b"], "bab".match(/(?<b>b).\1/u))); assert(compareArray(["baba", "b", "a"], "baba".match(/(.)(?<a>a)\1\2/u))); assert(compareArray(["baba", "b", "a", "b", "a"], - "baba".match(/(.)(?<a>a)(?<b>\1)(\2)/u))); + "baba".match(/(.)(?<a>a)(?<b>\1)(\2)/u))); assert(compareArray(["<a", "<"], "<a".match(/(?<lt><)a/u))); assert(compareArray([">a", ">"], ">a".match(/(?<gt>>)a/u))); // Nested groups. assert(compareArray(["bab", "bab", "ab", "b"], "bab".match(/(?<a>.(?<b>.(?<c>.)))/u))); -assert(compareArray({a: "bab", b: "ab", c: "b"}, - "bab".match(/(?<a>.(?<b>.(?<c>.)))/u).groups)); +assert(compareArray({ + a: "bab", + b: "ab", + c: "b" + }, + "bab".match(/(?<a>.(?<b>.(?<c>.)))/u).groups)); diff --git a/test/built-ins/RegExp/named-groups/unicode-property-names.js b/test/built-ins/RegExp/named-groups/unicode-property-names.js index 24e4a6ade9..a8007cce04 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 1f95a2f40c..9f8df10f5b 100644 --- a/test/built-ins/RegExp/named-groups/unicode-references.js +++ b/test/built-ins/RegExp/named-groups/unicode-references.js @@ -33,7 +33,10 @@ assert.sameValue("b", "bab".match(/(?<a>\k<a>\w)../u).groups.a); assert(compareArray(["bab", "b"], "bab".match(/\k<a>(?<a>b)\w\k<a>/u))); assert.sameValue("b", "bab".match(/\k<a>(?<a>b)\w\k<a>/u).groups.a); assert(compareArray(["bab", "b", "a"], "bab".match(/(?<b>b)\k<a>(?<a>a)\k<b>/u))); -let {a, b} = "bab".match(/(?<b>b)\k<a>(?<a>a)\k<b>/u).groups; +let { + a, + b +} = "bab".match(/(?<b>b)\k<a>(?<a>a)\k<b>/u).groups; assert.sameValue(a, "a"); assert.sameValue(b, "b"); diff --git a/test/built-ins/RegExp/property-escapes/generated/Any.js b/test/built-ins/RegExp/property-escapes/generated/Any.js index f351d2b748..21f75822ec 100644 --- a/test/built-ins/RegExp/property-escapes/generated/Any.js +++ b/test/built-ins/RegExp/property-escapes/generated/Any.js @@ -28,7 +28,6 @@ testPropertyEscapes( "\\p{Any}" ); -assert( - !/\P{Any}/u.test(""), +assert(!/\P{Any}/u.test(""), "`\\P{Any}` should match nothing (not even the empty string)" ); diff --git a/test/built-ins/RegExp/prototype/15.10.6.js b/test/built-ins/RegExp/prototype/15.10.6.js index a1d12241f2..05c035447b 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 3b3136cfbd..e65d4797ff 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 a34b24306b..7941aca9a4 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 1ad8fa95ea..6f37f06783 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 48bf65f19d..a39576d7dc 100644 --- a/test/built-ins/RegExp/prototype/S15.10.5.1_A4.js +++ b/test/built-ins/RegExp/prototype/S15.10.5.1_A4.js @@ -10,14 +10,16 @@ includes: [propertyHelper.js] //CHECK#1 if (RegExp.hasOwnProperty('prototype') !== true) { - $ERROR('#1: RegExp.hasOwnProperty(\'prototype\') === true'); + $ERROR('#1: RegExp.hasOwnProperty(\'prototype\') === true'); } var __obj = RegExp.prototype; -verifyNotWritable(RegExp, "prototype", null, function(){return "shifted";}); +verifyNotWritable(RegExp, "prototype", null, function() { + return "shifted"; +}); //CHECK#2 if (RegExp.prototype !== __obj) { - $ERROR('#2: __obj = RegExp.prototype; RegExp.prototype = function(){return "shifted";}; RegExp.prototype === __obj. Actual: ' + (RegExp.prototype)); + $ERROR('#2: __obj = RegExp.prototype; RegExp.prototype = function(){return "shifted";}; RegExp.prototype === __obj. Actual: ' + (RegExp.prototype)); } diff --git a/test/built-ins/RegExp/prototype/S15.10.6.1_A1_T1.js b/test/built-ins/RegExp/prototype/S15.10.6.1_A1_T1.js index 1330fa46e0..b01c39d275 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 be0d169577..6c0f0fe993 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 9cf925c6b1..8b0b0de88d 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 8b42feccef..a850481d6b 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 94688c0226..57deb31e6c 100644 --- a/test/built-ins/RegExp/prototype/Symbol.match/builtin-failure-g-set-lastindex-err.js +++ b/test/built-ins/RegExp/prototype/Symbol.match/builtin-failure-g-set-lastindex-err.js @@ -32,7 +32,9 @@ features: [Symbol.match] ---*/ var r = /a/g; -Object.defineProperty(r, 'lastIndex', { writable: false }); +Object.defineProperty(r, 'lastIndex', { + writable: false +}); assert.throws(TypeError, function() { r[Symbol.match]('b'); diff --git a/test/built-ins/RegExp/prototype/Symbol.match/builtin-failure-y-return-val.js b/test/built-ins/RegExp/prototype/Symbol.match/builtin-failure-y-return-val.js index e6af1fc36e..c5109072c7 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 a6510b6844..a75af73850 100644 --- a/test/built-ins/RegExp/prototype/Symbol.match/builtin-failure-y-set-lastindex-err.js +++ b/test/built-ins/RegExp/prototype/Symbol.match/builtin-failure-y-set-lastindex-err.js @@ -35,7 +35,9 @@ features: [Symbol.match] var r = /a/y; -Object.defineProperty(r, 'lastIndex', { writable: false }); +Object.defineProperty(r, 'lastIndex', { + writable: false +}); assert.throws(TypeError, function() { r[Symbol.match]('ba'); diff --git a/test/built-ins/RegExp/prototype/Symbol.match/builtin-infer-unicode.js b/test/built-ins/RegExp/prototype/Symbol.match/builtin-infer-unicode.js index b579d13fbf..6d551469a7 100644 --- a/test/built-ins/RegExp/prototype/Symbol.match/builtin-infer-unicode.js +++ b/test/built-ins/RegExp/prototype/Symbol.match/builtin-infer-unicode.js @@ -30,9 +30,13 @@ features: [Symbol.match] var r; r = /\udf06/; -Object.defineProperty(r, 'unicode', { value: true }); +Object.defineProperty(r, 'unicode', { + value: true +}); assert.notSameValue(r[Symbol.match]('\ud834\udf06'), null); r = /\udf06/u; -Object.defineProperty(r, 'unicode', { value: false }); +Object.defineProperty(r, 'unicode', { + value: false +}); assert.sameValue(r[Symbol.match]('\ud834\udf06'), null); diff --git a/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-g-set-lastindex-err.js b/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-g-set-lastindex-err.js index 14b24a188c..7e5a605a24 100644 --- a/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-g-set-lastindex-err.js +++ b/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-g-set-lastindex-err.js @@ -43,7 +43,9 @@ var callCount = 0; // completion originates from the second property modification. Object.defineProperty(r, 'exec', { get: function() { - Object.defineProperty(r, 'lastIndex', { writable: false }); + Object.defineProperty(r, 'lastIndex', { + writable: false + }); } }); diff --git a/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-g-set-lastindex.js b/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-g-set-lastindex.js index ef566fb259..b83b3f9894 100644 --- a/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-g-set-lastindex.js +++ b/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-g-set-lastindex.js @@ -32,7 +32,9 @@ features: [Symbol.match] // The conflicting values for the "global" flag are necessary to observe the // final modification of `lastIndex` in RegExpBuiltinExec var r = /b/g; -Object.defineProperty(r, 'global', { value: false }); +Object.defineProperty(r, 'global', { + value: false +}); r[Symbol.match]('abc'); diff --git a/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-return-val-groups.js b/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-return-val-groups.js index c33934f66c..fa34869dbb 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 77c03e4bed..a88a41ed75 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 40e1af1193..1ebc0461e8 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 ae4780bd10..c8f3e2c2c2 100644 --- a/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-y-set-lastindex-err.js +++ b/test/built-ins/RegExp/prototype/Symbol.match/builtin-success-y-set-lastindex-err.js @@ -29,7 +29,9 @@ features: [Symbol.match] var r = /a/y; -Object.defineProperty(r, 'lastIndex', { writable: false }); +Object.defineProperty(r, 'lastIndex', { + writable: false +}); assert.throws(TypeError, function() { r[Symbol.match]('a'); diff --git a/test/built-ins/RegExp/prototype/Symbol.match/coerce-arg-err.js b/test/built-ins/RegExp/prototype/Symbol.match/coerce-arg-err.js index 399b91a97a..5a9497f4d1 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 9fea45f93a..daf9b803d2 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 f90e75596f..e1cc62d303 100644 --- a/test/built-ins/RegExp/prototype/Symbol.match/coerce-global.js +++ b/test/built-ins/RegExp/prototype/Symbol.match/coerce-global.js @@ -28,7 +28,9 @@ var r, result, execCount; r = /a/g; r.exec = exec; -Object.defineProperty(r, 'global', { writable: true }); +Object.defineProperty(r, 'global', { + writable: true +}); execCount = 0; r.global = undefined; @@ -62,7 +64,9 @@ assert.sameValue(execCount, 1, 'value: ""'); r = /a/; r.exec = exec; -Object.defineProperty(r, 'global', { writable: true }); +Object.defineProperty(r, 'global', { + writable: true +}); r.global = true; execCount = 0; diff --git a/test/built-ins/RegExp/prototype/Symbol.match/g-get-exec-err.js b/test/built-ins/RegExp/prototype/Symbol.match/g-get-exec-err.js index 999a03a0a7..63d8408513 100644 --- a/test/built-ins/RegExp/prototype/Symbol.match/g-get-exec-err.js +++ b/test/built-ins/RegExp/prototype/Symbol.match/g-get-exec-err.js @@ -23,7 +23,9 @@ info: | features: [Symbol.match] ---*/ -var r = { global: true }; +var r = { + global: true +}; Object.defineProperty(r, 'exec', { get: function() { throw new Test262Error(); diff --git a/test/built-ins/RegExp/prototype/Symbol.match/g-init-lastindex-err.js b/test/built-ins/RegExp/prototype/Symbol.match/g-init-lastindex-err.js index 73d0f249a8..1a6bd10309 100644 --- a/test/built-ins/RegExp/prototype/Symbol.match/g-init-lastindex-err.js +++ b/test/built-ins/RegExp/prototype/Symbol.match/g-init-lastindex-err.js @@ -15,7 +15,9 @@ features: [Symbol.match] ---*/ var r = /./g; -Object.defineProperty(r, 'lastIndex', { writable: false }); +Object.defineProperty(r, 'lastIndex', { + writable: false +}); assert.throws(TypeError, function() { r[Symbol.match](''); diff --git a/test/built-ins/RegExp/prototype/Symbol.match/g-match-empty-advance-lastindex.js b/test/built-ins/RegExp/prototype/Symbol.match/g-match-empty-advance-lastindex.js index a3fb320adc..81b2e70ce1 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 4341d85fe3..fc6c81d1ef 100644 --- a/test/built-ins/RegExp/prototype/Symbol.match/g-match-empty-set-lastindex-err.js +++ b/test/built-ins/RegExp/prototype/Symbol.match/g-match-empty-set-lastindex-err.js @@ -32,7 +32,9 @@ var exec = function() { nextMatch = null; return { get 0() { - Object.defineProperty(r, 'lastIndex', { writable: false }); + Object.defineProperty(r, 'lastIndex', { + writable: false + }); return thisMatch; } }; diff --git a/test/built-ins/RegExp/prototype/Symbol.match/g-match-no-set-lastindex.js b/test/built-ins/RegExp/prototype/Symbol.match/g-match-no-set-lastindex.js index 3427d2f516..f98a9d07a1 100644 --- a/test/built-ins/RegExp/prototype/Symbol.match/g-match-no-set-lastindex.js +++ b/test/built-ins/RegExp/prototype/Symbol.match/g-match-no-set-lastindex.js @@ -30,7 +30,9 @@ var exec = function() { nextMatch = null; return { get 0() { - Object.defineProperty(r, 'lastIndex', { writable: false }); + Object.defineProperty(r, 'lastIndex', { + writable: false + }); return thisMatch; } }; diff --git a/test/built-ins/RegExp/prototype/Symbol.match/g-success-return-val.js b/test/built-ins/RegExp/prototype/Symbol.match/g-success-return-val.js index ca52115e7c..f30e987bbc 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 4cf5c10f0b..7d7461abc6 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 cd3815a716..5407bc3715 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 c7da00f59c..f66c7be9b3 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 7c1330c07c..a1b654b8e4 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 b12647ba1f..c0809c650f 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 dab31fc7d4..991ab65873 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 af11c4b92e..5195e71242 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 c98886c527..e4ed046135 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 41547753a6..c2d5a2464d 100644 --- a/test/built-ins/RegExp/prototype/Symbol.replace/coerce-global.js +++ b/test/built-ins/RegExp/prototype/Symbol.replace/coerce-global.js @@ -15,7 +15,9 @@ features: [Symbol.replace] Array.print = print; var r = /a/g; -Object.defineProperty(r, 'global', { writable: true }); +Object.defineProperty(r, 'global', { + writable: true +}); r.lastIndex = 0; r.global = undefined; @@ -43,7 +45,9 @@ assert.sameValue(r[Symbol.replace]('aa', 'b'), 'ba', 'value: ""'); var execCount = 0; r = /a/; -Object.defineProperty(r, 'global', { writable: true }); +Object.defineProperty(r, 'global', { + writable: true +}); r.exec = function() { execCount += 1; if (execCount === 1) { diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/coerce-unicode.js b/test/built-ins/RegExp/prototype/Symbol.replace/coerce-unicode.js index 498ea88560..6ea18eda91 100644 --- a/test/built-ins/RegExp/prototype/Symbol.replace/coerce-unicode.js +++ b/test/built-ins/RegExp/prototype/Symbol.replace/coerce-unicode.js @@ -15,7 +15,9 @@ features: [Symbol.replace] ---*/ var r = /^|\udf06/g; -Object.defineProperty(r, 'unicode', { writable: true }); +Object.defineProperty(r, 'unicode', { + writable: true +}); r.unicode = undefined; assert.sameValue(r[Symbol.replace]('\ud834\udf06', 'XXX'), 'XXX\ud834XXX'); diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/fn-coerce-replacement-err.js b/test/built-ins/RegExp/prototype/Symbol.replace/fn-coerce-replacement-err.js index ebfe89ceac..cc25a77dff 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 5ecc7b47b1..9783753173 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 b35ba4435f..120866908b 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 301a4673da..a1d32ab57d 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 5f9a58aee8..62aec4b306 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 2b556a8b43..44c2a570b4 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 a6a97f7539..7b49452e5b 100644 --- a/test/built-ins/RegExp/prototype/Symbol.replace/g-init-lastindex-err.js +++ b/test/built-ins/RegExp/prototype/Symbol.replace/g-init-lastindex-err.js @@ -22,7 +22,9 @@ var r = /./g; // Avoid false positives from unrelated TypeErrors r[Symbol.replace]('x', 'x'); -Object.defineProperty(r, 'lastIndex', { writable: false }); +Object.defineProperty(r, 'lastIndex', { + writable: false +}); assert.throws(TypeError, function() { r[Symbol.replace]('x', 'x'); diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/g-pos-decrement.js b/test/built-ins/RegExp/prototype/Symbol.replace/g-pos-decrement.js index 2a03846f94..7447ac6d8b 100644 --- a/test/built-ins/RegExp/prototype/Symbol.replace/g-pos-decrement.js +++ b/test/built-ins/RegExp/prototype/Symbol.replace/g-pos-decrement.js @@ -29,9 +29,17 @@ r.exec = function() { callCount += 1; if (callCount === 1) { - return { index: 3, length: 1, 0: 0 }; + return { + index: 3, + length: 1, + 0: 0 + }; } else if (callCount === 2) { - return { index: 1, length: 1, 0: 0 }; + return { + index: 1, + length: 1, + 0: 0 + }; } return null; diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/g-pos-increment.js b/test/built-ins/RegExp/prototype/Symbol.replace/g-pos-increment.js index 000ba643b8..2af11e676b 100644 --- a/test/built-ins/RegExp/prototype/Symbol.replace/g-pos-increment.js +++ b/test/built-ins/RegExp/prototype/Symbol.replace/g-pos-increment.js @@ -29,9 +29,17 @@ r.exec = function() { callCount += 1; if (callCount === 1) { - return { index: 1, length: 1, 0: 0 }; + return { + index: 1, + length: 1, + 0: 0 + }; } else if (callCount === 2) { - return { index: 3, length: 1, 0: 0 }; + return { + index: 3, + length: 1, + 0: 0 + }; } return null; diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/get-exec-err.js b/test/built-ins/RegExp/prototype/Symbol.replace/get-exec-err.js index 902ae44238..8d5bf5b79f 100644 --- a/test/built-ins/RegExp/prototype/Symbol.replace/get-exec-err.js +++ b/test/built-ins/RegExp/prototype/Symbol.replace/get-exec-err.js @@ -19,7 +19,9 @@ info: | features: [Symbol.replace] ---*/ -var r = { global: true }; +var r = { + global: true +}; Object.defineProperty(r, 'exec', { get: function() { throw new Test262Error(); diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/match-failure.js b/test/built-ins/RegExp/prototype/Symbol.replace/match-failure.js index 33df517c26..e1ff4fee27 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 62ecbb9bf0..136ea6c239 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 22a0e3dd1e..c59779e418 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 a42a59168b..5d9a605118 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 828e247fe0..0f7276a324 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 17287cd44b..52d19ea030 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 a84e790cc9..6b255d458b 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 8cae30de42..95df622a4c 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 20649e5181..c13bf187c7 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 a9824f8158..d571c79790 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 81fee39c59..10dd25140c 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 5b2746f383..ee76f1a92a 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 889dbdac76..ce69827b0f 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 9b59d5d83d..01645c7494 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 398209d389..ccd4e48897 100644 --- a/test/built-ins/RegExp/prototype/Symbol.search/cstm-exec-return-index.js +++ b/test/built-ins/RegExp/prototype/Symbol.search/cstm-exec-return-index.js @@ -25,7 +25,9 @@ features: [Symbol.search] var fakeRe = { exec: function() { - return { index: 86 }; + return { + index: 86 + }; } }; diff --git a/test/built-ins/RegExp/prototype/Symbol.search/failure-return-val.js b/test/built-ins/RegExp/prototype/Symbol.search/failure-return-val.js index 458f57691c..5b4c75ca0d 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 8f85a5e117..f3333c64c3 100644 --- a/test/built-ins/RegExp/prototype/Symbol.search/set-lastindex-restore-err.js +++ b/test/built-ins/RegExp/prototype/Symbol.search/set-lastindex-restore-err.js @@ -15,7 +15,9 @@ features: [Symbol.search] var callCount; var poisonedLastIndex = { - get lastIndex() { return this.lastIndex_; }, + get lastIndex() { + return this.lastIndex_; + }, set lastIndex(_) { if (callCount === 1) { throw new Test262Error(); @@ -30,7 +32,9 @@ var poisonedLastIndex = { var nonWritableLastIndex = { exec: function() { Object.defineProperty( - nonWritableLastIndex, 'lastIndex', { writable: false } + nonWritableLastIndex, 'lastIndex', { + writable: false + } ); callCount += 1; return null; diff --git a/test/built-ins/RegExp/prototype/Symbol.search/success-return-val.js b/test/built-ins/RegExp/prototype/Symbol.search/success-return-val.js index e8bd0ee007..948673373a 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 913b645165..eae1d9a177 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 3edf19d288..e23fec9a11 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 fc69ddb02e..fc2b372a09 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 5d66443c40..093f3ec2f7 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 aae5072236..32c3c0ee3c 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 58ad484d61..88194a186a 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 f9b662f504..26fbbad463 100644 --- a/test/built-ins/RegExp/prototype/Symbol.split/last-index-exceeds-str-size.js +++ b/test/built-ins/RegExp/prototype/Symbol.split/last-index-exceeds-str-size.js @@ -22,7 +22,10 @@ var string = "foo"; RegExp.prototype.exec = function() { this.lastIndex = 100; - return {length: 0, index: 0}; + return { + length: 0, + index: 0 + }; }; var result = regExp[Symbol.split](string); diff --git a/test/built-ins/RegExp/prototype/Symbol.split/species-ctor-ctor-non-obj.js b/test/built-ins/RegExp/prototype/Symbol.split/species-ctor-ctor-non-obj.js index 3425f46237..2550e2e00b 100644 --- a/test/built-ins/RegExp/prototype/Symbol.split/species-ctor-ctor-non-obj.js +++ b/test/built-ins/RegExp/prototype/Symbol.split/species-ctor-ctor-non-obj.js @@ -19,7 +19,9 @@ info: | features: [Symbol.split] ---*/ -var obj = { flags: '' }; +var obj = { + flags: '' +}; // Avoid false positives from unrelated TypeErrors RegExp.prototype[Symbol.split].call(obj); diff --git a/test/built-ins/RegExp/prototype/Symbol.split/species-ctor-species-get-err.js b/test/built-ins/RegExp/prototype/Symbol.split/species-ctor-species-get-err.js index b83974bee6..26faf11173 100644 --- a/test/built-ins/RegExp/prototype/Symbol.split/species-ctor-species-get-err.js +++ b/test/built-ins/RegExp/prototype/Symbol.split/species-ctor-species-get-err.js @@ -31,5 +31,7 @@ Object.defineProperty(poisonedSpecies, Symbol.species, { }); assert.throws(Test262Error, function() { - RegExp.prototype[Symbol.split].call({ constructor: poisonedSpecies }); + RegExp.prototype[Symbol.split].call({ + constructor: poisonedSpecies + }); }); diff --git a/test/built-ins/RegExp/prototype/Symbol.split/str-adv-thru-empty-match.js b/test/built-ins/RegExp/prototype/Symbol.split/str-adv-thru-empty-match.js index 7d6dfdd820..d99763cf6d 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 0292e08466..5e89b6c190 100644 --- a/test/built-ins/RegExp/prototype/Symbol.split/str-coerce-lastindex-err.js +++ b/test/built-ins/RegExp/prototype/Symbol.split/str-coerce-lastindex-err.js @@ -42,7 +42,9 @@ assert.throws(TypeError, function() { }); badLastIndex = { - valueOf: function() { throw new Test262Error(); } + valueOf: function() { + throw new Test262Error(); + } }; assert.throws(Test262Error, function() { RegExp.prototype[Symbol.split].call(obj, 'abcd'); diff --git a/test/built-ins/RegExp/prototype/Symbol.split/str-empty-match.js b/test/built-ins/RegExp/prototype/Symbol.split/str-empty-match.js index 6e987a56ab..5f1bb6e790 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 9d3f5964e1..c6bea6bd63 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 c4fe2036a2..8b0f5e497e 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 a10409309a..67858db7c3 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 c781dde5ec..c4b57d4a67 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 476dbf950a..8cbc45e382 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 1e370c1931..767c4d8422 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 ab93d95a8a..4ccfba20f7 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 5c69cca8ef..3b8b330290 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A10.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A10.js @@ -15,7 +15,9 @@ if (RegExp.prototype.exec.hasOwnProperty('length') !== true) { var __obj = RegExp.prototype.exec.length; -verifyNotWritable(RegExp.prototype.exec, "length", null, function(){return "shifted";}); +verifyNotWritable(RegExp.prototype.exec, "length", null, function() { + return "shifted"; +}); //CHECK#2 if (RegExp.prototype.exec.length !== __obj) { diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A12.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A12.js index 1fd0f84ac8..cbac6ac4c5 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 f76ef50e60..0b7c3689c7 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 824d63114f..dc640a28d3 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 e1cbaccf11..10dc7b5c53 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 f019f3cebb..1fef458d1a 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T12.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T12.js @@ -11,15 +11,19 @@ description: > /\.14/ ---*/ -var __executed = /\.14/.exec({toString:function(){return Math.PI}}); +var __executed = /\.14/.exec({ + toString: function() { + return Math.PI + } +}); var __expected = [".14"]; -__expected.index=1; -__expected.input=String(Math.PI); +__expected.index = 1; +__expected.input = String(Math.PI); //CHECK#0 if ((__executed instanceof Array) !== true) { - $ERROR('#0: __executed = /\\.14/.exec({toString:function(){return Math.PI}}); (__executed instanceof Array) === true'); + $ERROR('#0: __executed = /\\.14/.exec({toString:function(){return Math.PI}}); (__executed instanceof Array) === true'); } //CHECK#1 @@ -38,7 +42,7 @@ if (__executed.input !== __expected.input) { } //CHECK#4 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__executed[index] !== __expected[index]) { $ERROR('#4: __executed = /\\.14/.exec({toString:function(){return Math.PI}}); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T13.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T13.js index 806522d574..ef9f1b47fb 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 f52b8ffb8a..ab68f596c1 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 8a19ebf509..d9cd5c4afe 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T15.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T15.js @@ -9,15 +9,19 @@ es5id: 15.10.6.2_A1_T15 description: "String is {toString:function(){return false;}} and RegExp is /LS/i" ---*/ -var __executed = /LS/i.exec({toString:function(){return false}}); +var __executed = /LS/i.exec({ + toString: function() { + return false + } +}); var __expected = ["ls"]; -__expected.index=2; -__expected.input="false"; +__expected.index = 2; +__expected.input = "false"; //CHECK#0 if ((__executed instanceof Array) !== true) { - $ERROR('#0: __executed = /LS/i.exec({toString:function(){return false}}); (__executed instanceof Array) === true'); + $ERROR('#0: __executed = /LS/i.exec({toString:function(){return false}}); (__executed instanceof Array) === true'); } //CHECK#1 @@ -36,7 +40,7 @@ if (__executed.input !== __expected.input) { } //CHECK#4 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__executed[index] !== __expected[index]) { $ERROR('#4: __executed = /LS/i.exec({toString:function(){return false}}); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T16.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T16.js index a0a229e5f2..371f41238f 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 b8b290bc30..6b2c1501e1 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 5095f634c7..bcee432f12 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 e5d74add5a..e56a3b0e93 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 38f3be48b0..3823541a13 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 b6bbf42f9d..245fd746e8 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 ad82053385..d6499080c5 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 f65da3263a..d0de1daf6b 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 e5ecd573af..580ced07af 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T4.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T4.js @@ -11,15 +11,19 @@ description: > /a[a-z]{2,4}?/ ---*/ -var __executed = /a[a-z]{2,4}?/.exec({toString:function(){return "abcdefghi"}}); +var __executed = /a[a-z]{2,4}?/.exec({ + toString: function() { + return "abcdefghi" + } +}); var __expected = ["abc"]; -__expected.index=0; -__expected.input="abcdefghi"; +__expected.index = 0; +__expected.input = "abcdefghi"; //CHECK#0 if ((__executed instanceof Array) !== true) { - $ERROR('#0: __executed = /a[a-z]{2,4}?/.exec({toString:function(){return "abcdefghi"}}); (__executed instanceof Array) === true'); + $ERROR('#0: __executed = /a[a-z]{2,4}?/.exec({toString:function(){return "abcdefghi"}}); (__executed instanceof Array) === true'); } //CHECK#1 @@ -38,7 +42,7 @@ if (__executed.input !== __expected.input) { } //CHECK#4 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__executed[index] !== __expected[index]) { $ERROR('#4: __executed = /a[a-z]{2,4}?/.exec({toString:function(){return "abcdefghi"}}); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T5.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T5.js index 2bb8b42d50..c0344cfa2c 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T5.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T5.js @@ -12,15 +12,22 @@ description: > /(aa|aabaac|ba|b|c)* / ---*/ -var __executed = /(aa|aabaac|ba|b|c)*/.exec({toString:function(){return {};}, valueOf:function(){return "aabaac";}}); +var __executed = /(aa|aabaac|ba|b|c)*/.exec({ + toString: function() { + return {}; + }, + valueOf: function() { + return "aabaac"; + } +}); var __expected = ["aaba", "ba"]; -__expected.index=0; -__expected.input="aabaac"; +__expected.index = 0; +__expected.input = "aabaac"; //CHECK#0 if ((__executed instanceof Array) !== true) { - $ERROR('#0: __executed = /(aa|aabaac|ba|b|c)*/.exec({toString:function(){return {};}, valueOf:function(){return "aabaac";}}); (__executed instanceof Array) === true'); + $ERROR('#0: __executed = /(aa|aabaac|ba|b|c)*/.exec({toString:function(){return {};}, valueOf:function(){return "aabaac";}}); (__executed instanceof Array) === true'); } //CHECK#1 @@ -39,7 +46,7 @@ if (__executed.input !== __expected.input) { } //CHECK#4 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__executed[index] !== __expected[index]) { $ERROR('#4: __executed = /(aa|aabaac|ba|b|c)*/.exec({toString:function(){return {};}, valueOf:function(){return "aabaac";}}); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T6.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T6.js index e80bc22ba0..56ab7b92e9 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T6.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T6.js @@ -11,15 +11,17 @@ description: > /(z)((a+)?(b+)?(c))* / ---*/ -var __executed = /(z)((a+)?(b+)?(c))*/.exec((function(){return "zaacbbbcac"})()); +var __executed = /(z)((a+)?(b+)?(c))*/.exec((function() { + return "zaacbbbcac" +})()); var __expected = ["zaacbbbcac", "z", "ac", "a", undefined, "c"]; -__expected.index=0; -__expected.input="zaacbbbcac"; +__expected.index = 0; +__expected.input = "zaacbbbcac"; //CHECK#0 if ((__executed instanceof Array) !== true) { - $ERROR('#0: __executed = /(z)((a+)?(b+)?(c))*/.exec((function(){return "zaacbbbcac"})()); (__executed instanceof Array) === true'); + $ERROR('#0: __executed = /(z)((a+)?(b+)?(c))*/.exec((function(){return "zaacbbbcac"})()); (__executed instanceof Array) === true'); } //CHECK#1 @@ -38,7 +40,7 @@ if (__executed.input !== __expected.input) { } //CHECK#4 -for(var index=0; index<__expected.length; index++) { +for (var index = 0; index < __expected.length; index++) { if (__executed[index] !== __expected[index]) { $ERROR('#4: __executed = /(z)((a+)?(b+)?(c))*/.exec((function(){return "zaacbbbcac"})()); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T7.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T7.js index 27e416f17e..ba3a84f04b 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T7.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T7.js @@ -13,9 +13,13 @@ description: > //CHECK#1 try { - $ERROR('#1.1: /[a-z]/.exec({toString:function(){throw "intostr"}}) throw "intostr". Actual: ' + (/[a-z]/.exec({toString:function(){throw "intostr"}}))); + $ERROR('#1.1: /[a-z]/.exec({toString:function(){throw "intostr"}}) throw "intostr". Actual: ' + (/[a-z]/.exec({ + toString: function() { + throw "intostr" + } + }))); } catch (e) { - if (e !== "intostr") { - $ERROR('#1.2: /[a-z]/.exec({toString:function(){throw "intostr"}}) throw "intostr". Actual: ' + (e)); - } + if (e !== "intostr") { + $ERROR('#1.2: /[a-z]/.exec({toString:function(){throw "intostr"}}) throw "intostr". Actual: ' + (e)); + } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T8.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T8.js index ee0dad0cd1..dbea95b386 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T8.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T8.js @@ -13,7 +13,12 @@ description: > //CHECK#1 try { - $ERROR('#1.1: /[a-z]/.exec({toString:void 0, valueOf:function(){throw "invalof"}}) throw "invalof". Actual: ' + (/[a-z]/.exec({toString:void 0, valueOf:function(){throw "invalof"}}))); + $ERROR('#1.1: /[a-z]/.exec({toString:void 0, valueOf:function(){throw "invalof"}}) throw "invalof". Actual: ' + (/[a-z]/.exec({ + toString: void 0, + valueOf: function() { + throw "invalof" + } + }))); } catch (e) { if (e !== "invalof") { $ERROR('#1.2: /[a-z]/.exec({toString:void 0, valueOf:function(){throw "invalof"}}) throw "invalof". Actual: ' + (e)); diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T9.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T9.js index 2fe4adc12d..60704445aa 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 da9044c917..0bea5bf1b9 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 d76e16ca96..61b203f0ff 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 461f4dafec..8a1d3bf5b9 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 ae0fefba14..b7cbc10fff 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 8cd33f8c3c..c71ddfcd82 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 146eeacf46..1b75152edc 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 5c2fa4f00c..8238d3f8d3 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 7c0a55e09b..6d19fc062f 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 8c31afbbf0..bc35c777a2 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 f71557bf6a..5ee95865a3 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 4052d931ac..14ad64b907 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 34a0fe65ad..756ec7a45e 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T2.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T2.js @@ -11,144 +11,144 @@ description: RegExp is /[Nn]evermore/g and tested string is very long string ---*/ var __the__raven = " Once upon a midnight dreary, while I pondered weak and weary," + - "Over many a quaint and curious volume of forgotten lore," + - "While I nodded, nearly napping, suddenly there came a tapping," + - "As of some one gently rapping, rapping at my chamber door." + - "`'Tis some visitor,' I muttered, `tapping at my chamber door -" + - "Only this, and nothing more.'" + - "Ah, distinctly I remember it was in the bleak December," + - "And each separate dying ember wrought its ghost upon the floor." + - "Eagerly I wished the morrow; - vainly I had sought to borrow" + - "From my books surcease of sorrow - sorrow for the lost Lenore -" + - "For the rare and radiant maiden whom the angels named Lenore -" + - "Nameless here for evermore." + - "\n" + - "And the silken sad uncertain rustling of each purple curtain" + - "Thrilled me - filled me with fantastic terrors never felt before;" + - "So that now, to still the beating of my heart, I stood repeating" + - "`'Tis some visitor entreating entrance at my chamber door -" + - "Some late visitor entreating entrance at my chamber door; -" + - "This it is, and nothing more,'" + - "Presently my soul grew stronger; hesitating then no longer," + - "`Sir,' said I, `or Madam, truly your forgiveness I implore;" + - "But the fact is I was napping, and so gently you came rapping," + - "And so faintly you came tapping, tapping at my chamber door," + - "That I scarce was sure I heard you' - here I opened wide the door; -" + - "Darkness there, and nothing more." + - "\n" + - "Deep into that darkness peering, long I stood there wondering, fearing," + - "Doubting, dreaming dreams no mortal ever dared to dream before" + - "But the silence was unbroken, and the darkness gave no token," + - "And the only word there spoken was the whispered word, `Lenore!'" + - "This I whispered, and an echo murmured back the word, `Lenore!'" + - "Merely this and nothing more." + - "\n" + - "Back into the chamber turning, all my soul within me burning," + - "Soon again I heard a tapping somewhat louder than before." + - "`Surely,' said I, `surely that is something at my window lattice;" + - "Let me see then, what thereat is, and this mystery explore -" + - "Let my heart be still a moment and this mystery explore; -" + - "'Tis the wind and nothing more!'" + - "\n" + - "Open here I flung the shutter, when, with many a flirt and flutter," + - "In there stepped a stately raven of the saintly days of yore." + - "Not the least obeisance made he; not a minute stopped or stayed he;" + - "But, with mien of lord or lady, perched above my chamber door -" + - "Perched upon a bust of Pallas just above my chamber door -" + - "Perched, and sat, and nothing more." + - "\n" + - "Then this ebony bird beguiling my sad fancy into smiling," + - "By the grave and stern decorum of the countenance it wore," + - "`Though thy crest be shorn and shaven, thou,' I said, `art sure no craven." + - "Ghastly grim and ancient raven wandering from the nightly shore -" + - "Tell me what thy lordly name is on the Night's Plutonian shore!'" + - "Quoth the raven, `Nevermore.'" + - "-n" + - "Much I marvelled this ungainly fowl to hear discourse so plainly," + - "Though its answer little meaning - little relevancy bore;" + - "For we cannot help agreeing that no living human being" + - "Ever yet was blessed with seeing bird above his chamber door -" + - "Bird or beast above the sculptured bust above his chamber door," + - "With such name as `Nevermore.'" + - "\n" + - "But the raven, sitting lonely on the placid bust, spoke only," + - "That one word, as if his soul in that one word he did outpour." + - "Nothing further then he uttered - not a feather then he fluttered -" + - "Till I scarcely more than muttered `Other friends have flown before -" + - "On the morrow he will leave me, as my hopes have flown before.'" + - "Then the bird said, `Nevermore.'" + - "\n" + - "Startled at the stillness broken by reply so aptly spoken," + - "`Doubtless,' said I, `what it utters is its only stock and store," + - "Caught from some unhappy master whom unmerciful disaster" + - "Followed fast and followed faster till his songs one burden bore -" + - "Till the dirges of his hope that melancholy burden bore" + - "Of \"Never-nevermore.\"'" + - "\n" + - "But the raven still beguiling all my sad soul into smiling," + - "Straight I wheeled a cushioned seat in front of bird and bust and door;" + - "Then, upon the velvet sinking, I betook myself to linking" + - "Fancy unto fancy, thinking what this ominous bird of yore -" + - "What this grim, ungainly, ghastly, gaunt, and ominous bird of yore" + - "Meant in croaking `Nevermore.'" + - "\n" + - "This I sat engaged in guessing, but no syllable expressing" + - "To the fowl whose fiery eyes now burned into my bosom's core;" + - "This and more I sat divining, with my head at ease reclining" + - "On the cushion's velvet lining that the lamp-light gloated o'er," + - "But whose velvet violet lining with the lamp-light gloating o'er," + - "She shall press, ah, nevermore!" + - "\n" + - "Then, methought, the air grew denser, perfumed from an unseen censer" + - "Swung by Seraphim whose foot-falls tinkled on the tufted floor." + - "`Wretch,' I cried, `thy God hath lent thee - by these angels he has sent thee" + - "Respite - respite and nepenthe from thy memories of Lenore!" + - "Quaff, oh quaff this kind nepenthe, and forget this lost Lenore!'" + - "Quoth the raven, `Nevermore.'" + - "\n" + - "`Prophet!' said I, `thing of evil! - prophet still, if bird or devil! -" + - "Whether tempter sent, or whether tempest tossed thee here ashore," + - "Desolate yet all undaunted, on this desert land enchanted -" + - "On this home by horror haunted - tell me truly, I implore -" + - "Is there - is there balm in Gilead? - tell me - tell me, I implore!'" + - "Quoth the raven, `Nevermore.'" + - "\n" + - "`Prophet!' said I, `thing of evil! - prophet still, if bird or devil!" + - "By that Heaven that bends above us - by that God we both adore -" + - "Tell this soul with sorrow laden if, within the distant Aidenn," + - "It shall clasp a sainted maiden whom the angels named Lenore -" + - "Clasp a rare and radiant maiden, whom the angels named Lenore?'" + - "Quoth the raven, `Nevermore.'" + - "\n" + - "`Be that word our sign of parting, bird or fiend!' I shrieked upstarting -" + - "`Get thee back into the tempest and the Night's Plutonian shore!" + - "Leave no black plume as a token of that lie thy soul hath spoken!" + - "Leave my loneliness unbroken! - quit the bust above my door!" + - "Take thy beak from out my heart, and take thy form from off my door!'" + - "Quoth the raven, `Nevermore.'" + - "\n" + - "And the raven, never flitting, still is sitting, still is sitting" + - "On the pallid bust of Pallas just above my chamber door;" + - "And his eyes have all the seeming of a demon's that is dreaming," + - "And the lamp-light o'er him streaming throws his shadow on the floor;" + - "And my soul from out that shadow that lies floating on the floor" + - "Shall be lifted - nevermore!" + "Over many a quaint and curious volume of forgotten lore," + + "While I nodded, nearly napping, suddenly there came a tapping," + + "As of some one gently rapping, rapping at my chamber door." + + "`'Tis some visitor,' I muttered, `tapping at my chamber door -" + + "Only this, and nothing more.'" + + "Ah, distinctly I remember it was in the bleak December," + + "And each separate dying ember wrought its ghost upon the floor." + + "Eagerly I wished the morrow; - vainly I had sought to borrow" + + "From my books surcease of sorrow - sorrow for the lost Lenore -" + + "For the rare and radiant maiden whom the angels named Lenore -" + + "Nameless here for evermore." + + "\n" + + "And the silken sad uncertain rustling of each purple curtain" + + "Thrilled me - filled me with fantastic terrors never felt before;" + + "So that now, to still the beating of my heart, I stood repeating" + + "`'Tis some visitor entreating entrance at my chamber door -" + + "Some late visitor entreating entrance at my chamber door; -" + + "This it is, and nothing more,'" + + "Presently my soul grew stronger; hesitating then no longer," + + "`Sir,' said I, `or Madam, truly your forgiveness I implore;" + + "But the fact is I was napping, and so gently you came rapping," + + "And so faintly you came tapping, tapping at my chamber door," + + "That I scarce was sure I heard you' - here I opened wide the door; -" + + "Darkness there, and nothing more." + + "\n" + + "Deep into that darkness peering, long I stood there wondering, fearing," + + "Doubting, dreaming dreams no mortal ever dared to dream before" + + "But the silence was unbroken, and the darkness gave no token," + + "And the only word there spoken was the whispered word, `Lenore!'" + + "This I whispered, and an echo murmured back the word, `Lenore!'" + + "Merely this and nothing more." + + "\n" + + "Back into the chamber turning, all my soul within me burning," + + "Soon again I heard a tapping somewhat louder than before." + + "`Surely,' said I, `surely that is something at my window lattice;" + + "Let me see then, what thereat is, and this mystery explore -" + + "Let my heart be still a moment and this mystery explore; -" + + "'Tis the wind and nothing more!'" + + "\n" + + "Open here I flung the shutter, when, with many a flirt and flutter," + + "In there stepped a stately raven of the saintly days of yore." + + "Not the least obeisance made he; not a minute stopped or stayed he;" + + "But, with mien of lord or lady, perched above my chamber door -" + + "Perched upon a bust of Pallas just above my chamber door -" + + "Perched, and sat, and nothing more." + + "\n" + + "Then this ebony bird beguiling my sad fancy into smiling," + + "By the grave and stern decorum of the countenance it wore," + + "`Though thy crest be shorn and shaven, thou,' I said, `art sure no craven." + + "Ghastly grim and ancient raven wandering from the nightly shore -" + + "Tell me what thy lordly name is on the Night's Plutonian shore!'" + + "Quoth the raven, `Nevermore.'" + + "-n" + + "Much I marvelled this ungainly fowl to hear discourse so plainly," + + "Though its answer little meaning - little relevancy bore;" + + "For we cannot help agreeing that no living human being" + + "Ever yet was blessed with seeing bird above his chamber door -" + + "Bird or beast above the sculptured bust above his chamber door," + + "With such name as `Nevermore.'" + + "\n" + + "But the raven, sitting lonely on the placid bust, spoke only," + + "That one word, as if his soul in that one word he did outpour." + + "Nothing further then he uttered - not a feather then he fluttered -" + + "Till I scarcely more than muttered `Other friends have flown before -" + + "On the morrow he will leave me, as my hopes have flown before.'" + + "Then the bird said, `Nevermore.'" + + "\n" + + "Startled at the stillness broken by reply so aptly spoken," + + "`Doubtless,' said I, `what it utters is its only stock and store," + + "Caught from some unhappy master whom unmerciful disaster" + + "Followed fast and followed faster till his songs one burden bore -" + + "Till the dirges of his hope that melancholy burden bore" + + "Of \"Never-nevermore.\"'" + + "\n" + + "But the raven still beguiling all my sad soul into smiling," + + "Straight I wheeled a cushioned seat in front of bird and bust and door;" + + "Then, upon the velvet sinking, I betook myself to linking" + + "Fancy unto fancy, thinking what this ominous bird of yore -" + + "What this grim, ungainly, ghastly, gaunt, and ominous bird of yore" + + "Meant in croaking `Nevermore.'" + + "\n" + + "This I sat engaged in guessing, but no syllable expressing" + + "To the fowl whose fiery eyes now burned into my bosom's core;" + + "This and more I sat divining, with my head at ease reclining" + + "On the cushion's velvet lining that the lamp-light gloated o'er," + + "But whose velvet violet lining with the lamp-light gloating o'er," + + "She shall press, ah, nevermore!" + + "\n" + + "Then, methought, the air grew denser, perfumed from an unseen censer" + + "Swung by Seraphim whose foot-falls tinkled on the tufted floor." + + "`Wretch,' I cried, `thy God hath lent thee - by these angels he has sent thee" + + "Respite - respite and nepenthe from thy memories of Lenore!" + + "Quaff, oh quaff this kind nepenthe, and forget this lost Lenore!'" + + "Quoth the raven, `Nevermore.'" + + "\n" + + "`Prophet!' said I, `thing of evil! - prophet still, if bird or devil! -" + + "Whether tempter sent, or whether tempest tossed thee here ashore," + + "Desolate yet all undaunted, on this desert land enchanted -" + + "On this home by horror haunted - tell me truly, I implore -" + + "Is there - is there balm in Gilead? - tell me - tell me, I implore!'" + + "Quoth the raven, `Nevermore.'" + + "\n" + + "`Prophet!' said I, `thing of evil! - prophet still, if bird or devil!" + + "By that Heaven that bends above us - by that God we both adore -" + + "Tell this soul with sorrow laden if, within the distant Aidenn," + + "It shall clasp a sainted maiden whom the angels named Lenore -" + + "Clasp a rare and radiant maiden, whom the angels named Lenore?'" + + "Quoth the raven, `Nevermore.'" + + "\n" + + "`Be that word our sign of parting, bird or fiend!' I shrieked upstarting -" + + "`Get thee back into the tempest and the Night's Plutonian shore!" + + "Leave no black plume as a token of that lie thy soul hath spoken!" + + "Leave my loneliness unbroken! - quit the bust above my door!" + + "Take thy beak from out my heart, and take thy form from off my door!'" + + "Quoth the raven, `Nevermore.'" + + "\n" + + "And the raven, never flitting, still is sitting, still is sitting" + + "On the pallid bust of Pallas just above my chamber door;" + + "And his eyes have all the seeming of a demon's that is dreaming," + + "And the lamp-light o'er him streaming throws his shadow on the floor;" + + "And my soul from out that shadow that lies floating on the floor" + + "Shall be lifted - nevermore!" + +var NEVERMORE = 11; -var NEVERMORE=11; - var __re = /[Nn]evermore/g; -var __matched=0; +var __matched = 0; -do{ - var __executed = __re.exec(__the__raven); - if (__executed !== null) { - __matched++; - } else { - break; - } -}while(1); +do { + var __executed = __re.exec(__the__raven); + if (__executed !== null) { + __matched++; + } else { + break; + } +} while (1); //CHECK#1 if (__matched !== NEVERMORE) { - $ERROR('#1: __re = /[Nn]evermore/g; __executed = __re.exec(__the__raven)'+__matched); + $ERROR('#1: __re = /[Nn]evermore/g; __executed = __re.exec(__the__raven)' + __matched); } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T3.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T3.js index 8afc2f5a58..52f8f6ff8c 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T3.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T3.js @@ -11,144 +11,144 @@ description: RegExp is /[Nn]?evermore/g and tested string is very long string ---*/ var __the__raven = " Once upon a midnight dreary, while I pondered weak and weary," + - "Over many a quaint and curious volume of forgotten lore," + - "While I nodded, nearly napping, suddenly there came a tapping," + - "As of some one gently rapping, rapping at my chamber door." + - "`'Tis some visitor,' I muttered, `tapping at my chamber door -" + - "Only this, and nothing more.'" + - "Ah, distinctly I remember it was in the bleak December," + - "And each separate dying ember wrought its ghost upon the floor." + - "Eagerly I wished the morrow; - vainly I had sought to borrow" + - "From my books surcease of sorrow - sorrow for the lost Lenore -" + - "For the rare and radiant maiden whom the angels named Lenore -" + - "Nameless here for evermore." + - "\n" + - "And the silken sad uncertain rustling of each purple curtain" + - "Thrilled me - filled me with fantastic terrors never felt before;" + - "So that now, to still the beating of my heart, I stood repeating" + - "`'Tis some visitor entreating entrance at my chamber door -" + - "Some late visitor entreating entrance at my chamber door; -" + - "This it is, and nothing more,'" + - "Presently my soul grew stronger; hesitating then no longer," + - "`Sir,' said I, `or Madam, truly your forgiveness I implore;" + - "But the fact is I was napping, and so gently you came rapping," + - "And so faintly you came tapping, tapping at my chamber door," + - "That I scarce was sure I heard you' - here I opened wide the door; -" + - "Darkness there, and nothing more." + - "\n" + - "Deep into that darkness peering, long I stood there wondering, fearing," + - "Doubting, dreaming dreams no mortal ever dared to dream before" + - "But the silence was unbroken, and the darkness gave no token," + - "And the only word there spoken was the whispered word, `Lenore!'" + - "This I whispered, and an echo murmured back the word, `Lenore!'" + - "Merely this and nothing more." + - "\n" + - "Back into the chamber turning, all my soul within me burning," + - "Soon again I heard a tapping somewhat louder than before." + - "`Surely,' said I, `surely that is something at my window lattice;" + - "Let me see then, what thereat is, and this mystery explore -" + - "Let my heart be still a moment and this mystery explore; -" + - "'Tis the wind and nothing more!'" + - "\n" + - "Open here I flung the shutter, when, with many a flirt and flutter," + - "In there stepped a stately raven of the saintly days of yore." + - "Not the least obeisance made he; not a minute stopped or stayed he;" + - "But, with mien of lord or lady, perched above my chamber door -" + - "Perched upon a bust of Pallas just above my chamber door -" + - "Perched, and sat, and nothing more." + - "\n" + - "Then this ebony bird beguiling my sad fancy into smiling," + - "By the grave and stern decorum of the countenance it wore," + - "`Though thy crest be shorn and shaven, thou,' I said, `art sure no craven." + - "Ghastly grim and ancient raven wandering from the nightly shore -" + - "Tell me what thy lordly name is on the Night's Plutonian shore!'" + - "Quoth the raven, `Nevermore.'" + - "-n" + - "Much I marvelled this ungainly fowl to hear discourse so plainly," + - "Though its answer little meaning - little relevancy bore;" + - "For we cannot help agreeing that no living human being" + - "Ever yet was blessed with seeing bird above his chamber door -" + - "Bird or beast above the sculptured bust above his chamber door," + - "With such name as `Nevermore.'" + - "\n" + - "But the raven, sitting lonely on the placid bust, spoke only," + - "That one word, as if his soul in that one word he did outpour." + - "Nothing further then he uttered - not a feather then he fluttered -" + - "Till I scarcely more than muttered `Other friends have flown before -" + - "On the morrow he will leave me, as my hopes have flown before.'" + - "Then the bird said, `Nevermore.'" + - "\n" + - "Startled at the stillness broken by reply so aptly spoken," + - "`Doubtless,' said I, `what it utters is its only stock and store," + - "Caught from some unhappy master whom unmerciful disaster" + - "Followed fast and followed faster till his songs one burden bore -" + - "Till the dirges of his hope that melancholy burden bore" + - "Of \"Never-nevermore.\"'" + - "\n" + - "But the raven still beguiling all my sad soul into smiling," + - "Straight I wheeled a cushioned seat in front of bird and bust and door;" + - "Then, upon the velvet sinking, I betook myself to linking" + - "Fancy unto fancy, thinking what this ominous bird of yore -" + - "What this grim, ungainly, ghastly, gaunt, and ominous bird of yore" + - "Meant in croaking `Nevermore.'" + - "\n" + - "This I sat engaged in guessing, but no syllable expressing" + - "To the fowl whose fiery eyes now burned into my bosom's core;" + - "This and more I sat divining, with my head at ease reclining" + - "On the cushion's velvet lining that the lamp-light gloated o'er," + - "But whose velvet violet lining with the lamp-light gloating o'er," + - "She shall press, ah, nevermore!" + - "\n" + - "Then, methought, the air grew denser, perfumed from an unseen censer" + - "Swung by Seraphim whose foot-falls tinkled on the tufted floor." + - "`Wretch,' I cried, `thy God hath lent thee - by these angels he has sent thee" + - "Respite - respite and nepenthe from thy memories of Lenore!" + - "Quaff, oh quaff this kind nepenthe, and forget this lost Lenore!'" + - "Quoth the raven, `Nevermore.'" + - "\n" + - "`Prophet!' said I, `thing of evil! - prophet still, if bird or devil! -" + - "Whether tempter sent, or whether tempest tossed thee here ashore," + - "Desolate yet all undaunted, on this desert land enchanted -" + - "On this home by horror haunted - tell me truly, I implore -" + - "Is there - is there balm in Gilead? - tell me - tell me, I implore!'" + - "Quoth the raven, `Nevermore.'" + - "\n" + - "`Prophet!' said I, `thing of evil! - prophet still, if bird or devil!" + - "By that Heaven that bends above us - by that God we both adore -" + - "Tell this soul with sorrow laden if, within the distant Aidenn," + - "It shall clasp a sainted maiden whom the angels named Lenore -" + - "Clasp a rare and radiant maiden, whom the angels named Lenore?'" + - "Quoth the raven, `Nevermore.'" + - "\n" + - "`Be that word our sign of parting, bird or fiend!' I shrieked upstarting -" + - "`Get thee back into the tempest and the Night's Plutonian shore!" + - "Leave no black plume as a token of that lie thy soul hath spoken!" + - "Leave my loneliness unbroken! - quit the bust above my door!" + - "Take thy beak from out my heart, and take thy form from off my door!'" + - "Quoth the raven, `Nevermore.'" + - "\n" + - "And the raven, never flitting, still is sitting, still is sitting" + - "On the pallid bust of Pallas just above my chamber door;" + - "And his eyes have all the seeming of a demon's that is dreaming," + - "And the lamp-light o'er him streaming throws his shadow on the floor;" + - "And my soul from out that shadow that lies floating on the floor" + - "Shall be lifted - nevermore!" + "Over many a quaint and curious volume of forgotten lore," + + "While I nodded, nearly napping, suddenly there came a tapping," + + "As of some one gently rapping, rapping at my chamber door." + + "`'Tis some visitor,' I muttered, `tapping at my chamber door -" + + "Only this, and nothing more.'" + + "Ah, distinctly I remember it was in the bleak December," + + "And each separate dying ember wrought its ghost upon the floor." + + "Eagerly I wished the morrow; - vainly I had sought to borrow" + + "From my books surcease of sorrow - sorrow for the lost Lenore -" + + "For the rare and radiant maiden whom the angels named Lenore -" + + "Nameless here for evermore." + + "\n" + + "And the silken sad uncertain rustling of each purple curtain" + + "Thrilled me - filled me with fantastic terrors never felt before;" + + "So that now, to still the beating of my heart, I stood repeating" + + "`'Tis some visitor entreating entrance at my chamber door -" + + "Some late visitor entreating entrance at my chamber door; -" + + "This it is, and nothing more,'" + + "Presently my soul grew stronger; hesitating then no longer," + + "`Sir,' said I, `or Madam, truly your forgiveness I implore;" + + "But the fact is I was napping, and so gently you came rapping," + + "And so faintly you came tapping, tapping at my chamber door," + + "That I scarce was sure I heard you' - here I opened wide the door; -" + + "Darkness there, and nothing more." + + "\n" + + "Deep into that darkness peering, long I stood there wondering, fearing," + + "Doubting, dreaming dreams no mortal ever dared to dream before" + + "But the silence was unbroken, and the darkness gave no token," + + "And the only word there spoken was the whispered word, `Lenore!'" + + "This I whispered, and an echo murmured back the word, `Lenore!'" + + "Merely this and nothing more." + + "\n" + + "Back into the chamber turning, all my soul within me burning," + + "Soon again I heard a tapping somewhat louder than before." + + "`Surely,' said I, `surely that is something at my window lattice;" + + "Let me see then, what thereat is, and this mystery explore -" + + "Let my heart be still a moment and this mystery explore; -" + + "'Tis the wind and nothing more!'" + + "\n" + + "Open here I flung the shutter, when, with many a flirt and flutter," + + "In there stepped a stately raven of the saintly days of yore." + + "Not the least obeisance made he; not a minute stopped or stayed he;" + + "But, with mien of lord or lady, perched above my chamber door -" + + "Perched upon a bust of Pallas just above my chamber door -" + + "Perched, and sat, and nothing more." + + "\n" + + "Then this ebony bird beguiling my sad fancy into smiling," + + "By the grave and stern decorum of the countenance it wore," + + "`Though thy crest be shorn and shaven, thou,' I said, `art sure no craven." + + "Ghastly grim and ancient raven wandering from the nightly shore -" + + "Tell me what thy lordly name is on the Night's Plutonian shore!'" + + "Quoth the raven, `Nevermore.'" + + "-n" + + "Much I marvelled this ungainly fowl to hear discourse so plainly," + + "Though its answer little meaning - little relevancy bore;" + + "For we cannot help agreeing that no living human being" + + "Ever yet was blessed with seeing bird above his chamber door -" + + "Bird or beast above the sculptured bust above his chamber door," + + "With such name as `Nevermore.'" + + "\n" + + "But the raven, sitting lonely on the placid bust, spoke only," + + "That one word, as if his soul in that one word he did outpour." + + "Nothing further then he uttered - not a feather then he fluttered -" + + "Till I scarcely more than muttered `Other friends have flown before -" + + "On the morrow he will leave me, as my hopes have flown before.'" + + "Then the bird said, `Nevermore.'" + + "\n" + + "Startled at the stillness broken by reply so aptly spoken," + + "`Doubtless,' said I, `what it utters is its only stock and store," + + "Caught from some unhappy master whom unmerciful disaster" + + "Followed fast and followed faster till his songs one burden bore -" + + "Till the dirges of his hope that melancholy burden bore" + + "Of \"Never-nevermore.\"'" + + "\n" + + "But the raven still beguiling all my sad soul into smiling," + + "Straight I wheeled a cushioned seat in front of bird and bust and door;" + + "Then, upon the velvet sinking, I betook myself to linking" + + "Fancy unto fancy, thinking what this ominous bird of yore -" + + "What this grim, ungainly, ghastly, gaunt, and ominous bird of yore" + + "Meant in croaking `Nevermore.'" + + "\n" + + "This I sat engaged in guessing, but no syllable expressing" + + "To the fowl whose fiery eyes now burned into my bosom's core;" + + "This and more I sat divining, with my head at ease reclining" + + "On the cushion's velvet lining that the lamp-light gloated o'er," + + "But whose velvet violet lining with the lamp-light gloating o'er," + + "She shall press, ah, nevermore!" + + "\n" + + "Then, methought, the air grew denser, perfumed from an unseen censer" + + "Swung by Seraphim whose foot-falls tinkled on the tufted floor." + + "`Wretch,' I cried, `thy God hath lent thee - by these angels he has sent thee" + + "Respite - respite and nepenthe from thy memories of Lenore!" + + "Quaff, oh quaff this kind nepenthe, and forget this lost Lenore!'" + + "Quoth the raven, `Nevermore.'" + + "\n" + + "`Prophet!' said I, `thing of evil! - prophet still, if bird or devil! -" + + "Whether tempter sent, or whether tempest tossed thee here ashore," + + "Desolate yet all undaunted, on this desert land enchanted -" + + "On this home by horror haunted - tell me truly, I implore -" + + "Is there - is there balm in Gilead? - tell me - tell me, I implore!'" + + "Quoth the raven, `Nevermore.'" + + "\n" + + "`Prophet!' said I, `thing of evil! - prophet still, if bird or devil!" + + "By that Heaven that bends above us - by that God we both adore -" + + "Tell this soul with sorrow laden if, within the distant Aidenn," + + "It shall clasp a sainted maiden whom the angels named Lenore -" + + "Clasp a rare and radiant maiden, whom the angels named Lenore?'" + + "Quoth the raven, `Nevermore.'" + + "\n" + + "`Be that word our sign of parting, bird or fiend!' I shrieked upstarting -" + + "`Get thee back into the tempest and the Night's Plutonian shore!" + + "Leave no black plume as a token of that lie thy soul hath spoken!" + + "Leave my loneliness unbroken! - quit the bust above my door!" + + "Take thy beak from out my heart, and take thy form from off my door!'" + + "Quoth the raven, `Nevermore.'" + + "\n" + + "And the raven, never flitting, still is sitting, still is sitting" + + "On the pallid bust of Pallas just above my chamber door;" + + "And his eyes have all the seeming of a demon's that is dreaming," + + "And the lamp-light o'er him streaming throws his shadow on the floor;" + + "And my soul from out that shadow that lies floating on the floor" + + "Shall be lifted - nevermore!" + +var NEVERMORE_AND_EVERMORE = 12; -var NEVERMORE_AND_EVERMORE=12; - var __re = /[Nn]?evermore/g; -var __matched=0; +var __matched = 0; -do{ - var __executed = __re.exec(__the__raven); - if (__executed !== null) { - __matched++; - } else { - break; - } -}while(1); +do { + var __executed = __re.exec(__the__raven); + if (__executed !== null) { + __matched++; + } else { + break; + } +} while (1); //CHECK#1 if (__matched !== NEVERMORE_AND_EVERMORE) { - $ERROR('#1: __re = /[Nn]?evermore/g; __executed = __re.exec(__the__raven)'+__matched); + $ERROR('#1: __re = /[Nn]?evermore/g; __executed = __re.exec(__the__raven)' + __matched); } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T4.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T4.js index 278549a279..b652749b65 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T4.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T4.js @@ -13,144 +13,144 @@ description: > ---*/ var __the__raven = " Once upon a midnight dreary, while I pondered weak and weary," + - "Over many a quaint and curious volume of forgotten lore," + - "While I nodded, nearly napping, suddenly there came a tapping," + - "As of some one gently rapping, rapping at my chamber door." + - "`'Tis some visitor,' I muttered, `tapping at my chamber door -" + - "Only this, and nothing more.'" + - "Ah, distinctly I remember it was in the bleak December," + - "And each separate dying ember wrought its ghost upon the floor." + - "Eagerly I wished the morrow; - vainly I had sought to borrow" + - "From my books surcease of sorrow - sorrow for the lost Lenore -" + - "For the rare and radiant maiden whom the angels named Lenore -" + - "Nameless here for evermore." + - "\n" + - "And the silken sad uncertain rustling of each purple curtain" + - "Thrilled me - filled me with fantastic terrors never felt before;" + - "So that now, to still the beating of my heart, I stood repeating" + - "`'Tis some visitor entreating entrance at my chamber door -" + - "Some late visitor entreating entrance at my chamber door; -" + - "This it is, and nothing more,'" + - "Presently my soul grew stronger; hesitating then no longer," + - "`Sir,' said I, `or Madam, truly your forgiveness I implore;" + - "But the fact is I was napping, and so gently you came rapping," + - "And so faintly you came tapping, tapping at my chamber door," + - "That I scarce was sure I heard you' - here I opened wide the door; -" + - "Darkness there, and nothing more." + - "\n" + - "Deep into that darkness peering, long I stood there wondering, fearing," + - "Doubting, dreaming dreams no mortal ever dared to dream before" + - "But the silence was unbroken, and the darkness gave no token," + - "And the only word there spoken was the whispered word, `Lenore!'" + - "This I whispered, and an echo murmured back the word, `Lenore!'" + - "Merely this and nothing more." + - "\n" + - "Back into the chamber turning, all my soul within me burning," + - "Soon again I heard a tapping somewhat louder than before." + - "`Surely,' said I, `surely that is something at my window lattice;" + - "Let me see then, what thereat is, and this mystery explore -" + - "Let my heart be still a moment and this mystery explore; -" + - "'Tis the wind and nothing more!'" + - "\n" + - "Open here I flung the shutter, when, with many a flirt and flutter," + - "In there stepped a stately raven of the saintly days of yore." + - "Not the least obeisance made he; not a minute stopped or stayed he;" + - "But, with mien of lord or lady, perched above my chamber door -" + - "Perched upon a bust of Pallas just above my chamber door -" + - "Perched, and sat, and nothing more." + - "\n" + - "Then this ebony bird beguiling my sad fancy into smiling," + - "By the grave and stern decorum of the countenance it wore," + - "`Though thy crest be shorn and shaven, thou,' I said, `art sure no craven." + - "Ghastly grim and ancient raven wandering from the nightly shore -" + - "Tell me what thy lordly name is on the Night's Plutonian shore!'" + - "Quoth the raven, `Nevermore.'" + - "-n" + - "Much I marvelled this ungainly fowl to hear discourse so plainly," + - "Though its answer little meaning - little relevancy bore;" + - "For we cannot help agreeing that no living human being" + - "Ever yet was blessed with seeing bird above his chamber door -" + - "Bird or beast above the sculptured bust above his chamber door," + - "With such name as `Nevermore.'" + - "\n" + - "But the raven, sitting lonely on the placid bust, spoke only," + - "That one word, as if his soul in that one word he did outpour." + - "Nothing further then he uttered - not a feather then he fluttered -" + - "Till I scarcely more than muttered `Other friends have flown before -" + - "On the morrow he will leave me, as my hopes have flown before.'" + - "Then the bird said, `Nevermore.'" + - "\n" + - "Startled at the stillness broken by reply so aptly spoken," + - "`Doubtless,' said I, `what it utters is its only stock and store," + - "Caught from some unhappy master whom unmerciful disaster" + - "Followed fast and followed faster till his songs one burden bore -" + - "Till the dirges of his hope that melancholy burden bore" + - "Of \"Never-nevermore.\"'" + - "\n" + - "But the raven still beguiling all my sad soul into smiling," + - "Straight I wheeled a cushioned seat in front of bird and bust and door;" + - "Then, upon the velvet sinking, I betook myself to linking" + - "Fancy unto fancy, thinking what this ominous bird of yore -" + - "What this grim, ungainly, ghastly, gaunt, and ominous bird of yore" + - "Meant in croaking `Nevermore.'" + - "\n" + - "This I sat engaged in guessing, but no syllable expressing" + - "To the fowl whose fiery eyes now burned into my bosom's core;" + - "This and more I sat divining, with my head at ease reclining" + - "On the cushion's velvet lining that the lamp-light gloated o'er," + - "But whose velvet violet lining with the lamp-light gloating o'er," + - "She shall press, ah, nevermore!" + - "\n" + - "Then, methought, the air grew denser, perfumed from an unseen censer" + - "Swung by Seraphim whose foot-falls tinkled on the tufted floor." + - "`Wretch,' I cried, `thy God hath lent thee - by these angels he has sent thee" + - "Respite - respite and nepenthe from thy memories of Lenore!" + - "Quaff, oh quaff this kind nepenthe, and forget this lost Lenore!'" + - "Quoth the raven, `Nevermore.'" + - "\n" + - "`Prophet!' said I, `thing of evil! - prophet still, if bird or devil! -" + - "Whether tempter sent, or whether tempest tossed thee here ashore," + - "Desolate yet all undaunted, on this desert land enchanted -" + - "On this home by horror haunted - tell me truly, I implore -" + - "Is there - is there balm in Gilead? - tell me - tell me, I implore!'" + - "Quoth the raven, `Nevermore.'" + - "\n" + - "`Prophet!' said I, `thing of evil! - prophet still, if bird or devil!" + - "By that Heaven that bends above us - by that God we both adore -" + - "Tell this soul with sorrow laden if, within the distant Aidenn," + - "It shall clasp a sainted maiden whom the angels named Lenore -" + - "Clasp a rare and radiant maiden, whom the angels named Lenore?'" + - "Quoth the raven, `Nevermore.'" + - "\n" + - "`Be that word our sign of parting, bird or fiend!' I shrieked upstarting -" + - "`Get thee back into the tempest and the Night's Plutonian shore!" + - "Leave no black plume as a token of that lie thy soul hath spoken!" + - "Leave my loneliness unbroken! - quit the bust above my door!" + - "Take thy beak from out my heart, and take thy form from off my door!'" + - "Quoth the raven, `Nevermore.'" + - "\n" + - "And the raven, never flitting, still is sitting, still is sitting" + - "On the pallid bust of Pallas just above my chamber door;" + - "And his eyes have all the seeming of a demon's that is dreaming," + - "And the lamp-light o'er him streaming throws his shadow on the floor;" + - "And my soul from out that shadow that lies floating on the floor" + - "Shall be lifted - nevermore!" + "Over many a quaint and curious volume of forgotten lore," + + "While I nodded, nearly napping, suddenly there came a tapping," + + "As of some one gently rapping, rapping at my chamber door." + + "`'Tis some visitor,' I muttered, `tapping at my chamber door -" + + "Only this, and nothing more.'" + + "Ah, distinctly I remember it was in the bleak December," + + "And each separate dying ember wrought its ghost upon the floor." + + "Eagerly I wished the morrow; - vainly I had sought to borrow" + + "From my books surcease of sorrow - sorrow for the lost Lenore -" + + "For the rare and radiant maiden whom the angels named Lenore -" + + "Nameless here for evermore." + + "\n" + + "And the silken sad uncertain rustling of each purple curtain" + + "Thrilled me - filled me with fantastic terrors never felt before;" + + "So that now, to still the beating of my heart, I stood repeating" + + "`'Tis some visitor entreating entrance at my chamber door -" + + "Some late visitor entreating entrance at my chamber door; -" + + "This it is, and nothing more,'" + + "Presently my soul grew stronger; hesitating then no longer," + + "`Sir,' said I, `or Madam, truly your forgiveness I implore;" + + "But the fact is I was napping, and so gently you came rapping," + + "And so faintly you came tapping, tapping at my chamber door," + + "That I scarce was sure I heard you' - here I opened wide the door; -" + + "Darkness there, and nothing more." + + "\n" + + "Deep into that darkness peering, long I stood there wondering, fearing," + + "Doubting, dreaming dreams no mortal ever dared to dream before" + + "But the silence was unbroken, and the darkness gave no token," + + "And the only word there spoken was the whispered word, `Lenore!'" + + "This I whispered, and an echo murmured back the word, `Lenore!'" + + "Merely this and nothing more." + + "\n" + + "Back into the chamber turning, all my soul within me burning," + + "Soon again I heard a tapping somewhat louder than before." + + "`Surely,' said I, `surely that is something at my window lattice;" + + "Let me see then, what thereat is, and this mystery explore -" + + "Let my heart be still a moment and this mystery explore; -" + + "'Tis the wind and nothing more!'" + + "\n" + + "Open here I flung the shutter, when, with many a flirt and flutter," + + "In there stepped a stately raven of the saintly days of yore." + + "Not the least obeisance made he; not a minute stopped or stayed he;" + + "But, with mien of lord or lady, perched above my chamber door -" + + "Perched upon a bust of Pallas just above my chamber door -" + + "Perched, and sat, and nothing more." + + "\n" + + "Then this ebony bird beguiling my sad fancy into smiling," + + "By the grave and stern decorum of the countenance it wore," + + "`Though thy crest be shorn and shaven, thou,' I said, `art sure no craven." + + "Ghastly grim and ancient raven wandering from the nightly shore -" + + "Tell me what thy lordly name is on the Night's Plutonian shore!'" + + "Quoth the raven, `Nevermore.'" + + "-n" + + "Much I marvelled this ungainly fowl to hear discourse so plainly," + + "Though its answer little meaning - little relevancy bore;" + + "For we cannot help agreeing that no living human being" + + "Ever yet was blessed with seeing bird above his chamber door -" + + "Bird or beast above the sculptured bust above his chamber door," + + "With such name as `Nevermore.'" + + "\n" + + "But the raven, sitting lonely on the placid bust, spoke only," + + "That one word, as if his soul in that one word he did outpour." + + "Nothing further then he uttered - not a feather then he fluttered -" + + "Till I scarcely more than muttered `Other friends have flown before -" + + "On the morrow he will leave me, as my hopes have flown before.'" + + "Then the bird said, `Nevermore.'" + + "\n" + + "Startled at the stillness broken by reply so aptly spoken," + + "`Doubtless,' said I, `what it utters is its only stock and store," + + "Caught from some unhappy master whom unmerciful disaster" + + "Followed fast and followed faster till his songs one burden bore -" + + "Till the dirges of his hope that melancholy burden bore" + + "Of \"Never-nevermore.\"'" + + "\n" + + "But the raven still beguiling all my sad soul into smiling," + + "Straight I wheeled a cushioned seat in front of bird and bust and door;" + + "Then, upon the velvet sinking, I betook myself to linking" + + "Fancy unto fancy, thinking what this ominous bird of yore -" + + "What this grim, ungainly, ghastly, gaunt, and ominous bird of yore" + + "Meant in croaking `Nevermore.'" + + "\n" + + "This I sat engaged in guessing, but no syllable expressing" + + "To the fowl whose fiery eyes now burned into my bosom's core;" + + "This and more I sat divining, with my head at ease reclining" + + "On the cushion's velvet lining that the lamp-light gloated o'er," + + "But whose velvet violet lining with the lamp-light gloating o'er," + + "She shall press, ah, nevermore!" + + "\n" + + "Then, methought, the air grew denser, perfumed from an unseen censer" + + "Swung by Seraphim whose foot-falls tinkled on the tufted floor." + + "`Wretch,' I cried, `thy God hath lent thee - by these angels he has sent thee" + + "Respite - respite and nepenthe from thy memories of Lenore!" + + "Quaff, oh quaff this kind nepenthe, and forget this lost Lenore!'" + + "Quoth the raven, `Nevermore.'" + + "\n" + + "`Prophet!' said I, `thing of evil! - prophet still, if bird or devil! -" + + "Whether tempter sent, or whether tempest tossed thee here ashore," + + "Desolate yet all undaunted, on this desert land enchanted -" + + "On this home by horror haunted - tell me truly, I implore -" + + "Is there - is there balm in Gilead? - tell me - tell me, I implore!'" + + "Quoth the raven, `Nevermore.'" + + "\n" + + "`Prophet!' said I, `thing of evil! - prophet still, if bird or devil!" + + "By that Heaven that bends above us - by that God we both adore -" + + "Tell this soul with sorrow laden if, within the distant Aidenn," + + "It shall clasp a sainted maiden whom the angels named Lenore -" + + "Clasp a rare and radiant maiden, whom the angels named Lenore?'" + + "Quoth the raven, `Nevermore.'" + + "\n" + + "`Be that word our sign of parting, bird or fiend!' I shrieked upstarting -" + + "`Get thee back into the tempest and the Night's Plutonian shore!" + + "Leave no black plume as a token of that lie thy soul hath spoken!" + + "Leave my loneliness unbroken! - quit the bust above my door!" + + "Take thy beak from out my heart, and take thy form from off my door!'" + + "Quoth the raven, `Nevermore.'" + + "\n" + + "And the raven, never flitting, still is sitting, still is sitting" + + "On the pallid bust of Pallas just above my chamber door;" + + "And his eyes have all the seeming of a demon's that is dreaming," + + "And the lamp-light o'er him streaming throws his shadow on the floor;" + + "And my soul from out that shadow that lies floating on the floor" + + "Shall be lifted - nevermore!" + +var ALL_THE_HOPELESS_MORE = 18; -var ALL_THE_HOPELESS_MORE=18; - var __re = /([Nn]?ever|([Nn]othing\s{1,}))more/g; -var __matched=0; +var __matched = 0; -do{ - var __executed = __re.exec(__the__raven); - if (__executed !== null) { - __matched++; - } else { - break; - } -}while(1); +do { + var __executed = __re.exec(__the__raven); + if (__executed !== null) { + __matched++; + } else { + break; + } +} while (1); //CHECK#1 if (__matched !== ALL_THE_HOPELESS_MORE) { - $ERROR('#1: __re = /([Nn]?ever|([Nn]othing\\s{1,}))more/g; __executed = __re.exec(__the__raven)'+__matched); + $ERROR('#1: __re = /([Nn]?ever|([Nn]othing\\s{1,}))more/g; __executed = __re.exec(__the__raven)' + __matched); } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T5.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T5.js index bd8109d4ea..2ed60a6868 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 8bef077da6..fa53c3d24b 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 57d17d1f2b..822ba2de76 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 2f080253f1..0e837302fe 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 404c48956a..48a01b27ed 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T10.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T10.js @@ -21,27 +21,31 @@ __expected.input = "aacd2233ab12nm444ab42"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } -var __obj = {valueOf:function(){return 12;}}; +var __obj = { + valueOf: function() { + return 12; + } +}; __re.lastIndex = __obj; @@ -53,22 +57,22 @@ __expected.input = "aacd2233ab12nm444ab42"; //CHECK#5 if (__executed.length !== __expected.length) { - $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __obj = {valueOf:function(){return 12;}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __obj = {valueOf:function(){return 12;}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#6 if (__executed.index !== __expected.index) { - $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __obj = {valueOf:function(){return 12;}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __obj = {valueOf:function(){return 12;}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#7 if (__executed.input !== __expected.input) { - $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __obj = {valueOf:function(){return 12;}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __obj = {valueOf:function(){return 12;}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#8 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __obj = {valueOf:function(){return 12;}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __obj = {valueOf:function(){return 12;}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T11.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T11.js index b375c31d94..d9e466e2d6 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T11.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T11.js @@ -21,27 +21,31 @@ __expected.input = "aacd2233ab12nm444ab42"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } -var __obj = {valueOf:function(){throw "intoint";}}; +var __obj = { + valueOf: function() { + throw "intoint"; + } +}; __re.lastIndex = __obj; @@ -49,7 +53,7 @@ __re.lastIndex = __obj; try { $ERROR('#5.1: __obj = {valueOf:function(){throw "intoint";}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42") throw "intoint". Actual: ' + (__re.exec("aacd2233ab12nm444ab42"))); } catch (e) { - if (e !== "intoint") { - $ERROR('#5.2: __obj = {valueOf:function(){throw "intoint";}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42") throw "intoint". Actual: ' + (e)); - } + if (e !== "intoint") { + $ERROR('#5.2: __obj = {valueOf:function(){throw "intoint";}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42") throw "intoint". Actual: ' + (e)); + } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T12.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T12.js index 34693e3359..770b1cc409 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T12.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T12.js @@ -22,27 +22,34 @@ __expected.input = "aacd2233ab12nm444ab42"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } -var __obj = {toString:function(){return 12;},valueOf:function(){return {};}}; +var __obj = { + toString: function() { + return 12; + }, + valueOf: function() { + return {}; + } +}; __re.lastIndex = __obj; @@ -54,22 +61,22 @@ __expected.input = "aacd2233ab12nm444ab42"; //CHECK#5 if (__executed.length !== __expected.length) { - $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __obj = {toString:function(){return 12;},valueOf:function(){return {};}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __obj = {toString:function(){return 12;},valueOf:function(){return {};}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#6 if (__executed.index !== __expected.index) { - $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __obj = {toString:function(){return 12;},valueOf:function(){return {};}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __obj = {toString:function(){return 12;},valueOf:function(){return {};}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#7 if (__executed.input !== __expected.input) { - $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __obj = {toString:function(){return 12;},valueOf:function(){return {};}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __obj = {toString:function(){return 12;},valueOf:function(){return {};}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#8 -for(var index=0; index<__expected.length; index++) { - if (__executed[index] !== __expected[index]) { - $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __obj = {toString:function(){return 12;},valueOf:function(){return {};}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); - } +for (var index = 0; index < __expected.length; index++) { + if (__executed[index] !== __expected[index]) { + $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __obj = {toString:function(){return 12;},valueOf:function(){return {};}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T2.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T2.js index ab07be7a45..1947c862e3 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 e770aec3eb..a664bf88ae 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 249609f650..f879755918 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 295aac5960..3043cb53d8 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 3c852b3085..4a9f46912f 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 e3f478c525..5b555279a5 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 b82c014f46..10315051d4 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 7dc9e0ffad..5f710578e5 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 a7b9e0283a..0ee3bf9c07 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 9bd529e028..c2a6c7a47d 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 f65ed49379..8458728a60 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 c891da096b..22b98fa19a 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 a6c26e1e5c..5ba6e38de5 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 e1997fbbf2..7a86bd1384 100644 --- a/test/built-ins/RegExp/prototype/exec/success-g-lastindex-no-access.js +++ b/test/built-ins/RegExp/prototype/exec/success-g-lastindex-no-access.js @@ -30,4 +30,3 @@ assert.sameValue(result.length, 1); assert.sameValue(result[0], 'a'); assert.sameValue(r.lastIndex, 1); assert.sameValue(lastIndexReads, 1); - diff --git a/test/built-ins/RegExp/prototype/global/15.10.7.2-2.js b/test/built-ins/RegExp/prototype/global/15.10.7.2-2.js index bc00e211fd..a4f42010aa 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 4826409699..a03c1881c5 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 60fecfef54..8fbc655423 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 7969581b14..fdfe258b17 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 3b0ca4ddea..62308d478e 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 01344abce0..d246cbf20d 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 2cd4e78079..0cf733d866 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A10.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A10.js @@ -15,7 +15,9 @@ if (RegExp.prototype.test.hasOwnProperty('length') !== true) { var __obj = RegExp.prototype.test.length; -verifyNotWritable(RegExp.prototype.test, "length", null, function(){return "shifted";}); +verifyNotWritable(RegExp.prototype.test, "length", null, function() { + return "shifted"; +}); //CHECK#2 if (RegExp.prototype.test.length !== __obj) { diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T1.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T1.js index 5fcda8dca5..8bdaa0b169 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 de045b10f7..6257f4faca 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 0663d82c91..2a31a44585 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 40e81bc407..bfe91eaeac 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T12.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T12.js @@ -9,10 +9,14 @@ description: > Math.PI;}} ---*/ -var __string = {toString:function(){return Math.PI;}}; +var __string = { + toString: function() { + return Math.PI; + } +}; var __re = /\.14/; //CHECK#0 if (__re.test(__string) !== (__re.exec(__string) !== null)) { - $ERROR('#0: var __string = {toString:function(){return Math.PI;}}; __re = /\\.14/; __re.test(__string) === (__re.exec(__string) !== null)'); + $ERROR('#0: var __string = {toString:function(){return Math.PI;}}; __re = /\\.14/; __re.test(__string) === (__re.exec(__string) !== null)'); } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T13.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T13.js index bf1374b1ae..35cc9c8b4d 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 813a98cdb7..e81f967661 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 ff62b3be73..aa38d1a654 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T15.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T15.js @@ -9,10 +9,14 @@ description: > false;}} ---*/ -var __string = {toString:function(){return false;}}; +var __string = { + toString: function() { + return false; + } +}; var __re = /LS/i; //CHECK#0 if (__re.test(__string) !== (__re.exec(__string) !== null)) { - $ERROR('#0: var __string = {toString:function(){return false;}}; __re = /LS/i; __re.test(__string) === (__re.exec(__string) !== null)'); + $ERROR('#0: var __string = {toString:function(){return false;}}; __re = /LS/i; __re.test(__string) === (__re.exec(__string) !== null)'); } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T16.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T16.js index 7aa80a6cbc..730d5c0d69 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 030933e715..829f24d842 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 7b05aba060..be53956ae5 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 7ac446dbcd..c9fc6b7d62 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 1450311d4a..ce4876517b 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 15bf3b7bc3..e739a9167c 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 aa7ca15957..880d6d231e 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 73af4f879b..fc5f9d30b6 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 6ce78d0653..8851e7cfe9 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 444fbebb3c..953ec5b0a3 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T4.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T4.js @@ -9,10 +9,14 @@ description: > {toString:function(){return "abcdefghi";}} ---*/ -var __string = {toString:function(){return "abcdefghi";}}; +var __string = { + toString: function() { + return "abcdefghi"; + } +}; var __re = /a[a-z]{2,4}?/; //CHECK#0 if (__re.test(__string) !== (__re.exec(__string) !== null)) { - $ERROR('#0: var __string = {toString:function(){return "abcdefghi";}}; __re = /a[a-z]{2,4}?/; __re.test(__string) === (__re.exec(__string) !== null)'); + $ERROR('#0: var __string = {toString:function(){return "abcdefghi";}}; __re = /a[a-z]{2,4}?/; __re.test(__string) === (__re.exec(__string) !== null)'); } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T5.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T5.js index fd79faab48..c8fb25eb2a 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T5.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T5.js @@ -10,10 +10,17 @@ description: > "aabaac";}} ---*/ -var __string = {toString:function(){return {};}, valueOf:function(){return "aabaac";}}; +var __string = { + toString: function() { + return {}; + }, + valueOf: function() { + return "aabaac"; + } +}; var __re = /(aa|aabaac|ba|b|c)*/; //CHECK#0 if (__re.test(__string) !== (__re.exec(__string) !== null)) { - $ERROR('#0: var __string = {toString:function(){return {};}, valueOf:function(){return "aabaac";}}; __re = /(aa|aabaac|ba|b|c)*/; __re.test(__string) === (__re.exec(__string) !== null)'); + $ERROR('#0: var __string = {toString:function(){return {};}, valueOf:function(){return "aabaac";}}; __re = /(aa|aabaac|ba|b|c)*/; __re.test(__string) === (__re.exec(__string) !== null)'); } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T6.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T6.js index 9391e3eca6..2dcb863c3b 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T6.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T6.js @@ -12,6 +12,10 @@ description: > var __re = /(z)((a+)?(b+)?(c))*/; //CHECK#0 -if (__re.test((function(){return "zaacbbbcac"})()) !== (__re.exec((function(){return "zaacbbbcac"})()) !== null)) { - $ERROR('#0: __re = /(z)((a+)?(b+)?(c))*/; __re.test((function(){return "zaacbbbcac"})()) === (__re.exec((function(){return "zaacbbbcac"})()) !== null)'); +if (__re.test((function() { + return "zaacbbbcac" + })()) !== (__re.exec((function() { + return "zaacbbbcac" + })()) !== null)) { + $ERROR('#0: __re = /(z)((a+)?(b+)?(c))*/; __re.test((function(){return "zaacbbbcac"})()) === (__re.exec((function(){return "zaacbbbcac"})()) !== null)'); } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T7.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T7.js index b51f07c96d..87b085bcda 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T7.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T7.js @@ -11,9 +11,13 @@ description: > //CHECK#1 try { - $ERROR('#1.1: /[a-z]/.test({toString:function(){throw "intostr";}}) throw "intostr". Actual: ' + (/[a-z]/.test({toString:function(){throw "intostr";}}))); + $ERROR('#1.1: /[a-z]/.test({toString:function(){throw "intostr";}}) throw "intostr". Actual: ' + (/[a-z]/.test({ + toString: function() { + throw "intostr"; + } + }))); } catch (e) { - if (e !== "intostr") { - $ERROR('#1.2: /[a-z]/.test({toString:function(){throw "intostr";}}) throw "intostr". Actual: ' + (e)); - } + if (e !== "intostr") { + $ERROR('#1.2: /[a-z]/.test({toString:function(){throw "intostr";}}) throw "intostr". Actual: ' + (e)); + } } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T8.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T8.js index 3380f6b60b..7902bbd728 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T8.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T8.js @@ -11,7 +11,12 @@ description: > //CHECK#1 try { - $ERROR('#1.1: /[a-z]/.test({toString:void 0, valueOf:function(){throw "invalof";}}) throw "invalof". Actual: ' + (/[a-z]/.test({toString:void 0, valueOf:function(){throw "invalof";}}))); + $ERROR('#1.1: /[a-z]/.test({toString:void 0, valueOf:function(){throw "invalof";}}) throw "invalof". Actual: ' + (/[a-z]/.test({ + toString: void 0, + valueOf: function() { + throw "invalof"; + } + }))); } catch (e) { if (e !== "invalof") { $ERROR('#1.2: /[a-z]/.test({toString:void 0, valueOf:function(){throw "invalof";}}) throw "invalof". Actual: ' + (e)); diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T9.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T9.js index 5ff8d3dec3..45d0268d9c 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 e3f540e240..ab12ae41cb 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 85f5cd90cb..19ed78f645 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 5040c3dde6..dbf2ab6dce 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 f94a6fa0f9..646cc8020a 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 fdc0c6affd..4a1709205e 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 ce3af83844..52de15e0c7 100644 --- a/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A10.js +++ b/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A10.js @@ -12,14 +12,16 @@ includes: [propertyHelper.js] //CHECK#1 if (RegExp.prototype.toString.hasOwnProperty('length') !== true) { - $ERROR('#1: RegExp.prototype.toString.hasOwnProperty(\'length\') === true'); + $ERROR('#1: RegExp.prototype.toString.hasOwnProperty(\'length\') === true'); } var __obj = RegExp.prototype.toString.length; -verifyNotWritable(RegExp.prototype.toString, "length", null, function(){return "shifted";}); +verifyNotWritable(RegExp.prototype.toString, "length", null, function() { + return "shifted"; +}); //CHECK#2 if (RegExp.prototype.toString.length !== __obj) { - $ERROR('#2: __obj = RegExp.prototype.toString.length; RegExp.prototype.toString.length = function(){return "shifted";}; RegExp.prototype.toString.length === __obj. Actual: ' + (RegExp.prototype.toString.length)); + $ERROR('#2: __obj = RegExp.prototype.toString.length; RegExp.prototype.toString.length = function(){return "shifted";}; RegExp.prototype.toString.length === __obj. Actual: ' + (RegExp.prototype.toString.length)); } diff --git a/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A11.js b/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A11.js index a54502d5c3..1d57d4f648 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 13cc68d813..ad495948e8 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 ea4099dba2..0f619e93d9 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 8d8135160f..8346de727d 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 5d8cf797a5..61f2b4233e 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 a7e86715b3..b1c3907a45 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 336a36f086..b8a2669fbf 100644 --- a/test/built-ins/RegExp/unicode_restricted_identity_escape_c.js +++ b/test/built-ins/RegExp/unicode_restricted_identity_escape_c.js @@ -19,7 +19,9 @@ function isAlpha(c) { // // AtomEscape[U] :: CharacterEscape[?U] // CharacterEscape[U] :: c ControlLetter -assert.throws(SyntaxError, function() { RegExp("\\c", "u"); }); +assert.throws(SyntaxError, function() { + RegExp("\\c", "u"); +}); for (var cu = 0x00; cu <= 0x7f; ++cu) { var s = String.fromCharCode(cu); if (!isAlpha(s)) { @@ -34,7 +36,9 @@ for (var cu = 0x00; cu <= 0x7f; ++cu) { // // ClassEscape[U] :: CharacterEscape[?U] // CharacterEscape[U] :: c ControlLetter -assert.throws(SyntaxError, function() { RegExp("[\\c]", "u"); }); +assert.throws(SyntaxError, function() { + RegExp("[\\c]", "u"); +}); for (var cu = 0x00; cu <= 0x7f; ++cu) { var s = String.fromCharCode(cu); if (!isAlpha(s)) { diff --git a/test/built-ins/Set/properties-of-the-set-prototype-object.js b/test/built-ins/Set/properties-of-the-set-prototype-object.js index ad46ab8167..f32c807588 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 fe5f45fb1e..966ec80dfd 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 f902a2134e..775cd37a8f 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 ae21ec5e07..37519db7ef 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 0298ce8086..6704819462 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 b7749a9dc6..7ea0c2f466 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 98a5dfd952..3d770e4c96 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 73930249cb..b60455a021 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 6dbdb631ed..eac255331f 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 15ed3a2e1e..1726e96cd2 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 f654ca200e..772a742d05 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 05bd329341..8bed7599a5 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 92d63cfd39..49ba06e754 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 b3e1b02c39..7b04f84610 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 dae711e14b..7a2604657a 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 78e71e4994..b785272e12 100644 --- a/test/built-ins/Set/prototype/has/returns-false-when-undefined-added-deleted-not-present-undefined.js +++ b/test/built-ins/Set/prototype/has/returns-false-when-undefined-added-deleted-not-present-undefined.js @@ -19,4 +19,3 @@ var result = s.delete(undefined); assert.sameValue(s.has(undefined), false, "`s.has(undefined)` returns `false`"); assert.sameValue(result, true, "The result of `s.delete(undefined)` is `true`"); - diff --git a/test/built-ins/Set/prototype/keys/keys.js b/test/built-ins/Set/prototype/keys/keys.js index 7b3f8a0b8b..f5065081a2 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 d3c6c401bf..db02a7bbbc 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 e58e932636..4f9121c9f2 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 fa2c30b9db..ad077f6330 100644 --- a/test/built-ins/Set/set-iterator-close-after-add-failure.js +++ b/test/built-ins/Set/set-iterator-close-after-add-failure.js @@ -25,14 +25,19 @@ var iterable = {}; iterable[Symbol.iterator] = function() { return { next: function() { - return { value: null, done: false }; + return { + value: null, + done: false + }; }, return: function() { count += 1; } }; }; -Set.prototype.add = function() { throw new Error(); } +Set.prototype.add = function() { + throw new Error(); +} assert.throws(Error, function() { new Set(iterable); diff --git a/test/built-ins/Set/set-iterator-next-failure.js b/test/built-ins/Set/set-iterator-next-failure.js index 9879baf9bf..171abef9c5 100644 --- a/test/built-ins/Set/set-iterator-next-failure.js +++ b/test/built-ins/Set/set-iterator-next-failure.js @@ -15,6 +15,7 @@ features: [Symbol.iterator] ---*/ var iterable = {}; + function MyError() {}; iterable[Symbol.iterator] = function() { return { diff --git a/test/built-ins/Set/set-iterator-value-failure.js b/test/built-ins/Set/set-iterator-value-failure.js index 04e943a419..ac45b116fa 100644 --- a/test/built-ins/Set/set-iterator-value-failure.js +++ b/test/built-ins/Set/set-iterator-value-failure.js @@ -17,6 +17,7 @@ features: [Symbol.iterator] var count = 0; var iterable = {}; + function MyError() {} iterable[Symbol.iterator] = function() { return { diff --git a/test/built-ins/Set/set-newtarget.js b/test/built-ins/Set/set-newtarget.js index fb7cd1d67c..d5d9613e0c 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 6f1269bdb3..8f2562fe9e 100644 --- a/test/built-ins/SetIteratorPrototype/next/this-not-object-throw-keys.js +++ b/test/built-ins/SetIteratorPrototype/next/this-not-object-throw-keys.js @@ -17,7 +17,10 @@ features: - Symbol.iterator ---*/ -var set = new Set([[1, 11], [2, 22]]); +var set = new Set([ + [1, 11], + [2, 22] +]); var iterator = set.keys(); assert.throws(TypeError, function() { diff --git a/test/built-ins/SetIteratorPrototype/next/this-not-object-throw-prototype-iterator.js b/test/built-ins/SetIteratorPrototype/next/this-not-object-throw-prototype-iterator.js index 1d589b0fe6..1c622ba8dd 100644 --- a/test/built-ins/SetIteratorPrototype/next/this-not-object-throw-prototype-iterator.js +++ b/test/built-ins/SetIteratorPrototype/next/this-not-object-throw-prototype-iterator.js @@ -17,7 +17,10 @@ features: - Symbol.iterator ---*/ -var set = new Set([[1, 11], [2, 22]]); +var set = new Set([ + [1, 11], + [2, 22] +]); var iterator = set[Symbol.iterator](); assert.throws(TypeError, function() { diff --git a/test/built-ins/SetIteratorPrototype/next/this-not-object-throw-values.js b/test/built-ins/SetIteratorPrototype/next/this-not-object-throw-values.js index 04e44f9856..a5f0c47cfc 100644 --- a/test/built-ins/SetIteratorPrototype/next/this-not-object-throw-values.js +++ b/test/built-ins/SetIteratorPrototype/next/this-not-object-throw-values.js @@ -17,7 +17,10 @@ features: - Symbol.iterator ---*/ -var set = new Set([[1, 11], [2, 22]]); +var set = new Set([ + [1, 11], + [2, 22] +]); var iterator = set.values(); assert.throws(TypeError, function() { diff --git a/test/built-ins/SharedArrayBuffer/data-allocation-after-object-creation.js b/test/built-ins/SharedArrayBuffer/data-allocation-after-object-creation.js index 6e3055f6f0..db067b0af3 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 5fe7033353..9a744c30b5 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 3f0f40e494..57d025952e 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 f7ab35ebe2..e9957b4a64 100644 --- a/test/built-ins/SharedArrayBuffer/prototype/slice/end-default-if-undefined.js +++ b/test/built-ins/SharedArrayBuffer/prototype/slice/end-default-if-undefined.js @@ -12,6 +12,7 @@ info: | var arrayBuffer = new SharedArrayBuffer(8); -var start = 6, end = undefined; +var start = 6, + end = undefined; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 2); diff --git a/test/built-ins/SharedArrayBuffer/prototype/slice/end-exceeds-length.js b/test/built-ins/SharedArrayBuffer/prototype/slice/end-exceeds-length.js index 6c5fcb58e6..65da03f283 100644 --- a/test/built-ins/SharedArrayBuffer/prototype/slice/end-exceeds-length.js +++ b/test/built-ins/SharedArrayBuffer/prototype/slice/end-exceeds-length.js @@ -12,14 +12,17 @@ info: | var arrayBuffer = new SharedArrayBuffer(8); -var start = 1, end = 12; +var start = 1, + end = 12; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 7, "slice(1, 12)"); -var start = 2, end = 0x100000000; +var start = 2, + end = 0x100000000; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 6, "slice(2, 0x100000000)"); -var start = 3, end = +Infinity; +var start = 3, + end = +Infinity; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 5, "slice(3, Infinity)"); diff --git a/test/built-ins/SharedArrayBuffer/prototype/slice/negative-end.js b/test/built-ins/SharedArrayBuffer/prototype/slice/negative-end.js index efdcbeec1e..cfb7288ad6 100644 --- a/test/built-ins/SharedArrayBuffer/prototype/slice/negative-end.js +++ b/test/built-ins/SharedArrayBuffer/prototype/slice/negative-end.js @@ -12,14 +12,17 @@ info: | var arrayBuffer = new SharedArrayBuffer(8); -var start = 2, end = -4; +var start = 2, + end = -4; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 2, "slice(2, -4)"); -var start = 2, end = -10; +var start = 2, + end = -10; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 0, "slice(2, -10)"); -var start = 2, end = -Infinity; +var start = 2, + end = -Infinity; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 0, "slice(2, -Infinity)"); diff --git a/test/built-ins/SharedArrayBuffer/prototype/slice/negative-start.js b/test/built-ins/SharedArrayBuffer/prototype/slice/negative-start.js index 9312d273d8..19e276a653 100644 --- a/test/built-ins/SharedArrayBuffer/prototype/slice/negative-start.js +++ b/test/built-ins/SharedArrayBuffer/prototype/slice/negative-start.js @@ -12,14 +12,17 @@ info: | var arrayBuffer = new SharedArrayBuffer(8); -var start = -5, end = 6; +var start = -5, + end = 6; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 3, "slice(-5, 6)"); -var start = -12, end = 6; +var start = -12, + end = 6; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 6, "slice(-12, 6)"); -var start = -Infinity, end = 6; +var start = -Infinity, + end = 6; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 6, "slice(-Infinity, 6)"); diff --git a/test/built-ins/SharedArrayBuffer/prototype/slice/nonconstructor.js b/test/built-ins/SharedArrayBuffer/prototype/slice/nonconstructor.js index 98770045bf..ca61abaa9b 100644 --- a/test/built-ins/SharedArrayBuffer/prototype/slice/nonconstructor.js +++ b/test/built-ins/SharedArrayBuffer/prototype/slice/nonconstructor.js @@ -17,4 +17,6 @@ info: | assert.sameValue(Object.prototype.hasOwnProperty.call(SharedArrayBuffer.prototype.slice, "prototype"), false); var arrayBuffer = new SharedArrayBuffer(8); -assert.throws(TypeError, function() { new arrayBuffer.slice(); }); +assert.throws(TypeError, function() { + new arrayBuffer.slice(); +}); diff --git a/test/built-ins/SharedArrayBuffer/prototype/slice/species-constructor-is-not-object.js b/test/built-ins/SharedArrayBuffer/prototype/slice/species-constructor-is-not-object.js index b3f0456525..ea4595dc09 100644 --- a/test/built-ins/SharedArrayBuffer/prototype/slice/species-constructor-is-not-object.js +++ b/test/built-ins/SharedArrayBuffer/prototype/slice/species-constructor-is-not-object.js @@ -13,7 +13,9 @@ features: [Symbol] var arrayBuffer = new SharedArrayBuffer(8); -function callSlice() { arrayBuffer.slice(); } +function callSlice() { + arrayBuffer.slice(); +} arrayBuffer.constructor = null; assert.throws(TypeError, callSlice, "`constructor` value is null"); diff --git a/test/built-ins/SharedArrayBuffer/prototype/slice/species-is-not-constructor.js b/test/built-ins/SharedArrayBuffer/prototype/slice/species-is-not-constructor.js index e403a69a0b..4e5e392fc7 100644 --- a/test/built-ins/SharedArrayBuffer/prototype/slice/species-is-not-constructor.js +++ b/test/built-ins/SharedArrayBuffer/prototype/slice/species-is-not-constructor.js @@ -16,7 +16,9 @@ var speciesConstructor = {}; var arrayBuffer = new SharedArrayBuffer(8); arrayBuffer.constructor = speciesConstructor; -function callSlice() { arrayBuffer.slice(); } +function callSlice() { + arrayBuffer.slice(); +} speciesConstructor[Symbol.species] = {}; assert.throws(TypeError, callSlice, "`constructor[Symbol.species]` value is Object"); diff --git a/test/built-ins/SharedArrayBuffer/prototype/slice/species-is-not-object.js b/test/built-ins/SharedArrayBuffer/prototype/slice/species-is-not-object.js index 350ba71c4d..9e13981089 100644 --- a/test/built-ins/SharedArrayBuffer/prototype/slice/species-is-not-object.js +++ b/test/built-ins/SharedArrayBuffer/prototype/slice/species-is-not-object.js @@ -16,7 +16,9 @@ var speciesConstructor = {}; var arrayBuffer = new SharedArrayBuffer(8); arrayBuffer.constructor = speciesConstructor; -function callSlice() { arrayBuffer.slice(); } +function callSlice() { + arrayBuffer.slice(); +} speciesConstructor[Symbol.species] = true; assert.throws(TypeError, callSlice, "`constructor[Symbol.species]` value is Boolean"); diff --git a/test/built-ins/SharedArrayBuffer/prototype/slice/start-default-if-undefined.js b/test/built-ins/SharedArrayBuffer/prototype/slice/start-default-if-undefined.js index 83ef93ec38..6a4809c218 100644 --- a/test/built-ins/SharedArrayBuffer/prototype/slice/start-default-if-undefined.js +++ b/test/built-ins/SharedArrayBuffer/prototype/slice/start-default-if-undefined.js @@ -11,6 +11,7 @@ info: | var arrayBuffer = new SharedArrayBuffer(8); -var start = undefined, end = 6; +var start = undefined, + end = 6; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 6); diff --git a/test/built-ins/SharedArrayBuffer/prototype/slice/start-exceeds-end.js b/test/built-ins/SharedArrayBuffer/prototype/slice/start-exceeds-end.js index 2f2e3a47f9..20b05d8171 100644 --- a/test/built-ins/SharedArrayBuffer/prototype/slice/start-exceeds-end.js +++ b/test/built-ins/SharedArrayBuffer/prototype/slice/start-exceeds-end.js @@ -12,6 +12,7 @@ info: | var arrayBuffer = new SharedArrayBuffer(8); -var start = 5, end = 4; +var start = 5, + end = 4; var result = arrayBuffer.slice(start, end); assert.sameValue(result.byteLength, 0); diff --git a/test/built-ins/String/15.5.5.5.2-1-1.js b/test/built-ins/String/15.5.5.5.2-1-1.js index acbb0c8979..98c0f6eef1 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 851636111f..9efad2dcdf 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 9b9f81b517..a493c5990b 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 5f67b04a2f..dc6f986798 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 5557726303..25546a0c4a 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 e02a8931c1..8ffbdbb7bf 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 04818478c5..fc2e535d78 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 7f07873910..3054072d8b 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 6f974d61f9..1b60af2057 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 9243d40497..92d91bf239 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 6c19ec9e6e..d9ecc4a7d9 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 c1f7e04c0b..3bbe6005fb 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 8d3cea0d62..f23c8f9fee 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 be718e79ad..8cf1869b13 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 65ae34d4c6..85c920644f 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 794b4f033b..55598c4bcc 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 9543e370ef..6ce2f8542c 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 2a199ca72d..dfb9def713 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 02253bd814..2d92a9509c 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 415e699004..43d5585dfc 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 80e4b332f9..dff5f4d4ca 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 fa12b41b4d..69947b9bcf 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 408fb4bf68..85434eb860 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 0ef5d12d11..22a25a26a9 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 4fee548c62..5e58d64fd4 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 288a13b3cb..6fd826c4c2 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 204d8e37b1..b09319278b 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 95d0ea131c..b85534d517 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 19f7db0662..9ec1596f14 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 75f049b4e3..29d6ea6f43 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 a275bd9f6f..6b0596e2b0 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 f6c6e8a607..3df6c62b5a 100644 --- a/test/built-ins/String/S15.5.1.1_A1_T8.js +++ b/test/built-ins/String/S15.5.1.1_A1_T8.js @@ -11,17 +11,19 @@ description: Call String(new Array) var __old__Array__prototype__toString = Array.prototype.toString; -Array.prototype.toString=function(){return "__ARRAY__";}; +Array.prototype.toString = function() { + return "__ARRAY__"; +}; var __str = String(new Array); // restore old toString method just in case -Array.prototype.toString=__old__Array__prototype__toString; +Array.prototype.toString = __old__Array__prototype__toString; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "string") { - $ERROR('#1: __str = String(new Array); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = String(new Array); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -29,7 +31,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__str !== "__ARRAY__") { - $ERROR('#2: Array.prototype.toString=function(){return "__ARRAY__";}; __str = String(new Array); __str === "__ARRAY__". Actual: __str ==='+__str ); + $ERROR('#2: Array.prototype.toString=function(){return "__ARRAY__";}; __str = String(new Array); __str === "__ARRAY__". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.1.1_A1_T9.js b/test/built-ins/String/S15.5.1.1_A1_T9.js index c6b05e738d..5a8e58cc1d 100644 --- a/test/built-ins/String/S15.5.1.1_A1_T9.js +++ b/test/built-ins/String/S15.5.1.1_A1_T9.js @@ -9,14 +9,16 @@ es5id: 15.5.1.1_A1_T9 description: Call String(this) ---*/ -var toString=function(){return "__THIS__";}; +var toString = function() { + return "__THIS__"; +}; var __str = String(this); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "string") { - $ERROR('#1: __str = String(this); typeof __str === "string". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = String(this); typeof __str === "string". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -24,7 +26,7 @@ if (typeof __str !== "string") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__str !== "__THIS__") { - $ERROR('#2: toString=function(){return "__THIS__";}; __str = String(this); __str === "__THIS__". Actual: __str ==='+__str ); + $ERROR('#2: toString=function(){return "__THIS__";}; __str = String(this); __str === "__THIS__". Actual: __str ===' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.1.1_A2_T1.js b/test/built-ins/String/S15.5.1.1_A2_T1.js index 2c395acf32..2a89564337 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 cff64fd347..2b7c835f7b 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 46c0474f10..1b7950e2fd 100644 --- a/test/built-ins/String/S15.5.2.1_A1_T10.js +++ b/test/built-ins/String/S15.5.2.1_A1_T10.js @@ -11,9 +11,11 @@ description: > function object's prototype.toString property was changed ---*/ -function __FACTORY(){}; +function __FACTORY() {}; -__FACTORY.prototype.toString=function(){return "tostr"}; +__FACTORY.prototype.toString = function() { + return "tostr" +}; var __obj = new __FACTORY; @@ -22,7 +24,7 @@ var __str = new String(__obj); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "object") { - $ERROR('#1: __str = new String(__obj); typeof __str === "object". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = new String(__obj); typeof __str === "object". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -30,7 +32,7 @@ if (typeof __str !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#1.5 if (__str.constructor !== String) { - $ERROR('#1.5: __str = new String(__obj); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor ); + $ERROR('#1.5: __str = new String(__obj); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -38,7 +40,7 @@ if (__str.constructor !== String) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__str != "tostr") { - $ERROR('#2: __str = new String(__obj); __str =="tostr". Actual: __str =='+__str ); + $ERROR('#2: __str = new String(__obj); __str =="tostr". Actual: __str ==' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.2.1_A1_T11.js b/test/built-ins/String/S15.5.2.1_A1_T11.js index b3eaf733bf..f44791a9b7 100644 --- a/test/built-ins/String/S15.5.2.1_A1_T11.js +++ b/test/built-ins/String/S15.5.2.1_A1_T11.js @@ -11,11 +11,15 @@ description: > changing function object's valueOf and toString properties ---*/ -function __obj(){}; +function __obj() {}; -__obj.valueOf=function(){return true;}; +__obj.valueOf = function() { + return true; +}; -__obj.toString=function(){return {};}; +__obj.toString = function() { + return {}; +}; var __str = new String(__obj); @@ -24,7 +28,7 @@ var __str = new String(__obj); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "object") { - $ERROR('#1: function __obj(){}; __str = new String(__obj); typeof __str === "object". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: function __obj(){}; __str = new String(__obj); typeof __str === "object". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -32,15 +36,15 @@ if (typeof __str !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#1.5 if (__str.constructor !== String) { - $ERROR('#1.5: __str = new String(__obj); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor ); + $ERROR('#1.5: __str = new String(__obj); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__str !="true") { - $ERROR('#2: function __obj(){}; __str = new String(__obj); __str =="true". Actual: __str =='+__str ); +if (__str != "true") { + $ERROR('#2: function __obj(){}; __str = new String(__obj); __str =="true". Actual: __str ==' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.2.1_A1_T12.js b/test/built-ins/String/S15.5.2.1_A1_T12.js index 092aab2395..76bb3c6eb9 100644 --- a/test/built-ins/String/S15.5.2.1_A1_T12.js +++ b/test/built-ins/String/S15.5.2.1_A1_T12.js @@ -12,9 +12,15 @@ description: > exception throw ---*/ -var __obj = {toString:function(){throw "intostr"}}; +var __obj = { + toString: function() { + throw "intostr" + } +}; -__obj.valueOf=function(){return true}; +__obj.valueOf = function() { + return true +}; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -22,8 +28,8 @@ try { var __str = new String(__obj); $ERROR('#1: var __obj = {toString:function(){throw "intostr"}}; __str = new String(__obj) lead throwing exception'); } catch (e) { - if (e!=="intostr") { - $ERROR('#1.1: e==="intostr". Actual: e==='+e); + if (e !== "intostr") { + $ERROR('#1.1: e==="intostr". Actual: e===' + e); } } // diff --git a/test/built-ins/String/S15.5.2.1_A1_T13.js b/test/built-ins/String/S15.5.2.1_A1_T13.js index dbda18dcf3..45f064f130 100644 --- a/test/built-ins/String/S15.5.2.1_A1_T13.js +++ b/test/built-ins/String/S15.5.2.1_A1_T13.js @@ -12,9 +12,17 @@ description: > exception throw ---*/ -var __obj = {toString:function(){return f; function f(){}}}; +var __obj = { + toString: function() { + return f; -__obj.valueOf=function(){throw "invalueof"}; + function f() {} + } +}; + +__obj.valueOf = function() { + throw "invalueof" +}; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -22,8 +30,8 @@ try { var __str = new String(__obj); $ERROR('#1: __obj.valueOf=function(){throw "invalueof"}; __str = new String(__obj) lead throwing exception'); } catch (e) { - if (e!=="invalueof") { - $ERROR('#1.1: e==="invalueof". Actual: e==='+e); + if (e !== "invalueof") { + $ERROR('#1.1: e==="invalueof". Actual: e===' + e); } } // diff --git a/test/built-ins/String/S15.5.2.1_A1_T16.js b/test/built-ins/String/S15.5.2.1_A1_T16.js index 3327696250..c5b6bc6d20 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 3e9248ebe8..745ab818b4 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 600c76266c..e6d9505454 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 8bef6916cb..223aa2abf2 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 e9e3cd3ef4..bb1bee3908 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 b46ea66cb7..b9716333c1 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 cc4687d03a..3d268119b6 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 786ecadf79..34b722abd1 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 50db9d8514..c3b481fd6f 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 5ce2ae1ac0..9ff917a506 100644 --- a/test/built-ins/String/S15.5.2.1_A1_T7.js +++ b/test/built-ins/String/S15.5.2.1_A1_T7.js @@ -11,7 +11,9 @@ description: Creating string object with "new String({})" var __stored__Object__prototype__toString = Object.prototype.toString; -Object.prototype.toString=function(){return "SHIFTED"}; +Object.prototype.toString = function() { + return "SHIFTED" +}; var __str = new String({}); @@ -20,7 +22,7 @@ Object.prototype.toString = __stored__Object__prototype__toString; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "object") { - $ERROR('#1: __str = new String({}); typeof __str === "object". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = new String({}); typeof __str === "object". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -28,15 +30,15 @@ if (typeof __str !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#1.5 if (__str.constructor !== String) { - $ERROR('#1.5: __str = new String({}); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor ); + $ERROR('#1.5: __str = new String({}); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__str !="SHIFTED") { - $ERROR('#2: Object.prototype.toString=function(){return "SHIFTED"}; __str = new String({}); __str =="SHIFTED". Actual: __str =='+__str ); +if (__str != "SHIFTED") { + $ERROR('#2: Object.prototype.toString=function(){return "SHIFTED"}; __str = new String({}); __str =="SHIFTED". Actual: __str ==' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.2.1_A1_T8.js b/test/built-ins/String/S15.5.2.1_A1_T8.js index 35402bae11..c01b4bb1e9 100644 --- a/test/built-ins/String/S15.5.2.1_A1_T8.js +++ b/test/built-ins/String/S15.5.2.1_A1_T8.js @@ -11,16 +11,18 @@ description: Creating string object with "new String(function(){})" var __stored__Function__prototype__toString = Function.prototype.toString; -Function.prototype.toString=function(){return "SHIFTED"}; +Function.prototype.toString = function() { + return "SHIFTED" +}; -var __str = new String(function(){}); +var __str = new String(function() {}); Function.prototype.toString = __stored__Function__prototype__toString; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "object") { - $ERROR('#1: __str = new String(function(){}); typeof __str === "object". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = new String(function(){}); typeof __str === "object". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -28,15 +30,15 @@ if (typeof __str !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#1.5 if (__str.constructor !== String) { - $ERROR('#1.5: __str = new String(function(){}); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor ); + $ERROR('#1.5: __str = new String(function(){}); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__str !="SHIFTED") { - $ERROR('#2: Function.prototype.toString=function(){return "SHIFTED"}; __str = new String(function(){}); __str =="SHIFTED". Actual: __str =='+__str ); +if (__str != "SHIFTED") { + $ERROR('#2: Function.prototype.toString=function(){return "SHIFTED"}; __str = new String(function(){}); __str =="SHIFTED". Actual: __str ==' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.2.1_A1_T9.js b/test/built-ins/String/S15.5.2.1_A1_T9.js index 4a23ee97cc..95b97e6b4c 100644 --- a/test/built-ins/String/S15.5.2.1_A1_T9.js +++ b/test/built-ins/String/S15.5.2.1_A1_T9.js @@ -11,12 +11,14 @@ description: > [1,2,3]}())" ---*/ -var __str = new String(function(){return [1,2,3]}()); +var __str = new String(function() { + return [1, 2, 3] +}()); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __str !== "object") { - $ERROR('#1: __str = new String(function(){return [1,2,3]}()); typeof __str === "object". Actual: typeof __str ==='+typeof __str ); + $ERROR('#1: __str = new String(function(){return [1,2,3]}()); typeof __str === "object". Actual: typeof __str ===' + typeof __str); } // ////////////////////////////////////////////////////////////////////////////// @@ -24,15 +26,15 @@ if (typeof __str !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#1.5 if (__str.constructor !== String) { - $ERROR('#1.5: __str = new String(function(){return [1,2,3]}()); __str.constructor === String. Actual: __str.constructor ==='+__str.constructor ); + $ERROR('#1.5: __str = new String(function(){return [1,2,3]}()); __str.constructor === String. Actual: __str.constructor ===' + __str.constructor); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__str !="1,2,3") { - $ERROR('#2: __str = new String(function(){return [1,2,3]}()); __str =="1,2,3". Actual: __str =='+__str ); +if (__str != "1,2,3") { + $ERROR('#2: __str = new String(function(){return [1,2,3]}()); __str =="1,2,3". Actual: __str ==' + __str); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.2.1_A2_T2.js b/test/built-ins/String/S15.5.2.1_A2_T2.js index 63374d22e2..35de605927 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 fa3bdafb87..387bdf10ad 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 7360cf3f18..de6499d46c 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 584b4e29fb..eb019eaf63 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 42c6ad1700..8fb4899cc9 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 6537b2dd9b..969b7c0998 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 764e7bd018..9d039cba04 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 8cdd062210..8309818e35 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 2df5f77c64..d41526fc8e 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 08fb072406..67510ea007 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 e169e11706..7aa4181a36 100644 --- a/test/built-ins/String/S15.5.5.1_A5.js +++ b/test/built-ins/String/S15.5.5.1_A5.js @@ -14,18 +14,22 @@ var __str__instance = new String("ABC\u0041\u0042\u0043"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__str__instance.length !== 6) { - $ERROR('#1: var __str__instance = new String("ABC\\u0041\\u0042\\u0043"); __str__instance.length === 6. Actual: __str__instance.length ==='+__str__instance.length ); + $ERROR('#1: var __str__instance = new String("ABC\\u0041\\u0042\\u0043"); __str__instance.length === 6. Actual: __str__instance.length ===' + __str__instance.length); } // ////////////////////////////////////////////////////////////////////////////// -__str__instance.valueOf = function(){return "ed"}; -__str__instance.toString = function(){return "ed"}; +__str__instance.valueOf = function() { + return "ed" +}; +__str__instance.toString = function() { + return "ed" +}; ////////////////////////////////////////////////////////////////////////////// //CHECK#2 -if (__str__instance !="ed") { - $ERROR('#2: var __str__instance = new String("ABC\\u0041\\u0042\\u0043"); __str__instance.valueOf = function(){return "ed"}; __str__instance.toString = function(){return "ed"}; __str__instance =="ed". Actual: __str__instance =='+__str__instance ); +if (__str__instance != "ed") { + $ERROR('#2: var __str__instance = new String("ABC\\u0041\\u0042\\u0043"); __str__instance.valueOf = function(){return "ed"}; __str__instance.toString = function(){return "ed"}; __str__instance =="ed". Actual: __str__instance ==' + __str__instance); } // ////////////////////////////////////////////////////////////////////////////// @@ -33,7 +37,7 @@ if (__str__instance !="ed") { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__str__instance.length !== 6) { - $ERROR('#3: var __str__instance = new String("ABC\\u0041\\u0042\\u0043"); __str__instance.valueOf = function(){return "ed"}; __str__instance.toString = function(){return "ed"}; __str__instance.length === 6. Actual: __str__instance.length ==='+__str__instance.length ); + $ERROR('#3: var __str__instance = new String("ABC\\u0041\\u0042\\u0043"); __str__instance.valueOf = function(){return "ed"}; __str__instance.toString = function(){return "ed"}; __str__instance.length === 6. Actual: __str__instance.length ===' + __str__instance.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/S15.5.5_A1_T1.js b/test/built-ins/String/S15.5.5_A1_T1.js index b5d7bdde34..883b4106b2 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 f7c992b593..68ff2408c8 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 ed236183ab..3bc78fd2ba 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 6281a6daff..cc5df51590 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 d4f2dd5c0b..04250ab471 100644 --- a/test/built-ins/String/S8.12.8_A1.js +++ b/test/built-ins/String/S8.12.8_A1.js @@ -12,13 +12,17 @@ description: Try to overload toString method try { - var __obj = {toString: function() {return new Object();}} - String(__obj); - $ERROR('#1.1: var __obj = {toString: function() {return new Object();}}; String(__obj) throw TypeError. Actual: ' + (String(__obj))); + var __obj = { + toString: function() { + return new Object(); + } + } + String(__obj); + $ERROR('#1.1: var __obj = {toString: function() {return new Object();}}; String(__obj) throw TypeError. Actual: ' + (String(__obj))); } -catch(e) +catch (e) { - if ((e instanceof TypeError) !== true) { - $ERROR('#1.2: var __obj = {toString: function() {return new Object();}}; String(__obj) throw TypeError. Actual: ' + (e)); - } + if ((e instanceof TypeError) !== true) { + $ERROR('#1.2: var __obj = {toString: function() {return new Object();}}; String(__obj) throw TypeError. Actual: ' + (e)); + } } diff --git a/test/built-ins/String/S8.12.8_A2.js b/test/built-ins/String/S8.12.8_A2.js index 4ffda0d941..6618d2cdd4 100644 --- a/test/built-ins/String/S8.12.8_A2.js +++ b/test/built-ins/String/S8.12.8_A2.js @@ -15,12 +15,19 @@ description: > try { - var __obj = {toString: function() {return new Object();}, valueOf: function() {return 1;}} - if (String(__obj) !== "1") { - $ERROR('#1.1: var __obj = {toString: function() {return new Object();}, valueOf: function() {return 1;}}; String(__obj) === "1". Actual: ' + (String(__obj))); - } + var __obj = { + toString: function() { + return new Object(); + }, + valueOf: function() { + return 1; + } + } + if (String(__obj) !== "1") { + $ERROR('#1.1: var __obj = {toString: function() {return new Object();}, valueOf: function() {return 1;}}; String(__obj) === "1". Actual: ' + (String(__obj))); + } } -catch(e) +catch (e) { $ERROR('#1.2: var __obj = {toString: function() {return new Object();}, valueOf: function() {return 1;}}; String(__obj) === "1". Actual: ' + (e)); } diff --git a/test/built-ins/String/S9.1_A1_T2.js b/test/built-ins/String/S9.1_A1_T2.js index 7090e32342..4d92be3f0c 100644 --- a/test/built-ins/String/S9.1_A1_T2.js +++ b/test/built-ins/String/S9.1_A1_T2.js @@ -12,13 +12,27 @@ description: > ---*/ // CHECK#1 -var object = {valueOf: function() {return 0}, toString: function() {return 1}}; +var object = { + valueOf: function() { + return 0 + }, + toString: function() { + return 1 + } +}; if (String(object) !== "1") { $ERROR('#1: var object = {valueOf: function() {return 0}, toString: function() {return 1}}; String(object) === "1". Actual: ' + (String(object))); } // CHECK#2 -var object = {valueOf: function() {return 0}, toString: function() {return {}}}; +var object = { + valueOf: function() { + return 0 + }, + toString: function() { + return {} + } +}; if (String(object) !== "0") { $ERROR('#2: var object = {valueOf: function() {return 0}, toString: function() {return {}}}; String(object) === "0". Actual: ' + (String(object))); } diff --git a/test/built-ins/String/S9.8.1_A3.js b/test/built-ins/String/S9.8.1_A3.js index f93fb59f10..13f63f7cca 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 846d1ce46f..147215751a 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 a6b798a3d6..e9df51408d 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 4f78283a64..4959ead611 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 e6f9690540..fbac3d8642 100644 --- a/test/built-ins/String/S9.8_A5_T1.js +++ b/test/built-ins/String/S9.8_A5_T1.js @@ -26,7 +26,7 @@ if (String(new Number(Number.NaN)) !== "NaN") { // CHECK#4 if (String(new Number(null)) !== "0") { - $ERROR('#4: String(new Number(null)) === "0". Actual: ' + (String(new Number(null)))); + $ERROR('#4: String(new Number(null)) === "0". Actual: ' + (String(new Number(null)))); } // CHECK#5 @@ -55,38 +55,54 @@ if (String(new Boolean(false)) !== "false") { } // CHECK#10 -if (String(new Array(2,4,8,16,32)) !== "2,4,8,16,32") { - $ERROR('#10: String(new Array(2,4,8,16,32)) === "2,4,8,16,32". Actual: ' + (String(new Array(2,4,8,16,32)))); +if (String(new Array(2, 4, 8, 16, 32)) !== "2,4,8,16,32") { + $ERROR('#10: String(new Array(2,4,8,16,32)) === "2,4,8,16,32". Actual: ' + (String(new Array(2, 4, 8, 16, 32)))); } // CHECK#11 var myobj1 = { - toNumber : function(){return 12345;}, - toString : function(){return 67890;}, - valueOf : function(){return "[object MyObj]";} - }; - -if (String(myobj1) !== "67890"){ + toNumber: function() { + return 12345; + }, + toString: function() { + return 67890; + }, + valueOf: function() { + return "[object MyObj]"; + } +}; + +if (String(myobj1) !== "67890") { $ERROR("#11: String(myobj) calls ToPrimitive with hint String"); } // CHECK#12 var myobj2 = { - toNumber : function(){return 12345;}, - toString : function(){return {}}, - valueOf : function(){return "[object MyObj]";} - }; - -if (String(myobj2) !== "[object MyObj]"){ + toNumber: function() { + return 12345; + }, + toString: function() { + return {} + }, + valueOf: function() { + return "[object MyObj]"; + } +}; + +if (String(myobj2) !== "[object MyObj]") { $ERROR("#12: String(myobj) calls ToPrimitive with hint String"); } // CHECK#13 var myobj3 = { - toNumber : function(){return 12345;}, - valueOf : function(){return "[object MyObj]";} - }; - -if (String(myobj3) !== "[object Object]"){ + toNumber: function() { + return 12345; + }, + valueOf: function() { + return "[object MyObj]"; + } +}; + +if (String(myobj3) !== "[object Object]") { $ERROR("#13: String(myobj) calls ToPrimitive with hint String"); } diff --git a/test/built-ins/String/fromCharCode/S15.5.3.2_A1.js b/test/built-ins/String/fromCharCode/S15.5.3.2_A1.js index 0b9edd0cc7..1a1050b810 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 9fbae6ddcf..30ac54bc72 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 8c394c8515..57d7aaa114 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 f13e04fe7f..1e7d423a5b 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 b29a550437..b3489a4797 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 513c563a5a..935d50a57b 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 fd601b4097..3af06a0599 100644 --- a/test/built-ins/String/fromCharCode/S9.7_A3.1_T4.js +++ b/test/built-ins/String/fromCharCode/S9.7_A3.1_T4.js @@ -8,26 +8,51 @@ description: Type(x) is Object ---*/ //CHECK#1 -var object = {valueOf: function() {return 1}}; +var object = { + valueOf: function() { + return 1 + } +}; if (String.fromCharCode(object).charCodeAt(0) !== 1) { $ERROR('#1: var object = {valueOf: function() {return 1}}; String.fromCharCode(object).charCodeAt(0) === 1. Actual: ' + (String.fromCharCode(object).charCodeAt(0))); } //CHECK#2 -var object = {valueOf: function() {return 1}, toString: function() {return 0}}; +var object = { + valueOf: function() { + return 1 + }, + toString: function() { + return 0 + } +}; if (String.fromCharCode(object).charCodeAt(0) !== 1) { $ERROR('#2: var object = {valueOf: function() {return 1}, toString: function() {return 0}}; String.fromCharCode(object).charCodeAt(0) === 1. Actual: ' + (String.fromCharCode(object).charCodeAt(0))); -} +} //CHECK#3 -var object = {valueOf: function() {return 1}, toString: function() {return {}}}; +var object = { + valueOf: function() { + return 1 + }, + toString: function() { + return {} + } +}; if (String.fromCharCode(object).charCodeAt(0) !== 1) { $ERROR('#3: var object = {valueOf: function() {return 1}, toString: function() {return {}}}; String.fromCharCode(object).charCodeAt(0) === 1. Actual: ' + (String.fromCharCode(object).charCodeAt(0))); } //CHECK#4 try { - var object = {valueOf: function() {return 1}, toString: function() {throw "error"}}; + var object = { + valueOf: function() { + return 1 + }, + toString: function() { + throw "error" + } + }; if (String.fromCharCode(object).charCodeAt(0) !== 1) { $ERROR('#4.1: var object = {valueOf: function() {return 1}, toString: function() {throw "error"}}; String.fromCharCode(object).charCodeAt(0) === 1. Actual: ' + (String.fromCharCode(object).charCodeAt(0))); } @@ -41,37 +66,62 @@ catch (e) { } //CHECK#5 -var object = {toString: function() {return 1}}; +var object = { + toString: function() { + return 1 + } +}; if (String.fromCharCode(object).charCodeAt(0) !== 1) { $ERROR('#5: var object = {toString: function() {return 1}}; String.fromCharCode(object).charCodeAt(0) === 1. Actual: ' + (String.fromCharCode(object).charCodeAt(0))); } //CHECK#6 -var object = {valueOf: function() {return {}}, toString: function() {return 1}} +var object = { + valueOf: function() { + return {} + }, + toString: function() { + return 1 + } +} if (String.fromCharCode(object).charCodeAt(0) !== 1) { $ERROR('#6: var object = {valueOf: function() {return {}}, toString: function() {return 1}}; String.fromCharCode(object).charCodeAt(0) === 1. Actual: ' + (String.fromCharCode(object).charCodeAt(0))); } //CHECK#7 try { - var object = {valueOf: function() {throw "error"}, toString: function() {return 1}}; + var object = { + valueOf: function() { + throw "error" + }, + toString: function() { + return 1 + } + }; object >>> 0; $ERROR('#7.1: var object = {valueOf: function() {throw "error"}, toString: function() {return 1}}; object throw "error". Actual: ' + (object >>> 0)); -} +} catch (e) { if (e !== "error") { $ERROR('#7.2: var object = {valueOf: function() {throw "error"}, toString: function() {return 1}}; object throw "error". Actual: ' + (e)); - } + } } //CHECK#8 try { - var object = {valueOf: function() {return {}}, toString: function() {return {}}}; + var object = { + valueOf: function() { + return {} + }, + toString: function() { + return {} + } + }; object >>> 0; $ERROR('#8.1: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; object throw TypeError. Actual: ' + (object >>> 0)); -} +} catch (e) { if ((e instanceof TypeError) !== true) { $ERROR('#8.2: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; object throw TypeError. Actual: ' + (e)); - } + } } diff --git a/test/built-ins/String/fromCodePoint/to-number-conversions.js b/test/built-ins/String/fromCodePoint/to-number-conversions.js index da054bb2f2..84dac44c2a 100644 --- a/test/built-ins/String/fromCodePoint/to-number-conversions.js +++ b/test/built-ins/String/fromCodePoint/to-number-conversions.js @@ -25,6 +25,10 @@ assert.sameValue(String.fromCodePoint(true), '\x01'); assert.sameValue(String.fromCodePoint('42'), '\x2A'); assert.sameValue(String.fromCodePoint('042'), '\x2A'); assert.sameValue( - String.fromCodePoint({ valueOf: function() { return 31; } }), + String.fromCodePoint({ + valueOf: function() { + return 31; + } + }), '\x1F' ); diff --git a/test/built-ins/String/length.js b/test/built-ins/String/length.js index 839a7cdf8e..7b19a381c3 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 0c621f1e37..ae4163e2f2 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 fac9d45a52..160a7d3e01 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 ae47596579..5fecfb2c2d 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 e94cfe27ed..6f7a145fb3 100644 --- a/test/built-ins/String/prototype/S15.5.3.1_A4.js +++ b/test/built-ins/String/prototype/S15.5.3.1_A4.js @@ -11,19 +11,21 @@ includes: [propertyHelper.js] ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.hasOwnProperty('prototype'))) { - $ERROR('#1: String.hasOwnProperty(\'prototype\') return true. Actual: '+String.hasOwnProperty('prototype')); + $ERROR('#1: String.hasOwnProperty(\'prototype\') return true. Actual: ' + String.hasOwnProperty('prototype')); } // ////////////////////////////////////////////////////////////////////////////// var __obj = String.prototype; -verifyNotWritable(String, "prototype", null, function(){return "shifted";}); +verifyNotWritable(String, "prototype", null, function() { + return "shifted"; +}); ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype !== __obj) { - $ERROR('#2: __obj = String.prototype; String.prototype = function(){return "shifted";}; String.prototype === __obj. Actual: String.prototype ==='+String.prototype ); + $ERROR('#2: __obj = String.prototype; String.prototype = function(){return "shifted";}; String.prototype === __obj. Actual: String.prototype ===' + String.prototype); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/S15.5.4_A1.js b/test/built-ins/String/prototype/S15.5.4_A1.js index 1b12c336f2..44c6864766 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 227ed079c3..b36246e30b 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 c63a61dcf1..bc5edd1c30 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 a89daec9b7..79c9d0ec59 100644 --- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1.1.js +++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1.1.js @@ -7,7 +7,11 @@ es5id: 15.5.4.4_A1.1 description: Checking by using eval ---*/ -function __FACTORY(){this.toString = function(){ return "wizard";};}; +function __FACTORY() { + this.toString = function() { + return "wizard"; + }; +}; __FACTORY.prototype.charAt = String.prototype.charAt; @@ -15,8 +19,8 @@ var __instance = new __FACTORY; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - if (__instance.charAt(eval("1"),true,null,{})!== "i") { - $ERROR('#1: __instance.charAt(eval("1"),true,null,{})=== "i". Actual: '+__instance.charAt(eval("1"),true,null,{})); - } +if (__instance.charAt(eval("1"), true, null, {}) !== "i") { + $ERROR('#1: __instance.charAt(eval("1"),true,null,{})=== "i". Actual: ' + __instance.charAt(eval("1"), true, null, {})); +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A10.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A10.js index ad3379461d..21de5fc4c0 100644 --- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A10.js +++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A10.js @@ -13,19 +13,21 @@ includes: [propertyHelper.js] ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.charAt.hasOwnProperty('length'))) { - $ERROR('#1: String.prototype.charAt.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.charAt.hasOwnProperty('length')); + $ERROR('#1: String.prototype.charAt.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.charAt.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// var __obj = String.prototype.charAt.length; -verifyNotWritable(String.prototype.charAt, "length", null, function(){return "shifted";}); +verifyNotWritable(String.prototype.charAt, "length", null, function() { + return "shifted"; +}); ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.charAt.length !== __obj) { - $ERROR('#2: __obj = String.prototype.charAt.length; String.prototype.charAt.length = function(){return "shifted";}; String.prototype.charAt.length === __obj. Actual: '+String.prototype.charAt.length ); + $ERROR('#2: __obj = String.prototype.charAt.length; String.prototype.charAt.length = function(){return "shifted";}; String.prototype.charAt.length === __obj. Actual: ' + String.prototype.charAt.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A11.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A11.js index bb5b5cb344..2d376a2dca 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 d88cec69ac..c47d9c5c53 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 b92349adcd..10c5d32b2f 100644 --- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T10.js +++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T10.js @@ -7,13 +7,17 @@ es5id: 15.5.4.4_A1_T10 description: Call charAt() function with object argument ---*/ -var __obj = {toString:function(){return 1;}} +var __obj = { + toString: function() { + return 1; + } +} var __str = "lego"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - if (__str.charAt(__obj) !== "e") { - $ERROR('#1: var __obj = {toString:function(){return 1;}}; var __str = "lego"; __str.charAt(__obj) === "e". Actual: '+__str.charAt(__obj) ); - } +if (__str.charAt(__obj) !== "e") { + $ERROR('#1: var __obj = {toString:function(){return 1;}}; var __str = "lego"; __str.charAt(__obj) === "e". Actual: ' + __str.charAt(__obj)); +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T2.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T2.js index 42ad5f81b0..39930f2280 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 6296bb1639..c69163edf1 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 f3d40ae7a0..dcf127bde5 100644 --- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T5.js +++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T5.js @@ -10,8 +10,12 @@ description: Call charAt() function with null argument of function object ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToInteger(null) evaluates to 0 charAt() evaluates to charAt(0) -if (function(){return "lego"}().charAt(null) !== "l") { - $ERROR('#1: function(){return "lego"}().charAt(null) === "l". Actual: function(){return "lego"}().charAt(null) ==='+function(){return "lego"}().charAt(null) ); +if (function() { + return "lego" + }().charAt(null) !== "l") { + $ERROR('#1: function(){return "lego"}().charAt(null) === "l". Actual: function(){return "lego"}().charAt(null) ===' + function() { + return "lego" + }().charAt(null)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T6.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T6.js index 73d3ab3907..e611efe884 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 0674182368..ed0b9c4e51 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 ef0d838828..cb5f85ffc7 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 6137d3e04b..46f5c6d604 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 9616be5316..b83c11f8d8 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 185d7950da..daf222d95e 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 5216b646e4..bc71de8a58 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 0771bc7f52..79556c5192 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 ab0ddbffa6..3f36652335 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 266fc6ae12..fadadc9968 100644 --- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A5.js +++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A5.js @@ -9,10 +9,12 @@ es5id: 15.5.4.4_A5 description: Change toString function, it trow exception, and call charAt() ---*/ -var __obj={ - valueOf:1, - toString:function(){throw 'intostring'}, - charAt:String.prototype.charAt +var __obj = { + valueOf: 1, + toString: function() { + throw 'intostring' + }, + charAt: String.prototype.charAt } ////////////////////////////////////////////////////////////////////////////// @@ -22,7 +24,7 @@ try { $ERROR('#1: __obj={valueOf:1,toString:function(){throw \'intostring\'},charAt:String.prototype.charAt}; "var x = __obj.charAt()" lead to throwing exception'); } catch (e) { if (e !== 'intostring') { - $ERROR('#1.1: Exception === \'intostring\'. Actual: exception ==='+e ); + $ERROR('#1.1: Exception === \'intostring\'. Actual: exception ===' + e); } } // diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A6.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A6.js index 1e3114e6a7..a5a00a328b 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 5afab205b9..a43cc85f4e 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 51dc2ca116..d18cf8044b 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 9e3d36beea..6414fbe446 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 24ac132749..ea9c7dac95 100644 --- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1.1.js +++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1.1.js @@ -7,7 +7,11 @@ es5id: 15.5.4.5_A1.1 description: Checking by using eval ---*/ -function __FACTORY(){this.toString = function(){ return "wizard";};}; +function __FACTORY() { + this.toString = function() { + return "wizard"; + }; +}; __FACTORY.prototype.charCodeAt = String.prototype.charCodeAt; @@ -15,8 +19,8 @@ var __instance = new __FACTORY; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - if (__instance.charCodeAt(eval("1"),true,null,{})!== 0x69) { - $ERROR('#1: __instance.charCodeAt(eval("1"),true,null,{})=== 0x69. Actual: __instance.charCodeAt(eval("1"),true,null,{})==='+__instance.charCodeAt(eval("1"),true,null,{})); - } +if (__instance.charCodeAt(eval("1"), true, null, {}) !== 0x69) { + $ERROR('#1: __instance.charCodeAt(eval("1"),true,null,{})=== 0x69. Actual: __instance.charCodeAt(eval("1"),true,null,{})===' + __instance.charCodeAt(eval("1"), true, null, {})); +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A10.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A10.js index a22bf9d0e9..39c531e380 100644 --- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A10.js +++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A10.js @@ -13,19 +13,21 @@ includes: [propertyHelper.js] ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.charCodeAt.hasOwnProperty('length'))) { - $ERROR('#1: String.prototype.charCodeAt.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.charCodeAt.hasOwnProperty('length')); + $ERROR('#1: String.prototype.charCodeAt.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.charCodeAt.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// var __obj = String.prototype.charCodeAt.length; -verifyNotWritable(String.prototype.charCodeAt, "length", null, function(){return "shifted";}); +verifyNotWritable(String.prototype.charCodeAt, "length", null, function() { + return "shifted"; +}); ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.charCodeAt.length !== __obj) { - $ERROR('#2: __obj = String.prototype.charCodeAt.length; String.prototype.charCodeAt.length = function(){return "shifted";}; String.prototype.charCodeAt.length === __obj. Actual: '+String.prototype.charCodeAt.length ); + $ERROR('#2: __obj = String.prototype.charCodeAt.length; String.prototype.charCodeAt.length = function(){return "shifted";}; String.prototype.charCodeAt.length === __obj. Actual: ' + String.prototype.charCodeAt.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A11.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A11.js index 1137dff675..f355381357 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 5cd5570ea0..8c31caede2 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 74b3895c59..c1391358e9 100644 --- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T10.js +++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T10.js @@ -7,13 +7,17 @@ es5id: 15.5.4.5_A1_T10 description: Call charCodeAt() function with object argument ---*/ -var __obj = {toString:function(){return 1;}} +var __obj = { + toString: function() { + return 1; + } +} var __str = "lego"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - if (__str.charCodeAt(__obj) !== 0x65) { - $ERROR('#1: var __obj = {toString:function(){return 1;}}; var __str = "lego"; __str.charCodeAt(__obj) === 0x65. Actual: '+__str.charCodeAt(__obj) ); - } +if (__str.charCodeAt(__obj) !== 0x65) { + $ERROR('#1: var __obj = {toString:function(){return 1;}}; var __str = "lego"; __str.charCodeAt(__obj) === 0x65. Actual: ' + __str.charCodeAt(__obj)); +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T2.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T2.js index 5473040298..1013fba881 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 8b0b253dc7..05ee919d83 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 a80b2b0ca2..b3535ed20c 100644 --- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T5.js +++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T5.js @@ -10,8 +10,12 @@ description: Call charCodeAt() function with null argument of function object ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToInteger(null) evaluates to 0 charCodeAt() evaluates to charCodeAt(0) -if (function(){return "lego"}().charCodeAt(null) !== 0x6C) { - $ERROR('#1: function(){return "lego"}().charCodeAt(null) === 0x6C. Actual: '+function(){return "lego"}().charCodeAt(null) ); +if (function() { + return "lego" + }().charCodeAt(null) !== 0x6C) { + $ERROR('#1: function(){return "lego"}().charCodeAt(null) === 0x6C. Actual: ' + function() { + return "lego" + }().charCodeAt(null)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T6.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A1_T6.js index 3ddf8b0e76..d09356f16a 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 a59910356f..e8f6d64105 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 8a6b06344d..860c1d4ecb 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 9a336549c2..e1f00f767e 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 290fad88b3..3c06c1b08c 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 29301ca727..c46f0f2b85 100644 --- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A4.js +++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A4.js @@ -9,10 +9,12 @@ es5id: 15.5.4.5_A4 description: Change toString function, it trow exception, and call charCodeAt() ---*/ -var __obj={ - valueOf:1, - toString:function(){throw 'intostring'}, - charCodeAt:String.prototype.charCodeAt +var __obj = { + valueOf: 1, + toString: function() { + throw 'intostring' + }, + charCodeAt: String.prototype.charCodeAt } ////////////////////////////////////////////////////////////////////////////// @@ -22,7 +24,7 @@ try { $ERROR('#1: "var x = __obj.charCodeAt()" lead to throwing exception'); } catch (e) { if (e !== 'intostring') { - $ERROR('#1.1: Exception === \'intostring\'. Actual: exception ==='+e ); + $ERROR('#1.1: Exception === \'intostring\'. Actual: exception ===' + e); } } // diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A6.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A6.js index 4098f04d2d..97e0f9b838 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 23aa00ba8c..d21d56d81b 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 e70cadbd22..6c3fe2a902 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 6c39315e2b..b09375f23b 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 00258a5e57..599b763ab4 100644 --- a/test/built-ins/String/prototype/concat/S15.5.4.6_A10.js +++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A10.js @@ -13,19 +13,21 @@ includes: [propertyHelper.js] ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.concat.hasOwnProperty('length'))) { - $ERROR('#1: String.prototype.concat.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.concat.hasOwnProperty('length')); + $ERROR('#1: String.prototype.concat.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.concat.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// var __obj = String.prototype.concat.length; -verifyNotWritable(String.prototype.concat, "length", null, function(){return "shifted";}); +verifyNotWritable(String.prototype.concat, "length", null, function() { + return "shifted"; +}); ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.concat.length !== __obj) { - $ERROR('#2: __obj = String.prototype.concat.length; String.prototype.concat.length = function(){return "shifted";}; String.prototype.concat.length === __obj. Actual: '+String.prototype.concat.length ); + $ERROR('#2: __obj = String.prototype.concat.length; String.prototype.concat.length = function(){return "shifted";}; String.prototype.concat.length === __obj. Actual: ' + String.prototype.concat.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A11.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A11.js index 69016d99ae..1896234ed6 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 647cb30b53..bec80ca92e 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 006d0b65d0..fa908ae169 100644 --- a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T10.js +++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T10.js @@ -7,19 +7,34 @@ es5id: 15.5.4.6_A1_T10 description: Call concat([,[...]]) function with object arguments ---*/ -var __obj = {toString:function(){return "\u0041";}, valueOf:function(){return "_\u0041_";}} -var __obj2 = {toString:function(){return true;}} -var __obj3 = {toString:function(){return 42;}} +var __obj = { + toString: function() { + return "\u0041"; + }, + valueOf: function() { + return "_\u0041_"; + } +} +var __obj2 = { + toString: function() { + return true; + } +} +var __obj3 = { + toString: function() { + return 42; + } +} var __str = "lego"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - if (__str.concat(__obj) !== "legoA") { - $ERROR('#1: var x; var __obj = {toString:function(){return "\u0041";}, valueOf:function(){return "_\u0041_";}}; var __str = "lego"; __str.concat(__obj) === "legoA". Actual: '+__str.concat(__obj) ); - } - if (__str.concat(__obj, __obj2, __obj3, x) !== "legoAtrue42undefined") { - $ERROR('#2: var x; var __obj = {toString:function(){return "\u0041";}, valueOf:function(){return "_\u0041_";}}; var __obj2 = {toString:function(){return true;}}; var __obj3 = {toString:function(){return 42;}}; var __str = "lego"; __str.concat(__obj, __obj2, __obj3, x) === "legoAtrue42undefined". Actual: '+__str.concat(__obj, __obj2, __obj3, x) ); - } +if (__str.concat(__obj) !== "legoA") { + $ERROR('#1: var x; var __obj = {toString:function(){return "\u0041";}, valueOf:function(){return "_\u0041_";}}; var __str = "lego"; __str.concat(__obj) === "legoA". Actual: ' + __str.concat(__obj)); +} +if (__str.concat(__obj, __obj2, __obj3, x) !== "legoAtrue42undefined") { + $ERROR('#2: var x; var __obj = {toString:function(){return "\u0041";}, valueOf:function(){return "_\u0041_";}}; var __obj2 = {toString:function(){return true;}}; var __obj3 = {toString:function(){return 42;}}; var __str = "lego"; __str.concat(__obj, __obj2, __obj3, x) === "legoAtrue42undefined". Actual: ' + __str.concat(__obj, __obj2, __obj3, x)); +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T2.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T2.js index 974b29823e..1b2b1a799f 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 f243a077dc..13b2e37939 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 7bad9d2e0d..a47b104361 100644 --- a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T5.js +++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T5.js @@ -12,8 +12,12 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToString(null) evaluates to "null" concat(null) evaluates to concat("null") -if (function(){return "lego"}().concat(null) !== "legonull") { - $ERROR('#1: function(){return "lego"}().concat(null) === "legonull". Actual: '+function(){return "lego"}().concat(null) ); +if (function() { + return "lego" + }().concat(null) !== "legonull") { + $ERROR('#1: function(){return "lego"}().concat(null) === "legonull". Actual: ' + function() { + return "lego" + }().concat(null)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T6.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A1_T6.js index e633a6afa2..5d7824d60e 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 10e915663f..09f6829336 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 4ededc0538..297fe08ae3 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 08d70fd86b..bfd2bac54e 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 b16030c88b..d9acfba8c7 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 3b2301578e..0c477fd9ef 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 8d21679242..4fb246b17d 100644 --- a/test/built-ins/String/prototype/concat/S15.5.4.6_A4_T1.js +++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A4_T1.js @@ -9,14 +9,18 @@ es5id: 15.5.4.6_A4_T1 description: Override toString function ---*/ -var __instance = {toString:function(){return "one"}}; +var __instance = { + toString: function() { + return "one" + } +}; __instance.concat = String.prototype.concat; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__instance.concat("two",x) !== "onetwoundefined") { - $ERROR('#1: var x; __instance = {toString:function(){return "one"}}; __instance.concat = String.prototype.concat; __instance.concat("two",x) === "onetwoundefined". Actual: '+__instance.concat("two",x) ); +if (__instance.concat("two", x) !== "onetwoundefined") { + $ERROR('#1: var x; __instance = {toString:function(){return "one"}}; __instance.concat = String.prototype.concat; __instance.concat("two",x) === "onetwoundefined". Actual: ' + __instance.concat("two", x)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A4_T2.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A4_T2.js index 1e326035f9..d743b9a459 100644 --- a/test/built-ins/String/prototype/concat/S15.5.4.6_A4_T2.js +++ b/test/built-ins/String/prototype/concat/S15.5.4.6_A4_T2.js @@ -9,21 +9,29 @@ es5id: 15.5.4.6_A4_T2 description: Override toString function onto function, that throw exception ---*/ -var __instance = {toString:function(){throw "intostring";}}; -var __obj = {toString:function(){throw "infirstarg";}}; +var __instance = { + toString: function() { + throw "intostring"; + } +}; +var __obj = { + toString: function() { + throw "infirstarg"; + } +}; __instance.concat = String.prototype.concat; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 try { - String.prototype.concat.call(__instance,__obj, notexist); + String.prototype.concat.call(__instance, __obj, notexist); $ERROR('#1: "String.prototype.concat.call(__instance,__obj, notexist)" lead to throwing exception'); } catch (e) { if (e !== "intostring") { - $ERROR('#1: e === "intostring". Actual: '+e ); + $ERROR('#1: e === "intostring". Actual: ' + e); } -} +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/concat/S15.5.4.6_A6.js b/test/built-ins/String/prototype/concat/S15.5.4.6_A6.js index 4da0d14549..f52f1a31e0 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 bfb422a43d..9ff301ab0a 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 51e74575b7..c8613d934b 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 dbb0792900..6e92461a81 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 3650972edd..1081b4e596 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 e3bf5290ac..fbceb87353 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 a5725856e0..7ce937b592 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A10.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A10.js @@ -13,19 +13,21 @@ includes: [propertyHelper.js] ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.indexOf.hasOwnProperty('length'))) { - $ERROR('#1: String.prototype.indexOf.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.indexOf.hasOwnProperty('length')); + $ERROR('#1: String.prototype.indexOf.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.indexOf.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// var __obj = String.prototype.indexOf.length; -verifyNotWritable(String.prototype.indexOf, "length", null, function(){return "shifted";}); +verifyNotWritable(String.prototype.indexOf, "length", null, function() { + return "shifted"; +}); ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.indexOf.length !== __obj) { - $ERROR('#2: __obj = String.prototype.indexOf.length; String.prototype.indexOf.length = function(){return "shifted";}; String.prototype.indexOf.length === __obj. Actual: '+String.prototype.indexOf.length ); + $ERROR('#2: __obj = String.prototype.indexOf.length; String.prototype.indexOf.length = function(){return "shifted";}; String.prototype.indexOf.length === __obj. Actual: ' + String.prototype.indexOf.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A11.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A11.js index db610fbe19..173f1b5560 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 f3bc0fb9b1..ef3079ba4b 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 16c1d275b4..52c0056053 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T10.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T10.js @@ -7,15 +7,23 @@ es5id: 15.5.4.7_A1_T10 description: Call indexOf(searchString, position) function with object arguments ---*/ -var __obj = {toString:function(){return "\u0041B";}} -var __obj2 = {valueOf:function(){return true;}} +var __obj = { + toString: function() { + return "\u0041B"; + } +} +var __obj2 = { + valueOf: function() { + return true; + } +} var __str = "ABB\u0041BABAB"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - if (__str.indexOf(__obj, __obj2) !== 3) { - $ERROR('#1: var x; var __obj = {toString:function(){return "\u0041B";}}; var __obj2 = {valueOf:function(){return true;}}; var __str = "ABB\u0041BABAB"; __str.indexOf(__obj, __obj2) === 3. Actual: '+__str.indexOf(__obj, __obj2) ); - } +if (__str.indexOf(__obj, __obj2) !== 3) { + $ERROR('#1: var x; var __obj = {toString:function(){return "\u0041B";}}; var __obj2 = {valueOf:function(){return true;}}; var __str = "ABB\u0041BABAB"; __str.indexOf(__obj, __obj2) === 3. Actual: ' + __str.indexOf(__obj, __obj2)); +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T12.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T12.js index b641ced381..145b6519c5 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 c20692bb27..15645c3456 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T2.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T2.js @@ -15,8 +15,12 @@ __instance.indexOf = String.prototype.indexOf; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__instance.indexOf("A"!=="\u0041", function(){return 0;}(),null) !== 0) { - $ERROR('#1: __instance = new Boolean; __instance.indexOf = String.prototype.indexOf; __instance.indexOf("A"!=="\\u0041", function(){return 0;}(),null) === 0. Actual: '+__instance.indexOf("A"!=="\u0041", function(){return 0;}(),null) ); +if (__instance.indexOf("A" !== "\u0041", function() { + return 0; + }(), null) !== 0) { + $ERROR('#1: __instance = new Boolean; __instance.indexOf = String.prototype.indexOf; __instance.indexOf("A"!=="\\u0041", function(){return 0;}(),null) === 0. Actual: ' + __instance.indexOf("A" !== "\u0041", function() { + return 0; + }(), null)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T4.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T4.js index d9f26b932a..fc998a006f 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 61d8e70371..0a189320d0 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T5.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T5.js @@ -12,8 +12,12 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToString(null) evaluates to "null" indexOf(null) evaluates to indexOf("",0) -if (function(){return "gnulluna"}().indexOf(null) !== 1) { - $ERROR('#1: function(){return "gnulluna"}().indexOf(null) === 1. Actual: '+function(){return "gnulluna"}().indexOf(null) ); +if (function() { + return "gnulluna" + }().indexOf(null) !== 1) { + $ERROR('#1: function(){return "gnulluna"}().indexOf(null) === 1. Actual: ' + function() { + return "gnulluna" + }().indexOf(null)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T6.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T6.js index 4279d8f7e9..8e7b5e3e4c 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 4852398960..4eee2242f6 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 1232528e7f..eae58fcbbb 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T8.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T8.js @@ -9,13 +9,15 @@ description: > of string object ---*/ -var __obj = {toString:function(){}}; +var __obj = { + toString: function() {} +}; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToString(void 0) evaluates to "undefined" indexOf(void 0) evaluates to indexOf("undefined") if (String(__obj).indexOf(void 0) !== 0) { - $ERROR('#1: __obj = {toString:function(){}}; String(__obj).indexOf(void 0) === 0. Actual: '+String(__obj).indexOf(void 0) ); + $ERROR('#1: __obj = {toString:function(){}}; String(__obj).indexOf(void 0) === 0. Actual: ' + String(__obj).indexOf(void 0)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T9.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T9.js index 69dd4c0392..49f56f4d8e 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 a2e046ce24..62aecd0719 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 f342413d75..58362dbdd8 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 f7e1100b8c..cff1c33cb5 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 bf82c55e64..f39afbeec0 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 3e59d66f64..133abbee31 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 359661a10c..b5921b250a 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 9a17c22def..192b7edc91 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A3_T3.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A3_T3.js @@ -13,8 +13,12 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if ("$$abcdabcd".indexOf("ab", function(){return -Infinity;}())!==2) { - $ERROR('#1: "$$abcdabcd".indexOf("ab", function(){return -Infinity;}())===2. Actual: '+("$$abcdabcd".indexOf("ab", function(){return -Infinity;}()))); +if ("$$abcdabcd".indexOf("ab", function() { + return -Infinity; + }()) !== 2) { + $ERROR('#1: "$$abcdabcd".indexOf("ab", function(){return -Infinity;}())===2. Actual: ' + ("$$abcdabcd".indexOf("ab", function() { + return -Infinity; + }()))); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T1.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T1.js index ae24f56f04..eca493a173 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T1.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T1.js @@ -9,19 +9,27 @@ es5id: 15.5.4.7_A4_T1 description: Override toString and valueOf functions, valueOf throw exception ---*/ -var __obj = {toString:function(){return "\u0041B";}} -var __obj2 = {valueOf:function(){throw "intointeger";}} +var __obj = { + toString: function() { + return "\u0041B"; + } +} +var __obj2 = { + valueOf: function() { + throw "intointeger"; + } +} var __str = "ABB\u0041BABAB"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __str.indexOf(__obj, __obj2); - $ERROR('#1: "var x = __str.indexOf(__obj, __obj2)" lead to throwing exception'); - } catch (e) { - if (e!=="intointeger") { - $ERROR('#1.1: Exception === "intointeger". Actual: '+e); - } - } +try { + var x = __str.indexOf(__obj, __obj2); + $ERROR('#1: "var x = __str.indexOf(__obj, __obj2)" lead to throwing exception'); +} catch (e) { + if (e !== "intointeger") { + $ERROR('#1.1: Exception === "intointeger". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T2.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T2.js index 85f5aa2988..ee769a9ae6 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T2.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T2.js @@ -11,19 +11,30 @@ description: > exception ---*/ -var __obj = {toString:function(){return "\u0041B";}} -var __obj2 = {valueOf:function(){return {};},toString:function(){throw "intointeger";}} +var __obj = { + toString: function() { + return "\u0041B"; + } +} +var __obj2 = { + valueOf: function() { + return {}; + }, + toString: function() { + throw "intointeger"; + } +} var __str = new String("ABB\u0041BABAB"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __str.indexOf(__obj, __obj2); - $ERROR('#1: "var x = __str.indexOf(__obj, __obj2)" lead to throwing exception'); - } catch (e) { - if (e!=="intointeger") { - $ERROR('#1.1: Exception === "intointeger". Actual: '+e); - } - } +try { + var x = __str.indexOf(__obj, __obj2); + $ERROR('#1: "var x = __str.indexOf(__obj, __obj2)" lead to throwing exception'); +} catch (e) { + if (e !== "intointeger") { + $ERROR('#1.1: Exception === "intointeger". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T3.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T3.js index 2374c67929..6bf5f20465 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T3.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T3.js @@ -9,13 +9,24 @@ es5id: 15.5.4.7_A4_T3 description: Override toString and valueOf functions ---*/ -var __obj = {toString:function(){return "\u0041B";}} -var __obj2 = {valueOf:function(){return {};},toString:function(){return "1";}} +var __obj = { + toString: function() { + return "\u0041B"; + } +} +var __obj2 = { + valueOf: function() { + return {}; + }, + toString: function() { + return "1"; + } +} ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if ("ABB\u0041BABAB".indexOf(__obj, __obj2)!==3) { - $ERROR('#1: var __obj = {toString:function(){return "\u0041B";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "1";}}; "ABB\\u0041BABAB".indexOf(__obj, __obj2)===3. Actual: '+("ABB\u0041BABAB".indexOf(__obj, __obj2))); +if ("ABB\u0041BABAB".indexOf(__obj, __obj2) !== 3) { + $ERROR('#1: var __obj = {toString:function(){return "\u0041B";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "1";}}; "ABB\\u0041BABAB".indexOf(__obj, __obj2)===3. Actual: ' + ("ABB\u0041BABAB".indexOf(__obj, __obj2))); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T4.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T4.js index 59a05c692b..578eb5c097 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T4.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T4.js @@ -9,20 +9,28 @@ es5id: 15.5.4.7_A4_T4 description: Override toString and valueOf functions, and they throw exceptions ---*/ -var __obj = {toString:function(){throw "intostr";}}; -var __obj2 = {valueOf:function(){throw "intoint";}}; +var __obj = { + toString: function() { + throw "intostr"; + } +}; +var __obj2 = { + valueOf: function() { + throw "intoint"; + } +}; var __instance = new Number(10001.10001); -Number.prototype.indexOf=String.prototype.indexOf; +Number.prototype.indexOf = String.prototype.indexOf; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __instance.indexOf(__obj, __obj2); - $ERROR('#1: "var x = __instance.indexOf(__obj, __obj2)" lead to throwing exception'); - } catch (e) { - if (e!=="intostr") { - $ERROR('#1.1: Exception === "intostr". Actual: '+e); - } - } +try { + var x = __instance.indexOf(__obj, __obj2); + $ERROR('#1: "var x = __instance.indexOf(__obj, __obj2)" lead to throwing exception'); +} catch (e) { + if (e !== "intostr") { + $ERROR('#1.1: Exception === "intostr". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T5.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T5.js index 97ab2def6f..d40f319cec 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T5.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A4_T5.js @@ -11,9 +11,20 @@ description: > throw exception ---*/ -var __obj = {toString:function(){return {};},valueOf:function(){throw "intostr";}}; +var __obj = { + toString: function() { + return {}; + }, + valueOf: function() { + throw "intostr"; + } +}; -var __obj2 = {valueOf:function(){throw "intointeger";}}; +var __obj2 = { + valueOf: function() { + throw "intointeger"; + } +}; __FACTORY.prototype.indexOf = String.prototype.indexOf; @@ -25,15 +36,19 @@ try { var x = __instance.indexOf(__obj, __obj2); $ERROR('#1: "var x = __instance.indexOf(__obj, __obj2)" lead to throwing exception'); } catch (e) { - if (e!=="intostr") { - $ERROR('#1.1: Exception === "intostr". Actual: '+e); + if (e !== "intostr") { + $ERROR('#1.1: Exception === "intostr". Actual: ' + e); } } // ////////////////////////////////////////////////////////////////////////////// -function __FACTORY( value ) { - this.value = value; - this.toString = function() { return new Number; }; - this.valueOf=function(){return this.value+""}; +function __FACTORY(value) { + this.value = value; + this.toString = function() { + return new Number; + }; + this.valueOf = function() { + return this.value + "" + }; } diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T1.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A5_T1.js index eef162fed4..4823a08d11 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 b6f09b64c6..a66021f9ec 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 f13ef48475..f5075e15c8 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 1d89cb311e..a7f3ceb92d 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 95262eb4e4..8ea838dc43 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 c8456ed37b..9e82edeab1 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 406153de78..296e90732e 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 b1bdd51e0a..11b58ce8ee 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 4c5256a816..41c2e2d8de 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 71a9ebd06c..3ea088e2cf 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 c4e98a0071..9a0f3da509 100644 --- a/test/built-ins/String/prototype/indexOf/position-tointeger-bigint.js +++ b/test/built-ins/String/prototype/indexOf/position-tointeger-bigint.js @@ -11,29 +11,29 @@ features: [BigInt, Symbol.toPrimitive, computed-property-names] ---*/ assert.throws(TypeError, function() { - "".indexOf("", 0n); + "".indexOf("", 0 n); }, "ToInteger: BigInt => TypeError"); assert.throws(TypeError, function() { - "".indexOf("", Object(0n)); + "".indexOf("", Object(0 n)); }, "ToInteger: unbox object with internal slot => BigInt => TypeError"); assert.throws(TypeError, function() { "".indexOf("", { [Symbol.toPrimitive]: function() { - return 0n; + return 0 n; } }); }, "ToInteger: @@toPrimitive => BigInt => TypeError"); assert.throws(TypeError, function() { "".indexOf("", { valueOf: function() { - return 0n; + return 0 n; } }); }, "ToInteger: valueOf => BigInt => TypeError"); assert.throws(TypeError, function() { "".indexOf("", { toString: function() { - return 0n; + return 0 n; } }); }, "ToInteger: toString => BigInt => TypeError"); diff --git a/test/built-ins/String/prototype/indexOf/searchstring-tostring-bigint.js b/test/built-ins/String/prototype/indexOf/searchstring-tostring-bigint.js index ea0b4e2a5c..29cab5f269 100644 --- a/test/built-ins/String/prototype/indexOf/searchstring-tostring-bigint.js +++ b/test/built-ins/String/prototype/indexOf/searchstring-tostring-bigint.js @@ -10,22 +10,22 @@ info: | features: [BigInt, Symbol.toPrimitive, computed-property-names] ---*/ -assert.sameValue("__0__".indexOf(0n), 2, "ToString: BigInt to String"); -assert.sameValue("__0__".indexOf(Object(0n)), 2, +assert.sameValue("__0__".indexOf(0 n), 2, "ToString: BigInt to String"); +assert.sameValue("__0__".indexOf(Object(0 n)), 2, "ToString: unbox object with internal slot => BigInt to String"); assert.sameValue("__0__".indexOf({ [Symbol.toPrimitive]: function() { - return 0n; + return 0 n; } }), 2, "ToString: @@toPrimitive => BigInt to String"); assert.sameValue("__0__".indexOf({ valueOf: function() { - return 0n; + return 0 n; }, toString: null }), 2, "ToString: valueOf => BigInt to String"); assert.sameValue("__0__".indexOf({ toString: function() { - return 0n; + return 0 n; } }), 2, "ToString: toString => BigInt to String"); diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A10.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A10.js index cf5a46c380..ea24cf5f29 100644 --- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A10.js +++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A10.js @@ -15,19 +15,21 @@ includes: [propertyHelper.js] ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.lastIndexOf.hasOwnProperty('length'))) { - $ERROR('#1: String.prototype.lastIndexOf.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.lastIndexOf.hasOwnProperty('length')); + $ERROR('#1: String.prototype.lastIndexOf.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.lastIndexOf.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// var __obj = String.prototype.lastIndexOf.length; -verifyNotWritable(String.prototype.lastIndexOf, "length", null, function(){return "shifted";}); +verifyNotWritable(String.prototype.lastIndexOf, "length", null, function() { + return "shifted"; +}); ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.lastIndexOf.length !== __obj) { - $ERROR('#2: __obj = String.prototype.lastIndexOf.length; String.prototype.lastIndexOf.length = function(){return "shifted";}; String.prototype.lastIndexOf.length === __obj. Actual: '+String.prototype.lastIndexOf.length ); + $ERROR('#2: __obj = String.prototype.lastIndexOf.length; String.prototype.lastIndexOf.length = function(){return "shifted";}; String.prototype.lastIndexOf.length === __obj. Actual: ' + String.prototype.lastIndexOf.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A11.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A11.js index 4ffaeb11f9..e300428951 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 9c97a086eb..43ef356572 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 afc3bc4b8e..4ee4bf2d62 100644 --- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T10.js +++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T10.js @@ -9,15 +9,23 @@ description: > arguments ---*/ -var __obj = {toString:function(){return "\u0041B";}} -var __obj2 = {valueOf:function(){return NaN;}} +var __obj = { + toString: function() { + return "\u0041B"; + } +} +var __obj2 = { + valueOf: function() { + return NaN; + } +} var __str = "ABB\u0041BABAB"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - if (__str.lastIndexOf(__obj, __obj2) !== 7) { - $ERROR('#1: var x; var __obj = {toString:function(){return "\u0041B";}}; var __obj2 = {valueOf:function(){return NaN;}}; var __str = "ABB\u0041BABAB";lastIndexOf(__obj, __obj2) === 7. Actual: '+__str.lastIndexOf(__obj, __obj2) ); - } +if (__str.lastIndexOf(__obj, __obj2) !== 7) { + $ERROR('#1: var x; var __obj = {toString:function(){return "\u0041B";}}; var __obj2 = {valueOf:function(){return NaN;}}; var __str = "ABB\u0041BABAB";lastIndexOf(__obj, __obj2) === 7. Actual: ' + __str.lastIndexOf(__obj, __obj2)); +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T12.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T12.js index 293237feb9..ddb271087d 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 27072b7b73..41a74156b5 100644 --- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T2.js +++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T2.js @@ -15,8 +15,12 @@ __instance.lastIndexOf = String.prototype.lastIndexOf; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__instance.lastIndexOf("A"!=="\u0041", function(){return 0;}(),null) !== 0) { - $ERROR('#1: __instance = new Boolean; __instance.lastIndexOf = String.prototype.lastIndexOf; __instance.lastIndexOf("A"!=="\\u0041", function(){return 0;}(),null) === 0. Actual: '+__instance.lastIndexOf("A"!=="\u0041", function(){return 0;}(),null) ); +if (__instance.lastIndexOf("A" !== "\u0041", function() { + return 0; + }(), null) !== 0) { + $ERROR('#1: __instance = new Boolean; __instance.lastIndexOf = String.prototype.lastIndexOf; __instance.lastIndexOf("A"!=="\\u0041", function(){return 0;}(),null) === 0. Actual: ' + __instance.lastIndexOf("A" !== "\u0041", function() { + return 0; + }(), null)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T4.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T4.js index ebed93a094..0c91d1d256 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 69ab010612..42cd7e1b2b 100644 --- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T5.js +++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T5.js @@ -12,8 +12,12 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToString(null) evaluates to "null" lastIndexOf(null) evaluates to lastIndexOf("",0) -if (function(){return "gnullunazzgnull"}().lastIndexOf(null) !== 11) { - $ERROR('#1: function(){return "gnullunazzgnull"}().lastIndexOf(null) === 11. Actual: '+function(){return "gnullunazzgnull"}().lastIndexOf(null) ); +if (function() { + return "gnullunazzgnull" + }().lastIndexOf(null) !== 11) { + $ERROR('#1: function(){return "gnullunazzgnull"}().lastIndexOf(null) === 11. Actual: ' + function() { + return "gnullunazzgnull" + }().lastIndexOf(null)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T6.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T6.js index 9517f5e65c..d151e20e32 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 a68a8d5abc..b7c047e157 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 29068e54e8..ffa75b06f2 100644 --- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T8.js +++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T8.js @@ -9,13 +9,15 @@ description: > argument of string object ---*/ -var __obj = {toString:function(){}}; +var __obj = { + toString: function() {} +}; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToString(void 0) evaluates to "undefined" lastIndexOf(void 0) evaluates to lastIndexOf("undefined",0) if (String(__obj).lastIndexOf(void 0) !== 0) { - $ERROR('#1: __obj = {toString:function(){}}; String(__obj).lastIndexOf(void 0) === 0. Actual: '+String(__obj).lastIndexOf(void 0) ); + $ERROR('#1: __obj = {toString:function(){}}; String(__obj).lastIndexOf(void 0) === 0. Actual: ' + String(__obj).lastIndexOf(void 0)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T9.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T9.js index ff3b8527c7..0eec7b4ce7 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 5f71a0eaf8..51e9c2a209 100644 --- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T1.js +++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T1.js @@ -9,19 +9,27 @@ es5id: 15.5.4.8_A4_T1 description: Override toString and valueOf functions, valueOf throw exception ---*/ -var __obj = {toString:function(){return "\u0041B";}} -var __obj2 = {valueOf:function(){throw "intointeger";}} +var __obj = { + toString: function() { + return "\u0041B"; + } +} +var __obj2 = { + valueOf: function() { + throw "intointeger"; + } +} var __str = "ABB\u0041BABAB"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __str.lastIndexOf(__obj, __obj2); - $ERROR('#1: var x = __str.lastIndexOf(__obj, __obj2) lead to throwing exception'); - } catch (e) { - if (e!=="intointeger") { - $ERROR('#1.1: Exception === "intointeger". Actual: '+e); - } - } +try { + var x = __str.lastIndexOf(__obj, __obj2); + $ERROR('#1: var x = __str.lastIndexOf(__obj, __obj2) lead to throwing exception'); +} catch (e) { + if (e !== "intointeger") { + $ERROR('#1.1: Exception === "intointeger". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T2.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T2.js index fec80696c1..6df1e98605 100644 --- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T2.js +++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T2.js @@ -11,19 +11,30 @@ description: > exception ---*/ -var __obj = {toString:function(){return "\u0041B";}} -var __obj2 = {valueOf:function(){return {};},toString:function(){throw "intointeger";}} +var __obj = { + toString: function() { + return "\u0041B"; + } +} +var __obj2 = { + valueOf: function() { + return {}; + }, + toString: function() { + throw "intointeger"; + } +} var __str = new String("ABB\u0041BABAB"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __str.lastIndexOf(__obj, __obj2); - $ERROR('#1: var x = __str.lastIndexOf(__obj, __obj2) lead to throwing exception'); - } catch (e) { - if (e!=="intointeger") { - $ERROR('#1.1: Exception === "intointeger". Actual: '+e); - } - } +try { + var x = __str.lastIndexOf(__obj, __obj2); + $ERROR('#1: var x = __str.lastIndexOf(__obj, __obj2) lead to throwing exception'); +} catch (e) { + if (e !== "intointeger") { + $ERROR('#1.1: Exception === "intointeger". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T3.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T3.js index 1d92ea6d1d..39beb28b8d 100644 --- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T3.js +++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T3.js @@ -9,13 +9,22 @@ es5id: 15.5.4.8_A4_T3 description: Override toString and valueOf functions ---*/ -var __obj = {toString:function(){return "\u0041B";}} -var __obj2 = {valueOf:function(){return {};},toString:function(){}} +var __obj = { + toString: function() { + return "\u0041B"; + } +} +var __obj2 = { + valueOf: function() { + return {}; + }, + toString: function() {} +} ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if ("ABB\u0041BABAB".lastIndexOf(__obj, __obj2)!==7) { - $ERROR('#1: var __obj = {toString:function(){return "\u0041B";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){}}; "ABB\\u0041BABAB".lastIndexOf(__obj, __obj2)===7. Actual: '+("ABB\u0041BABAB".lastIndexOf(__obj, __obj2))); +if ("ABB\u0041BABAB".lastIndexOf(__obj, __obj2) !== 7) { + $ERROR('#1: var __obj = {toString:function(){return "\u0041B";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){}}; "ABB\\u0041BABAB".lastIndexOf(__obj, __obj2)===7. Actual: ' + ("ABB\u0041BABAB".lastIndexOf(__obj, __obj2))); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T4.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T4.js index bd1e7613f6..232fc191cc 100644 --- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T4.js +++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T4.js @@ -9,20 +9,28 @@ es5id: 15.5.4.8_A4_T4 description: Override toString and valueOf functions, and they throw exceptions ---*/ -var __obj = {toString:function(){throw "intostr";}}; -var __obj2 = {valueOf:function(){throw "intoint";}}; +var __obj = { + toString: function() { + throw "intostr"; + } +}; +var __obj2 = { + valueOf: function() { + throw "intoint"; + } +}; var __instance = new Number(10001.10001); -Number.prototype.lastIndexOf=String.prototype.lastIndexOf; +Number.prototype.lastIndexOf = String.prototype.lastIndexOf; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __instance.lastIndexOf(__obj, __obj2); - $ERROR('#1: var x = __instance.lastIndexOf(__obj, __obj2) lead to throwing exception'); - } catch (e) { - if (e!=="intostr") { - $ERROR('#1.1: Exception === "intostr". Actual: '+e); - } - } +try { + var x = __instance.lastIndexOf(__obj, __obj2); + $ERROR('#1: var x = __instance.lastIndexOf(__obj, __obj2) lead to throwing exception'); +} catch (e) { + if (e !== "intostr") { + $ERROR('#1.1: Exception === "intostr". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T5.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T5.js index 08f5fed5b5..b1ea6070fd 100644 --- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T5.js +++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A4_T5.js @@ -11,9 +11,20 @@ description: > throw exception ---*/ -var __obj = {toString:function(){return {};},valueOf:function(){throw "intostr";}}; +var __obj = { + toString: function() { + return {}; + }, + valueOf: function() { + throw "intostr"; + } +}; -var __obj2 = {valueOf:function(){throw "intointeger";}}; +var __obj2 = { + valueOf: function() { + throw "intointeger"; + } +}; __FACTORY.prototype.lastIndexOf = String.prototype.lastIndexOf; @@ -25,15 +36,19 @@ try { var x = __instance.lastIndexOf(__obj, __obj2); $ERROR('#1: var x = __instance.lastIndexOf(__obj, __obj2) lead to throwing exception'); } catch (e) { - if (e!=="intostr") { - $ERROR('#1.1: Exception === "intostr". Actual: '+e); + if (e !== "intostr") { + $ERROR('#1.1: Exception === "intostr". Actual: ' + e); } } // ////////////////////////////////////////////////////////////////////////////// -function __FACTORY( value ) { - this.value = value; - this.toString = function() { return new Number; }; - this.valueOf=function(){return this.value+""}; +function __FACTORY(value) { + this.value = value; + this.toString = function() { + return new Number; + }; + this.valueOf = function() { + return this.value + "" + }; } diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A6.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A6.js index 96170a0ca0..49063652b4 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 31aa5fcd8e..bbe092d514 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 61be576d12..44fb7852e7 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 06517ec3a5..e1e5cdd262 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 365a805954..4123b624fa 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 7af411b707..f50b0ff8db 100644 --- a/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A10.js +++ b/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A10.js @@ -15,19 +15,21 @@ includes: [propertyHelper.js] ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.localeCompare.hasOwnProperty('length'))) { - $ERROR('#1: String.prototype.localeCompare.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.localeCompare.hasOwnProperty('length')); + $ERROR('#1: String.prototype.localeCompare.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.localeCompare.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// var __obj = String.prototype.localeCompare.length; -verifyNotWritable(String.prototype.localeCompare, "length", null, function(){return "shifted";}); +verifyNotWritable(String.prototype.localeCompare, "length", null, function() { + return "shifted"; +}); ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.localeCompare.length !== __obj) { - $ERROR('#2: __obj = String.prototype.localeCompare.length; String.prototype.localeCompare.length = function(){return "shifted";}; String.prototype.localeCompare.length === __obj. Actual: '+String.prototype.localeCompare.length ); + $ERROR('#2: __obj = String.prototype.localeCompare.length; String.prototype.localeCompare.length = function(){return "shifted";}; String.prototype.localeCompare.length === __obj. Actual: ' + String.prototype.localeCompare.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A11.js b/test/built-ins/String/prototype/localeCompare/S15.5.4.9_A11.js index 4cd0b2bce3..d2b382111f 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 36c1e70197..c1d2311589 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 be41eeb44c..65aa3fbf31 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 19001efc7e..01b7a40060 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 b70beafa05..b52cc3ba68 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 137c85bb37..928d8f7035 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 af1145e500..544ffe9d95 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 009ca6ab17..4b71f19007 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T10.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T10.js @@ -7,14 +7,18 @@ es5id: 15.5.4.10_A1_T10 description: Call match (regexp) function with object argument ---*/ -var __obj = {toString:function(){return "\u0041B";}} +var __obj = { + toString: function() { + return "\u0041B"; + } +} var __str = "ABB\u0041BABAB"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - if (__str.match(__obj)[0] !=="AB") { - $ERROR('#1: var x; var __obj = {toString:function(){return "\u0041B";}}; var __str = "ABB\u0041BABAB"; __str.match(__obj)[0] ==="AB". Actual: '+__str.match(__obj)[0] ); - } +if (__str.match(__obj)[0] !== "AB") { + $ERROR('#1: var x; var __obj = {toString:function(){return "\u0041B";}}; var __str = "ABB\u0041BABAB"; __str.match(__obj)[0] ==="AB". Actual: ' + __str.match(__obj)[0]); +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T11.js b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T11.js index 01c8767ebf..ea732163a8 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T11.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T11.js @@ -9,18 +9,22 @@ description: > match (regexp) function with this object as argument ---*/ -var __obj = {toString:function(){throw "intostr";}} +var __obj = { + toString: function() { + throw "intostr"; + } +} var __str = "ABB\u0041BABAB"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __str.match(__obj); - $ERROR('#1: "var x = __str.match(__obj)" lead to throwing exception'); - } catch (e) { - if (e!=="intostr") { - $ERROR('#1.1: Exception === "intostr". Actual: '+e); - } - } +try { + var x = __str.match(__obj); + $ERROR('#1: "var x = __str.match(__obj)" lead to throwing exception'); +} catch (e) { + if (e !== "intostr") { + $ERROR('#1.1: Exception === "intostr". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T12.js b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T12.js index 9f6049a40b..1acb9a21d7 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T12.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T12.js @@ -9,18 +9,25 @@ description: > then call match (regexp) function with this object as argument ---*/ -var __obj = {toString:function(){return {};},valueOf:function(){throw "intostr";}} +var __obj = { + toString: function() { + return {}; + }, + valueOf: function() { + throw "intostr"; + } +} var __str = new String("ABB\u0041BABAB"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __str.match(__obj); - $ERROR('#1: "var x = __str.match(__obj)" lead to throwing exception'); - } catch (e) { - if (e!=="intostr") { - $ERROR('#1.1: Exception === "intostr". Actual: '+e); - } - } +try { + var x = __str.match(__obj); + $ERROR('#1: "var x = __str.match(__obj)" lead to throwing exception'); +} catch (e) { + if (e !== "intostr") { + $ERROR('#1.1: Exception === "intostr". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T13.js b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T13.js index 64e9be70b9..8a9cb164fb 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T13.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T13.js @@ -9,12 +9,19 @@ description: > function with this object as argument ---*/ -var __obj = {toString:function(){return {};},valueOf:function(){return 1;}} +var __obj = { + toString: function() { + return {}; + }, + valueOf: function() { + return 1; + } +} ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if ("ABB\u0041B\u0031ABAB\u0031BBAA".match(__obj)[0] !=="1") { - $ERROR('#1: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; "ABB\\u0041B\\u0031ABAB\\u0031BBAA".match(__obj)[0] ==="1". Actual: '+("ABB\u0041B\u0031ABAB\u0031BBAA".match(__obj)[0]) ); +if ("ABB\u0041B\u0031ABAB\u0031BBAA".match(__obj)[0] !== "1") { + $ERROR('#1: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; "ABB\\u0041B\\u0031ABAB\\u0031BBAA".match(__obj)[0] ==="1". Actual: ' + ("ABB\u0041B\u0031ABAB\u0031BBAA".match(__obj)[0])); } // ////////////////////////////////////////////////////////////////////////////// @@ -22,7 +29,7 @@ if ("ABB\u0041B\u0031ABAB\u0031BBAA".match(__obj)[0] !=="1") { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if ("ABB\u0041B\u0031ABAB\u0031BBAA".match(__obj).length !== 1) { - $ERROR('#3: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; "ABB\\u0041B\\u0031ABAB\\u0031BBAA".match(__obj).length === 1. Actual: '+("ABB\u0041B\u0031ABAB\u0031BBAA".match(__obj).length) ); + $ERROR('#3: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; "ABB\\u0041B\\u0031ABAB\\u0031BBAA".match(__obj).length === 1. Actual: ' + ("ABB\u0041B\u0031ABAB\u0031BBAA".match(__obj).length)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T14.js b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T14.js index fb112c3fa6..5ef04584db 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 dd87135654..e657e1bf3a 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T3.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T3.js @@ -10,14 +10,15 @@ description: Checking by using eval var match = String.prototype.match.bind(this); try { - this.toString = Object.prototype.toString; -} catch (e) { ; } + this.toString = Object.prototype.toString; +} catch (e) {; +} ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if ((this.toString === Object.prototype.toString) && //Ensure we could overwrite global obj's toString - (match(eval("\"bj\""))[0] !== "bj")) { - $ERROR('#1: match = String.prototype.match.bind(this); match(eval("\\"bj\\""))[0] === "bj". Actual: '+match(eval("\"bj\""))[0] ); +if ((this.toString === Object.prototype.toString) && //Ensure we could overwrite global obj's toString + (match(eval("\"bj\""))[0] !== "bj")) { + $ERROR('#1: match = String.prototype.match.bind(this); match(eval("\\"bj\\""))[0] === "bj". Actual: ' + match(eval("\"bj\""))[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T4.js b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T4.js index d81fcf57f7..7d67a718b4 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 f0a41f16fa..a8ca7399d6 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T5.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T5.js @@ -10,8 +10,12 @@ description: Call match (regexp) function with null argument of function object ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToString(null) evaluates to "null" match(null) evaluates to match("null") -if (function(){return "gnulluna"}().match(null)[0] !== "null") { - $ERROR('#1: function(){return "gnulluna"}().match(null)[0] === "null". Actual: '+function(){return "gnulluna"}().match(null)[0] ); +if (function() { + return "gnulluna" + }().match(null)[0] !== "null") { + $ERROR('#1: function(){return "gnulluna"}().match(null)[0] === "null". Actual: ' + function() { + return "gnulluna" + }().match(null)[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T6.js b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T6.js index 9fd224f52b..f889214612 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 b59c691739..a07e6f7684 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 13aa23e557..36f3d08028 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T8.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T8.js @@ -7,16 +7,18 @@ es5id: 15.5.4.10_A1_T8 description: Call match (regexp) function with void 0 argument of string object; ---*/ -var __obj = {toString:function(){}}; +var __obj = { + toString: function() {} +}; var __matched = String(__obj).match(void 0); -var __expected = RegExp(void 0).exec("undefined"); +var __expected = RegExp(void 0).exec("undefined"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__matched.length !== __expected.length) { - $ERROR('#1: __obj = {toString:function(){}}; __matched = String(__obj).match(void 0); __expected = RegExp(void 0).exec("undefined"); __matched.length === __expected.length. Actual: '+__matched.length ); + $ERROR('#1: __obj = {toString:function(){}}; __matched = String(__obj).match(void 0); __expected = RegExp(void 0).exec("undefined"); __matched.length === __expected.length. Actual: ' + __matched.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -24,7 +26,7 @@ if (__matched.length !== __expected.length) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__matched.index !== __expected.index) { - $ERROR('#2: __obj = {toString:function(){}}; __matched = String(__obj).match(void 0); __expected = RegExp(void 0).exec("undefined"); __matched.index === __expected.index. Actual: '+__matched.index ); + $ERROR('#2: __obj = {toString:function(){}}; __matched = String(__obj).match(void 0); __expected = RegExp(void 0).exec("undefined"); __matched.index === __expected.index. Actual: ' + __matched.index); } // ////////////////////////////////////////////////////////////////////////////// @@ -32,16 +34,16 @@ if (__matched.index !== __expected.index) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__matched.input !== __expected.input) { - $ERROR('#3: __obj = {toString:function(){}}; __matched = String(__obj).match(void 0); __expected = RegExp(void 0).exec("undefined"); __matched.input === __expected.input. Actual: '+__matched.input ); + $ERROR('#3: __obj = {toString:function(){}}; __matched = String(__obj).match(void 0); __expected = RegExp(void 0).exec("undefined"); __matched.input === __expected.input. Actual: ' + __matched.input); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#4 -for(var index=0; index<__expected.length; index++) { - if (__matched[index]!==__expected[index]) { - $ERROR('#4.'+index+': __obj = {toString:function(){}}; __matched = String(__obj).match(void 0); __expected = RegExp(void 0).exec("undefined"); __matched['+index+']===__expected['+index+']. Actual: '+__matched[index]); +for (var index = 0; index < __expected.length; index++) { + if (__matched[index] !== __expected[index]) { + $ERROR('#4.' + index + ': __obj = {toString:function(){}}; __matched = String(__obj).match(void 0); __expected = RegExp(void 0).exec("undefined"); __matched[' + index + ']===__expected[' + index + ']. Actual: ' + __matched[index]); } } // diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T9.js b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T9.js index a9ce29da4a..df8ab7b604 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 4f74b06895..d45e716aa0 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 5a5c5f3825..6a23ef54e6 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 8bf987ea9c..c34a0c874a 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 c89079514e..760e6a1074 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 4a61755998..3424023d22 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 92b5593881..673f1fb0c3 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 b2101492cd..1f222e684b 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 ac72b075f7..6fb716b82b 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 9cd4f78486..2721f7871a 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 9f8c8b30e1..00ac312bc1 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 27e46bbb2b..4d156a3c71 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 26e6dd68eb..3d42695ab4 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 37c6ec04e5..bf143c5e34 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 22044d86b5..f2fc03437e 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 1be783adf1..7a1422d916 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 48a7ba461c..18e1477be6 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 27cf7c4070..635952659d 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 b37f8ec737..730494c45c 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 e7b44f13fc..e2f257c4b6 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 f3ab3f402a..c1b66b3a63 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 d07bced4db..dedeedfd40 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 e6c8b7d8a1..71b5ba725a 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 674b25cad1..89688b5dac 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 65488e5266..47765c59f2 100644 --- a/test/built-ins/String/prototype/match/this-val-bool.js +++ b/test/built-ins/String/prototype/match/this-val-bool.js @@ -15,8 +15,12 @@ __instance.match = String.prototype.match; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__instance.match(function(){return false;}())[0] !== "false") { - $ERROR('#1: __instance = new Boolean; __instance.match = String.prototype.match; __instance.match(function(){return false;}())[0] === "false". Actual: '+__instance.match(function(){return false;}())[0] ); +if (__instance.match(function() { + return false; + }())[0] !== "false") { + $ERROR('#1: __instance = new Boolean; __instance.match = String.prototype.match; __instance.match(function(){return false;}())[0] === "false". Actual: ' + __instance.match(function() { + return false; + }())[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/match/this-val-obj.js b/test/built-ins/String/prototype/match/this-val-obj.js index 62c1781866..65b4773920 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 81ca290362..1efb22b129 100644 --- a/test/built-ins/String/prototype/normalize/return-normalized-string-from-coerced-form.js +++ b/test/built-ins/String/prototype/normalize/return-normalized-string-from-coerced-form.js @@ -23,14 +23,18 @@ var s = '\u00C5\u2ADC\u0958\u2126\u0344'; var nfc = '\xC5\u2ADD\u0338\u0915\u093C\u03A9\u0308\u0301'; var nfd = 'A\u030A\u2ADD\u0338\u0915\u093C\u03A9\u0308\u0301'; var o = { - toString: function() { return 'NFC'; } + toString: function() { + return 'NFC'; + } }; assert.sameValue(s.normalize(['NFC']), nfc, 'coerced array - NFC'); assert.sameValue(s.normalize(o), nfc, 'coerced object - NFC'); o = { - toString: function() { return 'NFD'; } + toString: function() { + return 'NFD'; + } }; assert.sameValue(s.normalize(['NFD']), nfd, 'coerced array - NFD'); diff --git a/test/built-ins/String/prototype/padEnd/exception-fill-string-symbol.js b/test/built-ins/String/prototype/padEnd/exception-fill-string-symbol.js index 1bd1678448..96d9d28595 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 ef89429a2d..7736d7ff06 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 949d4d927b..2c4b5ff0c5 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 0b6b7db74a..d37b167d96 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 38315b3c44..ebfe78c890 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 73f5435445..fbcb054541 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 7d08deae00..c6ea23939a 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 66521f28c3..9f85fe4f6d 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 0b63be0e4e..824978a804 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 dfb9a0f261..260ecda04c 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 5cc4a8ce9e..c591250792 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 76846ee1f8..a733aa05a9 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A10.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A10.js @@ -13,19 +13,21 @@ includes: [propertyHelper.js] ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.replace.hasOwnProperty('length'))) { - $ERROR('#1: String.prototype.replace.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.replace.hasOwnProperty('length')); + $ERROR('#1: String.prototype.replace.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.replace.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// var __obj = String.prototype.replace.length; -verifyNotWritable(String.prototype.replace, "length", null, function(){return "shifted";}); +verifyNotWritable(String.prototype.replace, "length", null, function() { + return "shifted"; +}); ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.replace.length !== __obj) { - $ERROR('#2: __obj = String.prototype.replace.length; String.prototype.replace.length = function(){return "shifted";}; String.prototype.replace.length === __obj. Actual: '+String.prototype.replace.length ); + $ERROR('#2: __obj = String.prototype.replace.length; String.prototype.replace.length = function(){return "shifted";}; String.prototype.replace.length === __obj. Actual: ' + String.prototype.replace.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A11.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A11.js index 5b9af5f11d..78b3472ae8 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 66ba29f7f0..0dea5dd0f0 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 0ccd9a7817..1e8384155c 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 552c478fff..c044c85153 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T10.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T10.js @@ -10,15 +10,23 @@ description: > function ---*/ -var __obj = {toString:function(){return "\u0041B";}}; +var __obj = { + toString: function() { + return "\u0041B"; + } +}; var __str = "ABB\u0041BABAB"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - if (__str.replace(__obj, function(){return x;}) !== "undefinedBABABAB") { - $ERROR('#1: var x; var __obj = {toString:function(){return "\u0041B";}}; var __str = "ABB\u0041BABAB"; replace(__obj, function(){return x;}) === "undefinedBABABAB". Actual: '+__str.replace(__obj, function(){return x;}) ); - } +if (__str.replace(__obj, function() { + return x; + }) !== "undefinedBABABAB") { + $ERROR('#1: var x; var __obj = {toString:function(){return "\u0041B";}}; var __str = "ABB\u0041BABAB"; replace(__obj, function(){return x;}) === "undefinedBABABAB". Actual: ' + __str.replace(__obj, function() { + return x; + })); +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T11.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T11.js index e6da57621d..9957654db5 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T11.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T11.js @@ -10,19 +10,27 @@ description: > function, that throw exception ---*/ -var __obj = {toString:function(){throw "insearchValue";}}; -var __obj2 = {toString:function(){throw "inreplaceValue";}}; +var __obj = { + toString: function() { + throw "insearchValue"; + } +}; +var __obj2 = { + toString: function() { + throw "inreplaceValue"; + } +}; var __str = "ABB\u0041BABAB"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __str.replace(__obj,__obj2); - $ERROR('#1: "var x = __str.replace(__obj,__obj2)" lead to throwing exception'); - } catch (e) { - if (e!=="insearchValue") { - $ERROR('#1.1: Exception === "insearchValue". Actual: '+e); - } - } +try { + var x = __str.replace(__obj, __obj2); + $ERROR('#1: "var x = __str.replace(__obj,__obj2)" lead to throwing exception'); +} catch (e) { + if (e !== "insearchValue") { + $ERROR('#1.1: Exception === "insearchValue". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T12.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T12.js index d56fe57fde..b7fb48f1ff 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T12.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T12.js @@ -11,19 +11,30 @@ description: > have overrided toString function, that throw exception ---*/ -var __obj = {toString:function(){return {};}, valueOf:function(){throw "insearchValue";}}; -var __obj2 = {toString:function(){throw "inreplaceValue";}}; +var __obj = { + toString: function() { + return {}; + }, + valueOf: function() { + throw "insearchValue"; + } +}; +var __obj2 = { + toString: function() { + throw "inreplaceValue"; + } +}; var __str = new String("ABB\u0041BABAB"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __str.replace(__obj, __obj2); - $ERROR('#1: "var x = __str.replace(__obj,__obj2)" lead to throwing exception'); - } catch (e) { - if (e!=="insearchValue") { - $ERROR('#1.1: Exception === "insearchValue". Actual: '+e); - } - } +try { + var x = __str.replace(__obj, __obj2); + $ERROR('#1: "var x = __str.replace(__obj,__obj2)" lead to throwing exception'); +} catch (e) { + if (e !== "insearchValue") { + $ERROR('#1.1: Exception === "insearchValue". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T13.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T13.js index 0a3b6feff8..47f4cd103a 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T13.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T13.js @@ -11,18 +11,29 @@ description: > function, that throw exception ---*/ -var __obj = {toString:function(){return {};}, valueOf:function(){return 1;}}; -var __obj2 = {toString:function(){throw "inreplaceValue";}}; +var __obj = { + toString: function() { + return {}; + }, + valueOf: function() { + return 1; + } +}; +var __obj2 = { + toString: function() { + throw "inreplaceValue"; + } +}; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 try { - var x = "ABB\u0041BABAB\u0031BBAA".replace(__obj, __obj2); - $ERROR('#1: var x = "ABB\\u0041BABAB\\u0031BBAA".replace(__obj,__obj2) lead to throwing exception'); + var x = "ABB\u0041BABAB\u0031BBAA".replace(__obj, __obj2); + $ERROR('#1: var x = "ABB\\u0041BABAB\\u0031BBAA".replace(__obj,__obj2) lead to throwing exception'); } catch (e) { - if (e!=="inreplaceValue") { - $ERROR('#1.1: Exception === "inreplaceValue". Actual: '+e); - } + if (e !== "inreplaceValue") { + $ERROR('#1.1: Exception === "inreplaceValue". Actual: ' + e); + } } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T14.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T14.js index e37a5abec3..0068bb2ff6 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 6156897ad3..f6a6011c9d 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T15.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T15.js @@ -7,7 +7,11 @@ es5id: 15.5.4.11_A1_T15 description: Instance is Object, searchValue is regular expression ---*/ -var __obj = {toString:function(){return /77/}}; +var __obj = { + toString: function() { + return /77/ + } +}; var __instance = new Object(1100.00777001); @@ -17,10 +21,10 @@ Object.prototype.replace = String.prototype.replace; //CHECK#1 try { var x = __instance.replace(__obj, 1) === "1100.0017001"; - $ERROR('#1.0: x = __instance.replace(__obj, 1) === "1100.0017001" lead to throwing exception'); + $ERROR('#1.0: x = __instance.replace(__obj, 1) === "1100.0017001" lead to throwing exception'); } catch (e) { if (!(e instanceof TypeError)) { - $ERROR('#1.1: Exception is instance of TypeError. Actual: '+e); + $ERROR('#1.1: Exception is instance of TypeError. Actual: ' + e); } } // diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T16.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T16.js index e29fe2002b..7954b1f9a7 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T16.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T16.js @@ -13,7 +13,13 @@ var __instance = new Number(1100.00777001); Number.prototype.replace = String.prototype.replace; -var __obj = {toString:function(){return function(a1,a2,a3){return a2+"z"};}} +var __obj = { + toString: function() { + return function(a1, a2, a3) { + return a2 + "z" + }; + } +} //__obj = function(a1,a2,a3){return a2+"z"}; @@ -24,7 +30,7 @@ try { $ERROR('#1.0: x = __instance.replace(__obj, 1) === "1100.007z7001" lead to throwing exception'); } catch (e) { if (!(e instanceof TypeError)) { - $ERROR('#1.1: Exception is instance of TypeError. Actual: '+e); + $ERROR('#1.1: Exception is instance of TypeError. Actual: ' + e); } } // diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T17.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T17.js index 979101a3a9..89a3a605e8 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 b8c56f3158..3420074378 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T2.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T2.js @@ -15,8 +15,12 @@ __instance.replace = String.prototype.replace; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__instance.replace(function(){return false;}(),x) !== "undefined") { - $ERROR('#1: var x; __instance = new Boolean; __instance.replace = String.prototype.replace; __instance.replace(function(){return false;}(),x) === "undefined". Actual: '+__instance.replace(function(){return false;}(),x) ); +if (__instance.replace(function() { + return false; + }(), x) !== "undefined") { + $ERROR('#1: var x; __instance = new Boolean; __instance.replace = String.prototype.replace; __instance.replace(function(){return false;}(),x) === "undefined". Actual: ' + __instance.replace(function() { + return false; + }(), x)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T4.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T4.js index e38a394441..f647a286ef 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T4.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T4.js @@ -11,8 +11,16 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (function(){return "gnulluna"}().replace(null,function(a1,a2,a3){return a2+"";}) !== "g1una") { - $ERROR('#1: function(){return "gnulluna"}().replace(null,function(a1,a2,a3){return a2+"";}) === "g1una". Actual: '+function(){return "gnulluna"}().replace(null,function(a1,a2,a3){return a2+"";}) ); +if (function() { + return "gnulluna" + }().replace(null, function(a1, a2, a3) { + return a2 + ""; + }) !== "g1una") { + $ERROR('#1: function(){return "gnulluna"}().replace(null,function(a1,a2,a3){return a2+"";}) === "g1una". Actual: ' + function() { + return "gnulluna" + }().replace(null, function(a1, a2, a3) { + return a2 + ""; + })); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T5.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T5.js index cbd9c74fe6..1b285d190f 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T5.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T5.js @@ -11,8 +11,12 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (function(){return "gnulluna"}().replace(null, Function()) !== "gundefineduna") { - $ERROR('#1: function(){return "gnulluna"}().replace(null, Function()) === "gundefineduna". Actual: '+function(){return "gnulluna"}().replace(null, Function()) ); +if (function() { + return "gnulluna" + }().replace(null, Function()) !== "gundefineduna") { + $ERROR('#1: function(){return "gnulluna"}().replace(null, Function()) === "gundefineduna". Actual: ' + function() { + return "gnulluna" + }().replace(null, Function())); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T6.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T6.js index b593f4f938..4bb87896c4 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 8c2ec13113..aebeaffc28 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 81c9a9c4ad..24bfc5d140 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T8.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T8.js @@ -9,12 +9,14 @@ description: > expression and void 0 arguments of String object ---*/ -var __obj = {toString:function(){}}; +var __obj = { + toString: function() {} +}; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (String(__obj).replace(/e/g,void 0) !== "undundefinedfinundefinedd") { - $ERROR('#1: __obj = {toString:function(){}}; String(__obj).replace(/e/g,void 0) === "undundefinedfinundefinedd". Actual: '+String(__obj).replace(/e/g,void 0) ); +if (String(__obj).replace(/e/g, void 0) !== "undundefinedfinundefinedd") { + $ERROR('#1: __obj = {toString:function(){}}; String(__obj).replace(/e/g,void 0) === "undundefinedfinundefinedd". Actual: ' + String(__obj).replace(/e/g, void 0)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T9.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T9.js index 9c4ebe9e26..950aa347a2 100644 --- a/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T9.js +++ b/test/built-ins/String/prototype/replace/S15.5.4.11_A1_T9.js @@ -10,16 +10,18 @@ description: > ---*/ var __obj = { - valueOf:function(){}, - toString:void 0 + valueOf: function() {}, + toString: void 0 }; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (new String(__obj).replace(function(){}(),__func) !== "undefined0undefined") { - $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; function __func(a1,a2,a3){return a1+a2+a3;}; new String(__obj).replace(function(){}(),__func) === "undefined0undefined". Actual: '+new String(__obj).replace(function(){}(),__func) ); +if (new String(__obj).replace(function() {}(), __func) !== "undefined0undefined") { + $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; function __func(a1,a2,a3){return a1+a2+a3;}; new String(__obj).replace(function(){}(),__func) === "undefined0undefined". Actual: ' + new String(__obj).replace(function() {}(), __func)); } // ////////////////////////////////////////////////////////////////////////////// -function __func(a1,a2,a3){return a1+a2+a3;}; +function __func(a1, a2, a3) { + return a1 + a2 + a3; +}; diff --git a/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T1.js b/test/built-ins/String/prototype/replace/S15.5.4.11_A2_T1.js index faf12bdc5e..14975453a2 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 aabe0d9ae0..0a8d22f4c2 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 b5290edf2f..3c40268897 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 ca30baccbb..231fe1bca8 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 3d6e58a3b7..53b4143d0c 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 a3c907e2b2..734dcb2472 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 c0811cbeeb..3ba195faf4 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 327071a449..3c475e5f16 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 45c09ddfd5..38accef878 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 946f10372c..175a4df67e 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 07cc9cc722..2bd1e5d2da 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 103dc9ec37..10b7df2c58 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 3b1a30458b..83060fd58b 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 e695fe5722..99a1b6f3a8 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 141966c06b..83489c51d3 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 fcd736f859..e601212031 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 b272fa8d7f..199688c6cf 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 22128bc6e0..37a6bb1fb1 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 5ba2416aba..f71770ae62 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 848f6bd1e7..e88a11ca1d 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 3ad4ba9532..536529b430 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 55b188a5ea..0d198db9ed 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 9b11861327..3a7a27f67c 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A10.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A10.js @@ -13,19 +13,21 @@ includes: [propertyHelper.js] ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.search.hasOwnProperty('length'))) { - $ERROR('#1: String.prototype.search.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.search.hasOwnProperty('length')); + $ERROR('#1: String.prototype.search.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.search.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// var __obj = String.prototype.search.length; -verifyNotWritable(String.prototype.search, "length", null, function(){return "shifted";}); +verifyNotWritable(String.prototype.search, "length", null, function() { + return "shifted"; +}); ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.search.length !== __obj) { - $ERROR('#2: __obj = String.prototype.search.length; String.prototype.search.length = function(){return "shifted";}; String.prototype.search.length === __obj. Actual: '+String.prototype.search.length ); + $ERROR('#2: __obj = String.prototype.search.length; String.prototype.search.length = function(){return "shifted";}; String.prototype.search.length === __obj. Actual: ' + String.prototype.search.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A11.js b/test/built-ins/String/prototype/search/S15.5.4.12_A11.js index 3e71c196d9..13e25ac574 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 1813eaac26..2ef942e49c 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 8e6a7efc57..02515864ef 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T10.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T10.js @@ -9,14 +9,18 @@ description: > toString function ---*/ -var __obj = {toString:function(){return "\u0041B";}}; +var __obj = { + toString: function() { + return "\u0041B"; + } +}; var __str = "ssABB\u0041BABAB"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - if (__str.search(__obj) !==2) { - $ERROR('#1: var __obj = {toString:function(){return "\u0041B";}}; var __str = "ssABB\u0041BABAB"; __str.search(__obj) ===2. Actual: '+__str.search(__obj) ); - } +if (__str.search(__obj) !== 2) { + $ERROR('#1: var __obj = {toString:function(){return "\u0041B";}}; var __str = "ssABB\u0041BABAB"; __str.search(__obj) ===2. Actual: ' + __str.search(__obj)); +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T11.js b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T11.js index 8367e9ae3f..dec9e127e0 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T11.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T11.js @@ -9,18 +9,22 @@ description: > toString function, that throw exception ---*/ -var __obj = {toString:function(){throw "intostr";}} +var __obj = { + toString: function() { + throw "intostr"; + } +} var __str = "ABB\u0041BABAB"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __str.search(__obj); - $ERROR('#1: var x = __str.search(__obj) lead to throwing exception'); - } catch (e) { - if (e!=="intostr") { - $ERROR('#1.1: Exception === "intostr". Actual: '+e); - } - } +try { + var x = __str.search(__obj); + $ERROR('#1: var x = __str.search(__obj) lead to throwing exception'); +} catch (e) { + if (e !== "intostr") { + $ERROR('#1.1: Exception === "intostr". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T12.js b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T12.js index b53f644520..09d8fcee6c 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T12.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T12.js @@ -9,18 +9,25 @@ description: > toString and valueOf functions, valueOf throw exception ---*/ -var __obj = {toString:function(){return {};},valueOf:function(){throw "intostr";}} +var __obj = { + toString: function() { + return {}; + }, + valueOf: function() { + throw "intostr"; + } +} var __str = new String("ABB\u0041BABAB"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __str.search(__obj); - $ERROR('#1: var x = __str.search(__obj) lead to throwing exception'); - } catch (e) { - if (e!=="intostr") { - $ERROR('#1.1: Exception === "intostr". Actual: '+e); - } - } +try { + var x = __str.search(__obj); + $ERROR('#1: var x = __str.search(__obj) lead to throwing exception'); +} catch (e) { + if (e !== "intostr") { + $ERROR('#1.1: Exception === "intostr". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T13.js b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T13.js index edec536de1..92c121f588 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T13.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T13.js @@ -9,12 +9,19 @@ description: > toString and valueOf functions ---*/ -var __obj = {toString:function(){return {};},valueOf:function(){return 1;}} +var __obj = { + toString: function() { + return {}; + }, + valueOf: function() { + return 1; + } +} ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if ("ABB\u0041B\u0031ABAB\u0031BBAA".search(__obj) !==5) { - $ERROR('#1: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; "ABB\\u0041B\\u0031ABAB\\u0031BBAA".search(__obj) ===5. Actual: '+("ABB\u0041B\u0031ABAB\u0031BBAA".search(__obj)) ); +if ("ABB\u0041B\u0031ABAB\u0031BBAA".search(__obj) !== 5) { + $ERROR('#1: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; "ABB\\u0041B\\u0031ABAB\\u0031BBAA".search(__obj) ===5. Actual: ' + ("ABB\u0041B\u0031ABAB\u0031BBAA".search(__obj))); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T14.js b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T14.js index a8245be476..8a12d8fa89 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 61d0ec886a..103332f718 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T2.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T2.js @@ -13,8 +13,12 @@ __instance.search = String.prototype.search; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__instance.search(function(){return false;}()) !== 0) { - $ERROR('#1: __instance = new Boolean; __instance.search = String.prototype.search; __instance.search(function(){return false;}()) === 0. Actual: '+__instance.search(function(){return false;}()) ); +if (__instance.search(function() { + return false; + }()) !== 0) { + $ERROR('#1: __instance = new Boolean; __instance.search = String.prototype.search; __instance.search(function(){return false;}()) === 0. Actual: ' + __instance.search(function() { + return false; + }())); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T4.js b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T4.js index c3e0aa6696..d7245d11e0 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 a1407792fa..297c1719d1 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T5.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T5.js @@ -10,8 +10,12 @@ description: Argument is null, and instance is function call, that return string ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToString(null) evaluates to "null" search(null) evaluates to search("null") -if (function(){return "gnulluna"}().search(null) !== 1) { - $ERROR('#1: function(){return "gnulluna"}().search(null) === 1. Actual: '+function(){return "gnulluna"}().search(null) ); +if (function() { + return "gnulluna" + }().search(null) !== 1) { + $ERROR('#1: function(){return "gnulluna"}().search(null) === 1. Actual: ' + function() { + return "gnulluna" + }().search(null)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T6.js b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T6.js index 074d2d68fc..f2b4f76545 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 dc79e77e24..f4512a6919 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 9686f918f5..77a619c6a7 100644 --- a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T8.js +++ b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T8.js @@ -9,13 +9,15 @@ description: > toString function ---*/ -var __obj = {toString:function(){}}; +var __obj = { + toString: function() {} +}; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToString(void 0) evaluates to "undefined" search(void 0) evaluates to search("undefined") if (String(__obj).search(void 0) !== 0) { - $ERROR('#1: __obj = {toString:function(){}}; String(__obj).search(void 0) === 0. Actual: '+String(__obj).search(void 0) ); + $ERROR('#1: __obj = {toString:function(){}}; String(__obj).search(void 0) === 0. Actual: ' + String(__obj).search(void 0)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T9.js b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T9.js index d94e1307fa..000e2f3d7c 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 67cd389fcf..3e7755ee42 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 31a6f4123e..5e1946c291 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 221a602490..6d9640d7bb 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 2edc13e4aa..98e9ccd3f1 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 40b750cc8b..a2c4d80fd2 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 b6787c22c1..3acba0c77f 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 4dad5ae95b..7581a0a85f 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 1481639f7c..bc46040ef9 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 099e69e6fb..af4e03407a 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 7b56f3270b..8e6d1e94dd 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 e34449aac3..d6e6f751c8 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 e51d88ad62..300413c01d 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 544791040a..1abba43463 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 1905752598..b01969682e 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A10.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A10.js @@ -13,19 +13,21 @@ includes: [propertyHelper.js] ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.slice.hasOwnProperty('length'))) { - $ERROR('#1: String.prototype.slice.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.slice.hasOwnProperty('length')); + $ERROR('#1: String.prototype.slice.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.slice.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// var __obj = String.prototype.slice.length; -verifyNotWritable(String.prototype.slice, "length", null, function(){return "shifted";}); +verifyNotWritable(String.prototype.slice, "length", null, function() { + return "shifted"; +}); ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.slice.length !== __obj) { - $ERROR('#2: __obj = String.prototype.slice.length; String.prototype.slice.length = function(){return "shifted";}; String.prototype.slice.length === __obj. Actual: '+String.prototype.slice.length ); + $ERROR('#2: __obj = String.prototype.slice.length; String.prototype.slice.length = function(){return "shifted";}; String.prototype.slice.length === __obj. Actual: ' + String.prototype.slice.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A11.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A11.js index df758f408d..e5ea943ba5 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 5158fdf5b9..5ec85372c3 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 6f6100e611..14dd4a2c03 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T10.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T10.js @@ -9,15 +9,23 @@ description: > object have overrided valueOf function ---*/ -var __obj = {valueOf:function(){return 2;}}; +var __obj = { + valueOf: function() { + return 2; + } +}; var __str = "\u0035ABBBABAB"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - if (__str.slice(__obj, function(){return __str.slice(0,1);}()) !== "BBB") { - $ERROR('#1: var x; var __obj = {valueOf:function(){return 2;}}; var __str = "\u0035ABBBABAB"; __str.slice(__obj, function(){return __str.slice(0,1);}()) === "BBB". Actual: '+__str.slice(__obj, function(){return __str.slice(0,1);}()) ); - } +if (__str.slice(__obj, function() { + return __str.slice(0, 1); + }()) !== "BBB") { + $ERROR('#1: var x; var __obj = {valueOf:function(){return 2;}}; var __str = "\u0035ABBBABAB"; __str.slice(__obj, function(){return __str.slice(0,1);}()) === "BBB". Actual: ' + __str.slice(__obj, function() { + return __str.slice(0, 1); + }())); +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T11.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T11.js index 1e5d7e9a7a..5c45b1ceb2 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T11.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T11.js @@ -9,19 +9,27 @@ description: > overrided valueOf function, that return exception ---*/ -var __obj = {valueOf:function(){throw "instart";}}; -var __obj2 = {valueOf:function(){throw "inend";}}; +var __obj = { + valueOf: function() { + throw "instart"; + } +}; +var __obj2 = { + valueOf: function() { + throw "inend"; + } +}; var __str = "ABB\u0041BABAB"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __str.slice(__obj,__obj2); - $ERROR('#1: "var x = __str.slice(__obj,__obj2)" lead to throwing exception'); - } catch (e) { - if (e!=="instart") { - $ERROR('#1.1: Exception === "instart". Actual: '+e); - } - } +try { + var x = __str.slice(__obj, __obj2); + $ERROR('#1: "var x = __str.slice(__obj,__obj2)" lead to throwing exception'); +} catch (e) { + if (e !== "instart") { + $ERROR('#1.1: Exception === "instart". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T12.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T12.js index 351daa7f7f..b111b08e54 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T12.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T12.js @@ -11,19 +11,30 @@ description: > return exception ---*/ -var __obj = {valueOf:function(){return {};}, toString:function(){throw "instart";}}; -var __obj2 = {valueOf:function(){throw "inend";}}; +var __obj = { + valueOf: function() { + return {}; + }, + toString: function() { + throw "instart"; + } +}; +var __obj2 = { + valueOf: function() { + throw "inend"; + } +}; var __str = new String("ABB\u0041BABAB"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __str.slice(__obj, __obj2); - $ERROR('#1: "var x = __str.slice(__obj,__obj2)" lead to throwing exception'); - } catch (e) { - if (e!=="instart") { - $ERROR('#1.1: Exception === "instart". Actual: '+e); - } - } +try { + var x = __str.slice(__obj, __obj2); + $ERROR('#1: "var x = __str.slice(__obj,__obj2)" lead to throwing exception'); +} catch (e) { + if (e !== "instart") { + $ERROR('#1.1: Exception === "instart". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T13.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T13.js index 82799f1ab8..50e38d195b 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T13.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T13.js @@ -10,18 +10,29 @@ description: > overrided toString function, that return exception ---*/ -var __obj = {valueOf:function(){return {};}, toString:function(){return 1;}}; -var __obj2 = {toString:function(){throw "inend";}}; +var __obj = { + valueOf: function() { + return {}; + }, + toString: function() { + return 1; + } +}; +var __obj2 = { + toString: function() { + throw "inend"; + } +}; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 try { - var x = "ABB\u0041BABAB\u0031BBAA".slice(__obj, __obj2); - $ERROR('#1: "var x = slice(__obj,__obj2)" lead to throwing exception'); + var x = "ABB\u0041BABAB\u0031BBAA".slice(__obj, __obj2); + $ERROR('#1: "var x = slice(__obj,__obj2)" lead to throwing exception'); } catch (e) { - if (e!=="inend") { - $ERROR('#1.1: Exception === "inend". Actual: '+e); - } + if (e !== "inend") { + $ERROR('#1.1: Exception === "inend". Actual: ' + e); + } } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T14.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T14.js index d7b718ac8a..ab3b2dbbd6 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 b7017e4db4..747902faa9 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 dd945f5812..b2932ddb8e 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T2.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T2.js @@ -15,8 +15,12 @@ __instance.slice = String.prototype.slice; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__instance.slice(function(){return true;}(),x) !== "alse") { - $ERROR('#1: var x; __instance = new Boolean; __instance.slice = String.prototype.slice; __instance.slice(function(){return true;}(),x) === "alse". Actual: '+__instance.slice(function(){return true;}(),x) ); +if (__instance.slice(function() { + return true; + }(), x) !== "alse") { + $ERROR('#1: var x; __instance = new Boolean; __instance.slice = String.prototype.slice; __instance.slice(function(){return true;}(),x) === "alse". Actual: ' + __instance.slice(function() { + return true; + }(), x)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T4.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T4.js index 1fda0a1141..b3dd30a6da 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T4.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T4.js @@ -12,8 +12,12 @@ description: > //since ToInteger(null) yelds 0 ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (function(){return "gnulluna"}().slice(null, -3) !== "gnull") { - $ERROR('#1: function(){return "gnulluna"}().slice(null, -3) === "gnull". Actual: '+function(){return "gnulluna"}().slice(null, -3) ); +if (function() { + return "gnulluna" + }().slice(null, -3) !== "gnull") { + $ERROR('#1: function(){return "gnulluna"}().slice(null, -3) === "gnull". Actual: ' + function() { + return "gnulluna" + }().slice(null, -3)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T5.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T5.js index d75481ec23..516aefbc93 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T5.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T5.js @@ -10,18 +10,22 @@ description: > functions ---*/ -__func.valueOf=function(){return "gnulluna"}; -__func.toString=function(){return __func;}; +__func.valueOf = function() { + return "gnulluna" +}; +__func.toString = function() { + return __func; +}; -Function.prototype.slice=String.prototype.slice; +Function.prototype.slice = String.prototype.slice; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__func.slice(null, Function().slice(__func,5).length) !== "gnull") { - $ERROR('#1: __func.slice(null, Function().slice(__func,5).length) === "gnull". Actual: '+__func.slice(null, Function().slice(__func,5).length) ); +if (__func.slice(null, Function().slice(__func, 5).length) !== "gnull") { + $ERROR('#1: __func.slice(null, Function().slice(__func,5).length) === "gnull". Actual: ' + __func.slice(null, Function().slice(__func, 5).length)); } // ////////////////////////////////////////////////////////////////////////////// -function __func(){}; +function __func() {}; diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T6.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T6.js index 38aa85042d..a0e18491b2 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 3926ea9df3..1ac08f088f 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 106fd8a1ec..9eb7c5b31e 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T8.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T8.js @@ -9,13 +9,15 @@ description: > String(object), object have overrided toString function ---*/ -var __obj = {toString:function(){}}; +var __obj = { + toString: function() {} +}; //since void 0 yelds 0 ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (String(__obj).slice(-4,void 0) !== "ined") { - $ERROR('#1: __obj = {toString:function(){}}; String(__obj).slice(-4,void 0) === "ined". Actual: '+String(__obj).slice(-4,void 0) ); +if (String(__obj).slice(-4, void 0) !== "ined") { + $ERROR('#1: __obj = {toString:function(){}}; String(__obj).slice(-4,void 0) === "ined". Actual: ' + String(__obj).slice(-4, void 0)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T9.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A1_T9.js index 9c927f1f24..e26a1a66dd 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 88790f7e72..d691c97108 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 cadc985329..1dda10c23e 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 2cd542d173..3ca0043d5e 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 db80ad757e..6a31bfee9e 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 e889dedce4..92ff1765a6 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 73383aaeb7..905fea7917 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 5a6e272b37..1badb971a5 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 9559e7b75d..ad8c991f22 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 9b13cb8dfd..196575b08d 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 b60a25f061..1bfa9b1c03 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 4335b1e822..5d1c65a584 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 2ed9d7ff06..8092dd5875 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A3_T3.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A3_T3.js @@ -9,14 +9,18 @@ description: > instance.slice(...).slice(...) ---*/ -var __instance = { toString: function() { return "function(){}";} }; +var __instance = { + toString: function() { + return "function(){}"; + } +}; __instance.slice = String.prototype.slice; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__instance.slice(-Infinity,8).slice(1,Infinity) !== "unction") { - $ERROR('#1: __instance = function(){}; __instance.slice = String.prototype.slice; __instance.slice(-Infinity,8).slice(1,Infinity) === "unction". Actual: '+__instance.slice(-Infinity,8).slice(1,Infinity) ); +if (__instance.slice(-Infinity, 8).slice(1, Infinity) !== "unction") { + $ERROR('#1: __instance = function(){}; __instance.slice = String.prototype.slice; __instance.slice(-Infinity,8).slice(1,Infinity) === "unction". Actual: ' + __instance.slice(-Infinity, 8).slice(1, Infinity)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A3_T4.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A3_T4.js index e07c09aae4..889019cfd9 100644 --- a/test/built-ins/String/prototype/slice/S15.5.4.13_A3_T4.js +++ b/test/built-ins/String/prototype/slice/S15.5.4.13_A3_T4.js @@ -9,20 +9,22 @@ description: > instance passes ---*/ -__FACTORY.prototype.toString = function() { return this.value+''; }; +__FACTORY.prototype.toString = function() { + return this.value + ''; +}; var __instance = new __FACTORY(void 0); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__instance.slice(0,100) !== "undefined") { - $ERROR('#1: __instance.slice(0,100) === "undefined". Actual: '+__instance.slice(0,100) ); +if (__instance.slice(0, 100) !== "undefined") { + $ERROR('#1: __instance.slice(0,100) === "undefined". Actual: ' + __instance.slice(0, 100)); } // ////////////////////////////////////////////////////////////////////////////// -function __FACTORY( value ) { - this.value = value, - this.slice= String.prototype.slice; - //this.substring = String.prototype.substring; +function __FACTORY(value) { + this.value = value, + this.slice = String.prototype.slice; + //this.substring = String.prototype.substring; } diff --git a/test/built-ins/String/prototype/slice/S15.5.4.13_A6.js b/test/built-ins/String/prototype/slice/S15.5.4.13_A6.js index 0e9643aa62..5c97de6aac 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 9e4042b08c..d4f6b3fc7c 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 f45ea31809..ce8ca68af9 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 f4f331cb6e..153a57b566 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A10.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A10.js @@ -13,19 +13,21 @@ includes: [propertyHelper.js] ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.split.hasOwnProperty('length'))) { - $ERROR('#1: String.prototype.split.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.split.hasOwnProperty('length')); + $ERROR('#1: String.prototype.split.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.split.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// var __obj = String.prototype.split.length; -verifyNotWritable(String.prototype.split, "length", null, function(){return "shifted";}); +verifyNotWritable(String.prototype.split, "length", null, function() { + return "shifted"; +}); ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.split.length !== __obj) { - $ERROR('#2: __obj = String.prototype.split.length; String.prototype.split.length = function(){return "shifted";}; String.prototype.split.length === __obj. Actual: '+String.prototype.split.length ); + $ERROR('#2: __obj = String.prototype.split.length; String.prototype.split.length = function(){return "shifted";}; String.prototype.split.length === __obj. Actual: ' + String.prototype.split.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A11.js b/test/built-ins/String/prototype/split/S15.5.4.14_A11.js index b3a94684f8..e5ca3139e5 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 9acfda6b3c..69ca403434 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 bc79057f85..c56b54de71 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T10.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T10.js @@ -15,8 +15,16 @@ description: > function ---*/ -var __obj = {toString:function(){return "\u0042B";}} -var __obj2 = {valueOf:function(){return true;}} +var __obj = { + toString: function() { + return "\u0042B"; + } +} +var __obj2 = { + valueOf: function() { + return true; + } +} var __str = "ABB\u0041BABAB"; var __split = __str.split(__obj, __obj2); @@ -24,7 +32,7 @@ var __split = __str.split(__obj, __obj2); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __split !== "object") { - $ERROR('#1: var __obj = {toString:function(){return "u0042B";}}; var __obj2 = {valueOf:function(){return true;}}; var __str = "ABBu0041BABAB"; var __split = split(__obj, __obj2); typeof __split === "object". Actual: '+typeof __split ); + $ERROR('#1: var __obj = {toString:function(){return "u0042B";}}; var __obj2 = {valueOf:function(){return true;}}; var __str = "ABBu0041BABAB"; var __split = split(__obj, __obj2); typeof __split === "object". Actual: ' + typeof __split); } // ////////////////////////////////////////////////////////////////////////////// @@ -32,7 +40,7 @@ if (typeof __split !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.constructor !== Array) { - $ERROR('#2: var __obj = {toString:function(){return "u0042B";}}; var __obj2 = {valueOf:function(){return true;}}; var __str = "ABBu0041BABAB"; var __split = split(__obj, __obj2); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#2: var __obj = {toString:function(){return "u0042B";}}; var __obj2 = {valueOf:function(){return true;}}; var __str = "ABBu0041BABAB"; var __split = split(__obj, __obj2); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -40,7 +48,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split.length !== 1) { - $ERROR('#3: var __obj = {toString:function(){return "u0042B";}}; var __obj2 = {valueOf:function(){return true;}}; var __str = "ABBu0041BABAB"; var __split = split(__obj, __obj2); __split.length === 1. Actual: '+__split.length ); + $ERROR('#3: var __obj = {toString:function(){return "u0042B";}}; var __obj2 = {valueOf:function(){return true;}}; var __str = "ABBu0041BABAB"; var __split = split(__obj, __obj2); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -48,7 +56,7 @@ if (__split.length !== 1) { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[0] !== "A") { - $ERROR('#4: var __obj = {toString:function(){return "u0042B";}}; var __obj2 = {valueOf:function(){return true;}}; var __str = "ABBu0041BABAB"; var __split = split(__obj, __obj2); __split[0] === "A". Actual: '+__split[0] ); + $ERROR('#4: var __obj = {toString:function(){return "u0042B";}}; var __obj2 = {valueOf:function(){return true;}}; var __str = "ABBu0041BABAB"; var __split = split(__obj, __obj2); __split[0] === "A". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T11.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T11.js index ddf8fe7609..73d4917a71 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T11.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T11.js @@ -15,19 +15,27 @@ description: > function, that throw exception ---*/ -var __obj = {toString:function(){return "\u0041B";}} -var __obj2 = {valueOf:function(){throw "intointeger";}} +var __obj = { + toString: function() { + return "\u0041B"; + } +} +var __obj2 = { + valueOf: function() { + throw "intointeger"; + } +} var __str = "ABB\u0041BABAB"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __str.split(__obj, __obj2); - $ERROR('#1: "var x = __str.split(__obj, __obj2)" lead to throwing exception'); - } catch (e) { - if (e!=="intointeger") { - $ERROR('#1.1: Exception === "intointeger". Actual: '+e); - } - } +try { + var x = __str.split(__obj, __obj2); + $ERROR('#1: "var x = __str.split(__obj, __obj2)" lead to throwing exception'); +} catch (e) { + if (e !== "intointeger") { + $ERROR('#1.1: Exception === "intointeger". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T12.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T12.js index ba6a0efed4..5fe3720499 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T12.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T12.js @@ -15,19 +15,30 @@ description: > function and toString function, that throw exception ---*/ -var __obj = {toString:function(){return "\u0041B";}} -var __obj2 = {valueOf:function(){return {};},toString:function(){throw "intointeger";}} +var __obj = { + toString: function() { + return "\u0041B"; + } +} +var __obj2 = { + valueOf: function() { + return {}; + }, + toString: function() { + throw "intointeger"; + } +} var __str = new String("ABB\u0041BABAB"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __str.split(__obj, __obj2); - $ERROR('#1: "var x = __str.split(__obj, __obj2)" lead to throwing exception'); - } catch (e) { - if (e!=="intointeger") { - $ERROR('#1.1: Exception === "intointeger". Actual: '+e); - } - } +try { + var x = __str.split(__obj, __obj2); + $ERROR('#1: "var x = __str.split(__obj, __obj2)" lead to throwing exception'); +} catch (e) { + if (e !== "intointeger") { + $ERROR('#1.1: Exception === "intointeger". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T13.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T13.js index d97ac63db0..eded7e4c0f 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T13.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T13.js @@ -15,15 +15,26 @@ description: > and toString functions ---*/ -var __obj = {toString:function(){return "\u0042\u0042";}} -var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}} +var __obj = { + toString: function() { + return "\u0042\u0042"; + } +} +var __obj2 = { + valueOf: function() { + return {}; + }, + toString: function() { + return "2"; + } +} var __split = "ABB\u0041BABAB\u0042cc^^\u0042Bvv%%B\u0042xxx".split(__obj, __obj2); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __split !== "object") { - $ERROR('#1: var __obj = {toString:function(){return "u0042u0042";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}}; __split = "ABBu0041BABABu0042cc^^u0042Bvv%%Bu0042xxx".split(__obj, __obj2); typeof __split === "object". Actual: '+typeof __split ); + $ERROR('#1: var __obj = {toString:function(){return "u0042u0042";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}}; __split = "ABBu0041BABABu0042cc^^u0042Bvv%%Bu0042xxx".split(__obj, __obj2); typeof __split === "object". Actual: ' + typeof __split); } // ////////////////////////////////////////////////////////////////////////////// @@ -31,7 +42,7 @@ if (typeof __split !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.constructor !== Array) { - $ERROR('#2: var __obj = {toString:function(){return "u0042u0042";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}}; __split = "ABBu0041BABABu0042cc^^u0042Bvv%%Bu0042xxx".split(__obj, __obj2); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#2: var __obj = {toString:function(){return "u0042u0042";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}}; __split = "ABBu0041BABABu0042cc^^u0042Bvv%%Bu0042xxx".split(__obj, __obj2); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -39,7 +50,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split.length !== 2) { - $ERROR('#3: var __obj = {toString:function(){return "u0042u0042";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}}; __split = "ABBu0041BABABu0042cc^^u0042Bvv%%Bu0042xxx".split(__obj, __obj2); __split.length === 2. Actual: '+__split.length ); + $ERROR('#3: var __obj = {toString:function(){return "u0042u0042";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}}; __split = "ABBu0041BABABu0042cc^^u0042Bvv%%Bu0042xxx".split(__obj, __obj2); __split.length === 2. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -47,7 +58,7 @@ if (__split.length !== 2) { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[0] !== "A") { - $ERROR('#4: var __obj = {toString:function(){return "u0042u0042";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}}; __split = "ABBu0041BABABu0042cc^^u0042Bvv%%Bu0042xxx".split(__obj, __obj2); __split[0] === "A". Actual: '+__split[0] ); + $ERROR('#4: var __obj = {toString:function(){return "u0042u0042";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}}; __split = "ABBu0041BABABu0042cc^^u0042Bvv%%Bu0042xxx".split(__obj, __obj2); __split[0] === "A". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// @@ -55,7 +66,7 @@ if (__split[0] !== "A") { ////////////////////////////////////////////////////////////////////////////// //CHECK#5 if (__split[1] !== "ABABA") { - $ERROR('#5: var __obj = {toString:function(){return "u0042u0042";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}}; __split = "ABBu0041BABABu0042cc^^u0042Bvv%%Bu0042xxx".split(__obj, __obj2); __split[1] === "ABABA". Actual: '+__split[1] ); + $ERROR('#5: var __obj = {toString:function(){return "u0042u0042";}}; var __obj2 = {valueOf:function(){return {};},toString:function(){return "2";}}; __split = "ABBu0041BABABu0042cc^^u0042Bvv%%Bu0042xxx".split(__obj, __obj2); __split[1] === "ABABA". Actual: ' + __split[1]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T14.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T14.js index 412513ed5d..df6ee1d693 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T14.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T14.js @@ -15,20 +15,28 @@ description: > have overrided valueOf function, that throw exception ---*/ -var __obj = {toString:function(){throw "intostr";}}; -var __obj2 = {valueOf:function(){throw "intoint";}}; +var __obj = { + toString: function() { + throw "intostr"; + } +}; +var __obj2 = { + valueOf: function() { + throw "intoint"; + } +}; var __instance = new Number(10001.10001); -Number.prototype.split=String.prototype.split; +Number.prototype.split = String.prototype.split; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __instance.split(__obj, __obj2); - $ERROR('#1: "var x = __instance.split(__obj, __obj2)" lead to throwing exception'); - } catch (e) { - if (e!=="intoint") { - $ERROR('#1.1: Exception === "intoint". Actual: '+e); - } - } +try { + var x = __instance.split(__obj, __obj2); + $ERROR('#1: "var x = __instance.split(__obj, __obj2)" lead to throwing exception'); +} catch (e) { + if (e !== "intoint") { + $ERROR('#1.1: Exception === "intoint". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T15.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T15.js index 46cf128094..52c2fc9ca7 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T15.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T15.js @@ -16,9 +16,20 @@ description: > throw exception ---*/ -var __obj = {toString:function(){return {};},valueOf:function(){throw "intostr";}}; +var __obj = { + toString: function() { + return {}; + }, + valueOf: function() { + throw "intostr"; + } +}; -var __obj2 = {valueOf:function(){throw "intointeger";}}; +var __obj2 = { + valueOf: function() { + throw "intointeger"; + } +}; __FACTORY.prototype.split = String.prototype.split; @@ -30,15 +41,19 @@ try { var x = __instance.split(__obj, __obj2); $ERROR('#1: "var x = __instance.split(__obj, __obj2)" lead to throwing exception'); } catch (e) { - if (e!=="intointeger") { - $ERROR('#1.1: Exception === "intointeger". Actual: '+e); + if (e !== "intointeger") { + $ERROR('#1.1: Exception === "intointeger". Actual: ' + e); } } // ////////////////////////////////////////////////////////////////////////////// -function __FACTORY( value ) { - this.value = value; - this.toString = function() { return new Number; }; - this.valueOf=function(){return this.value+""}; +function __FACTORY(value) { + this.value = value; + this.toString = function() { + return new Number; + }; + this.valueOf = function() { + return this.value + "" + }; } diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T16.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T16.js index ff3d9ef001..4fb875732e 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T16.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T16.js @@ -14,15 +14,19 @@ description: > toString function, that return regexp ---*/ -var __obj = {toString:function(){return /\u0037\u0037/g;}}; +var __obj = { + toString: function() { + return /\u0037\u0037/g; + } +}; -Number.prototype.split=String.prototype.split; +Number.prototype.split = String.prototype.split; try { var __split = 6776767677.006771122677555.split(__obj); $ERROR('#1: "__split = 6776767677.006771122677555.split(__obj)" lead to throwing exception'); } catch (e) { if (!(e instanceof TypeError)) { - $ERROR('#1.1: Exception is instance of TypeError. Actual: '+e); + $ERROR('#1.1: Exception is instance of TypeError. Actual: ' + e); } } diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T17.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T17.js index 9d7b34da2f..95124d9cd9 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 48bccb5126..4c8fdbfb68 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 e099b49fa6..775ac3f566 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T2.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T2.js @@ -18,12 +18,14 @@ var __instance = new Boolean; __instance.split = String.prototype.split; -var __split = __instance.split("A"!=="\u0041", function(){return 0;}(),null); +var __split = __instance.split("A" !== "\u0041", function() { + return 0; +}(), null); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __split !== "object") { - $ERROR('#1: __instance = new Boolean; __instance.split = String.prototype.split; __split = __instance.split("A"!=="u0041", function(){return 0;}(),null); typeof __split === "object". Actual: '+typeof __split ); + $ERROR('#1: __instance = new Boolean; __instance.split = String.prototype.split; __split = __instance.split("A"!=="u0041", function(){return 0;}(),null); typeof __split === "object". Actual: ' + typeof __split); } // ////////////////////////////////////////////////////////////////////////////// @@ -31,7 +33,7 @@ if (typeof __split !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.constructor !== Array) { - $ERROR('#2: __instance = new Boolean; __instance.split = String.prototype.split; __split = __instance.split("A"!=="u0041", function(){return 0;}(),null); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#2: __instance = new Boolean; __instance.split = String.prototype.split; __split = __instance.split("A"!=="u0041", function(){return 0;}(),null); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -39,7 +41,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split.length !== 0) { - $ERROR('#3: __instance = new Boolean; __instance.split = String.prototype.split; __split = __instance.split("A"!=="u0041", function(){return 0;}(),null); __split.length === 0. Actual: '+__split.length ); + $ERROR('#3: __instance = new Boolean; __instance.split = String.prototype.split; __split = __instance.split("A"!=="u0041", function(){return 0;}(),null); __split.length === 0. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T3.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T3.js index a7725324fe..cb21c14a12 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T3.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T3.js @@ -14,48 +14,53 @@ description: Checking by using eval var split = String.prototype.split.bind(this); -var __obj__lim = {valueOf:function(){return 5;}}; +var __obj__lim = { + valueOf: function() { + return 5; + } +}; try { - toString = Object.prototype.toString; -} catch(e) { ; } + toString = Object.prototype.toString; +} catch (e) {; +} //Checks are only valid if we can overwrite the global object's toString method //(which ES5 doesn't even require to exist) -if (toString===Object.prototype.toString) { - var __class__ = toString(); - - var __split = split(eval("\"[\""),__obj__lim); - - ////////////////////////////////////////////////////////////////////////////// - //CHECK#1 - if (typeof __split !== "object") { - $ERROR('#1: typeof __split === "object". Actual: '+typeof __split ); - } - // - ////////////////////////////////////////////////////////////////////////////// - - ////////////////////////////////////////////////////////////////////////////// - //CHECK#2 - if (__split.constructor !== Array) { - $ERROR('#2: __split.constructor === Array. Actual: '+__split.constructor ); - } - // - ////////////////////////////////////////////////////////////////////////////// - - ////////////////////////////////////////////////////////////////////////////// - //CHECK#3 - if (__split.length !== 2) { - $ERROR('#3: __split.length === 2. Actual: '+__split.length ); - } - // - ////////////////////////////////////////////////////////////////////////////// - - ////////////////////////////////////////////////////////////////////////////// - //CHECK#3 - if (__split[1].substring(0,6) !== "object") { - $ERROR('#4: __split[1].substring(0,6) === "object". Actual: '+__split[1].substring(0,6) ); - } - // - ////////////////////////////////////////////////////////////////////////////// +if (toString === Object.prototype.toString) { + var __class__ = toString(); + + var __split = split(eval("\"[\""), __obj__lim); + + ////////////////////////////////////////////////////////////////////////////// + //CHECK#1 + if (typeof __split !== "object") { + $ERROR('#1: typeof __split === "object". Actual: ' + typeof __split); + } + // + ////////////////////////////////////////////////////////////////////////////// + + ////////////////////////////////////////////////////////////////////////////// + //CHECK#2 + if (__split.constructor !== Array) { + $ERROR('#2: __split.constructor === Array. Actual: ' + __split.constructor); + } + // + ////////////////////////////////////////////////////////////////////////////// + + ////////////////////////////////////////////////////////////////////////////// + //CHECK#3 + if (__split.length !== 2) { + $ERROR('#3: __split.length === 2. Actual: ' + __split.length); + } + // + ////////////////////////////////////////////////////////////////////////////// + + ////////////////////////////////////////////////////////////////////////////// + //CHECK#3 + if (__split[1].substring(0, 6) !== "object") { + $ERROR('#4: __split[1].substring(0,6) === "object". Actual: ' + __split[1].substring(0, 6)); + } + // + ////////////////////////////////////////////////////////////////////////////// } diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T4.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T4.js index e0f5e32941..f2931438d2 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 5515c76a90..982309d1ac 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T5.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T5.js @@ -15,12 +15,14 @@ description: > ---*/ //since ToString(null) evaluates to "null" split(null) evaluates to split("null",0) -var __split = function(){return "gnulluna"}().split(null); +var __split = function() { + return "gnulluna" +}().split(null); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __split !== "object") { - $ERROR('#1: __split = function(){return "gnulluna"}().split(null); typeof __split === "object". Actual: '+typeof __split ); + $ERROR('#1: __split = function(){return "gnulluna"}().split(null); typeof __split === "object". Actual: ' + typeof __split); } // ////////////////////////////////////////////////////////////////////////////// @@ -28,7 +30,7 @@ if (typeof __split !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.constructor !== Array) { - $ERROR('#2: __split = function(){return "gnulluna"}().split(null); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#2: __split = function(){return "gnulluna"}().split(null); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -36,7 +38,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split.length !== 2) { - $ERROR('#3: __split = function(){return "gnulluna"}().split(null); __split.length === 2. Actual: '+__split.length ); + $ERROR('#3: __split = function(){return "gnulluna"}().split(null); __split.length === 2. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -44,7 +46,7 @@ if (__split.length !== 2) { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[0] !== "g") { - $ERROR('#4: __split = function(){return "gnulluna"}().split(null); __split[0] === "g". Actual: '+__split[0] ); + $ERROR('#4: __split = function(){return "gnulluna"}().split(null); __split[0] === "g". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// @@ -52,7 +54,7 @@ if (__split[0] !== "g") { ////////////////////////////////////////////////////////////////////////////// //CHECK#5 if (__split[1] !== "una") { - $ERROR('#5: __split = function(){return "gnulluna"}().split(null); __split[1] === "una". Actual: '+__split[1] ); + $ERROR('#5: __split = function(){return "gnulluna"}().split(null); __split[1] === "una". Actual: ' + __split[1]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T6.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T6.js index 74a9b6d776..815d13d199 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 bb030f4e27..02cfc01651 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 3a7d671f37..05eb86148f 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T8.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T8.js @@ -14,14 +14,16 @@ description: > overrided toString function ---*/ -var __obj = {toString:function(){}}; +var __obj = { + toString: function() {} +}; var __split = String(__obj).split(void 0); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __split !== "object") { - $ERROR('#1: __obj = {toString:function(){}}; __split = String(__obj).split(void 0); typeof __split === "object". Actual: '+typeof __split ); + $ERROR('#1: __obj = {toString:function(){}}; __split = String(__obj).split(void 0); typeof __split === "object". Actual: ' + typeof __split); } // ////////////////////////////////////////////////////////////////////////////// @@ -29,7 +31,7 @@ if (typeof __split !== "object") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.constructor !== Array) { - $ERROR('#2: __obj = {toString:function(){}}; __split = String(__obj).split(void 0); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#2: __obj = {toString:function(){}}; __split = String(__obj).split(void 0); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -37,7 +39,7 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#3 if (__split.length !== 1) { - $ERROR('#3: __obj = {toString:function(){}}; __split = String(__obj).split(void 0); __split.length === 1. Actual: '+__split.length ); + $ERROR('#3: __obj = {toString:function(){}}; __split = String(__obj).split(void 0); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// @@ -45,7 +47,7 @@ if (__split.length !== 1) { ////////////////////////////////////////////////////////////////////////////// //CHECK#4 if (__split[0] !== "undefined") { - $ERROR('#4: __obj = {toString:function(){}}; __split = String(__obj).split(void 0); __split[0] !== "undefined". Actual: '+__split[0]); + $ERROR('#4: __obj = {toString:function(){}}; __split = String(__obj).split(void 0); __split[0] !== "undefined". Actual: ' + __split[0]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A1_T9.js b/test/built-ins/String/prototype/split/S15.5.4.14_A1_T9.js index e78ae20d07..eb545020d0 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 0674e60918..fdf968d873 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 64ad57b263..eff95ed197 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 08951717af..b29dc9e0e0 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 e3cde172c0..7696dfa9ed 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 1dfd75e251..067bf5aebe 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 0ee0bd42d6..ec0899acb8 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 dea2269947..2a580f29e0 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 a7664c43b9..4a3bceb58b 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 f216473073..e76f256882 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 8e8f760731..65971fdd32 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 bfd2b88a64..b9a9b2a740 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 ccf7ca484f..bedfcf81b5 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 dc5250fa84..b927eeb09b 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 ea7759b726..dfe48ffd39 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 f57cd20356..2000c8067c 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 e50b1d847c..495b83a60a 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 7efcab3374..49c6a0f1cd 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 e8f450156a..ae70cca74a 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 27f6d41d60..3646139de6 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 865c38c876..c7fd8c5460 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 634a2b4cb6..6ef0a46570 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 b93e141028..fa342d6324 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 0b16fee4df..6dd024d4ab 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 7f17c7f3d6..5323ad0721 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 45fb07dc2f..15adead0fa 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 926a61515c..208852941e 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 3f6695e9b5..3d12696379 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 4132da25ac..c40f3993a6 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 22a23453c4..c82748bf23 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 d79d2d72df..20e3e84f2d 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 05850c859f..1fa443388c 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 1ca64e502c..fd0b4b97a7 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 c9e9569ca6..ee012e98d5 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 95f73fc13f..69bed20441 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 8ae1dcfc99..2f11e0f0f8 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 76940f644d..d8e21db1e7 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 3998246a36..5b9b69fc83 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 13a5d18ec6..1ec04cfc40 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 bced5a65cc..1c8618b6d1 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 b7c5dc2ad6..e9d469d4ab 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 31a269a9c0..e0e5f0ca32 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 6f571dd08e..ec0170f44a 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 47aed96ec6..8d7da32def 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 0b1cc3a245..f9494680cb 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 4193458cb1..0958d37c50 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 57b559c754..07f2d68c3e 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 ae6a6f5252..58670f6d03 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 4e4190bf02..137d8465a7 100644 --- a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T3.js +++ b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T3.js @@ -10,7 +10,11 @@ es5id: 15.5.4.14_A3_T3 description: Instance is function(){} ---*/ -var __instance = { toString: function() { return "function(){}";} }; +var __instance = { + toString: function() { + return "function(){}"; + } +}; __instance.split = String.prototype.split; @@ -19,7 +23,7 @@ var __split = __instance.split(); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__split.constructor !== Array) { - $ERROR('#1: var __instance = function(){}; __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: '+__split.constructor ); + $ERROR('#1: var __instance = function(){}; __instance.split = String.prototype.split; __split = __instance.split(); __split.constructor === Array. Actual: ' + __split.constructor); } // ////////////////////////////////////////////////////////////////////////////// @@ -27,15 +31,15 @@ if (__split.constructor !== Array) { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__split.length !== 1) { - $ERROR('#2: var __instance = function(){}; __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: '+__split.length ); + $ERROR('#2: var __instance = function(){}; __instance.split = String.prototype.split; __split = __instance.split(); __split.length === 1. Actual: ' + __split.length); } // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// //CHECK#3 -if (__split[0].substring(0,8) !== "function") { - $ERROR('#3: var __instance = function(){}; __instance.split = String.prototype.split; __split = __instance.split(); __split[0].substring(0,8) === "function". Actual: '+__split[0].substring(0,8) ); +if (__split[0].substring(0, 8) !== "function") { + $ERROR('#3: var __instance = function(){}; __instance.split = String.prototype.split; __split = __instance.split(); __split[0].substring(0,8) === "function". Actual: ' + __split[0].substring(0, 8)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/split/S15.5.4.14_A3_T4.js b/test/built-ins/String/prototype/split/S15.5.4.14_A3_T4.js index 4fdbc54d4c..36f0fb2b2b 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 5d59496dc8..ad0cdda568 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 5e8882c5dd..c68a29ee18 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 da708173fb..661bf4e36d 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 197e89afd1..e1a309ef25 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 4694e6d8f4..b3bf706cf3 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 3086e76b73..8306e88d7f 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 26a49a0aa7..296ac5ee5e 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 a23f5e726d..32503116d5 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 820d433fe0..05cc593e54 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 e9d93c574e..72683da883 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 52ebdc4752..a3e264a31b 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 ecfd109af4..88d744ae39 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 5b669ab81c..b97b9aa5dd 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 fcea734ece..5fecb0dcad 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 8121de01b1..68a70929ce 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 f9de8ea347..3df56dacfb 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 5454f5281e..b6d9396e81 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 5825800d08..cddd4f260d 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 8dbfb55ad3..16485eb04c 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 1aed36c4ad..8ab1e54bf1 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 6cfc3d655e..2118c1e0eb 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 5ea67cedc3..e946d99b5e 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 16f05e87a8..59cc456a5e 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 791426679f..047e8d44e8 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 b57bc9bdb1..4c713ecb85 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 0f1354a764..ed78698657 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 cb69ee51e9..0a8a68942f 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 dc4d0275e0..85a4f3b34a 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 2f4d49ed8b..4ecc5fac7d 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 2d4ac920a5..bea17ccf4e 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 8d714bf6dd..85d6a2e7c8 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 7aeac13230..13b7b1d0c3 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 640f04120e..4f0cd21841 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 c631532646..131d8017ee 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 295687133c..d588fd061f 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 792a205e7f..c59e390c11 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A10.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A10.js @@ -13,19 +13,21 @@ includes: [propertyHelper.js] ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.substring.hasOwnProperty('length'))) { - $ERROR('#1: String.prototype.substring.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.substring.hasOwnProperty('length')); + $ERROR('#1: String.prototype.substring.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.substring.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// var __obj = String.prototype.substring.length; -verifyNotWritable(String.prototype.substring, "length", null, function(){return "shifted";}); +verifyNotWritable(String.prototype.substring, "length", null, function() { + return "shifted"; +}); ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.substring.length !== __obj) { - $ERROR('#2: __obj = String.prototype.substring.length; String.prototype.substring.length = function(){return "shifted";}; String.prototype.substring.length === __obj. Actual: '+String.prototype.substring.length ); + $ERROR('#2: __obj = String.prototype.substring.length; String.prototype.substring.length = function(){return "shifted";}; String.prototype.substring.length === __obj. Actual: ' + String.prototype.substring.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A11.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A11.js index 020b8a0c50..b09a01d2d3 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 c737a2f301..a653a6ee56 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 2770321ed8..3554768801 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T10.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T10.js @@ -9,15 +9,23 @@ description: > object have overrided valueOf function ---*/ -var __obj = {valueOf:function(){return 2;}}; +var __obj = { + valueOf: function() { + return 2; + } +}; var __str = "\u0035ABBBABAB"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - if (__str.substring(__obj, function(){return __str.substring(0,1);}()) !== "BBB") { - $ERROR('#1: var __obj = {valueOf:function(){return 2;}}; var __str = "\u0035ABBBABAB"; __str.substring(__obj, function(){return __str.substring(0,1);}()) === "BBB". Actual: '+__str.substring(__obj, function(){return __str.substring(0,1);}()) ); - } +if (__str.substring(__obj, function() { + return __str.substring(0, 1); + }()) !== "BBB") { + $ERROR('#1: var __obj = {valueOf:function(){return 2;}}; var __str = "\u0035ABBBABAB"; __str.substring(__obj, function(){return __str.substring(0,1);}()) === "BBB". Actual: ' + __str.substring(__obj, function() { + return __str.substring(0, 1); + }())); +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T11.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T11.js index f17b396d99..e3b97ed32c 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T11.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T11.js @@ -9,19 +9,27 @@ description: > overrided valueOf function, that return exception ---*/ -var __obj = {valueOf:function(){throw "instart";}}; -var __obj2 = {valueOf:function(){throw "inend";}}; +var __obj = { + valueOf: function() { + throw "instart"; + } +}; +var __obj2 = { + valueOf: function() { + throw "inend"; + } +}; var __str = "ABB\u0041BABAB"; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __str.substring(__obj,__obj2); - $ERROR('#1: "var x = __str.substring(__obj,__obj2)" lead to throw exception'); - } catch (e) { - if (e!=="instart") { - $ERROR('#1.1: Exception === "instart". Actual: '+e); - } - } +try { + var x = __str.substring(__obj, __obj2); + $ERROR('#1: "var x = __str.substring(__obj,__obj2)" lead to throw exception'); +} catch (e) { + if (e !== "instart") { + $ERROR('#1.1: Exception === "instart". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T12.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T12.js index b8f9af963d..43ae7ac787 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T12.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T12.js @@ -11,19 +11,30 @@ description: > return exception ---*/ -var __obj = {valueOf:function(){return {};}, toString:function(){throw "instart";}}; -var __obj2 = {valueOf:function(){throw "inend";}}; +var __obj = { + valueOf: function() { + return {}; + }, + toString: function() { + throw "instart"; + } +}; +var __obj2 = { + valueOf: function() { + throw "inend"; + } +}; var __str = new String("ABB\u0041BABAB"); ////////////////////////////////////////////////////////////////////////////// //CHECK#1 - try { - var x = __str.substring(__obj, __obj2); - $ERROR('#1: "var x = __str.substring(__obj,__obj2)" lead to throw exception'); - } catch (e) { - if (e!=="instart") { - $ERROR('#1.1: Exception ==="instart". Actual: '+e); - } - } +try { + var x = __str.substring(__obj, __obj2); + $ERROR('#1: "var x = __str.substring(__obj,__obj2)" lead to throw exception'); +} catch (e) { + if (e !== "instart") { + $ERROR('#1.1: Exception ==="instart". Actual: ' + e); + } +} // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T13.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T13.js index f749700946..8efdfb328b 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T13.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T13.js @@ -10,18 +10,29 @@ description: > overrided toString function, that return exception ---*/ -var __obj = {valueOf:function(){return {};}, toString:function(){return 1;}}; -var __obj2 = {toString:function(){throw "inend";}}; +var __obj = { + valueOf: function() { + return {}; + }, + toString: function() { + return 1; + } +}; +var __obj2 = { + toString: function() { + throw "inend"; + } +}; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 try { - var x = "ABB\u0041BABAB\u0031BBAA".substring(__obj, __obj2); - $ERROR('#1: var x = "ABB\\u0041BABAB\\u0031BBAA".substring(__obj,__obj2) lead to throw exception'); + var x = "ABB\u0041BABAB\u0031BBAA".substring(__obj, __obj2); + $ERROR('#1: var x = "ABB\\u0041BABAB\\u0031BBAA".substring(__obj,__obj2) lead to throw exception'); } catch (e) { - if (e!=="inend") { - $ERROR('#1.1: Exception === "inend". Actual: '+e); - } + if (e !== "inend") { + $ERROR('#1.1: Exception === "inend". Actual: ' + e); + } } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T14.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T14.js index e9e4d07505..4f85a9e093 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 50af2e9d82..37c4bc7047 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 21abf6d49f..658ce9d2bc 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T2.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T2.js @@ -15,8 +15,12 @@ __instance.substring = String.prototype.substring; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__instance.substring(function(){return true;}(),x) !== "alse") { - $ERROR('#1: var x; __instance = new Boolean; __instance.substring = String.prototype.substring; __instance.substring(function(){return true;}(),x) === "alse". Actual: '+__instance.substring(function(){return true;}(),x) ); +if (__instance.substring(function() { + return true; + }(), x) !== "alse") { + $ERROR('#1: var x; __instance = new Boolean; __instance.substring = String.prototype.substring; __instance.substring(function(){return true;}(),x) === "alse". Actual: ' + __instance.substring(function() { + return true; + }(), x)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T4.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T4.js index 8e5be04b60..aaf8f7e247 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T4.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T4.js @@ -11,8 +11,12 @@ description: > ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (function(){return "gnulluna"}().substring(null, -3) !== "") { - $ERROR('#1: function(){return "gnulluna"}().substring(null, -3) === "". Actual: '+function(){return "gnulluna"}().substring(null, -3) ); +if (function() { + return "gnulluna" + }().substring(null, -3) !== "") { + $ERROR('#1: function(){return "gnulluna"}().substring(null, -3) === "". Actual: ' + function() { + return "gnulluna" + }().substring(null, -3)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T5.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T5.js index 2f716f58aa..9efb6cc77a 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T5.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T5.js @@ -9,17 +9,19 @@ description: > object, that have overrided valueOf function ---*/ -__func.valueOf=function(){return "gnulluna"}; +__func.valueOf = function() { + return "gnulluna" +}; -Function.prototype.substring=String.prototype.substring; +Function.prototype.substring = String.prototype.substring; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__func.substring(null, Function()) !== "") { - $ERROR('#1: __func.valueOf=function(){return "gnulluna"}; Function.prototype.substring=String.prototype.substring; function __func(){}; __func.substring(null, Function()) === "". Actual: '+__func.substring(null, Function()) ); + $ERROR('#1: __func.valueOf=function(){return "gnulluna"}; Function.prototype.substring=String.prototype.substring; function __func(){}; __func.substring(null, Function()) === "". Actual: ' + __func.substring(null, Function())); } // ////////////////////////////////////////////////////////////////////////////// -function __func(){}; +function __func() {}; diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T6.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T6.js index d41f4b1c2c..d9538d5f69 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 eecbb5da73..fa599a5469 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 c7e0a5953e..1279d0ebe1 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T8.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T8.js @@ -9,12 +9,14 @@ description: > String(object), object have overrided toString function ---*/ -var __obj = {toString:function(){}}; +var __obj = { + toString: function() {} +}; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (String(__obj).substring(-4,void 0) !== "undefined") { - $ERROR('#1: __obj = {toString:function(){}}; String(__obj).substring(-4,void 0) === "undefined". Actual: '+String(__obj).substring(-4,void 0) ); +if (String(__obj).substring(-4, void 0) !== "undefined") { + $ERROR('#1: __obj = {toString:function(){}}; String(__obj).substring(-4,void 0) === "undefined". Actual: ' + String(__obj).substring(-4, void 0)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T9.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A1_T9.js index b4b0053b93..1720c35f45 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 a87e1b4e57..499a890e7c 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 44c719d2ec..c98235acd0 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 179af831ea..3fec5dfee1 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 18201d0709..3fab39c9b5 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 d10dc05a3b..95095d5e15 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 6d5d0a8491..15c49967a1 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 aec40ce401..9e78388c94 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 4ce872828f..d510a64817 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 e73ef3e647..41618595e2 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 4ba78e6d75..3f5dbcad51 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 feff7d77e8..2a26bc88d8 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 e2920aafbe..4a7fd0ac39 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T10.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T10.js @@ -14,16 +14,18 @@ description: > __FACTORY.prototype.substring = String.prototype.substring; var __instance = new __FACTORY(void 0); - + ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (__instance.substring(0, 100) !== "undefined") { - $ERROR('#1: __instance.substring(0, 100) === "undefined". Actual: '+__instance.substring(0, 100) ); + $ERROR('#1: __instance.substring(0, 100) === "undefined". Actual: ' + __instance.substring(0, 100)); } // ////////////////////////////////////////////////////////////////////////////// -function __FACTORY( value ) { - this.value = value; - this.toString = function() { return this.value+''; } +function __FACTORY(value) { + this.value = value; + this.toString = function() { + return this.value + ''; + } } diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T11.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T11.js index a55770141d..e4238cc57e 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 dd187638f2..e036947678 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 4d93dfb75a..6cfa98872e 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 064d643fcd..12b14f241a 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 95eb172cc7..1405841b40 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 0ee3e96952..29bba15943 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 8305324ecb..d8d84a1229 100644 --- a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T7.js +++ b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T7.js @@ -11,14 +11,18 @@ description: > instance.substring(...).substring(...) ---*/ -var __instance = { toString: function() { return "function(){}";} }; - +var __instance = { + toString: function() { + return "function(){}"; + } +}; + __instance.substring = String.prototype.substring; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__instance.substring(-Infinity,8) !== "function") { - $ERROR('#1: __instance = function(){}; __instance.substring = String.prototype.substring; __instance.substring(-Infinity,8) === "function". Actual: '+__instance.substring(8,Infinity).substring(-Infinity,1) ); +if (__instance.substring(-Infinity, 8) !== "function") { + $ERROR('#1: __instance = function(){}; __instance.substring = String.prototype.substring; __instance.substring(-Infinity,8) === "function". Actual: ' + __instance.substring(8, Infinity).substring(-Infinity, 1)); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T8.js b/test/built-ins/String/prototype/substring/S15.5.4.15_A3_T8.js index ca339a8462..60729b8279 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 75623a9ee5..1fc65965cc 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 bc4cccb709..f161564459 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 14440737f9..9cf25cfb14 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 b48d4db02f..36af36356d 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 26e1c976a3..803b98b5e6 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 3996518377..3168e925a1 100644 --- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A10.js +++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A10.js @@ -15,19 +15,21 @@ includes: [propertyHelper.js] ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.toLocaleLowerCase.hasOwnProperty('length'))) { - $ERROR('#1: String.prototype.toLocaleLowerCase.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.toLocaleLowerCase.hasOwnProperty('length')); + $ERROR('#1: String.prototype.toLocaleLowerCase.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.toLocaleLowerCase.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// var __obj = String.prototype.toLocaleLowerCase.length; -verifyNotWritable(String.prototype.toLocaleLowerCase, "length", null, function(){return "shifted";}); +verifyNotWritable(String.prototype.toLocaleLowerCase, "length", null, function() { + return "shifted"; +}); ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.toLocaleLowerCase.length !== __obj) { - $ERROR('#2: __obj = String.prototype.toLocaleLowerCase.length; String.prototype.toLocaleLowerCase.length = function(){return "shifted";}; String.prototype.toLocaleLowerCase.length === __obj. Actual: '+String.prototype.toLocaleLowerCase.length ); + $ERROR('#2: __obj = String.prototype.toLocaleLowerCase.length; String.prototype.toLocaleLowerCase.length = function(){return "shifted";}; String.prototype.toLocaleLowerCase.length === __obj. Actual: ' + String.prototype.toLocaleLowerCase.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A11.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A11.js index c6ca64f03c..28a5f7aabc 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 b929ade1d6..181691a71d 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 cfdc535d82..afc5510af6 100644 --- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T10.js +++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T10.js @@ -9,13 +9,17 @@ description: > function ---*/ -var __obj = {toString:function(){return "\u0041B";}} +var __obj = { + toString: function() { + return "\u0041B"; + } +} __obj.toLocaleLowerCase = String.prototype.toLocaleLowerCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__obj.toLocaleLowerCase() !=="ab") { - $ERROR('#1: var __obj = {toString:function(){return "\u0041B";}}; __obj.toLocaleLowerCase = String.prototype.toLocaleLowerCase; __obj.toLocaleLowerCase() ==="ab". Actual: '+__obj.toLocaleLowerCase() ); +if (__obj.toLocaleLowerCase() !== "ab") { + $ERROR('#1: var __obj = {toString:function(){return "\u0041B";}}; __obj.toLocaleLowerCase = String.prototype.toLocaleLowerCase; __obj.toLocaleLowerCase() ==="ab". Actual: ' + __obj.toLocaleLowerCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T11.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T11.js index 10c4df6a28..802f832eec 100644 --- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T11.js +++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T11.js @@ -9,17 +9,21 @@ description: > toLocaleLowerCase() function for this object ---*/ -var __obj = {toString:function(){throw "intostr";}} +var __obj = { + toString: function() { + throw "intostr"; + } +} __obj.toLocaleLowerCase = String.prototype.toLocaleLowerCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 try { var x = __obj.toLocaleLowerCase(); - $ERROR('#1: "var x = __obj.toLocaleLowerCase()" lead to throwing exception'); + $ERROR('#1: "var x = __obj.toLocaleLowerCase()" lead to throwing exception'); } catch (e) { - if (e!=="intostr") { - $ERROR('#1.1: Exception === "intostr". Actual: '+e); + if (e !== "intostr") { + $ERROR('#1.1: Exception === "intostr". Actual: ' + e); } } // diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T12.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T12.js index 716a6d9178..6754da40cd 100644 --- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T12.js +++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T12.js @@ -9,17 +9,24 @@ description: > then call toLocaleLowerCase() function for this object ---*/ -var __obj = {toString:function(){return {};},valueOf:function(){throw "intostr";}} +var __obj = { + toString: function() { + return {}; + }, + valueOf: function() { + throw "intostr"; + } +} __obj.toLocaleLowerCase = String.prototype.toLocaleLowerCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 try { var x = __obj.toLocaleLowerCase(); - $ERROR('#1: "var x = __obj.toLocaleLowerCase()" lead to throwing exception'); + $ERROR('#1: "var x = __obj.toLocaleLowerCase()" lead to throwing exception'); } catch (e) { - if (e!=="intostr") { - $ERROR('#1.1: Exception === "intostr". Actual: '+e); + if (e !== "intostr") { + $ERROR('#1.1: Exception === "intostr". Actual: ' + e); } } // diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T13.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T13.js index eb19ac07cf..11d49736bc 100644 --- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T13.js +++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T13.js @@ -9,13 +9,20 @@ description: > toLocaleLowerCase() function for this object ---*/ -var __obj = {toString:function(){return {};},valueOf:function(){return 1;}} +var __obj = { + toString: function() { + return {}; + }, + valueOf: function() { + return 1; + } +} __obj.toLocaleLowerCase = String.prototype.toLocaleLowerCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__obj.toLocaleLowerCase() !=="1") { - $ERROR('#1: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toLocaleLowerCase = String.prototype.toLocaleLowerCase; __obj.toLocaleLowerCase() ==="1". Actual: '+__obj.toLocaleLowerCase() ); +if (__obj.toLocaleLowerCase() !== "1") { + $ERROR('#1: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toLocaleLowerCase = String.prototype.toLocaleLowerCase; __obj.toLocaleLowerCase() ==="1". Actual: ' + __obj.toLocaleLowerCase()); } // ////////////////////////////////////////////////////////////////////////////// @@ -23,7 +30,7 @@ if (__obj.toLocaleLowerCase() !=="1") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__obj.toLocaleLowerCase().length !== 1) { - $ERROR('#2: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toLocaleLowerCase = String.prototype.toLocaleLowerCase; __obj.toLocaleLowerCase().length === 1. Actual: '+__obj.toLocaleLowerCase().length ); + $ERROR('#2: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toLocaleLowerCase = String.prototype.toLocaleLowerCase; __obj.toLocaleLowerCase().length === 1. Actual: ' + __obj.toLocaleLowerCase().length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T14.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T14.js index 95da90ec3b..978a4932b2 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 d20cef4b27..fe95c5cd6f 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 00eca997aa..a4aee2c5ee 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 04b36119a0..7336d0cd3c 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 fb3d251430..d97884e826 100644 --- a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T5.js +++ b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T5.js @@ -10,8 +10,12 @@ description: Call toLocaleLowerCase() function for function call ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToString(null) evaluates to "null" match(null) evaluates to match("null") -if (function(){return "GnulLuNa"}().toLocaleLowerCase() !== "gnulluna") { - $ERROR('#1: function(){return "GnulLuNa"}().toLocaleLowerCase() === "gnulluna". Actual: '+function(){return "GnulLuNa"}().toLocaleLowerCase() ); +if (function() { + return "GnulLuNa" + }().toLocaleLowerCase() !== "gnulluna") { + $ERROR('#1: function(){return "GnulLuNa"}().toLocaleLowerCase() === "gnulluna". Actual: ' + function() { + return "GnulLuNa" + }().toLocaleLowerCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T6.js b/test/built-ins/String/prototype/toLocaleLowerCase/S15.5.4.17_A1_T6.js index 6339d00116..93cfe7ed4f 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 fcd3a61e20..01751fa428 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 17ccebbee1..b9219740a3 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 94129acfc1..3c122f6d65 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 715dee843b..0fa680559b 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 de23fd2e54..7ee83f78f8 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 03faefe863..408d0e59ec 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 8699a76579..e421581f63 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 a4c0873dc3..42dbf02a79 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 34289893b7..9ee03545e1 100644 --- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A10.js +++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A10.js @@ -15,19 +15,21 @@ includes: [propertyHelper.js] ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.toLocaleUpperCase.hasOwnProperty('length'))) { - $ERROR('#1: String.prototype.toLocaleUpperCase.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.toLocaleUpperCase.hasOwnProperty('length')); + $ERROR('#1: String.prototype.toLocaleUpperCase.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.toLocaleUpperCase.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// var __obj = String.prototype.toLocaleUpperCase.length; -verifyNotWritable(String.prototype.toLocaleUpperCase, "length", null, function(){return "shifted";}); +verifyNotWritable(String.prototype.toLocaleUpperCase, "length", null, function() { + return "shifted"; +}); ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.toLocaleUpperCase.length !== __obj) { - $ERROR('#2: __obj = String.prototype.toLocaleUpperCase.length; String.prototype.toLocaleUpperCase.length = function(){return "shifted";}; String.prototype.toLocaleUpperCase.length === __obj. Actual: '+String.prototype.toLocaleUpperCase.length ); + $ERROR('#2: __obj = String.prototype.toLocaleUpperCase.length; String.prototype.toLocaleUpperCase.length = function(){return "shifted";}; String.prototype.toLocaleUpperCase.length === __obj. Actual: ' + String.prototype.toLocaleUpperCase.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A11.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A11.js index da53d2892c..c55ed8da09 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 e58f9b38a0..1284817123 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 6bcc86f589..0e0bd3fbe7 100644 --- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T10.js +++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T10.js @@ -9,13 +9,17 @@ description: > function ---*/ -var __obj = {toString:function(){return "\u0041b";}} +var __obj = { + toString: function() { + return "\u0041b"; + } +} __obj.toLocaleUpperCase = String.prototype.toLocaleUpperCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__obj.toLocaleUpperCase() !=="AB") { - $ERROR('#1: var __obj = {toString:function(){return "\u0041b";}}; __obj.toLocaleUpperCase = String.prototype.toLocaleUpperCase; __obj.toLocaleUpperCase() ==="AB". Actual: '+__obj.toLocaleUpperCase() ); +if (__obj.toLocaleUpperCase() !== "AB") { + $ERROR('#1: var __obj = {toString:function(){return "\u0041b";}}; __obj.toLocaleUpperCase = String.prototype.toLocaleUpperCase; __obj.toLocaleUpperCase() ==="AB". Actual: ' + __obj.toLocaleUpperCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T11.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T11.js index 45a9a20877..ba8ef49002 100644 --- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T11.js +++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T11.js @@ -9,7 +9,11 @@ description: > toLocaleUpperCase() function for this object ---*/ -var __obj = {toString:function(){throw "intostr";}} +var __obj = { + toString: function() { + throw "intostr"; + } +} __obj.toLocaleUpperCase = String.prototype.toLocaleUpperCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 @@ -17,8 +21,8 @@ try { var x = __obj.toLocaleUpperCase(); $ERROR('#1: "var x = __obj.toLocaleUpperCase()" lead to throwing exception'); } catch (e) { - if (e!=="intostr") { - $ERROR('#1.1: Exception === "intostr". Actual: '+e); + if (e !== "intostr") { + $ERROR('#1.1: Exception === "intostr". Actual: ' + e); } } // diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T12.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T12.js index 185ea8fcb6..a473a9bb4b 100644 --- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T12.js +++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T12.js @@ -9,16 +9,23 @@ description: > then call toLocaleUpperCase() function for this object ---*/ -var __obj = {toString:function(){return {};},valueOf:function(){throw "intostr";}} +var __obj = { + toString: function() { + return {}; + }, + valueOf: function() { + throw "intostr"; + } +} __obj.toLocaleUpperCase = String.prototype.toLocaleUpperCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 try { var x = __obj.toLocaleUpperCase(); - $ERROR('#1: "var x = __obj.toLocaleUpperCase()" lead to throwing exception'); + $ERROR('#1: "var x = __obj.toLocaleUpperCase()" lead to throwing exception'); } catch (e) { - if (e!=="intostr") { - $ERROR('#1.1: Exception === "intostr". Actual: '+e); + if (e !== "intostr") { + $ERROR('#1.1: Exception === "intostr". Actual: ' + e); } } // diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T13.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T13.js index 3b1b61817a..a73b5c9d57 100644 --- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T13.js +++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T13.js @@ -9,12 +9,19 @@ description: > toLocaleUpperCase() function for this object ---*/ -var __obj = {toString:function(){return {};},valueOf:function(){return 1;}} +var __obj = { + toString: function() { + return {}; + }, + valueOf: function() { + return 1; + } +} __obj.toLocaleUpperCase = String.prototype.toLocaleUpperCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__obj.toLocaleUpperCase() !=="1") { - $ERROR('#1: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toLocaleUpperCase = String.prototype.toLocaleUpperCase; __obj.toLocaleUpperCase() ==="1". Actual: '+__obj.toLocaleUpperCase() ); +if (__obj.toLocaleUpperCase() !== "1") { + $ERROR('#1: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toLocaleUpperCase = String.prototype.toLocaleUpperCase; __obj.toLocaleUpperCase() ==="1". Actual: ' + __obj.toLocaleUpperCase()); } // ////////////////////////////////////////////////////////////////////////////// @@ -22,7 +29,7 @@ if (__obj.toLocaleUpperCase() !=="1") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__obj.toLocaleUpperCase().length !== 1) { - $ERROR('#2: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toLocaleUpperCase = String.prototype.toLocaleUpperCase; __obj.toLocaleUpperCase().length === 1. Actual: '+__obj.toLocaleUpperCase().length ); + $ERROR('#2: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toLocaleUpperCase = String.prototype.toLocaleUpperCase; __obj.toLocaleUpperCase().length === 1. Actual: ' + __obj.toLocaleUpperCase().length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T14.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T14.js index 8c2104cc7f..71d330aaa1 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 425c58fc1d..533a4294d1 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 1de801a89d..04432731a3 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 3cea1ebf09..1b144d6796 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 f1da201203..d28e778880 100644 --- a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T5.js +++ b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T5.js @@ -10,8 +10,12 @@ description: Call toLocaleUpperCase() function of function call ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToString(null) evaluates to "null" match(null) evaluates to match("null") -if (function(){return "GnulLuNa"}().toLocaleUpperCase() !== "GNULLUNA") { - $ERROR('#1: function(){return "GnulLuNa"}().toLocaleUpperCase() === "GNULLUNA". Actual: '+function(){return "GnulLuNa"}().toLocaleUpperCase() ); +if (function() { + return "GnulLuNa" + }().toLocaleUpperCase() !== "GNULLUNA") { + $ERROR('#1: function(){return "GnulLuNa"}().toLocaleUpperCase() === "GNULLUNA". Actual: ' + function() { + return "GnulLuNa" + }().toLocaleUpperCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T6.js b/test/built-ins/String/prototype/toLocaleUpperCase/S15.5.4.19_A1_T6.js index 5088fcb8d9..6d69d494d3 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 0c710d629e..1a24a8824c 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 968e66738f..ef2c7b26ca 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 debdee1ddc..ff1ea59334 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 39cf66d2c7..32986be8bb 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 498dbfaa59..ba3d6e8f25 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 3f57102eef..75f8ac0136 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 c1f69036c4..0043fa412d 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 36c4c6c820..ec9102e6de 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 37b044c1e7..6cc53960bb 100644 --- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A10.js +++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A10.js @@ -15,19 +15,21 @@ includes: [propertyHelper.js] ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.toLowerCase.hasOwnProperty('length'))) { - $ERROR('#1: String.prototype.toLowerCase.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.toLowerCase.hasOwnProperty('length')); + $ERROR('#1: String.prototype.toLowerCase.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.toLowerCase.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// var __obj = String.prototype.toLowerCase.length; -verifyNotWritable(String.prototype.toLowerCase, "length", null, function(){return "shifted";}); +verifyNotWritable(String.prototype.toLowerCase, "length", null, function() { + return "shifted"; +}); ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.toLowerCase.length !== __obj) { - $ERROR('#2: __obj = String.prototype.toLowerCase.length; String.prototype.toLowerCase.length = function(){return "shifted";}; String.prototype.toLowerCase.length === __obj. Actual: '+String.prototype.toLowerCase.length ); + $ERROR('#2: __obj = String.prototype.toLowerCase.length; String.prototype.toLowerCase.length = function(){return "shifted";}; String.prototype.toLowerCase.length === __obj. Actual: ' + String.prototype.toLowerCase.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A11.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A11.js index f05e554ca4..6f4f7e826b 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 62a744bc9c..4671410342 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 8e5b25c867..6c36aa0eaa 100644 --- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T10.js +++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T10.js @@ -9,14 +9,18 @@ description: > function ---*/ -var __obj = {toString:function(){return "\u0041B";}} +var __obj = { + toString: function() { + return "\u0041B"; + } +} __obj.toLowerCase = String.prototype.toLowerCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__obj.toLowerCase() !=="ab") { - $ERROR('#1: var __obj = {toString:function(){return "\u0041B";}}; __obj.toLowerCase = String.prototype.toLowerCase; __obj.toLowerCase() ==="ab". Actual: '+__obj.toLowerCase() ); +if (__obj.toLowerCase() !== "ab") { + $ERROR('#1: var __obj = {toString:function(){return "\u0041B";}}; __obj.toLowerCase = String.prototype.toLowerCase; __obj.toLowerCase() ==="ab". Actual: ' + __obj.toLowerCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T11.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T11.js index 1e47da8621..922da69013 100644 --- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T11.js +++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T11.js @@ -9,17 +9,21 @@ description: > toLowerCase() function for this object ---*/ -var __obj = {toString:function(){throw "intostr";}} +var __obj = { + toString: function() { + throw "intostr"; + } +} __obj.toLowerCase = String.prototype.toLowerCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 try { var x = __obj.toLowerCase(); - $ERROR('#1: "var x = __obj.toLowerCase()" lead to throwing exception'); + $ERROR('#1: "var x = __obj.toLowerCase()" lead to throwing exception'); } catch (e) { - if (e!=="intostr") { - $ERROR('#1.1: Exception === "intostr". Actual: '+e); + if (e !== "intostr") { + $ERROR('#1.1: Exception === "intostr". Actual: ' + e); } } // diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T12.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T12.js index df60a25029..38427815e7 100644 --- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T12.js +++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T12.js @@ -9,17 +9,24 @@ description: > then call toLowerCase() function for this object ---*/ -var __obj = {toString:function(){return {};},valueOf:function(){throw "intostr";}} +var __obj = { + toString: function() { + return {}; + }, + valueOf: function() { + throw "intostr"; + } +} __obj.toLowerCase = String.prototype.toLowerCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 try { var x = __obj.toLowerCase(); - $ERROR('#1: "var x = __obj.toLowerCase()" lead to throwing exception'); + $ERROR('#1: "var x = __obj.toLowerCase()" lead to throwing exception'); } catch (e) { - if (e!=="intostr") { - $ERROR('#1.1: Exception === "intostr". Actual: '+e); + if (e !== "intostr") { + $ERROR('#1.1: Exception === "intostr". Actual: ' + e); } } // diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T13.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T13.js index 2b3e12789d..f3d3b396be 100644 --- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T13.js +++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T13.js @@ -9,13 +9,20 @@ description: > function for this object ---*/ -var __obj = {toString:function(){return {};},valueOf:function(){return 1;}} +var __obj = { + toString: function() { + return {}; + }, + valueOf: function() { + return 1; + } +} __obj.toLowerCase = String.prototype.toLowerCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__obj.toLowerCase() !=="1") { - $ERROR('#1: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toLowerCase = String.prototype.toLowerCase; __obj.toLowerCase() ==="1". Actual: '+__obj.toLowerCase() ); +if (__obj.toLowerCase() !== "1") { + $ERROR('#1: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toLowerCase = String.prototype.toLowerCase; __obj.toLowerCase() ==="1". Actual: ' + __obj.toLowerCase()); } // ////////////////////////////////////////////////////////////////////////////// @@ -23,7 +30,7 @@ if (__obj.toLowerCase() !=="1") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__obj.toLowerCase().length !== 1) { - $ERROR('#2: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toLowerCase = String.prototype.toLowerCase; __obj.toLowerCase().length === 1. Actual: '+__obj.toLowerCase().length ); + $ERROR('#2: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toLowerCase = String.prototype.toLowerCase; __obj.toLowerCase().length === 1. Actual: ' + __obj.toLowerCase().length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T14.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T14.js index 5693649fa7..0c3e210586 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 d5ed914c93..b54c9754cb 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 35a215e6f3..39b4a54ec5 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 145ad95bdb..7a9da21623 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 0082c8caf4..7b1e62c44f 100644 --- a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T5.js +++ b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T5.js @@ -10,8 +10,12 @@ description: Call toLowerCase() function for function call ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToString(null) evaluates to "null" match(null) evaluates to match("null") -if (function(){return "GnulLuNa"}().toLowerCase() !== "gnulluna") { - $ERROR('#1: function(){return "GnulLuNa"}().toLowerCase() === "gnulluna". Actual: '+function(){return "GnulLuNa"}().toLowerCase() ); +if (function() { + return "GnulLuNa" + }().toLowerCase() !== "gnulluna") { + $ERROR('#1: function(){return "GnulLuNa"}().toLowerCase() === "gnulluna". Actual: ' + function() { + return "GnulLuNa" + }().toLowerCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T6.js b/test/built-ins/String/prototype/toLowerCase/S15.5.4.16_A1_T6.js index 915b9bc6a2..9615344760 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 efb0be3d41..ac4ac806ad 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 12d8e4982d..bf1daa0e11 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 713b5ced90..823e01128a 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 23824d463e..472f9a2439 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 4504be730f..056ad2ca19 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 4d8c14efe8..4e800e64b7 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 779e3d2b06..0681d09cfd 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 2b680311f7..4d3bc2aef9 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 b83c5b1832..9b397fe4bd 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 568f1a93fc..328e8c177d 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 2720ba435f..ddeb249a60 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 933030ef57..73a7b75295 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 8f1721db55..ba121d0257 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 56896801cd..8862f4fe8a 100644 --- a/test/built-ins/String/prototype/toString/S15.5.4.2_A2_T2.js +++ b/test/built-ins/String/prototype/toString/S15.5.4.2_A2_T2.js @@ -10,12 +10,14 @@ es5id: 15.5.4.2_A2_T2 description: Checking if creating the object String.prototype.toString fails ---*/ -var __obj={toString : String.prototype.toString}; +var __obj = { + toString: String.prototype.toString +}; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __obj["toString"] !== "function") { - $ERROR('#1: var __obj={toString : String.prototype.toString}; typeof __obj["toString"] === "function". Actual: typeof __obj["toString"] ==='+typeof __obj["toString"] ); + $ERROR('#1: var __obj={toString : String.prototype.toString}; typeof __obj["toString"] === "function". Actual: typeof __obj["toString"] ===' + typeof __obj["toString"]); } // @@ -28,7 +30,7 @@ try { $ERROR('#2: "var x = (__obj == 1)" lead to throwing exception'); } catch (e) { if (!(e instanceof TypeError)) { - $ERROR('#2.1: Exception is instance of TypeError. Actual: exception is '+e); + $ERROR('#2.1: Exception is instance of TypeError. Actual: exception is ' + e); } } // diff --git a/test/built-ins/String/prototype/toString/S15.5.4.2_A3_T1.js b/test/built-ins/String/prototype/toString/S15.5.4.2_A3_T1.js index 51b235fe11..dfa8481625 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 f4b51a90af..01356cb51e 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 b88e37c58f..b1b96a0d01 100644 --- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A10.js +++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A10.js @@ -15,19 +15,21 @@ includes: [propertyHelper.js] ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (!(String.prototype.toUpperCase.hasOwnProperty('length'))) { - $ERROR('#1: String.prototype.toUpperCase.hasOwnProperty(\'length\') return true. Actual: '+String.prototype.toUpperCase.hasOwnProperty('length')); + $ERROR('#1: String.prototype.toUpperCase.hasOwnProperty(\'length\') return true. Actual: ' + String.prototype.toUpperCase.hasOwnProperty('length')); } // ////////////////////////////////////////////////////////////////////////////// var __obj = String.prototype.toUpperCase.length; -verifyNotWritable(String.prototype.toUpperCase, "length", null, function(){return "shifted";}); +verifyNotWritable(String.prototype.toUpperCase, "length", null, function() { + return "shifted"; +}); ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (String.prototype.toUpperCase.length !== __obj) { - $ERROR('#2: __obj = String.prototype.toUpperCase.length; String.prototype.toUpperCase.length = function(){return "shifted";}; String.prototype.toUpperCase.length === __obj. Actual: '+String.prototype.toUpperCase.length ); + $ERROR('#2: __obj = String.prototype.toUpperCase.length; String.prototype.toUpperCase.length = function(){return "shifted";}; String.prototype.toUpperCase.length === __obj. Actual: ' + String.prototype.toUpperCase.length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A11.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A11.js index 3747a63f45..fb9baed90f 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 951eafd2c5..c5093c5a5f 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 0da16d8962..505d785b8a 100644 --- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T10.js +++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T10.js @@ -9,13 +9,17 @@ description: > function ---*/ -var __obj = {toString:function(){return "\u0041b";}} +var __obj = { + toString: function() { + return "\u0041b"; + } +} __obj.toUpperCase = String.prototype.toUpperCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__obj.toUpperCase() !=="AB") { - $ERROR('#1: var __obj = {toString:function(){return "\u0041b";}}; __obj.toUpperCase = String.prototype.toUpperCase; __obj.toUpperCase() ==="AB". Actual: '+__obj.toUpperCase() ); +if (__obj.toUpperCase() !== "AB") { + $ERROR('#1: var __obj = {toString:function(){return "\u0041b";}}; __obj.toUpperCase = String.prototype.toUpperCase; __obj.toUpperCase() ==="AB". Actual: ' + __obj.toUpperCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T11.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T11.js index 63a68975ae..4eccc3afca 100644 --- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T11.js +++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T11.js @@ -9,16 +9,20 @@ description: > toUpperCase() function for this object ---*/ -var __obj = {toString:function(){throw "intostr";}} +var __obj = { + toString: function() { + throw "intostr"; + } +} __obj.toUpperCase = String.prototype.toUpperCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 try { var x = __obj.toUpperCase(); - $ERROR('#1: "var x = __obj.toUpperCase()" lead to throwing exception'); + $ERROR('#1: "var x = __obj.toUpperCase()" lead to throwing exception'); } catch (e) { - if (e!=="intostr") { - $ERROR('#1.1: Exception === "intostr". Actual: '+e); + if (e !== "intostr") { + $ERROR('#1.1: Exception === "intostr". Actual: ' + e); } } // diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T12.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T12.js index 7ec6f11d7d..6695033cd7 100644 --- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T12.js +++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T12.js @@ -9,16 +9,23 @@ description: > then call toUpperCase() function for this object ---*/ -var __obj = {toString:function(){return {};},valueOf:function(){throw "intostr";}} +var __obj = { + toString: function() { + return {}; + }, + valueOf: function() { + throw "intostr"; + } +} __obj.toUpperCase = String.prototype.toUpperCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 try { var x = __obj.toUpperCase(); - $ERROR('#1: "var x = __obj.toUpperCase()" lead to throwing exception'); + $ERROR('#1: "var x = __obj.toUpperCase()" lead to throwing exception'); } catch (e) { - if (e!=="intostr") { - $ERROR('#1.1: Exception === "intostr". Actual: '+e); + if (e !== "intostr") { + $ERROR('#1.1: Exception === "intostr". Actual: ' + e); } } // diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T13.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T13.js index f3c9080f89..a4f0e26f38 100644 --- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T13.js +++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T13.js @@ -9,13 +9,20 @@ description: > function for this object ---*/ -var __obj = {toString:function(){return {};},valueOf:function(){return 1;}} +var __obj = { + toString: function() { + return {}; + }, + valueOf: function() { + return 1; + } +} __obj.toUpperCase = String.prototype.toUpperCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 -if (__obj.toUpperCase() !=="1") { - $ERROR('#1: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toUpperCase = String.prototype.toUpperCase; __obj.toUpperCase() ==="1". Actual: '+__obj.toUpperCase() ); +if (__obj.toUpperCase() !== "1") { + $ERROR('#1: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toUpperCase = String.prototype.toUpperCase; __obj.toUpperCase() ==="1". Actual: ' + __obj.toUpperCase()); } // ////////////////////////////////////////////////////////////////////////////// @@ -23,7 +30,7 @@ if (__obj.toUpperCase() !=="1") { ////////////////////////////////////////////////////////////////////////////// //CHECK#2 if (__obj.toUpperCase().length !== 1) { - $ERROR('#2: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toUpperCase = String.prototype.toUpperCase; __obj.toUpperCase().length === 1. Actual: '+__obj.toUpperCase().length ); + $ERROR('#2: var __obj = {toString:function(){return {};},valueOf:function(){return 1;}}; __obj.toUpperCase = String.prototype.toUpperCase; __obj.toUpperCase().length === 1. Actual: ' + __obj.toUpperCase().length); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T14.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T14.js index 38d64db468..0c13deac22 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 e07861a9e8..fda139b74d 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 127023d0d5..c095aa9109 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 a0f71334a6..752d08837b 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 1e179135b3..e9dbfcaf3b 100644 --- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T5.js +++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T5.js @@ -10,8 +10,12 @@ description: Call toUpperCase() function of function call ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToString(null) evaluates to "null" match(null) evaluates to match("null") -if (function(){return "GnulLuNa"}().toUpperCase() !== "GNULLUNA") { - $ERROR('#1: function(){return "GnulLuNa"}().toUpperCase() === "GNULLUNA". Actual: '+function(){return "GnulLuNa"}().toUpperCase() ); +if (function() { + return "GnulLuNa" + }().toUpperCase() !== "GNULLUNA") { + $ERROR('#1: function(){return "GnulLuNa"}().toUpperCase() === "GNULLUNA". Actual: ' + function() { + return "GnulLuNa" + }().toUpperCase()); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T6.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T6.js index 85fc4f0e3f..43fb1fc122 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 d5ea871405..2c94d95cce 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 289d7d1d71..d4297d85f4 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 10a3f1b23b..4a53271747 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 b6b76ea34d..7ed0d7de98 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 e870a1a9be..7d1512f5a1 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 bd2d26e8ae..b11b320632 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 d5deefd6df..b388e38a6a 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 9e33d4b01e..5cf505e070 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 429a17b072..cd7a756f47 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 bd0bcaa1f5..d44536ab55 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 d91241da24..728d40f5a5 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 3b93eb1737..874f8110d0 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 cd09927dd8..69ada32817 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 163254129a..925c82e1e2 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 2536716ded..6d93265b09 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 4edb83c727..d3e91e5f16 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 a9233a47d1..260eb88cca 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 393625ce0f..2c7faa8ecc 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 1c9446bdc0..0bad8928fc 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 3dbead7888..9da700970e 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 c8c99d70a5..82d31dc338 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 f68088fa36..a01462f138 100644 --- a/test/built-ins/String/prototype/trim/15.5.4.20-2-46.js +++ b/test/built-ins/String/prototype/trim/15.5.4.20-2-46.js @@ -8,6 +8,8 @@ description: > to a string ---*/ - var funObj = function () { return arguments; }; +var funObj = function() { + return arguments; +}; assert.sameValue(typeof(String.prototype.trim.call(funObj)), "string", 'typeof(String.prototype.trim.call(funObj))'); diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-2-49.js b/test/built-ins/String/prototype/trim/15.5.4.20-2-49.js index 7eb3a04b37..88e71dcb96 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 7dff7b940f..a59a845ca4 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 d47c31beb8..525f8e8e86 100644 --- a/test/built-ins/String/prototype/trim/15.5.4.20-2-51.js +++ b/test/built-ins/String/prototype/trim/15.5.4.20-2-51.js @@ -8,6 +8,8 @@ description: > to a string ---*/ - var argObj = function () { return arguments; } (1, 2, true); +var argObj = function() { + return arguments; +}(1, 2, true); assert.sameValue(String.prototype.trim.call(argObj), "[object Arguments]", 'String.prototype.trim.call(argObj)'); diff --git a/test/built-ins/String/prototype/trim/15.5.4.20-3-1.js b/test/built-ins/String/prototype/trim/15.5.4.20-3-1.js index 0d7794575a..b2fae943c6 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 c488c91eeb..1c2c946b63 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 9abc0fdfad..33666c9247 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 13a98eb6c5..2096985617 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 2affe22615..1f331ee47e 100644 --- a/test/built-ins/String/prototype/trimEnd/this-value-number.js +++ b/test/built-ins/String/prototype/trimEnd/this-value-number.js @@ -45,4 +45,3 @@ assert.sameValue( '-1', 'String.prototype.trimEnd.call(-1)' ); - diff --git a/test/built-ins/String/prototype/trimEnd/this-value-object-cannot-convert-to-primitive-err.js b/test/built-ins/String/prototype/trimEnd/this-value-object-cannot-convert-to-primitive-err.js index 3a85af554e..77170a1c7d 100644 --- a/test/built-ins/String/prototype/trimEnd/this-value-object-cannot-convert-to-primitive-err.js +++ b/test/built-ins/String/prototype/trimEnd/this-value-object-cannot-convert-to-primitive-err.js @@ -53,5 +53,7 @@ var thisVal = { // nor valueOf defined, then a TypeError exception should be thrown. assert.throws( TypeError, - function() { String.prototype.trimEnd.call(thisVal); }, + function() { + String.prototype.trimEnd.call(thisVal); + }, ); diff --git a/test/built-ins/String/prototype/trimEnd/this-value-object-toprimitive-meth-priority.js b/test/built-ins/String/prototype/trimEnd/this-value-object-toprimitive-meth-priority.js index f7bdb4e5e4..127dc03f99 100644 --- a/test/built-ins/String/prototype/trimEnd/this-value-object-toprimitive-meth-priority.js +++ b/test/built-ins/String/prototype/trimEnd/this-value-object-toprimitive-meth-priority.js @@ -33,15 +33,21 @@ var valueOfAccessed = 0; var thisVal = { get [Symbol.toPrimitive]() { toPrimitiveAccessed += 1; - return function() { return '42 '; }; + return function() { + return '42 '; + }; }, get toString() { toStringAccessed += 1; - return function() { return ''; }; + return function() { + return ''; + }; }, get valueOf() { valueOfAccessed += 1; - return function() { return ''; }; + return function() { + return ''; + }; }, }; diff --git a/test/built-ins/String/prototype/trimEnd/this-value-object-tostring-meth-priority.js b/test/built-ins/String/prototype/trimEnd/this-value-object-tostring-meth-priority.js index 50e78cb603..3c65454e04 100644 --- a/test/built-ins/String/prototype/trimEnd/this-value-object-tostring-meth-priority.js +++ b/test/built-ins/String/prototype/trimEnd/this-value-object-tostring-meth-priority.js @@ -48,16 +48,20 @@ var toStringAccessed = 0; var valueOfAccessed = 0; var thisVal = { get [Symbol.toPrimitive]() { - toPrimitiveAccessed +=1; + toPrimitiveAccessed += 1; return undefined; }, get toString() { toStringAccessed += 1; - return function() { return '42 '; }; + return function() { + return '42 '; + }; }, get valueOf() { valueOfAccessed += 1; - return function() { return ''; }; + return function() { + return ''; + }; }, }; diff --git a/test/built-ins/String/prototype/trimEnd/this-value-object-valueof-meth-priority.js b/test/built-ins/String/prototype/trimEnd/this-value-object-valueof-meth-priority.js index fe327468ef..b2a16798cc 100644 --- a/test/built-ins/String/prototype/trimEnd/this-value-object-valueof-meth-priority.js +++ b/test/built-ins/String/prototype/trimEnd/this-value-object-valueof-meth-priority.js @@ -57,7 +57,9 @@ var thisVal = { }, get valueOf() { valueOfAccessed += 1; - return function() { return '42 '; }; + return function() { + return '42 '; + }; }, }; diff --git a/test/built-ins/String/prototype/trimEnd/this-value-symbol-typeerror.js b/test/built-ins/String/prototype/trimEnd/this-value-symbol-typeerror.js index e53131a6a0..d043708aac 100644 --- a/test/built-ins/String/prototype/trimEnd/this-value-symbol-typeerror.js +++ b/test/built-ins/String/prototype/trimEnd/this-value-symbol-typeerror.js @@ -19,6 +19,8 @@ var symbol = Symbol(); assert.throws( TypeError, - function() { trimEnd.call(symbol); }, + function() { + trimEnd.call(symbol); + }, 'String.prototype.trimEnd.call(Symbol())' ); diff --git a/test/built-ins/String/prototype/trimStart/this-value-number.js b/test/built-ins/String/prototype/trimStart/this-value-number.js index 2a4a518eaa..c187cbad9b 100644 --- a/test/built-ins/String/prototype/trimStart/this-value-number.js +++ b/test/built-ins/String/prototype/trimStart/this-value-number.js @@ -45,4 +45,3 @@ assert.sameValue( '-1', 'String.prototype.trimStart.call(-1)' ); - diff --git a/test/built-ins/String/prototype/trimStart/this-value-object-cannot-convert-to-primitive-err.js b/test/built-ins/String/prototype/trimStart/this-value-object-cannot-convert-to-primitive-err.js index 15de7e4159..e74d0569b5 100644 --- a/test/built-ins/String/prototype/trimStart/this-value-object-cannot-convert-to-primitive-err.js +++ b/test/built-ins/String/prototype/trimStart/this-value-object-cannot-convert-to-primitive-err.js @@ -53,5 +53,7 @@ var thisVal = { // nor valueOf defined, then a TypeError exception should be thrown. assert.throws( TypeError, - function() { String.prototype.trimStart.call(thisVal); }, + function() { + String.prototype.trimStart.call(thisVal); + }, ); diff --git a/test/built-ins/String/prototype/trimStart/this-value-object-toprimitive-meth-priority.js b/test/built-ins/String/prototype/trimStart/this-value-object-toprimitive-meth-priority.js index b6db921211..f16a325f8d 100644 --- a/test/built-ins/String/prototype/trimStart/this-value-object-toprimitive-meth-priority.js +++ b/test/built-ins/String/prototype/trimStart/this-value-object-toprimitive-meth-priority.js @@ -33,15 +33,21 @@ var valueOfAccessed = 0; var thisVal = { get [Symbol.toPrimitive]() { toPrimitiveAccessed += 1; - return function() { return ' 42'; }; + return function() { + return ' 42'; + }; }, get toString() { toStringAccessed += 1; - return function() { return ''; }; + return function() { + return ''; + }; }, get valueOf() { valueOfAccessed += 1; - return function() { return ''; }; + return function() { + return ''; + }; }, }; diff --git a/test/built-ins/String/prototype/trimStart/this-value-object-tostring-meth-priority.js b/test/built-ins/String/prototype/trimStart/this-value-object-tostring-meth-priority.js index af3d348730..f4fb1f2012 100644 --- a/test/built-ins/String/prototype/trimStart/this-value-object-tostring-meth-priority.js +++ b/test/built-ins/String/prototype/trimStart/this-value-object-tostring-meth-priority.js @@ -48,16 +48,20 @@ var toStringAccessed = 0; var valueOfAccessed = 0; var thisVal = { get [Symbol.toPrimitive]() { - toPrimitiveAccessed +=1; + toPrimitiveAccessed += 1; return undefined; }, get toString() { toStringAccessed += 1; - return function() { return ' 42'; }; + return function() { + return ' 42'; + }; }, get valueOf() { valueOfAccessed += 1; - return function() { return ''; }; + return function() { + return ''; + }; }, }; diff --git a/test/built-ins/String/prototype/trimStart/this-value-object-valueof-meth-priority.js b/test/built-ins/String/prototype/trimStart/this-value-object-valueof-meth-priority.js index 6ebbda7365..1f4e67cea0 100644 --- a/test/built-ins/String/prototype/trimStart/this-value-object-valueof-meth-priority.js +++ b/test/built-ins/String/prototype/trimStart/this-value-object-valueof-meth-priority.js @@ -57,7 +57,9 @@ var thisVal = { }, get valueOf() { valueOfAccessed += 1; - return function() { return ' 42'; }; + return function() { + return ' 42'; + }; }, }; diff --git a/test/built-ins/String/prototype/trimStart/this-value-symbol-typeerror.js b/test/built-ins/String/prototype/trimStart/this-value-symbol-typeerror.js index e66f2e85d7..f492807597 100644 --- a/test/built-ins/String/prototype/trimStart/this-value-symbol-typeerror.js +++ b/test/built-ins/String/prototype/trimStart/this-value-symbol-typeerror.js @@ -19,6 +19,8 @@ var symbol = Symbol(); assert.throws( TypeError, - function() { trimStart.call(symbol); }, + function() { + trimStart.call(symbol); + }, 'String.prototype.trimStart.call(Symbol())' ); diff --git a/test/built-ins/String/prototype/valueOf/S15.5.4.3_A1_T1.js b/test/built-ins/String/prototype/valueOf/S15.5.4.3_A1_T1.js index a3080da71b..6e42dcfbf3 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 553ccf768a..88a5de7e44 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 cbeb4dd017..20f48c09be 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 e7beb039a5..495b720c59 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 4e4613a5e3..4c8cf82695 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 efaa7ef5de..ec48d9f96a 100644 --- a/test/built-ins/String/prototype/valueOf/S15.5.4.3_A2_T2.js +++ b/test/built-ins/String/prototype/valueOf/S15.5.4.3_A2_T2.js @@ -9,12 +9,14 @@ es5id: 15.5.4.3_A2_T2 description: Checking if creating the object String.prototype.valueOf fails ---*/ -var __obj={valueOf : String.prototype.valueOf}; +var __obj = { + valueOf: String.prototype.valueOf +}; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 if (typeof __obj["valueOf"] !== "function") { - $ERROR('#1: var __obj={valueOf : String.prototype.valueOf}; typeof __obj["valueOf"] === "function". Actual: typeof __obj["valueOf"] ==='+typeof __obj["valueOf"] ); + $ERROR('#1: var __obj={valueOf : String.prototype.valueOf}; typeof __obj["valueOf"] === "function". Actual: typeof __obj["valueOf"] ===' + typeof __obj["valueOf"]); } // @@ -27,7 +29,7 @@ try { $ERROR('#2: "var __obj={valueOf : String.prototype.valueOf}; var x = (__obj == 1)" lead to throwing exception'); } catch (e) { if (!(e instanceof TypeError)) { - $ERROR('#2.1: Exception is instance of TypeError. Actual: exception is '+e); + $ERROR('#2.1: Exception is instance of TypeError. Actual: exception is ' + e); } } // diff --git a/test/built-ins/String/raw/return-the-string-value-from-template.js b/test/built-ins/String/raw/return-the-string-value-from-template.js index 8c130ffe09..2c360832d8 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 1d1c5f2708..09181e3b9f 100644 --- a/test/built-ins/String/raw/special-characters.js +++ b/test/built-ins/String/raw/special-characters.js @@ -8,12 +8,13 @@ description: > ---*/ assert.sameValue( - String.raw`\u0065\`\r\r\n\n${'test'}check`, + String.raw `\u0065\`\r\r\n\n${'test'}check`, '\\u0065\\`\\r\\r\\n\\ntestcheck', 'Unicode escape sequences' ); assert.sameValue( - String.raw`\ \ + String.raw `\ +\ \ `, '\\\n\\\n\\\n', diff --git a/test/built-ins/String/raw/template-substitutions-are-appended-on-same-index.js b/test/built-ins/String/raw/template-substitutions-are-appended-on-same-index.js index 509bce29d6..343894724c 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 8ed98172b2..73fd41cb1d 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 4e13ddd00f..cfae793962 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 aee0009956..137486df6b 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 41c0703cf3..d61f85227d 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 e62f06c8fd..936f05416e 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 2059f7b84e..e4493006cc 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 b0e1dcb4ca..74512b6ba3 100644 --- a/test/built-ins/Symbol/species/builtin-getter-name.js +++ b/test/built-ins/Symbol/species/builtin-getter-name.js @@ -11,8 +11,8 @@ features: [Symbol.species] ---*/ function getGetterName(obj, name) { - var getter = Object.getOwnPropertyDescriptor(obj, Symbol.species).get; - return getter && getter.name; + var getter = Object.getOwnPropertyDescriptor(obj, Symbol.species).get; + return getter && getter.name; } assert.sameValue(getGetterName(Array, Symbol.species), "get [Symbol.species]"); @@ -20,4 +20,3 @@ assert.sameValue(getGetterName(Map, Symbol.species), "get [Symbol.species]"); assert.sameValue(getGetterName(Promise, Symbol.species), "get [Symbol.species]"); assert.sameValue(getGetterName(RegExp, Symbol.species), "get [Symbol.species]"); assert.sameValue(getGetterName(Set, Symbol.species), "get [Symbol.species]"); - diff --git a/test/built-ins/Symbol/species/subclassing.js b/test/built-ins/Symbol/species/subclassing.js index d6a13d4983..5264f2437c 100644 --- a/test/built-ins/Symbol/species/subclassing.js +++ b/test/built-ins/Symbol/species/subclassing.js @@ -9,8 +9,6 @@ description: Symbol.species is retained on subclassing features: [Symbol.species] ---*/ -class MyRegExp extends RegExp { -}; +class MyRegExp extends RegExp {}; assert.sameValue(MyRegExp[Symbol.species], MyRegExp); - diff --git a/test/built-ins/ThrowTypeError/distinct-cross-realm.js b/test/built-ins/ThrowTypeError/distinct-cross-realm.js index 3fb4122969..b256601791 100644 --- a/test/built-ins/ThrowTypeError/distinct-cross-realm.js +++ b/test/built-ins/ThrowTypeError/distinct-cross-realm.js @@ -13,7 +13,10 @@ features: [cross-realm] ---*/ var other = $262.createRealm().global; -var localArgs = function(){ "use strict"; return arguments; }(); +var localArgs = function() { + "use strict"; + return arguments; +}(); var otherArgs = (new other.Function('return arguments;'))(); var localThrowTypeError = Object.getOwnPropertyDescriptor(localArgs, "callee").get; var otherThrowTypeError = Object.getOwnPropertyDescriptor(otherArgs, "callee").get; diff --git a/test/built-ins/ThrowTypeError/extensible.js b/test/built-ins/ThrowTypeError/extensible.js index c6c93ae282..ac42dadf97 100644 --- a/test/built-ins/ThrowTypeError/extensible.js +++ b/test/built-ins/ThrowTypeError/extensible.js @@ -12,6 +12,9 @@ info: | function is false. ---*/ -var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get; +var ThrowTypeError = Object.getOwnPropertyDescriptor(function() { + "use strict"; + return arguments; +}(), "callee").get; assert.sameValue(Object.isExtensible(ThrowTypeError), false); diff --git a/test/built-ins/ThrowTypeError/forbidden-arguments.js b/test/built-ins/ThrowTypeError/forbidden-arguments.js index d4d8cbda97..7532de5056 100644 --- a/test/built-ins/ThrowTypeError/forbidden-arguments.js +++ b/test/built-ins/ThrowTypeError/forbidden-arguments.js @@ -25,6 +25,9 @@ info: | properties. ---*/ -var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get; +var ThrowTypeError = Object.getOwnPropertyDescriptor(function() { + "use strict"; + return arguments; +}(), "callee").get; assert.sameValue(Object.prototype.hasOwnProperty.call(ThrowTypeError, "arguments"), false); diff --git a/test/built-ins/ThrowTypeError/forbidden-caller.js b/test/built-ins/ThrowTypeError/forbidden-caller.js index e2d7bece10..6aa2fb62cb 100644 --- a/test/built-ins/ThrowTypeError/forbidden-caller.js +++ b/test/built-ins/ThrowTypeError/forbidden-caller.js @@ -25,6 +25,9 @@ info: | properties. ---*/ -var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get; +var ThrowTypeError = Object.getOwnPropertyDescriptor(function() { + "use strict"; + return arguments; +}(), "callee").get; assert.sameValue(Object.prototype.hasOwnProperty.call(ThrowTypeError, "caller"), false); diff --git a/test/built-ins/ThrowTypeError/frozen.js b/test/built-ins/ThrowTypeError/frozen.js index 011f62f8c1..76c9b6ec70 100644 --- a/test/built-ins/ThrowTypeError/frozen.js +++ b/test/built-ins/ThrowTypeError/frozen.js @@ -14,6 +14,9 @@ info: | { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }. ---*/ -var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get; +var ThrowTypeError = Object.getOwnPropertyDescriptor(function() { + "use strict"; + return arguments; +}(), "callee").get; assert.sameValue(Object.isFrozen(ThrowTypeError), true); diff --git a/test/built-ins/ThrowTypeError/is-function.js b/test/built-ins/ThrowTypeError/is-function.js index 553a8fe41a..b3d15916d7 100644 --- a/test/built-ins/ThrowTypeError/is-function.js +++ b/test/built-ins/ThrowTypeError/is-function.js @@ -12,6 +12,9 @@ info: | object that is defined once for each realm. ---*/ -var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get; +var ThrowTypeError = Object.getOwnPropertyDescriptor(function() { + "use strict"; + return arguments; +}(), "callee").get; assert.sameValue(typeof ThrowTypeError, "function"); diff --git a/test/built-ins/ThrowTypeError/length.js b/test/built-ins/ThrowTypeError/length.js index 5e74e1745c..5a14e231b8 100644 --- a/test/built-ins/ThrowTypeError/length.js +++ b/test/built-ins/ThrowTypeError/length.js @@ -13,7 +13,10 @@ info: | includes: [propertyHelper.js] ---*/ -var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get; +var ThrowTypeError = Object.getOwnPropertyDescriptor(function() { + "use strict"; + return arguments; +}(), "callee").get; assert.sameValue(ThrowTypeError.length, 0); diff --git a/test/built-ins/ThrowTypeError/name.js b/test/built-ins/ThrowTypeError/name.js index d2cb287c33..d894ee12f3 100644 --- a/test/built-ins/ThrowTypeError/name.js +++ b/test/built-ins/ThrowTypeError/name.js @@ -12,6 +12,9 @@ info: | object that is defined once for each Realm. ---*/ -var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get; +var ThrowTypeError = Object.getOwnPropertyDescriptor(function() { + "use strict"; + return arguments; +}(), "callee").get; assert.sameValue(Object.prototype.hasOwnProperty.call(ThrowTypeError, "name"), false); diff --git a/test/built-ins/ThrowTypeError/prototype.js b/test/built-ins/ThrowTypeError/prototype.js index 4ad20323b5..fcb92f4311 100644 --- a/test/built-ins/ThrowTypeError/prototype.js +++ b/test/built-ins/ThrowTypeError/prototype.js @@ -19,6 +19,9 @@ info: | ... ---*/ -var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get; +var ThrowTypeError = Object.getOwnPropertyDescriptor(function() { + "use strict"; + return arguments; +}(), "callee").get; assert.sameValue(Object.getPrototypeOf(ThrowTypeError), Function.prototype); diff --git a/test/built-ins/ThrowTypeError/throws-type-error.js b/test/built-ins/ThrowTypeError/throws-type-error.js index 577dc45602..b2df50ca11 100644 --- a/test/built-ins/ThrowTypeError/throws-type-error.js +++ b/test/built-ins/ThrowTypeError/throws-type-error.js @@ -13,7 +13,10 @@ info: | 1. Throw a TypeError exception. ---*/ -var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get; +var ThrowTypeError = Object.getOwnPropertyDescriptor(function() { + "use strict"; + return arguments; +}(), "callee").get; assert.throws(TypeError, function() { ThrowTypeError(); diff --git a/test/built-ins/ThrowTypeError/unique-per-realm-function-proto.js b/test/built-ins/ThrowTypeError/unique-per-realm-function-proto.js index a5235f1c3c..47fdb00d1d 100644 --- a/test/built-ins/ThrowTypeError/unique-per-realm-function-proto.js +++ b/test/built-ins/ThrowTypeError/unique-per-realm-function-proto.js @@ -12,7 +12,10 @@ info: | object that is defined once for each realm. ---*/ -var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get; +var ThrowTypeError = Object.getOwnPropertyDescriptor(function() { + "use strict"; + return arguments; +}(), "callee").get; // Test with Function.prototype.arguments and Function.prototype.caller properties. var argumentsDesc = Object.getOwnPropertyDescriptor(Function.prototype, "arguments"); diff --git a/test/built-ins/ThrowTypeError/unique-per-realm-non-simple.js b/test/built-ins/ThrowTypeError/unique-per-realm-non-simple.js index a69be6bf46..f30052e0bc 100644 --- a/test/built-ins/ThrowTypeError/unique-per-realm-non-simple.js +++ b/test/built-ins/ThrowTypeError/unique-per-realm-non-simple.js @@ -12,7 +12,10 @@ info: | object that is defined once for each realm. ---*/ -var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get; +var ThrowTypeError = Object.getOwnPropertyDescriptor(function() { + "use strict"; + return arguments; +}(), "callee").get; // Test with unmapped arguments object from function with non-simple parameters list. function nonSimple(a = 0) { diff --git a/test/built-ins/ThrowTypeError/unique-per-realm-unmapped-args.js b/test/built-ins/ThrowTypeError/unique-per-realm-unmapped-args.js index 66dee2bd40..0572252987 100644 --- a/test/built-ins/ThrowTypeError/unique-per-realm-unmapped-args.js +++ b/test/built-ins/ThrowTypeError/unique-per-realm-unmapped-args.js @@ -12,7 +12,10 @@ info: | object that is defined once for each realm. ---*/ -var ThrowTypeError = Object.getOwnPropertyDescriptor(function(){ "use strict"; return arguments; }(), "callee").get; +var ThrowTypeError = Object.getOwnPropertyDescriptor(function() { + "use strict"; + return arguments; +}(), "callee").get; // Test with unmapped arguments object from strict-mode function. function strictFn() { diff --git a/test/built-ins/TypedArray/from/arylk-to-length-error.js b/test/built-ins/TypedArray/from/arylk-to-length-error.js index 1cc2bd7380..87599eb3bd 100644 --- a/test/built-ins/TypedArray/from/arylk-to-length-error.js +++ b/test/built-ins/TypedArray/from/arylk-to-length-error.js @@ -13,7 +13,9 @@ includes: [testTypedArray.js] features: [TypedArray] ---*/ -var arrayLike = { length: {} }; +var arrayLike = { + length: {} +}; arrayLike.length = { valueOf: function() { diff --git a/test/built-ins/TypedArray/from/mapfn-is-not-callable.js b/test/built-ins/TypedArray/from/mapfn-is-not-callable.js index 906ec4746d..f5831d833c 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 ac7d1cc9e0..5896652263 100644 --- a/test/built-ins/TypedArray/from/this-is-not-constructor.js +++ b/test/built-ins/TypedArray/from/this-is-not-constructor.js @@ -15,7 +15,9 @@ features: [TypedArray] ---*/ var from = TypedArray.from; -var m = { m() {} }.m; +var m = { + m() {} +}.m; assert.throws(TypeError, function() { from.call(m, []); diff --git a/test/built-ins/TypedArray/of/invoked-as-func.js b/test/built-ins/TypedArray/of/invoked-as-func.js index af8f8c8b69..29ee64382b 100644 --- a/test/built-ins/TypedArray/of/invoked-as-func.js +++ b/test/built-ins/TypedArray/of/invoked-as-func.js @@ -17,6 +17,5 @@ features: [TypedArray] var of = TypedArray.of; -assert.throws(TypeError, function() { - of(); +assert.throws(TypeError, function() { of (); }); diff --git a/test/built-ins/TypedArray/of/this-is-not-constructor.js b/test/built-ins/TypedArray/of/this-is-not-constructor.js index eb91d74a37..264e2e5b1c 100644 --- a/test/built-ins/TypedArray/of/this-is-not-constructor.js +++ b/test/built-ins/TypedArray/of/this-is-not-constructor.js @@ -15,7 +15,9 @@ includes: [testTypedArray.js] features: [TypedArray] ---*/ -var m = { m() {} }.m; +var m = { + m() {} +}.m; assert.throws(TypeError, function() { TypedArray.of.call(m, []); diff --git a/test/built-ins/TypedArray/prototype/copyWithin/coerced-values-end.js b/test/built-ins/TypedArray/prototype/copyWithin/coerced-values-end.js index 1cd62be566..7e84898311 100644 --- a/test/built-ins/TypedArray/prototype/copyWithin/coerced-values-end.js +++ b/test/built-ins/TypedArray/prototype/copyWithin/coerced-values-end.js @@ -29,48 +29,42 @@ includes: [compareArray.js, testTypedArray.js] testWithTypedArrayConstructors(function(TA) { assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(1, 0, null), - [0, 1, 2, 3] + new TA([0, 1, 2, 3]).copyWithin(1, 0, null), [0, 1, 2, 3] ), 'null value coerced to 0' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(1, 0, NaN), - [0, 1, 2, 3] + new TA([0, 1, 2, 3]).copyWithin(1, 0, NaN), [0, 1, 2, 3] ), 'NaN value coerced to 0' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(1, 0, false), - [0, 1, 2, 3] + new TA([0, 1, 2, 3]).copyWithin(1, 0, false), [0, 1, 2, 3] ), 'false value coerced to 0' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(1, 0, true), - [0, 0, 2, 3] + new TA([0, 1, 2, 3]).copyWithin(1, 0, true), [0, 0, 2, 3] ), 'true value coerced to 1' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(1, 0, '-2'), - [0, 0, 1, 3] + new TA([0, 1, 2, 3]).copyWithin(1, 0, '-2'), [0, 0, 1, 3] ), 'string "-2" value coerced to integer -2' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(1, 0, -2.5), - [0, 0, 1, 3] + new TA([0, 1, 2, 3]).copyWithin(1, 0, -2.5), [0, 0, 1, 3] ), 'float -2.5 value coerced to integer -2' ); diff --git a/test/built-ins/TypedArray/prototype/copyWithin/coerced-values-start.js b/test/built-ins/TypedArray/prototype/copyWithin/coerced-values-start.js index 96819e3953..c6f766c081 100644 --- a/test/built-ins/TypedArray/prototype/copyWithin/coerced-values-start.js +++ b/test/built-ins/TypedArray/prototype/copyWithin/coerced-values-start.js @@ -28,64 +28,56 @@ includes: [compareArray.js, testTypedArray.js] testWithTypedArrayConstructors(function(TA) { assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(1, undefined), - [0, 0, 1, 2] + new TA([0, 1, 2, 3]).copyWithin(1, undefined), [0, 0, 1, 2] ), 'undefined value coerced to 0' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(1, false), - [0, 0, 1, 2] + new TA([0, 1, 2, 3]).copyWithin(1, false), [0, 0, 1, 2] ), 'false value coerced to 0' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(1, NaN), - [0, 0, 1, 2] + new TA([0, 1, 2, 3]).copyWithin(1, NaN), [0, 0, 1, 2] ), 'NaN value coerced to 0' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(1, null), - [0, 0, 1, 2] + new TA([0, 1, 2, 3]).copyWithin(1, null), [0, 0, 1, 2] ), 'null value coerced to 0' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(0, true), - [1, 2, 3, 3] + new TA([0, 1, 2, 3]).copyWithin(0, true), [1, 2, 3, 3] ), 'true value coerced to 1' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(0, '1'), - [1, 2, 3, 3] + new TA([0, 1, 2, 3]).copyWithin(0, '1'), [1, 2, 3, 3] ), 'string "1" value coerced to 1' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(1, 0.5), - [0, 0, 1, 2] + new TA([0, 1, 2, 3]).copyWithin(1, 0.5), [0, 0, 1, 2] ), '0.5 float value coerced to integer 0' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(0, 1.5), - [1, 2, 3, 3] + new TA([0, 1, 2, 3]).copyWithin(0, 1.5), [1, 2, 3, 3] ), '1.5 float value coerced to integer 1' ); diff --git a/test/built-ins/TypedArray/prototype/copyWithin/coerced-values-target.js b/test/built-ins/TypedArray/prototype/copyWithin/coerced-values-target.js index 8d0c2816d4..44348b90fe 100644 --- a/test/built-ins/TypedArray/prototype/copyWithin/coerced-values-target.js +++ b/test/built-ins/TypedArray/prototype/copyWithin/coerced-values-target.js @@ -28,64 +28,56 @@ includes: [compareArray.js, testTypedArray.js] testWithTypedArrayConstructors(function(TA) { assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(undefined, 1), - [1, 2, 3, 3] + new TA([0, 1, 2, 3]).copyWithin(undefined, 1), [1, 2, 3, 3] ), 'undefined value coerced to 0' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(false, 1), - [1, 2, 3, 3] + new TA([0, 1, 2, 3]).copyWithin(false, 1), [1, 2, 3, 3] ), 'false value coerced to 0' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(NaN, 1), - [1, 2, 3, 3] + new TA([0, 1, 2, 3]).copyWithin(NaN, 1), [1, 2, 3, 3] ), 'NaN value coerced to 0' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(null, 1), - [1, 2, 3, 3] + new TA([0, 1, 2, 3]).copyWithin(null, 1), [1, 2, 3, 3] ), 'null value coerced to 0' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(true, 0), - [0, 0, 1, 2] + new TA([0, 1, 2, 3]).copyWithin(true, 0), [0, 0, 1, 2] ), 'true value coerced to 1' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin('1', 0), - [0, 0, 1, 2] + new TA([0, 1, 2, 3]).copyWithin('1', 0), [0, 0, 1, 2] ), 'string "1" value coerced to 1' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(0.5, 1), - [1, 2, 3, 3] + new TA([0, 1, 2, 3]).copyWithin(0.5, 1), [1, 2, 3, 3] ), '0.5 float value coerced to integer 0' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(1.5, 0), - [0, 0, 1, 2] + new TA([0, 1, 2, 3]).copyWithin(1.5, 0), [0, 0, 1, 2] ), '1.5 float value coerced to integer 1' ); diff --git a/test/built-ins/TypedArray/prototype/copyWithin/negative-end.js b/test/built-ins/TypedArray/prototype/copyWithin/negative-end.js index 96c9823f8a..5e90c95bc2 100644 --- a/test/built-ins/TypedArray/prototype/copyWithin/negative-end.js +++ b/test/built-ins/TypedArray/prototype/copyWithin/negative-end.js @@ -31,64 +31,56 @@ includes: [compareArray.js, testTypedArray.js] testWithTypedArrayConstructors(function(TA) { assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(0, 1, -1), - [1, 2, 2, 3] + new TA([0, 1, 2, 3]).copyWithin(0, 1, -1), [1, 2, 2, 3] ), '[0, 1, 2, 3].copyWithin(0, 1, -1) -> [1, 2, 2, 3]' ); assert( compareArray( - new TA([0, 1, 2, 3, 4]).copyWithin(2, 0, -1), - [0, 1, 0, 1, 2] + new TA([0, 1, 2, 3, 4]).copyWithin(2, 0, -1), [0, 1, 0, 1, 2] ), '[0, 1, 2, 3, 4].copyWithin(2, 0, -1) -> [0, 1, 0, 1, 2]' ); assert( compareArray( - new TA([0, 1, 2, 3, 4]).copyWithin(1, 2, -2), - [0, 2, 2, 3, 4] + new TA([0, 1, 2, 3, 4]).copyWithin(1, 2, -2), [0, 2, 2, 3, 4] ), '[0, 1, 2, 3, 4].copyWithin(1, 2, -2) -> [0, 2, 2, 3, 4]' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(0, -2, -1), - [2, 1, 2, 3] + new TA([0, 1, 2, 3]).copyWithin(0, -2, -1), [2, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(0, -2, -1) -> [2, 1, 2, 3]' ); assert( compareArray( - new TA([0, 1, 2, 3, 4]).copyWithin(2, -2, -1), - [0, 1, 3, 3, 4] + new TA([0, 1, 2, 3, 4]).copyWithin(2, -2, -1), [0, 1, 3, 3, 4] ), '[0, 1, 2, 3, 4].copyWithin(2, -2, 1) -> [0, 1, 3, 3, 4]' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(-3, -2, -1), - [0, 2, 2, 3] + new TA([0, 1, 2, 3]).copyWithin(-3, -2, -1), [0, 2, 2, 3] ), '[0, 1, 2, 3].copyWithin(-3, -2, -1) -> [0, 2, 2, 3]' ); assert( compareArray( - new TA([0, 1, 2, 3, 4]).copyWithin(-2, -3, -1), - [0, 1, 2, 2, 3] + new TA([0, 1, 2, 3, 4]).copyWithin(-2, -3, -1), [0, 1, 2, 2, 3] ), '[0, 1, 2, 3, 4].copyWithin(-2, -3, -1) -> [0, 1, 2, 2, 3]' ); assert( compareArray( - new TA([0, 1, 2, 3, 4]).copyWithin(-5, -2, -1), - [3, 1, 2, 3, 4] + new TA([0, 1, 2, 3, 4]).copyWithin(-5, -2, -1), [3, 1, 2, 3, 4] ), '[0, 1, 2, 3, 4].copyWithin(-5, -2, -1) -> [3, 1, 2, 3, 4]' ); diff --git a/test/built-ins/TypedArray/prototype/copyWithin/negative-out-of-bounds-end.js b/test/built-ins/TypedArray/prototype/copyWithin/negative-out-of-bounds-end.js index 7c55118aa1..cfd1c71b4f 100644 --- a/test/built-ins/TypedArray/prototype/copyWithin/negative-out-of-bounds-end.js +++ b/test/built-ins/TypedArray/prototype/copyWithin/negative-out-of-bounds-end.js @@ -31,80 +31,70 @@ includes: [compareArray.js, testTypedArray.js] testWithTypedArrayConstructors(function(TA) { assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(0, 1, -10), - [0, 1, 2, 3] + new TA([0, 1, 2, 3]).copyWithin(0, 1, -10), [0, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(0, 1, -10) -> [0, 1, 2, 3]' ); assert( compareArray( - new TA([1, 2, 3, 4, 5]).copyWithin(0, 1, -Infinity), - [1, 2, 3, 4, 5] + new TA([1, 2, 3, 4, 5]).copyWithin(0, 1, -Infinity), [1, 2, 3, 4, 5] ), '[1, 2, 3, 4, 5].copyWithin(0, 1, -Infinity) -> [1, 2, 3, 4, 5]' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(0, -2, -10), - [0, 1, 2, 3] + new TA([0, 1, 2, 3]).copyWithin(0, -2, -10), [0, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(0, -2, -10) -> [0, 1, 2, 3]' ); assert( compareArray( - new TA([1, 2, 3, 4, 5]).copyWithin(0, -2, -Infinity), - [1, 2, 3, 4, 5] + new TA([1, 2, 3, 4, 5]).copyWithin(0, -2, -Infinity), [1, 2, 3, 4, 5] ), '[1, 2, 3, 4, 5].copyWithin(0, -2, -Infinity) -> [1, 2, 3, 4, 5]' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(0, -9, -10), - [0, 1, 2, 3] + new TA([0, 1, 2, 3]).copyWithin(0, -9, -10), [0, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(0, -9, -10) -> [0, 1, 2, 3]' ); assert( compareArray( - new TA([1, 2, 3, 4, 5]).copyWithin(0, -9, -Infinity), - [1, 2, 3, 4, 5] + new TA([1, 2, 3, 4, 5]).copyWithin(0, -9, -Infinity), [1, 2, 3, 4, 5] ), '[1, 2, 3, 4, 5].copyWithin(0, -9, -Infinity) -> [1, 2, 3, 4, 5]' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(-3, -2, -10), - [0, 1, 2, 3] + new TA([0, 1, 2, 3]).copyWithin(-3, -2, -10), [0, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(-3, -2, -10) -> [0, 1, 2, 3]' ); assert( compareArray( - new TA([1, 2, 3, 4, 5]).copyWithin(-3, -2, -Infinity), - [1, 2, 3, 4, 5] + new TA([1, 2, 3, 4, 5]).copyWithin(-3, -2, -Infinity), [1, 2, 3, 4, 5] ), '[1, 2, 3, 4, 5].copyWithin(-3, -2, -Infinity) -> [1, 2, 3, 4, 5]' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(-7, -8, -9), - [0, 1, 2, 3] + new TA([0, 1, 2, 3]).copyWithin(-7, -8, -9), [0, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(-7, -8, -9) -> [0, 1, 2, 3]' ); assert( compareArray( - new TA([1, 2, 3, 4, 5]).copyWithin(-7, -8, -Infinity), - [1, 2, 3, 4, 5] + new TA([1, 2, 3, 4, 5]).copyWithin(-7, -8, -Infinity), [1, 2, 3, 4, 5] ), '[1, 2, 3, 4, 5].copyWithin(-7, -8, -Infinity) -> [1, 2, 3, 4, 5]' ); diff --git a/test/built-ins/TypedArray/prototype/copyWithin/negative-out-of-bounds-start.js b/test/built-ins/TypedArray/prototype/copyWithin/negative-out-of-bounds-start.js index 4fdc4eb12a..ead2f737ed 100644 --- a/test/built-ins/TypedArray/prototype/copyWithin/negative-out-of-bounds-start.js +++ b/test/built-ins/TypedArray/prototype/copyWithin/negative-out-of-bounds-start.js @@ -29,64 +29,56 @@ includes: [compareArray.js, testTypedArray.js] testWithTypedArrayConstructors(function(TA) { assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(0, -10), - [0, 1, 2, 3] + new TA([0, 1, 2, 3]).copyWithin(0, -10), [0, 1, 2, 3] ), '[0, 1, 2, 3]).copyWithin(0, -10) -> [0, 1, 2, 3]' ); assert( compareArray( - new TA([1, 2, 3, 4, 5]).copyWithin(0, -Infinity), - [1, 2, 3, 4, 5] + new TA([1, 2, 3, 4, 5]).copyWithin(0, -Infinity), [1, 2, 3, 4, 5] ), '[1, 2, 3, 4, 5]).copyWithin(0, -Infinity) -> [1, 2, 3, 4, 5]' ); assert( compareArray( - new TA([0, 1, 2, 3, 4]).copyWithin(2, -10), - [0, 1, 0, 1, 2] + new TA([0, 1, 2, 3, 4]).copyWithin(2, -10), [0, 1, 0, 1, 2] ), '[0, 1, 2, 3, 4]).copyWithin(2, -2) -> [0, 1, 0, 1, 2]' ); assert( compareArray( - new TA([1, 2, 3, 4, 5]).copyWithin(2, -Infinity), - [1, 2, 1, 2, 3] + new TA([1, 2, 3, 4, 5]).copyWithin(2, -Infinity), [1, 2, 1, 2, 3] ), '[1, 2, 3, 4, 5]).copyWithin(2, -Infinity) -> [1, 2, 1, 2, 3]' ); assert( compareArray( - new TA([0, 1, 2, 3, 4]).copyWithin(10, -10), - [0, 1, 2, 3, 4] + new TA([0, 1, 2, 3, 4]).copyWithin(10, -10), [0, 1, 2, 3, 4] ), '[0, 1, 2, 3, 4]).copyWithin(10, -10) -> [0, 1, 2, 3, 4]' ); assert( compareArray( - new TA([1, 2, 3, 4, 5]).copyWithin(10, -Infinity), - [1, 2, 3, 4, 5] + new TA([1, 2, 3, 4, 5]).copyWithin(10, -Infinity), [1, 2, 3, 4, 5] ), '[1, 2, 3, 4, 5]).copyWithin(10, -Infinity) -> [1, 2, 3, 4, 5]' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(-9, -10), - [0, 1, 2, 3] + new TA([0, 1, 2, 3]).copyWithin(-9, -10), [0, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(-9, -10) -> [0, 1, 2, 3]' ); assert( compareArray( - new TA([1, 2, 3, 4, 5]).copyWithin(-9, -Infinity), - [1, 2, 3, 4, 5] + new TA([1, 2, 3, 4, 5]).copyWithin(-9, -Infinity), [1, 2, 3, 4, 5] ), '[1, 2, 3, 4, 5].copyWithin(-9, -Infinity) -> [1, 2, 3, 4, 5]' ); diff --git a/test/built-ins/TypedArray/prototype/copyWithin/negative-out-of-bounds-target.js b/test/built-ins/TypedArray/prototype/copyWithin/negative-out-of-bounds-target.js index dc46906d3d..32b4818adc 100644 --- a/test/built-ins/TypedArray/prototype/copyWithin/negative-out-of-bounds-target.js +++ b/test/built-ins/TypedArray/prototype/copyWithin/negative-out-of-bounds-target.js @@ -29,32 +29,28 @@ includes: [compareArray.js, testTypedArray.js] testWithTypedArrayConstructors(function(TA) { assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(-10, 0), - [0, 1, 2, 3] + new TA([0, 1, 2, 3]).copyWithin(-10, 0), [0, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(-10, 0) -> [0, 1, 2, 3]' ); assert( compareArray( - new TA([1, 2, 3, 4, 5]).copyWithin(-Infinity, 0), - [1, 2, 3, 4, 5] + new TA([1, 2, 3, 4, 5]).copyWithin(-Infinity, 0), [1, 2, 3, 4, 5] ), '[1, 2, 3, 4, 5].copyWithin(-Infinity, 0) -> [1, 2, 3, 4, 5]' ); assert( compareArray( - new TA([0, 1, 2, 3, 4]).copyWithin(-10, 2), - [2, 3, 4, 3, 4] + new TA([0, 1, 2, 3, 4]).copyWithin(-10, 2), [2, 3, 4, 3, 4] ), '[0, 1, 2, 3, 4].copyWithin(-10, 2) -> [2, 3, 4, 3, 4]' ); assert( compareArray( - new TA([1, 2, 3, 4, 5]).copyWithin(-Infinity, 2), - [3, 4, 5, 4, 5] + new TA([1, 2, 3, 4, 5]).copyWithin(-Infinity, 2), [3, 4, 5, 4, 5] ), '[1, 2, 3, 4, 5].copyWithin(-Infinity, 2) -> [3, 4, 5, 4, 5]' ); diff --git a/test/built-ins/TypedArray/prototype/copyWithin/negative-start.js b/test/built-ins/TypedArray/prototype/copyWithin/negative-start.js index df73879d43..4552cab64f 100644 --- a/test/built-ins/TypedArray/prototype/copyWithin/negative-start.js +++ b/test/built-ins/TypedArray/prototype/copyWithin/negative-start.js @@ -29,48 +29,42 @@ includes: [compareArray.js, testTypedArray.js] testWithTypedArrayConstructors(function(TA) { assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(0, -1), - [3, 1, 2, 3] + new TA([0, 1, 2, 3]).copyWithin(0, -1), [3, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(0, -1) -> [3, 1, 2, 3]' ); assert( compareArray( - new TA([0, 1, 2, 3, 4]).copyWithin(2, -2), - [0, 1, 3, 4, 4] + new TA([0, 1, 2, 3, 4]).copyWithin(2, -2), [0, 1, 3, 4, 4] ), '[0, 1, 2, 3, 4].copyWithin(2, -2) -> [0, 1, 3, 4, 4]' ); assert( compareArray( - new TA([0, 1, 2, 3, 4]).copyWithin(1, -2), - [0, 3, 4, 3, 4] + new TA([0, 1, 2, 3, 4]).copyWithin(1, -2), [0, 3, 4, 3, 4] ), '[0, 1, 2, 3, 4].copyWithin(1, -2) -> [0, 3, 4, 3, 4]' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(-1, -2), - [0, 1, 2, 2] + new TA([0, 1, 2, 3]).copyWithin(-1, -2), [0, 1, 2, 2] ), '[0, 1, 2, 3].copyWithin(-1, -2) -> [ 0, 1, 2, 2 ]' ); assert( compareArray( - new TA([0, 1, 2, 3, 4]).copyWithin(-2, -3), - [0, 1, 2, 2, 3] + new TA([0, 1, 2, 3, 4]).copyWithin(-2, -3), [0, 1, 2, 2, 3] ), '[0, 1, 2, 3, 4].copyWithin(-2, -3) -> [0, 1, 2, 2, 3]' ); assert( compareArray( - new TA([0, 1, 2, 3, 4]).copyWithin(-5, -2), - [3, 4, 2, 3, 4] + new TA([0, 1, 2, 3, 4]).copyWithin(-5, -2), [3, 4, 2, 3, 4] ), '[0, 1, 2, 3, 4].copyWithin(-5, -2) -> [3, 4, 2, 3, 4]' ); diff --git a/test/built-ins/TypedArray/prototype/copyWithin/negative-target.js b/test/built-ins/TypedArray/prototype/copyWithin/negative-target.js index dfc252b1e4..ad290241d9 100644 --- a/test/built-ins/TypedArray/prototype/copyWithin/negative-target.js +++ b/test/built-ins/TypedArray/prototype/copyWithin/negative-target.js @@ -29,24 +29,21 @@ includes: [compareArray.js, testTypedArray.js] testWithTypedArrayConstructors(function(TA) { assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(-1, 0), - [0, 1, 2, 0] + new TA([0, 1, 2, 3]).copyWithin(-1, 0), [0, 1, 2, 0] ), '[0, 1, 2, 3].copyWithin(-1, 0) -> [0, 1, 2, 0]' ); assert( compareArray( - new TA([0, 1, 2, 3, 4]).copyWithin(-2, 2), - [0, 1, 2, 2, 3] + new TA([0, 1, 2, 3, 4]).copyWithin(-2, 2), [0, 1, 2, 2, 3] ), '[0, 1, 2, 3, 4].copyWithin(-2, 2) -> [0, 1, 2, 2, 3]' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(-1, 2), - [0, 1, 2, 2] + new TA([0, 1, 2, 3]).copyWithin(-1, 2), [0, 1, 2, 2] ), '[0, 1, 2, 3].copyWithin(-1, 2) -> [0, 1, 2, 2]' ); diff --git a/test/built-ins/TypedArray/prototype/copyWithin/non-negative-out-of-bounds-end.js b/test/built-ins/TypedArray/prototype/copyWithin/non-negative-out-of-bounds-end.js index 9767106c0f..9a71f2a7d8 100644 --- a/test/built-ins/TypedArray/prototype/copyWithin/non-negative-out-of-bounds-end.js +++ b/test/built-ins/TypedArray/prototype/copyWithin/non-negative-out-of-bounds-end.js @@ -22,32 +22,28 @@ includes: [compareArray.js, testTypedArray.js] testWithTypedArrayConstructors(function(TA) { assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(0, 1, 6), - [1, 2, 3, 3] + new TA([0, 1, 2, 3]).copyWithin(0, 1, 6), [1, 2, 3, 3] ), '[0, 1, 2, 3].copyWithin(0, 1, 6) -> [1, 2, 3, 3]' ); assert( compareArray( - new TA([1, 2, 3, 4, 5]).copyWithin(0, 1, Infinity), - [2, 3, 4, 5, 5] + new TA([1, 2, 3, 4, 5]).copyWithin(0, 1, Infinity), [2, 3, 4, 5, 5] ), '[1, 2, 3, 4, 5].copyWithin(0, 1, Infinity) -> [2, 3, 4, 5, 5]' ); assert( compareArray( - new TA([0, 1, 2, 3, 4, 5]).copyWithin(1, 3, 6), - [0, 3, 4, 5, 4, 5] + new TA([0, 1, 2, 3, 4, 5]).copyWithin(1, 3, 6), [0, 3, 4, 5, 4, 5] ), '[0, 1, 2, 3, 4, 5].copyWithin(1, 3, 6) -> [0, 3, 4, 5, 4, 5]' ); assert( compareArray( - new TA([1, 2, 3, 4, 5]).copyWithin(1, 3, Infinity), - [1, 4, 5, 4, 5] + new TA([1, 2, 3, 4, 5]).copyWithin(1, 3, Infinity), [1, 4, 5, 4, 5] ), '[1, 2, 3, 4, 5].copyWithin(1, 3, Infinity) -> [1, 4, 5, 4, 5]' ); diff --git a/test/built-ins/TypedArray/prototype/copyWithin/non-negative-out-of-bounds-target-and-start.js b/test/built-ins/TypedArray/prototype/copyWithin/non-negative-out-of-bounds-target-and-start.js index f1cc0504a1..4dfbf4f4dd 100644 --- a/test/built-ins/TypedArray/prototype/copyWithin/non-negative-out-of-bounds-target-and-start.js +++ b/test/built-ins/TypedArray/prototype/copyWithin/non-negative-out-of-bounds-target-and-start.js @@ -22,52 +22,45 @@ includes: [compareArray.js, testTypedArray.js] testWithTypedArrayConstructors(function(TA) { assert( compareArray( - new TA([0, 1, 2, 3, 4, 5]).copyWithin(6, 0), - [0, 1, 2, 3, 4, 5] + new TA([0, 1, 2, 3, 4, 5]).copyWithin(6, 0), [0, 1, 2, 3, 4, 5] ) ); assert( compareArray( - new TA([1, 2, 3, 4, 5]).copyWithin(Infinity, 0), - [1, 2, 3, 4, 5] + new TA([1, 2, 3, 4, 5]).copyWithin(Infinity, 0), [1, 2, 3, 4, 5] ), '[1, 2, 3, 4, 5].copyWithin(Infinity, 0) -> [1, 2, 3, 4, 5]' ); assert( compareArray( - new TA([0, 1, 2, 3, 4, 5]).copyWithin(0, 6), - [0, 1, 2, 3, 4, 5] + new TA([0, 1, 2, 3, 4, 5]).copyWithin(0, 6), [0, 1, 2, 3, 4, 5] ) ); assert( compareArray( - new TA([1, 2, 3, 4, 5]).copyWithin(0, Infinity), - [1, 2, 3, 4, 5] + new TA([1, 2, 3, 4, 5]).copyWithin(0, Infinity), [1, 2, 3, 4, 5] ), '[1, 2, 3, 4, 5].copyWithin(0, Infinity) -> [1, 2, 3, 4, 5]' ); assert( compareArray( - new TA([0, 1, 2, 3, 4, 5]).copyWithin(6, 6), - [0, 1, 2, 3, 4, 5] + new TA([0, 1, 2, 3, 4, 5]).copyWithin(6, 6), [0, 1, 2, 3, 4, 5] ) ); assert( compareArray( - new TA([0, 1, 2, 3, 4, 5]).copyWithin(10, 10), - [0, 1, 2, 3, 4, 5] + new TA([0, 1, 2, 3, 4, 5]).copyWithin(10, 10), [0, 1, 2, 3, 4, 5] ) ); assert( compareArray( - new TA([1, 2, 3, 4, 5]).copyWithin(Infinity, Infinity), - [1, 2, 3, 4, 5] + new TA([1, 2, 3, 4, 5]).copyWithin(Infinity, Infinity), [1, 2, 3, 4, 5] ), '[1, 2, 3, 4, 5].copyWithin(Infinity, Infinity) -> [1, 2, 3, 4, 5]' ); diff --git a/test/built-ins/TypedArray/prototype/copyWithin/non-negative-target-and-start.js b/test/built-ins/TypedArray/prototype/copyWithin/non-negative-target-and-start.js index 4dec6eff80..f237de5a42 100644 --- a/test/built-ins/TypedArray/prototype/copyWithin/non-negative-target-and-start.js +++ b/test/built-ins/TypedArray/prototype/copyWithin/non-negative-target-and-start.js @@ -22,29 +22,25 @@ includes: [compareArray.js, testTypedArray.js] testWithTypedArrayConstructors(function(TA) { assert( compareArray( - new TA([1, 2, 3, 4, 5, 6]).copyWithin(0, 0), - [1, 2, 3, 4, 5, 6] + new TA([1, 2, 3, 4, 5, 6]).copyWithin(0, 0), [1, 2, 3, 4, 5, 6] ) ); assert( compareArray( - new TA([1, 2, 3, 4, 5, 6]).copyWithin(0, 2), - [3, 4, 5, 6, 5, 6] + new TA([1, 2, 3, 4, 5, 6]).copyWithin(0, 2), [3, 4, 5, 6, 5, 6] ) ); assert( compareArray( - new TA([1, 2, 3, 4, 5, 6]).copyWithin(3, 0), - [1, 2, 3, 1, 2, 3] + new TA([1, 2, 3, 4, 5, 6]).copyWithin(3, 0), [1, 2, 3, 1, 2, 3] ) ); assert( compareArray( - new TA([0, 1, 2, 3, 4, 5]).copyWithin(1, 4), - [0, 4, 5, 3, 4, 5] + new TA([0, 1, 2, 3, 4, 5]).copyWithin(1, 4), [0, 4, 5, 3, 4, 5] ) ); }); diff --git a/test/built-ins/TypedArray/prototype/copyWithin/non-negative-target-start-and-end.js b/test/built-ins/TypedArray/prototype/copyWithin/non-negative-target-start-and-end.js index c8cd09f17a..21d0ec4764 100644 --- a/test/built-ins/TypedArray/prototype/copyWithin/non-negative-target-start-and-end.js +++ b/test/built-ins/TypedArray/prototype/copyWithin/non-negative-target-start-and-end.js @@ -22,24 +22,21 @@ includes: [compareArray.js, testTypedArray.js] testWithTypedArrayConstructors(function(TA) { assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(0, 0, 0), - [0, 1, 2, 3] + new TA([0, 1, 2, 3]).copyWithin(0, 0, 0), [0, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(0, 0, 0) -> [0, 1, 2, 3]' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(0, 0, 2), - [0, 1, 2, 3] + new TA([0, 1, 2, 3]).copyWithin(0, 0, 2), [0, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(0, 0, 2) -> [0, 1, 2, 3]' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(0, 1, 2), - [1, 1, 2, 3] + new TA([0, 1, 2, 3]).copyWithin(0, 1, 2), [1, 1, 2, 3] ), '[0, 1, 2, 3].copyWithin(0, 1, 2) -> [1, 1, 2, 3]' ); @@ -57,16 +54,14 @@ testWithTypedArrayConstructors(function(TA) { */ assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(1, 0, 2), - [0, 0, 1, 3] + new TA([0, 1, 2, 3]).copyWithin(1, 0, 2), [0, 0, 1, 3] ), '[0, 1, 2, 3].copyWithin(1, 0, 2) -> [0, 0, 1, 3]' ); assert( compareArray( - new TA([0, 1, 2, 3, 4, 5]).copyWithin(1, 3, 5), - [0, 3, 4, 3, 4, 5] + new TA([0, 1, 2, 3, 4, 5]).copyWithin(1, 3, 5), [0, 3, 4, 3, 4, 5] ), '[0, 1, 2, 3, 4, 5].copyWithin(1, 3, 5) -> [0, 3, 4, 3, 4, 5]' ); diff --git a/test/built-ins/TypedArray/prototype/copyWithin/undefined-end.js b/test/built-ins/TypedArray/prototype/copyWithin/undefined-end.js index bd011026fa..fe03f43326 100644 --- a/test/built-ins/TypedArray/prototype/copyWithin/undefined-end.js +++ b/test/built-ins/TypedArray/prototype/copyWithin/undefined-end.js @@ -29,16 +29,14 @@ includes: [compareArray.js, testTypedArray.js] testWithTypedArrayConstructors(function(TA) { assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(0, 1, undefined), - [1, 2, 3, 3] + new TA([0, 1, 2, 3]).copyWithin(0, 1, undefined), [1, 2, 3, 3] ), '[0, 1, 2, 3].copyWithin(0, 1, undefined) -> [1, 2, 3]' ); assert( compareArray( - new TA([0, 1, 2, 3]).copyWithin(0, 1), - [1, 2, 3, 3] + new TA([0, 1, 2, 3]).copyWithin(0, 1), [1, 2, 3, 3] ), '[0, 1, 2, 3].copyWithin(0, 1) -> [1, 2, 3, 3]' ); diff --git a/test/built-ins/TypedArray/prototype/every/callbackfn-this.js b/test/built-ins/TypedArray/prototype/every/callbackfn-this.js index a3e62feb85..2e944bb49c 100644 --- a/test/built-ins/TypedArray/prototype/every/callbackfn-this.js +++ b/test/built-ins/TypedArray/prototype/every/callbackfn-this.js @@ -27,7 +27,9 @@ includes: [testTypedArray.js] features: [TypedArray] ---*/ -var expected = (function() { return this; })(); +var expected = (function() { + return this; +})(); var thisArg = {}; testWithTypedArrayConstructors(function(TA) { diff --git a/test/built-ins/TypedArray/prototype/every/returns-false-if-any-cb-returns-false.js b/test/built-ins/TypedArray/prototype/every/returns-false-if-any-cb-returns-false.js index 63cbe4d6b1..e45dd0aacb 100644 --- a/test/built-ins/TypedArray/prototype/every/returns-false-if-any-cb-returns-false.js +++ b/test/built-ins/TypedArray/prototype/every/returns-false-if-any-cb-returns-false.js @@ -26,8 +26,7 @@ testWithTypedArrayConstructors(function(TA) { [ false, "", - 0, - -0, + 0, -0, NaN, undefined, null diff --git a/test/built-ins/TypedArray/prototype/every/returns-true-if-every-cb-returns-true.js b/test/built-ins/TypedArray/prototype/every/returns-true-if-every-cb-returns-true.js index 84bdfc8ce7..eaf69d7fb7 100644 --- a/test/built-ins/TypedArray/prototype/every/returns-true-if-every-cb-returns-true.js +++ b/test/built-ins/TypedArray/prototype/every/returns-true-if-every-cb-returns-true.js @@ -28,12 +28,9 @@ testWithTypedArrayConstructors(function(TA) { "test262", Symbol("1"), {}, - [], - -1, - Infinity, - -Infinity, - 0.1, - -0.1 + [], -1, + Infinity, -Infinity, + 0.1, -0.1 ]; var sample = new TA(values.length); var result = sample.every(function() { diff --git a/test/built-ins/TypedArray/prototype/every/values-are-not-cached.js b/test/built-ins/TypedArray/prototype/every/values-are-not-cached.js index d9afa33bb7..a4f6bf9c42 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 f5e1bd6b7e..a681825e44 100644 --- a/test/built-ins/TypedArray/prototype/fill/fill-values-conversion-once.js +++ b/test/built-ins/TypedArray/prototype/fill/fill-values-conversion-once.js @@ -18,10 +18,13 @@ testWithTypedArrayConstructors(function(TA) { var sample = new TA(2); var n = 1; - sample.fill({ valueOf() { return n++; } }); + sample.fill({ + valueOf() { + return n++; + } + }); assert.sameValue(n, 2, "additional unexpected ToNumber() calls"); assert.sameValue(sample[0], 1, "incorrect ToNumber result in index 0"); assert.sameValue(sample[1], 1, "incorrect ToNumber result in index 1"); }); - diff --git a/test/built-ins/TypedArray/prototype/fill/fill-values-non-numeric.js b/test/built-ins/TypedArray/prototype/fill/fill-values-non-numeric.js index 1d8cd4b6a5..2bd3f17168 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 70da31da6a..53774de8af 100644 --- a/test/built-ins/TypedArray/prototype/fill/fill-values.js +++ b/test/built-ins/TypedArray/prototype/fill/fill-values.js @@ -31,8 +31,7 @@ includes: [compareArray.js, testTypedArray.js] testWithTypedArrayConstructors(function(TA) { assert( compareArray( - new TA().fill(8), - [] + new TA().fill(8), [] ), "does not fill an empty instance" ); diff --git a/test/built-ins/TypedArray/prototype/filter/callbackfn-this.js b/test/built-ins/TypedArray/prototype/filter/callbackfn-this.js index 1fc599c7c9..183bea070f 100644 --- a/test/built-ins/TypedArray/prototype/filter/callbackfn-this.js +++ b/test/built-ins/TypedArray/prototype/filter/callbackfn-this.js @@ -18,7 +18,9 @@ includes: [testTypedArray.js] features: [TypedArray] ---*/ -var expected = (function() { return this; })(); +var expected = (function() { + return this; +})(); var thisArg = {}; testWithTypedArrayConstructors(function(TA) { diff --git a/test/built-ins/TypedArray/prototype/filter/result-does-not-share-buffer.js b/test/built-ins/TypedArray/prototype/filter/result-does-not-share-buffer.js index bbd292d14f..b716641ec2 100644 --- a/test/built-ins/TypedArray/prototype/filter/result-does-not-share-buffer.js +++ b/test/built-ins/TypedArray/prototype/filter/result-does-not-share-buffer.js @@ -19,9 +19,13 @@ testWithTypedArrayConstructors(function(TA) { var sample = new TA([40, 41, 42]); var result; - result = sample.filter(function() { return true; }); + result = sample.filter(function() { + return true; + }); assert.notSameValue(result.buffer, sample.buffer); - result = sample.filter(function() { return false; }); + result = sample.filter(function() { + return false; + }); assert.notSameValue(result.buffer, sample.buffer); }); diff --git a/test/built-ins/TypedArray/prototype/filter/result-empty-callbackfn-returns-false.js b/test/built-ins/TypedArray/prototype/filter/result-empty-callbackfn-returns-false.js index de558f97e7..c1b0ac9af5 100644 --- a/test/built-ins/TypedArray/prototype/filter/result-empty-callbackfn-returns-false.js +++ b/test/built-ins/TypedArray/prototype/filter/result-empty-callbackfn-returns-false.js @@ -22,8 +22,7 @@ testWithTypedArrayConstructors(function(TA) { [ false, "", - 0, - -0, + 0, -0, NaN, undefined, null diff --git a/test/built-ins/TypedArray/prototype/filter/result-full-callbackfn-returns-true.js b/test/built-ins/TypedArray/prototype/filter/result-full-callbackfn-returns-true.js index f46bf483da..6ae2811eb8 100644 --- a/test/built-ins/TypedArray/prototype/filter/result-full-callbackfn-returns-true.js +++ b/test/built-ins/TypedArray/prototype/filter/result-full-callbackfn-returns-true.js @@ -25,14 +25,13 @@ testWithTypedArrayConstructors(function(TA) { "test262", Symbol("1"), {}, - [], - -1, - Infinity, - -Infinity, - 0.1, - -0.1 + [], -1, + Infinity, -Infinity, + 0.1, -0.1 ].forEach(function(val) { - var result = sample.filter(function() { return val; }); + var result = sample.filter(function() { + return val; + }); assert(compareArray(result, sample), val); }); }); diff --git a/test/built-ins/TypedArray/prototype/filter/speciesctor-get-ctor-returns-throws.js b/test/built-ins/TypedArray/prototype/filter/speciesctor-get-ctor-returns-throws.js index a63bd2e533..bb501ccf41 100644 --- a/test/built-ins/TypedArray/prototype/filter/speciesctor-get-ctor-returns-throws.js +++ b/test/built-ins/TypedArray/prototype/filter/speciesctor-get-ctor-returns-throws.js @@ -28,7 +28,9 @@ includes: [testTypedArray.js] features: [Symbol, TypedArray] ---*/ -var callbackfn = function() { return true; }; +var callbackfn = function() { + return true; +}; testWithTypedArrayConstructors(function(TA) { var sample = new TA([40, 41, 42, 43]); diff --git a/test/built-ins/TypedArray/prototype/filter/speciesctor-get-ctor.js b/test/built-ins/TypedArray/prototype/filter/speciesctor-get-ctor.js index 6308fe92ff..565da51792 100644 --- a/test/built-ins/TypedArray/prototype/filter/speciesctor-get-ctor.js +++ b/test/built-ins/TypedArray/prototype/filter/speciesctor-get-ctor.js @@ -37,7 +37,9 @@ testWithTypedArrayConstructors(function(TA) { } }); - result = sample.filter(function() { return true; }); + result = sample.filter(function() { + return true; + }); assert.sameValue(calls, 1, "called custom ctor get accessor once"); diff --git a/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-abrupt.js b/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-abrupt.js index 858dd0fa73..8e2256efa9 100644 --- a/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-abrupt.js +++ b/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-abrupt.js @@ -40,6 +40,8 @@ testWithTypedArrayConstructors(function(TA) { }); assert.throws(Test262Error, function() { - sample.filter(function() { return true; }); + sample.filter(function() { + return true; + }); }); }); diff --git a/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor-invocation.js b/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor-invocation.js index ad8313a26a..2cfb9bcb84 100644 --- a/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor-invocation.js +++ b/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor-invocation.js @@ -47,7 +47,9 @@ testWithTypedArrayConstructors(function(TA) { return new TA(count); }; - sample.filter(function(v) { return v === 42; }); + sample.filter(function(v) { + return v === 42; + }); assert.sameValue(result.length, 1, "called with 1 argument"); assert.sameValue(result[0], 2, "[0] is the new captured length"); diff --git a/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor-length-throws.js b/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor-length-throws.js index 35f48124c1..abf9ef13eb 100644 --- a/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor-length-throws.js +++ b/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor-length-throws.js @@ -36,6 +36,8 @@ testWithTypedArrayConstructors(function(TA) { }; assert.throws(TypeError, function() { - sample.filter(function() { return true; }); + sample.filter(function() { + return true; + }); }); }); diff --git a/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor-length.js b/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor-length.js index 35228670dd..fcf4bb6934 100644 --- a/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor-length.js +++ b/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor-length.js @@ -37,10 +37,14 @@ testWithTypedArrayConstructors(function(TA) { }; customCount = 2; - result = sample.filter(function() { return true; }); + result = sample.filter(function() { + return true; + }); assert.sameValue(result.length, customCount, "length == count"); customCount = 5; - result = sample.filter(function() { return true; }); + result = sample.filter(function() { + return true; + }); assert.sameValue(result.length, customCount, "length > count"); }); diff --git a/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor.js b/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor.js index 28e12b1352..00836dd757 100644 --- a/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor.js +++ b/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor.js @@ -48,7 +48,9 @@ testWithTypedArrayConstructors(function(TA) { return other; }; - result = sample.filter(function() { return true; }); + result = sample.filter(function() { + return true; + }); assert.sameValue(calls, 1, "ctor called once"); assert.sameValue(result, other, "return is instance of custom constructor"); diff --git a/test/built-ins/TypedArray/prototype/filter/values-are-not-cached.js b/test/built-ins/TypedArray/prototype/filter/values-are-not-cached.js index 1b24d310e5..22b227163b 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 c9f16b8df1..7ef152f17d 100644 --- a/test/built-ins/TypedArray/prototype/filter/values-are-set.js +++ b/test/built-ins/TypedArray/prototype/filter/values-are-set.js @@ -20,7 +20,9 @@ testWithTypedArrayConstructors(function(TA) { var sample = new TA([41, 1, 42, 7]); var result; - result = sample.filter(function() { return true; }); + result = sample.filter(function() { + return true; + }); assert(compareArray(result, [41, 1, 42, 7]), "values are set #1"); result = sample.filter(function(v) { diff --git a/test/built-ins/TypedArray/prototype/find/get-length-ignores-length-prop.js b/test/built-ins/TypedArray/prototype/find/get-length-ignores-length-prop.js index b62f9170fa..ee2332f31f 100644 --- a/test/built-ins/TypedArray/prototype/find/get-length-ignores-length-prop.js +++ b/test/built-ins/TypedArray/prototype/find/get-length-ignores-length-prop.js @@ -49,7 +49,9 @@ testWithTypedArrayConstructors(function(TA) { }); assert.sameValue( - sample.find(function() { return true; }), + sample.find(function() { + return true; + }), 42 ); }); diff --git a/test/built-ins/TypedArray/prototype/find/predicate-call-changes-value.js b/test/built-ins/TypedArray/prototype/find/predicate-call-changes-value.js index 556fb9851c..129eed8456 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 a2d0302c61..1feb9da2fb 100644 --- a/test/built-ins/TypedArray/prototype/find/return-found-value-predicate-result-is-true.js +++ b/test/built-ins/TypedArray/prototype/find/return-found-value-predicate-result-is-true.js @@ -49,18 +49,28 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(called, 3, "predicate was called three times"); assert.sameValue(result, 62, "returned true on sample[3]"); - result = sample.find(function() { return "string"; }); + result = sample.find(function() { + return "string"; + }); assert.sameValue(result, 39, "ToBoolean(string)"); - result = sample.find(function() { return {}; }); + result = sample.find(function() { + return {}; + }); assert.sameValue(result, 39, "ToBoolean(object)"); - result = sample.find(function() { return Symbol(""); }); + result = sample.find(function() { + return Symbol(""); + }); assert.sameValue(result, 39, "ToBoolean(symbol)"); - result = sample.find(function() { return 1; }); + result = sample.find(function() { + return 1; + }); assert.sameValue(result, 39, "ToBoolean(number)"); - result = sample.find(function() { return -1; }); + result = sample.find(function() { + return -1; + }); assert.sameValue(result, 39, "ToBoolean(negative number)"); }); diff --git a/test/built-ins/TypedArray/prototype/find/return-undefined-if-predicate-returns-false-value.js b/test/built-ins/TypedArray/prototype/find/return-undefined-if-predicate-returns-false-value.js index 0133a69484..2206d72aa6 100644 --- a/test/built-ins/TypedArray/prototype/find/return-undefined-if-predicate-returns-false-value.js +++ b/test/built-ins/TypedArray/prototype/find/return-undefined-if-predicate-returns-false-value.js @@ -41,21 +41,33 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(called, 3, "predicate was called three times"); assert.sameValue(result, undefined); - result = sample.find(function() { return ""; }); + result = sample.find(function() { + return ""; + }); assert.sameValue(result, undefined, "ToBoolean(empty string)"); - result = sample.find(function() { return undefined; }); + result = sample.find(function() { + return undefined; + }); assert.sameValue(result, undefined, "ToBoolean(undefined)"); - result = sample.find(function() { return null; }); + result = sample.find(function() { + return null; + }); assert.sameValue(result, undefined, "ToBoolean(null)"); - result = sample.find(function() { return 0; }); + result = sample.find(function() { + return 0; + }); assert.sameValue(result, undefined, "ToBoolean(0)"); - result = sample.find(function() { return -0; }); + result = sample.find(function() { + return -0; + }); assert.sameValue(result, undefined, "ToBoolean(-0)"); - result = sample.find(function() { return NaN; }); + result = sample.find(function() { + return NaN; + }); assert.sameValue(result, undefined, "ToBoolean(NaN)"); }); diff --git a/test/built-ins/TypedArray/prototype/findIndex/get-length-ignores-length-prop.js b/test/built-ins/TypedArray/prototype/findIndex/get-length-ignores-length-prop.js index 99566c3d56..98d22f449a 100644 --- a/test/built-ins/TypedArray/prototype/findIndex/get-length-ignores-length-prop.js +++ b/test/built-ins/TypedArray/prototype/findIndex/get-length-ignores-length-prop.js @@ -47,7 +47,9 @@ testWithTypedArrayConstructors(function(TA) { }); assert.sameValue( - sample.findIndex(function() { return true; }), + sample.findIndex(function() { + return true; + }), 0 ); }); diff --git a/test/built-ins/TypedArray/prototype/findIndex/predicate-call-changes-value.js b/test/built-ins/TypedArray/prototype/findIndex/predicate-call-changes-value.js index 84efabc264..97652222ce 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 68175c7816..31c43d21f5 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 5b97bf74a1..18fdf425fd 100644 --- a/test/built-ins/TypedArray/prototype/findIndex/predicate-is-not-callable-throws.js +++ b/test/built-ins/TypedArray/prototype/findIndex/predicate-is-not-callable-throws.js @@ -62,4 +62,3 @@ testWithTypedArrayConstructors(function(TA) { sample.findIndex(/./); }, "/./"); }); - diff --git a/test/built-ins/TypedArray/prototype/findIndex/return-index-predicate-result-is-true.js b/test/built-ins/TypedArray/prototype/findIndex/return-index-predicate-result-is-true.js index 9e4880f225..c1e0ce751b 100644 --- a/test/built-ins/TypedArray/prototype/findIndex/return-index-predicate-result-is-true.js +++ b/test/built-ins/TypedArray/prototype/findIndex/return-index-predicate-result-is-true.js @@ -49,18 +49,28 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(called, 3, "predicate was called three times"); assert.sameValue(result, 2, "returned true on sample[3]"); - result = sample.findIndex(function() { return "string"; }); + result = sample.findIndex(function() { + return "string"; + }); assert.sameValue(result, 0, "ToBoolean(string)"); - result = sample.findIndex(function() { return {}; }); + result = sample.findIndex(function() { + return {}; + }); assert.sameValue(result, 0, "ToBoolean(object)"); - result = sample.findIndex(function() { return Symbol(""); }); + result = sample.findIndex(function() { + return Symbol(""); + }); assert.sameValue(result, 0, "ToBoolean(symbol)"); - result = sample.findIndex(function() { return 1; }); + result = sample.findIndex(function() { + return 1; + }); assert.sameValue(result, 0, "ToBoolean(number)"); - result = sample.findIndex(function() { return -1; }); + result = sample.findIndex(function() { + return -1; + }); assert.sameValue(result, 0, "ToBoolean(negative number)"); }); diff --git a/test/built-ins/TypedArray/prototype/findIndex/return-negative-one-if-predicate-returns-false-value.js b/test/built-ins/TypedArray/prototype/findIndex/return-negative-one-if-predicate-returns-false-value.js index f3367fbfaf..69f2047172 100644 --- a/test/built-ins/TypedArray/prototype/findIndex/return-negative-one-if-predicate-returns-false-value.js +++ b/test/built-ins/TypedArray/prototype/findIndex/return-negative-one-if-predicate-returns-false-value.js @@ -39,21 +39,33 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(called, 3, "predicate was called three times"); assert.sameValue(result, -1, "result is -1 when predicate returns are false"); - result = sample.findIndex(function() { return ""; }); + result = sample.findIndex(function() { + return ""; + }); assert.sameValue(result, -1, "ToBoolean(string)"); - result = sample.findIndex(function() { return undefined; }); + result = sample.findIndex(function() { + return undefined; + }); assert.sameValue(result, -1, "ToBoolean(undefined)"); - result = sample.findIndex(function() { return null; }); + result = sample.findIndex(function() { + return null; + }); assert.sameValue(result, -1, "ToBoolean(null)"); - result = sample.findIndex(function() { return 0; }); + result = sample.findIndex(function() { + return 0; + }); assert.sameValue(result, -1, "ToBoolean(0)"); - result = sample.findIndex(function() { return -0; }); + result = sample.findIndex(function() { + return -0; + }); assert.sameValue(result, -1, "ToBoolean(-0)"); - result = sample.findIndex(function() { return NaN; }); + result = sample.findIndex(function() { + return NaN; + }); assert.sameValue(result, -1, "ToBoolean(NaN)"); }); diff --git a/test/built-ins/TypedArray/prototype/forEach/arraylength-internal.js b/test/built-ins/TypedArray/prototype/forEach/arraylength-internal.js index d387ae038d..97b5ec91e1 100644 --- a/test/built-ins/TypedArray/prototype/forEach/arraylength-internal.js +++ b/test/built-ins/TypedArray/prototype/forEach/arraylength-internal.js @@ -19,7 +19,9 @@ testWithTypedArrayConstructors(function(TA) { var sample1 = new TA(42); var loop = 0; - Object.defineProperty(sample1, "length", {value: 1}); + Object.defineProperty(sample1, "length", { + value: 1 + }); sample1.forEach(function() { loop++; @@ -44,4 +46,3 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(loop, 7, "accessor descriptor"); }); - diff --git a/test/built-ins/TypedArray/prototype/forEach/callbackfn-this.js b/test/built-ins/TypedArray/prototype/forEach/callbackfn-this.js index 926a219bcd..e3595b5384 100644 --- a/test/built-ins/TypedArray/prototype/forEach/callbackfn-this.js +++ b/test/built-ins/TypedArray/prototype/forEach/callbackfn-this.js @@ -27,7 +27,9 @@ includes: [testTypedArray.js] features: [TypedArray] ---*/ -var expected = (function() { return this; })(); +var expected = (function() { + return this; +})(); var thisArg = {}; testWithTypedArrayConstructors(function(TA) { diff --git a/test/built-ins/TypedArray/prototype/forEach/values-are-not-cached.js b/test/built-ins/TypedArray/prototype/forEach/values-are-not-cached.js index 10b3113562..125923bb50 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 eb10a80bd0..8f317131ae 100644 --- a/test/built-ins/TypedArray/prototype/includes/get-length-uses-internal-arraylength.js +++ b/test/built-ins/TypedArray/prototype/includes/get-length-uses-internal-arraylength.js @@ -21,13 +21,19 @@ includes: [testTypedArray.js] features: [TypedArray] ---*/ -Object.defineProperty(TypedArray.prototype, "length", {value: 0}); +Object.defineProperty(TypedArray.prototype, "length", { + value: 0 +}); testWithTypedArrayConstructors(function(TA) { var sample = new TA([7]); - Object.defineProperty(TA.prototype, "length", {value: 0}); - Object.defineProperty(sample, "length", {value: 0}); + Object.defineProperty(TA.prototype, "length", { + value: 0 + }); + Object.defineProperty(sample, "length", { + value: 0 + }); assert.sameValue(sample.includes(7), true); }); diff --git a/test/built-ins/TypedArray/prototype/indexOf/get-length-uses-internal-arraylength.js b/test/built-ins/TypedArray/prototype/indexOf/get-length-uses-internal-arraylength.js index 2703a0519b..9fd2992665 100644 --- a/test/built-ins/TypedArray/prototype/indexOf/get-length-uses-internal-arraylength.js +++ b/test/built-ins/TypedArray/prototype/indexOf/get-length-uses-internal-arraylength.js @@ -20,13 +20,19 @@ includes: [testTypedArray.js] features: [TypedArray] ---*/ -Object.defineProperty(TypedArray.prototype, "length", {value: 0}); +Object.defineProperty(TypedArray.prototype, "length", { + value: 0 +}); testWithTypedArrayConstructors(function(TA) { var sample = new TA([7]); - Object.defineProperty(TA.prototype, "length", {value: 0}); - Object.defineProperty(sample, "length", {value: 0}); + Object.defineProperty(TA.prototype, "length", { + value: 0 + }); + Object.defineProperty(sample, "length", { + value: 0 + }); assert.sameValue(sample.indexOf(7), 0); }); diff --git a/test/built-ins/TypedArray/prototype/join/custom-separator-result-from-tostring-on-each-simple-value.js b/test/built-ins/TypedArray/prototype/join/custom-separator-result-from-tostring-on-each-simple-value.js index 694f81db08..edb4b0e8f1 100644 --- a/test/built-ins/TypedArray/prototype/join/custom-separator-result-from-tostring-on-each-simple-value.js +++ b/test/built-ins/TypedArray/prototype/join/custom-separator-result-from-tostring-on-each-simple-value.js @@ -61,10 +61,19 @@ testWithTypedArrayConstructors(function(TA) { result = sample.join(true); assert.sameValue(result, "1true0true2true3true42true127"); - result = sample.join({ toString: function() { return "foo"; }}); + result = sample.join({ + toString: function() { + return "foo"; + } + }); assert.sameValue(result, "1foo0foo2foo3foo42foo127"); - result = sample.join({ toString: undefined, valueOf: function() { return "bar"; }}); + result = sample.join({ + toString: undefined, + valueOf: function() { + return "bar"; + } + }); assert.sameValue(result, "1bar0bar2bar3bar42bar127"); result = sample.join(false); diff --git a/test/built-ins/TypedArray/prototype/join/custom-separator-result-from-tostring-on-each-value.js b/test/built-ins/TypedArray/prototype/join/custom-separator-result-from-tostring-on-each-value.js index 94caedf65a..7cdbdddd22 100644 --- a/test/built-ins/TypedArray/prototype/join/custom-separator-result-from-tostring-on-each-value.js +++ b/test/built-ins/TypedArray/prototype/join/custom-separator-result-from-tostring-on-each-value.js @@ -91,14 +91,23 @@ testWithTypedArrayConstructors(function(TA) { result = sample.join(separator); assert.sameValue(result, expected, "using: " + separator); - separator = { toString: function() { return "foo"; }}; + separator = { + toString: function() { + return "foo"; + } + }; expected = arr.map(function(_, i) { return sample[i].toString(); }).join(separator); result = sample.join(separator); assert.sameValue(result, expected, "using: " + separator); - separator = { toString: undefined, valueOf: function() { return "bar"; }}; + separator = { + toString: undefined, + valueOf: function() { + return "bar"; + } + }; expected = arr.map(function(_, i) { return sample[i].toString(); }).join(separator); diff --git a/test/built-ins/TypedArray/prototype/lastIndexOf/get-length-uses-internal-arraylength.js b/test/built-ins/TypedArray/prototype/lastIndexOf/get-length-uses-internal-arraylength.js index 076d0b8d8f..6b51c26e40 100644 --- a/test/built-ins/TypedArray/prototype/lastIndexOf/get-length-uses-internal-arraylength.js +++ b/test/built-ins/TypedArray/prototype/lastIndexOf/get-length-uses-internal-arraylength.js @@ -20,13 +20,19 @@ includes: [testTypedArray.js] features: [TypedArray] ---*/ -Object.defineProperty(TypedArray.prototype, "length", {value: 0}); +Object.defineProperty(TypedArray.prototype, "length", { + value: 0 +}); testWithTypedArrayConstructors(function(TA) { var sample = new TA([7]); - Object.defineProperty(TA.prototype, "length", {value: 0}); - Object.defineProperty(sample, "length", {value: 0}); + Object.defineProperty(TA.prototype, "length", { + value: 0 + }); + Object.defineProperty(sample, "length", { + value: 0 + }); assert.sameValue(sample.lastIndexOf(7), 0); }); diff --git a/test/built-ins/TypedArray/prototype/map/arraylength-internal.js b/test/built-ins/TypedArray/prototype/map/arraylength-internal.js index 0f9ec08078..7d23a4e1ac 100644 --- a/test/built-ins/TypedArray/prototype/map/arraylength-internal.js +++ b/test/built-ins/TypedArray/prototype/map/arraylength-internal.js @@ -18,7 +18,9 @@ testWithTypedArrayConstructors(function(TA) { var sample1 = new TA(42); var loop = 0; - Object.defineProperty(sample1, "length", {value: 1}); + Object.defineProperty(sample1, "length", { + value: 1 + }); sample1.map(function() { loop++; @@ -40,4 +42,3 @@ testWithTypedArrayConstructors(function(TA) { }); assert.sameValue(loop, 4, "accessor descriptor"); }); - diff --git a/test/built-ins/TypedArray/prototype/map/callbackfn-this.js b/test/built-ins/TypedArray/prototype/map/callbackfn-this.js index 43d3159bc4..525de88e36 100644 --- a/test/built-ins/TypedArray/prototype/map/callbackfn-this.js +++ b/test/built-ins/TypedArray/prototype/map/callbackfn-this.js @@ -18,7 +18,9 @@ includes: [testTypedArray.js] features: [TypedArray] ---*/ -var expected = (function() { return this; })(); +var expected = (function() { + return this; +})(); var thisArg = {}; testWithTypedArrayConstructors(function(TA) { diff --git a/test/built-ins/TypedArray/prototype/map/values-are-not-cached.js b/test/built-ins/TypedArray/prototype/map/values-are-not-cached.js index d2345b13c0..329faaffe0 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 8c56605bca..356e949438 100644 --- a/test/built-ins/TypedArray/prototype/reduce/callbackfn-this.js +++ b/test/built-ins/TypedArray/prototype/reduce/callbackfn-this.js @@ -26,7 +26,9 @@ includes: [testTypedArray.js] features: [TypedArray] ---*/ -var expected = (function() { return this; })(); +var expected = (function() { + return this; +})(); testWithTypedArrayConstructors(function(TA) { var sample = new TA(3); diff --git a/test/built-ins/TypedArray/prototype/reduce/values-are-not-cached.js b/test/built-ins/TypedArray/prototype/reduce/values-are-not-cached.js index e091df1f9d..af963b3799 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 acddf6dd34..56752442a3 100644 --- a/test/built-ins/TypedArray/prototype/reduceRight/callbackfn-this.js +++ b/test/built-ins/TypedArray/prototype/reduceRight/callbackfn-this.js @@ -27,7 +27,9 @@ includes: [testTypedArray.js] features: [TypedArray] ---*/ -var expected = (function() { return this; })(); +var expected = (function() { + return this; +})(); testWithTypedArrayConstructors(function(TA) { var sample = new TA(3); diff --git a/test/built-ins/TypedArray/prototype/reduceRight/values-are-not-cached.js b/test/built-ins/TypedArray/prototype/reduceRight/values-are-not-cached.js index fb93d3e208..b4e720ca77 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 a5ab527732..529006e219 100644 --- a/test/built-ins/TypedArray/prototype/set/array-arg-offset-tointeger.js +++ b/test/built-ins/TypedArray/prototype/set/array-arg-offset-tointeger.js @@ -86,10 +86,18 @@ testWithTypedArrayConstructors(function(TA) { assert(compareArray(sample, [1, 42]), "[1]"); sample = new TA([1, 2]); - sample.set([42], { valueOf: function() {return 1;} }); + sample.set([42], { + valueOf: function() { + return 1; + } + }); assert(compareArray(sample, [1, 42]), "valueOf"); sample = new TA([1, 2]); - sample.set([42], { toString: function() {return 1;} }); + sample.set([42], { + toString: function() { + return 1; + } + }); assert(compareArray(sample, [1, 42]), "toString"); }); diff --git a/test/built-ins/TypedArray/prototype/set/array-arg-src-tonumber-value-conversions.js b/test/built-ins/TypedArray/prototype/set/array-arg-src-tonumber-value-conversions.js index d5e346f11d..5cd1fe72ea 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 0256df84e2..c7e54c720e 100644 --- a/test/built-ins/TypedArray/prototype/set/array-arg-src-tonumber-value-type-conversions.js +++ b/test/built-ins/TypedArray/prototype/set/array-arg-src-tonumber-value-type-conversions.js @@ -35,7 +35,9 @@ var obj2 = { }; // undefined and NaN covered on typedArrayConversions -var arr = ["1", "", false, true, null, obj1, obj2, [], [1]]; +var arr = ["1", "", false, true, null, obj1, obj2, [], + [1] +]; testWithTypedArrayConstructors(function(TA) { var sample = new TA(arr.length); diff --git a/test/built-ins/TypedArray/prototype/set/typedarray-arg-offset-tointeger.js b/test/built-ins/TypedArray/prototype/set/typedarray-arg-offset-tointeger.js index 7f63cb9960..a32337c729 100644 --- a/test/built-ins/TypedArray/prototype/set/typedarray-arg-offset-tointeger.js +++ b/test/built-ins/TypedArray/prototype/set/typedarray-arg-offset-tointeger.js @@ -84,10 +84,18 @@ testWithTypedArrayConstructors(function(TA) { assert(compareArray(sample, [1, 42]), "[1]"); sample = new TA([1, 2]); - sample.set(src, { valueOf: function() {return 1;} }); + sample.set(src, { + valueOf: function() { + return 1; + } + }); assert(compareArray(sample, [1, 42]), "valueOf"); sample = new TA([1, 2]); - sample.set(src, { toString: function() {return 1;} }); + sample.set(src, { + toString: function() { + return 1; + } + }); assert(compareArray(sample, [1, 42]), "toString"); }); diff --git a/test/built-ins/TypedArray/prototype/slice/speciesctor-get-species-custom-ctor-length-throws.js b/test/built-ins/TypedArray/prototype/slice/speciesctor-get-species-custom-ctor-length-throws.js index 8d572f230a..7ff46d746d 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 537b423a22..a4d33b2a9c 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 2a9be94068..13d68874d4 100644 --- a/test/built-ins/TypedArray/prototype/slice/tointeger-end.js +++ b/test/built-ins/TypedArray/prototype/slice/tointeger-end.js @@ -40,8 +40,7 @@ testWithTypedArrayConstructors(function(TA) { assert(compareArray(sample.slice(0, "3"), [40, 41, 42]), "string"); assert( compareArray( - sample.slice(0, obj), - [40, 41] + sample.slice(0, obj), [40, 41] ), "object" ); diff --git a/test/built-ins/TypedArray/prototype/slice/tointeger-start.js b/test/built-ins/TypedArray/prototype/slice/tointeger-start.js index f67ee090c0..2f6c2d7cb1 100644 --- a/test/built-ins/TypedArray/prototype/slice/tointeger-start.js +++ b/test/built-ins/TypedArray/prototype/slice/tointeger-start.js @@ -40,8 +40,7 @@ testWithTypedArrayConstructors(function(TA) { assert(compareArray(sample.slice("3"), [43]), "string"); assert( compareArray( - sample.slice(obj), - [42, 43] + sample.slice(obj), [42, 43] ), "object" ); diff --git a/test/built-ins/TypedArray/prototype/some/callbackfn-this.js b/test/built-ins/TypedArray/prototype/some/callbackfn-this.js index d15699b80a..92cc10ad4a 100644 --- a/test/built-ins/TypedArray/prototype/some/callbackfn-this.js +++ b/test/built-ins/TypedArray/prototype/some/callbackfn-this.js @@ -27,7 +27,9 @@ includes: [testTypedArray.js] features: [TypedArray] ---*/ -var expected = (function() { return this; })(); +var expected = (function() { + return this; +})(); var thisArg = {}; testWithTypedArrayConstructors(function(TA) { diff --git a/test/built-ins/TypedArray/prototype/some/returns-false-if-every-cb-returns-false.js b/test/built-ins/TypedArray/prototype/some/returns-false-if-every-cb-returns-false.js index 00741adbed..bf61d170e3 100644 --- a/test/built-ins/TypedArray/prototype/some/returns-false-if-every-cb-returns-false.js +++ b/test/built-ins/TypedArray/prototype/some/returns-false-if-every-cb-returns-false.js @@ -26,8 +26,7 @@ testWithTypedArrayConstructors(function(TA) { [ false, "", - 0, - -0, + 0, -0, NaN, undefined, null diff --git a/test/built-ins/TypedArray/prototype/some/returns-true-if-any-cb-returns-true.js b/test/built-ins/TypedArray/prototype/some/returns-true-if-any-cb-returns-true.js index c11fdae903..113f53f832 100644 --- a/test/built-ins/TypedArray/prototype/some/returns-true-if-any-cb-returns-true.js +++ b/test/built-ins/TypedArray/prototype/some/returns-true-if-any-cb-returns-true.js @@ -36,12 +36,9 @@ testWithTypedArrayConstructors(function(TA) { "test262", s, {}, - [], - -1, - Infinity, - -Infinity, - 0.1, - -0.1 + [], -1, + Infinity, -Infinity, + 0.1, -0.1 ].forEach(function(val) { var called = 0; var result = sample.some(function() { diff --git a/test/built-ins/TypedArray/prototype/some/this-is-not-typedarray-instance.js b/test/built-ins/TypedArray/prototype/some/this-is-not-typedarray-instance.js index acfbe6dbbf..c31d93fc5d 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 c8a3c2cdea..2c2afb573a 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 f958850802..23a4312d7a 100644 --- a/test/built-ins/TypedArray/prototype/sort/return-same-instance.js +++ b/test/built-ins/TypedArray/prototype/sort/return-same-instance.js @@ -20,6 +20,8 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(sample, result, "without comparefn"); - result = sample.sort(function() { return 0; }); + result = sample.sort(function() { + return 0; + }); assert.sameValue(sample, result, "with comparefn"); }); diff --git a/test/built-ins/TypedArray/prototype/subarray/return-abrupt-from-begin-symbol.js b/test/built-ins/TypedArray/prototype/subarray/return-abrupt-from-begin-symbol.js index 6da5dd1ba2..8b9f5a50ea 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 6e1ac2f643..a3343cd468 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 eaa4e9dddb..4ef1daf2ae 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 abf503cb8f..3d38c20806 100644 --- a/test/built-ins/TypedArray/prototype/subarray/tointeger-begin.js +++ b/test/built-ins/TypedArray/prototype/subarray/tointeger-begin.js @@ -40,8 +40,7 @@ testWithTypedArrayConstructors(function(TA) { assert(compareArray(sample.subarray("3"), [43]), "string"); assert( compareArray( - sample.subarray(obj), - [42, 43] + sample.subarray(obj), [42, 43] ), "object" ); diff --git a/test/built-ins/TypedArray/prototype/subarray/tointeger-end.js b/test/built-ins/TypedArray/prototype/subarray/tointeger-end.js index 4797bf5b22..b59ee07d32 100644 --- a/test/built-ins/TypedArray/prototype/subarray/tointeger-end.js +++ b/test/built-ins/TypedArray/prototype/subarray/tointeger-end.js @@ -40,8 +40,7 @@ testWithTypedArrayConstructors(function(TA) { assert(compareArray(sample.subarray(0, "3"), [40, 41, 42]), "string"); assert( compareArray( - sample.subarray(0, obj), - [40, 41] + sample.subarray(0, obj), [40, 41] ), "object" ); diff --git a/test/built-ins/TypedArrays/BigInt64Array/prototype/not-typedarray-object.js b/test/built-ins/TypedArrays/BigInt64Array/prototype/not-typedarray-object.js index 0e3269c48f..334f9a3630 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 b16c2d2054..edb4ffc9ec 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 aabe797e72..b1d0326907 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 4ff4f19f58..b686975560 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 b8936e8cdf..73331d1257 100644 --- a/test/built-ins/TypedArrays/buffer-arg-byteoffset-to-number-detachbuffer.js +++ b/test/built-ins/TypedArrays/buffer-arg-byteoffset-to-number-detachbuffer.js @@ -16,6 +16,11 @@ features: [TypedArray] testWithTypedArrayConstructors(function(TA) { var offset = TA.BYTES_PER_ELEMENT; var buffer = new ArrayBuffer(3 * offset); - var byteOffset = { valueOf() { $DETACHBUFFER(buffer); return offset; } }; + var byteOffset = { + valueOf() { + $DETACHBUFFER(buffer); + return offset; + } + }; assert.throws(TypeError, () => new TA(buffer, byteOffset)); }); diff --git a/test/built-ins/TypedArrays/buffer-arg-length-to-number-detachbuffer.js b/test/built-ins/TypedArrays/buffer-arg-length-to-number-detachbuffer.js index c8c3eb34ba..570ef171fb 100644 --- a/test/built-ins/TypedArrays/buffer-arg-length-to-number-detachbuffer.js +++ b/test/built-ins/TypedArrays/buffer-arg-length-to-number-detachbuffer.js @@ -16,6 +16,11 @@ features: [TypedArray] testWithTypedArrayConstructors(function(TA) { var offset = TA.BYTES_PER_ELEMENT; var buffer = new ArrayBuffer(3 * offset); - var length = { valueOf() { $DETACHBUFFER(buffer); return 1; } }; + var length = { + valueOf() { + $DETACHBUFFER(buffer); + return 1; + } + }; assert.throws(TypeError, () => new TA(buffer, 0, length)); }); diff --git a/test/built-ins/TypedArrays/buffer-arg-typedarray-backed-by-sharedarraybuffer.js b/test/built-ins/TypedArrays/buffer-arg-typedarray-backed-by-sharedarraybuffer.js index 739d1cdd21..f01ec911b6 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 269bc2de0d..20c363748f 100644 --- a/test/built-ins/TypedArrays/from/arylk-to-length-error.js +++ b/test/built-ins/TypedArrays/from/arylk-to-length-error.js @@ -13,7 +13,9 @@ includes: [testTypedArray.js] features: [TypedArray] ---*/ -var arrayLike = { length: {} }; +var arrayLike = { + length: {} +}; arrayLike.length = { valueOf: function() { diff --git a/test/built-ins/TypedArrays/from/nan-conversion.js b/test/built-ins/TypedArrays/from/nan-conversion.js index df90a868ae..ec2cfb112b 100644 --- a/test/built-ins/TypedArrays/from/nan-conversion.js +++ b/test/built-ins/TypedArrays/from/nan-conversion.js @@ -24,8 +24,7 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(result[1], NaN); assert.sameValue(result.constructor, TA); assert.sameValue(Object.getPrototypeOf(result), TA.prototype); -}, -[ +}, [ Float32Array, Float64Array ]); @@ -37,8 +36,7 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(result[1], 0); assert.sameValue(result.constructor, TA); assert.sameValue(Object.getPrototypeOf(result), TA.prototype); -}, -[ +}, [ Int8Array, Int32Array, Int16Array, @@ -47,4 +45,4 @@ testWithTypedArrayConstructors(function(TA) { Uint16Array, Uint8Array, Uint8ClampedArray -]); \ No newline at end of file +]); diff --git a/test/built-ins/TypedArrays/from/new-instance-from-ordinary-object.js b/test/built-ins/TypedArrays/from/new-instance-from-ordinary-object.js index b29d4de6ff..100d0049d3 100644 --- a/test/built-ins/TypedArrays/from/new-instance-from-ordinary-object.js +++ b/test/built-ins/TypedArrays/from/new-instance-from-ordinary-object.js @@ -24,8 +24,7 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(result[3], NaN); assert.sameValue(result.constructor, TA); assert.sameValue(Object.getPrototypeOf(result), TA.prototype); -}, -[ +}, [ Float32Array, Float64Array ]); @@ -40,8 +39,7 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(result[3], 0); assert.sameValue(result.constructor, TA); assert.sameValue(Object.getPrototypeOf(result), TA.prototype); -}, -[ +}, [ Int8Array, Int32Array, Int16Array, diff --git a/test/built-ins/TypedArrays/from/new-instance-from-sparse-array.js b/test/built-ins/TypedArrays/from/new-instance-from-sparse-array.js index 2eef7a2a84..8b8bc9d27e 100644 --- a/test/built-ins/TypedArrays/from/new-instance-from-sparse-array.js +++ b/test/built-ins/TypedArrays/from/new-instance-from-sparse-array.js @@ -8,7 +8,7 @@ includes: [testTypedArray.js] features: [Array.prototype.values, TypedArray] ---*/ -var source = [,,42,,44,,]; +var source = [, , 42, , 44, , ]; testWithTypedArrayConstructors(function(TA) { var result = TA.from(source); @@ -22,8 +22,7 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(result[5], NaN); assert.sameValue(result.constructor, TA); assert.sameValue(Object.getPrototypeOf(result), TA.prototype); -}, -[ +}, [ Float32Array, Float64Array ]); @@ -40,8 +39,7 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(result[5], 0); assert.sameValue(result.constructor, TA); assert.sameValue(Object.getPrototypeOf(result), TA.prototype); -}, -[ +}, [ Int8Array, Int32Array, Int16Array, diff --git a/test/built-ins/TypedArrays/from/new-instance-from-zero.js b/test/built-ins/TypedArrays/from/new-instance-from-zero.js index ef06c4b93b..a8bb4a8507 100644 --- a/test/built-ins/TypedArrays/from/new-instance-from-zero.js +++ b/test/built-ins/TypedArrays/from/new-instance-from-zero.js @@ -15,8 +15,7 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(result[1], 0, "+0 => 0"); assert.sameValue(result.constructor, TA); assert.sameValue(Object.getPrototypeOf(result), TA.prototype); -}, -[ +}, [ Float32Array, Float64Array ]); @@ -28,8 +27,7 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(result[1], 0, "+0 => 0"); assert.sameValue(result.constructor, TA); assert.sameValue(Object.getPrototypeOf(result), TA.prototype); -}, -[ +}, [ Int16Array, Int32Array, Int8Array, @@ -37,4 +35,4 @@ testWithTypedArrayConstructors(function(TA) { Uint32Array, Uint8Array, Uint8ClampedArray -]); \ No newline at end of file +]); diff --git a/test/built-ins/TypedArrays/from/this-is-not-constructor.js b/test/built-ins/TypedArrays/from/this-is-not-constructor.js index 1dab902355..83ecbaa3be 100644 --- a/test/built-ins/TypedArrays/from/this-is-not-constructor.js +++ b/test/built-ins/TypedArrays/from/this-is-not-constructor.js @@ -14,7 +14,9 @@ includes: [testTypedArray.js] features: [TypedArray] ---*/ -var m = { m() {} }.m; +var m = { + m() {} +}.m; testWithTypedArrayConstructors(function(TA) { assert.throws(TypeError, function() { diff --git a/test/built-ins/TypedArrays/internals/DefineOwnProperty/conversion-operation-consistent-nan.js b/test/built-ins/TypedArrays/internals/DefineOwnProperty/conversion-operation-consistent-nan.js index 19323c66dd..39a11f109f 100644 --- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/conversion-operation-consistent-nan.js +++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/conversion-operation-consistent-nan.js @@ -55,7 +55,9 @@ function body(FloatArray) { someNaN = distinctNaNs[idx]; control = new FloatArray([someNaN]); - Object.defineProperty(sample, '0', { value: someNaN }); + Object.defineProperty(sample, '0', { + value: someNaN + }); sampleBytes = new Uint8Array(sample.buffer); controlBytes = new Uint8Array(control.buffer); diff --git a/test/built-ins/TypedArrays/internals/DefineOwnProperty/conversion-operation.js b/test/built-ins/TypedArrays/internals/DefineOwnProperty/conversion-operation.js index f78228c5b0..26cb90caa9 100644 --- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/conversion-operation.js +++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/conversion-operation.js @@ -47,7 +47,9 @@ includes: [byteConversionValues.js, testTypedArray.js] testTypedArrayConversions(byteConversionValues, function(TA, value, expected, initial) { var sample = new TA([initial]); - Object.defineProperty(sample, "0", {value: value}); + Object.defineProperty(sample, "0", { + value: value + }); assert.sameValue(sample[0], expected, value + " converts to " + expected); }); diff --git a/test/built-ins/TypedArrays/internals/DefineOwnProperty/desc-value-throws.js b/test/built-ins/TypedArrays/internals/DefineOwnProperty/desc-value-throws.js index 6572c1f946..c6c8dd1569 100644 --- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/desc-value-throws.js +++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/desc-value-throws.js @@ -35,6 +35,8 @@ testWithTypedArrayConstructors(function(TA) { var sample = new TA([42]); assert.throws(Test262Error, function() { - Object.defineProperty(sample, "0", {value: obj}); + Object.defineProperty(sample, "0", { + value: obj + }); }); }); diff --git a/test/built-ins/TypedArrays/internals/DefineOwnProperty/detached-buffer.js b/test/built-ins/TypedArrays/internals/DefineOwnProperty/detached-buffer.js index a1039636f7..e413ab78d5 100644 --- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/detached-buffer.js +++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/detached-buffer.js @@ -129,6 +129,8 @@ testWithTypedArrayConstructors(function(TA) { ); assert.throws(Test262Error, function() { - Reflect.defineProperty(sample, "7", {value: obj}); + Reflect.defineProperty(sample, "7", { + value: obj + }); }, "Return Abrupt before Detached Buffer check from ToNumber(desc.value)"); }); diff --git a/test/built-ins/TypedArrays/internals/DefineOwnProperty/key-is-not-canonical-index.js b/test/built-ins/TypedArrays/internals/DefineOwnProperty/key-is-not-canonical-index.js index 193d916656..b51c1b6021 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 845a9afbe2..4d498e45ff 100644 --- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/key-is-not-numeric-index.js +++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/key-is-not-numeric-index.js @@ -21,7 +21,9 @@ testWithTypedArrayConstructors(function(TA) { var sample = new TA([42, 43]); assert.sameValue( - Reflect.defineProperty(sample, "foo", {value:42}), + Reflect.defineProperty(sample, "foo", { + value: 42 + }), true, "return true after defining property" ); diff --git a/test/built-ins/TypedArrays/internals/DefineOwnProperty/non-extensible-new-key.js b/test/built-ins/TypedArrays/internals/DefineOwnProperty/non-extensible-new-key.js index e74c95f12f..20bfb67ca7 100644 --- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/non-extensible-new-key.js +++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/non-extensible-new-key.js @@ -22,7 +22,9 @@ testWithTypedArrayConstructors(function(TA) { Object.preventExtensions(sample); assert.sameValue( - Reflect.defineProperty(sample, "foo", {value:42}), + Reflect.defineProperty(sample, "foo", { + value: 42 + }), false, "return false on a non-extensible object - data descriptor" ); diff --git a/test/built-ins/TypedArrays/internals/DefineOwnProperty/non-extensible-redefine-key.js b/test/built-ins/TypedArrays/internals/DefineOwnProperty/non-extensible-redefine-key.js index a0baaf57e5..5b3005e863 100644 --- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/non-extensible-redefine-key.js +++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/non-extensible-redefine-key.js @@ -25,7 +25,9 @@ testWithTypedArrayConstructors(function(TA) { Object.preventExtensions(sample); assert.sameValue( - Reflect.defineProperty(sample, "foo", {value:42}), + Reflect.defineProperty(sample, "foo", { + value: 42 + }), true, "data descriptor" ); diff --git a/test/built-ins/TypedArrays/internals/DefineOwnProperty/set-value.js b/test/built-ins/TypedArrays/internals/DefineOwnProperty/set-value.js index ff71bee907..8768f035a9 100644 --- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/set-value.js +++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/set-value.js @@ -29,13 +29,17 @@ testWithTypedArrayConstructors(function(TA) { var sample = new TA([0, 0]); assert.sameValue( - Reflect.defineProperty(sample, "0", {value: 1}), + Reflect.defineProperty(sample, "0", { + value: 1 + }), true, "set value for sample[0] returns true" ); assert.sameValue( - Reflect.defineProperty(sample, "1", {value: 2}), + Reflect.defineProperty(sample, "1", { + value: 2 + }), true, "set value for sample[1] returns true" ); diff --git a/test/built-ins/TypedArrays/internals/DefineOwnProperty/this-is-not-extensible.js b/test/built-ins/TypedArrays/internals/DefineOwnProperty/this-is-not-extensible.js index 5e586c7759..63ff80219a 100644 --- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/this-is-not-extensible.js +++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/this-is-not-extensible.js @@ -22,10 +22,14 @@ testWithTypedArrayConstructors(function(TA) { Object.preventExtensions(sample); - assert.sameValue(Reflect.defineProperty(sample, "foo", {value:42}), false); + assert.sameValue(Reflect.defineProperty(sample, "foo", { + value: 42 + }), false); assert.sameValue(Reflect.getOwnPropertyDescriptor(sample, "foo"), undefined); var s = Symbol("1"); - assert.sameValue(Reflect.defineProperty(sample, s, {value:42}), false); + assert.sameValue(Reflect.defineProperty(sample, s, { + value: 42 + }), false); assert.sameValue(Reflect.getOwnPropertyDescriptor(sample, s), undefined); }); diff --git a/test/built-ins/TypedArrays/internals/DefineOwnProperty/tonumber-value-detached-buffer.js b/test/built-ins/TypedArrays/internals/DefineOwnProperty/tonumber-value-detached-buffer.js index d1975ee639..af6468946a 100644 --- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/tonumber-value-detached-buffer.js +++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/tonumber-value-detached-buffer.js @@ -32,24 +32,22 @@ features: [Reflect, TypedArray] testWithTypedArrayConstructors(function(TA) { var ta = new TA([17]); - var desc = - { - value: { - valueOf: function() { - $262.detachArrayBuffer(ta.buffer); - return 42; - } + var desc = { + value: { + valueOf: function() { + $262.detachArrayBuffer(ta.buffer); + return 42; } - }; + } + }; assert.throws(TypeError, function() { - Reflect.defineProperty(ta, 0, desc); - }, - "detaching a ArrayBuffer during defining an element of a typed array " + - "viewing it should throw"); + Reflect.defineProperty(ta, 0, desc); + }, + "detaching a ArrayBuffer during defining an element of a typed array " + + "viewing it should throw"); assert.throws(TypeError, function() { ta[0]; }); }); - diff --git a/test/built-ins/TypedArrays/internals/Get/key-is-not-canonical-index.js b/test/built-ins/TypedArrays/internals/Get/key-is-not-canonical-index.js index 21293026c0..24d118ed63 100644 --- a/test/built-ins/TypedArrays/internals/Get/key-is-not-canonical-index.js +++ b/test/built-ins/TypedArrays/internals/Get/key-is-not-canonical-index.js @@ -48,7 +48,9 @@ testWithTypedArrayConstructors(function(TA) { ); Object.defineProperty(sample, key, { - get: function() { return "baz"; } + get: function() { + return "baz"; + } }); assert.sameValue( diff --git a/test/built-ins/TypedArrays/internals/Get/key-is-not-numeric-index.js b/test/built-ins/TypedArrays/internals/Get/key-is-not-numeric-index.js index 53824ad34a..271716483b 100644 --- a/test/built-ins/TypedArrays/internals/Get/key-is-not-numeric-index.js +++ b/test/built-ins/TypedArrays/internals/Get/key-is-not-numeric-index.js @@ -31,7 +31,9 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(sample.foo, "bar", "return value"); Object.defineProperty(sample, "bar", { - get: function() { return "baz"; } + get: function() { + return "baz"; + } }); assert.sameValue(sample.bar, "baz", "return value from get accessor"); diff --git a/test/built-ins/TypedArrays/internals/Get/key-is-symbol.js b/test/built-ins/TypedArrays/internals/Get/key-is-symbol.js index 1d05d06bc0..0a585a99a4 100644 --- a/test/built-ins/TypedArrays/internals/Get/key-is-symbol.js +++ b/test/built-ins/TypedArrays/internals/Get/key-is-symbol.js @@ -32,7 +32,9 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(sample[s1], "foo", "return value"); Object.defineProperty(sample, s1, { - get: function() { return "bar"; } + get: function() { + return "bar"; + } }); assert.sameValue(sample[s1], "bar", "return value from get accessor"); diff --git a/test/built-ins/TypedArrays/internals/GetOwnProperty/detached-buffer-key-is-not-number.js b/test/built-ins/TypedArrays/internals/GetOwnProperty/detached-buffer-key-is-not-number.js index 81b274361f..3683a6f557 100644 --- a/test/built-ins/TypedArrays/internals/GetOwnProperty/detached-buffer-key-is-not-number.js +++ b/test/built-ins/TypedArrays/internals/GetOwnProperty/detached-buffer-key-is-not-number.js @@ -29,7 +29,9 @@ testWithTypedArrayConstructors(function(TA) { // Tests for the property descriptor are defined on the tests for // [[DefineOwnProperty]] calls - Object.defineProperty(sample, "foo", { value: "bar" }); + Object.defineProperty(sample, "foo", { + value: "bar" + }); assert.sameValue( Object.getOwnPropertyDescriptor(sample, "foo").value, "bar", diff --git a/test/built-ins/TypedArrays/internals/GetOwnProperty/detached-buffer-key-is-symbol.js b/test/built-ins/TypedArrays/internals/GetOwnProperty/detached-buffer-key-is-symbol.js index 308a2973f1..5605b8d5b1 100644 --- a/test/built-ins/TypedArrays/internals/GetOwnProperty/detached-buffer-key-is-symbol.js +++ b/test/built-ins/TypedArrays/internals/GetOwnProperty/detached-buffer-key-is-symbol.js @@ -22,7 +22,9 @@ testWithTypedArrayConstructors(function(TA) { $DETACHBUFFER(sample.buffer); var s = Symbol("foo"); - Object.defineProperty(sample, s, { value: "baz" }); + Object.defineProperty(sample, s, { + value: "baz" + }); assert.sameValue( Object.getOwnPropertyDescriptor(sample, s).value, "baz", diff --git a/test/built-ins/TypedArrays/internals/GetOwnProperty/key-is-not-canonical-index.js b/test/built-ins/TypedArrays/internals/GetOwnProperty/key-is-not-canonical-index.js index 35b6fa01c5..8344b203f7 100644 --- a/test/built-ins/TypedArrays/internals/GetOwnProperty/key-is-not-canonical-index.js +++ b/test/built-ins/TypedArrays/internals/GetOwnProperty/key-is-not-canonical-index.js @@ -38,7 +38,9 @@ testWithTypedArrayConstructors(function(TA) { // Tests for the property descriptor are defined on the tests for // [[DefineOwnProperty]] calls - Object.defineProperty(sample, key, {value: "bar"}); + Object.defineProperty(sample, key, { + value: "bar" + }); assert.sameValue( Object.getOwnPropertyDescriptor(sample, key).value, "bar", diff --git a/test/built-ins/TypedArrays/internals/GetOwnProperty/key-is-not-numeric-index.js b/test/built-ins/TypedArrays/internals/GetOwnProperty/key-is-not-numeric-index.js index 57fd606ae5..1d008d21f7 100644 --- a/test/built-ins/TypedArrays/internals/GetOwnProperty/key-is-not-numeric-index.js +++ b/test/built-ins/TypedArrays/internals/GetOwnProperty/key-is-not-numeric-index.js @@ -29,7 +29,9 @@ testWithTypedArrayConstructors(function(TA) { // Tests for the property descriptor are defined on the tests for // [[DefineOwnProperty]] calls - Object.defineProperty(sample, "foo", { value: "bar" }); + Object.defineProperty(sample, "foo", { + value: "bar" + }); assert.sameValue( Object.getOwnPropertyDescriptor(sample, "foo").value, "bar", diff --git a/test/built-ins/TypedArrays/internals/GetOwnProperty/key-is-symbol.js b/test/built-ins/TypedArrays/internals/GetOwnProperty/key-is-symbol.js index 6b440e1194..d0e3b1f0d2 100644 --- a/test/built-ins/TypedArrays/internals/GetOwnProperty/key-is-symbol.js +++ b/test/built-ins/TypedArrays/internals/GetOwnProperty/key-is-symbol.js @@ -22,7 +22,9 @@ testWithTypedArrayConstructors(function(TA) { var sample = new TA([42, 43]); var s = Symbol("foo"); - Object.defineProperty(sample, s, { value: "baz" }); + Object.defineProperty(sample, s, { + value: "baz" + }); assert.sameValue( Object.getOwnPropertyDescriptor(sample, s).value, "baz", diff --git a/test/built-ins/TypedArrays/internals/HasProperty/abrupt-from-ordinary-has-parent-hasproperty.js b/test/built-ins/TypedArrays/internals/HasProperty/abrupt-from-ordinary-has-parent-hasproperty.js index 1c235fa815..3eddf77c7e 100644 --- a/test/built-ins/TypedArrays/internals/HasProperty/abrupt-from-ordinary-has-parent-hasproperty.js +++ b/test/built-ins/TypedArrays/internals/HasProperty/abrupt-from-ordinary-has-parent-hasproperty.js @@ -53,7 +53,9 @@ testWithTypedArrayConstructors(function(TA) { Reflect.has(sample, "foo"); }, "Return abrupt from parent's [[HasProperty]] 'foo'"); - Object.defineProperty(sample, "foo", { value: 42 }); + Object.defineProperty(sample, "foo", { + value: 42 + }); assert.sameValue( Reflect.has(sample, "foo"), diff --git a/test/built-ins/TypedArrays/internals/HasProperty/detached-buffer-key-is-not-number.js b/test/built-ins/TypedArrays/internals/HasProperty/detached-buffer-key-is-not-number.js index 011e80c0b6..d7662252de 100644 --- a/test/built-ins/TypedArrays/internals/HasProperty/detached-buffer-key-is-not-number.js +++ b/test/built-ins/TypedArrays/internals/HasProperty/detached-buffer-key-is-not-number.js @@ -20,7 +20,9 @@ features: [Reflect, TypedArray] testWithTypedArrayConstructors(function(TA) { var sample = new TA([42, 43]); - Object.defineProperty(sample, "bar", { value: 42 }); + Object.defineProperty(sample, "bar", { + value: 42 + }); $DETACHBUFFER(sample.buffer); diff --git a/test/built-ins/TypedArrays/internals/HasProperty/detached-buffer-key-is-symbol.js b/test/built-ins/TypedArrays/internals/HasProperty/detached-buffer-key-is-symbol.js index 2c34c3caa0..10f0c84d9a 100644 --- a/test/built-ins/TypedArrays/internals/HasProperty/detached-buffer-key-is-symbol.js +++ b/test/built-ins/TypedArrays/internals/HasProperty/detached-buffer-key-is-symbol.js @@ -22,7 +22,9 @@ var s2 = Symbol("bar"); testWithTypedArrayConstructors(function(TA) { var sample = new TA([42, 43]); - Object.defineProperty(sample, s1, { value: "baz" }); + Object.defineProperty(sample, s1, { + value: "baz" + }); $DETACHBUFFER(sample.buffer); diff --git a/test/built-ins/TypedArrays/internals/HasProperty/infinity-with-detached-buffer.js b/test/built-ins/TypedArrays/internals/HasProperty/infinity-with-detached-buffer.js index 7a79bec7b9..9e79d90cc5 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 7e20c5b24f..673aec6d87 100644 --- a/test/built-ins/TypedArrays/internals/HasProperty/key-is-not-canonical-index.js +++ b/test/built-ins/TypedArrays/internals/HasProperty/key-is-not-canonical-index.js @@ -43,7 +43,9 @@ testWithTypedArrayConstructors(function(TA) { delete TypedArray.prototype[key]; - Object.defineProperty(sample, key, {value: 42}); + Object.defineProperty(sample, key, { + value: 42 + }); assert.sameValue( Reflect.has(sample, key), true, diff --git a/test/built-ins/TypedArrays/internals/HasProperty/key-is-not-numeric-index.js b/test/built-ins/TypedArrays/internals/HasProperty/key-is-not-numeric-index.js index 53cfc57681..e6e187a56f 100644 --- a/test/built-ins/TypedArrays/internals/HasProperty/key-is-not-numeric-index.js +++ b/test/built-ins/TypedArrays/internals/HasProperty/key-is-not-numeric-index.js @@ -23,7 +23,9 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(Reflect.has(sample, "foo"), false); - Object.defineProperty(sample, "foo", { value: 42 }); + Object.defineProperty(sample, "foo", { + value: 42 + }); assert.sameValue(Reflect.has(sample, "foo"), true); }); diff --git a/test/built-ins/TypedArrays/internals/HasProperty/key-is-symbol.js b/test/built-ins/TypedArrays/internals/HasProperty/key-is-symbol.js index f3b6e6758b..f6d1a1bfba 100644 --- a/test/built-ins/TypedArrays/internals/HasProperty/key-is-symbol.js +++ b/test/built-ins/TypedArrays/internals/HasProperty/key-is-symbol.js @@ -22,7 +22,9 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(Reflect.has(sample, s), false); - Object.defineProperty(sample, s, { value: 42 }); + Object.defineProperty(sample, s, { + value: 42 + }); assert.sameValue(Reflect.has(sample, s), true); }); diff --git a/test/built-ins/TypedArrays/internals/Set/tonumber-value-detached-buffer.js b/test/built-ins/TypedArrays/internals/Set/tonumber-value-detached-buffer.js index 86a4b867b8..45e9c76afb 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 f9af0defe7..ecc1b08e80 100644 --- a/test/built-ins/TypedArrays/object-arg-as-generator-iterable-returns.js +++ b/test/built-ins/TypedArrays/object-arg-as-generator-iterable-returns.js @@ -17,8 +17,9 @@ features: [TypedArray] ---*/ testWithTypedArrayConstructors(function(TA) { - var obj = (function *() { - yield 7; yield 42; + var obj = (function*() { + yield 7; + yield 42; })(); var typedArray = new TA(obj); diff --git a/test/built-ins/TypedArrays/object-arg-iterating-throws.js b/test/built-ins/TypedArrays/object-arg-iterating-throws.js index 41fc555098..764447eabd 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 ad6db0877a..e9b5482301 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 571ad77ad8..63122f682b 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 bda57f8cd4..019cbb79c6 100644 --- a/test/built-ins/TypedArrays/of/argument-number-value-throws.js +++ b/test/built-ins/TypedArrays/of/argument-number-value-throws.js @@ -40,4 +40,3 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(lastValue, "obj2"); }); - diff --git a/test/built-ins/TypedArrays/of/inherited.js b/test/built-ins/TypedArrays/of/inherited.js index 4f040e4e97..6a7ee304b3 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 382bf1cd9d..e16dfe286d 100644 --- a/test/built-ins/TypedArrays/of/invoked-as-func.js +++ b/test/built-ins/TypedArrays/of/invoked-as-func.js @@ -19,7 +19,6 @@ features: [TypedArray] testWithTypedArrayConstructors(function(TA) { var of = TA.of; - assert.throws(TypeError, function() { - of(); + assert.throws(TypeError, function() { of (); }); }); diff --git a/test/built-ins/TypedArrays/of/nan-conversion.js b/test/built-ins/TypedArrays/of/nan-conversion.js index 4444f12860..8e3ca40aee 100644 --- a/test/built-ins/TypedArrays/of/nan-conversion.js +++ b/test/built-ins/TypedArrays/of/nan-conversion.js @@ -24,8 +24,7 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(result[1], NaN); assert.sameValue(result.constructor, TA); assert.sameValue(Object.getPrototypeOf(result), TA.prototype); -}, -[ +}, [ Float32Array, Float64Array ]); @@ -37,8 +36,7 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(result[1], 0); assert.sameValue(result.constructor, TA); assert.sameValue(Object.getPrototypeOf(result), TA.prototype); -}, -[ +}, [ Int8Array, Int32Array, Int16Array, diff --git a/test/built-ins/TypedArrays/of/new-instance-from-zero.js b/test/built-ins/TypedArrays/of/new-instance-from-zero.js index ecffd9c36f..783e5b3b25 100644 --- a/test/built-ins/TypedArrays/of/new-instance-from-zero.js +++ b/test/built-ins/TypedArrays/of/new-instance-from-zero.js @@ -15,8 +15,7 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(result[1], 0, "+0 => 0"); assert.sameValue(result.constructor, TA); assert.sameValue(Object.getPrototypeOf(result), TA.prototype); -}, -[ +}, [ Float32Array, Float64Array ]); @@ -28,8 +27,7 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(result[1], 0, "+0 => 0"); assert.sameValue(result.constructor, TA); assert.sameValue(Object.getPrototypeOf(result), TA.prototype); -}, -[ +}, [ Int16Array, Int32Array, Int8Array, diff --git a/test/built-ins/TypedArrays/of/this-is-not-constructor.js b/test/built-ins/TypedArrays/of/this-is-not-constructor.js index be5b3b65af..dedf72bced 100644 --- a/test/built-ins/TypedArrays/of/this-is-not-constructor.js +++ b/test/built-ins/TypedArrays/of/this-is-not-constructor.js @@ -15,7 +15,9 @@ includes: [testTypedArray.js] features: [TypedArray] ---*/ -var m = { m() {} }.m; +var m = { + m() {} +}.m; testWithTypedArrayConstructors(function(TA) { assert.throws(TypeError, function() { diff --git a/test/built-ins/TypedArrays/typedarray-arg-detached-when-species-retrieved-different-type.js b/test/built-ins/TypedArrays/typedarray-arg-detached-when-species-retrieved-different-type.js index 8ee2fba54b..b2716b2424 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 978f42af64..37484659b2 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 c485cae138..8a656718f8 100644 --- a/test/built-ins/TypedArrays/typedarray-arg-other-ctor-buffer-ctor-species-not-ctor-throws.js +++ b/test/built-ins/TypedArrays/typedarray-arg-other-ctor-buffer-ctor-species-not-ctor-throws.js @@ -33,7 +33,9 @@ var sample2 = new Int16Array(); var ctor = function() { throw new Test262Error(); }; -var m = { m() {} }.m; +var m = { + m() {} +}.m; ctor[Symbol.species] = m; testWithTypedArrayConstructors(function(TA) { diff --git a/test/built-ins/TypedArrays/typedarray-arg-other-ctor-buffer-ctor-species-prototype-throws.js b/test/built-ins/TypedArrays/typedarray-arg-other-ctor-buffer-ctor-species-prototype-throws.js index 135634646b..ad7dfa659d 100644 --- a/test/built-ins/TypedArrays/typedarray-arg-other-ctor-buffer-ctor-species-prototype-throws.js +++ b/test/built-ins/TypedArrays/typedarray-arg-other-ctor-buffer-ctor-species-prototype-throws.js @@ -45,7 +45,9 @@ testWithTypedArrayConstructors(function(TA) { sample.buffer.constructor = ctor; - ctor[Symbol.species] = function() {called++;}.bind(null); + ctor[Symbol.species] = function() { + called++; + }.bind(null); Object.defineProperty(ctor[Symbol.species], "prototype", { get: function() { throw new Test262Error(); diff --git a/test/built-ins/TypedArrays/typedarray-arg-same-ctor-buffer-ctor-species-not-ctor.js b/test/built-ins/TypedArrays/typedarray-arg-same-ctor-buffer-ctor-species-not-ctor.js index 2072aa96dd..6c0d590d20 100644 --- a/test/built-ins/TypedArrays/typedarray-arg-same-ctor-buffer-ctor-species-not-ctor.js +++ b/test/built-ins/TypedArrays/typedarray-arg-same-ctor-buffer-ctor-species-not-ctor.js @@ -37,7 +37,9 @@ features: [Symbol.species, TypedArray] testWithTypedArrayConstructors(function(TA) { var sample = new TA(); var ctor = {}; - var m = { m() {} }; + var m = { + m() {} + }; sample.buffer.constructor = ctor; diff --git a/test/built-ins/TypedArrays/typedarray-arg-same-ctor-buffer-ctor-species-prototype-throws.js b/test/built-ins/TypedArrays/typedarray-arg-same-ctor-buffer-ctor-species-prototype-throws.js index b171826cfb..cd0cc0c259 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 e7bbc1d10d..4125eee93e 100644 --- a/test/built-ins/WeakMap/iterable.js +++ b/test/built-ins/WeakMap/iterable.js @@ -27,7 +27,10 @@ WeakMap.prototype.set = function(key, value) { }); return set.call(this, key, value); }; -var map = new WeakMap([[first, 42], [second, 43]]); +var map = new WeakMap([ + [first, 42], + [second, 43] +]); assert.sameValue(results.length, 2, 'Called WeakMap#set for each object'); assert.sameValue(results[0].key, first, 'Adds object in order - first key'); diff --git a/test/built-ins/WeakMap/iterator-close-after-set-failure.js b/test/built-ins/WeakMap/iterator-close-after-set-failure.js index e2abc94795..57a0d05d5e 100644 --- a/test/built-ins/WeakMap/iterator-close-after-set-failure.js +++ b/test/built-ins/WeakMap/iterator-close-after-set-failure.js @@ -20,14 +20,19 @@ var iterable = {}; iterable[Symbol.iterator] = function() { return { next: function() { - return { value: [], done: false }; + return { + value: [], + done: false + }; }, return: function() { count += 1; } }; }; -WeakMap.prototype.set = function() { throw new Test262Error(); }; +WeakMap.prototype.set = function() { + throw new Test262Error(); +}; assert.throws(Test262Error, function() { new WeakMap(iterable); diff --git a/test/built-ins/WeakMap/iterator-items-are-not-object-close-iterator.js b/test/built-ins/WeakMap/iterator-items-are-not-object-close-iterator.js index ebec4f91b3..bc8c4d0590 100644 --- a/test/built-ins/WeakMap/iterator-items-are-not-object-close-iterator.js +++ b/test/built-ins/WeakMap/iterator-items-are-not-object-close-iterator.js @@ -28,7 +28,10 @@ var iterable = {}; iterable[Symbol.iterator] = function() { return { next: function() { - return { value: nextItem, done: false }; + return { + value: nextItem, + done: false + }; }, return: function() { count += 1; diff --git a/test/built-ins/WeakMap/iterator-items-are-not-object.js b/test/built-ins/WeakMap/iterator-items-are-not-object.js index 1af8955701..5cb3959d59 100644 --- a/test/built-ins/WeakMap/iterator-items-are-not-object.js +++ b/test/built-ins/WeakMap/iterator-items-are-not-object.js @@ -45,5 +45,7 @@ assert.throws(TypeError, function() { }); assert.throws(TypeError, function() { - new WeakMap([['a', 1], 2]); + new WeakMap([ + ['a', 1], 2 + ]); }); diff --git a/test/built-ins/WeakMap/name.js b/test/built-ins/WeakMap/name.js index 7aafce494c..baa4d1014a 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 6768aba521..1927f697b8 100644 --- a/test/built-ins/WeakMap/prototype/delete/delete-entry-initial-iterable.js +++ b/test/built-ins/WeakMap/prototype/delete/delete-entry-initial-iterable.js @@ -22,7 +22,9 @@ info: | ---*/ var foo = {}; -var map = new WeakMap([[foo, 42]]); +var map = new WeakMap([ + [foo, 42] +]); var result = map.delete(foo); diff --git a/test/built-ins/WeakMap/prototype/get/returns-undefined.js b/test/built-ins/WeakMap/prototype/get/returns-undefined.js index 77eddd8ba9..76d7ef16df 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 2afc923dc1..47990a97db 100644 --- a/test/built-ins/WeakMap/prototype/get/returns-value.js +++ b/test/built-ins/WeakMap/prototype/get/returns-value.js @@ -21,7 +21,9 @@ info: | var foo = {}; var bar = {}; var baz = []; -var map = new WeakMap([[foo,0]]); +var map = new WeakMap([ + [foo, 0] +]); assert.sameValue(map.get(foo), 0); diff --git a/test/built-ins/WeakMap/prototype/set/returns-this-when-ignoring-duplicate.js b/test/built-ins/WeakMap/prototype/set/returns-this-when-ignoring-duplicate.js index 81e8f36ae6..e4eea01298 100644 --- a/test/built-ins/WeakMap/prototype/set/returns-this-when-ignoring-duplicate.js +++ b/test/built-ins/WeakMap/prototype/set/returns-this-when-ignoring-duplicate.js @@ -18,6 +18,8 @@ info: | ---*/ var foo = {}; -var map = new WeakMap([[foo, 1]]); +var map = new WeakMap([ + [foo, 1] +]); assert.sameValue(map.set(foo, 1), map, '`map.set(foo, 1)` returns `map`'); diff --git a/test/built-ins/WeakSet/iterator-close-after-add-failure.js b/test/built-ins/WeakSet/iterator-close-after-add-failure.js index dcd971380b..fed192c8ce 100644 --- a/test/built-ins/WeakSet/iterator-close-after-add-failure.js +++ b/test/built-ins/WeakSet/iterator-close-after-add-failure.js @@ -20,14 +20,19 @@ var iterable = {}; iterable[Symbol.iterator] = function() { return { next: function() { - return { value: null, done: false }; + return { + value: null, + done: false + }; }, return: function() { count += 1; } }; }; -WeakSet.prototype.add = function() { throw new Test262Error(); }; +WeakSet.prototype.add = function() { + throw new Test262Error(); +}; assert.throws(Test262Error, function() { new WeakSet(iterable); diff --git a/test/built-ins/WeakSet/name.js b/test/built-ins/WeakSet/name.js index 9febed3085..1fbaa84092 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 0a3363e2da..eacb101f77 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 fcd7240458..60e1a4bd8a 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A1.10_T1.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A1.10_T1.js @@ -13,7 +13,12 @@ description: Complex tests //CHECK var result = true; -var interval = [[0x00, 0x29], [0x40,0x40], [0x47, 0x60], [0x67, 0xFFFF]]; +var interval = [ + [0x00, 0x29], + [0x40, 0x40], + [0x47, 0x60], + [0x67, 0xFFFF] +]; for (var indexI = 0; indexI < interval.length; indexI++) { for (var indexJ = interval[indexI][0]; indexJ <= interval[indexI][1]; indexJ++) { try { diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.11_T1.js b/test/built-ins/decodeURI/S15.1.3.1_A1.11_T1.js index 33fa65d214..fe8b1522cb 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A1.11_T1.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A1.11_T1.js @@ -16,7 +16,12 @@ description: > //CHECK var result = true; -var interval = [[0x00, 0x29], [0x40,0x40], [0x47, 0x60], [0x67, 0xFFFF]]; +var interval = [ + [0x00, 0x29], + [0x40, 0x40], + [0x47, 0x60], + [0x67, 0xFFFF] +]; for (var indexI = 0; indexI < interval.length; indexI++) { for (var indexJ = interval[indexI][0]; indexJ <= interval[indexI][1]; indexJ++) { try { diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.11_T2.js b/test/built-ins/decodeURI/S15.1.3.1_A1.11_T2.js index 9752e42986..20ed6651eb 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A1.11_T2.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A1.11_T2.js @@ -16,7 +16,12 @@ description: > //CHECK var result = true; -var interval = [[0x00, 0x29], [0x40,0x40], [0x47, 0x60], [0x67, 0xFFFF]]; +var interval = [ + [0x00, 0x29], + [0x40, 0x40], + [0x47, 0x60], + [0x67, 0xFFFF] +]; for (var indexI = 0; indexI < interval.length; indexI++) { for (var indexJ = interval[indexI][0]; indexJ <= interval[indexI][1]; indexJ++) { try { diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.12_T1.js b/test/built-ins/decodeURI/S15.1.3.1_A1.12_T1.js index 8c8e4e8249..ef1bd26242 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A1.12_T1.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A1.12_T1.js @@ -17,7 +17,12 @@ description: > //CHECK var result = true; -var interval = [[0x00, 0x29], [0x40,0x40], [0x47, 0x60], [0x67, 0xFFFF]]; +var interval = [ + [0x00, 0x29], + [0x40, 0x40], + [0x47, 0x60], + [0x67, 0xFFFF] +]; for (var indexI = 0; indexI < interval.length; indexI++) { for (var indexJ = interval[indexI][0]; indexJ <= interval[indexI][1]; indexJ++) { try { diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.12_T2.js b/test/built-ins/decodeURI/S15.1.3.1_A1.12_T2.js index acb718faf6..ffc0a98142 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A1.12_T2.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A1.12_T2.js @@ -17,7 +17,12 @@ description: > //CHECK var result = true; -var interval = [[0x00, 0x29], [0x40,0x40], [0x47, 0x60], [0x67, 0xFFFF]]; +var interval = [ + [0x00, 0x29], + [0x40, 0x40], + [0x47, 0x60], + [0x67, 0xFFFF] +]; for (var indexI = 0; indexI < interval.length; indexI++) { for (var indexJ = interval[indexI][0]; indexJ <= interval[indexI][1]; indexJ++) { try { diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.12_T3.js b/test/built-ins/decodeURI/S15.1.3.1_A1.12_T3.js index 226bdb4767..f7f0f8d51c 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A1.12_T3.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A1.12_T3.js @@ -17,7 +17,12 @@ description: > //CHECK var result = true; -var interval = [[0x00, 0x29], [0x40,0x40], [0x47, 0x60], [0x67, 0xFFFF]]; +var interval = [ + [0x00, 0x29], + [0x40, 0x40], + [0x47, 0x60], + [0x67, 0xFFFF] +]; for (var indexI = 0; indexI < interval.length; indexI++) { for (var indexJ = interval[indexI][0]; indexJ <= interval[indexI][1]; indexJ++) { try { diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.1_T1.js b/test/built-ins/decodeURI/S15.1.3.1_A1.1_T1.js index 2ee47854c0..6905a38532 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 5a30805bb7..5f6354bf64 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A1.2_T1.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A1.2_T1.js @@ -13,7 +13,12 @@ description: Complex tests //CHECK var result = true; -var interval = [[0x00, 0x29], [0x40,0x40], [0x47, 0x60], [0x67, 0xFFFF]]; +var interval = [ + [0x00, 0x29], + [0x40, 0x40], + [0x47, 0x60], + [0x67, 0xFFFF] +]; for (var indexI = 0; indexI < interval.length; indexI++) { for (var indexJ = interval[indexI][0]; indexJ <= interval[indexI][1]; indexJ++) { try { diff --git a/test/built-ins/decodeURI/S15.1.3.1_A1.2_T2.js b/test/built-ins/decodeURI/S15.1.3.1_A1.2_T2.js index 5944e67bf2..234066125d 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A1.2_T2.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A1.2_T2.js @@ -13,7 +13,12 @@ description: Complex tests //CHECK var result = true; -var interval = [[0x00, 0x29], [0x40,0x40], [0x47, 0x60], [0x67, 0xFFFF]]; +var interval = [ + [0x00, 0x29], + [0x40, 0x40], + [0x47, 0x60], + [0x67, 0xFFFF] +]; for (var indexI = 0; indexI < interval.length; indexI++) { for (var indexJ = interval[indexI][0]; indexJ <= interval[indexI][1]; indexJ++) { try { diff --git a/test/built-ins/decodeURI/S15.1.3.1_A2.1_T1.js b/test/built-ins/decodeURI/S15.1.3.1_A2.1_T1.js index 477ef8460c..6423131402 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 71e8c31d44..a609d01146 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A2.2_T1.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A2.2_T1.js @@ -16,36 +16,36 @@ var indexP; var indexO = 0; var uriReserved = [";", "/", "?", ":", "@", "&", "=", "+", "$", ","]; l: -for (var indexB1 = 0x00; indexB1 <= 0x7F; indexB1++) { - count++; - var hexB1 = decimalToPercentHexString(indexB1); - var index = indexB1; - var hex = String.fromCharCode(index); - for (var indexC = 0; indexC < uriReserved.length; indexC++) { - if (hex === uriReserved[indexC]) continue l; - } - if (hex === "#") continue; - if (decodeURI(hexB1) === hex) continue; + for (var indexB1 = 0x00; indexB1 <= 0x7F; indexB1++) { + count++; + var hexB1 = decimalToPercentHexString(indexB1); + var index = indexB1; + var hex = String.fromCharCode(index); + for (var indexC = 0; indexC < uriReserved.length; indexC++) { + if (hex === uriReserved[indexC]) continue l; + } + if (hex === "#") continue; + if (decodeURI(hexB1) === hex) continue; - if (indexO === 0) { - indexO = index; - } else { - if ((index - indexP) !== 1) { - if ((indexP - indexO) !== 0) { - var hexP = decimalToHexString(indexP); - var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); - } - else { - var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); - } + if (indexO === 0) { indexO = index; + } else { + if ((index - indexP) !== 1) { + if ((indexP - indexO) !== 0) { + var hexP = decimalToHexString(indexP); + var hexO = decimalToHexString(indexO); + $ERROR('#' + hexO + '-' + hexP + ' '); + } + else { + var hexP = decimalToHexString(indexP); + $ERROR('#' + hexP + ' '); + } + indexO = index; + } } + indexP = index; + errorCount++; } - indexP = index; - errorCount++; -} if (errorCount > 0) { if ((indexP - indexO) !== 0) { diff --git a/test/built-ins/decodeURI/S15.1.3.1_A5.1.js b/test/built-ins/decodeURI/S15.1.3.1_A5.1.js index a5517ed7ec..ccc2da7002 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 c088525b2c..3d64f22d1b 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 e3789fbdfd..216de13497 100644 --- a/test/built-ins/decodeURI/S15.1.3.1_A6_T1.js +++ b/test/built-ins/decodeURI/S15.1.3.1_A6_T1.js @@ -10,26 +10,51 @@ description: If Type(value) is Object, evaluate ToPrimitive(value, String) ---*/ //CHECK#1 -var object = {valueOf: function() {return "%5E"}}; +var object = { + valueOf: function() { + return "%5E" + } +}; if (decodeURI(object) !== "[object Object]") { $ERROR('#1: var object = {valueOf: function() {return "%5E"}}; decodeURI(object) === [object Object]. Actual: ' + (decodeURI(object))); } //CHECK#2 -var object = {valueOf: function() {return ""}, toString: function() {return "%5E"}}; +var object = { + valueOf: function() { + return "" + }, + toString: function() { + return "%5E" + } +}; if (decodeURI(object) !== "^") { $ERROR('#2: var object = {valueOf: function() {return ""}, toString: function() {return "%5E"}}; decodeURI(object) === "^". Actual: ' + (decodeURI(object))); } //CHECK#3 -var object = {valueOf: function() {return "%5E"}, toString: function() {return {}}}; +var object = { + valueOf: function() { + return "%5E" + }, + toString: function() { + return {} + } +}; if (decodeURI(object) !== "^") { $ERROR('#3: var object = {valueOf: function() {return "%5E"}, toString: function() {return {}}}; decodeURI(object) === "^". Actual: ' + (decodeURI(object))); } //CHECK#4 try { - var object = {valueOf: function() {throw "error"}, toString: function() {return "%5E"}}; + var object = { + valueOf: function() { + throw "error" + }, + toString: function() { + return "%5E" + } + }; if (decodeURI(object) !== "^") { $ERROR('#4.1: var object = {valueOf: function() {throw "error"}, toString: function() {return "%5E"}}; decodeURI(object) === "^". Actual: ' + (decodeURI(object))); } @@ -43,20 +68,38 @@ catch (e) { } //CHECK#5 -var object = {toString: function() {return "%5E"}}; +var object = { + toString: function() { + return "%5E" + } +}; if (decodeURI(object) !== "^") { $ERROR('#5: var object = {toString: function() {return "%5E"}}; decodeURI(object) === "^". Actual: ' + (decodeURI(object))); } //CHECK#6 -var object = {valueOf: function() {return {}}, toString: function() {return "%5E"}} +var object = { + valueOf: function() { + return {} + }, + toString: function() { + return "%5E" + } +} if (decodeURI(object) !== "^") { $ERROR('#6: var object = {valueOf: function() {return {}}, toString: function() {return "%5E"}}; decodeURI(object) === "^". Actual: ' + (decodeURI(object))); } //CHECK#7 try { - var object = {valueOf: function() {return "%5E"}, toString: function() {throw "error"}}; + var object = { + valueOf: function() { + return "%5E" + }, + toString: function() { + throw "error" + } + }; decodeURI(object); $ERROR('#7.1: var object = {valueOf: function() {return "%5E"}, toString: function() {throw "error"}}; decodeURI(object) throw "error". Actual: ' + (decodeURI(object))); } @@ -68,7 +111,14 @@ catch (e) { //CHECK#8 try { - var object = {valueOf: function() {return {}}, toString: function() {return {}}}; + var object = { + valueOf: function() { + return {} + }, + toString: function() { + return {} + } + }; decodeURI(object); $ERROR('#8.1: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; decodeURI(object) throw TypeError. Actual: ' + (decodeURI(object))); } diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.10_T1.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.10_T1.js index a46be4f62b..18a31ed6c7 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.10_T1.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.10_T1.js @@ -13,7 +13,12 @@ description: Complex tests //CHECK var result = true; -var interval = [[0x00, 0x29], [0x40,0x40], [0x47, 0x60], [0x67, 0xFFFF]]; +var interval = [ + [0x00, 0x29], + [0x40, 0x40], + [0x47, 0x60], + [0x67, 0xFFFF] +]; for (var indexI = 0; indexI < interval.length; indexI++) { for (var indexJ = interval[indexI][0]; indexJ <= interval[indexI][1]; indexJ++) { try { diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.11_T1.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.11_T1.js index da331c9119..523333d22d 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.11_T1.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.11_T1.js @@ -16,7 +16,12 @@ description: > //CHECK var result = true; -var interval = [[0x00, 0x29], [0x40,0x40], [0x47, 0x60], [0x67, 0xFFFF]]; +var interval = [ + [0x00, 0x29], + [0x40, 0x40], + [0x47, 0x60], + [0x67, 0xFFFF] +]; for (var indexI = 0; indexI < interval.length; indexI++) { for (var indexJ = interval[indexI][0]; indexJ <= interval[indexI][1]; indexJ++) { try { diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.11_T2.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.11_T2.js index 1a0c176a45..a28d0d88fb 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.11_T2.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.11_T2.js @@ -16,7 +16,12 @@ description: > //CHECK var result = true; -var interval = [[0x00, 0x29], [0x40,0x40], [0x47, 0x60], [0x67, 0xFFFF]]; +var interval = [ + [0x00, 0x29], + [0x40, 0x40], + [0x47, 0x60], + [0x67, 0xFFFF] +]; for (var indexI = 0; indexI < interval.length; indexI++) { for (var indexJ = interval[indexI][0]; indexJ <= interval[indexI][1]; indexJ++) { try { diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.12_T1.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.12_T1.js index 4fabab2a7f..6cebbac3ef 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.12_T1.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.12_T1.js @@ -17,7 +17,12 @@ description: > //CHECK var result = true; -var interval = [[0x00, 0x29], [0x40,0x40], [0x47, 0x60], [0x67, 0xFFFF]]; +var interval = [ + [0x00, 0x29], + [0x40, 0x40], + [0x47, 0x60], + [0x67, 0xFFFF] +]; for (var indexI = 0; indexI < interval.length; indexI++) { for (var indexJ = interval[indexI][0]; indexJ <= interval[indexI][1]; indexJ++) { try { diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.12_T2.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.12_T2.js index dfe26fb48f..d0584a7c18 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.12_T2.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.12_T2.js @@ -17,7 +17,12 @@ description: > //CHECK var result = true; -var interval = [[0x00, 0x29], [0x40,0x40], [0x47, 0x60], [0x67, 0xFFFF]]; +var interval = [ + [0x00, 0x29], + [0x40, 0x40], + [0x47, 0x60], + [0x67, 0xFFFF] +]; for (var indexI = 0; indexI < interval.length; indexI++) { for (var indexJ = interval[indexI][0]; indexJ <= interval[indexI][1]; indexJ++) { try { diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.12_T3.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.12_T3.js index 91c59946a2..524b484c0d 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.12_T3.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.12_T3.js @@ -17,7 +17,12 @@ description: > //CHECK var result = true; -var interval = [[0x00, 0x29], [0x40,0x40], [0x47, 0x60], [0x67, 0xFFFF]]; +var interval = [ + [0x00, 0x29], + [0x40, 0x40], + [0x47, 0x60], + [0x67, 0xFFFF] +]; for (var indexI = 0; indexI < interval.length; indexI++) { for (var indexJ = interval[indexI][0]; indexJ <= interval[indexI][1]; indexJ++) { try { diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.1_T1.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.1_T1.js index 6a072c6ba8..8f7812a523 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 32d2f4564f..9f02d80e72 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.2_T1.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.2_T1.js @@ -13,7 +13,12 @@ description: Complex tests //CHECK var result = true; -var interval = [[0x00, 0x29], [0x40,0x40], [0x47, 0x60], [0x67, 0xFFFF]]; +var interval = [ + [0x00, 0x29], + [0x40, 0x40], + [0x47, 0x60], + [0x67, 0xFFFF] +]; for (var indexI = 0; indexI < interval.length; indexI++) { for (var indexJ = interval[indexI][0]; indexJ <= interval[indexI][1]; indexJ++) { try { diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.2_T2.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.2_T2.js index f12e15c84e..a8710a8c8f 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A1.2_T2.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A1.2_T2.js @@ -13,7 +13,12 @@ description: Complex tests //CHECK var result = true; -var interval = [[0x00, 0x29], [0x40,0x40], [0x47, 0x60], [0x67, 0xFFFF]]; +var interval = [ + [0x00, 0x29], + [0x40, 0x40], + [0x47, 0x60], + [0x67, 0xFFFF] +]; for (var indexI = 0; indexI < interval.length; indexI++) { for (var indexJ = interval[indexI][0]; indexJ <= interval[indexI][1]; indexJ++) { try { diff --git a/test/built-ins/decodeURIComponent/S15.1.3.2_A2.1_T1.js b/test/built-ins/decodeURIComponent/S15.1.3.2_A2.1_T1.js index 5ffde47cff..a84fa9b913 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 e8d46165b7..e2412648c8 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 e01cd5502f..376bff510e 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 cb27193eb2..5717f3f82b 100644 --- a/test/built-ins/decodeURIComponent/S15.1.3.2_A6_T1.js +++ b/test/built-ins/decodeURIComponent/S15.1.3.2_A6_T1.js @@ -10,26 +10,51 @@ description: If Type(value) is Object, evaluate ToPrimitive(value, String) ---*/ //CHECK#1 -var object = {valueOf: function() {return "%5E"}}; +var object = { + valueOf: function() { + return "%5E" + } +}; if (decodeURIComponent(object) !== "[object Object]") { $ERROR('#1: var object = {valueOf: function() {return "%5E"}}; decodeURIComponent(object) === [object Object]. Actual: ' + (decodeURIComponent(object))); } //CHECK#2 -var object = {valueOf: function() {return ""}, toString: function() {return "%5E"}}; +var object = { + valueOf: function() { + return "" + }, + toString: function() { + return "%5E" + } +}; if (decodeURIComponent(object) !== "^") { $ERROR('#2: var object = {valueOf: function() {return ""}, toString: function() {return "%5E"}}; decodeURIComponent(object) === "^". Actual: ' + (decodeURIComponent(object))); } //CHECK#3 -var object = {valueOf: function() {return "%5E"}, toString: function() {return {}}}; +var object = { + valueOf: function() { + return "%5E" + }, + toString: function() { + return {} + } +}; if (decodeURIComponent(object) !== "^") { $ERROR('#3: var object = {valueOf: function() {return "%5E"}, toString: function() {return {}}}; decodeURIComponent(object) === "^". Actual: ' + (decodeURIComponent(object))); } //CHECK#4 try { - var object = {valueOf: function() {throw "error"}, toString: function() {return "%5E"}}; + var object = { + valueOf: function() { + throw "error" + }, + toString: function() { + return "%5E" + } + }; if (decodeURIComponent(object) !== "^") { $ERROR('#4.1: var object = {valueOf: function() {throw "error"}, toString: function() {return "%5E"}}; decodeURIComponent(object) === "^". Actual: ' + (decodeURIComponent(object))); } @@ -43,20 +68,38 @@ catch (e) { } //CHECK#5 -var object = {toString: function() {return "%5E"}}; +var object = { + toString: function() { + return "%5E" + } +}; if (decodeURIComponent(object) !== "^") { $ERROR('#5: var object = {toString: function() {return "%5E"}}; decodeURIComponent(object) === "^". Actual: ' + (decodeURIComponent(object))); } //CHECK#6 -var object = {valueOf: function() {return {}}, toString: function() {return "%5E"}} +var object = { + valueOf: function() { + return {} + }, + toString: function() { + return "%5E" + } +} if (decodeURIComponent(object) !== "^") { $ERROR('#6: var object = {valueOf: function() {return {}}, toString: function() {return "%5E"}}; decodeURIComponent(object) === "^". Actual: ' + (decodeURIComponent(object))); } //CHECK#7 try { - var object = {valueOf: function() {return "%5E"}, toString: function() {throw "error"}}; + var object = { + valueOf: function() { + return "%5E" + }, + toString: function() { + throw "error" + } + }; decodeURIComponent(object); $ERROR('#7.1: var object = {valueOf: function() {return "%5E"}, toString: function() {throw "error"}}; decodeURIComponent(object) throw "error". Actual: ' + (decodeURIComponent(object))); } @@ -68,7 +111,14 @@ catch (e) { //CHECK#8 try { - var object = {valueOf: function() {return {}}, toString: function() {return {}}}; + var object = { + valueOf: function() { + return {} + }, + toString: function() { + return {} + } + }; decodeURIComponent(object); $ERROR('#8.1: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; decodeURIComponent(object) throw TypeError. Actual: ' + (decodeURIComponent(object))); } diff --git a/test/built-ins/encodeURI/S15.1.3.3_A2.1_T1.js b/test/built-ins/encodeURI/S15.1.3.3_A2.1_T1.js index 4b8dbcca16..adc6785814 100644 --- a/test/built-ins/encodeURI/S15.1.3.3_A2.1_T1.js +++ b/test/built-ins/encodeURI/S15.1.3.3_A2.1_T1.js @@ -19,38 +19,38 @@ var count = 0; var indexP; var indexO = 0; -l : -for (var index = 0x0000; index <= 0x007F; index++) { - count++; - var str = String.fromCharCode(index); - for (var indexC = 0; indexC < uriReserved.length; indexC++) { - if (uriReserved[indexC] === str) continue l; - } - for (indexC = 0; indexC < uriUnescaped.length; indexC++) { - if (uriUnescaped[indexC] === str) continue l; - } - if ("#" === str) continue l; - if (encodeURI(str).toUpperCase() === decimalToPercentHexString(index)) continue l; +l: + for (var index = 0x0000; index <= 0x007F; index++) { + count++; + var str = String.fromCharCode(index); + for (var indexC = 0; indexC < uriReserved.length; indexC++) { + if (uriReserved[indexC] === str) continue l; + } + for (indexC = 0; indexC < uriUnescaped.length; indexC++) { + if (uriUnescaped[indexC] === str) continue l; + } + if ("#" === str) continue l; + if (encodeURI(str).toUpperCase() === decimalToPercentHexString(index)) continue l; - if (indexO === 0) { - indexO = index; - } else { - if ((index - indexP) !== 1) { - if ((indexP - indexO) !== 0) { - var hexP = decimalToHexString(indexP); - var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); - } - else { - var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); - } + if (indexO === 0) { indexO = index; + } else { + if ((index - indexP) !== 1) { + if ((indexP - indexO) !== 0) { + var hexP = decimalToHexString(indexP); + var hexO = decimalToHexString(indexO); + $ERROR('#' + hexO + '-' + hexP + ' '); + } + else { + var hexP = decimalToHexString(indexP); + $ERROR('#' + hexP + ' '); + } + indexO = index; + } } + indexP = index; + errorCount++; } - indexP = index; - errorCount++; -} if (errorCount > 0) { if ((indexP - indexO) !== 0) { diff --git a/test/built-ins/encodeURI/S15.1.3.3_A2.2_T1.js b/test/built-ins/encodeURI/S15.1.3.3_A2.2_T1.js index 95460bf134..7dfba59825 100644 --- a/test/built-ins/encodeURI/S15.1.3.3_A2.2_T1.js +++ b/test/built-ins/encodeURI/S15.1.3.3_A2.2_T1.js @@ -17,32 +17,32 @@ var count = 0; var indexP; var indexO = 0; l: -for (var index = 0x0080; index <= 0x07FF; index++) { - count++; - var hex1 = decimalToPercentHexString(0x0080 + (index & 0x003F)); - var hex2 = decimalToPercentHexString(0x00C0 + (index & 0x07C0) / 0x0040); - var str = String.fromCharCode(index); - if (encodeURI(str).toUpperCase() === hex2 + hex1) continue; + for (var index = 0x0080; index <= 0x07FF; index++) { + count++; + var hex1 = decimalToPercentHexString(0x0080 + (index & 0x003F)); + var hex2 = decimalToPercentHexString(0x00C0 + (index & 0x07C0) / 0x0040); + var str = String.fromCharCode(index); + if (encodeURI(str).toUpperCase() === hex2 + hex1) continue; - if (indexO === 0) { - indexO = index; - } else { - if ((index - indexP) !== 1) { - if ((indexP - indexO) !== 0) { - var hexP = decimalToHexString(indexP); - var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); - } - else { - var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); - } + if (indexO === 0) { indexO = index; + } else { + if ((index - indexP) !== 1) { + if ((indexP - indexO) !== 0) { + var hexP = decimalToHexString(indexP); + var hexO = decimalToHexString(indexO); + $ERROR('#' + hexO + '-' + hexP + ' '); + } + else { + var hexP = decimalToHexString(indexP); + $ERROR('#' + hexP + ' '); + } + indexO = index; + } } + indexP = index; + errorCount++; } - indexP = index; - errorCount++; -} if (errorCount > 0) { if ((indexP - indexO) !== 0) { diff --git a/test/built-ins/encodeURI/S15.1.3.3_A5.1.js b/test/built-ins/encodeURI/S15.1.3.3_A5.1.js index 5dad9e2d76..57fdbecfa7 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 6a99e83374..196f9bab04 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 955a4038bd..bc7c7fc8e4 100644 --- a/test/built-ins/encodeURI/S15.1.3.3_A6_T1.js +++ b/test/built-ins/encodeURI/S15.1.3.3_A6_T1.js @@ -10,26 +10,51 @@ description: If Type(value) is Object, evaluate ToPrimitive(value, String) ---*/ //CHECK#1 -var object = {valueOf: function() {return "^"}}; +var object = { + valueOf: function() { + return "^" + } +}; if (encodeURI(object) !== "%5Bobject%20Object%5D") { $ERROR('#1: var object = {valueOf: function() {return "^"}}; encodeURI(object) === %5Bobject%20Object%5D. Actual: ' + (encodeURI(object))); } //CHECK#2 -var object = {valueOf: function() {return ""}, toString: function() {return "^"}}; +var object = { + valueOf: function() { + return "" + }, + toString: function() { + return "^" + } +}; if (encodeURI(object) !== "%5E") { $ERROR('#2: var object = {valueOf: function() {return ""}, toString: function() {return "^"}}; encodeURI(object) === "%5E". Actual: ' + (encodeURI(object))); } //CHECK#3 -var object = {valueOf: function() {return "^"}, toString: function() {return {}}}; +var object = { + valueOf: function() { + return "^" + }, + toString: function() { + return {} + } +}; if (encodeURI(object) !== "%5E") { $ERROR('#3: var object = {valueOf: function() {return "^"}, toString: function() {return {}}}; encodeURI(object) === "%5E". Actual: ' + (encodeURI(object))); } //CHECK#4 try { - var object = {valueOf: function() {throw "error"}, toString: function() {return "^"}}; + var object = { + valueOf: function() { + throw "error" + }, + toString: function() { + return "^" + } + }; if (encodeURI(object) !== "%5E") { $ERROR('#4.1: var object = {valueOf: function() {throw "error"}, toString: function() {return "^"}}; encodeURI(object) === "%5E". Actual: ' + (encodeURI(object))); } @@ -43,20 +68,38 @@ catch (e) { } //CHECK#5 -var object = {toString: function() {return "^"}}; +var object = { + toString: function() { + return "^" + } +}; if (encodeURI(object) !== "%5E") { $ERROR('#5: var object = {toString: function() {return "^"}}; encodeURI(object) === "%5E". Actual: ' + (encodeURI(object))); } //CHECK#6 -var object = {valueOf: function() {return {}}, toString: function() {return "^"}} +var object = { + valueOf: function() { + return {} + }, + toString: function() { + return "^" + } +} if (encodeURI(object) !== "%5E") { $ERROR('#6: var object = {valueOf: function() {return {}}, toString: function() {return "^"}}; encodeURI(object) === "%5E". Actual: ' + (encodeURI(object))); } //CHECK#7 try { - var object = {valueOf: function() {return "^"}, toString: function() {throw "error"}}; + var object = { + valueOf: function() { + return "^" + }, + toString: function() { + throw "error" + } + }; encodeURI(object); $ERROR('#7.1: var object = {valueOf: function() {return "^"}, toString: function() {throw "error"}}; encodeURI(object) throw "error". Actual: ' + (encodeURI(object))); } @@ -68,7 +111,14 @@ catch (e) { //CHECK#8 try { - var object = {valueOf: function() {return {}}, toString: function() {return {}}}; + var object = { + valueOf: function() { + return {} + }, + toString: function() { + return {} + } + }; encodeURI(object); $ERROR('#8.1: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; encodeURI(object) throw TypeError. Actual: ' + (encodeURI(object))); } diff --git a/test/built-ins/encodeURIComponent/S15.1.3.4_A2.1_T1.js b/test/built-ins/encodeURIComponent/S15.1.3.4_A2.1_T1.js index 49b3f0d915..1920d60ae3 100644 --- a/test/built-ins/encodeURIComponent/S15.1.3.4_A2.1_T1.js +++ b/test/built-ins/encodeURIComponent/S15.1.3.4_A2.1_T1.js @@ -18,34 +18,34 @@ var count = 0; var indexP; var indexO = 0; -l : -for (var index = 0x0000; index <= 0x007F; index++) { - count++; - var str = String.fromCharCode(index); +l: + for (var index = 0x0000; index <= 0x007F; index++) { + count++; + var str = String.fromCharCode(index); for (var indexC = 0; indexC < uriUnescaped.length; indexC++) { - if (uriUnescaped[indexC] === str) continue l; - } - if (encodeURIComponent(str).toUpperCase() === decimalToPercentHexString(index)) continue l; + if (uriUnescaped[indexC] === str) continue l; + } + if (encodeURIComponent(str).toUpperCase() === decimalToPercentHexString(index)) continue l; - if (indexO === 0) { - indexO = index; - } else { - if ((index - indexP) !== 1) { - if ((indexP - indexO) !== 0) { - var hexP = decimalToHexString(indexP); - var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); - } - else { - var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); - } + if (indexO === 0) { indexO = index; + } else { + if ((index - indexP) !== 1) { + if ((indexP - indexO) !== 0) { + var hexP = decimalToHexString(indexP); + var hexO = decimalToHexString(indexO); + $ERROR('#' + hexO + '-' + hexP + ' '); + } + else { + var hexP = decimalToHexString(indexP); + $ERROR('#' + hexP + ' '); + } + indexO = index; + } } + indexP = index; + errorCount++; } - indexP = index; - errorCount++; -} if (errorCount > 0) { if ((indexP - indexO) !== 0) { diff --git a/test/built-ins/encodeURIComponent/S15.1.3.4_A2.2_T1.js b/test/built-ins/encodeURIComponent/S15.1.3.4_A2.2_T1.js index fa95eb034d..beb7a06df2 100644 --- a/test/built-ins/encodeURIComponent/S15.1.3.4_A2.2_T1.js +++ b/test/built-ins/encodeURIComponent/S15.1.3.4_A2.2_T1.js @@ -17,32 +17,32 @@ var count = 0; var indexP; var indexO = 0; l: -for (var index = 0x0080; index <= 0x07FF; index++) { - count++; - var hex1 = decimalToPercentHexString(0x0080 + (index & 0x003F)); - var hex2 = decimalToPercentHexString(0x00C0 + (index & 0x07C0) / 0x0040); - var str = String.fromCharCode(index); - if (encodeURIComponent(str).toUpperCase() === hex2 + hex1) continue; + for (var index = 0x0080; index <= 0x07FF; index++) { + count++; + var hex1 = decimalToPercentHexString(0x0080 + (index & 0x003F)); + var hex2 = decimalToPercentHexString(0x00C0 + (index & 0x07C0) / 0x0040); + var str = String.fromCharCode(index); + if (encodeURIComponent(str).toUpperCase() === hex2 + hex1) continue; - if (indexO === 0) { - indexO = index; - } else { - if ((index - indexP) !== 1) { - if ((indexP - indexO) !== 0) { - var hexP = decimalToHexString(indexP); - var hexO = decimalToHexString(indexO); - $ERROR('#' + hexO + '-' + hexP + ' '); - } - else { - var hexP = decimalToHexString(indexP); - $ERROR('#' + hexP + ' '); - } + if (indexO === 0) { indexO = index; + } else { + if ((index - indexP) !== 1) { + if ((indexP - indexO) !== 0) { + var hexP = decimalToHexString(indexP); + var hexO = decimalToHexString(indexO); + $ERROR('#' + hexO + '-' + hexP + ' '); + } + else { + var hexP = decimalToHexString(indexP); + $ERROR('#' + hexP + ' '); + } + indexO = index; + } } + indexP = index; + errorCount++; } - indexP = index; - errorCount++; -} if (errorCount > 0) { if ((indexP - indexO) !== 0) { diff --git a/test/built-ins/encodeURIComponent/S15.1.3.4_A5.1.js b/test/built-ins/encodeURIComponent/S15.1.3.4_A5.1.js index 505232e058..04fa7a5f2b 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 94c2dc87a3..c00a36b94e 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 2011de0a0a..3dca74696c 100644 --- a/test/built-ins/encodeURIComponent/S15.1.3.4_A6_T1.js +++ b/test/built-ins/encodeURIComponent/S15.1.3.4_A6_T1.js @@ -10,26 +10,51 @@ description: If Type(value) is Object, evaluate ToPrimitive(value, String) ---*/ //CHECK#1 -var object = {valueOf: function() {return "^"}}; +var object = { + valueOf: function() { + return "^" + } +}; if (encodeURIComponent(object) !== "%5Bobject%20Object%5D") { $ERROR('#1: var object = {valueOf: function() {return "^"}}; encodeURIComponent(object) === %5Bobject%20Object%5D. Actual: ' + (encodeURIComponent(object))); } //CHECK#2 -var object = {valueOf: function() {return ""}, toString: function() {return "^"}}; +var object = { + valueOf: function() { + return "" + }, + toString: function() { + return "^" + } +}; if (encodeURIComponent(object) !== "%5E") { $ERROR('#2: var object = {valueOf: function() {return ""}, toString: function() {return "^"}}; encodeURIComponent(object) === "%5E". Actual: ' + (encodeURIComponent(object))); } //CHECK#3 -var object = {valueOf: function() {return "^"}, toString: function() {return {}}}; +var object = { + valueOf: function() { + return "^" + }, + toString: function() { + return {} + } +}; if (encodeURIComponent(object) !== "%5E") { $ERROR('#3: var object = {valueOf: function() {return "^"}, toString: function() {return {}}}; encodeURIComponent(object) === "%5E". Actual: ' + (encodeURIComponent(object))); } //CHECK#4 try { - var object = {valueOf: function() {throw "error"}, toString: function() {return "^"}}; + var object = { + valueOf: function() { + throw "error" + }, + toString: function() { + return "^" + } + }; if (encodeURIComponent(object) !== "%5E") { $ERROR('#4.1: var object = {valueOf: function() {throw "error"}, toString: function() {return "^"}}; encodeURIComponent(object) === "%5E". Actual: ' + (encodeURIComponent(object))); } @@ -43,20 +68,38 @@ catch (e) { } //CHECK#5 -var object = {toString: function() {return "^"}}; +var object = { + toString: function() { + return "^" + } +}; if (encodeURIComponent(object) !== "%5E") { $ERROR('#5: var object = {toString: function() {return "^"}}; encodeURIComponent(object) === "%5E". Actual: ' + (encodeURIComponent(object))); } //CHECK#6 -var object = {valueOf: function() {return {}}, toString: function() {return "^"}} +var object = { + valueOf: function() { + return {} + }, + toString: function() { + return "^" + } +} if (encodeURIComponent(object) !== "%5E") { $ERROR('#6: var object = {valueOf: function() {return {}}, toString: function() {return "^"}}; encodeURIComponent(object) === "%5E". Actual: ' + (encodeURIComponent(object))); } //CHECK#7 try { - var object = {valueOf: function() {return "^"}, toString: function() {throw "error"}}; + var object = { + valueOf: function() { + return "^" + }, + toString: function() { + throw "error" + } + }; encodeURIComponent(object); $ERROR('#7.1: var object = {valueOf: function() {return "^"}, toString: function() {throw "error"}}; encodeURIComponent(object) throw "error". Actual: ' + (encodeURIComponent(object))); } @@ -68,7 +111,14 @@ catch (e) { //CHECK#8 try { - var object = {valueOf: function() {return {}}, toString: function() {return {}}}; + var object = { + valueOf: function() { + return {} + }, + toString: function() { + return {} + } + }; encodeURIComponent(object); $ERROR('#8.1: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; encodeURIComponent(object) throw TypeError. Actual: ' + (encodeURIComponent(object))); } diff --git a/test/built-ins/eval/length-enumerable.js b/test/built-ins/eval/length-enumerable.js index 4cc4fb6a8f..97ac7252c4 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 6e93567b37..c1748605b0 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 b5cf69ff5f..0ef1eb17f6 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 6a3e87eaa0..507e07e5fe 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 bda9016fd3..6bcae23963 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 ec1bc94e7c..cb8f60ae48 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 51359c3345..44d2fc16cc 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 4e24b9d466..2717f918ea 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 0497a078cb..16de4c0eb4 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 5f8940512a..92f8258e10 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 5652ac2d01..6eac1483da 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 690f449133..758529a924 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 2d0c18861d..4dce306c29 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 6ee2522bfa..3abffff7cc 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 27c8da5ccf..366759ceb2 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 80f2386eba..2fbeaf9c0d 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 f52c65f62f..b5fdc2cb23 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 bdfb2dcfdf..9dc8843d55 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 195ca44b73..ccde02b7f5 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 c2d4f98a47..07c20cb746 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 d011b2a39e..9cc1fa88f0 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 9dbb49b355..e14c7b1110 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 7de8a86ae7..427a4bcf5f 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 ee07c73597..1a7ca58628 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 ec0482d2ac..ee17f77c4d 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 4a3c5517f6..4c61acec8c 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 1bdf921796..aa50782403 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 2768188973..dd52eb8298 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 ecbbd49c57..4aa1326a2f 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 6bb61a7ef9..68a3dfbf96 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 18d89f5b49..83f2868f05 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 796612aca0..aed814768e 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 e2a730aaaf..3fbdfd1aed 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 fd3ab6b665..d135fcde60 100644 --- a/test/built-ins/parseFloat/S15.1.2.3_A1_T7.js +++ b/test/built-ins/parseFloat/S15.1.2.3_A1_T7.js @@ -10,24 +10,49 @@ description: If Type(value) is Object, evaluate ToPrimitive(value, String) ---*/ //CHECK#1 -var object = {valueOf: function() {return 1}}; +var object = { + valueOf: function() { + return 1 + } +}; assert.sameValue(parseFloat(object), NaN, "{valueOf: function() {return 1}}"); //CHECK#2 -var object = {valueOf: function() {return 1}, toString: function() {return 0}}; +var object = { + valueOf: function() { + return 1 + }, + toString: function() { + return 0 + } +}; if (parseFloat(object) !== 0) { $ERROR('#2: var object = {valueOf: function() {return 1}, toString: function() {return 0}}; parseFloat(object) === 0. Actual: ' + (parseFloat(object))); } //CHECK#3 -var object = {valueOf: function() {return 1}, toString: function() {return {}}}; +var object = { + valueOf: function() { + return 1 + }, + toString: function() { + return {} + } +}; if (parseFloat(object) !== 1) { $ERROR('#3: var object = {valueOf: function() {return 1}, toString: function() {return {}}}; parseFloat(object) === 1. Actual: ' + (parseFloat(object))); } //CHECK#4 try { - var object = {valueOf: function() {throw "error"}, toString: function() {return 1}}; + var object = { + valueOf: function() { + throw "error" + }, + toString: function() { + return 1 + } + }; if (parseFloat(object) !== 1) { $ERROR('#4.1: var object = {valueOf: function() {throw "error"}, toString: function() {return 1}}; parseFloat(object) === 1. Actual: ' + (parseFloat(object))); } @@ -41,20 +66,38 @@ catch (e) { } //CHECK#5 -var object = {toString: function() {return 1}}; +var object = { + toString: function() { + return 1 + } +}; if (parseFloat(object) !== 1) { $ERROR('#5: var object = {toString: function() {return 1}}; parseFloat(object) === 1. Actual: ' + (parseFloat(object))); } //CHECK#6 -var object = {valueOf: function() {return {}}, toString: function() {return 1}} +var object = { + valueOf: function() { + return {} + }, + toString: function() { + return 1 + } +} if (parseFloat(object) !== 1) { $ERROR('#6: var object = {valueOf: function() {return {}}, toString: function() {return 1}}; parseFloat(object) === 1. Actual: ' + (parseFloat(object))); } //CHECK#7 try { - var object = {valueOf: function() {return 1}, toString: function() {throw "error"}}; + var object = { + valueOf: function() { + return 1 + }, + toString: function() { + throw "error" + } + }; parseFloat(object); $ERROR('#7.1: var object = {valueOf: function() {return 1}, toString: function() {throw "error"}}; parseFloat(object) throw "error". Actual: ' + (parseFloat(object))); } @@ -66,7 +109,14 @@ catch (e) { //CHECK#8 try { - var object = {valueOf: function() {return {}}, toString: function() {return {}}}; + var object = { + valueOf: function() { + return {} + }, + toString: function() { + return {} + } + }; parseFloat(object); $ERROR('#8.1: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; parseFloat(object) throw TypeError. Actual: ' + (parseFloat(object))); } diff --git a/test/built-ins/parseFloat/S15.1.2.3_A2_T10.js b/test/built-ins/parseFloat/S15.1.2.3_A2_T10.js index d17cbca4b3..5e38fc4fa2 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 5013eea27f..4d39ca400a 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 19984b429b..66902d7fa9 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 bc2d2a590e..6665d34be8 100644 --- a/test/built-ins/parseFloat/tonumber-numeric-separator-literal-dd-dot-dd-ep-sign-plus-dds-nsl-dd.js +++ b/test/built-ins/parseFloat/tonumber-numeric-separator-literal-dd-dot-dd-ep-sign-plus-dds-nsl-dd.js @@ -19,4 +19,3 @@ features: [numeric-separator-literal] ---*/ assert.sameValue(parseFloat("1.0e+10_0"), 1.0e+10); - diff --git a/test/built-ins/parseInt/S15.1.2.2_A1_T7.js b/test/built-ins/parseInt/S15.1.2.2_A1_T7.js index f5655726df..617db6cd9f 100644 --- a/test/built-ins/parseInt/S15.1.2.2_A1_T7.js +++ b/test/built-ins/parseInt/S15.1.2.2_A1_T7.js @@ -10,24 +10,49 @@ description: If Type(value) is Object, evaluate ToPrimitive(value, String) ---*/ //CHECK#1 -var object = {valueOf: function() {return 1}}; +var object = { + valueOf: function() { + return 1 + } +}; assert.sameValue(parseInt(object), NaN, "{valueOf: function() {return 1}}"); //CHECK#2 -var object = {valueOf: function() {return 1}, toString: function() {return 0}}; +var object = { + valueOf: function() { + return 1 + }, + toString: function() { + return 0 + } +}; if (parseInt(object) !== 0) { $ERROR('#2: var object = {valueOf: function() {return 1}, toString: function() {return 0}}; parseInt(object) === 0. Actual: ' + (parseInt(object))); } //CHECK#3 -var object = {valueOf: function() {return 1}, toString: function() {return {}}}; +var object = { + valueOf: function() { + return 1 + }, + toString: function() { + return {} + } +}; if (parseInt(object) !== 1) { $ERROR('#3: var object = {valueOf: function() {return 1}, toString: function() {return {}}}; parseInt(object) === 1. Actual: ' + (parseInt(object))); } //CHECK#4 try { - var object = {valueOf: function() {throw "error"}, toString: function() {return 1}}; + var object = { + valueOf: function() { + throw "error" + }, + toString: function() { + return 1 + } + }; if (parseInt(object) !== 1) { $ERROR('#4.1: var object = {valueOf: function() {throw "error"}, toString: function() {return 1}}; parseInt(object) === 1. Actual: ' + (parseInt(object))); } @@ -41,20 +66,38 @@ catch (e) { } //CHECK#5 -var object = {toString: function() {return 1}}; +var object = { + toString: function() { + return 1 + } +}; if (parseInt(object) !== 1) { $ERROR('#5: var object = {toString: function() {return 1}}; parseInt(object) === 1. Actual: ' + (parseInt(object))); } //CHECK#6 -var object = {valueOf: function() {return {}}, toString: function() {return 1}} +var object = { + valueOf: function() { + return {} + }, + toString: function() { + return 1 + } +} if (parseInt(object) !== 1) { $ERROR('#6: var object = {valueOf: function() {return {}}, toString: function() {return 1}}; parseInt(object) === 1. Actual: ' + (parseInt(object))); } //CHECK#7 try { - var object = {valueOf: function() {return 1}, toString: function() {throw "error"}}; + var object = { + valueOf: function() { + return 1 + }, + toString: function() { + throw "error" + } + }; parseInt(object); $ERROR('#7.1: var object = {valueOf: function() {return 1}, toString: function() {throw "error"}}; parseInt(object) throw "error". Actual: ' + (parseInt(object))); } @@ -66,7 +109,14 @@ catch (e) { //CHECK#8 try { - var object = {valueOf: function() {return {}}, toString: function() {return {}}}; + var object = { + valueOf: function() { + return {} + }, + toString: function() { + return {} + } + }; parseInt(object); $ERROR('#8.1: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; parseInt(object) throw TypeError. Actual: ' + (parseInt(object))); } diff --git a/test/built-ins/parseInt/S15.1.2.2_A2_T10.js b/test/built-ins/parseInt/S15.1.2.2_A2_T10.js index 7d4c6c7aa7..359035302d 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 0dc23b6fa0..1eeaec01fe 100644 --- a/test/built-ins/parseInt/S15.1.2.2_A3.1_T7.js +++ b/test/built-ins/parseInt/S15.1.2.2_A3.1_T7.js @@ -10,26 +10,51 @@ description: If Type(value) is Object, evaluate ToPrimitive(value, Number) ---*/ //CHECK#1 -var object = {valueOf: function() {return 2}}; +var object = { + valueOf: function() { + return 2 + } +}; if (parseInt("11", object) !== parseInt("11", 2)) { $ERROR('#1: var object = {valueOf: function() {return 2}}; parseInt("11", object) === parseInt("11", 2). Actual: ' + (parseInt("11", object))); } //CHECK#2 -var object = {valueOf: function() {return 2}, toString: function() {return 1}}; +var object = { + valueOf: function() { + return 2 + }, + toString: function() { + return 1 + } +}; if (parseInt("11", object) !== parseInt("11", 2)) { $ERROR('#2: var object = {valueOf: function() {return 2}, toString: function() {return 1}}; parseInt("11", object) === parseInt("11", 2). Actual: ' + (parseInt("11", object))); } //CHECK#3 -var object = {valueOf: function() {return 2}, toString: function() {return {}}}; +var object = { + valueOf: function() { + return 2 + }, + toString: function() { + return {} + } +}; if (parseInt("11", object) !== parseInt("11", 2)) { $ERROR('#3: var object = {valueOf: function() {return 2}, toString: function() {return {}}}; parseInt("11", object) === parseInt("11", 2). Actual: ' + (parseInt("11", object))); } //CHECK#4 try { - var object = {valueOf: function() {return 2}, toString: function() {throw "error"}}; + var object = { + valueOf: function() { + return 2 + }, + toString: function() { + throw "error" + } + }; if (parseInt("11", object) !== parseInt("11", 2)) { $ERROR('#4.1: var object = {valueOf: function() {return 2}, toString: function() {throw "error"}}; parseInt("11", object) === parseInt("11", 2). Actual: ' + (parseInt("11", object))); } @@ -43,20 +68,38 @@ catch (e) { } //CHECK#5 -var object = {toString: function() {return 2}}; +var object = { + toString: function() { + return 2 + } +}; if (parseInt("11", object) !== parseInt("11", 2)) { $ERROR('#5: var object = {toString: function() {return 2}}; parseInt("11", object) === parseInt("11", 2). Actual: ' + (parseInt("11", object))); } //CHECK#6 -var object = {valueOf: function() {return {}}, toString: function() {return 2}} +var object = { + valueOf: function() { + return {} + }, + toString: function() { + return 2 + } +} if (parseInt("11", object) !== parseInt("11", 2)) { $ERROR('#6: var object = {valueOf: function() {return {}}, toString: function() {return 2}}; parseInt("11", object) === parseInt("11", 2). Actual: ' + (parseInt("11", object))); } //CHECK#7 try { - var object = {valueOf: function() {throw "error"}, toString: function() {return 2}}; + var object = { + valueOf: function() { + throw "error" + }, + toString: function() { + return 2 + } + }; parseInt("11", object); $ERROR('#7.1: var object = {valueOf: function() {throw "error"}, toString: function() {return 2}}; parseInt("11", object) throw "error". Actual: ' + (parseInt("11", object))); } @@ -68,7 +111,14 @@ catch (e) { //CHECK#8 try { - var object = {valueOf: function() {return {}}, toString: function() {return {}}}; + var object = { + valueOf: function() { + return {} + }, + toString: function() { + return {} + } + }; parseInt("11", object); $ERROR('#8.1: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; parseInt("11", object) throw TypeError. Actual: ' + (parseInt("11", object))); } diff --git a/test/built-ins/parseInt/S15.1.2.2_A5.2_T1.js b/test/built-ins/parseInt/S15.1.2.2_A5.2_T1.js index a4b58e9f91..cbb1b7733a 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 7be4f90d5f..d644f36048 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 9f01486699..980f9dc9a2 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 90c7ddbe4c..81b667e8cd 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 bf5ed52945..5b8fdfcbf2 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 070ffbc4db..d6becd0262 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 960783ecc9..8a0ee29740 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 4140b20360..b29cc42674 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 e03da48ec2..61510e57af 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 2c3a243086..78ab60a765 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 5f13f195f2..c5159d7e13 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 d577470880..12282235e4 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 f49d5ca8c7..49918799e9 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'); } } -- GitLab